/* felie.app/demo - wie die App (mobile/startseite/Startseite.js, mobile/ui/marke.js): Farben,
   Schriften lokal (keine Anfrage an Google), Masse der Startseite. Am Desktop im Handyrahmen,
   am Handy bildschirmfuellend. */
@font-face { font-family: 'Alice'; src: url('schriften/alice-v21-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('schriften/montserrat-v31-latin-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('schriften/montserrat-v31-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('schriften/montserrat-v31-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('schriften/montserrat-v31-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --plum: #180430; --lime: #e1ea7d; --lilac-light: #e2d8f0; --lav: #E6E0EE; --lila: #6f3d9e;
  --lila-mittel: #8F5BBD; --chat-grund: #F6F3FA; --text-sekundaer: #6B5A88; --weiss: #ffffff;
  --rand: rgba(143, 91, 189, 0.18); --rand-nutzerin: rgba(143, 91, 189, 0.22); --cta-grund: #F3EFFA; --cta-rand: rgba(143, 91, 189, 0.3);
  --karte-grund: #CFC0E6;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Montserrat', -apple-system, 'Helvetica Neue', Arial, sans-serif; font-weight: 400; color: var(--plum); background: #d9cfe8; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; padding: 0; }
p, h1, h2 { margin: 0; }
[hidden] { display: none !important; }

/* Kein sichtbarer Scrollbalken im Handy (Marcel 06.11.2026): scrollen geht weiter, wie auf dem Geraet. */
.telefon * { scrollbar-width: none; }
.telefon *::-webkit-scrollbar { display: none; }

/* Seite: Handy mittig (Desktop), ganze Flaeche (Handy) */
.seite { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.telefon { position: relative; width: 390px; height: min(844px, calc(100vh - 120px)); min-height: 640px; border-radius: 52px; overflow: hidden; background: var(--plum);
  box-shadow: 0 0 0 11px #0b0118, 0 0 0 13px #2b1a45, 0 40px 90px -24px rgba(24, 4, 48, 0.6); display: flex; flex-direction: column; }
.statusleiste { flex: none; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; background: var(--plum); color: var(--weiss); font-size: 15px; font-weight: 600; }
.insel { width: 120px; height: 34px; border-radius: 20px; background: #000; }
.symbole { display: flex; gap: 4px; align-items: flex-end; }
.symbole i { display: block; width: 4px; border-radius: 1px; background: var(--weiss); }
.symbole i:nth-child(1) { height: 6px; } .symbole i:nth-child(2) { height: 9px; } .symbole i:nth-child(3) { height: 12px; }
.bildschirm { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--lav); }
@media (max-width: 520px) {
  .seite { padding: 0; gap: 0; justify-content: flex-start; height: 100%; }
  .telefon { width: 100%; flex: 1; height: auto; min-height: 0; border-radius: 0; box-shadow: none; }
  .statusleiste { display: none; }
}

.ansicht { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Startseite */
.kopf { position: relative; background: var(--plum); padding: 14px 20px 20px 26px; border-bottom: 1px solid rgba(225, 234, 125, 0.25); }
.wortmarke { display: block; height: 42px; width: auto; }
.wortmarke.klein { height: 35px; }
.unterzeile { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11px; font-weight: 300; color: rgba(255, 255, 255, 0.6); }
.online { width: 6px; height: 6px; border-radius: 3px; background: var(--lime); }
.app-guide { position: absolute; right: 62px; top: 22px; display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 14px; border: 1px solid rgba(225, 234, 125, 0.7); color: var(--lime); font-size: 11px; font-weight: 500; stroke: var(--lime); }
.zahnrad { position: absolute; right: 20px; top: 18px; padding: 4px; stroke: rgba(255, 255, 255, 0.72); }
.ritual { margin-top: 16px; padding: 14px 14px 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.ritual-spalten { display: flex; }
.ritual-spalte { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ritual-spalte + .ritual-spalte { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.punkte-drei { display: flex; gap: 4px; height: 18px; align-items: center; }
.punkte-drei i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.ritual-symbol { stroke: var(--lime); }
.ritual-label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.ritual-marker { margin-top: 10px; text-align: center; font-size: 13px; color: var(--lime); }
.zyklus-zeile { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 11px; color: rgba(255, 255, 255, 0.7); stroke: rgba(255, 255, 255, 0.7); text-align: left; }
.zyklus-zeile .chevron { transition: transform 0.2s; }
.zyklus-zeile.offen .chevron { transform: rotate(180deg); }

.karte { background: var(--weiss); margin: 12px 16px 0; border-radius: 20px; padding: 16px 16px 14px; border: 1px solid var(--rand); box-shadow: 0 10px 30px -18px rgba(24, 4, 48, 0.35); }
.karte-titel { font-size: 17px; }
.pille { display: inline-block; margin-top: 9px; padding: 4px 11px; border-radius: 999px; background: var(--lilac-light); color: var(--lila); font-size: 13px; font-weight: 500; }
.balken { height: 7px; border-radius: 4px; background: var(--lav); margin-top: 14px; overflow: hidden; }
.balken-fuellung { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--lila-mittel), var(--lime)); }
.balken-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-sekundaer); }
.trenner { height: 1px; background: var(--rand); margin: 12px 0 10px; }
.klein { font-size: 12px; color: var(--text-sekundaer); }
.wert { font-size: 16px; margin-top: 2px; }
.unter { font-size: 12px; color: var(--lila); margin-top: 2px; }

.inhalt { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 130px; }
.zeile { display: flex; align-items: flex-end; gap: 10px; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.blase { max-width: 82%; padding: 12px 15px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.zeile.felie .blase { background: var(--weiss); border: 1px solid rgba(143, 91, 189, 0.15); border-bottom-left-radius: 4px; }
.zeile.sie { justify-content: flex-end; }
.zeile.sie .blase { background: var(--lilac-light); border: 1px solid var(--rand-nutzerin); border-bottom-right-radius: 4px; }
.eingabe-zeile { display: flex; align-items: flex-end; gap: 8px; padding-left: 42px; }
.eingabe-feld { flex: 1; padding: 11px 14px; border-radius: 14px; border: 1.5px solid rgba(143, 91, 189, 0.25); background: var(--weiss); font-size: 14px; color: var(--text-sekundaer); text-align: left; }
.senden { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--lime); color: var(--plum); font-size: 18px; }
.ki-hinweis { padding-left: 42px; font-size: 11px; color: var(--text-sekundaer); text-align: center; }
.trennlinie { height: 1px; background: rgba(24, 4, 48, 0.12); margin: 2px 2px 0; }
.letzte-zeile { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 0 2px; }
.letzte { font-size: 15px; font-weight: 500; }
.alle-ansehen { font-size: 12px; font-weight: 500; color: var(--lila-mittel); }
.leer { background: var(--karte-grund); border-radius: 14px; padding: 16px; font-size: 12px; color: var(--text-sekundaer); text-align: center; }
.fuss { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding-top: 6px; font-size: 11px; color: var(--text-sekundaer); }
.fuss a { color: var(--text-sekundaer); }

/* Leiste unten */
.leiste { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: center; gap: 24px; padding: 9px 16px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--plum); border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 -6px 12px rgba(24, 4, 48, 0.35); }
.leisten-knopf { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 6px; font-size: 11px; color: rgba(255, 255, 255, 0.72); stroke: rgba(255, 255, 255, 0.72); }
.neuer-chat { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: -24px; }
.neuer-chat-kreis { width: 72px; height: 72px; border-radius: 36px; overflow: hidden; background: #F1F0F0; box-shadow: 0 6px 10px rgba(24, 4, 48, 0.18); }
.neuer-chat-kreis img { display: block; width: 72px; height: 72px; }
.neuer-chat-text { font-size: 11px; font-weight: 700; color: var(--lime); }

/* Startseite: "Deine letzten Gespraeche" (Startseite.js karte) */
.start-karten { display: flex; flex-direction: column; gap: 8px; }
.start-karte { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--karte-grund); text-align: left; }
.start-karte:hover, .start-karte:focus-visible { opacity: 0.85; outline: none; }
.start-kreis { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 17px; background: var(--plum); stroke: var(--lime); }
.start-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.start-titel { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start-unter { margin-top: 1px; font-size: 12px; color: var(--text-sekundaer); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start-pfeil { font-size: 18px; }
.symbol-zaehler { position: relative; display: block; }
.zaehler { position: absolute; top: -6px; right: -11px; min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px; background: var(--lime); color: var(--plum); font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }

/* Archiv und Gedaechtnis als helle Blaetter wie in der App (archiv.js, gedaechtnis.js) */
.telefon.hell .statusleiste { background: var(--lilac-light); color: var(--plum); }
.telefon.hell .symbole i { background: var(--plum); }
.blattseite { background: var(--lilac-light); }
.blatt-oben { position: sticky; top: 0; z-index: 2; background: var(--lilac-light); padding-top: 14px; }
.blatt-oben-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 20px; margin-bottom: 10px; }
.blatt-oben-titel { font-size: 16px; font-weight: 700; color: var(--plum); }
.blatt-oben-unter { margin-top: 2px; font-size: 12px; font-weight: 300; color: var(--lila); }
.kopf-rechts { flex: none; display: flex; align-items: center; gap: 10px; }
.erklaerung { display: flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 12px; background: rgba(143, 91, 189, 0.12); color: var(--lila); stroke: var(--lila); font-size: 11px; font-weight: 500; }
.zu { font-size: 18px; color: var(--plum); padding: 0 4px; line-height: 26px; }
.archiv-liste { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 40px; }
.archiv-karte { background: var(--weiss); border: 1px solid var(--rand); border-radius: 16px; padding: 16px; }
.archiv-titelzeile { display: flex; align-items: center; gap: 6px; stroke: var(--lila-mittel); }
.archiv-titel { margin: 0; font-size: 14px; font-weight: 500; color: var(--plum); }
.archiv-datum { margin-top: 3px; padding-left: 20px; font-size: 11px; color: var(--lila); }
.archiv-klein { margin-top: 10px; font-size: 11px; font-weight: 500; color: var(--lila); }
.archiv-text { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--plum); }
.archiv-oeffnen { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 12px; padding: 11px; border-radius: 12px; background: var(--lime); color: var(--plum); stroke: var(--plum); font-size: 13px; font-weight: 500; }
.archiv-oeffnen:hover, .archiv-oeffnen:focus-visible { opacity: 0.8; outline: none; }
.reiter { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--rand); }
.reiter-knopf { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 2px 9px; border-bottom: 2px solid transparent; font-size: 13px; color: var(--lila); }
.reiter-knopf.aktiv { border-bottom-color: var(--plum); color: var(--plum); font-weight: 700; }
.reiter-punkt { width: 7px; height: 7px; border-radius: 4px; background: var(--lime); border: 1px solid var(--plum); }
.ged-inhalt { padding: 16px 16px 48px; }
.ged-karte { background: var(--weiss); border: 1px solid var(--rand); border-radius: 16px; padding: 16px; }
.ged-liste { display: flex; flex-direction: column; gap: 8px; }
.ged-zeile { display: flex; align-items: center; gap: 10px; background: var(--weiss); border: 1.5px solid #DAB3E4; border-radius: 12px; padding: 10px 12px; }
.ged-zeile.neu { border-color: var(--lime); background: #FBFCEF; }
.ged-zeile-text { flex: 1; min-width: 0; }
.ged-text { font-size: 14px; line-height: 1.5; color: var(--plum); }
.ged-feld { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 500; color: var(--lila); margin-bottom: 2px; }
.ged-meta { margin-top: 3px; font-size: 11px; color: var(--lila); }
.ged-marken { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; }
.marke { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 500; color: var(--lila); }
.marke.leise { color: var(--text-sekundaer); }
.ged-stift { flex: none; stroke: var(--lila); }
.ged-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ged-chip { display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: var(--weiss); border: 1px solid var(--rand); stroke: var(--lila); }
.ged-chip.aktiv { background: var(--plum); border-color: var(--plum); stroke: var(--lime); }
.ged-chip-text { font-size: 12px; color: var(--plum); }
.ged-chip-zahl { font-size: 11px; color: var(--lila); }
.ged-chip.aktiv .ged-chip-text, .ged-chip.aktiv .ged-chip-zahl { color: var(--lime); }

/* Rundgang "App-Guide" wie in der App (mobile/rundgang/Schicht.js): Rahmen um das Ziel, Rest dunkel. */
.guide { position: absolute; inset: 0; z-index: 30; }
.guide.dunkel { background: rgba(10, 2, 22, 0.72); }
.guide-rahmen { position: absolute; border-radius: 14px; border: 2px solid rgba(225, 234, 125, 0.7); box-shadow: 0 0 0 9999px rgba(10, 2, 22, 0.72); pointer-events: none; }
.guide-blase { position: absolute; left: 16px; right: 16px; padding: 16px; border-radius: 18px; background: var(--plum); border: 1px solid rgba(225, 234, 125, 0.25); color: var(--weiss);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.guide-blase.mitte { top: 30%; padding: 20px; }
.guide-text { font-size: 14px; line-height: 1.5; }
.guide-text strong { font-weight: 700; color: var(--lime); }
.guide-punkte { display: flex; gap: 5px; justify-content: center; margin-top: 14px; }
.guide-punkte span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
.guide-punkte span.an { background: var(--lime); }
.guide-fuss { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.guide-ueberspringen { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.guide-rechts { display: flex; align-items: center; gap: 14px; }
.guide-zurueck { font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.guide-weiter { padding: 10px 18px; border-radius: 14px; background: var(--lime); color: var(--plum); font-size: 13.5px; font-weight: 500; }
.guide-ende { display: flex; justify-content: center; margin-top: 16px; }
.guide-ende .guide-weiter { width: 72%; }
button.app-guide { cursor: pointer; }
.guide-weiter:focus { outline: none; }
.guide-weiter:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
