/* tyAja - serbski Finder (bis 18.11.2026 Jank&Hanka): eigenstaendige Handy-App (Klassen .jh-*).
   Farben als Variablen; hell und dunkel ueber data-theme (theme.js, Schluessel lausitz-theme)
   und prefers-color-scheme. Marke: Pink #ff4f8e und Cyan #00aedd als Akzente neben Creme und Schwarz. */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pink: #ff4f8e;
  --coral: #ff7fb0;
  --sun: #00aedd;
  --grad: linear-gradient(135deg, #ff4f8e 0%, #ff7fb0 100%);
  --grad-soft: linear-gradient(135deg, #ff4f8e 0%, #ff7fb0 100%);
  --bg: #fff8ef;
  --bg-glow: radial-gradient(120% 80% at 10% 0%, #ffe0ec 0%, rgba(255, 224, 236, 0) 60%), radial-gradient(100% 70% at 100% 100%, #d9f4fb 0%, rgba(217, 244, 251, 0) 55%);
  --surface: #ffffff;
  --surface-2: #f6efe6;
  --text: #17141a;
  --muted: #5f5a63;
  --line: #e9e1d6;
  --brand-text: #d81f6a;
  --on-brand: #17141a;
  --accent: #00aedd;
  --on-accent: #17141a;
  --mine-bg: #00aedd;
  --mine-text: #17141a;
  --theirs-bg: #f0e9df;
  --theirs-text: #17141a;
  --danger: #c4283f;
  --ok: #1f7a4d;
  --shadow: 0 10px 30px rgba(40, 20, 45, 0.18);
  --shadow-sm: 0 4px 14px rgba(40, 20, 45, 0.14);
  --stage-bg: #e9e1d6;
  --focus: #17141a;
  --radius: 22px;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --app-h: 100dvh;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121014;
  --bg-glow: radial-gradient(120% 80% at 10% 0%, #3a1627 0%, rgba(58, 22, 39, 0) 60%), radial-gradient(100% 70% at 100% 100%, #0c2f3a 0%, rgba(12, 47, 58, 0) 55%);
  --surface: #1b181e;
  --surface-2: #26222a;
  --text: #f6f1ea;
  --muted: #b3adb8;
  --line: #35303a;
  --brand-text: #ff8fb6;
  --theirs-bg: #2a262e;
  --theirs-text: #f6f1ea;
  --danger: #ff7d90;
  --ok: #5fd19a;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.45);
  --stage-bg: #0c0b0e;
  --focus: #00aedd;
  color-scheme: dark;
}
/* Ohne theme.js: Geraeteeinstellung */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121014;
    --bg-glow: radial-gradient(120% 80% at 10% 0%, #3a1627 0%, rgba(58, 22, 39, 0) 60%), radial-gradient(100% 70% at 100% 100%, #0c2f3a 0%, rgba(12, 47, 58, 0) 55%);
    --surface: #1b181e;
    --surface-2: #26222a;
    --text: #f6f1ea;
    --muted: #b3adb8;
    --line: #35303a;
    --brand-text: #ff8fb6;
    --theirs-bg: #2a262e;
    --theirs-text: #f6f1ea;
    --danger: #ff7d90;
    --ok: #5fd19a;
    --stage-bg: #0c0b0e;
    --focus: #00aedd;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* Die Seite selbst scrollt nie: gescrollt wird nur in den Bereichen der App (.jh-scroll, .jh-log, Blaetter). */
html { height: 100%; overflow: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glow), var(--stage-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.jh-noscript { padding: 24px; text-align: center; }

/* ---- Huelle ---- */
/* Am Handy fest am sichtbaren Bereich verankert: --app-h und --vv-top kommen aus visualViewport
   (bindViewport in app.js). So bleibt die Huelle bei offener Tastatur oben stehen, statt in der
   bildschirmhohen Seite zentriert zu werden oder mit dem Verschieben von iOS zu springen. */
.jh-app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translate3d(0, var(--vv-top, 0px), 0);
  width: 100%;
  max-width: 460px;
  height: var(--app-h, 100dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  isolation: isolate;
}
@media (min-width: 560px) and (min-height: 700px) {
  .jh-app {
    position: relative;
    transform: none;
    margin: 0;
    height: min(920px, calc(100dvh - 48px));
    border-radius: 34px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
}
.jh-boot { flex: 1; display: grid; place-items: center; }
.jh-boot-mark { font-weight: 900; font-size: 2.4rem; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Kopfzeile ---- */
.jh-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 8px) 16px 8px;
  min-height: 56px;
}
.jh-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.jh-brand-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.05; }
.jh-logo { flex: none; width: 34px; height: auto; }
.jh-hero-logo { display: block; width: 150px; height: auto; margin: 0 auto; }
.jh-boot-logo { width: 132px; height: auto; }
@media (max-width: 380px) { .jh-logo { width: 28px; } .jh-wordmark { font-size: 1.05rem !important; } }
.jh-wordmark {
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--text);
  width: fit-content;
}
/* Wortmarke tyAja: ty Cyan, A Textfarbe, ja Pink (Gewicht 900 wie der Rest, kein Verlauf) */
.jh-mark-ty { color: var(--sun); }
.jh-mark-a { color: var(--text); }
.jh-mark-ja { color: var(--pink); }
.jh-tag { font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }
.jh-top-actions { display: flex; align-items: center; gap: 6px; }
.jh-langs {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px;
}
.jh-lang {
  border: 0;
  background: transparent;
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
.jh-lang.is-on { background: var(--accent); color: var(--on-accent); }
.jh-sorbflix {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.jh-sorbflix:hover { color: var(--brand-text); text-decoration: underline; }
.jh-app[data-view="chat"] .jh-top { display: none; }

/* ---- Hauptbereich ---- */
.jh-main { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.jh-view { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: jh-fadein 0.18s ease-out both; }
.jh-view.is-still { animation: none; }
/* Einblenden nur ueber die Deckkraft: eine Verschiebung (translateY) laesst den Inhalt beim Seitenwechsel springen */
@keyframes jh-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes jh-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.jh-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 16px 24px; }
.jh-page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 12px; }
.jh-sub { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; }
.jh-text { margin: 0 0 10px; color: var(--text); }
.jh-hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }

/* ---- Reiterleiste ---- */
.jh-tabs {
  flex: none;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px);
}
.jh-app[data-view="chat"] .jh-tabs,
.jh-app[data-view="onboarding"] .jh-tabs,
.jh-app[data-view="auth"] .jh-tabs,
.jh-app[data-view="choice"] .jh-tabs,
.jh-app[data-view="off"] .jh-tabs,
.jh-app[data-view="boot"] .jh-tabs,
.jh-app[data-view="form"] .jh-tabs,
.jh-app[data-view="legal"] .jh-tabs,
.jh-app[data-view="share"] .jh-tabs,
.jh-app[data-view="guest"] .jh-tabs { display: none; }
.jh-app[data-view="form"] .jh-top { display: none; }
.jh-tab {
  position: relative;
  flex: 1;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
}
.jh-tab svg { width: 26px; height: 26px; }
.jh-tab.is-active { color: var(--text); }
.jh-tab.is-active .jh-tab-ico { background: var(--accent); color: var(--on-accent); }
.jh-tab-ico { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background 0.2s ease; }
.jh-tab-ico svg { width: 24px; height: 24px; }
.jh-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pink);
  color: #1a0b10;
  font-size: 0.72rem;
  font-weight: 800;
}

/* ---- Knoepfe, Felder ---- */
.jh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.jh-btn:active { transform: scale(0.97); }
.jh-btn:disabled { opacity: 0.55; cursor: default; }
.jh-btn--primary { background: var(--grad); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.jh-btn--ghost { background: var(--surface-2); color: var(--text); }
.jh-btn--line { background: transparent; color: var(--text); border: 2px solid var(--line); }
.jh-btn--danger { background: transparent; color: var(--danger); border: 2px solid var(--danger); }
.jh-btn--block { width: 100%; }
.jh-btn--link { background: transparent; color: var(--brand-text); min-height: 44px; padding: 0 10px; font-weight: 700; text-decoration: underline; }
.jh-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}
.jh-icon-btn svg { width: 24px; height: 24px; }
.jh-icon-btn:hover { background: var(--surface-2); }

.jh-field { margin: 0 0 16px; }
.jh-label { display: block; font-size: 0.85rem; font-weight: 700; margin: 0 0 6px; color: var(--muted); }
.jh-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 16px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: 14px;
}
.jh-input:focus { border-color: var(--text); outline: 3px solid var(--sun, #00aedd); outline-offset: 1px; }
textarea.jh-input { resize: vertical; min-height: 110px; }
select.jh-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.jh-count { text-align: right; font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.jh-error { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(196, 40, 63, 0.12); color: var(--danger); font-weight: 600; font-size: 0.92rem; }
.jh-info { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 0.92rem; }

.jh-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.jh-pill { position: relative; }
.jh-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.jh-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.jh-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.jh-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.jh-pill input:disabled + span { opacity: 0.5; }

.jh-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.jh-check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--coral); }
.jh-check span { font-size: 0.95rem; }

.jh-chipin { display: flex; gap: 8px; }
.jh-chipin .jh-input { flex: 1; }
.jh-tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.jh-tagrow:empty { display: none; }
.jh-tagx { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 0.88rem; }
.jh-tagx button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; font-size: 1.1rem; color: var(--muted); }
.jh-agerow { display: flex; align-items: center; gap: 10px; }
.jh-agerow .jh-input { width: 84px; text-align: center; }

.jh-vis-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.jh-vis-row:last-child { border-bottom: 0; }
.jh-vis-name { font-weight: 700; flex: none; width: 34%; }
.jh-vis-row .jh-input { flex: 1; min-height: 44px; font-size: 0.9rem; padding-top: 6px; padding-bottom: 6px; }

/* ---- Karten-Abschnitte (Profil, Formulare) ---- */
.jh-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02); }

/* ---- Anmelden ---- */
.jh-auth { padding: 8px 20px 28px; }
.jh-hero { text-align: center; padding: 22px 0 18px; }
.jh-hero-mark {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: var(--grad);
  color: var(--on-brand);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow-sm);
}
.jh-hero h1 { font-size: 1.7rem; letter-spacing: -0.02em; margin: 14px 0 6px; }
.jh-hero h1.jh-wordmark-h1 { font-weight: 900; }
.jh-hero p { margin: 0; color: var(--muted); }
.jh-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.jh-or::before, .jh-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.jh-switch { text-align: center; margin-top: 14px; color: var(--muted); font-size: 0.92rem; }

/* ---- Onboarding ---- */
.jh-progress { flex: none; height: 6px; margin: 4px 16px 0; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.jh-progress i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 0.3s ease; }
.jh-step-count { margin: 10px 16px 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.jh-step-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 14px; }
.jh-nav { flex: none; display: flex; gap: 10px; padding: 10px 16px calc(env(safe-area-inset-bottom) + 14px); background: var(--bg); }
.jh-nav .jh-btn--primary { flex: 1; }

/* ---- Entdecken ---- */
.jh-stage { position: relative; flex: 1; min-height: 0; margin: 0 14px; }
.jh-card {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.jh-card.is-back { transform: scale(0.94) translateY(12px); opacity: 0.92; pointer-events: none; transition: transform 0.25s ease, opacity 0.25s ease; }
.jh-card.is-top { cursor: grab; }
.jh-card.is-grab { cursor: grabbing; }
.jh-media { position: absolute; inset: 0; background: var(--surface-2); }
.jh-media img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.jh-nophoto {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: rgba(42, 26, 31, 0.85);
  font-size: 9rem;
  font-weight: 900;
}
.jh-segs { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 5px; z-index: 3; pointer-events: none; }
.jh-segs i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.4); }
.jh-segs i.on { background: #fff; }
.jh-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(to top, rgba(12, 10, 14, 0.88) 0%, rgba(12, 10, 14, 0.55) 50%, rgba(12, 10, 14, 0) 100%); pointer-events: none; z-index: 2; }
.jh-card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 70px 18px 18px; color: #fff; z-index: 4; pointer-events: none; }
.jh-card-info a { pointer-events: auto; }
.jh-name { margin: 0; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.jh-age { font-weight: 500; }
.jh-place { margin: 4px 0 0; font-size: 0.95rem; opacity: 0.95; display: flex; align-items: center; gap: 4px; }
.jh-place svg { width: 16px; height: 16px; flex: none; }
.jh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jh-chip { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 0.82rem; font-weight: 700; color: #fff; }
.jh-card-info .jh-chip { border: 1px solid rgba(255, 255, 255, 0.28); }
.jh-info-btn {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}
.jh-info-btn svg { width: 24px; height: 24px; }
.jh-menu-btn {
  position: absolute;
  right: 10px;
  top: 22px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}
.jh-menu-btn svg { width: 22px; height: 22px; }
.jh-stamp {
  position: absolute;
  top: 40px;
  z-index: 6;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 6px solid;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.2);
}
.jh-stamp svg { width: 56px; height: 56px; }
.jh-stamp--like { left: 22px; color: #3dd68c; border-color: #3dd68c; transform: rotate(-14deg); }
.jh-stamp--pass { right: 22px; color: #ff6b81; border-color: #ff6b81; transform: rotate(14deg); }
.jh-actions { flex: none; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 14px 16px 14px; }
.jh-round {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.jh-round:active { transform: scale(0.92); }
.jh-round:disabled { opacity: 0.5; }
.jh-round--pass { width: 64px; height: 64px; background: var(--surface); color: #e03a55; }
.jh-round--pass svg { width: 30px; height: 30px; }
.jh-round--like { width: 78px; height: 78px; background: var(--grad); color: #fff; }
.jh-round--like svg { width: 38px; height: 38px; }
.jh-sheet-sub { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }

/* ---- Karten-Menue ---- */
.jh-menu { position: absolute; right: 10px; top: 70px; z-index: 8; min-width: 190px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; }
.jh-menu button { display: block; width: 100%; min-height: 46px; padding: 0 14px; border: 0; background: transparent; text-align: left; font-weight: 700; border-radius: 10px; }
.jh-menu button:hover { background: var(--surface-2); }
.jh-menu .is-danger { color: var(--danger); }

/* ---- Profil und Auswahl als ganze Seite (frueher halbhohes Blatt) ---- */
.jh-sheet-back { position: absolute; inset: 0; z-index: 40; background: var(--surface); display: flex; align-items: stretch; animation: jh-side 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes jh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jh-side { from { transform: translateX(100%); } to { transform: none; } }
.jh-sheet {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  padding: 0 20px calc(env(safe-area-inset-bottom) + 28px);
}
.jh-sheet h3 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.jh-sheet .jh-chips .jh-chip { background: var(--surface-2); color: var(--text); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.jh-sheet p { margin: 6px 0; }
.jh-sheet-bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.jh-social { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin: 0 8px 8px 0; border-radius: 999px; background: var(--surface-2); color: var(--text); font-weight: 700; text-decoration: none; }
.jh-social:hover { background: var(--accent); color: var(--on-accent); }

.jh-sheet-pics { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 4px -4px 12px; padding: 0 4px; scrollbar-width: none; }
.jh-sheet-pics::-webkit-scrollbar { display: none; }
.jh-sheet-pics img { flex: none; width: 86%; max-height: 62vh; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; scroll-snap-align: center; background: var(--surface-2); }
.jh-sheet-pics img:only-child { width: 100%; }
.jh-avatar--link { cursor: pointer; }
.jh-sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; margin: 0 -12px 8px; padding: calc(env(safe-area-inset-top) + 6px) 0 6px; background: var(--surface); }
.jh-sheet-head h3 { flex: 1; min-width: 0; font-size: 1.3rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.jh-sheet-place { margin: 2px 0 8px; color: var(--muted); font-weight: 600; }
.jh-sheet-social { margin-top: 14px; }
.jh-chat-head .jh-menu { top: 100%; right: 8px; }
/* ohne fill-mode: eine haltende Animation wuerde das transform beim Ziehen ueberdecken */
.jh-card.is-enter { animation: jh-grow 0.22s ease-out; }
@keyframes jh-grow { from { transform: scale(0.94) translateY(12px); } to { transform: none; } }

/* ---- Dialog ---- */
.jh-dialog-back { position: absolute; inset: 0; z-index: 60; background: rgba(12, 10, 14, 0.55); display: grid; place-items: center; padding: 20px; animation: jh-fade 0.18s ease both; }
.jh-dialog { width: 100%; max-height: 90%; overflow-y: auto; background: var(--surface); color: var(--text); border-radius: 24px; padding: 22px 20px 18px; box-shadow: var(--shadow); }
.jh-dialog h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 800; }
.jh-dialog p { margin: 0 0 14px; }
.jh-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

/* ---- Match-Bildschirm ---- */
.jh-match { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: calc(env(safe-area-inset-top) + 24px) 28px calc(env(safe-area-inset-bottom) + 24px); background: var(--grad); color: #17141a; text-align: center; animation: jh-fade 0.25s ease both; }
.jh-match h2 { margin: 0; font-size: 2.8rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.jh-match p { margin: 0; font-size: 1.05rem; font-weight: 600; }
.jh-match-pics { display: flex; align-items: center; justify-content: center; margin: 8px 0; }
.jh-match-pic { width: 138px; height: 138px; border-radius: 50%; border: 5px solid #fff; background: #fff; overflow: hidden; display: grid; place-items: center; font-size: 3rem; font-weight: 900; box-shadow: var(--shadow); animation: jh-pop 0.5s cubic-bezier(0.2, 1.4, 0.3, 1) both; }
.jh-match-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jh-match-pic + .jh-match-pic { margin-left: -28px; animation-delay: 0.1s; }
@keyframes jh-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.jh-match .jh-btn { width: 100%; max-width: 320px; }
.jh-match .jh-btn--primary { background: #17141a; color: #fff; box-shadow: none; }
.jh-match .jh-btn--ghost { background: rgba(255, 255, 255, 0.55); color: #17141a; }

/* ---- Matches ---- */
.jh-newrow { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; flex: none; }
.jh-newrow::-webkit-scrollbar { display: none; }
.jh-new { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; color: var(--text); }
.jh-ring { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: var(--grad); }
.jh-ring > .jh-avatar { width: 100%; height: 100%; border: 3px solid var(--bg); }
.jh-new span.jh-new-name { font-size: 0.8rem; font-weight: 700; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--grad); color: var(--on-brand); font-weight: 900; font-size: 1.3rem; }
.jh-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jh-avatar--sm { width: 40px; height: 40px; font-size: 1rem; }
.jh-label-row { margin: 8px 16px 6px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.jh-list { list-style: none; margin: 0; padding: 0 8px; }
.jh-conv { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 8px; border: 0; background: transparent; text-align: left; border-radius: 16px; }
.jh-conv:hover { background: var(--surface-2); }
.jh-conv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jh-conv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.jh-conv-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-conv-time { font-size: 0.75rem; color: var(--muted); flex: none; }
.jh-conv-last { color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-conv.is-unread .jh-conv-last { color: var(--text); font-weight: 700; }
.jh-dot { flex: none; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--pink); color: #1a0b10; font-size: 0.75rem; font-weight: 800; }

/* ---- Chat ---- */
.jh-chat { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--bg); padding-top: env(safe-area-inset-top); }
.jh-chat-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; }
.jh-chat-name { flex: 1; min-width: 0; font-weight: 800; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: transparent; border: 0; text-align: left; padding: 8px 4px; }
.jh-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 4px; }
.jh-day { align-self: center; margin: 10px 0 6px; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.jh-msg { max-width: 80%; padding: 9px 13px 6px; border-radius: 20px; overflow-wrap: anywhere; animation: jh-fadein 0.16s ease-out both; }
.jh-msg p { margin: 0; white-space: pre-wrap; }
.jh-msg time { display: block; margin-top: 2px; font-size: 0.68rem; opacity: 0.7; text-align: right; }
.jh-msg.is-mine { align-self: flex-end; background: var(--mine-bg); color: var(--mine-text); border-bottom-right-radius: 6px; }
.jh-msg.is-theirs { align-self: flex-start; background: var(--theirs-bg); color: var(--theirs-text); border-bottom-left-radius: 6px; }
.jh-e2e-bar { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; font-size: 0.82rem; background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--line); }
.jh-e2e-bar[hidden] { display: none; }
.jh-e2e-bar svg { flex: none; width: 16px; height: 16px; }
.jh-e2e-bar .jh-e2e-text { flex: 1; min-width: 0; }
.jh-e2e-bar .jh-btn { flex: none; }
.jh-e2e-bar.is-on { color: var(--ok); font-weight: 600; }
.jh-msg.is-sealed p { font-style: italic; opacity: 0.75; }
.jh-msg-note { display: block; margin-top: 2px; font-size: 0.72rem; font-weight: 600; opacity: 0.8; }
.jh-e2e-form .jh-field { margin-bottom: 12px; }
.jh-e2e-form .jh-hint { margin: 0 0 14px; }
.jh-e2e-actions { margin-top: 10px; }
.jh-e2e-warn { font-weight: 700; }
.jh-e2e-code { margin: 0 0 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; text-align: center; word-spacing: 0.3em; }
.jh-linkbtn { display: inline-block; margin-top: 12px; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.88rem; text-decoration: underline; }
.jh-offline { margin: 0; padding: 6px 14px; text-align: center; font-size: 0.82rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.jh-compose { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(env(safe-area-inset-bottom) + 8px); background: var(--surface); border-top: 1px solid var(--line); }
.jh-compose textarea { flex: 1; min-height: 46px; max-height: 140px; padding: 11px 16px; font-size: 16px; line-height: 1.3; border: 2px solid var(--line); border-radius: 24px; background: var(--bg); color: var(--text); resize: none; overflow-y: auto; }
.jh-compose textarea:focus { outline: 3px solid var(--sun, #00aedd); outline-offset: 1px; border-color: var(--text); }
.jh-send { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--grad); color: var(--on-brand); }
.jh-send svg { width: 24px; height: 24px; }
.jh-send:disabled { opacity: 0.5; }

/* ---- Profil ---- */
.jh-preview { position: relative; height: 420px; max-height: 62vh; margin: 0 0 6px; }
.jh-preview .jh-card { cursor: default; }
.jh-prev-label { margin: 0 0 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.jh-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.jh-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.jh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jh-photo button { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.1rem; }
.jh-save-bar { position: sticky; bottom: 0; padding: 10px 0 4px; background: linear-gradient(to top, var(--bg) 70%, rgba(0, 0, 0, 0)); }

/* ---- Zustaende ---- */
.jh-skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 14px; }
.jh-skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); animation: jh-shim 1.3s infinite; }
:root[data-theme="dark"] .jh-skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); }
@keyframes jh-shim { to { transform: translateX(100%); } }
.jh-skel-card { position: absolute; inset: 0; border-radius: 26px; }
.jh-skel-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.jh-skel-row .jh-skel:first-child { width: 56px; height: 56px; border-radius: 50%; }
.jh-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.jh-skel-lines .jh-skel { height: 14px; }
.jh-skel-lines .jh-skel:last-child { width: 60%; }
.jh-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px 32px; color: var(--muted); }
.jh-empty svg { width: 120px; height: 120px; }
.jh-empty p { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--text); max-width: 28ch; }
.jh-empty .jh-btn { color: var(--on-brand); }
.jh-toasts { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 64px); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.jh-toast { max-width: 100%; padding: 12px 18px; border-radius: 16px; background: #17141a; color: #fff; font-weight: 700; font-size: 0.92rem; box-shadow: var(--shadow); animation: jh-in 0.2s ease-out both; }
:root[data-theme="dark"] .jh-toast { background: #f6f1ea; color: #17141a; }
.jh-toast.is-success { background: #1f7a4d; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .jh-skel::after { display: none; }
}
@media (max-height: 560px) {
  .jh-actions { padding: 8px 16px; gap: 20px; }
  .jh-round--like { width: 64px; height: 64px; }
  .jh-round--pass { width: 54px; height: 54px; }
}


/* ======================================================================
   Ausbau: Seitenkopf, Auswahlblaetter, Gruppen, Forum, Einstellungen, Rechtstexte
   (nur Tokens aus :root; Feste Farben nur auf Bildern)
   ====================================================================== */
.jh-pagehead { flex: none; display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 6px) 8px 6px; position: relative; }
.jh-pagehead-title { flex: 1; min-width: 0; margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-app[data-view="legal"] .jh-pagehead { padding-top: 6px; }
.jh-ghead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 0 16px; }
.jh-ghead .jh-page-title { margin: 4px 0 8px; }
.jh-icon-btn--brand { background: var(--grad); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.jh-icon-btn--brand:hover { background: var(--grad); }
.jh-btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.jh-sub--gap { margin-top: 18px; }
.jh-hint--center { text-align: center; padding: 0 16px; }
.jh-prev-label--gap { margin-top: 14px; }

/* Auswahlblatt */
.jh-panel .jh-sheet-head h3 { font-size: 1.2rem; }
.jh-pick { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.jh-picklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jh-picklist.is-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.jh-pickitem { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 48px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-align: left; font-weight: 700; }
.jh-pickitem:hover { background: var(--surface-2); }
.jh-pickitem.is-on, .jh-pickitem[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.jh-pickitem-sub { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.jh-pickitem.is-on .jh-pickitem-sub { color: var(--on-accent); }
.jh-picklist.is-grid .jh-pickitem { align-items: center; padding: 8px 4px; text-align: center; }
.jh-pick .jh-btn svg { width: 20px; height: 20px; }

/* Zeile "Beschriftung ... Wert >" */
.jh-pickrows { display: flex; flex-direction: column; }
.jh-pickrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.jh-pickrows .jh-pickrow:last-child { border-bottom: 0; }
.jh-pickrow-name { flex: none; font-weight: 700; }
.jh-pickrow-val { flex: 1; min-width: 0; text-align: right; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-pickrow-val.is-empty { color: var(--muted); }
.jh-pickrow svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.jh-field > .jh-pickrow { border: 2px solid var(--line); border-radius: 14px; padding: 8px 14px; background: var(--surface); }

/* Chips zum Waehlen */
.jh-chipgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.jh-chipbtn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 0.9rem; }
.jh-chipbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.jh-chipbtn:disabled { opacity: 0.45; cursor: default; }
.jh-ints-head { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.jh-ints-count { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.jh-ints .jh-input { margin: 4px 0 6px; }
.jh-int-group .jh-sheet-sub { margin-top: 12px; }

/* Prompts */
.jh-prompt-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.jh-prompt-card { padding: 12px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); }
.jh-prompt-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.jh-prompt-q { flex: 1; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--brand-text); text-align: left; font-weight: 800; }
.jh-prompt-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; }
.jh-prompt-card textarea.jh-input { min-height: 72px; }
.jh-prompt-view { margin: 12px 0; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); }
.jh-prompt-view-q { font-size: 0.8rem; font-weight: 800; color: var(--brand-text); }
.jh-prompt-view-a { margin: 4px 0 0 !important; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }

/* Profil in der Ansicht */
.jh-pv { display: flex; flex-direction: column; }
.jh-pv .jh-chips { margin-top: 8px; }
.jh-pv .jh-chip { background: var(--surface-2); color: var(--text); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.jh-pv-seek { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 !important; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); }
.jh-pv-seek-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.jh-sheet-place { display: flex; align-items: center; gap: 4px; }
.jh-sheet-place svg { width: 16px; height: 16px; flex: none; }
.jh-going { display: flex; flex-direction: column; gap: 6px; }
.jh-going-item { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--text); text-align: left; }
.jh-going-item svg { width: 20px; height: 20px; flex: none; color: var(--brand-text); }
.jh-going-title { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-going-when { flex: none; font-size: 0.8rem; color: var(--muted); }
.jh-pv--page { padding-bottom: 12px; }
.jh-preview .jh-card { box-shadow: var(--shadow-sm); }

/* Umschalter */
.jh-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.jh-seg-btn { position: relative; flex: 1; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 800; font-size: 0.9rem; }
.jh-seg-btn[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.jh-seg--tabs { margin: 14px 0 10px; }
.jh-seg-btn .jh-dot { margin-left: 6px; min-width: 18px; height: 18px; font-size: 0.7rem; }
.jh-dbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; }
.jh-dbar .jh-seg { flex: 1; }
.jh-view > .jh-seg { margin: 0 14px 8px; }
.jh-filter-btn { flex: none; }
.jh-gbar { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 0 14px 8px; }
.jh-gsearch { display: flex; gap: 8px; }
.jh-gsearch .jh-input { flex: 1; min-height: 44px; }

/* Gruppen */
.jh-gcards { display: flex; flex-direction: column; gap: 10px; }
.jh-gcard { display: flex; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); text-align: left; box-shadow: var(--shadow-sm); }
.jh-gico { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; background: var(--grad); color: var(--on-brand); }
.jh-gico svg { width: 28px; height: 28px; }
.jh-gico.is-photo { background: var(--surface-2); }
.jh-gico.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.jh-gico.is-big { width: 84px; height: 84px; border-radius: 26px; }
.jh-gico.is-big svg { width: 44px; height: 44px; }
.jh-gico-avatar { background: var(--grad); }
.jh-gico-avatar svg { width: 20px; height: 20px; }
.jh-gcard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jh-gcard-top { display: flex; align-items: center; gap: 8px; }
.jh-gcard-title { flex: 1; margin: 0; font-size: 1.05rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-gcard-meta { display: flex; flex-direction: column; gap: 2px; }
.jh-ginfo { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--muted); min-width: 0; }
.jh-ginfo svg { width: 16px; height: 16px; flex: none; }
.jh-ginfo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-gdetail .jh-ginfo { font-size: 0.95rem; color: var(--text); margin: 4px 0; }
.jh-gdetail .jh-ginfo span { white-space: normal; }
.jh-gcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.jh-tagpill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 0.75rem; font-weight: 800; }
.jh-tagpill.is-on { background: var(--accent); color: var(--on-accent); }
.jh-gowner { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.jh-avatar--xs { width: 22px; height: 22px; font-size: 0.7rem; }
.jh-nophoto--group svg { width: 38%; height: 38%; color: var(--on-brand); }
.jh-ghero { position: relative; margin: 0 -16px 8px; padding: 18px 16px; display: flex; align-items: center; gap: 14px; background: var(--grad-soft); color: var(--on-brand); overflow: hidden; }
.jh-ghero-title { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.jh-ghero .jh-chips { margin-top: 6px; }
.jh-ghero .jh-chip { background: rgba(255, 255, 255, 0.5); color: var(--on-brand); }
.jh-gdesc { margin: 10px 0 !important; }
.jh-gactions { margin: 12px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.jh-gactions .jh-btn { position: relative; }
.jh-mlist { display: flex; flex-direction: column; gap: 4px; }
.jh-mrow { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 4px 0; }
.jh-mrow-text { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border: 0; background: transparent; padding: 6px 0; color: var(--text); text-align: left; }
.jh-mrow-name { font-weight: 800; }
.jh-mrow-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.jh-label-row--flush { margin-left: 0; margin-right: 0; }
.jh-stepper { display: inline-flex; align-items: center; gap: 8px; }
.jh-stepper-btn { background: var(--surface-2); font-size: 1.5rem; font-weight: 800; }
.jh-stepper-val { min-width: 48px; text-align: center; font-size: 1.4rem; font-weight: 800; }
.jh-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jh-sugg { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.jh-link-row { display: grid; grid-template-columns: 1fr 1.6fr 44px; gap: 6px; margin-bottom: 8px; }
.jh-link-row .jh-input { min-height: 44px; padding: 6px 10px; }
.jh-cover-prev { width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; background: var(--surface-2); overflow: hidden; margin-bottom: 10px; }
.jh-cover-prev img { width: 100%; height: 100%; object-fit: cover; }
.jh-cover-badge, .jh-cover-set { position: absolute; left: 4px; bottom: 4px; padding: 3px 8px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.7rem; font-weight: 800; }
.jh-cover-set { background: rgba(0, 0, 0, 0.6); color: #fff; min-height: 28px; }
.jh-photos--small { grid-template-columns: repeat(4, 1fr); gap: 6px; }

/* Forum */
.jh-forum { display: flex; flex-direction: column; gap: 12px; }
.jh-fcompose { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.jh-fcompose textarea.jh-input { min-height: 80px; }
.jh-fcompose-bar { display: flex; align-items: center; gap: 8px; }
.jh-fcompose-bar .jh-hint { flex: 1; margin: 0; }
.jh-fcompose-bar .jh-btn--primary { margin-left: auto; }
.jh-posts { display: flex; flex-direction: column; gap: 10px; }
.jh-post { padding: 12px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.jh-post.is-pinned { border-color: var(--accent); }
.jh-post-head { display: flex; align-items: center; gap: 10px; }
.jh-post-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jh-post-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 800; }
.jh-post-who time, .jh-reply-head time { font-size: 0.75rem; color: var(--muted); }
.jh-post-body { margin: 10px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.jh-post-pics { display: grid; gap: 4px; margin: 6px 0; border-radius: 14px; overflow: hidden; }
.jh-post-pics.n1 { grid-template-columns: 1fr; }
.jh-post-pics.n2, .jh-post-pics.n3, .jh-post-pics.n4 { grid-template-columns: 1fr 1fr; }
.jh-post-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-2); }
.jh-post-pics.n1 img { aspect-ratio: 4 / 3; }
.jh-post-menu { flex: none; }
.jh-pin-badge { flex: none; }
.jh-replies { margin-top: 6px; padding-left: 12px; border-left: 3px solid var(--line); }
.jh-reply { margin: 8px 0; }
.jh-reply-head { display: flex; align-items: baseline; gap: 8px; }
.jh-reply p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.jh-reply-form { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.jh-reply-form .jh-input { flex: 1; min-height: 44px; }
.jh-send--sm { width: 44px; height: 44px; }
.jh-forum-empty { text-align: center; padding: 18px 0; }
.jh-msg-name { display: block; margin-bottom: 2px; font-size: 0.72rem; font-weight: 800; opacity: 0.8; }

/* Einstellungen, Schalter, Listen */
.jh-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; }
.jh-switch-label { font-weight: 700; }
.jh-switch-knob { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--line); transition: background 0.2s ease; }
.jh-switch-knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.2s ease; }
.jh-switch-row[aria-checked="true"] .jh-switch-knob { background: var(--ok); }
.jh-switch-row[aria-checked="true"] .jh-switch-knob::after { transform: translateX(22px); }
.jh-switch-row:disabled { opacity: 0.55; }
.jh-push-types { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.jh-push-types-title { margin: 0 0 2px; font-weight: 700; }
.jh-push-types .jh-switch-label { font-weight: 500; }
.jh-push-types .jh-btn { margin-top: 12px; }
.jh-steps { margin: 8px 0 0; padding-left: 20px; color: var(--text); }
.jh-steps li { margin: 4px 0; }
.jh-linklist { display: flex; flex-direction: column; }
.jh-linkrow { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none; }
.jh-linkrow:last-child { border-bottom: 0; }
.jh-linkrow:hover { color: var(--brand-text); }
.jh-block-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.jh-block-name { font-weight: 700; }

/* Rechtstexte */
.jh-legal { padding-bottom: 16px; }
.jh-legal-body { overflow-wrap: anywhere; }
.jh-legal-body h1, .jh-legal-body h2, .jh-legal-body h3, .jh-legal-body h4 { margin: 18px 0 6px; letter-spacing: -0.01em; line-height: 1.2; }
.jh-legal-body h1 { font-size: 1.4rem; } .jh-legal-body h2 { font-size: 1.2rem; } .jh-legal-body h3 { font-size: 1.05rem; } .jh-legal-body h4 { font-size: 1rem; }
.jh-legal-body p, .jh-legal-body li, .jh-legal-body dd, .jh-legal-body td { font-size: 0.95rem; line-height: 1.5; }
.jh-legal-body p { margin: 6px 0; }
.jh-legal-body ul, .jh-legal-body ol { padding-left: 22px; margin: 6px 0; }
.jh-legal-body a, .jh-legal-links a, .jh-legal-foot a, .jh-legal-inline a { color: var(--brand-text); text-decoration: underline; }
.jh-legal-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.jh-legal-body th, .jh-legal-body td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.jh-legal-body .legal-box { margin: 10px 0; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); }
.jh-legal-body .legal-stand, .jh-legal-body .legal-basis { color: var(--muted); font-size: 0.85rem; }
.jh-legal-body .legal-table-wrap { overflow-x: auto; margin: 8px 0; }
.jh-legal-links { margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
.jh-legal-foot { margin: 22px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.jh-legal-inline { margin: 8px 0; }

@media (max-width: 380px) {
  .jh-picklist.is-grid { grid-template-columns: repeat(3, 1fr); }
  .jh-link-row { grid-template-columns: 1fr 44px; }
  .jh-link-row .jh-input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}


/* ---- Nachbesserungen nach Browserpruefung ---- */
.jh-btn svg { width: 20px; height: 20px; flex: none; }
.jh-seg--tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.jh-seg--tabs::-webkit-scrollbar { display: none; }
.jh-seg--tabs .jh-seg-btn { flex: 1 0 auto; padding: 0 8px; font-size: 0.76rem; white-space: nowrap; }
.jh-photo .jh-cover-set { top: auto; right: auto; left: 4px; bottom: 4px; width: auto; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; background: rgba(0, 0, 0, 0.6); color: #fff; }
.jh-photo .jh-cover-badge { position: absolute; left: 4px; bottom: 4px; }
.jh-save-bar { margin-bottom: 14px; }
.jh-vis-row { flex-direction: column; align-items: stretch; gap: 6px; }
.jh-vis-name { width: auto; }
.jh-vis-row .jh-input { flex: none; }
.jh-legal-body a.jh-btn { text-decoration: none; color: var(--text); }
.jh-hint--center { margin: 0 0 8px; }
.jh-nav .jh-btn { padding: 0 16px; font-size: 0.95rem; white-space: nowrap; }
.jh-nav { flex-wrap: wrap; }
.jh-nav .jh-btn--primary { flex: 1 1 auto; min-width: 120px; }
.jh-scroll { scroll-padding-bottom: 80px; }


/* ===============================================================   Bilder ganz zeigen (fitImage), Lightbox, Zuschneiden
   ====================================================================== */
.jh-lb, .jh-crop { --viewer-bg: #0a080c; --viewer-text: #fff; --viewer-btn: rgba(255, 255, 255, 0.16); }
.jh-fit { position: relative; overflow: hidden; isolation: isolate; background: var(--surface-2); }
.jh-fit > .jh-fit-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); filter: blur(22px) brightness(0.62) saturate(1.15); pointer-events: none; }
.jh-fit > .jh-fit-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.jh-media > .jh-fit { position: absolute; inset: 0; }
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline-offset: -3px; }
.jh-sheet-pics img.is-zoomable:only-child { aspect-ratio: 4 / 3; }
/* Gruppenseite: Titelbild oben, Titel und Chips als normaler Text darunter */
.jh-gcover { margin: 0 -16px 8px; }
.jh-gcover-pic { height: min(62vw, 340px); }
.jh-gcover-text { padding: 14px 16px 2px; color: var(--text); }
.jh-gcover-text .jh-ghero-title { color: var(--text); }
.jh-gcover-text .jh-chips { margin-top: 6px; }
.jh-gcover-credit { margin: 6px 0 0; padding: 0 16px; font-size: 0.78rem; overflow-wrap: anywhere; }
.jh-gcover-text .jh-chip { background: var(--surface-2); color: var(--text); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.jh-fit--sheet { height: min(62vw, 300px); border-radius: 18px; margin: 4px 0 12px; }
.jh-cover-prev .jh-fit { width: 100%; height: 100%; }

.jh-lb { position: absolute; inset: 0; z-index: 60; background: var(--viewer-bg); color: var(--viewer-text); touch-action: none; animation: jh-fade 0.18s ease both; }
.jh-lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.jh-lb-img { display: block; width: 100%; height: 100%; object-fit: contain; will-change: transform; }
.jh-lb-close, .jh-lb-nav { position: absolute; z-index: 2; background: var(--viewer-btn); color: var(--viewer-text); }
.jh-lb-close:hover, .jh-lb-nav:hover { background: rgba(255, 255, 255, 0.26); }
.jh-lb-close { top: calc(env(safe-area-inset-top) + 10px); right: 10px; }
.jh-lb-nav { top: 50%; margin-top: -22px; }
.jh-lb-credit { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); text-align: center; font-size: 0.8rem; color: var(--viewer-text); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); pointer-events: none; overflow-wrap: anywhere; }
.jh-lb-prev { left: 8px; }
.jh-lb-next { right: 8px; }
.jh-lb-next svg { transform: rotate(180deg); }
.jh-lb-count { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top) + 20px); left: 64px; right: 64px; text-align: center; font-weight: 700; font-size: 0.95rem; pointer-events: none; }

.jh-crop { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--viewer-bg); color: var(--viewer-text); padding-top: env(safe-area-inset-top); animation: jh-fade 0.18s ease both; }
.jh-crop-head { flex: none; padding: 14px 16px 8px; text-align: center; }
.jh-crop-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.jh-crop-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; }
.jh-crop-stage:active { cursor: grabbing; }
.jh-crop-view { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; display: block; pointer-events: none; will-change: transform; }
.jh-crop-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 2px solid var(--viewer-text); border-radius: 6px; box-shadow: 0 0 0 100vmax rgba(10, 8, 12, 0.66); pointer-events: none; }
.jh-crop-tools { flex: none; padding: 10px 16px 0; }
.jh-crop-aspects { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.jh-crop-chip { min-height: 40px; padding: 0 16px; border: 2px solid var(--viewer-btn); border-radius: 999px; background: transparent; color: var(--viewer-text); font-weight: 700; font-size: 0.9rem; }
.jh-crop-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.jh-crop-zoom { display: flex; align-items: center; gap: 12px; }
.jh-crop-zlab { flex: none; font-size: 0.85rem; font-weight: 700; opacity: 0.8; }
.jh-crop-zoom input[type="range"] { flex: 1; min-height: 44px; accent-color: var(--accent); }
.jh-crop-hint { margin: 2px 0 0; text-align: center; font-size: 0.8rem; opacity: 0.7; }
.jh-crop-foot { flex: none; display: flex; gap: 10px; padding: 12px 16px calc(env(safe-area-inset-bottom) + 14px); }
.jh-crop-foot .jh-btn { flex: 1; }
.jh-crop-foot .jh-btn--ghost { background: var(--viewer-btn); color: var(--viewer-text); }

/* ======================================================================
   App-Gefuehl: kein Zoomen, keine Markierung von Bedienelementen, direktes Tippen
   ====================================================================== */
.jh-app { touch-action: pan-x pan-y; -webkit-touch-callout: none; }
.jh-app :is(button, .jh-tab, .jh-card, .jh-chip, .jh-pill, .jh-chipbtn, .jh-seg, .jh-gcard, .jh-conv, .jh-pagehead, .jh-top, .jh-tabs, .jh-badge, .jh-menu, .jh-sheet-head, .jh-boot, h1, h2, h3, h4, label.jh-label, .jh-gcover-pic, .jh-fit, .jh-lb, .jh-crop) {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.jh-app :is(input, textarea, select) { -webkit-user-select: text; user-select: text; }
.jh-app img, .jh-app canvas { -webkit-user-drag: none; -webkit-touch-callout: none; }
.jh-app a, .jh-app button, .jh-app label { -webkit-tap-highlight-color: transparent; }
/* Rueckmeldung beim Antippen; :where haelt die Spezifitaet niedrig, eigene :active-Regeln (z. B. .jh-btn, .jh-round) gewinnen */
:where(.jh-app) :where(button:not(:disabled), a.jh-tab) { transition: transform 0.12s ease, background-color 0.12s ease, opacity 0.12s ease; }
:where(.jh-app) :where(button:not(:disabled)):active { transform: scale(0.96); opacity: 0.82; }
.jh-conv:active, .jh-gcard:active, .jh-pickitem:active, .jh-going-item:active, .jh-menu button:active { background: var(--surface-2); }
.jh-tab:active .jh-tab-ico { transform: scale(0.9); }
.jh-tab-ico { transition: background 0.2s ease, transform 0.12s ease; }
.jh-lb-close:active, .jh-lb-nav:active { background: rgba(255, 255, 255, 0.3); }
.jh-lb-nav:active { transform: scale(0.94); }
@media (prefers-reduced-motion: reduce) {
  :where(.jh-app) :where(button:not(:disabled)):active { transform: none; }
  .jh-btn:active, .jh-round:active, .jh-tab:active .jh-tab-ico { transform: none; }
}
/* ---- Teilen und Wiederkommen (Version 1.5.x): nur Tokens, hell und dunkel ueber dieselben Variablen ---- */
/* Leerer Stapel mit Gruppen, wartenden Likes und Einladung */
.jh-stage > .jh-empty--rich { position: absolute; inset: 0; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; padding: 18px 8px 24px; gap: 12px; }
.jh-empty--rich .jh-empty-art svg { width: 96px; height: 96px; }
.jh-empty-sub { color: var(--muted) !important; font-weight: 600 !important; }
.jh-empty-likes { padding: 8px 14px; border-radius: 14px; background: var(--surface-2); }
.jh-empty-likes[hidden] { display: none; }
.jh-suggest { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.jh-suggest[hidden] { display: none; }
.jh-suggest-title { margin: 6px 0 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.jh-empty--rich .jh-btn--ghost { color: var(--text); }

/* Teilen in der Gruppenansicht und Schalter beim Anlegen */
.jh-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.jh-share-opt { margin: 14px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.jh-share-opt[hidden] { display: none; }
.jh-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 16px 20px; }
.jh-qr-code { width: min(72vw, 280px); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.jh-qr-code svg { display: block; width: 100%; height: auto; }
.jh-qr-hint { text-align: center; margin: 0; }
.jh-qr-url { margin: 0; max-width: 100%; font-size: 0.8rem; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.jh-qr .jh-btn { max-width: 320px; }

/* Oeffentliche Vorschau einer geteilten Gruppe (ohne Anmeldung) */
.jh-share { padding-top: 14px; }
.jh-share-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.jh-share-cover { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.jh-share-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jh-share-cover:not(.has-cover) { display: grid; place-items: center; background: var(--grad-soft); }
.jh-share-body { padding: 14px 16px 16px; }
.jh-share-title { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; overflow-wrap: anywhere; }
.jh-share-body .jh-chips { margin: 0 0 8px; }
.jh-share-body .jh-chip { background: var(--surface-2); color: var(--text); }
.jh-share-body .jh-ginfo { font-size: 0.95rem; color: var(--text); margin: 4px 0; }
.jh-share-body .jh-ginfo span { white-space: normal; }
.jh-share-hint { text-align: center; }
.jh-share-gone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 8px; color: var(--muted); }
.jh-share-gone > svg { width: 72px; height: 72px; }
.jh-share-gone .jh-btn { margin-top: 10px; }

/* Match-Bild: bis zu 3 Gemeinsamkeiten */
.jh-match-common { width: 100%; max-width: 320px; }
.jh-match .jh-match-common-title { margin: 0 0 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.jh-match-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.jh-match-chip { max-width: 100%; padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 0.85rem; font-weight: 700; overflow-wrap: anywhere; }

/* Leerer Chat: antippbare Einstiege */
.jh-chat-empty { margin: 0; padding: 8px 0; }
.jh-chat-empty-text { margin: 0 0 10px; }
.jh-starters { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.jh-starters-title { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.jh-starter { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); font: inherit; font-size: 0.92rem; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.jh-starter:hover { border-color: var(--accent); }
.jh-starter:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.jh-match { overflow-y: auto; justify-content: safe center; }

/* Startseite / Willkommensbild */
.jh-benefits { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jh-benefits li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-weight: 600; }
.jh-benefits svg { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.jh-benefits span { min-width: 0; overflow-wrap: anywhere; }
.jh-landing-as { margin: 0 0 12px; text-align: center; font-weight: 700; overflow-wrap: anywhere; }
.jh-auth-back { align-self: flex-start; margin: 0 0 4px; padding-left: 0; }


/* ---- Runde 3: Aktivitaeten- und Tag-Suche, Teilnehmerzahl, Sichtbarkeit ----
   Platz fuer gewaehlte Tags und Ergebnisse ist reserviert, damit beim Tippen und Waehlen nichts springt. */
.jh-tf-count { text-align: right; margin: 0 0 4px; }
.jh-tf-picked { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 40px; margin: 0 0 8px; }
.jh-tf-res { min-height: 132px; margin-top: 8px; }
.jh-tf-res .jh-sheet-sub:first-child { margin-top: 4px; }
.jh-tf-new { margin-top: 10px; }
.jh-maxbox { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.jh-input--num { width: 112px; text-align: center; font-size: 1.25rem; font-weight: 800; }
.jh-input--num:disabled { opacity: 0.45; }
.jh-maxbox-sw .jh-switch-row { width: auto; gap: 12px; }
.jh-maxbox-err { flex-basis: 100%; min-height: 1.3em; margin: 0; color: var(--danger, #c0264f); }
.jh-vis-hint { min-height: 2.7em; }
p.jh-hint[role="status"] { min-height: 1.3em; }
.jh-dbar--skel { height: 56px; }
.jh-actions--skel { height: 106px; }
.jh-input[aria-invalid="true"] { border-color: var(--danger); }
.jh-field[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 14px; }

/* ---- Fotos umsortieren ---- */
.jh-photos--sort { align-items: start; row-gap: 12px; }
.jh-photo-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.jh-photos--sort .jh-photo { touch-action: pan-y; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; transition: box-shadow 0.15s; }
.jh-photos--sort.is-dragging .jh-photo { touch-action: none; }
.jh-photo.is-drag { z-index: 5; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); opacity: 0.92; transition: none; cursor: grabbing; }
.jh-photo-wrap.is-target .jh-photo { outline: 3px solid var(--accent); outline-offset: -3px; }
.jh-photo-bar { display: flex; gap: 6px; }
.jh-photo-mv { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.jh-photo-mv svg { width: 18px; height: 18px; }
.jh-photo-mv:disabled { opacity: 0.35; cursor: default; }
.jh-photo-set, .jh-photo-cover { height: 32px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jh-photo-set { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.jh-photo-cover { background: var(--accent); color: var(--on-accent); }

/* Einladungs-Ansicht fuer Gaeste (/jank-hanka/hej): Zaehler, Rueckblick auf die zwei Wische, Gruppenliste */
.jh-guest-count { flex: none; margin: 0 14px 6px; text-align: center; font-size: 0.85rem; font-weight: 800; color: var(--muted); }
.jh-guest-hello { text-align: center; margin: 4px 0 8px; }
.jh-guest-age { text-align: center; margin: 0 0 16px; }
.jh-guest-gh { margin: 4px 0 10px; }
.jh-guest-groups { display: flex; flex-direction: column; gap: 10px; }
.jh-guest-done { padding-top: 8px; }
.jh-guest-done .jh-step-title { text-align: center; }
.jh-guest-done .jh-text, .jh-guest-done .jh-hint { text-align: center; }
.jh-guest-done .jh-btn--block { margin-top: 10px; }
.jh-guest-recap { display: flex; justify-content: center; gap: 18px; margin: 14px 0 16px; }
.jh-guest-pick { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.jh-guest-pick figcaption { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.jh-guest-pic { position: relative; width: 96px; height: 128px; border-radius: 18px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-size: 2rem; font-weight: 800; box-shadow: var(--shadow-sm); }
.jh-guest-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.jh-guest-badge { position: absolute; right: -8px; bottom: -8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; box-shadow: var(--shadow-sm); }
.jh-guest-badge svg { width: 20px; height: 20px; }
.jh-guest-badge--like { background: var(--grad); color: #fff; }
.jh-guest-badge--pass { background: var(--surface); color: #e03a55; border: 1px solid var(--line); }

/* Privatnachrichten an Gruppenmitglieder: Anfragen im Reiter der Chats, Schreiben-Seite, Knoepfe in der Mitgliederliste */
.jh-dm { padding: 0 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.jh-dm-head { display: flex; align-items: center; gap: 8px; }
.jh-dm-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0; }
.jh-dmcard { margin: 0 8px 10px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.jh-dmcard-top { display: flex; align-items: center; gap: 12px; position: relative; }
.jh-dmcard-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jh-dm-from { color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-dm-wait { color: var(--muted); font-size: 0.85rem; }
.jh-dmcard-body { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 12em; overflow-y: auto; }
.jh-dmcard-btns { display: flex; gap: 8px; }
.jh-dmcard-btns .jh-btn { flex: 1; }
.jh-dmrow { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.jh-dm-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; flex: none; }
.jh-dm-actions.is-compact { max-width: 46%; }
.jh-dm-actions .jh-btn { min-height: 40px; padding: 0 12px; font-size: 0.85rem; line-height: 1.15; text-align: center; }
.jh-dm-actions .jh-btn:disabled { opacity: 1; color: var(--muted); }
.jh-sheet > .jh-dm-actions { margin: 12px 16px 0; }
.jh-conv-origin { font-size: 0.78rem; font-weight: 700; color: var(--brand-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: anywhere; }
.jh-chat-note { flex: none; margin: 0; padding: 6px 16px; font-size: 0.82rem; font-weight: 700; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: anywhere; }
.jh-dmw-who { display: flex; align-items: center; gap: 14px; padding: 12px 16px 4px; }
.jh-dmw-name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; background: transparent; padding: 0; color: var(--text); text-align: left; }
.jh-dmw-title { font-size: 1.15rem; font-weight: 800; }
.jh-dmw-place { color: var(--muted); font-size: 0.9rem; }
.jh-dmw-hint { margin: 8px 16px 12px; }
.jh-dmw-input { margin: 0 16px; width: calc(100% - 32px); }
.jh-dmw-count { margin: 4px 16px 12px; text-align: right; font-size: 0.8rem; color: var(--muted); }
.jh-dmw-input ~ .jh-btn { margin: 0 16px; width: calc(100% - 32px); }
.jh-dmrow .jh-btn { flex: none; max-width: 42%; min-height: 40px; height: auto; padding: 6px 12px; font-size: 0.82rem; line-height: 1.15; text-align: center; }
