/* smarthome.dustingotte.de – Vorschau auf das selbst gebaute Home-Assistant-Dashboard.
   Dunkles Nachtblau wie im Dashboard, fette Montserrat-Überschriften wie auf dustingotte.de. */
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fonts/montserrat-800.woff2") format("woff2"); }

:root {
  --paper:#EDF1F7; --card:#FBFCFE; --border:#DBE3EE; --chip:#E5ECF7; --ink:#141C28; --muted:#64718A;
  --accent:#1F62D8; --soft:#8FAFE2; --accent-card:#DCE7FB; --on-accent:#FBFCFE;
  --ok:#1F7A4D; --warn:#A35A08;
  --display:"Montserrat", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --sans: system-ui, -apple-system, "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --radius: 22px; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --paper:#0C1018; --card:#161C27; --border:#273142; --chip:#1D2634; --ink:#F2F6FB; --muted:#95A3B8;
  --accent:#6EA4FF; --soft:#37507A; --accent-card:#14203A; --on-accent:#0C1018;
  --ok:#5CC08C; --warn:#E0A75C; color-scheme: dark } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; touch-action: manipulation; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
/* Nichts darf seitlich überstehen (Telefone, Leuchten), sonst lässt Safari auf dem iPhone rauszoomen. */
html, body, main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.06; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--sans); letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); }
.section { padding: clamp(72px, 12vw, 128px) 0; }
.section.flush-top { padding-top: 0; }
.after-gallery { margin-top: 28px; }
.fineprint { font-size: .92rem; }
/* Gestaffeltes Einblenden: .d1 bis .d5 statt Inline-Styles, damit die CSP streng bleiben kann. */
.d1 { --d: 80ms } .d2 { --d: 160ms } .d3 { --d: 240ms } .d4 { --d: 320ms } .d5 { --d: 400ms }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; text-wrap: balance; }

/* ---------- Kopfzeile ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  background: color-mix(in srgb, var(--paper) 74%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 800 1.1rem/1 var(--display); letter-spacing: -.02em; margin-right: auto; }
.brand .mark { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); }
.brand .mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--accent);
  color: var(--on-accent); text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .15s; }
.pill:hover { transform: translateY(-1px); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 8vw, 92px) 0 clamp(56px, 9vw, 104px); isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero::before { width: 540px; height: 540px; background: var(--accent-card); opacity: .85; top: -140px; right: -90px; }
.hero::after { width: 380px; height: 380px; background: var(--soft); opacity: .3; bottom: -40px; left: -150px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); font-size: .88rem; font-weight: 600; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.02; }
@media (max-width: 900px) { .hero h1 { font-size: clamp(2.4rem, 10vw, 4rem); } }
.hero .sub { margin: 0; font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--muted); max-width: 32em; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  border-radius: 16px; background: var(--accent); color: var(--on-accent); font: 600 1.05rem/1 var(--sans); text-decoration: none;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 32%, transparent); transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 40%, transparent); }
.button:active { transform: scale(.98); }
.button svg { width: 18px; height: 18px; transition: transform .18s; }
.button:hover svg { transform: translateX(3px); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 4px 0 0; list-style: none; color: var(--muted); font-size: .95rem; }
.ticks li { display: flex; align-items: center; gap: 7px; }
.ticks b { color: var(--ink); font-family: var(--display); font-weight: 700; }

/* Telefone */
.phones { position: relative; height: clamp(520px, 62vw, 680px); }
.phone { position: absolute; width: clamp(220px, 26vw, 300px); padding: 2.6%; border-radius: 15% / 7%;
  background: #1c1c1e; box-shadow: 0 0 0 1.5px #3a3a3c inset, 0 40px 80px -20px rgb(0 0 0 / .45), 0 18px 36px -18px rgb(0 0 0 / .35); }
/* Bild bestimmt die Höhe: so wird der Screenshot nie beschnitten oder vergrößert. */
.phone img { width: 100%; height: auto; aspect-ratio: 660 / 1435; border-radius: 12.4% / 5.7%; }
.phone.front { --fx: -28%; left: 50%; top: 0; transform: translateX(var(--fx)) rotate(3deg); z-index: 2; animation: float 7s ease-in-out infinite; }
.phone.back { --bx: -92%; left: 50%; top: 60px; transform: translateX(var(--bx)) rotate(-7deg) scale(.9); animation: float2 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateX(var(--fx)) rotate(3deg) translateY(-14px); } }
@keyframes float2 { 50% { transform: translateX(var(--bx)) rotate(-7deg) scale(.9) translateY(10px); } }
.sticker { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border); box-shadow: 0 16px 40px -12px rgb(0 0 0 / .25); font-size: .9rem; line-height: 1.3; }
.sticker b { display: block; font: 700 1.1rem/1.2 var(--display); letter-spacing: -.02em; }
.sticker span { color: var(--muted); }
.sticker .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-card); color: var(--accent); flex: none; }
.sticker .dot svg { width: 20px; height: 20px; }
.sticker.one { right: -24px; top: 42%; animation: float3 6s ease-in-out infinite; }
.sticker.two { left: -8px; bottom: 6%; animation: float3 7s ease-in-out -2s infinite; }
@keyframes float3 { 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-text { justify-items: center; }
  .actions, .ticks { justify-content: center; }
  .phones { height: 560px; max-width: 420px; width: 100%; margin: 0 auto; }
  .phone { width: 240px; }
  .sticker.one { right: -4px; } .sticker.two { left: -4px; }
}

/* ---------- Hinweis: nur zum Anschauen ---------- */
.notice { margin: 0 auto; max-width: 1120px; padding: 0 20px; }
.notice-inner { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  padding: 22px 26px; border-radius: var(--radius); background: var(--chip); border: 1px solid var(--border); }
.notice .icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--card); color: var(--accent); }
.notice .icon svg { width: 24px; height: 24px; }
.notice h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.notice p { margin: 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 560px) { .notice-inner { padding: 18px; gap: 14px; grid-template-columns: 40px 1fr; } .notice .icon { width: 40px; height: 40px; border-radius: 12px; } .notice .icon svg { width: 20px; height: 20px; } }

/* ---------- Zahlen ---------- */
.numbers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.number { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.number b { display: block; font: 800 clamp(1.9rem, 4vw, 2.7rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.number span { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .numbers { grid-template-columns: repeat(2, 1fr); } .number:last-child { grid-column: span 2; } }

/* ---------- Galerie ---------- */
.gallery { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px max(20px, calc((100vw - 1120px) / 2 + 20px)) 36px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: none; width: clamp(210px, 22vw, 250px); scroll-snap-align: center; display: grid; align-content: start; gap: 16px; margin: 0; }
.shot .phone { position: relative; width: 100%; box-shadow: 0 0 0 1.5px #3a3a3c inset, 0 28px 50px -24px rgb(0 0 0 / .45); transition: transform .3s ease; }
.shot:hover .phone { transform: translateY(-6px); }
.shot figcaption { text-align: center; }
.shot figcaption b { display: block; font: 700 1.15rem/1.3 var(--display); letter-spacing: -.02em; }
.shot figcaption span { color: var(--muted); font-size: .92rem; }
.gallery-nav { display: flex; justify-content: center; gap: 10px; }
.gallery-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--card); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; transition: border-color .2s; }
.gallery-nav button:hover { border-color: var(--accent); }
.gallery-nav svg { width: 18px; height: 18px; }

/* ---------- Kacheln ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  display: grid; align-content: start; gap: 10px; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgb(0 0 0 / .3); }
.tile.wide { grid-column: span 3; }
.tile.accent { background: var(--accent-card); border-color: transparent; }
.tile .icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--chip); color: var(--accent); margin-bottom: 8px; }
.tile.accent .icon { background: var(--card); }
.tile .icon svg { width: 24px; height: 24px; }
.tile h3 { margin: 0; font: 700 1.15rem/1.3 var(--display); letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--muted); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.formats span { padding: 6px 12px; border-radius: 999px; background: var(--chip); font-size: .85rem; font-weight: 600; }
.tile.accent .formats span { background: var(--card); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile.wide { grid-column: span 1; } }
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile { padding: 22px; }
  .tile:not(.wide) { grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 2px; }
  .tile:not(.wide) .icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
}

/* ---------- Automationen als Ablauf ---------- */
.flows { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.flow { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px 26px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.flow .when { display: grid; justify-items: center; gap: 6px; width: 112px; flex: none; }
.flow .when span { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.flow .when i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--chip); color: var(--accent); }
.flow .when svg { width: 20px; height: 20px; }
.flow h3 { margin: 0 0 4px; font: 700 1.08rem/1.35 var(--display); letter-spacing: -.02em; }
.flow p { margin: 0; color: var(--muted); }
.flow p em { font-style: normal; color: var(--ink); font-weight: 600; }
@media (max-width: 620px) {
  .flow { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .flow .when { grid-auto-flow: column; justify-items: start; align-items: center; width: auto; gap: 10px; }
}

/* ---------- Unterbau (dunkles Band) ---------- */
.stack-band { background: #0A0E16; color: #EEF3FA; border-radius: clamp(28px, 4vw, 48px); margin: 0 12px;
  padding: clamp(64px, 10vw, 112px) 0; position: relative; overflow: hidden; isolation: isolate; }
.stack-band::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 660px; height: 660px; border-radius: 50%;
  background: #1F62D8; opacity: .3; filter: blur(100px); z-index: -1; }
.stack-band .eyebrow, .stack-band h2 em { color: #8FB4FF; }
.stack-band .section-head p { color: #AFBCCE; }
.layers { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.layer { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 24px 26px; border-radius: var(--radius);
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .09); }
.layer .step { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #8FB4FF; color: #0A0E16; font: 800 1rem/1 var(--display); }
.layer h3 { margin: 0 0 6px; font: 700 1.2rem/1.3 var(--display); letter-spacing: -.02em; }
.layer p { margin: 0; color: #AFBCCE; }
.layer .formats { margin-top: 12px; }
.layer .formats span { background: rgb(255 255 255 / .08); color: #EEF3FA; }
@media (max-width: 560px) { .layer { padding: 20px; gap: 16px; } }

/* ---------- Geräte: Logowand ----------
   Die Zeichen liegen als SVG in logos/ (Simple Icons, CC0) und werden als Maske eingefärbt,
   damit sie in hell und dunkel gleich aussehen. Marken ohne brauchbares SVG stehen als Schriftzug. */
.devices { list-style: none; margin: 0 auto; padding: 0; max-width: 900px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.marke { display: grid; place-items: center; height: 88px; padding: 0 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s; }
.marke:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-3px); }
.marke .zeichen { width: 42px; height: 42px; background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
/* Wortmarken füllen ihr quadratisches SVG nur als schmales Band aus: Quadrat größer zeichnen
   und den leeren Rand oben und unten wegschneiden, sonst stehen sie winzig neben den Zeichen. */
.marke .zeichen.breit { width: 104px; height: 44px;
  -webkit-mask-size: 104px 104px; mask-size: 104px 104px; }
/* Der Name steht für Vorleseprogramme da, sichtbar ist er nur bei den Schriftzug-Kacheln. */
.marke > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marke.wort > span { position: static; width: auto; height: auto; clip: auto;
  font: 700 1.05rem/1.2 var(--display); letter-spacing: -.02em; text-align: center; }
.m-philipshue { --mark: url("logos/philipshue.svg") }
.m-ikea       { --mark: url("logos/ikea.svg") }
.m-shelly     { --mark: url("logos/shelly.svg") }
.m-ring       { --mark: url("logos/ring.svg") }
.m-lg         { --mark: url("logos/lg.svg") }
.m-bose       { --mark: url("logos/bose.svg") }
.m-amazonalexa{ --mark: url("logos/amazonalexa.svg") }
.m-spotify    { --mark: url("logos/spotify.svg") }
.m-bambulab   { --mark: url("logos/bambulab.svg") }

/* ---------- Fragen ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--accent); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--chip); color: var(--accent); font: 500 1.3rem/1 var(--sans); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: -6px 0 20px; color: var(--muted); }

/* ---------- Kontakt & Fuß ---------- */
.contact { text-align: center; display: grid; gap: 10px; justify-items: center; }
.contact p { margin: 0; color: var(--muted); }
.mail { font: 700 clamp(1.3rem, 4vw, 2rem)/1.2 var(--display); letter-spacing: -.03em; color: var(--ink); text-decoration: none; word-break: break-word;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; padding-bottom: 4px; }
.mail:hover { color: var(--accent); }
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; margin-top: clamp(48px, 8vw, 80px); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer .brand { margin-right: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
footer nav a:hover { color: var(--ink); }
footer small { color: var(--muted); }

/* ---------- iPhone: alles eine Nummer kleiner ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .notice { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 30px; gap: 10px; }
  .section-head p { font-size: 1rem; }
  h2 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .nav .wrap { height: 56px; }
  .brand { font-size: 1rem; } .brand .mark { width: 30px; height: 30px; border-radius: 10px; }
  .pill { padding: 8px 14px; font-size: .88rem; }

  .hero { padding: 28px 0 40px; }
  .hero .wrap { gap: 28px; }
  .hero-text { gap: 16px; }
  .badge { font-size: .8rem; padding: 6px 12px 6px 9px; }
  .hero h1 { font-size: clamp(2rem, 9.4vw, 2.6rem); }
  .hero .sub { font-size: 1rem; }
  .button { min-height: 50px; padding: 0 22px; border-radius: 14px; font-size: 1rem; }
  .ticks { font-size: .86rem; gap: 6px 14px; }
  .phones { height: calc(42vw * 2.174 + 40px); max-width: none; }
  .phone { width: 42vw; }
  .phone.front { --fx: -6%; }
  .phone.back { --bx: -94%; top: 34px; }
  .sticker { padding: 8px 11px; gap: 8px; border-radius: 14px; font-size: .74rem; }
  .sticker b { font-size: .92rem; }
  .sticker .dot { width: 30px; height: 30px; border-radius: 9px; }
  .sticker .dot svg { width: 16px; height: 16px; }
  .sticker.one { right: 0; top: 48%; } .sticker.two { left: 0; bottom: 4%; }

  .number { padding: 20px 14px; }
  .number span { font-size: .84rem; }
  .gallery { gap: 18px; padding-bottom: 24px; }
  .shot { width: 46vw; gap: 12px; }
  .shot figcaption b { font-size: 1.02rem; }
  .shot figcaption span { font-size: .82rem; }

  .tile { padding: 18px; border-radius: 18px; }
  .tile h3 { font-size: 1rem; }
  .tile p { font-size: .92rem; }
  .tile:not(.wide) { grid-template-columns: 40px 1fr; column-gap: 14px; }
  .tile .icon, .tile:not(.wide) .icon { width: 40px; height: 40px; border-radius: 12px; }
  .tile .icon svg { width: 20px; height: 20px; }
  .formats span { font-size: .78rem; padding: 5px 10px; }

  .stack-band { margin: 0 8px; border-radius: 28px; padding: 56px 0; }
  .layer h3 { font-size: 1.08rem; }
  .layer p { font-size: .92rem; }
  .devices { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .marke { height: 68px; padding: 0 8px; border-radius: 15px; }
  .marke .zeichen { width: 26px; height: 26px; }
  .marke .zeichen.breit { width: 78px; height: 34px; -webkit-mask-size: 78px 78px; mask-size: 78px 78px; }
  .marke.wort > span { font-size: .84rem; }
  .faq summary { font-size: .98rem; padding: 16px 34px 16px 0; }
  .faq details { padding: 0 18px; border-radius: 15px; }
  .faq details p { font-size: .94rem; }
  .mail { font-size: 1.3rem; }
}

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Zugangscode (code.html) ---------- */
.gate-page { min-height: 100svh; overflow: hidden; }
.gate { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 24px 16px calc(64px + env(safe-area-inset-bottom)); }
.gate-glow { position: absolute; width: min(120vw, 620px); aspect-ratio: 1; border-radius: 50%; background: var(--accent-card);
  filter: blur(80px); right: -28vw; top: -16vw; }
.gate-card { position: relative; width: min(100%, 440px); padding: 32px 24px; border-radius: 26px; background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 24px 60px -30px rgb(0 0 0 / .4); }
.gate-card .mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); margin-bottom: 20px; }
.gate-card .mark svg { width: 24px; height: 24px; }
.gate-card .greeting { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.gate-card h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); line-height: .98; margin: 0 0 14px; }
.gate-text { color: var(--muted); margin: 0 0 24px; }
#gate-form { display: grid; gap: 10px; }
#gate-code { width: 100%; min-height: 56px; padding: 0 18px; border-radius: 16px; border: 2px solid var(--border); background: var(--paper); color: var(--ink);
  font: 500 1.1rem/1 var(--mono); letter-spacing: .04em; }
#gate-code::placeholder { color: var(--border); }
#gate-code:focus { outline: none; border-color: var(--accent); }
#gate-code[aria-invalid="true"] { border-color: #C2410C; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
#gate-form .button { width: 100%; border: 0; cursor: pointer; }
#gate-form .button:disabled { opacity: .6; cursor: progress; }
.gate-error { min-height: 1.4em; margin: 12px 0 0; color: #C2410C; font-weight: 600; font-size: .92rem; text-align: center; }
@media (prefers-color-scheme: dark) { .gate-error, #gate-code[aria-invalid="true"] { color: #FB923C; border-color: #FB923C; } }
.gate-legal { position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 18px; font-size: .85rem; }
.gate-legal a { font-weight: 500; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) {
  .gate-glow { width: 720px; right: 6vw; top: 50%; transform: translateY(-50%); }
  .gate { justify-items: start; padding-left: max(40px, calc((100vw - 1120px) / 2)); }
  .gate-card { padding: 48px 44px; width: 460px; }
  .gate-legal { justify-content: flex-start; padding-left: max(40px, calc((100vw - 1120px) / 2)); }
}
