/* AuenByte · Design-System „Showroom“
   Dunkle Bühne, warmes Bernstein für AuenByte, kühle Akzente je Produkt
   (Teal MSTagesjournal, Himmelblau MeteoDiary, Nachtviolett Nachtlicht).
   Schriften lokal (DSGVO, kein CDN). Eine Datei für alle Seiten. */

/* ---------- Schriften ---------- */
@font-face { font-family:'Bricolage Grotesque'; font-style:normal; font-weight:700 800; src:url('../fonts/bricolage-grotesque-latin-wght.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Instrument Sans'; font-style:normal; font-weight:400; src:url('../fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Instrument Sans'; font-style:italic; font-weight:400; src:url('../fonts/instrument-sans-latin-400-italic.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Instrument Sans'; font-style:normal; font-weight:500; src:url('../fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Instrument Sans'; font-style:normal; font-weight:600; src:url('../fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Instrument Sans'; font-style:normal; font-weight:700; src:url('../fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Spline Sans Mono'; font-style:normal; font-weight:400; src:url('../fonts/spline-sans-mono-latin-400-normal.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Spline Sans Mono'; font-style:normal; font-weight:500; src:url('../fonts/spline-sans-mono-latin-500-normal.woff2') format('woff2'); font-display:swap; }

/* ---------- Tokens ---------- */
@property --acc  { syntax: '<color>'; inherits: true; initial-value: #ffb84d; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: #3b2a0e; }
@property --base { syntax: '<color>'; inherits: true; initial-value: #0b0f1e; }

:root {
  --ink: #0b0f1e; --ink-2: #11162a; --ink-3: #171d33; --ink-4: #1f2742;
  --text: #eef1fa; --muted: #a9b2c9; --faint: #7b849c;
  --line: rgba(238,241,250,.14); --line-strong: rgba(238,241,250,.28);
  --it: #ffb84d; --ms: #3dd6b5; --meteo: #6ab0ff; --night: #b794ff;
  --acc: var(--it); --acc-ink: #0b0f1e; --glow: #3b2a0e;
  --ok: #3dd6b5; --warn: #ffb84d; --bad: #ff7a7a;
  --f-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --f-mono: 'Spline Sans Mono', ui-monospace, Menlo, monospace;
  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --gutter: clamp(16px, 4vw, 56px); --max: 1160px; --header-h: 68px;
  color-scheme: dark;
}
body[data-acc="ms"]    { --acc: var(--ms);    --glow: #0d4a47; }
body[data-acc="meteo"] { --acc: var(--meteo); --glow: #123a78; }
body[data-acc="night"] { --acc: var(--night); --glow: #3a1f78; }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { max-width: 100%; }
img { display: block; }
[hidden]:not([hidden="until-found"]) { display: none !important; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 58ch; }
.eyebrow {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--acc);
  display: flex; align-items: center; gap: 10px; margin: 0;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--text); background: transparent;
  border: 1px solid var(--line-strong); cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--acc); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--acc) 85%, white); }
.btn.small { padding: 9px 16px; font-size: .9rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--acc); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow svg { width: 16px; height: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.tag.acc { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 74%, transparent);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; min-width: 0; }
.logo i { font-style: normal; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--it); color: #1a1204; font-size: .95rem; font-weight: 800; flex: none; }
.logo small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .66rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.logo .prod { color: var(--acc); }
.logo .sep { color: var(--faint); font-weight: 400; margin-inline: 6px; }
.nav { display: flex; align-items: center; gap: clamp(8px, 2.4vw, 32px); }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); padding: 6px 2px; transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: grid; }
  .header-tools .btn { display: none; }
  .logo small { display: none; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section.tight { padding-top: 0; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; }
.section-head h2 em { font-style: normal; color: var(--acc); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.band { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--glow) 55%, transparent) 50%, transparent); }
.band-solid { background: var(--ink-2); border-block: 1px solid var(--line); }
.divider { height: 1px; background: var(--line); }

/* ---------- Karten & Raster ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  position: relative; padding: 24px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--line); transition: border-color .25s, transform .25s, box-shadow .25s;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card.hover:hover { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc); margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; line-height: 1.2; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.card .go { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--acc); font-weight: 600; font-size: .9rem; }
.card .go svg { width: 14px; height: 14px; }
.card.solid { background: var(--ink-2); }

/* Nummerierte Schritte */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 20px 22px 20px 72px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 22px; top: 20px; font-family: var(--f-mono); font-size: .8rem; color: var(--acc); letter-spacing: .06em; }
.steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Große Zahlen */
.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fact { padding: 26px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); }
.fact .big { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.04em; color: var(--acc); font-variant-numeric: tabular-nums; }
.fact p { margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* Produktkacheln */
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.tile {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 18px; min-height: 420px;
  padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); text-decoration: none; color: inherit;
  background: radial-gradient(90% 70% at 85% 0%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%), var(--ink-2);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.tile:hover { border-color: color-mix(in srgb, var(--acc) 60%, var(--line)); transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0,0,0,.4), 0 0 60px color-mix(in srgb, var(--acc) 14%, transparent); }
.tile.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: 28px; }
.tile .tile-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tile .tile-visual { display: flex; justify-content: center; align-items: center; min-width: 0; }
.tile .tile-visual img { width: auto; max-width: 100%; max-height: 420px; height: auto; }
@media (max-width: 760px) { .tile.wide { grid-template-columns: 1fr; } .tile .tile-visual img { max-height: 340px; } }
.tile .tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; }
.tile h3 em { font-style: normal; color: var(--acc); }
.tile p { color: var(--muted); max-width: 44ch; }
.tile .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tile .art { position: absolute; z-index: -1; right: -8%; bottom: -10%; width: 62%; opacity: .9; pointer-events: none; }
.tile.locked { border-style: dashed; }
.tile.locked .tile-lock { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); border-radius: 99px; color: var(--acc); }

/* Link-Leiste (Service) */
.strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.strip a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .25s, transform .25s; }
.strip a span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.strip a::after { content: '→'; color: var(--acc); margin-top: 8px; transition: transform .25s; }
.strip a:hover { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); transform: translateY(-3px); }
.strip a:hover::after { transform: translateX(4px); }

/* Hinweise & Zitate */
.note { border-left: 3px solid var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 18px; font-size: .96rem; }
.note.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.note.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.note strong { font-weight: 600; }
.quote { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -.02em; margin: 0; padding-left: 22px; border-left: 3px solid var(--acc); }
.quote footer { margin-top: 12px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Aufklapp-Fragen */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-mono); color: var(--acc); font-size: 1.2rem; flex: none; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 70ch; }
.faq details p + p { margin-top: 10px; }
.faq a { color: var(--acc); }

/* Prüfliste */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; color: var(--muted); }
.checklist li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--acc) 18%, transparent); }
.checklist li::after { content: ''; position: absolute; left: 6px; top: calc(.35em + 4px); width: 5px; height: 8px; border: solid var(--acc); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist strong { color: var(--text); font-weight: 600; }

/* ---------- Fließtext (Rechtstexte, Hilfe) ---------- */
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; margin-bottom: 18px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 10px; }
.prose h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 10px 0; }
.prose a { color: var(--acc); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; margin-bottom: 28px; font-size: .92rem; }
.prose .back:hover { color: var(--text); }
.page-main { padding-block: clamp(48px, 7vw, 88px); }

/* ---------- Telefon-Attrappe (Hero & Produktseiten) ---------- */
.phone { width: 260px; height: 520px; border-radius: 42px; padding: 11px; background: #11162a; border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 90px color-mix(in srgb, var(--acc) 30%, transparent); position: relative; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 76px; height: 22px; border-radius: 99px; background: #05070f; transform: translateX(-50%); z-index: 2; }
.screen { height: 100%; border-radius: 32px; overflow: hidden; padding: 52px 18px 18px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 16%, #0a0f1d), #090d1a 70%); }
.screen h3 { margin: 0; font-size: 1.15rem; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.screen h3 span { font-family: var(--f-mono); font-size: .68rem; color: var(--muted); font-weight: 400; }
.screen.photo { padding: 0; }
.screen.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Geräterahmen (Screenshots) ---------- */
.device { position: relative; }
.device .shot { position: absolute; overflow: hidden; background: #000; }
.device .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.device .shot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 28%, transparent 42%); }
.iphone17 { width: var(--w, 300px); aspect-ratio: 1450 / 3000; border-radius: calc(var(--w, 300px) * 0.175);
  background: linear-gradient(90deg, #8e8a85 0%, #d9d6d1 6%, #b7b3ad 12%, #9c9893 50%, #b7b3ad 88%, #e1ded9 94%, #8e8a85 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 1px 1px rgba(0,0,0,0.3); }
.iphone17::before { content: ''; position: absolute; inset: 1.1%; border-radius: inherit; background: #050505; }
.iphone17 .shot { inset: 3.6% 4.2%; border-radius: calc(var(--w, 300px) * 0.135); }
.iphone17 .shot::before { content: ''; position: absolute; z-index: 2; top: 1.6%; left: 50%; width: 30%; height: 3.6%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.iphone17 .key { position: absolute; width: 1.1%; border-radius: 2px; background: linear-gradient(90deg, #77736e, #c9c5bf); }
.iphone17 .key.a { left: -0.9%; top: 18%; height: 5%; }
.iphone17 .key.b { left: -0.9%; top: 26%; height: 8%; }
.iphone17 .key.c { left: -0.9%; top: 36%; height: 8%; }
.iphone17 .key.d { right: -0.9%; top: 28%; height: 12%; }
.ipadpro { width: var(--w, 900px); aspect-ratio: 2860 / 2160; border-radius: calc(var(--w, 900px) * 0.042);
  background: linear-gradient(180deg, #4a4a4e, #2a2a2d 50%, #3d3d41); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.ipadpro::before { content: ''; position: absolute; inset: 0.35%; border-radius: inherit; background: #050505; }
.ipadpro .shot { inset: 3.4% 2.6%; border-radius: calc(var(--w, 900px) * 0.022); }
.ipadpro::after { content: ''; position: absolute; top: 1.4%; left: 50%; width: 0.7%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(#1d2a3a, #000); transform: translateX(-50%); }
.watch { width: var(--w, 170px); aspect-ratio: 410 / 500; border-radius: 26%/22%;
  background: linear-gradient(135deg, #e6e4e0, #a9a6a1 45%, #d3d0cb); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5); }
.watch::before { content: ''; position: absolute; inset: 3.5%; border-radius: 24%/20%; background: #000; }
.watch .shot { inset: 9% 9.5%; border-radius: 20%/16%; }
.watch .crown { position: absolute; right: -5%; top: 26%; width: 7%; height: 17%; border-radius: 3px; background: repeating-linear-gradient(180deg, #b9b6b1 0 2px, #8c8984 2px 3px); }
.watch .side { position: absolute; right: -2.5%; top: 52%; width: 3%; height: 18%; border-radius: 2px; background: #a29f9a; }
.watch .band { position: absolute; left: 17%; right: 17%; z-index: -1; background: linear-gradient(90deg, #2e3a37, #3f4d49 50%, #2e3a37); }
.watch .band.top { bottom: 92%; height: 60%; border-radius: 18% 18% 0 0; }
.watch .band.bot { top: 92%; height: 60%; border-radius: 0 0 18% 18%; }
.lineup { position: relative; width: min(1100px, 94vw); aspect-ratio: 1100 / 640; margin: 0 auto; }
.lineup .ipadpro { position: absolute; right: 4%; top: 0; width: 74%; --w: calc(min(1100px, 94vw) * 0.74); filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5)) brightness(.96); }
.lineup .iphone17 { position: absolute; left: 6%; bottom: 0; width: 20%; --w: calc(min(1100px, 94vw) * 0.2); }
.lineup .watch { position: absolute; right: 0; bottom: 4%; width: 13%; --w: calc(min(1100px, 94vw) * 0.13); }
.lineup .device { filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45)) drop-shadow(0 8px 12px rgba(0,0,0,0.3)); }
.lineup .device { opacity: 0; transform: translateY(60px) scale(.96); transition: opacity 1.2s cubic-bezier(.2,.7,.2,1), transform 1.4s cubic-bezier(.2,.7,.2,1); }
.lineup.on .device { opacity: 1; transform: none; }
.lineup.on .ipadpro { transition-delay: .1s; } .lineup.on .iphone17 { transition-delay: .35s; } .lineup.on .watch { transition-delay: .55s; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; }
.form-card { padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 20px; }
.form-card > h2 { font-size: 1.3rem; }
.form-card > h2 .label-note { font-family: var(--f-body); font-weight: 400; color: var(--muted); font-size: .9rem; margin-left: 6px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field .label-note { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink);
  color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field textarea.mono-ta { font-family: var(--f-mono); font-size: .85rem; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field [aria-invalid="true"] { border-color: var(--bad) !important; }
.hint { color: var(--muted); font-size: .86rem; }
.err { color: var(--bad); font-size: .88rem; font-weight: 500; }
.err[hidden] { display: none; }
.summary-err { padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--bad) 14%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent); color: var(--text); font-weight: 500; }
.summary-err[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .93rem; font-weight: 500; color: var(--muted); transition: all .2s; }
.chip input:checked + span { background: color-mix(in srgb, var(--acc) 20%, transparent); border-color: var(--acc); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.chip:hover span { border-color: var(--acc); }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .95rem; color: var(--muted); font-weight: 400; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--ink); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--acc); border-color: var(--acc); }
.check input:checked::after { content: ''; width: 5px; height: 9px; border: solid var(--acc-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check a { color: var(--acc); }
.auto-badge { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); margin-left: 8px; }
.btn-send { justify-self: start; }

/* Vorschläge aus der Hilfe beim Tippen */
.suggest { display: grid; gap: 8px; }
.suggest[hidden] { display: none; }
.suggest .suggest-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--muted); }
.suggest .suggest-head button { all: unset; cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: .84rem; }
.suggest details { border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--acc) 7%, transparent); padding: 0 16px; }
.suggest summary { cursor: pointer; list-style: none; padding: 12px 0; font-weight: 600; font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.suggest summary::-webkit-details-marker { display: none; }
.suggest summary::before { content: '?'; flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font-family: var(--f-mono); font-size: .8rem; }
.suggest summary .bereich { margin-left: auto; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.suggest details p { color: var(--muted); font-size: .92rem; padding-bottom: 12px; }
.suggest details a { color: var(--acc); }

/* Danke */
.thanks { text-align: center; display: grid; gap: 14px; justify-items: center; padding: clamp(32px, 5vw, 56px); }
.thanks h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.thanks p { color: var(--muted); max-width: 56ch; }
.ticket-no { font-family: var(--f-mono); color: var(--acc); font-size: 1.2em; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px) 28px; background: var(--ink); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(4, 1fr); }
.footer-grid h4 { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid a { display: block; text-decoration: none; color: var(--text); font-size: .95rem; padding: 4px 0; opacity: .85; }
.footer-grid a:hover { opacity: 1; color: var(--acc); }
.footer-grid a.logo { display: inline-flex; opacity: 1; padding: 0; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 32ch; margin-top: 10px; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--faint); }
.footer-legal a { color: var(--faint); text-decoration: none; }
.footer-legal a:hover { color: var(--text); }
.disclaimer { font-size: .84rem; color: var(--faint); margin-top: 14px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Bewegung ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s } .reveal.d3 { transition-delay: .24s } .reveal.d4 { transition-delay: .32s }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* =====================================================================
   HERO-SLIDER (Startseite) — aus dem Artefakt „AuenByte Hero-Slider“
   ===================================================================== */
.hero {
  --acc: var(--it); --glow: #3b2a0e; --base: #0b0f1e; --px: 0; --py: 0;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 700px; height: clamp(700px, calc(100svh - var(--header-h)), 860px);
  background:
    radial-gradient(70% 90% at 80% 40%, var(--glow), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%),
    var(--base);
  transition: --acc .9s ease, --glow .9s ease, --base .9s ease;
  display: flex; flex-direction: column;
}
.hero[data-s="ms"]    { --acc: var(--ms);    --glow: #0d4a47; --base: #06171a; }
.hero[data-s="meteo"] { --acc: var(--meteo); --glow: #123a78; --base: #081226; }
.hero[data-s="night"] { --acc: var(--night); --glow: #3a1f78; --base: #0c0a1f; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 3px 3px; }

.stage { position: relative; flex: 1; min-height: 0; touch-action: pan-y; }
.slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(16px, 3vw, 48px); padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s;
}
.slide.active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.copy { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.copy > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.slide.active .copy > * { opacity: 1; transform: none; transition-delay: calc(var(--i) * 90ms + 220ms); }
.copy > :nth-child(1) { --i: 0 } .copy > :nth-child(2) { --i: 1 } .copy > :nth-child(3) { --i: 2 } .copy > :nth-child(4) { --i: 3 }
.hero h1, .hero h2.t { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .96; letter-spacing: -.035em; }
.hero h1 em, .hero h2.t em { font-style: normal; color: var(--acc); }
.hero .lead { max-width: 52ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.visual { position: relative; height: 100%; display: grid; place-items: center; perspective: 1200px; min-width: 0; }
.tilt { transition: transform .35s ease-out; transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 10px), 0) rotateY(calc(var(--px) * 7deg)) rotateX(calc(var(--py) * -5deg)); }
.slide .visual > * { opacity: 0; transform: scale(.94) translateY(30px); transition: opacity .9s ease .35s, transform 1s cubic-bezier(.2,.8,.2,1) .35s; }
.slide.active .visual > * { opacity: 1; transform: none; }

/* Leistungskarten (Slide AuenByte) */
.svc { display: grid; gap: 14px; width: min(100%, 400px); }
.svc-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid var(--line); backdrop-filter: blur(10px); animation: float 6s ease-in-out infinite; }
.svc-card:nth-child(1) { margin-left: -28px; animation-delay: -1s } .svc-card:nth-child(2) { margin-left: 24px; animation-delay: -2.5s }
.svc-card:nth-child(3) { margin-left: -8px; animation-delay: -4s } .svc-card:nth-child(4) { margin-left: 36px; animation-delay: -5.5s }
.svc-card:nth-child(5) { margin-left: 0; animation-delay: -3s }
.svc-card .ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--it) 18%, transparent); color: var(--it); }
.svc-card .ic svg { width: 22px; height: 22px; }
.svc-card b { display: block; font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.svc-card span { font-size: .85rem; color: var(--muted); }
.svc-card .ok { margin-left: auto; font-family: var(--f-mono); font-size: .68rem; color: var(--it); display: flex; align-items: center; gap: 6px; }
.svc-card .ok::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--it); box-shadow: 0 0 10px var(--it); animation: pulse 2s infinite; }

/* Telefon-Inhalte (Slides Apps) */
.gauge { position: relative; width: 150px; height: 150px; margin: 4px auto 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.gauge .bg { stroke: rgba(255,255,255,.1); }
.gauge .ring { stroke: var(--ms); stroke-dasharray: 440; stroke-dashoffset: 440; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1) .8s; filter: drop-shadow(0 0 8px var(--ms)); }
.slide.active .gauge .ring { stroke-dashoffset: 167; }
.gauge div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--f-display); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.gauge div small { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: .62rem; font-weight: 400; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.week { display: flex; align-items: flex-end; justify-content: space-between; height: 84px; gap: 6px; }
.week i { flex: 1; border-radius: 6px 6px 3px 3px; background: rgba(61,214,181,.3); height: 4%; transition: height .9s cubic-bezier(.2,.8,.2,1); }
.week i:last-child { background: var(--ms); }
.slide.active .week i { height: var(--h); }
.week i:nth-child(1){transition-delay:1.0s} .week i:nth-child(2){transition-delay:1.07s} .week i:nth-child(3){transition-delay:1.14s} .week i:nth-child(4){transition-delay:1.21s}
.week i:nth-child(5){transition-delay:1.28s} .week i:nth-child(6){transition-delay:1.35s} .week i:nth-child(7){transition-delay:1.42s}
.days { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .6rem; color: var(--muted); margin-top: -6px; }
.days span { flex: 1; text-align: center; }
.screen .chips b { font-weight: 500; font-size: .72rem; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); }
.screen .chips b.on { background: color-mix(in srgb, var(--acc) 22%, transparent); border-color: var(--acc); }
.chart { width: 100%; height: 120px; overflow: visible; }
.chart path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 2s ease .9s; }
.slide.active .chart path { stroke-dashoffset: 0; }
.chart .a { stroke: var(--meteo); filter: drop-shadow(0 0 6px var(--meteo)); }
.chart .b { stroke: #ffd98a; transition-delay: 1.3s; }
.chart line { stroke: rgba(255,255,255,.08); }
.legend { display: flex; gap: 14px; font-family: var(--f-mono); font-size: .62rem; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--meteo); }
.legend span + span::before { background: #ffd98a; }
.tiles-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles-mini div { padding: 10px 8px; border-radius: 14px; background: rgba(255,255,255,.06); text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.tiles-mini small { display: block; margin-top: 4px; font-family: var(--f-mono); font-weight: 400; font-size: .56rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.temp { font-family: var(--f-display); font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.temp small { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }

/* Nachtlicht */
.moon { position: relative; width: min(100%, 380px); aspect-ratio: 1; display: grid; place-items: center; }
.moon .orb { width: 56%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6e0, #ffd98a 38%, #b794ff 100%);
  box-shadow: 0 0 80px 10px rgba(183,148,255,.55), 0 0 200px 40px rgba(183,148,255,.25); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.moon .halo { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(183,148,255,.35); animation: halo 5s ease-out infinite; }
.moon .halo:nth-child(2) { animation-delay: 1.6s } .moon .halo:nth-child(3) { animation-delay: 3.2s }
@keyframes halo { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.15); opacity: 0; } }
.eq { position: absolute; left: 6%; right: 6%; bottom: 2%; height: 64px; display: flex; align-items: flex-end; gap: 4px; }
.eq i { flex: 1; border-radius: 3px; background: linear-gradient(to top, var(--night), #ffd98a); height: 12%; animation: eq 1.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes eq { 50% { height: var(--m); } }
.lock { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border: 1px solid rgba(183,148,255,.5); border-radius: 99px; color: var(--night); }

/* Steuerung unten */
.dock { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(8px, 2vw, 28px); padding: 0 var(--gutter) 18px; align-items: end; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; min-width: 0; }
.tab:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 4px; }
.tab .bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tab .bar::after { content: ''; display: block; height: 100%; width: 0; background: var(--acc); }
.tab.done .bar::after { width: 100%; background: var(--line); }
.tab.on .bar::after { animation: fill var(--dur, 7500ms) linear forwards; animation-play-state: var(--play, running); }
@keyframes fill { to { width: 100%; } }
.tab .name { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--muted); transition: color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab .kind { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab.on .name, .tab:hover .name { color: var(--text); }
.tab.secret { animation: reveal 1.2s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } }
.meta { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; color: var(--muted); z-index: 3; }
.arrows { position: absolute; right: var(--gutter); bottom: 96px; display: flex; gap: 8px; z-index: 3; }
.arrows button { all: unset; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.arrows button:hover { background: rgba(255,255,255,.1); border-color: var(--acc); }
.arrows button:focus-visible { outline: 2px solid var(--acc); }
.arrows svg { width: 18px; height: 18px; }
.whisper { position: absolute; left: var(--gutter); bottom: 92px; display: flex; align-items: center; gap: 8px; z-index: 3; font-size: .78rem; color: var(--muted); opacity: .75; }
.whisper button { all: unset; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color .3s, box-shadow .3s; }
.whisper button:hover, .whisper button:focus-visible { color: #ffd98a; box-shadow: 0 0 18px rgba(255,217,138,.6); outline: none; }
.whisper svg { width: 15px; height: 15px; }
.toast { position: absolute; top: 24px; left: 50%; transform: translate(-50%, -20px); opacity: 0; z-index: 5; padding: 10px 18px; border-radius: 99px;
  background: rgba(20,14,44,.9); border: 1px solid rgba(183,148,255,.6); color: #e8dcff; font-size: .9rem; transition: all .5s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .hero { height: auto; min-height: 0; }
  .stage { height: 740px; flex: none; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; align-items: start; padding-top: 24px; gap: 6px; }
  .copy { gap: 14px; }
  .hero .lead { font-size: .98rem; }
  .visual { align-self: stretch; }
  .visual .scale { transform: scale(.78); transform-origin: top center; }
  .meta, .whisper span, .arrows { display: none; }
  .tab .kind { display: none; }
  .tab .name { font-size: .9rem; }
  .whisper { bottom: 76px; }
  .svc-card:nth-child(n) { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .tab.on .bar::after { width: 100%; }
  .reveal, .lineup .device { opacity: 1; transform: none; }
}
