:root{--grund:#1B2737;--flaeche:#223046;--tinte:#EEE8DC;--leise:#C9C2B3;--gold:#C2A877;--gold-hell:#D8C59B;--gut:#8FC9A0;--warn:#E8B27A;--rand:16px}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--grund);color:var(--tinte);font:400 17px/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;display:flex;flex-direction:column;min-height:100dvh;padding-inline:max(var(--rand),env(safe-area-inset-left))}
h1{font:500 clamp(1.7rem,4.5vw,2.6rem)/1.15 "Cormorant Garamond",Georgia,"Times New Roman",serif;letter-spacing:-.01em;margin:0 0 .6rem}
p{margin:0 0 1rem}
.kopf{display:flex;align-items:center;gap:.75rem;padding-block:.75rem;flex-wrap:wrap}
.logo{display:block}
.marke{font:600 1.05rem/1 "Cormorant Garamond",Georgia,serif;letter-spacing:.14em;text-transform:uppercase;color:var(--tinte)}
.kopf-mitte{display:flex;gap:1rem;align-items:center;margin-inline:auto;min-width:0}
.kopf-rechts{display:flex;gap:.5rem;align-items:center;margin-left:auto}
.baut{color:var(--tinte);max-width:34ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.baut.arbeit::before{content:"";display:inline-block;width:.55rem;height:.55rem;border-radius:50%;background:var(--gold);margin-right:.5rem;animation:puls 1.4s ease-in-out infinite}
.rest{color:var(--gold-hell);font-variant-numeric:tabular-nums}
@keyframes puls{50%{opacity:.25}}
main{flex:1;display:flex;flex-direction:column;min-height:0}
.mitte{margin:auto;max-width:34rem;padding-block:2rem}
.mitte.breit{max-width:40rem}
.gross{font-size:1.35rem;line-height:1.35}
.lead{font-size:1.1rem}
.schritte{padding-left:1.25rem;margin:0 0 1.5rem}.schritte li{margin-bottom:.4rem}
.hinweis{color:var(--leise);font-size:.95rem;margin:0}
.klein-text{color:var(--leise);font-size:.95rem}
.knopf{font:inherit;font-weight:600;color:var(--grund);background:var(--tinte);border:0;border-radius:0;padding:.8rem 1.4rem;min-height:44px;cursor:pointer;transition:transform .12s,background .15s}
.knopf:hover:not(:disabled){background:#fff}.knopf:active:not(:disabled){transform:translateY(1px)}
.knopf:disabled{background:var(--flaeche);color:var(--leise);cursor:not-allowed}
.knopf.klein{padding:.5rem .9rem;background:var(--flaeche);color:var(--tinte);font-weight:500}
.knopf.klein[aria-pressed="true"]{background:var(--tinte);color:var(--grund)}
.knopf.haupt{margin-top:1rem}
:focus-visible{outline:3px solid var(--gold-hell);outline-offset:2px}
.mikro{background:var(--flaeche);padding:1.1rem;margin-bottom:1rem;display:grid;gap:.8rem;justify-items:start}
.wahl{display:grid;gap:.25rem;font-size:.95rem;color:var(--leise);max-width:100%}
select{font:inherit;color:var(--tinte);background:var(--grund);border:0;padding:.55rem;min-height:44px;max-width:100%}
.pegel{width:100%;max-width:320px;height:18px;background:var(--grund)}
.pegel-klein{width:60px;height:14px;background:var(--flaeche)}
.raum{flex:1;display:flex;flex-direction:column;min-height:0;padding-bottom:max(var(--rand),env(safe-area-inset-bottom))}
.buehne-leiste{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;padding-bottom:.6rem}
.umschalter{display:flex;gap:.25rem}
.buehne{flex:1;min-height:60dvh;background:var(--flaeche);display:flex;justify-content:center;align-items:stretch;position:relative}
.rahmen{position:relative;width:100%;background:#fff;transition:width .25s ease}
.buehne[data-ansicht="handy"] .rahmen{width:390px;max-width:100%}
.buehne[data-ansicht="handy"]{padding-block:.75rem}
iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#fff}
.warte{position:absolute;inset:0;background:var(--flaeche);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:2rem}
.warte[hidden]{display:none}
@media (max-width:640px){.kopf-mitte{order:3;flex-basis:100%;margin:0}.baut{max-width:none;white-space:normal;flex:1}.rest{white-space:nowrap}.buehne{min-height:70dvh}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.werkzeuge{display:flex;gap:.25rem;flex-wrap:wrap;margin-left:auto}
.knopf.passt{background:var(--gold);color:var(--grund)}
.knopf.passt:disabled{background:var(--flaeche);color:var(--leise)}
.datei{display:inline-block;position:relative;text-align:center}
.datei input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.datei:focus-within{outline:3px solid var(--gold-hell);outline-offset:2px}
dialog{background:var(--flaeche);color:var(--tinte);border:0;padding:1.5rem;max-width:min(28rem,calc(100vw - 2rem))}
dialog::backdrop{background:rgba(10,16,24,.7)}
dialog h2{font:500 1.6rem/1.2 "Cormorant Garamond",Georgia,serif;margin:0 0 .6rem}
dialog img{display:block;background:#fff;padding:8px;margin:0 auto 1rem;image-rendering:pixelated}
.dialog-knoepfe{display:flex;gap:.5rem;justify-content:flex-end;flex-wrap:wrap;margin-top:1rem}
[hidden]{display:none!important}
