/* ============================================================
   Inter — selbst gehostet (Variable Font, eine Datei je Subset).

   Bewusst NICHT von fonts.googleapis.com geladen: das überträgt die
   IP-Adresse jedes Besuchers an Google, bevor er irgendetwas anklickt
   (vgl. LG München I, 20.01.2022 – 3 O 17493/20). Selbst gehostet
   entfällt das ersatzlos und muss nicht in die Datenschutzerklärung.

   Subsets: latin + latin-ext (deckt de/en/tr/sq ab). Arabisch nutzt die
   Systemschrift — Inter enthält keine arabischen Glyphen.
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   KöWi Mobile — Premium Landing Page
   Design system: Apple/Stripe/Linear-inspired, dark/light rhythm
   Brand gradient: #0a84ff -> #7c5af5 -> #ff2ede
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --grad: linear-gradient(120deg, #0a84ff 0%, #7c5af5 52%, #ff2ede 100%);
  --grad-soft: linear-gradient(120deg, rgba(10,132,255,.16), rgba(124,90,245,.16) 52%, rgba(255,46,222,.16));

  --ink-900: #05060a;
  --ink-800: #0a0c14;
  --ink-700: #11131d;
  --ink-card: #14172250;

  --light-bg: #f6f7fb;
  --light-card: #ffffff;
  --light-ink: #0c0e16;
  --light-muted: #5a6072;

  --white: #ffffff;
  --w-90: rgba(255,255,255,.90);
  --w-72: rgba(255,255,255,.72);
  --w-58: rgba(255,255,255,.58);
  /* Kleinste Stufe für Fließtext auf dunklem Grund: ab .46 sind es
     4,5:1 auf #05060a, .48 hält auf allen dunklen Flächen (≥ 4,98:1). */
  --w-48: rgba(255,255,255,.48);
  /* Nur noch dekorativ (Linien, Verläufe), nicht für Text. */
  --w-40: rgba(255,255,255,.40);
  --w-14: rgba(255,255,255,.14);
  --w-08: rgba(255,255,255,.08);

  --blue: #0a84ff;
  --violet: #7c5af5;
  /* Violett als Text auf dunklen Karten: #7c5af5 erreicht dort nur
     4,25:1, diese Stufe 5,10:1 (Bundle-Karte) bzw. 4,70:1 (#14172a). */
  --violet-text-dark: #8a6cf7;
  --magenta: #ff2ede;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --maxw: 1200px;
  --gap: clamp(16px, 3vw, 28px);

  --shadow-soft: 0 18px 50px -22px rgba(8, 10, 24, .55);
  --shadow-card: 0 30px 80px -40px rgba(8, 10, 24, .65);
  --shadow-glow: 0 18px 60px -18px rgba(124, 90, 245, .55);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink-900);
  color: var(--w-90);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ---------- Helpers ---------- */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--white); color: #000; padding: 12px 18px;
  border-radius: 10px; font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 120; transition: width .12s linear;
}

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--w-58);
  margin-bottom: 18px;
}
.eyebrow.light { color: var(--light-muted); }
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.legal-note { font-size: .8rem; color: var(--w-48); margin-top: 26px; text-align: center; }
.section-light .legal-note { color: var(--light-muted); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 13px 24px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), opacity .2s;
  white-space: nowrap;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-lg { min-height: 54px; padding: 16px 30px; font-size: 1.05rem; }

.button-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); background-size: 160% 160%; }
.button-primary:hover { box-shadow: 0 22px 70px -16px rgba(255,46,222,.55); background-position: 100% 0; }

.button-ghost { background: var(--w-08); color: var(--white); border-color: var(--w-14); backdrop-filter: blur(8px); }
.button-ghost:hover { background: var(--w-14); }

.section-light .button-ghost { background: #eef0f7; color: var(--light-ink); border-color: #e2e5ef; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 8, 14, .72); backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--w-08);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px clamp(16px, 4vw, 32px);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; align-items: center; }
/* Das Logo trägt "KöWi" in Weiß — es steht nur auf dunklem Grund. */
.brand-logo { height: 42px; width: auto; }
.footer-brand .brand-logo { height: 46px; }

.desktop-nav { display: flex; gap: 6px; margin-inline: auto; }
.desktop-nav a {
  padding: 9px 14px; border-radius: 10px; font-size: .95rem; color: var(--w-72);
  font-weight: 500; transition: color .2s, background .2s;
}
.desktop-nav a:hover { color: var(--white); background: var(--w-08); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }

/* Locale switcher */
.locale-switcher { position: relative; }
.locale-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 12px;
  background: var(--w-08); border: 1px solid var(--w-14); border-radius: var(--radius-pill);
  color: var(--w-90); font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.locale-btn:hover { background: var(--w-14); }
.locale-chevron { transition: transform .25s var(--ease); opacity: .7; }
.locale-switcher.open .locale-chevron { transform: rotate(180deg); }
.locale-dropdown {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 210px;
  background: #14161f; border: 1px solid var(--w-14); border-radius: var(--radius-md);
  padding: 7px; box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; z-index: 50;
}
.locale-switcher.open .locale-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.locale-option {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 9px 12px;
  background: none; border: 0; border-radius: 11px; color: var(--w-90);
  font-family: inherit; font-size: .95rem; cursor: pointer; transition: background .15s; text-align: start;
}
.locale-option:hover { background: var(--w-08); }
.locale-option[aria-selected="true"] { background: var(--grad-soft); }
.locale-flag { font-size: 1.15rem; line-height: 1; }
.locale-opt-name { flex: 1; }
.locale-opt-tag { font-size: .72rem; font-weight: 700; color: var(--w-48); letter-spacing: .08em; }

/* Mobile menu button */
.menu-button {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; background: var(--w-08);
  border: 1px solid var(--w-14); border-radius: 12px; cursor: pointer;
}
.menu-button span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
body.menu-open .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-button span:nth-child(2) { opacity: 0; }
body.menu-open .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; top: 0; inset-inline-end: 0; height: 100dvh; width: min(86vw, 360px);
  background: #0b0d15; border-inline-start: 1px solid var(--w-08); z-index: 110;
  padding: 92px 26px 32px; display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform .38s var(--ease);
}
[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { padding: 14px 12px; border-radius: 12px; font-size: 1.1rem; font-weight: 600; color: var(--w-90); }
.mobile-menu nav a:hover { background: var(--w-08); }
.mobile-menu-cta { margin: 16px 0; width: 100%; }
.mobile-locale { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.mobile-locale-opt {
  flex: 1 1 calc(50% - 8px); min-height: 44px; padding: 10px; background: var(--w-08);
  border: 1px solid var(--w-14); border-radius: 12px; color: var(--w-90);
  font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.mobile-locale-opt.active { background: var(--grad-soft); border-color: var(--violet); }
.menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 105; opacity: 0; transition: opacity .35s; }
.menu-backdrop.show { opacity: 1; }

/* ---------- Sections base ---------- */
section { position: relative; z-index: 2; }
.section-dark { background: var(--ink-900); color: var(--w-90); }
.section-light { background: var(--light-bg); color: var(--light-ink); }
.section-light h2 { color: var(--light-ink); }
.section-light p { color: var(--light-muted); }

.section-intro {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: clamp(70px, 11vw, 130px) clamp(16px, 4vw, 32px) clamp(34px, 5vw, 56px);
}
.section-intro h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: 18px; }
.section-intro > p { font-size: clamp(1rem, 1.6vw, 1.18rem); }

/* ---------- Hero ---------- */
/* Die Sektion ist vollflächig, nur der Inhalt bleibt auf --maxw: sonst enden
   Hintergrund, Raster und Glow auf breiten Screens als sichtbarer Kasten. */
.hero {
  --hero-bleed: max(0px, (100% - var(--maxw)) / 2);
  min-height: 100svh; display: grid; align-items: center;
  grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 60px);
  padding: clamp(110px, 16vh, 170px) calc(var(--hero-bleed) + clamp(16px, 4vw, 32px)) 80px;
}
.hero-glow {
  position: absolute; top: -10%; inset-inline-start: calc(var(--hero-bleed) + min(30%, var(--maxw) * .3)); width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(124,90,245,.4), rgba(10,132,255,.18) 45%, transparent 70%);
  filter: blur(36px); z-index: -1; pointer-events: none; animation: floatGlow 14s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--w-08) 1px, transparent 1px), linear-gradient(90deg, var(--w-08) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 70%);
}
@keyframes floatGlow { from { transform: translate(0,0); } to { transform: translate(-40px, 30px); } }

.hero-content { position: relative; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 900; margin-bottom: 22px; }
.hero-copy { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--w-72); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions.centered { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 32px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--w-72); }
.hero-trust svg { color: #46e6a0; flex-shrink: 0; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--w-48);
  display: inline-flex; align-items: center; gap: 8px;
}
.scroll-hint::after { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--w-40), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* Device / phone */
.device-stage { position: relative; display: grid; place-items: center; min-height: 460px; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* Poster (erster 3D-Frame als WebP) und 3D-Canvas liegen deckungsgleich über der Bühne:
   beide füllen die Bühne, das Gerät nimmt 82 % der Höhe ein (FILL in hero-phone.js).
   Das Poster ist sofort da (LCP-Kandidat, fetchpriority=high); hero-phone.js blendet
   das Canvas nach dem ersten gerenderten Frame darüber. Ohne WebGL bleibt das Poster. */
.device-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; pointer-events: none; }
.phone-3d {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  display: block; opacity: 0; transition: opacity .35s ease;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.device-stage.is-3d .phone-3d { opacity: 1; }
.device-stage.is-3d .device-poster { opacity: 0; transition: opacity .35s ease; }
@media (pointer: fine) {
  .device-stage.is-3d .phone-3d { cursor: grab; }
  .device-stage.is-3d.is-dragging .phone-3d { cursor: grabbing; }
}

.floating-card {
  position: absolute; z-index: 3; background: rgba(20,22,32,.7); backdrop-filter: blur(14px);
  border: 1px solid var(--w-14); border-radius: 16px; padding: 14px 16px; width: 168px;
  box-shadow: var(--shadow-soft); will-change: transform;
}
.floating-card span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--w-48); }
.floating-card strong { display: block; font-size: 1rem; margin: 4px 0 3px; color: #fff; }
.floating-card small { font-size: .78rem; color: var(--w-58); }
.card-left { top: 14%; inset-inline-start: -4%; }
.card-right { bottom: 12%; inset-inline-end: -6%; }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid #e8eaf2; }
.trust-strip-inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 32px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center;
}
.stat strong { display: block; font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: .92rem; color: var(--light-muted); }

/* ---------- Offers ---------- */
.offers { padding-bottom: clamp(60px, 9vw, 110px); }
.offer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.offer-card {
  position: relative; background: var(--light-card); border: 1px solid #e9ebf3; border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: 0 20px 50px -34px rgba(20,22,40,.45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -38px rgba(20,22,40,.5); border-color: #dfe2ee; }
.offer-card.featured { border-color: transparent; box-shadow: 0 30px 70px -34px rgba(124,90,245,.5); }
.offer-card.featured::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.offer-flag { position: absolute; top: 18px; inset-inline-end: 18px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.offer-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; padding: 12px; }
.offer-icon.telekom { background: #e20074; }
.offer-icon.o2 { background: #0019a5; }
.offer-icon.device { background: var(--grad); font-size: 1.7rem; color: #fff; }
.offer-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.offer-card h3 { font-size: 1.35rem; color: var(--light-ink); margin-bottom: 10px; }
.offer-card > p { color: var(--light-muted); font-size: .98rem; margin-bottom: 18px; }
.offer-price { font-size: .9rem; color: var(--light-muted); margin: auto 0 18px; }
/* Solange die Platzhalterpreise auskommentiert sind, fehlt das `auto` von
   .offer-price, das die CTA an den Kartenboden schiebt. Dann übernimmt sie es
   selbst. Kommen die Preise zurück, greift die Regel automatisch nicht mehr. */
.offer-card:not(:has(.offer-price)) > .offer-cta { margin-top: auto; }
.offer-price strong { font-size: 1.45rem; color: var(--light-ink); font-weight: 800; }
.offer-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--violet); transition: gap .2s; }
.offer-card:hover .offer-cta { gap: 11px; }
.offer-card-dark { background: linear-gradient(165deg, #14172a, #0a0c16); border-color: #20233a; }
.offer-card-dark h3 { color: #fff; }
.offer-card-dark > p { color: var(--w-58); }
.offer-card-dark .offer-price { color: var(--w-58); }
.offer-card-dark .offer-price strong { color: #fff; }
/* Auf dunklen Karten braucht der violette Link die hellere Textstufe (WCAG 4,5:1). */
.offer-card-dark .offer-cta, .bundle-card .offer-cta { color: var(--violet-text-dark); }

/* ---------- Carriers ---------- */
.carrier-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 11vw, 130px) clamp(16px, 4vw, 32px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.sticky-copy h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 20px; }
.sticky-copy p { color: var(--w-72); font-size: 1.08rem; margin-bottom: 22px; max-width: 460px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.carrier-cards { display: grid; gap: var(--gap); }
.carrier-card {
  background: rgba(20,22,34,.55); border: 1px solid var(--w-08); border-radius: var(--radius-lg);
  padding: 30px; backdrop-filter: blur(10px); transition: transform .3s var(--ease), border-color .3s;
}
.carrier-card:hover { transform: translateY(-5px); border-color: var(--w-14); }
.carrier-label { display: inline-flex; height: 56px; align-items: center; margin-bottom: 18px; }
.carrier-card h3 { font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.carrier-card p { color: var(--w-58); margin-bottom: 18px; }
.mini-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-specs span { font-size: .8rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: var(--w-08); border: 1px solid var(--w-14); color: var(--w-72); }

/* ---------- USP comparison ---------- */
.usp-inner { max-width: 980px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) clamp(70px, 10vw, 120px); }
.usp-header { text-align: center; padding-top: clamp(70px, 11vw, 130px); margin-bottom: 44px; }
.usp-header h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 14px; }
.usp-subtitle { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.usp-table {
  background: var(--light-card); border: 1px solid #e9ebf3; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.usp-thead, .usp-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr; align-items: center; }
/* stretch: die Kopfzellen sind gleich hoch, damit ihr Inhalt darin
   wirklich vertikal mittig sitzt statt nur die Zeile zu zentrieren. */
.usp-thead { align-items: stretch; }
.usp-thead { background: #f0f2f8; border-bottom: 1px solid #e3e6f0; }
.usp-thead > div { padding: 20px 16px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.usp-col-feature { text-align: start; }
.col-label { font-weight: 700; font-size: .95rem; color: var(--light-ink); display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
/* Vergleichstabelle steht auf hellem Grund: dunkle Logovariante. */
.usp-logo { height: 28px; width: auto; }
.usp-col-direct .col-label { color: var(--light-muted); font-weight: 600; }
.usp-col-kowi { position: relative; background: var(--grad-soft); }
/* margin-top: 0 — Logo und Abzeichen stehen nebeneinander, nicht untereinander. */
.col-badge { display: inline-block; margin-top: 0; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 3px 10px; border-radius: 999px; }

/* Zwischen 560px und 980px laeuft noch die Desktop-Navigation, die
   KöWi-Spalte ist aber zu schmal fuer Logo + Abzeichen nebeneinander
   (bei 820px fehlen 5px). Enger setzen statt umbrechen lassen. */
@media (max-width: 980px) {
  .usp-thead > div { padding: 16px 8px; gap: 6px; }
  .usp-logo { height: 22px; }
  .col-badge { font-size: .58rem; letter-spacing: .03em; padding: 2px 7px; }
}

.usp-row { border-bottom: 1px solid #eef0f6; transition: background .2s; }
.usp-row:last-child { border-bottom: 0; }
.usp-row:hover { background: #fafbff; }
.usp-cell-label { padding: 18px 20px; text-align: start; }
.usp-cell-label strong { display: block; font-size: 1rem; color: var(--light-ink); }
.usp-cell-label small { font-size: .85rem; color: var(--light-muted); }
.usp-cell-direct, .usp-cell-kowi { padding: 18px 12px; text-align: center; }
.usp-cell-kowi { background: rgba(124,90,245,.05); }
.usp-yes, .usp-no, .usp-partial { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 1rem; }
.usp-yes { background: rgba(70,230,160,.16); color: #16a36a; }
.usp-no { background: rgba(255,90,110,.14); color: #e0455e; }
.usp-partial { background: rgba(255,180,60,.16); color: #c9821a; }
.usp-note { display: block; font-size: .72rem; color: var(--light-muted); margin-top: 5px; }
.usp-cta { text-align: center; margin-top: 40px; }
.usp-cta-note { font-size: .88rem; color: var(--light-muted); margin-top: 14px; }

/* ---------- Bundles ---------- */
.bundle-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) clamp(70px, 10vw, 120px); display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: var(--gap); }
.bundle-card { background: rgba(20,22,34,.5); border: 1px solid var(--w-08); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; display: flex; flex-direction: column; }
.bundle-card:hover { transform: translateY(-6px); border-color: var(--w-14); }
.bundle-visual { height: 200px; display: grid; place-items: center; background: radial-gradient(120% 100% at 50% 0%, rgba(124,90,245,.3), transparent 65%); position: relative; overflow: hidden; }
.bundle-img { max-width: 74%; max-height: 164px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); transition: transform .3s var(--ease); }
.bundle-card:hover .bundle-img { transform: scale(1.04); }
.bundle-body { padding: 22px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.bundle-body h3 { font-size: 1.05rem; line-height: 1.35; color: #fff; margin-bottom: 14px; }
.bundle-body p { color: var(--w-58); font-size: .92rem; margin-bottom: 14px; }
.bundle-body .featured-variant { margin: -8px 0 18px; font-size: .88rem; }
.featured-grid .offer-cta { margin-top: auto; }
.featured-more { margin-top: 16px; font-size: .98rem; }
.featured-section + .bundle-section .section-intro { padding-top: clamp(20px, 4vw, 48px); }
.bundle-price { font-size: .88rem; color: var(--w-58); margin: auto 0 12px; }
.bundle-price strong { font-size: 1.5rem; color: #fff; font-weight: 800; }
.bundle-price small { display: block; margin-top: 2px; font-size: .8rem; }
/* Das Badge muss auch in eine 196px-Karte passen, ohne zu überlaufen. */
.bundle-visual .offer-flag { top: 12px; inset-inline-end: 12px; font-size: .58rem; letter-spacing: .04em; padding: 4px 9px; }
/* Preisangabenverordnung: Nebenkosten stehen immer neben dem Monatspreis. */
.bundle-fees { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; margin: 0 0 18px; font-size: .78rem; color: var(--w-58); }
.bundle-fees dt { margin: 0; min-width: 0; }
/* nowrap: sonst rutscht das "€" von "0,00 €" in die nächste Zeile. */
.bundle-fees dd { margin: 0; text-align: end; white-space: nowrap; color: rgba(255,255,255,.86); }
/* Der alte Preis steht ÜBER dem neuen, nicht daneben — sonst wird die
   Wertspalte so breit, dass sie aus der 200px-Karte läuft. */
.bundle-fees s { display: block; color: var(--w-48); text-decoration-thickness: 1px; }
.bundle-fees s[hidden] { display: none; }
/* EU-Energielabel + Produktdatenblatt (nur Smartphones führen sie). */
.bundle-energy { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: .72rem; }
/* display:flex würde das hidden-Attribut sonst überstimmen. */
.bundle-energy[hidden] { display: none; }
.datasheet-link { color: var(--w-58); text-decoration: underline; text-underline-offset: 2px; }
.datasheet-link:hover { color: #fff; }
/* Feste Box (Label ist 88×48, also 44×24 bei 24px Höhe): kein Layout-
   sprung beim Laden, und ein anderes Seitenverhältnis wird eingepasst. */
.energy-label { display: block; width: 44px; height: 24px; object-fit: contain; }
.energy-label[hidden] { display: none; }

/* ---------- Reviews ---------- */
.reviews-section { padding-bottom: clamp(60px, 9vw, 110px); }
.review-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.review-card { background: var(--light-card); border: 1px solid #e9ebf3; border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 20px 50px -36px rgba(20,22,40,.4); }
.stars { color: #ffb020; letter-spacing: 3px; margin-bottom: 14px; }
.review-card blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--light-ink); line-height: 1.6; }
.review-card figcaption { display: flex; align-items: center; gap: 11px; font-size: .9rem; color: var(--light-muted); font-weight: 600; }
.review-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }

/* ---------- Advice ---------- */
.advice-section { padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 32px) clamp(70px, 10vw, 120px); }
.advice-panel {
  max-width: var(--maxw); margin: 0 auto; background: linear-gradient(150deg, #0d1020, #05060a);
  border: 1px solid #1c1f33; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center;
}
.advice-panel .eyebrow { color: var(--w-58); }
.advice-panel h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: #fff; margin-bottom: 16px; }
.advice-panel > div > p { color: var(--w-58); margin-bottom: 24px; }
.trust-list { display: grid; gap: 14px; }
.trust-list li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--w-08); border: 1px solid var(--w-08); border-radius: 14px; }
.trust-list strong { font-size: 1.05rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.trust-list span { color: var(--w-72); font-weight: 500; }

/* ---------- Final CTA ---------- */
.final-cta { padding: clamp(60px, 10vw, 130px) clamp(16px, 4vw, 32px); }
.cta-card {
  position: relative; max-width: 860px; margin: 0 auto; text-align: center;
  background: linear-gradient(150deg, #12152a, #08090f); border: 1px solid #20233c;
  border-radius: var(--radius-lg); padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 60px); overflow: hidden;
}
.cta-glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 120%; height: 120%; background: radial-gradient(circle at 50% 0%, rgba(124,90,245,.35), transparent 55%); pointer-events: none; }
.cta-card .eyebrow { color: var(--w-58); position: relative; }
.cta-card h2 { position: relative; font-size: clamp(2rem, 4.6vw, 3.2rem); color: #fff; margin-bottom: 16px; }
.cta-card > p { position: relative; color: var(--w-72); font-size: 1.1rem; max-width: 560px; margin: 0 auto 30px; }
.cta-card .hero-actions { position: relative; }
.cta-note { position: relative; margin-top: 22px; font-size: .9rem; color: var(--w-48); }

/* ---------- Footer ---------- */
.site-footer { background: #07080e; border-top: 1px solid var(--w-08); padding: clamp(48px, 6vw, 72px) clamp(16px, 4vw, 32px) 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand-col { max-width: 320px; }
.footer-brand { margin-bottom: 14px; }
.footer-brand-col p { color: var(--w-48); font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: flex-start; }
.footer-links a { color: var(--w-58); font-size: .95rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: var(--maxw); margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--w-08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-copy, .footer-disclaimer, .footer-credit { font-size: .82rem; color: var(--w-48); }
.footer-credit a { text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.footer-credit a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .09s; }
.reveal.delay-2 { transition-delay: .18s; }
.reveal.delay-3 { transition-delay: .27s; }
/* Der Hero-Text ist das LCP-Element. Er blendet per CSS-Animation ein,
   statt auf script.js und den IntersectionObserver zu warten: gleiche
   Bewegung (.7s, 28px), aber sichtbar ab dem ersten Frame. */
.hero .hero-content.reveal {
  opacity: 1; transform: none; transition: none;
  animation: heroReveal .7s var(--ease) both;
}
@keyframes heroReveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- RTL ---------- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .hero-trust li,
[dir="rtl"] .offer-cta,
[dir="rtl"] .text-link { direction: rtl; }
[dir="rtl"] .offer-cta::after,
[dir="rtl"] .carriers-link::after { transform: scaleX(-1); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-button { display: flex; }
  .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 130px; }
  .hero-copy { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .device-stage { order: -1; min-height: 440px; margin-bottom: 10px; }
  .carrier-inner { grid-template-columns: 1fr; }
  .advice-panel { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
@media (max-width: 820px) {
  .offer-grid, .bundle-grid, .review-grid { grid-template-columns: 1fr; max-width: 460px; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (max-width: 560px) {
  .brand-logo { height: 34px; }
  .usp-thead, .usp-row { grid-template-columns: 1.4fr .8fr .8fr; }
  .usp-cell-label { padding: 14px 12px; }
  .usp-thead > div { padding: 14px 8px; }
  .usp-logo { height: 20px; }
  .usp-note { display: none; }
  .footer-bottom { flex-direction: column; }
  .floating-card { width: 140px; }
  .card-left { inset-inline-start: -2%; }
  .card-right { inset-inline-end: -2%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-glow, .scroll-hint::after, .hero .hero-content.reveal { animation: none !important; }
  .phone-3d, .device-stage.is-3d .device-poster { transition: none !important; }
}

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */
.legal-body { background: var(--light-bg); color: var(--light-ink); }
.legal-header { max-width: 760px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 24px) 0; }
.legal-back { color: var(--light-muted); font-size: .92rem; font-weight: 600; }
.legal-back:hover { color: var(--violet); }
.legal-page { max-width: 760px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 24px) 72px; }
.legal-page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 28px; }
.legal-page h2 { font-size: 1.15rem; margin: 38px 0 10px; letter-spacing: -.01em; }
.legal-page p { margin-bottom: 14px; color: #2c3040; line-height: 1.7; }
.legal-page a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.legal-page code { background: #e9ebf3; border-radius: 5px; padding: 1px 6px; font-size: .92em; }
.legal-lead { background: #fff; border: 1px solid #e2e5ef; border-radius: var(--radius-md); padding: 18px 20px; }
.legal-meta { margin-top: 46px; padding-top: 18px; border-top: 1px solid #e2e5ef; font-size: .88rem; color: var(--light-muted); }
.legal-footer { border-top: 1px solid #e2e5ef; padding: 22px 16px; text-align: center; font-size: .85rem; color: var(--light-muted); }

/* ---------- Geräteseiten (z. B. /iphone-18-pro) ----------
   Eigene Landingpage pro Gerät für lokale Suchanfragen. Nutzt Header,
   Bundle-Karten, Advice-Panel und Final-CTA der Startseite; hier nur,
   was es dort nicht gibt: Hero mit Produktbild, Tariftabelle, FAQ. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.product-hero {
  --hero-bleed: max(0px, (100% - var(--maxw)) / 2);
  display: grid; align-items: center; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 60px);
  padding: clamp(120px, 16vh, 170px) calc(var(--hero-bleed) + clamp(16px, 4vw, 32px)) clamp(60px, 8vw, 90px);
}
.product-hero-content { position: relative; }
.product-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 900; margin-bottom: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--w-48); margin-bottom: 22px; }
.crumbs a { color: var(--w-58); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }
.product-hero-visual {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 12px;
  padding: clamp(24px, 4vw, 48px);
  background: radial-gradient(70% 70% at 50% 40%, rgba(124,90,245,.28), transparent 70%);
}
.product-hero-visual img {
  width: 100%; height: auto; max-height: 420px; object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.6));
}
.product-hero-visual img:last-child { transform: translateY(6%); }
.header-cta { white-space: nowrap; }

.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }

/* Tariftabelle */
.tariff-section { padding-bottom: clamp(70px, 10vw, 120px); }
.tariff-wrap { max-width: 960px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.tariff-table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--light-line, #e9ebf3); border-radius: var(--radius-lg); overflow: hidden;
  font-size: .95rem; box-shadow: 0 24px 60px -40px rgba(12,14,22,.35);
}
.tariff-table th, .tariff-table td { padding: 16px 14px; text-align: start; vertical-align: middle; }
.tariff-table thead th { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--light-muted); background: #fafbff; border-bottom: 1px solid #eef0f6; }
.tariff-table tbody th { font-weight: 700; color: var(--light-ink); }
.tariff-table tbody td { color: var(--light-muted); }
.tariff-table tbody td strong { color: var(--light-ink); font-weight: 800; font-size: 1.05rem; }
.tariff-table tbody tr + tr th, .tariff-table tbody tr + tr td { border-top: 1px solid #eef0f6; }
.tariff-table tbody tr:hover { background: #fafbff; }
.tariff-table .is-featured th, .tariff-table .is-featured td { background: rgba(124,90,245,.06); }
.tariff-table s { color: var(--light-muted); margin-inline-end: 6px; }
.tariff-note { font-size: .88rem; color: var(--light-muted); margin: 18px 0 28px; text-align: center; }

/* FAQ */
.faq-section { padding-bottom: clamp(70px, 10vw, 120px); }
.faq-list { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); display: grid; gap: 12px; }
.faq-item { background: rgba(20,22,34,.5); border: 1px solid var(--w-08); border-radius: var(--radius-md, 16px); padding: 0 20px; transition: border-color .2s; }
.faq-item[open] { border-color: var(--w-14); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--w-08); font-weight: 800; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--w-72); line-height: 1.65; padding: 0 0 20px; }
.faq-item p a { color: var(--violet-text-dark); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 980px) {
  .product-hero { grid-template-columns: 1fr; text-align: center; padding-top: 124px; }
  .product-hero .hero-copy { margin-inline: auto; }
  .product-hero .hero-actions, .product-hero .hero-trust, .crumbs { justify-content: center; }
  .product-hero-visual { order: -1; max-width: 420px; margin: 0 auto; padding-top: 0; }
  .product-hero-visual img { max-height: 300px; }
}
@media (max-width: 820px) {
  .product-grid { grid-template-columns: 1fr; }
  .tariff-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tariff-table thead th, .tariff-table td { white-space: nowrap; }
}
@media (max-width: 560px) {
  .header-cta { padding: 10px 14px; font-size: .9rem; }
}
