/* ==========================================================================
   BAYTIQ – Clean-Tech-Design
   Farben als Tokens, Hell/Dunkel über data-theme oder Systemeinstellung.
   Layout mit logischen Eigenschaften, damit Arabisch (RTL) ohne Sonderregeln funktioniert.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --ink: #0a1220;
  --ink-2: #4b5768;
  --ink-3: #8592a6;
  --line: rgba(10, 18, 32, .09);
  --accent: #1e5eff;
  --accent-2: #12c2e9;
  --accent-ink: #ffffff;
  --glow: rgba(18, 194, 233, .35);
  --shadow: 0 1px 2px rgba(10, 18, 32, .04), 0 12px 40px -12px rgba(10, 18, 32, .14);
  --hdr-bg: rgba(255, 255, 255, .72);
  --ha-bg: #f2f4f8;
  --ha-card: #ffffff;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05080f; --bg-2: #0a0f19; --surface: #0e1521; --surface-2: #121a28;
    --ink: #eef2f8; --ink-2: #9aa7ba; --ink-3: #66748a; --line: rgba(255, 255, 255, .08);
    --accent: #3b7bff; --accent-2: #22d3ee; --glow: rgba(34, 211, 238, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 50px -18px rgba(0, 0, 0, .7);
    --hdr-bg: rgba(5, 8, 15, .7); --ha-bg: #0b111b; --ha-card: #141c2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05080f; --bg-2: #0a0f19; --surface: #0e1521; --surface-2: #121a28;
  --ink: #eef2f8; --ink-2: #9aa7ba; --ink-3: #66748a; --line: rgba(255, 255, 255, .08);
  --accent: #3b7bff; --accent-2: #22d3ee; --glow: rgba(34, 211, 238, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 50px -18px rgba(0, 0, 0, .7);
  --hdr-bg: rgba(5, 8, 15, .7); --ha-bg: #0b111b; --ha-card: #141c2a;
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

.i { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 12vw, 168px); position: relative; }
.section.tight { padding-block: clamp(64px, 8vw, 112px); }
.alt { background: var(--bg-2); }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
html[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: 15px; }
.h2 { font-size: clamp(2.1rem, 4.8vw, 3.9rem); line-height: 1.05; font-weight: 700; letter-spacing: -.028em; max-width: 18ch; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; font-weight: 650; letter-spacing: -.015em; }
html[lang="ar"] .h2, html[lang="ar"] .h3, html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.3; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 56ch; margin-top: 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; margin-inline: auto; }
.center .h2, .center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(30, 94, 255, .6); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(18, 194, 233, .7); transform: translateY(-1px); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-white { background: #fff; color: #0a1220; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.logo-mark { width: 32px; height: 32px; flex: none; border-radius: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%231e5eff'/%3E%3Cstop offset='1' stop-color='%2312c2e9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='32' height='32' rx='9' fill='url(%23g)'/%3E%3Cpath d='M8 15.5 16 9l8 6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11.6 19.6a6 6 0 0 1 8.8 0' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='23.2' r='1.7' fill='%23fff'/%3E%3C/svg%3E") center / cover; box-shadow: 0 6px 18px -6px rgba(18, 194, 233, .7); }
.logo-mark.sm { width: 26px; height: 26px; border-radius: 7px; }
.logo-mark.xs { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; }
.wm { font-size: 20px; letter-spacing: .04em; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.wm b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset-inline: 0; top: 0; z-index: 50; color: #fff; transition: background .35s, color .35s, box-shadow .35s; }
.hdr.solid { background: var(--hdr-bg); color: var(--ink); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line); }
.hdr-in { max-width: 1360px; margin-inline: auto; height: 64px; padding-inline: var(--gutter); display: flex; align-items: center; gap: 20px; }
.hdr-nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.hdr-nav a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; opacity: .85; transition: opacity .2s, background .2s; }
.hdr-nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.hdr-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.hdr-burger { display: none; }

.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 550; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); transition: background .2s; }
.dd-btn:hover, .dd.open .dd-btn { background: color-mix(in srgb, currentColor 10%, transparent); }
.dd-btn.icon-only { width: 40px; padding: 0; justify-content: center; }
.dd-btn .chev { width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
.dd.open .dd-btn .chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; padding: 6px; border-radius: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top; pointer-events: none; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; z-index: 60; }
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.dd-title { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 8px 12px 4px; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .dd-title { text-transform: none; letter-spacing: 0; }
.dd-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 15px; text-align: start; }
.dd-item:hover { background: var(--bg-2); }
.dd-item .tick { margin-inline-start: auto; color: var(--accent); opacity: 0; }
.dd-item[aria-checked="true"] .tick { opacity: 1; }
.dd-item[aria-checked="true"] { font-weight: 600; }

.sheet { display: none; }

@media (max-width: 1180px) { .hdr-nav { display: none; } }
@media (max-width: 760px) {
  .hdr-in { gap: 8px; }
  .hdr-cta { display: none; }
  .hdr-burger { display: grid; }
  .dd[data-dd="persona"] .dd-label { display: none; }
  .dd-btn { padding: 0 10px; }
  .wm { font-size: 18px; }
  .dd-menu { position: fixed; top: 64px; inset-inline: 12px; min-width: 0; }
  .sheet { display: block; position: absolute; top: 64px; inset-inline: 0; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .sheet.open { opacity: 1; transform: none; pointer-events: auto; }
  .sheet a.nav-l { display: block; padding: 14px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .sheet .btn { width: 100%; margin-top: 16px; }
}
@media (max-width: 380px) { .wm { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: #fff; background: #05080f; }
.hero-media { position: absolute; inset: 0; transform: scale(calc(1.04 + var(--p, 0) * .14)); transform-origin: 50% 40%; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 15, .55) 0%, rgba(5, 8, 15, 0) 26%, rgba(5, 8, 15, .1) 50%, rgba(5, 8, 15, .86) 100%); pointer-events: none; }
.hero-content { position: absolute; z-index: 2; inset-inline: 0; bottom: clamp(36px, 8vh, 96px); opacity: calc(1 - var(--p, 0) * 1.7); transform: translateY(calc(var(--p, 0) * -70px)); }
.hero-kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; opacity: .85; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
html[lang="ar"] .hero-kicker { letter-spacing: 0; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.hero h1 { font-size: clamp(2.7rem, 7.6vw, 6.4rem); line-height: 1; font-weight: 750; letter-spacing: -.035em; max-width: 14ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.35rem); opacity: .88; max-width: 52ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-personas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.hero-personas .lbl { font-size: 14px; opacity: .75; margin-inline-end: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 550; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s, border-color .2s, color .2s; }
.chip:hover { background: rgba(255, 255, 255, .18); }
.chip[aria-pressed="true"] { background: #fff; color: #0a1220; border-color: #fff; }
.hero-scroll { position: absolute; z-index: 2; bottom: 20px; inset-inline-end: var(--gutter); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .5); opacity: calc(1 - var(--p, 0) * 4); }
.hero-scroll::after { content: ""; position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) { .hero-scroll { display: none; } .hero-cta .btn { flex: 1 1 auto; } }

/* ---------- Vorteile je Zielgruppe ---------- */
.benefits-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.persona-tag { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font-weight: 600; font-size: 14.5px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 22px; box-shadow: 0 10px 24px -10px var(--glow); }
.card .ic .i { width: 24px; height: 24px; }
.card h3 { font-size: 1.22rem; font-weight: 650; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- Statement (Wort für Wort beim Scrollen) ---------- */
.statement { height: 240vh; position: relative; }
.statement .sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.statement p { font-size: clamp(2.3rem, 6.4vw, 5.6rem); line-height: 1.06; font-weight: 750; letter-spacing: -.035em; max-width: 16ch; }
html[lang="ar"] .statement p { letter-spacing: 0; line-height: 1.35; }
.statement .w { opacity: .16; transition: opacity .35s, color .35s; }
.statement .w.on { opacity: 1; }
.statement .w.hl.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { padding: 34px 0; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; font-weight: 750; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .stat b { text-align: right; }
.stat span { display: block; margin-top: 12px; color: var(--ink-2); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Leistungen ---------- */
.svc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); margin-top: 56px; }
.svc-media { position: sticky; top: 92px; height: calc(100svh - 132px); max-height: 760px; border-radius: 32px; overflow: hidden; background: #05080f; box-shadow: var(--shadow); }
.svc-media .m { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.svc-media .m.on { opacity: 1; transform: none; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media .m::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 15, .65)); }
.svc-media .cap { position: absolute; z-index: 2; inset-inline-start: 24px; bottom: 22px; color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.svc-media .cap .n { font-variant-numeric: tabular-nums; opacity: .6; }
.svc-item { min-height: 74svh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; opacity: .35; transition: opacity .5s; }
.svc-item.on { opacity: 1; }
.svc-item .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 26px; box-shadow: 0 12px 30px -12px var(--glow); }
.svc-item .ic .i { width: 28px; height: 28px; }
.svc-item h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
html[lang="ar"] .svc-item h3 { letter-spacing: 0; line-height: 1.35; }
.svc-item > p { color: var(--ink-2); font-size: 1.12rem; margin-top: 14px; max-width: 40ch; }
.svc-list { margin-top: 28px; display: grid; gap: 2px; }
.svc-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 520; }
.svc-list li .i { color: var(--accent); width: 22px; height: 22px; }
.svc-thumb { display: none; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .svc-media { display: none; }
  .svc-item { min-height: 0; opacity: 1; padding-block: 28px 36px; }
  .svc-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; margin-bottom: 26px; background: #05080f; position: relative; }
  .svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .svc-item .ic { display: none; }
}

/* ---------- KI-Kugel (Nour) ---------- */
.orb-wrap { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, #0b1a3a 0%, #05080f 70%); overflow: hidden; }
.orb { position: relative; width: min(58%, 340px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ffffff 0%, #b6f1ff 10%, #36b8ff 32%, #1e4fff 58%, #0a1440 82%); box-shadow: 0 0 80px 10px rgba(34, 211, 238, .35), inset 0 0 60px rgba(255, 255, 255, .25); animation: orb-breathe 6s ease-in-out infinite; }
.orb::before, .orb::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 20%, rgba(34, 211, 238, .55) 30%, transparent 45% 65%, rgba(99, 102, 241, .55) 75%, transparent 90%); filter: blur(18px); animation: spin 9s linear infinite; mix-blend-mode: screen; }
.orb::after { inset: -6%; animation-duration: 13s; animation-direction: reverse; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.orb-bars { position: absolute; bottom: 12%; display: flex; gap: 5px; align-items: center; height: 36px; }
.orb-bars i { width: 4px; border-radius: 4px; background: rgba(255, 255, 255, .8); animation: bar 1.1s ease-in-out infinite; }
.orb-bars i:nth-child(2) { animation-delay: .1s; } .orb-bars i:nth-child(3) { animation-delay: .2s; } .orb-bars i:nth-child(4) { animation-delay: .3s; } .orb-bars i:nth-child(5) { animation-delay: .4s; }
@keyframes bar { 0%, 100% { height: 6px; } 50% { height: 30px; } }

/* ---------- Ein Raum, vier Stimmungen ---------- */
.day { position: relative; height: 420vh; background: #000; }
.day .sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; color: #fff; }
.day-img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.day-img.on { opacity: 1; }
.day-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.02 + var(--p, 0) * .08)); }
.day-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 96px var(--gutter) clamp(28px, 5vh, 56px); background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 30%, transparent 48%, transparent 55%, rgba(0, 0, 0, .8) 100%); }
.day-ui .wrap { padding: 0; }
.day-head .kicker { color: var(--accent-2); }
.day-head .h2 { color: #fff; }
.day-head .lead { color: rgba(255, 255, 255, .8); }
.day-bottom { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.day-step { max-width: 520px; }
.day-step .t { font-size: clamp(3rem, 8vw, 6rem); font-weight: 200; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.day-step h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 650; margin-top: 10px; }
.day-step p { opacity: .82; margin-top: 6px; }
.day-step.swap { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.day-times { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.day-times button { position: relative; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .7; transition: background .3s, color .3s, opacity .3s; }
.day-times button.on { background: #fff; color: #0a1220; opacity: 1; }
@media (max-width: 760px) { .day-bottom { flex-direction: column; align-items: stretch; } .day-times { justify-content: space-between; } .day-times button { padding: 0 8px; flex: 1; } }

/* ---------- Szenen-Karten ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 16px; margin-top: 48px; }
.scene { position: relative; text-align: start; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.scene:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.scene .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scene .ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--bg-2); color: var(--accent); transition: background .3s, color .3s, box-shadow .3s; }
.scene .ic .i { width: 23px; height: 23px; }
.scene h3 { font-size: 1.12rem; font-weight: 650; }
.scene p { color: var(--ink-2); font-size: 15px; }
.scene .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.scene .tags span { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.scene .foryou { font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.scene .run { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.scene.match { order: -1; }
.scene.active { border-color: color-mix(in srgb, var(--accent-2) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 40%, transparent), 0 18px 50px -18px var(--glow); }
.scene.active .ic { background: var(--grad); color: #fff; box-shadow: 0 0 24px var(--glow); }
.scene.active .run { color: var(--accent); }

/* ---------- Automationen (horizontal beim Scrollen) ---------- */
.auto { position: relative; }
.auto .sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 72px 16px; }
.auto-head { margin-bottom: clamp(24px, 4vh, 44px); }
.auto-track { display: flex; gap: 18px; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.auto-card { flex: 0 0 min(370px, 80vw); display: flex; flex-direction: column; border-radius: 28px; padding: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: min(440px, 58svh); }
.auto-card .no { font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.auto-card .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.auto-card .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.auto-card .ic .i { width: 24px; height: 24px; }
.auto-card h3 { font-size: 1.3rem; font-weight: 650; line-height: 1.25; margin-bottom: 20px; }
.flow { position: relative; display: grid; gap: 10px; margin-top: auto; }
.flow .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
html[lang="ar"] .flow .lbl { letter-spacing: 0; text-transform: none; font-size: 13px; }
.flow .when { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--ink); font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.flow .when .i { color: var(--accent-2); margin-top: 3px; }
.flow .arrow { display: grid; place-items: center; color: var(--ink-3); height: 18px; }
.flow .arrow .i { transform: rotate(90deg); }
.flow .then li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.flow .then li:last-child { border-bottom: 0; }
.flow .then .i { color: var(--accent); margin-top: 3px; }
.auto-progress { margin: clamp(22px, 4vh, 40px) auto 0; width: min(320px, 60vw); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.auto-progress span { display: block; height: 100%; width: calc(var(--ap, 0) * 100%); background: var(--grad); }
html[dir="rtl"] .auto-progress span { margin-inline-start: 0; }
.auto.native .sticky { position: static; height: auto; padding-block: 80px; }
.auto.native .auto-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none; padding-bottom: 16px; }
.auto.native .auto-card { scroll-snap-align: center; }

/* ---------- Nour ---------- */
.nour { background: #04070d; color: #eef2f8; overflow: hidden; }
.nour .kicker { color: var(--accent-2); }
.nour .lead { color: #9aa7ba; }
.nour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: 56px; }
.nour-orb { position: relative; aspect-ratio: 1; border-radius: 36px; overflow: hidden; }
.nour-orb .listen { position: absolute; top: 20px; inset-inline-start: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.nour-orb .listen::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat { min-height: 460px; justify-content: flex-start; }
.msg { display: none; max-width: 86%; padding: 13px 17px; border-radius: 22px; font-size: 15.5px; line-height: 1.5; }
.msg.show { display: block; animation: hud-in .5s var(--ease) both; }
.msg.u { align-self: flex-end; background: var(--grad); color: #fff; border-end-end-radius: 6px; }
.msg.n { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-end-start-radius: 6px; }
.msg.n b { display: block; font-size: 12.5px; color: var(--accent-2); margin-bottom: 3px; }
.typing { align-self: flex-start; display: none; gap: 5px; padding: 14px 18px; border-radius: 22px; background: rgba(255, 255, 255, .07); }
.typing.show { display: inline-flex; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa7ba; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.points span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 15px; font-weight: 550; }
.points .i { color: var(--accent-2); }
@media (max-width: 900px) { .nour-grid { grid-template-columns: 1fr; } .nour-orb { aspect-ratio: 4 / 3; } }

/* ---------- App-Demo (Home-Assistant-Stil) ---------- */
.device { margin-top: 56px; border-radius: 34px; padding: 12px; background: linear-gradient(160deg, #222a39, #0b0f17); box-shadow: 0 40px 100px -40px rgba(10, 18, 32, .55), inset 0 1px 0 rgba(255, 255, 255, .08); max-width: 1060px; margin-inline: auto; }
.screen { border-radius: 24px; overflow: hidden; background: var(--ha-bg); color: var(--ink); }
.ha-bar { display: flex; align-items: center; gap: 14px; padding: 16px 20px 10px; }
.ha-bar .t { font-size: 20px; font-weight: 650; }
.ha-bar .g { margin-inline-start: auto; font-size: 14px; color: var(--ink-3); }
.ha-tabs { display: flex; gap: 6px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: none; }
.ha-tabs button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.ha-tabs button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ha-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 12px; padding: 4px 16px 20px; }
.tile { --c: #1e5eff; position: relative; background: var(--ha-card); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px; text-align: start; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, background .3s; min-height: 108px; }
.tile:hover { box-shadow: var(--shadow); }
.tile:active { transform: scale(.98); }
.tile .row { display: flex; align-items: center; gap: 12px; }
.tile .ti { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); transition: background .3s, color .3s, box-shadow .3s; flex: none; }
.tile.on .ti { background: var(--c); color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); }
.tile .nm, .tile .st { display: block; }
.tile .nm { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.tile .st { font-size: 13px; color: var(--ink-3); }
.tile.span2 { grid-column: span 2; }
.tile.cam { grid-row: span 2; padding: 0; overflow: hidden; min-height: 230px; }
.tile.cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.cam .ov { position: absolute; inset-inline: 0; bottom: 0; padding: 12px 14px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); display: flex; align-items: center; justify-content: space-between; }
.tile.cam .live { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .5); color: #fff; }
.tile.cam .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tile input[type="range"] { width: 100%; accent-color: var(--c); }
.clim { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.clim .tv { font-size: 30px; font-weight: 650; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.clim .cb { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); }
.clim .cb:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.gate-btn { display: inline-block; align-self: flex-start; line-height: 32px; height: 32px; padding: 0 14px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-size: 13.5px; font-weight: 650; }
.gate-bar { display: block; height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.gate-bar span { display: block; height: 100%; width: var(--g, 0%); background: var(--c); transition: width 2.4s linear; }
.app-hint { text-align: center; color: var(--ink-3); font-size: 14.5px; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tile.hide { display: none; }
@media (max-width: 860px) { .ha-grid { grid-template-columns: repeat(2, 1fr); } .tile.cam { grid-column: span 2; grid-row: auto; } .device { padding: 8px; border-radius: 28px; } }

/* ---------- Kompatibilität ---------- */
.compat { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.compat span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; box-shadow: var(--shadow); direction: ltr; }
.compat span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.compat-note { max-width: 62ch; margin: 24px auto 0; text-align: center; color: var(--ink-3); font-size: 15px; display: flex; gap: 8px; justify-content: center; }

/* ---------- Energie & Notstrom ---------- */
.power-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: 56px; }
.power-img { border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); }
.power-img img { width: 100%; height: 100%; object-fit: cover; }
.tl { position: relative; display: grid; gap: 0; padding-inline-start: 30px; }
.tl::before { content: ""; position: absolute; inset-inline-start: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl::after { content: ""; position: absolute; inset-inline-start: 8px; top: 10px; width: 2px; height: calc((100% - 20px) * var(--tp, 0)); background: var(--grad); transition: height .2s; }
.tl li { position: relative; padding: 14px 0; font-weight: 550; color: var(--ink-3); transition: color .4s; }
.tl li::before { content: ""; position: absolute; inset-inline-start: -27px; top: 21px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: border-color .4s, background .4s, box-shadow .4s; z-index: 1; }
.tl li.on { color: var(--ink); }
.tl li.on::before { border-color: var(--accent-2); background: var(--accent-2); box-shadow: 0 0 12px var(--glow); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.tier { position: relative; }
.tier .tag { position: absolute; top: 24px; inset-inline-end: 24px; font-size: 12.5px; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
@media (max-width: 900px) { .power-grid, .tiers { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */
.proc { position: relative; margin-top: 56px; display: grid; gap: 0; }
.proc::before { content: ""; position: absolute; inset-inline-start: 27px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.proc::after { content: ""; position: absolute; inset-inline-start: 27px; top: 0; width: 2px; height: calc(100% * var(--pp, 0)); background: var(--grad); }
.proc-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 26px; padding-block: 26px; }
.proc-step .ic { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); transition: background .4s, color .4s, box-shadow .4s; }
.proc-step.on .ic { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 26px -10px var(--glow); }
.proc-step .ic .i { width: 26px; height: 26px; }
.proc-step .no { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.proc-step h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 650; margin-top: 2px; }
.proc-step p { color: var(--ink-2); margin-top: 6px; max-width: 60ch; }

/* ---------- Pakete ---------- */
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.pk { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.pk.rec { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: 0 30px 70px -30px var(--glow); }
.pk .badge { position: absolute; top: -13px; inset-inline-start: 28px; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; display: none; }
.pk.rec .badge { display: inline-block; }
.pk .nm { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .pk .nm { text-align: right; }
.pk .tg { color: var(--ink-2); margin-top: 4px; }
.pk ul { margin-top: 24px; display: grid; gap: 12px; }
.pk li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.pk li .i { color: var(--accent); margin-top: 4px; }
.pk li:first-child.inh { color: var(--ink-3); }
.care-head { margin-top: 64px; display: flex; align-items: center; gap: 14px; }
.care-head h3 { font-size: 1.3rem; font-weight: 650; }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.pk.care { padding: 26px 28px; }
.pk.care .nm { font-size: 1.35rem; }
.pk-note { margin-top: 28px; color: var(--ink-3); text-align: center; font-size: 15px; }
@media (max-width: 960px) { .pk-grid, .care-grid { grid-template-columns: 1fr; } }

/* ---------- Regionen ---------- */
.reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.reg { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; color: #fff; background: #05080f; }
.reg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.reg:hover img { transform: scale(1.06); }
.reg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 15, .85)); }
.reg .tx { position: absolute; z-index: 1; inset-inline: 24px; bottom: 24px; }
.reg h3 { font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.reg p { opacity: .82; margin-top: 6px; font-size: 15.5px; }
@media (max-width: 900px) { .reg-grid { grid-template-columns: 1fr; } .reg { aspect-ratio: 16 / 11; } }

/* ---------- Team & Referenzen ---------- */
.role .ic { background: var(--bg-2); color: var(--accent); box-shadow: none; }
.ph-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.refs { margin-top: 72px; }
.ref { display: flex; flex-direction: column; gap: 18px; }
.ref .q { font-size: 1.08rem; color: var(--ink-2); font-style: italic; }
.ref .meta { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14.5px; color: var(--ink-3); }
.ref .av { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-3); }
.stars { display: flex; gap: 2px; color: var(--ink-3); }
.stars .i { width: 16px; height: 16px; }

/* ---------- Kontakt ---------- */
.contact { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(40px, 8vw, 96px); background: radial-gradient(120% 140% at 0% 0%, #2a6bff 0%, #1440c9 40%, #0a1a5c 100%); color: #fff; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .6), transparent 65%); filter: blur(10px); }
.contact > * { position: relative; }
.contact .kicker { color: #9ee9ff; }
.contact .h2 { max-width: 16ch; }
.contact .lead { color: rgba(255, 255, 255, .82); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-regions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 36px; font-size: 14.5px; opacity: .85; }
.contact-regions span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--ink-2); font-size: 14.5px; }
.ftr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.ftr .logo { color: var(--ink); }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.ftr-links a, .ftr-links button { display: inline-flex; align-items: center; gap: 6px; }
.ftr-links a:hover, .ftr-links button:hover { color: var(--ink); }
.ftr small { display: block; margin-top: 8px; color: var(--ink-3); }

/* ---------- Hinweis: als App installieren ---------- */
.install { position: fixed; z-index: 90; inset-inline: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); max-width: 480px; margin-inline: auto; display: flex; align-items: center; gap: 12px; padding-block: 12px; padding-inline: 14px 8px; border-radius: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); animation: install-in .6s var(--ease); }
.install[hidden] { display: none; }
.install .logo-mark { width: 40px; height: 40px; border-radius: 11px; }
.install-tx { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14.5px; line-height: 1.35; }
.install-tx span { color: var(--ink-2); }
.install .btn-sm { flex: none; }
.install .icon-btn { width: 34px; height: 34px; flex: none; color: var(--ink-3); }
.install .icon-btn:hover { color: var(--ink); }
@keyframes install-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Einblenden beim Scrollen ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; overflow: hidden; transition: opacity .9s ease; }
.intro[hidden] { display: none; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-stage { position: absolute; inset: 0; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform 1.8s var(--ease), filter 1.8s ease; }
.intro-stage.focus { transform: scale(1.45); filter: brightness(.42) blur(2px) saturate(1.2); }
.intro-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-g { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease; transform-origin: var(--kx, 50%) var(--ky, 50%); will-change: transform, opacity; }
.shot-g.on { opacity: 1; }
.shot-g.kb { animation: kb var(--dur, 6s) cubic-bezier(.33, 0, .3, 1) forwards; }
@keyframes kb { from { transform: scale(var(--s0, 1)); } to { transform: scale(var(--s1, 1.15)); } }
.shot-i { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; }
.shot-i.on { opacity: 1; }
.shot-i.led { opacity: 1; visibility: hidden; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 60%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 60%, transparent 100%); -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; transition: -webkit-mask-position 2.8s ease-in-out, mask-position 2.8s ease-in-out; }
.shot-i.led.on { visibility: visible; }
.shot-i.led.go { -webkit-mask-position: 0 0; mask-position: 0 0; }
.shot-i.hue { animation: ledhue 4.2s ease-in-out both; }
@keyframes ledhue { 0% { filter: hue-rotate(-70deg) saturate(1.5); } 45% { filter: hue-rotate(55deg) saturate(1.4); } 100% { filter: none; } }
.led-flash { position: absolute; inset: 0; background: radial-gradient(80% 60% at 60% 15%, rgba(34, 211, 238, .32), transparent 70%); opacity: 0; transition: opacity 1.4s; mix-blend-mode: screen; pointer-events: none; }
.led-flash.on { opacity: 1; }
.anchor { position: absolute; pointer-events: none; }
.intro-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 22%, transparent 66%, rgba(0, 0, 0, .7)); pointer-events: none; }
.intro-brand { position: absolute; top: max(20px, env(safe-area-inset-top)); inset-inline-start: var(--gutter); display: flex; align-items: center; gap: 10px; opacity: .92; }
.intro-skip { position: absolute; top: max(16px, env(safe-area-inset-top)); inset-inline-end: var(--gutter); height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .2s, opacity .4s; }
.intro-skip:hover { background: rgba(255, 255, 255, .22); }
.intro-hud { position: absolute; inset-inline-start: var(--gutter); bottom: clamp(56px, 9vh, 96px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; transition: opacity .6s; }
.hud { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 550; background: rgba(8, 12, 22, .5); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: hud-in .7s var(--ease) both; }
.hud::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2, #22d3ee); box-shadow: 0 0 10px #22d3ee; }
.hud.old { opacity: .45; transition: opacity .6s; }
@keyframes hud-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.intro-progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.intro-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1e5eff, #22d3ee); }
.intro.ending .intro-hud, .intro.ending .intro-skip { opacity: 0; pointer-events: none; }

.ipanel { position: absolute; left: 0; top: 0; width: min(520px, calc(100vw - 32px)); padding: 26px; border-radius: 30px; color: #eaf6ff; background: linear-gradient(160deg, rgba(20, 34, 60, .78), rgba(6, 12, 24, .86)); border: 1px solid rgba(34, 211, 238, .38); box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 0 90px rgba(34, 211, 238, .28), 0 40px 80px -30px rgba(0, 0, 0, .8); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); opacity: 0; visibility: hidden; transform-origin: 0 0; }
.ipanel.show { visibility: visible; }
.ipanel-top { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: #9fd8ee; font-weight: 600; }
.ipanel-brand { display: inline-flex; align-items: center; gap: 8px; direction: ltr; }
.ipanel-time { font-variant-numeric: tabular-nums; direction: ltr; }
.ipanel-hello { font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 750; letter-spacing: -.03em; margin-top: 18px; line-height: 1.05; background: linear-gradient(120deg, #fff 30%, #7fe7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] .ipanel-hello { letter-spacing: 0; line-height: 1.3; }
.ipanel-msg { font-size: 1.15rem; margin-top: 10px; min-height: 2.9em; color: #dbeefc; }
.ipanel-msg .caret { display: inline-block; width: 2px; height: 1.05em; background: #22d3ee; vertical-align: -2px; margin-inline-start: 2px; animation: blink 1s infinite; }
.ipanel-temps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.temp { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: #a9c6da; }
.temp .i { color: #22d3ee; }
.temp b { margin-inline-start: auto; font-size: 26px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; direction: ltr; }
.ipanel-status { margin-top: 14px; display: grid; gap: 2px; }
.ipanel-status li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; font-size: 14.5px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ipanel-status li:last-child { border-bottom: 0; }
.ipanel-status .i { color: #34d399; }
.ipanel-status span { margin-inline-start: auto; color: #9fb4c6; font-size: 13.5px; }
.ipanel-go { width: 100%; margin-top: 18px; }
@media (max-width: 520px) { .ipanel { padding: 20px; border-radius: 26px; } .ipanel-temps { gap: 8px; } .temp b { font-size: 22px; } }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .hero-media, .day-img img { transform: none !important; }
}

/* ---------- Datenschutzseite ---------- */
.legal-main { padding: 120px var(--gutter) 80px; }
.legal { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 750; letter-spacing: -.02em; margin-top: 18px; }
html[lang="ar"] .legal h1 { letter-spacing: 0; }
.legal h2 { font-size: 1.3rem; font-weight: 650; margin-top: 40px; }
.legal h3 { font-size: 1.05rem; font-weight: 650; margin-top: 22px; }
.legal p, .legal li { color: var(--ink-2); margin-top: 10px; }
.legal ul { list-style: disc; padding-inline-start: 22px; }
.legal-date { color: var(--ink-3) !important; font-size: 15px; }
.legal-draft { display: inline-block; padding: 8px 14px; border-radius: 12px; background: #fff4d6; color: #8a5a00 !important; font-weight: 600; font-size: 14.5px; }
.legal-langs { gap: 6px; }
.legal-langs .dd-btn.on { background: var(--grad); color: #fff; border-color: transparent; }
