/* Profilseite im Stil einer Creator-Seite: weiss, blaue Pillenknoepfe, mittlere Spalte 600 px.
   Farben als Tokens; dunkle Fassung fuer data-theme="dark" und System-dunkel (darstellung.js). */
:root {
  color-scheme: light;
  --bg: #fff;
  --text: #000;
  --sanft: #8a96a3;
  --linie: #eaeaea;
  --trenner: #f5f6f7;
  --leer: #f4f5f7;
  --akzent: #00aff0;
  --akzent-dunkler: #0091c7;
  --akzent-text: #fff;
  --fehler: #d8343f;
  --schatten: 0 2px 14px rgba(0, 0, 0, .08);
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161618; --text: #fff; --sanft: #8a96a3; --linie: #2a2b30; --trenner: #0d0d0f; --leer: #1f2024;
  --schatten: 0 2px 14px rgba(0, 0, 0, .5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161618; --text: #fff; --sanft: #8a96a3; --linie: #2a2b30; --trenner: #0d0d0f; --leer: #1f2024;
    --schatten: 0 2px 14px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 var(--schrift); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg .voll { fill: currentColor; stroke: none; }
.sanft { color: var(--sanft); }

/* ------------------------------------------------------------ Rahmen: 3 Spalten */
.rahmen { display: flex; justify-content: center; gap: 32px; min-height: 100vh; }
.links { width: 280px; flex: none; padding: 22px 0 0 40px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; align-self: flex-start; }
.mitte { width: 600px; max-width: 100%; flex: none; border-left: 1px solid var(--linie); border-right: 1px solid var(--linie); min-height: 100vh; }
.rechts { width: 368px; flex: none; padding-top: 16px; position: sticky; top: 0; align-self: flex-start; }
@media (max-width: 1320px) { .links { width: 90px; padding-left: 16px; } .nav-punkt span { display: none; } }
@media (max-width: 1080px) {
  .links { display: none; }
  .rahmen { gap: 0; flex-direction: column; align-items: center; }
  .rechts { position: static; width: 600px; max-width: 100%; padding: 0; }
  .rechts .kasten { display: none; }
  .rechts .fuss { margin-top: 0; }
}
@media (max-width: 600px) { .mitte { border: 0; width: 100%; } }

.deko { background: none; border: 0; padding: 0; }
.nav-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--leer); color: var(--sanft); display: grid; place-items: center; margin: 0 0 14px 2px; }
.nav-avatar svg { width: 22px; height: 22px; }
.nav-punkt { display: flex; align-items: center; gap: 22px; padding: 10px 6px; font-size: 19px; color: var(--sanft); border-radius: 24px; text-align: left; }
.nav-punkt:hover { color: var(--akzent); }
.nav-punkt svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------ Titelbild */
.titelbild { position: relative; height: 180px; background: linear-gradient(135deg, #3a3f47, #1d2025); overflow: hidden; }
.titelbild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.titelbild::after { content: ""; position: absolute; inset: 0 0 auto; height: 90px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); pointer-events: none; }
.titelleiste { position: absolute; z-index: 1; top: 10px; left: 12px; right: 12px; display: flex; align-items: flex-start; gap: 14px; color: #fff; }
.rund-hell { color: #fff; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.rund-hell:hover { background: rgba(255, 255, 255, .15); }
.titelname { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 4px; line-height: 1.3; }
.zaehler { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.zaehler svg { width: 15px; height: 15px; }
.zaehler .punkt { opacity: .8; }
.haken { width: 18px; height: 18px; flex: none; }
.haken path:first-child { fill: none; }
.haken-strich { stroke-width: 2; }

/* ------------------------------------------------------------ Kopf, Person */
.kopf { position: relative; height: 56px; padding: 0 16px; }
.avatar { position: absolute; left: 16px; top: -46px; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--bg); background: var(--leer); overflow: hidden; display: grid; place-items: center; font-size: 40px; font-weight: 600; color: var(--sanft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rund { position: absolute; right: 16px; top: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linie); color: var(--akzent); display: grid; place-items: center; }
.rund:hover { background: rgba(0, 175, 240, .08); }
.rund svg { width: 22px; height: 22px; }

.person { padding: 22px 16px 14px; }
.name { font-size: 19px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 4px; }
.unterzeile { color: var(--sanft); font-size: 14px; margin-top: 2px; }
.unterzeile #gesehen:not(:empty)::before { content: "•"; margin: 0 8px; }
.bio { margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; }
.bio.zu { max-height: calc(1.6em * 3); overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.bio.zu.passt { -webkit-mask-image: none; mask-image: none; }
.textlink { background: none; border: 0; padding: 0; margin-top: 8px; color: var(--akzent); font-size: 14px; }
.textlink:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Abschnitte, Pillen */
.abschnitt { border-top: 8px solid var(--trenner); padding: 14px 16px 16px; }
.abschnitt h2, .kasten h2 { margin: 0 0 12px; font-size: 15px; font-weight: 500; text-transform: uppercase; color: var(--sanft); letter-spacing: .01em; display: flex; justify-content: space-between; align-items: center; }
.klappe { color: var(--sanft); }
.klappe svg { width: 22px; height: 22px; }
.pille { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 22px; border: 0; border-radius: 1000px; background: var(--akzent); color: var(--akzent-text); font-size: 14px; font-weight: 600; text-transform: uppercase; text-decoration: none; letter-spacing: .01em; cursor: pointer; }
.pille:hover { background: var(--akzent-dunkler); }
.pille[aria-disabled="true"] { cursor: default; }
.pille.flach { min-height: 36px; padding: 0 18px; }
.pille.hohl { background: transparent; color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.pille.hohl:hover { background: rgba(0, 175, 240, .08); }
.pille.breit, .lb-knoepfe .pille, .dialog-knoepfe .pille, .sperr-zeile .pille { justify-content: center; }

/* ------------------------------------------------------------ Reiter */
.reiter { display: flex; border-top: 8px solid var(--trenner); border-bottom: 1px solid var(--linie); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.reiter button { flex: 1; background: none; border: 0; padding: 15px 0 13px; font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--sanft); border-bottom: 2px solid transparent; }
.reiter button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.reiter button:hover { color: var(--text); }

.feed { background: var(--leer); min-height: 340px; padding-bottom: 1px; }

/* ------------------------------------------------------------ Sperrbox */
.sperrbox { margin: 16px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--linie); border-radius: 6px; }
.sperr-kopf { display: flex; justify-content: space-between; align-items: center; color: var(--sanft); font-size: 13px; margin-bottom: 10px; }
.sperr-zahlen { display: flex; align-items: center; gap: 5px; }
.sperr-zahlen svg, .schloss-klein { width: 15px; height: 15px; }
.sperr-zeile { display: flex; gap: 10px; }
.sperr-zeile input, .dialog input, .karte-start input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--linie); border-radius: 6px; background: var(--bg); font-size: 15px; }
.sperr-zeile input:focus, .dialog input:focus, .karte-start input:focus { outline: none; border-color: var(--akzent); }
.sperr-zeile .pille { width: auto; min-height: 40px; flex: none; }
.code-meldung { margin: 8px 0 0; font-size: 13px; min-height: 0; color: var(--sanft); }
.code-meldung:empty, .fehler:empty, .hinweis:empty { display: none; }
.karte-start .hinweis { color: var(--sanft); font-size: 13px; margin: 0; }
.code-meldung.schlecht, .fehler { color: var(--fehler); }

/* ------------------------------------------------------------ Beitraege */
.beitraege { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.beitrag { background: var(--bg); padding: 14px 16px 6px; }
.b-kopf { display: flex; align-items: center; gap: 10px; }
.mini-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--leer); flex: none; display: grid; place-items: center; font-weight: 600; color: var(--sanft); }
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.b-namen { flex: 1; min-width: 0; line-height: 1.3; }
.b-namen b { font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.b-namen .haken { width: 15px; height: 15px; }
.b-namen .sanft { display: block; font-size: 14px; }
.b-datum { color: var(--sanft); font-size: 14px; white-space: nowrap; }
.b-mehr { color: var(--sanft); width: 30px; height: 30px; display: grid; place-items: center; }
.b-text { margin: 12px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.b-gesperrt { margin: 12px 0 8px; background: var(--leer); border-radius: 6px; padding: 26px 16px 18px; text-align: center; color: var(--sanft); }
.b-gesperrt .schloss-gross { margin: 0 auto 6px; }
.b-gesperrt p { margin: 0 0 14px; }
.b-gesperrt .pille { width: auto; display: inline-flex; min-height: 36px; padding: 0 22px; }
.b-fuss { display: flex; gap: 4px; border-top: 1px solid var(--linie); padding-top: 4px; }
.b-fuss .deko { color: var(--sanft); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.b-fuss .deko:hover { color: var(--akzent); }
.b-fuss .rechtsbuendig { margin-left: auto; }
.leer-hinweis { text-align: center; color: var(--sanft); padding: 60px 16px; }
.schloss-gross { width: 44px; height: 44px; stroke-width: 1.4; color: var(--sanft); display: block; }

/* ------------------------------------------------------------ Medien-Raster */
.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding-top: 2px; }
.raster .leer-hinweis { grid-column: 1 / -1; }
.kachel { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: var(--linie); overflow: hidden; display: block; }
.kachel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.kachel:hover img { transform: scale(1.03); }
.kachel.gesperrt { background: var(--bg); color: var(--sanft); display: grid; place-items: center; }
.kachel.gesperrt svg { width: 38px; height: 38px; stroke-width: 1.4; }
.kachel.gesperrt:hover { color: var(--akzent); }

/* ------------------------------------------------------------ rechte Spalte, Fuss */
.kasten { border: 1px solid var(--linie); border-radius: 6px; padding: 14px 16px 16px; }
.fuss { padding: 16px; border-top: 1px solid var(--linie); margin-top: 16px; text-align: center; color: var(--sanft); font-size: 13px; }
.fuss nav { margin-bottom: 12px; }
.textlink-sanft { color: var(--sanft); font-size: 13px; }
.textlink-sanft:hover { color: var(--akzent); }
.darstellung { display: inline-flex; border: 1px solid var(--linie); border-radius: 1000px; overflow: hidden; }
.darstellung button { background: none; border: 0; padding: 4px 12px; font-size: 12px; color: var(--sanft); }
.darstellung button[aria-pressed="true"] { background: var(--akzent); color: #fff; }

.hilfe { position: fixed; right: 0; bottom: 18%; width: 40px; height: 40px; background: var(--akzent); color: #fff; border-radius: 4px 0 0 4px; display: grid; place-items: center; z-index: 5; }
.hilfe svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------ Start, Passwort, Meldung */
.karte-start { padding: 40px 24px; display: flex; flex-direction: column; gap: 8px; }
.karte-start h1 { margin: 0 0 4px; font-size: 22px; }
.karte-start p { margin: 0 0 10px; }
.karte-start label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.karte-start .pille.breit { margin-top: 14px; }
.karte-start form { display: flex; flex-direction: column; gap: 8px; }
.lb-link { display: block; margin: 18px 0 10px; padding: 12px 14px; background: var(--leer); border-radius: 6px; color: var(--akzent); word-break: break-all; text-decoration: none; }
.lb-knoepfe, .dialog-knoepfe { display: flex; gap: 10px; }
.regeln { margin-top: 26px; color: var(--sanft); font-size: 14px; }
.regeln summary { cursor: pointer; color: var(--akzent); }
.regeln table { margin-top: 10px; border-collapse: collapse; }
.regeln td { padding: 3px 14px 3px 0; vertical-align: top; }
.regeln code { font-family: Consolas, "Cascadia Mono", monospace; color: var(--text); }
.laden { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 120px 16px; }
.kringel { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--linie); border-top-color: var(--akzent); animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ Dialog, Betrachter */
.schleier { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 20; padding: 16px; }
.dialog { width: 380px; max-width: 100%; background: var(--bg); border-radius: 10px; padding: 24px 22px 20px; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 10px; text-align: center; }
.dialog .schloss-gross { margin: 0 auto; color: var(--akzent); }
.dialog h2 { margin: 0; font-size: 19px; }
.dialog p { margin: 0; font-size: 14px; }
.dialog input { text-align: center; letter-spacing: .25em; font-size: 18px; height: 46px; flex: none; }
.dialog-knoepfe .pille { flex: 1; min-height: 42px; }
.wackeln { animation: wackeln .3s; }
@keyframes wackeln { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.betrachter { position: fixed; inset: 0; background: rgba(0, 0, 0, .94); z-index: 30; display: grid; place-items: center; }
.betrachter img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.b-knopf { position: absolute; background: rgba(0, 0, 0, .35); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.b-knopf:hover { background: rgba(255, 255, 255, .18); }
.b-zu { top: 14px; right: 14px; }
.b-links { left: 14px; top: 50%; transform: translateY(-50%); }
.b-rechts { right: 14px; top: 50%; transform: translateY(-50%); }
.b-zahl { position: absolute; top: 24px; left: 20px; color: #fff; font-size: 14px; opacity: .8; }

/* Freischalten je Inhalt (seit 26.11.2026): Hinweis oben, Code-Feld im gesperrten Beitrag */
.sperr-hinweis { margin: 0; font-size: 14px; color: var(--sanft); }
.b-gesperrt .sperr-zeile { max-width: 360px; margin: 0 auto; }
.b-gesperrt .sperr-zeile .pille { display: flex; }
.b-gesperrt .code-meldung { margin-top: 8px; }
