/* Grundriss-Agent (/ki-agenten/grundriss). Ergänzt styles.css und firmen-ki.css, wird nur auf dieser Seite geladen.
   Rohplan und fertiger Grundriss sind Bilder aus einem echten Lauf (assets/grundriss/), beide deckungsgleich
   zugeschnitten (1393 x 1129), damit Regler und Durchlauf sie übereinanderlegen können.
   Papierflächen (Exposé, Prüfvermerk, Plan) bleiben in beiden Farbschemata hell, das Agentenfenster dunkel. */

.gr { --paper: #ECECF0; --p-ink: #0A0A0C; --p-muted: #5A5A63; --p-line: #D5D5DD; --lila: #6E1CFF; --lila-2: #8E4CFF; --e: cubic-bezier(0.23, 1, 0.32, 1); }
html[data-theme="light"] .gr { --paper: #FFFFFF; }
.gr-plan { display: block; width: 100%; height: auto; }
/* KI-Kennzeichen sitzt links unten: rechts unten steht im Bild schon "KI-Visualisierung". */
.gr .ki-mark { left: 12px; right: auto; bottom: 12px; }
.gr .ki-mark-tip { left: 0; right: auto; }
.gr-mono { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; margin: 0; color: var(--muted); }
.gr-dim { color: var(--muted); }
.gr-eye { font-family: var(--font-mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px; }
.g h2.gr-h-xl { font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -0.035em; line-height: 1.05; }
.gr-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-2); margin: 0; max-width: 40ch; }
.gr-fig { margin: 0; }
.gr-fig figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.gr-chip { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.2; padding: 7px 13px; border-radius: 999px; background: var(--lila-2); color: #fff; white-space: nowrap; box-shadow: 0 6px 16px rgba(110, 28, 255, .28); }

/* 1 · Hero */
.gr-hero h1.g-h1-wide { max-width: 16ch; }
.gr-hero h1.g-h1-wide em { display: block; }
.gr-hero .sub { max-width: 42ch; }
.gr-hero .g-visual::before { content: ""; position: absolute; inset: -14% -10%; background: radial-gradient(closest-side, rgba(142, 76, 255, .20), transparent 72%); pointer-events: none; }
html[data-theme="light"] .gr-hero .g-visual::before { display: none; }
.gr-hero .gr-fig { position: relative; }
.g .gr-hero { overflow: clip; }

/* Vorher-Nachher-Regler */
.gr-cmp { position: relative; aspect-ratio: 1393 / 1129; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow-3); --pos: 56%; }
html[data-theme="light"] .gr-cmp, html[data-theme="light"] .gr-plancard, html[data-theme="light"] .gr-expo { box-shadow: 0 18px 44px rgba(20, 20, 45, .13), 0 0 0 1px var(--border); }
.gr-cmp .gr-plan { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.gr-cmp .ki-mark { z-index: 4; }
.gr-cmp-top { position: absolute; inset: 0; background: #fff; clip-path: inset(0 0 0 var(--pos)); }
.gr-tag { position: absolute; top: 14px; font-size: 13px; font-weight: 600; line-height: 1.2; padding: 7px 13px; border-radius: 999px; white-space: nowrap; color: #fff; }
.gr-tag-a { left: 14px; background: var(--lila-2); }
.gr-tag-b { right: 14px; background: #1B1B22; }
.gr-cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; z-index: 3; }
.gr-cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 10, 12, .28); z-index: 2; pointer-events: none; }
.gr-cmp-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--lila); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 8px 20px rgba(110, 28, 255, .45); transition: transform var(--dur-sm) var(--e); }
.gr-cmp-knob svg { width: 22px; height: 22px; }
.gr-cmp input:hover ~ .gr-cmp-line .gr-cmp-knob { transform: scale(1.08); }
.gr-cmp input:active ~ .gr-cmp-line .gr-cmp-knob { transform: scale(.95); }
.gr-cmp input:focus-visible ~ .gr-cmp-line .gr-cmp-knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--lila-2); }

/* 2 · Ausgangslage */
.gr-problem { background: var(--bg-soft); }
.gr-problem h2 span { display: block; color: var(--muted); }
.gr-problem-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(22px, 3vw, 40px); margin-top: clamp(32px, 4vw, 52px); align-items: stretch; }

/* Papierkarte: Exposé und Prüfvermerk */
.gr-expo { background: var(--paper); color: var(--p-ink); border-radius: var(--r); padding: clamp(20px, 2.6vw, 34px); box-shadow: var(--shadow-3); }
.gr-expo p { color: inherit; margin: 0; }
.gr-expo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; min-height: 24px; }
.gr-expo-top span:first-child { color: var(--lila); }
.gr-expo-top span:last-child { color: var(--p-muted); }
.gr-expo .gr-expo-title { font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 12px; }
.gr-expo .gr-expo-sub { font-size: 15px; color: var(--p-muted); margin-top: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--p-line); }
.gr-expo-plan { position: relative; margin-top: 18px; border-radius: 10px; background: #fff; }
.gr-expo-plan .gr-plan { border-radius: 10px; }
.gr-expo-raw .gr-expo-plan { box-shadow: 0 0 0 3px var(--lila-2); }
.gr-chip-tilt { position: absolute; top: -15px; right: -10px; transform: rotate(2.5deg); }
.gr-expo .gr-expo-foot { margin-top: 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--p-muted); }

.gr-ways { display: grid; gap: clamp(16px, 2vw, 22px); grid-template-rows: 1fr 1fr; }
.gr-way { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px clamp(18px, 2.4vw, 32px); align-items: center; align-content: center; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r); border: 1px solid var(--border); background: var(--bg-elev); }
.gr-way h3 { font-size: clamp(26px, 2.7vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 12px; }
.gr-way p { margin: 0; }
.gr-way-big b { display: block; font-size: clamp(48px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--brand); }
.gr-way-txt { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.3; color: var(--ink); font-weight: 500; max-width: 18ch; margin-top: 8px !important; }
.gr-way-lead { max-width: 24ch; margin-top: 0 !important; }
.gr-way-lead b { color: var(--brand); font-weight: 600; }
.gr-src { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }

.gr-dots { display: flex; gap: 10px; }
.gr-dots > div { padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.gr-dots span { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; white-space: nowrap; }
.gr-dots p { display: grid; grid-template-columns: repeat(6, 13px); gap: 5px; min-height: 85px; align-content: start; }
.gr-dots i { height: 10px; border-radius: 3px; background: var(--muted-2); opacity: .75; }
.gr-dots i.p { background: var(--brand); opacity: 1; }
.gr-way.in .gr-dots i.p { animation: gr-pop .5s var(--e) both; }
.gr-dots i.p:nth-of-type(26) { animation-delay: .25s; } .gr-dots i.p:nth-of-type(27) { animation-delay: .33s; } .gr-dots i.p:nth-of-type(28) { animation-delay: .41s; }
.gr-dots i.p:nth-of-type(29) { animation-delay: .49s; } .gr-dots i.p:nth-of-type(30) { animation-delay: .57s; } .gr-dots i.p:nth-of-type(31) { animation-delay: .65s; } .gr-dots i.p:nth-of-type(32) { animation-delay: .73s; }
@keyframes gr-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

.gr-wait-h { font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px !important; }
.gr-wait ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 92px repeat(3, 72px); gap: 6px; }
.gr-wait li { padding: 10px 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.gr-wait li span { display: block; font-family: var(--font-mono); font-size: 9px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.gr-wait li.w { border-color: var(--border-strong); color: var(--muted); }
.gr-wait-bar { margin: 10px 0 0 98px !important; }
.gr-wait-bar::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--brand); transform-origin: left; }
.gr-way.in .gr-wait-bar::before { animation: gr-grow 1.1s .2s var(--e) both; }
@keyframes gr-grow { from { transform: scaleX(0); } to { transform: none; } }
.gr-wait-bar span { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }

/* 3 · Durchlauf */
.gr-run .g-intro { margin-bottom: 0; }
.gr-run-grid { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 22px; margin-top: clamp(28px, 3.6vw, 44px); align-items: stretch; }
.gr-win { display: grid; grid-template-rows: auto 1fr; background: #111016; color: #F1F1F4; border: 1px solid #272631; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-3); }
.gr-win-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #23222C; font-size: 15.5px; }
.gr-win-bar b { font-weight: 600; white-space: nowrap; }
.gr-ai { font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 7px; border-radius: 5px; color: #fff; background: linear-gradient(180deg, #C08AFF, #6E1CFF); }
.gr-pill { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #9A9AA3; padding: 6px 11px; border-radius: 999px; border: 1px solid #34333F; white-space: nowrap; }
.gr-pill-r { margin-left: auto; }
.gr-win-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.gr-tree { list-style: none; margin: 0; padding: 20px 12px; border-right: 1px solid #23222C; font-family: var(--font-mono); font-size: 12.5px; color: #9A9AA3; display: grid; gap: 4px; align-content: start; }
.gr-tree li { padding: 6px 10px; border-radius: 7px; transition: background .3s, color .3s, opacity .4s; }
.gr-tree .h { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: #6E6E78; padding-bottom: 10px; }
.gr-tree .d1 { padding-left: 22px; }
.gr-tree .d2 { padding-left: 34px; }
.gr-tree .f-out { opacity: 0; }
.gr-stage-wrap { padding: 20px 22px 18px; min-width: 0; }
.gr-stage { position: relative; aspect-ratio: 1393 / 1129; border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .5s var(--e); }
.gr-stage .gr-plan { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.gr-cap { font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: #C9C9D2; margin: 14px 2px 0; min-height: 3em; }

/* Schritte: 1 Rohplan, 2 Räume markiert, 3 Wände nachgezeichnet (grau), 4 möbliert und noch blass, 5 warme Naturtöne. */
.gr-stage .lay { transition: opacity .7s var(--e), filter 1.1s var(--e); }
.gr-stage .lay-fin, .gr-stage .lay-read, .gr-stage .lay-notes { opacity: 0; }
.gr-stage .lay-read > * { opacity: 0; transition: opacity .45s var(--e); transition-delay: calc(var(--i) * 110ms); }
.gr-stage .ki-mark { opacity: 0; transition: opacity .5s var(--e); }
.gr-note { position: absolute; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--e), transform .4s var(--e); pointer-events: none; }
.gr-note-3 { top: 3.5%; right: 2.5%; }
.gr-note-4a { bottom: 1.6%; left: 48px; }
.gr-note-4b { top: 47.5%; left: 21.5%; }
.gr-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--lila-2); box-shadow: 0 0 22px 5px rgba(142, 76, 255, .45); opacity: 0; pointer-events: none; }

[data-step="2"] .lay-read, [data-step="2"] .lay-read > * { opacity: 1; }
[data-step="3"] .lay-raw { filter: contrast(.5) brightness(1.34); }
[data-step="3"] .gr-note-3 { opacity: 1; transform: none; transition-delay: 1.2s; }
[data-step="4"] .lay-fin, [data-step="5"] .lay-fin, [data-step="4"] .gr-stage .ki-mark, [data-step="5"] .gr-stage .ki-mark { opacity: 1; }
[data-step="4"] .lay-fin { filter: saturate(.42) brightness(1.1) contrast(.9); }
[data-step="4"] .lay-notes { opacity: 1; transition-delay: .5s; }
[data-step="4"] .gr-note-4a { opacity: 1; transform: none; transition-delay: .7s; }
[data-step="4"] .gr-note-4b { opacity: 1; transform: none; transition-delay: 1.5s; }
[data-step="5"] .gr-stage { box-shadow: 0 0 0 3px var(--lila-2), 0 0 34px rgba(142, 76, 255, .35); }
[data-step="2"] .gr-scan { animation: gr-scan-a 2.4s cubic-bezier(.5, 0, .3, 1) both; }
[data-step="3"] .gr-scan { animation: gr-scan-b 2.4s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes gr-scan-a { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes gr-scan-b { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
[data-step="1"] .f-in { background: rgba(142, 76, 255, .24); color: #fff; }
[data-step="5"] .f-out { opacity: 1; background: rgba(142, 76, 255, .24); color: #fff; }

.gr-side { display: grid; gap: 16px; grid-template-rows: 1fr auto; align-content: start; }
.gr-steps { list-style: none; margin: 0; padding: 10px; display: grid; gap: 2px; align-content: space-evenly; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg-elev); }
.gr-steps button { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; padding: 12px 12px 14px; border-radius: 10px; cursor: pointer; font-size: 15.5px; line-height: 1.35; color: var(--muted); transition: background var(--dur) var(--e), color var(--dur) var(--e); }
.gr-steps .n { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 500; transition: background var(--dur) var(--e), border-color var(--dur) var(--e), color var(--dur) var(--e); }
.gr-steps .t { padding-top: 3px; }
.gr-steps button:hover { color: var(--ink); }
.gr-steps button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gr-steps button.done .n { border-color: var(--brand); color: var(--brand); }
.gr-steps button[aria-current="step"] { color: var(--ink); background: var(--brand-soft); }
.gr-steps button[aria-current="step"] .n { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.gr-steps button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 1px; background: var(--brand); transform-origin: left; transform: scaleX(0); opacity: 0; }
.gr-steps button[aria-current="step"]::after { transform: scaleX(var(--p, 0)); opacity: 1; }
.gr-now { display: none; }
.gr-timer { padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg-elev); }
.gr-time { font-family: var(--font-mono); font-size: 46px; font-weight: 500; line-height: 1; letter-spacing: .02em; color: var(--ink); margin: 12px 0; font-variant-numeric: tabular-nums; }
.gr-ctl { margin-top: 16px; }
.gr-play { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: var(--rc); border: 1px solid var(--border-strong); font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color var(--dur) var(--e), background var(--dur) var(--e), transform var(--dur-xs) var(--e); }
.gr-play:hover { border-color: var(--brand); background: var(--brand-soft); }
.gr-play:active { transform: scale(.97); }
.gr-play:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gr-play svg { width: 18px; height: 18px; color: var(--brand); }
.gr-play .i-pause, .gr-play.on .i-play { display: none; }
.gr-play.on .i-pause { display: block; }

/* 4 · Ergebnis */
.gr-result { background: var(--bg-soft); }
.gr-result .wrap { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.gr-result h2.gr-h-xl { font-size: clamp(40px, 5vw, 66px); margin-bottom: 18px; }
.gr-stat { margin: 30px 0 0; padding: 18px 22px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg-elev); max-width: 340px; }
.gr-stat-n { font-family: var(--font-mono); font-size: clamp(30px, 3vw, 38px); font-weight: 500; line-height: 1; color: var(--ink); margin: 10px 0; white-space: nowrap; }
.gr-plancard { position: relative; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow-3); }

/* Eigener Agent statt Stückpreis: nutzt .g-cmp aus firmen-ki.css. Steht als letzter Abschnitt vor den Fragen; Nutzen und Kontrolle wechseln davor die Grundfläche. */
.g .gr-own { background: transparent; }
.gr-own .g-intro { max-width: 60ch; }
.gr-own .g-note a { color: var(--ink); }
.g .gr-use { background: transparent; }
.g .gr-ctrl { background: var(--bg-soft); }
.gr .g-faq { background: var(--bg-soft); }
.gr .g-book { background: transparent; }

/* 5 · Nutzen */
.gr-use .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.gr-use h2.g-h { margin-bottom: 26px; }
.gr-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.gr-lines li { border-bottom: 1px solid var(--border); }
.gr-lines button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 22px 0; cursor: pointer; opacity: .5; transition: opacity var(--dur-lg) var(--e); }
.gr-lines button:hover { opacity: .75; }
.gr-lines button[aria-pressed="true"] { opacity: 1; }
.gr-lines button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gr-lines b { display: block; font-size: clamp(22px, 2.5vw, 31px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); }
.gr-lines span { display: block; margin-top: 8px; font-size: 16.5px; line-height: 1.45; color: var(--muted); max-width: 44ch; }
.gr-show { position: relative; display: grid; justify-items: center; padding: 34px 0 18px; }
.gr-show .gr-expo { width: min(100%, 470px); transition: transform .7s var(--e), box-shadow .7s var(--e), border-radius .7s var(--e); }
.gr-badge { font-size: 9.5px !important; letter-spacing: .18em; padding: 6px 11px; border-radius: 999px; background: var(--lila-2); color: #fff !important; }
.gr-next { display: grid; grid-template-columns: minmax(0, 1fr) 34%; gap: 16px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--p-line); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--e), transform .5s var(--e); }
.gr-next-img { position: relative; display: block; }
.gr-next-img > img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 16px rgba(20, 20, 45, .16); }
.gr .gr-next-img .ki-mark { left: 6px; bottom: 6px; width: 18px; height: 18px; }
.gr .gr-next-img .ki-mark > img.ki-mark-ic { width: 18px; height: 18px; }
.gr-expo .gr-next-eye { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--lila); }
.gr-expo .gr-next-t { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin-top: 6px; }
.gr-expo .gr-next-s { font-size: 13.5px; line-height: 1.4; color: var(--p-muted); margin-top: 4px; }
.gr-show[data-s="2"] .gr-next, .gr-show[data-s="3"] .gr-next { opacity: 1; transform: none; }
.gr-show-chip { position: absolute; top: 0; left: 50%; z-index: 2; opacity: 0; transform: translate(-50%, 8px); transition: opacity .5s var(--e), transform .5s var(--e); }
.gr-show[data-s="3"] .gr-show-chip { opacity: 1; transform: translate(-50%, 0); transition-delay: .25s; }
.gr-show[data-s="3"] .gr-expo { transform: perspective(1400px) rotateY(-9deg) rotateX(3deg) rotate(-1.2deg) scale(.93); border-radius: 20px; box-shadow: 0 0 0 11px #17171D, 0 0 0 12.5px #3A3A45, 0 34px 70px rgba(0, 0, 0, .55); }

/* 6 · Kontrolle */
.gr-ctrl .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.gr-ctrl h2.g-h { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.025em; max-width: 18ch; margin-bottom: 18px; }
.gr-shout { font-size: clamp(42px, 5.6vw, 74px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; color: var(--ink); margin: 0 0 26px; }
.gr-checks { list-style: none; margin: 4px 0 0; padding: 0; }
.gr-checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--p-line); font-size: clamp(15.5px, 1.4vw, 17.5px); line-height: 1.35; color: var(--p-ink); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--e), transform .5s var(--e); transition-delay: calc(var(--i) * 160ms + 150ms); }
.gr-check.in .gr-checks li { opacity: 1; transform: none; }
.gr-checks svg { width: 24px; height: 24px; color: var(--lila); }
.gr-checks .open svg { color: var(--p-muted); }
.gr-check-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.gr-b { all: unset; box-sizing: border-box; padding: 12px 22px; border-radius: 999px; border: 1px solid #B7B7C2; font-size: 15.5px; font-weight: 600; color: var(--p-ink); cursor: pointer; transition: transform var(--dur-xs) var(--e), background var(--dur) var(--e), border-color var(--dur) var(--e), opacity var(--dur) var(--e); }
.gr-b:hover { border-color: var(--lila); }
.gr-b:active { transform: scale(.97); }
.gr-b:focus-visible { outline: 2px solid var(--lila); outline-offset: 2px; }
.gr-b-ok { background: var(--lila); border-color: var(--lila); color: #fff; box-shadow: 0 8px 20px rgba(110, 28, 255, .3); }
.gr-b-ok:hover { background: #5814D9; }
.gr-check[data-state="frei"] .gr-b:not(.gr-b-ok), .gr-check[data-state="korr"] .gr-b-ok { opacity: .4; box-shadow: none; }
.gr-check .gr-check-msg { min-height: 1.5em; margin-top: 14px; font-size: 14.5px; font-weight: 500; color: var(--lila); }

.gr-legal { grid-column: 1 / -1; margin: clamp(36px, 5vw, 60px) 0 0; padding-top: 22px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; line-height: 1.8; text-transform: uppercase; color: var(--muted); text-align: center; }

@media (max-width: 1100px) {
  .gr-run-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .gr-win-body { grid-template-columns: minmax(0, 1fr); }
  .gr-tree, .gr-pill-r { display: none; }
  .gr-way { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .gr-problem-grid, .gr-result .wrap, .gr-use .wrap, .gr-ctrl .wrap { grid-template-columns: minmax(0, 1fr); }
  .gr-ways { grid-template-rows: none; }
  .gr-way { grid-template-columns: minmax(0, 1fr) auto; }
  .gr-run-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gr-stage-wrap { padding: 14px 14px 12px; }
  .gr-cap { font-size: 12px; min-height: 4.5em; margin-top: 12px; }
  .gr-side { grid-template-rows: none; gap: 12px; }
  .gr-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 8px; }
  .gr-steps button { grid-template-columns: 1fr; justify-items: center; padding: 10px 0 12px; }
  .gr-steps .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gr-steps button::after { left: 8px; right: 8px; bottom: 4px; }
  .gr-now { display: block; margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); text-align: center; min-height: 2.8em; }
  .gr-timer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 16px 18px; }
  .gr-timer > .gr-mono:first-child { grid-column: 1 / -1; }
  .gr-time { font-size: 36px; margin: 6px 0; }
  .gr-timer > .gr-dim { grid-column: 1; }
  .gr-ctl { grid-column: 2; grid-row: 2 / span 2; margin: 0; }
  .gr-result .gr-fig { order: -1; }
  .gr-stat { max-width: none; }
  .gr-show { padding-top: 44px; }
  .gr-hero .g-visual { margin-top: 8px; }
  .gr-legal { text-align: left; }
}
@media (max-width: 620px) {
  .gr-own .g-cmp { gap: 16px; }
  .gr-own .g-cmp-cell { padding: 14px 16px; font-size: 15.5px; }
  .gr-own .g-cmp-arrow { padding: 2px 0; }
  .gr-way { grid-template-columns: minmax(0, 1fr); }
  .gr-wait ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gr-wait li { padding: 9px 8px 10px; font-size: 13px; }
  .gr-wait-bar { margin-left: calc(25% + 2px) !important; }
  .gr-win-bar { padding: 12px 14px; gap: 9px; font-size: 14.5px; }
  .gr-chip, .gr-tag { font-size: 11.5px; padding: 6px 10px; }
  .gr-note-4a, .gr-note-4b { display: none; }
  .gr-tag { top: 10px; } .gr-tag-a { left: 10px; } .gr-tag-b { right: 10px; }
  .gr-cmp-knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .gr-chip-tilt { right: -4px; }
  .gr-show[data-s="3"] .gr-expo { transform: rotate(-1.5deg) scale(.9); }
  .gr-b { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gr-stage .lay, .gr-stage .lay-read > *, .gr-stage .ki-mark, .gr-note, .gr-show .gr-expo, .gr-next, .gr-show-chip, .gr-checks li, .gr-cmp-knob { transition: none; }
  .gr-scan, .gr-way.in .gr-dots i.p, .gr-way.in .gr-wait-bar::before { animation: none; }
}
