/* Sternenpost 1v0 – Aussehen · created by AnnoBoy 2015–2026 */
:root {
  --rund: 18px; --schatten: 0 8px 30px rgba(10, 6, 40, .25);
  --gold: #f6c453; --violett: #7c5cff; --pink: #d65cf0; --gruen: #3ecf8e; --rot: #ff5d73; --blau: #4fb4ff;
  --eigen: linear-gradient(135deg, #6c4dff 0%, #9b4cf0 100%); --eigen-text: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
html[data-thema="dunkel"] {
  --hg: #0d0e1f; --pane: #15162c; --flaeche: #1e2041; --flaeche2: #272a52; --linie: #2c2f5a;
  --text: #eeedff; --leise: #a6a5cf; --fremd: #23264b; --fremd-text: #eeedff; --kopf: #181a35;
  --verlauf: radial-gradient(1px 1px at 20% 30%, #ffffff22 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 80%, #f6c45330 50%, transparent 51%),
             radial-gradient(1px 1px at 90% 20%, #ffffff1c 50%, transparent 51%), linear-gradient(180deg, #11122a, #0d0e1f);
  --system: #2a2d58; --link: #9fd0ff; color-scheme: dark;
}
html[data-thema="hell"] {
  --hg: #efedf8; --pane: #ffffff; --flaeche: #f3f1fb; --flaeche2: #e7e3f7; --linie: #e2def2;
  --text: #1c1a33; --leise: #6a6788; --fremd: #ffffff; --fremd-text: #1c1a33; --kopf: #ffffff;
  --verlauf: radial-gradient(1.5px 1.5px at 20% 30%, #7c5cff22 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 80%, #f6a81a33 50%, transparent 51%),
             linear-gradient(180deg, #f6f4fd, #ece8fa);
  --system: #ffffffcc; --link: #3d5bd8; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--hg); color: var(--text); overscroll-behavior: none; }
body { font-size: 15.5px; line-height: 1.4; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--link); }

/* ───── Logo, Laden ───── */
.logo-gross { width: 96px; height: 96px; border-radius: 26px; display: inline-block; box-shadow: 0 10px 30px #7c5cff66; animation: schweben 3.2s ease-in-out infinite; }
.logo-klein { width: 30px; height: 30px; border-radius: 9px; margin-right: 10px; }
@keyframes schweben { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes funkeln { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(18deg); } }
.laden { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--hg); z-index: 50; }
.ladepunkte i { display: inline-block; width: 9px; height: 9px; margin: 0 4px; border-radius: 50%; background: var(--violett); animation: hops 1s infinite; }
.ladepunkte i:nth-child(2) { animation-delay: .15s; background: var(--pink); } .ladepunkte i:nth-child(3) { animation-delay: .3s; background: var(--gold); }
@keyframes hops { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-8px); opacity: 1; } }

/* ───── Knöpfe ───── */
.knopf-rund { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; font-size: 19px; cursor: pointer; flex: none; text-decoration: none; color: var(--text); transition: background .15s; }
.knopf-rund:hover { background: var(--flaeche2); }
.knopf-rund.klein { width: 30px; height: 30px; font-size: 14px; }
.knopf-rund.rot { color: var(--rot); }
.knopf-haupt, .knopf-zweit, .knopf-gefahr { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 14px; padding: 11px 20px; cursor: pointer; font-weight: 650; text-decoration: none; font-size: 15.5px; }
.knopf-haupt { background: linear-gradient(135deg, #6c4dff, #b44cf0); color: #fff; box-shadow: 0 6px 18px #7c5cff55; }
.knopf-haupt:hover { filter: brightness(1.08); }
.knopf-haupt.gross { width: 100%; padding: 15px 20px; font-size: 18px; }
.knopf-haupt small { font-weight: 400; font-size: 12.5px; opacity: .9; }
.knopf-zweit { background: var(--flaeche2); color: var(--text); }
.knopf-gefahr { background: transparent; color: var(--rot); border: 1.5px solid var(--rot); }
.knopf-haupt:disabled, .knopf-zweit:disabled { opacity: .5; cursor: default; }
.knopf-senden { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: linear-gradient(135deg, #6c4dff, #b44cf0); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 4px 14px #7c5cff55; display: grid; place-items: center; }
.knopf-senden:active { transform: scale(.94); }

/* ───── Start ───── */
.start { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 0%, #7c5cff40, transparent 60%), var(--verlauf); }
.start-oben { align-self: stretch; display: flex; justify-content: flex-end; gap: 6px; }
.start-karte { width: min(440px, 100%); margin: auto; padding: 30px 24px; text-align: center; background: var(--pane); border-radius: 26px; box-shadow: var(--schatten); border: 1px solid var(--linie); }
.start-karte h1 { margin: 10px 0 4px; font-size: 32px; letter-spacing: .5px; background: linear-gradient(90deg, #8f74ff, #e06cf2, #f6c453); -webkit-background-clip: text; background-clip: text; color: transparent; }
.start-unter { color: var(--leise); margin: 0 0 18px; }
.start-punkte { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; display: grid; gap: 10px; }
.start-punkte li { display: flex; gap: 12px; align-items: center; background: var(--flaeche); padding: 10px 14px; border-radius: 14px; }
.start-punkte b { font-size: 22px; }
.start-einladung { background: linear-gradient(135deg, #7c5cff22, #f6c45322); border: 1px solid var(--linie); border-radius: 14px; padding: 12px; margin-bottom: 16px; }
.start-fuss { text-align: center; color: var(--leise); font-size: 13px; margin-top: 18px; }
.hinweis { color: var(--leise); font-size: 14px; }

/* ───── Aufbau ───── */
.app { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); height: 100dvh; max-width: 1600px; margin: 0 auto; box-shadow: var(--schatten); }
.pane { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.liste { background: var(--pane); border-right: 1px solid var(--linie); position: relative; }
.chat { background: var(--verlauf); position: relative; }
.kopf { display: flex; align-items: center; gap: 6px; padding: 10px 10px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--kopf); border-bottom: 1px solid var(--linie); min-height: 60px; }
.kopf-titel { flex: 1; display: flex; align-items: center; font-size: 19px; padding-left: 6px; }
.suche { padding: 8px 12px; }
.suche input { width: 100%; border: 0; border-radius: 12px; padding: 10px 14px; background: var(--flaeche); color: var(--text); font: inherit; outline: none; }
.chatliste { flex: 1; overflow-y: auto; }
.signatur { font-size: 11.5px; color: var(--leise); text-align: right; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); opacity: .8; }

/* Avatar */
.av { width: 48px; height: 48px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-weight: 700; color: #fff; font-size: 18px; background-size: cover; background-position: center; position: relative; }
.av.klein { width: 32px; height: 32px; font-size: 13px; }
.av.mittel { width: 40px; height: 40px; font-size: 15px; }
.av.riesig { width: 120px; height: 120px; font-size: 44px; }
.av.on::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--gruen); border: 2px solid var(--pane); }

/* Eintrag der Chat-Liste */
.eintrag { display: flex; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; transition: background .12s; }
.eintrag:hover { background: var(--flaeche); }
.eintrag.aktiv { background: var(--flaeche2); }
.eintrag-mitte { flex: 1; min-width: 0; }
.eintrag-z1, .eintrag-z2 { display: flex; gap: 8px; align-items: center; }
.eintrag-z1 b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.eintrag-z1 small { color: var(--leise); font-size: 12px; flex: none; }
.eintrag-z2 span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--leise); font-size: 14px; }
.eintrag.ungelesen .eintrag-z1 small { color: var(--gold); font-weight: 700; }
.eintrag.ungelesen .eintrag-z2 span { color: var(--text); }
.zahl { min-width: 22px; height: 22px; border-radius: 11px; padding: 0 7px; background: linear-gradient(135deg, #f6c453, #f59e3b); color: #2b1a00; font-size: 12.5px; font-weight: 800; display: inline-grid; place-items: center; flex: none; }
.eintrag.stumm .zahl { background: var(--flaeche2); color: var(--leise); }
.leer { padding: 30px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; color: var(--leise); }
.leer-bild { font-size: 56px; }
.hinweis-karte { margin: 6px 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #7c5cff26, #f6c45326); border: 1px solid var(--linie); font-size: 14px; display: grid; gap: 8px; }
.hinweis-karte .zeile { display: flex; gap: 8px; flex-wrap: wrap; }
.hinweis-karte .knopf-haupt, .hinweis-karte .knopf-zweit { padding: 8px 14px; font-size: 14px; }
.werbung { display: flex; align-items: center; gap: 12px; margin: 8px 12px 0; padding: 10px 14px; border-radius: 14px; text-decoration: none; color: var(--text); background: linear-gradient(120deg, #7c5cff1f, #d65cf01f, #f6c4531f); border: 1px solid var(--linie); }
.werbung span:first-child { font-size: 22px; } .werbung span:nth-child(2) { flex: 1; display: grid; } .werbung small { color: var(--leise); font-size: 12.5px; }

/* ───── Chat ───── */
.chat-leer { margin: auto; text-align: center; color: var(--leise); padding: 30px; }
.chat-leer h2 { color: var(--text); margin: 10px 0 4px; }
.chat-inhalt { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }
.chatkopf-mitte { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; text-align: left; padding: 2px 4px; border-radius: 12px; }
.chatkopf-text { min-width: 0; display: grid; }
.chatkopf-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16.5px; }
.chatkopf-text small { color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.chatkopf-text small.tippt { color: var(--gruen); font-weight: 600; }
.zurueck { font-size: 30px; display: none; }
.verlauf { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 4% 14px; display: flex; flex-direction: column; gap: 2px; overflow-anchor: none; }
.mehr-laden { align-self: center; margin: 6px 0 10px; }
.tag-trenner { align-self: center; margin: 12px 0 6px; padding: 4px 12px; border-radius: 10px; background: var(--system); color: var(--leise); font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 2px #0002; position: sticky; top: 4px; z-index: 2; }
.system { align-self: center; max-width: 85%; text-align: center; margin: 6px 0; padding: 5px 12px; border-radius: 10px; background: var(--system); color: var(--leise); font-size: 13px; }
.ungelesen-trenner { align-self: stretch; text-align: center; margin: 10px 0; padding: 4px; background: #f6c45324; color: var(--gold); font-size: 12.5px; font-weight: 700; border-radius: 8px; }

.blase-zeile { display: flex; margin-top: 6px; }
.blase-zeile.folge { margin-top: 1px; }
.blase-zeile.eigen { justify-content: flex-end; }
.blase { position: relative; max-width: min(78%, 560px); padding: 7px 10px 6px; border-radius: var(--rund); background: var(--fremd); color: var(--fremd-text); box-shadow: 0 1px 2px #0003; word-wrap: break-word; overflow-wrap: anywhere; }
.blase-zeile:not(.folge):not(.eigen) .blase { border-top-left-radius: 6px; }
.blase-zeile.eigen:not(.folge) .blase { border-top-right-radius: 6px; }
.eigen .blase { background: var(--eigen); color: var(--eigen-text); }
.eigen .blase a { color: #fff; }
.blase .absender { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.blase .inhalt { white-space: pre-wrap; }
.blase .inhalt.gross { font-size: 40px; line-height: 1.15; }
.blase .fuss { float: right; margin: 6px 0 -4px 10px; font-size: 11px; opacity: .75; display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.haken { font-size: 12px; letter-spacing: -3px; padding-right: 3px; }
.haken.gelesen { color: #7ff3ff; opacity: 1; }
html[data-thema="hell"] .eigen .haken.gelesen { color: #b7fffa; }
.blase.weg .inhalt { font-style: italic; opacity: .7; }
.blase.wartet { opacity: .75; }
.blase.fehler { outline: 2px solid var(--rot); cursor: pointer; }
.blase .menue-pfeil { position: absolute; top: 2px; right: 4px; width: 24px; height: 22px; border: 0; border-radius: 8px; background: inherit; color: inherit; opacity: 0; cursor: pointer; font-size: 14px; }
.blase:hover .menue-pfeil { opacity: .85; }
@media (pointer: coarse) { .blase .menue-pfeil { display: none; } }
.zitat { display: block; border-left: 4px solid var(--gold); background: #0000001f; border-radius: 8px; padding: 4px 8px; margin: 0 0 5px; font-size: 13.5px; cursor: pointer; max-height: 66px; overflow: hidden; }
html[data-thema="hell"] .fremd-zitat, html[data-thema="hell"] .blase:not(.eigen) .zitat { background: #7c5cff12; }
.zitat b { display: block; font-size: 12.5px; }
.bild-nachricht { display: block; margin: -3px -6px 4px; border-radius: 14px; overflow: hidden; background: #0003; cursor: zoom-in; max-width: 320px; }
.bild-nachricht img { display: block; width: 100%; max-width: 100%; height: auto; }
.datei-nachricht { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: #00000022; text-decoration: none; color: inherit; margin-bottom: 4px; min-width: 200px; }
.datei-nachricht .icon { font-size: 28px; } .datei-nachricht small { display: block; opacity: .75; }
.ton { display: flex; align-items: center; gap: 8px; min-width: 210px; padding: 2px 0 4px; }
.ton button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #ffffff2a; cursor: pointer; font-size: 15px; flex: none; color: inherit; }
.blase:not(.eigen) .ton button { background: var(--flaeche2); }
.ton .spur { flex: 1; height: 26px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.ton .spur i { flex: 1; background: currentColor; opacity: .35; border-radius: 2px; }
.ton .spur i.an { opacity: 1; }
.ton small { font-size: 12px; opacity: .8; min-width: 34px; }
.reaktionen { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 -2px; }
.reaktionen button { border: 0; border-radius: 12px; padding: 1px 7px; font-size: 13.5px; background: #00000026; cursor: pointer; color: inherit; }
.blase:not(.eigen) .reaktionen button { background: var(--flaeche2); }
.reaktionen button.meins { outline: 1.5px solid var(--gold); }
.fortschritt { height: 4px; border-radius: 2px; background: #ffffff33; overflow: hidden; margin: 4px 0; }
.fortschritt i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.blase.blinken { animation: blinken 1.2s; }
@keyframes blinken { 0%, 100% { filter: none; } 30% { filter: brightness(1.5) drop-shadow(0 0 8px var(--gold)); } }

.nach-unten { position: absolute; right: 16px; bottom: 84px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pane); color: var(--text); box-shadow: var(--schatten); font-size: 22px; cursor: pointer; z-index: 5; }
.nach-unten b { position: absolute; top: -6px; right: -4px; background: var(--gold); color: #2b1a00; font-size: 11px; border-radius: 9px; min-width: 18px; padding: 1px 4px; }
.nach-unten b:empty { display: none; }

/* Eingabe */
.eingabe, .aufnahme { display: flex; align-items: flex-end; gap: 4px; padding: 8px 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); background: var(--kopf); border-top: 1px solid var(--linie); }
.eingabe textarea { flex: 1; resize: none; border: 0; border-radius: 22px; padding: 11px 16px; background: var(--flaeche); color: var(--text); font: inherit; outline: none; max-height: 150px; min-height: 44px; line-height: 1.35; }
.aufnahme { align-items: center; gap: 10px; }
.aufnahme-punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--rot); animation: puls 1s infinite; }
.aufnahme-text { flex: 1; color: var(--leise); font-size: 14px; }
@keyframes puls { 50% { opacity: .3; } }
.antwort-leiste { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0; background: var(--kopf); border-top: 1px solid var(--linie); }
.antwort-inhalt { flex: 1; min-width: 0; border-left: 4px solid var(--gold); background: var(--flaeche); border-radius: 8px; padding: 6px 10px; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.antwort-inhalt b { display: block; font-size: 12.5px; color: var(--gold); }

/* Emojis */
.emoji-panel { background: var(--kopf); border-top: 1px solid var(--linie); height: 290px; display: flex; flex-direction: column; }
.emoji-reiter { display: flex; gap: 2px; padding: 4px 6px; overflow-x: auto; border-bottom: 1px solid var(--linie); flex: none; }
.emoji-reiter button { border: 0; background: none; font-size: 20px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.emoji-reiter button.an { background: var(--flaeche2); }
.emoji-raster { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); padding: 6px; align-content: start; }
.emoji-raster button { border: 0; background: none; font-size: 26px; height: 44px; border-radius: 10px; cursor: pointer; }
.emoji-raster button:hover { background: var(--flaeche2); }
.emoji-raster h4 { grid-column: 1 / -1; margin: 6px 4px 2px; font-size: 12px; color: var(--leise); }

/* ───── Blatt (Fenster) ───── */
.blatt-hinter { position: fixed; inset: 0; background: #05031099; z-index: 30; display: flex; align-items: flex-end; justify-content: center; animation: ein .15s; }
.blatt { width: min(560px, 100%); max-height: 92dvh; overflow-y: auto; background: var(--pane); border-radius: 24px 24px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--schatten); animation: hoch .2s ease-out; }
@media (min-width: 900px) { .blatt-hinter { align-items: center; } .blatt { border-radius: 24px; max-height: 86dvh; } }
@keyframes ein { from { opacity: 0; } } @keyframes hoch { from { transform: translateY(40px); opacity: 0; } }
.blatt-griff { width: 44px; height: 5px; border-radius: 3px; background: var(--linie); margin: 4px auto 10px; }
.blatt-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.blatt-kopf h3 { flex: 1; margin: 0; font-size: 19px; }
.blatt h4 { margin: 18px 0 8px; font-size: 13px; color: var(--leise); text-transform: uppercase; letter-spacing: .6px; }
.feld { display: grid; gap: 5px; margin: 10px 0; }
.feld span { font-size: 13.5px; color: var(--leise); }
.feld input, .feld textarea { width: 100%; border: 1.5px solid var(--linie); border-radius: 12px; padding: 11px 13px; background: var(--flaeche); color: var(--text); font: inherit; outline: none; }
.feld input:focus, .feld textarea:focus { border-color: var(--violett); }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.reihe > .knopf-haupt, .reihe > .knopf-zweit, .reihe > .knopf-gefahr { flex: 1; }
.mitte { text-align: center; }
.menue { display: grid; gap: 2px; margin: 6px 0; }
.menue button, .menue a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; font-size: 15.5px; color: var(--text); text-decoration: none; }
.menue button:hover, .menue a:hover { background: var(--flaeche); }
.menue button .ico, .menue a .ico { width: 28px; text-align: center; font-size: 20px; }
.menue button.rot { color: var(--rot); }
.reaktion-reihe { display: flex; justify-content: space-around; padding: 8px 4px 12px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
.reaktion-reihe button { border: 0; background: var(--flaeche); width: 46px; height: 46px; border-radius: 50%; font-size: 24px; cursor: pointer; transition: transform .1s; }
.reaktion-reihe button:hover { transform: scale(1.15); }
.reaktion-reihe button.an { outline: 2px solid var(--gold); }
.schalter-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.schalter-zeile > span:first-child { flex: 1; } .schalter-zeile small { display: block; color: var(--leise); font-size: 12.5px; }
.schalter { position: relative; width: 50px; height: 30px; flex: none; }
.schalter input { opacity: 0; width: 0; height: 0; }
.schalter i { position: absolute; inset: 0; border-radius: 15px; background: var(--flaeche2); cursor: pointer; transition: .2s; }
.schalter i::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px #0005; }
.schalter input:checked + i { background: linear-gradient(135deg, #6c4dff, #b44cf0); }
.schalter input:checked + i::before { transform: translateX(20px); }
.segment { display: flex; background: var(--flaeche); border-radius: 12px; padding: 3px; gap: 3px; }
.segment button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.segment button.an { background: var(--pane); box-shadow: 0 1px 4px #0003; font-weight: 700; }
.person { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 12px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.person:hover { background: var(--flaeche); }
.person > span:not(.av):not(.abzeichen) { flex: 1; min-width: 0; } .person small { display: block; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.abzeichen { font-size: 11.5px; padding: 2px 8px; border-radius: 8px; background: #f6c45333; color: var(--gold); font-weight: 700; }
.link-kasten { display: flex; gap: 8px; align-items: center; background: var(--flaeche); border-radius: 12px; padding: 8px 8px 8px 12px; font-size: 13.5px; }
.link-kasten code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-kopf { text-align: center; display: grid; justify-items: center; gap: 6px; margin: 6px 0 10px; }
.profil-kopf .av { cursor: pointer; }
.gespeichert { color: var(--gruen); font-weight: 700; }
.vorschau-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin: 10px 0; }
.vorschau-bilder img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.vorschau-gross { width: 100%; max-height: 52dvh; object-fit: contain; border-radius: 14px; background: #0004; }

/* Bild groß, Kamera */
.bild-gross, .kamera { position: fixed; inset: 0; z-index: 40; background: #000; display: grid; place-items: center; }
.bild-gross img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bild-gross-oben, .kamera-oben { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 8px; align-items: center; padding: 10px; padding-top: calc(10px + env(safe-area-inset-top)); background: linear-gradient(#000a, transparent); color: #fff; z-index: 2; }
.bild-gross-oben span { flex: 1; font-size: 14px; }
.bild-gross .knopf-rund, .kamera .knopf-rund { color: #fff; background: #ffffff22; }
.kamera video { width: 100%; height: 100%; object-fit: cover; }
.kamera-unten { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; align-items: center; padding: 20px 20px calc(26px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #000a); }
.ausloeser { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: #ffffff44; cursor: pointer; }
.ausloeser:active { background: #fff; }

/* Meldung */
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: #22244a; color: #fff; padding: 11px 16px; border-radius: 14px; box-shadow: var(--schatten); display: flex; gap: 14px; align-items: center; max-width: 92vw; font-size: 14.5px; animation: hoch .2s; }
.toast button { border: 0; background: none; color: var(--gold); font-weight: 800; cursor: pointer; }

/* ───── Handy: eine Seite nach der anderen ───── */
@media (max-width: 899px) {
  .app { grid-template-columns: minmax(0, 1fr); position: relative; overflow: hidden; box-shadow: none; }
  .pane { grid-area: 1 / 1; height: 100dvh; }
  .chat { transform: translateX(100%); transition: transform .22s ease; z-index: 3; }
  body.chat-offen .chat { transform: none; }
  .zurueck { display: inline-grid; }
  .chat-leer { display: none; }
  .verlauf { padding: 8px 8px 12px; }
  .blase { max-width: 84%; }
}
@media (min-width: 900px) { .kamera, .bild-gross { inset: 3vh 3vw; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 100vmax #000c; } }
