@font-face{font-family:"EB Garamond";src:url(/tuer/fonts/EBGaramond-VariableFont_wght.ttf) format("truetype");font-weight:400 800;font-display:swap}
@font-face{font-family:"EB Garamond";src:url(/tuer/fonts/EBGaramond-Italic-VariableFont_wght.ttf) format("truetype");font-style:italic;font-weight:400 800;font-display:swap}
:root{--lila:#780268;--lila2:#904b97;--creme:#faf9f9;--tinte:#2a1828;--grau:#6d5f6b;--linie:#e6dbe4}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{font-family:"EB Garamond",Georgia,serif;font-size:19px;line-height:1.45;color:var(--tinte);background:var(--creme)}
[hidden]{display:none!important}
a{color:var(--lila)}
.nur-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.knopf{display:inline-block;border:0;border-radius:999px;background:var(--lila);color:#fff;font:inherit;font-weight:600;padding:.7em 1.6em;text-decoration:none;cursor:pointer}
.knopf.hell{background:#fff;color:var(--lila);box-shadow:0 0 40px rgba(255,220,250,.6)}
.knopf.zweit{background:transparent;color:var(--lila);border:1px solid var(--lila2)}
.leise{border:0;background:none;color:var(--grau);font:inherit;font-size:.8em;text-decoration:underline;cursor:pointer}
:focus-visible{outline:3px solid var(--lila);outline-offset:2px}
.tuer :focus-visible{outline-color:#fff}
.pfad h1:focus,.pfad h1:focus-visible{outline:none}

/* Tür: bildschirmfüllend, Logo im Holz. --tuer-y ist die vertikale Lage des Medaillons
 * (--tuer-y: mobil 50 %, Desktop 48,3 %). Desktop-Band 175 px wie 39f46dd (erste Tür),
 * ohne translateY und ohne 145/160-px-Reduktion. */
:root{
  --tuer-band-grund:rgba(20,8,24,.80);
  --tuer-band-linie:rgba(250,249,249,.22);
  --tuer-link:#e9d3ec;
  --btmm-logo-text-glow:#faf9f9;
}
.tuer{--tuer-y:50%;min-height:100vh;min-height:100dvh;display:grid;place-items:center;background:#140818;color:#fff;text-align:center;overflow:hidden;position:relative;perspective:1400px}
@media (min-width:900px),(min-aspect-ratio:1/1){.tuer{--tuer-y:48.3%}}
.tuer-rahmen{position:absolute;inset:0;pointer-events:none}
.tuer-licht-flaeche{position:absolute;inset:0;background:radial-gradient(ellipse at 50% var(--tuer-y),#fff6e0 0%,#f3c98a 22%,#7a3a5a 55%,#140818 100%)}
.fluegel{position:absolute;top:0;bottom:0;width:50%;overflow:hidden;border:0;border-radius:0;background:none;transition:transform 1.1s cubic-bezier(.6,.05,.3,1)}
.fluegel img{width:100%;height:100%;object-fit:cover;display:block}
.fluegel.links{left:0;transform-origin:left center}
.fluegel.links img{object-position:right var(--tuer-y)}
.fluegel.rechts{right:0;transform-origin:right center}
.fluegel.rechts img{object-position:left var(--tuer-y)}
.tuer-band{position:absolute;left:0;right:0;bottom:0;z-index:2;text-align:center;background:var(--tuer-band-grund);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-top:1px solid var(--tuer-band-linie);border-bottom:1px solid var(--tuer-band-linie);border-left:0;border-right:0;padding:14px 22px calc(12px + env(safe-area-inset-bottom));max-height:34%}
.tuer-band h1{font-size:40px;margin:0 0 6px;color:var(--btmm-logo-text-glow);font-weight:600;line-height:1.1}
.tuer-band p:not(.tuer-ohne):not(.bild-credit){font-size:18px;color:#faf9f9;margin:0 auto 10px;max-width:30em;line-height:1.4;opacity:1}
.tuer-band .ohne{color:var(--tuer-link)}
.tuer-band .tuer-ohne{margin:8px 0 0;font-size:16px;line-height:1.4}
.tuer-band .knopf.hell{box-shadow:none}
.tuer-band .bild-credit a{color:inherit}
.tuer-band .bild-credit{margin:6px auto 0;text-align:center;font-size:13px;line-height:1.3;color:var(--tuer-link);border:0;border-left:0;max-width:none}
.oeffnet .fluegel.links{transform:rotateY(62deg)}
.oeffnet .fluegel.rechts{transform:rotateY(-62deg)}
.oeffnet .tuer-band{opacity:0;transition:opacity .4s}
@media (min-width:900px){
  .tuer-band{padding:10px 40px 10px;max-height:175px}
  .tuer-band h1{font-size:42px;margin:0 0 4px}
  .tuer-band p:not(.tuer-ohne):not(.bild-credit){margin-bottom:8px;max-width:46em;white-space:nowrap}
  .tuer-band .reihe{display:flex;gap:28px;justify-content:center;align-items:center}
  .tuer-band .tuer-ohne{margin:0;display:inline}
  .tuer-band .bild-credit{margin:6px auto 0}
}
@media (max-height:699px){
  .tuer-band h1{font-size:32px}
  .tuer-band p:not(.tuer-ohne):not(.bild-credit){font-size:16px}
}
/* Handy quer / sehr niedrige Höhe: kompakter Fallback, Tippflächen ≥ 44 px.
 * Bei Querformat überschreibt die Seitenleiste darunter diesen Block. */
@media (max-height:500px){
  .tuer-band{padding:4px 16px calc(4px + env(safe-area-inset-bottom));max-height:none}
  .tuer-band h1{font-size:22px;margin:0}
  .tuer-band p:not(.tuer-ohne):not(.bild-credit){display:none}
  .tuer-band .reihe{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap}
  .tuer-band .tuer-ohne{margin:0;display:inline}
  .tuer-band .knopf,.tuer-band .tuer-ohne a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:8px 16px}
  .tuer-band .bild-credit{margin:2px auto 0;font-size:11px}
}
/* Handy quer: Band als Seitenleiste (rechts, bei rtl links). Kein linker Rahmen.
 * Tür in den übrigen 62 %, Desktop-Assets, object-position an der Flügelnaht zentriert. */
@media (orientation: landscape) and (max-height: 500px){
  .tuer-rahmen{inset:0 38% 0 0}
  .fluegel.links img{object-position:right center;transform:none}
  .fluegel.rechts img{object-position:left center;transform:none}
  .tuer-band{
    top:0;bottom:0;left:auto;right:0;width:38%;max-height:none;
    display:flex;flex-direction:column;justify-content:safe center;
    overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;
    padding:12px 14px;padding-right:calc(14px + env(safe-area-inset-right));
    border:0;border-left:0;border-right:0;border-top:0;border-bottom:0;
    box-shadow:-12px 0 28px rgba(20,8,24,.4)
  }
  .tuer-band h1{font-size:24px;margin:0 0 6px}
  .tuer-band p:not(.tuer-ohne):not(.bild-credit){
    display:block;font-size:15px;line-height:1.35;margin:0 auto 10px;max-width:none;white-space:normal
  }
  .tuer-band .reihe{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;align-items:center}
  .tuer-band .knopf,.tuer-band .tuer-ohne a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
  .tuer-band .bild-credit{margin:8px auto 0;font-size:11px}
  html[dir=rtl] .tuer-rahmen{inset:0 0 0 38%}
  html[dir=rtl] .tuer-band{
    left:0;right:auto;
    padding-right:14px;padding-left:calc(14px + env(safe-area-inset-left));
    border-left:0;box-shadow:12px 0 28px rgba(20,8,24,.4)
  }
}
@media (prefers-reduced-motion:reduce){
  .fluegel{transition:opacity .4s}
  .oeffnet .fluegel,
  .oeffnet .fluegel.links,
  .oeffnet .fluegel.rechts{transform:none;opacity:0}
  .blase{animation:none}
  .hoert .mik{animation:none}
}
[dir=rtl] .tuer-band{line-height:1.6}

/* Dialog */
.dialog{max-width:640px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.kopf{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--linie);background:var(--creme);position:sticky;top:0;z-index:3}
.kopf-logo{width:40px;height:40px;object-fit:contain}
.kopf div{flex:1;display:flex;flex-direction:column;line-height:1.15}
.kopf span{font-size:.75em;color:var(--grau)}
.kopf-aktionen{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:end}
.kopf-aktionen .leise{padding:4px 0;line-height:1.3}
.hinweis-kasten{margin:12px 16px 0;padding:10px 0;border-top:1px solid var(--lila2);border-bottom:1px solid var(--lila2);font-size:.8em;color:var(--grau)}
.fehler-kasten{margin:12px 16px 0;padding:10px 0;border-top:2px solid #a3123f;border-bottom:2px solid #a3123f;font-size:.85em;color:#7d0e30}
.verlauf{list-style:none;margin:0;padding:16px;flex:1;display:flex;flex-direction:column;gap:10px}
.blase{max-width:86%;padding:10px 14px;border-radius:18px;animation:rein .3s ease}
.blase.frage{align-self:flex-start;background:#fff;border:1px solid var(--linie);border-bottom-left-radius:6px;font-weight:600}
.blase.echo{align-self:flex-start;background:transparent;color:var(--grau);font-style:italic;padding:2px 14px}
/* Runde 4: Chips in der unten angehefteten Leiste, direkt über dem Eingabefeld (Mobil ohne Scrollen) */
.unten{position:sticky;bottom:0;z-index:2;background:var(--creme);border-top:1px solid var(--linie)}
.wahl-leiste{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px 0}
.wahl-hinweis{width:100%;margin:0;font-size:.72em;color:var(--grau)}
.wahl-knopf{font:inherit;font-size:.86em;line-height:1.2;padding:6px 12px;border-radius:16px;border:1px solid var(--lila);background:#fff;color:var(--lila);cursor:pointer}
.wahl-knopf:focus-visible,.wahl-knopf:active{background:var(--lila);color:#fff}
@media (hover:hover) and (pointer:fine){.wahl-knopf:hover{background:var(--lila);color:#fff}}
.blase.antwort{align-self:flex-end;background:var(--lila);color:#fff;border-bottom-right-radius:6px}
@keyframes rein{from{opacity:0;transform:translateY(6px)}}
.eingabe{display:flex;gap:8px;align-items:flex-end;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--creme)}
.eingabe textarea{flex:1;resize:none;font:inherit;font-size:18px;padding:10px 14px;border:1px solid var(--lila2);border-radius:20px;background:#fff;color:var(--tinte);min-height:46px}
.rund{width:46px;height:46px;flex:none;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer}
.rund svg{width:22px;height:22px}
.senden{background:var(--lila);color:#fff}
.mik{background:#fff;color:var(--lila);border:1px solid var(--lila2)}
.eingabe textarea:disabled,.rund:disabled{opacity:.45;cursor:not-allowed}
.hoert .mik{background:#c0305a;color:#fff;border-color:#c0305a;animation:puls 1.2s infinite}
@keyframes puls{50%{box-shadow:0 0 0 8px rgba(192,48,90,.2)}}
.blatt{position:fixed;left:0;right:0;bottom:0;background:#fff;padding:20px 20px calc(20px + env(safe-area-inset-bottom));border-top:2px solid var(--lila2);box-shadow:0 -10px 40px rgba(40,0,40,.18);z-index:5;display:flex;flex-direction:column;gap:10px;max-width:640px;margin:0 auto}
.blatt h2{margin:0;font-size:1.2em}.blatt p{margin:0 0 6px;font-size:.88em}

/* Runde 4: kompakter auf kleinen Höhen (Handy quer 844×390): Kopf nicht angeheftet, Eingabe einzeilig */
@media (max-height:520px){
  body{font-size:17px}
  .kopf{position:static;padding:6px 12px}.kopf-logo{width:28px;height:28px}
  .hinweis-kasten{margin-top:6px;padding:6px 0}
  .verlauf{padding:10px 16px;gap:6px}
  .wahl-leiste{padding:6px 12px 0;gap:5px}.wahl-knopf{padding:4px 10px;font-size:.82em}
  .eingabe{padding:6px 12px calc(6px + env(safe-area-inset-bottom))}
  .eingabe textarea{min-height:38px;height:38px;padding:7px 12px;font-size:16px}
  .rund{width:38px;height:38px}
}

/* Pfad */
.pfad{max-width:640px;margin:0 auto;padding:24px 16px 40px}
.pfad-kopf{text-align:center;margin-bottom:16px}
.pfad-kopf .kopf-logo{width:64px;height:64px}
.pfad h1{margin:.2em 0;font-size:1.8em;color:var(--lila)}
.pfad-kopf p{color:var(--grau);margin:0}
.schritte{list-style:none;margin:0;padding:0;position:relative}
.schritt{display:flex;gap:14px;padding:16px 0;border-top:1px solid var(--linie)}
.schritt:last-child{border-bottom:1px solid var(--linie)}
.schritt .nr{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--lila2);color:var(--lila);font-weight:700}
.schritt.jetzt .nr{background:var(--lila);color:#fff}
.schritt>div{flex:1;min-width:0}
.schritt-figur{margin:0 0 10px}
.bild-rahmen{display:block;position:relative;border-radius:12px;overflow:hidden;background:var(--linie);aspect-ratio:16/9}
.bild-rahmen picture,.schritt-bild{display:block;width:100%;height:100%}
.schritt-bild{object-fit:cover}
.foto-label{position:absolute;inset-inline-start:8px;bottom:8px;margin:0;padding:.2em .55em;border-radius:4px;background:#2a1828;color:#fff;font-size:.7em;line-height:1.3;font-style:normal;letter-spacing:.01em;max-width:calc(100% - 16px)}
.schritt .bezug{margin:0 0 2px;font-size:.85em;font-style:italic;color:var(--lila2)}
.schritt h2{margin:2px 0 4px;font-size:1.15em}
.schritt p{margin:0 0 10px;font-size:.92em;color:var(--grau)}
.schritt .knopf{font-size:.85em;padding:.45em 1.2em}
.schritt:not(.jetzt) .knopf{background:transparent;color:var(--lila);border:1px solid var(--lila2)}
.pfad-fuss{text-align:center;margin-top:24px;display:flex;flex-direction:column;align-items:center;gap:14px}
.pfad-fuss .leise{font-size:.85em}
.bild-credit{margin:18px 0 0;text-align:center;font-size:.75em;color:var(--grau)}
.bild-credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* Rechts-nach-links (ar): Blasen und Pfeil spiegeln */
[dir=rtl] .blase.frage{border-bottom-left-radius:18px;border-bottom-right-radius:6px}
[dir=rtl] .blase.antwort{border-bottom-right-radius:18px;border-bottom-left-radius:6px}
[dir=rtl] .senden svg{transform:scaleX(-1)}
[dir=rtl] .tuer-rahmen{direction:ltr}

/* Tür-KI (Gesprächsmodus, nur bei Schalter an): KI-Hinweis über dem Eingabefeld, Start-Knopf, Weg/Links */
.ki-hinweis{margin:0 0 8px;font-size:15px;line-height:1.35;color:var(--grau);border-left:3px solid var(--lila2);padding:4px 0 4px 10px}
.ki-start{display:flex;justify-content:center;margin:4px 0 10px}
.ki-start .knopf{min-height:44px}
.ki-weg{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;margin:0 0 10px}
.ki-weg .knopf{min-height:44px}
.ki-links{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;width:100%;font-size:16px}
.ki-links a{min-height:44px;display:inline-flex;align-items:center}
.blase.warte{opacity:.7;font-style:italic}

.blase a.ki-inlink{color:var(--lila);text-decoration:underline;text-underline-offset:2px;position:relative}
.blase a.ki-inlink:after{content:"";position:absolute;top:50%;left:50%;width:max(100%,44px);height:44px;transform:translate(-50%,-50%)}
.blase a.ki-inlink:focus-visible,.ki-weg a.ki-inlink:focus-visible,.ki-links a:focus-visible{outline:2px solid var(--lila);outline-offset:2px}
