/* landing.css — estilos de la landing de captación (21-landing-leads).
 * Base: `referencia-lennart/src/app/globals.css` (TwinThink Design Guide v1) copiado tal cual más abajo.
 * Al final, lo nuestro: fuentes locales, imágenes «fill» (lo que hacía next/image), mapa al pulsar,
 * interruptor «Compro como empresa» y código postal. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }

/* ===== TwinThink Design Guide v1: Tokens (Werte aus der Live-CSS von twinthinkco.com) ===== */
:root {
  --canvas: #ffffff;
  --surface: #f5f5f6;
  --surface-2: #ebecee;
  --section-grey: #e4e6e9;
  --ink: #16181b;
  --ink-heading: #0f1114;
  --ink-2: #5b6068;
  --ink-3: #8a9099;
  --line: #e3e5e8;
  --line-strong: #c9ccd1;
  --accent: #cfa22b;       /* Gold: nur Sterne, EIN Unterstrich, Newsletter. Nie als Text auf Weiß. */
  --danger: #a4261c;
  --button-hover: #2b2e35;
  --radius-badge: 4px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-heading: "Barlow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --container: 1200px;
  --announce-h: 36px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--canvas); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--ink-heading); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--radius-s); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 400; }
.skip:focus { left: 8px; top: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ===== Buttons: 48 px, Radius 6, kein Schatten ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius-s); padding: 14px 22px; transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease); cursor: pointer; }
.btn svg { transition: transform .26s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--button-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.cta-note { font-size: 13px; color: var(--ink-2); }

/* ===== Ankündigungsleiste + Header ===== */
.announce { background: var(--ink); color: #f2f3f5; text-align: center; font-size: 12px; letter-spacing: .02em; padding: 9px 16px; min-height: var(--announce-h); }
.header { position: sticky; top: 0; z-index: 100; background: var(--canvas); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo { display: block; flex: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .16s var(--ease); }
.nav a:hover { border-color: var(--ink); }
.btn-header { min-height: 40px; padding: 10px 16px; font-size: 13px; }
.burger { display: none; }
.drawer, .drawer-backdrop { display: none; }
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav, .btn-header { display: none; }
  .header-inner { justify-content: space-between; }
  .logo img { height: 34px; }
  .burger { display: grid; gap: 7px; place-content: center; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; }
  .burger span { display: block; width: 22px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .26s var(--ease); }
  .burger.is-open span:nth-child(1) { transform: translateY(4.3px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { transform: translateY(-4.3px) rotate(-45deg); }
  .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,17,20,.4); opacity: 0; pointer-events: none; transition: opacity .26s var(--ease); top: calc(var(--announce-h) + var(--header-h)); }
  .drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .drawer { display: flex; flex-direction: column; justify-content: space-between; position: fixed; left: 0; right: 0; top: calc(var(--announce-h) + var(--header-h)); max-height: calc(100vh - var(--announce-h) - var(--header-h)); background: var(--canvas); padding: 12px 24px 24px; border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .26s var(--ease), opacity .26s var(--ease), visibility .26s; }
  .drawer.is-open { transform: none; opacity: 1; visibility: visible; }
  .drawer nav { display: grid; }
  .drawer nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-heading); font-weight: 600; font-size: 22px; text-decoration: none; letter-spacing: -0.015em; }
  .drawer-cta { margin-top: 20px; }
}

/* ===== Typo-Bausteine ===== */
.eyebrow { font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
h2 { font-size: clamp(28px, 3vw, 40px); }
.underline, .hl { color: inherit; background: none; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .09em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.section { padding: 96px 0; }
.section-white { background: var(--canvas); }
.section-tight { padding-top: 24px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-tight { padding-top: 16px; } }

/* ===== Hero ===== */
.hero { background: var(--surface); padding: 72px 0 0; text-align: center; scroll-margin-top: 0; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.03em; max-width: 920px; margin: 0 auto; text-wrap: balance; }
.sub { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: var(--ink-2); max-width: 600px; margin: 22px auto 0; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 24px auto 0; max-width: 860px; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: left; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; }
.tick svg { width: 12px; height: 12px; }
.hero .quiz { margin-top: 36px; }
.trust { margin-top: 56px; border-top: 1px solid var(--line); background: var(--canvas); }
.facts { max-width: var(--container); margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts li { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.facts strong { font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink-heading); }
.facts span { font-size: 13px; color: var(--ink-2); max-width: 18ch; line-height: 1.35; }
@media (max-width: 700px) { .hero { padding-top: 40px; } .facts { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } .trust { margin-top: 40px; } }

/* ===== Quiz ===== */
.quiz { max-width: 980px; margin: 0 auto; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; text-align: center; scroll-margin-top: calc(var(--header-h) + 16px); }
.quiz-progress { height: 4px; background: var(--surface-2); }
.quiz-progress span { display: block; height: 100%; background: var(--ink); transition: width .5s var(--ease); }
.quiz-body { padding: clamp(24px, 4vw, 44px); animation: qIn .26s var(--ease) both; }
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-step { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; margin-bottom: 12px; }
.quiz-step-ok { display: inline-flex; align-items: center; gap: 8px; }
.quiz-step-ok svg { background: var(--ink); color: #fff; border-radius: 50%; padding: 3px; width: 18px; height: 18px; }
.quiz-q { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; max-width: 760px; margin: 0 auto; text-wrap: balance; outline: none; }
.quiz-sub { margin: 14px auto 0; color: var(--ink-2); font-size: 15px; max-width: 560px; }
.quiz-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; background: none; border: 0; color: var(--ink-2); font-size: 14px; padding: 8px 12px; border-radius: var(--radius-s); }
.quiz-back:hover { color: var(--ink); background: var(--surface); }
.quiz-lock { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }


.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.tile { --gap: 14px; position: relative; flex: 0 0 min(calc((100% - (var(--n, 4) - 1) * var(--gap)) / var(--n, 4)), 232px); display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; color: var(--ink); background: var(--canvas); border: 1px solid var(--line-strong); border-radius: var(--radius-l); transition: transform .26s var(--ease), border-color .16s var(--ease); }
.tile:hover { transform: translateY(-4px); border-color: var(--ink); }
.tile.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tile-tick { position: absolute; top: 10px; right: 10px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: opacity .16s var(--ease), transform .26s var(--ease); }
.tile.is-selected .tile-tick { opacity: 1; transform: none; }
/* Bild: immer exakt quadratisch und vollständig sichtbar (contain), Textkarte darunter */
.tile-media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--canvas); overflow: hidden; }
.tile-media img { object-fit: contain; object-position: center; transition: transform .25s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.02); }
.tile-pill { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; padding: 10px 14px 13px; background: var(--canvas); border-top: 1px solid var(--line); }
.tile-label { font-family: var(--font-heading); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink-heading); }
.tile-detail { font-size: 11px; line-height: 1.3; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-strong); margin-right: 7px; vertical-align: -1px; }
/* Startfrage: Lifestyle-Bild mit Textkarte, Antwort zentriert (wie bei den anderen Fragen) */
.tile-start { cursor: pointer; }
.tile-badge.tile-badge-text span { font-size: clamp(17px, 1.9vw, 22px); line-height: 1.15; letter-spacing: -0.02em; text-align: center; text-wrap: balance; max-width: 84%; padding: 12px 16px 13px; }
.tile-start .tile-media img { object-fit: cover; }
.tile-start:hover .tile-media img { transform: scale(1.04); }
/* Mengen-Frage: Zahl zentriert über dem Bild */
.tile-badge { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.tile-badge span { font-family: var(--font-heading); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: -0.03em; color: var(--ink-heading); font-variant-numeric: tabular-nums; padding: 8px 18px 9px; border-radius: var(--radius-m); background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.75); }
/* Farb-Frage: die Farbe selbst als Fläche */
.tile-swatch { box-shadow: inset 0 0 0 1px rgba(22,24,27,.08); }
.tile-swatch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(0,0,0,.1)); pointer-events: none; }
/* Blanco y negro (Eclipse): diagonal zweigeteilt */
.tile-swatch.is-eclipse { background: linear-gradient(135deg, #f4f4f2 50%, #1b1d21 50%); }
/* Montage: Icon-Karten */
.tile-icon-media { display: grid; place-items: center; background: var(--surface); color: var(--ink); }
.tile-icon-media svg { width: 56%; height: auto; transition: transform .26s var(--ease); }
.tile-icon:hover .tile-icon-media svg { transform: scale(1.06); }
@media (max-width: 700px) {
  .tiles { gap: 10px; }
  .tile { --gap: 10px; flex: 0 0 calc((100% - 10px) / 2); }
  .tile-label { font-size: 15px; }
}

.conflict { margin: 24px auto 0; max-width: 640px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-m); text-align: left; }
.conflict p { font-size: 15px; }
.conflict-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.conflict-actions .btn { min-height: 44px; }

/* Ladeanimation: Lockerwand füllt sich Tür für Tür */
.ld { display: flex; flex-direction: column; align-items: center; padding: 20px 0 12px; }
.ld-wall { width: min(250px, 64vw); height: auto; margin-bottom: 26px; overflow: visible; }
.ld-body { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.ld-fill { fill: var(--ink); transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: ldFill .5s var(--ease) forwards; animation-delay: calc(var(--d) * .22s + .15s); }
.ld-vents { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: 0; animation: ldFade .3s var(--ease) forwards; animation-delay: calc(var(--d) * .22s + .5s); }
@keyframes ldFill { to { transform: scaleY(1); } }
@keyframes ldFade { to { opacity: .9; } }
.ld-chip { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.ld-bar { width: min(320px, 80%); height: 3px; margin-top: 22px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.ld-bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); animation: ldBar var(--ld-ms) var(--ease) forwards; }
@keyframes ldBar { to { transform: scaleX(1); } }
.ld-status { position: relative; height: 22px; width: 100%; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.ld-status span { position: absolute; inset: 0; opacity: 0; animation: ldMsg calc(var(--ld-ms) / 3) var(--ease) both; animation-delay: calc(var(--k) * var(--ld-ms) / 3); }
.ld-status span:last-child { animation-name: ldMsgLast; }
@keyframes ldMsg { 0% { opacity: 0; transform: translateY(6px); } 20%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes ldMsgLast { 0% { opacity: 0; transform: translateY(6px); } 25%, 100% { opacity: 1; transform: none; } }

/* Formular */
.qform { max-width: 640px; margin: 0 auto; }
.qfields { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; text-align: left; }
.field:first-child, .field:nth-child(2) { grid-column: auto; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: var(--ink); background: var(--canvas); border: 1px solid var(--line-strong); border-radius: var(--radius-m); padding: 12px 14px; transition: border-color .16s var(--ease); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.err { display: block; color: var(--danger); font-size: 13px; margin-top: 6px; text-align: left; }
.err-block { margin: 16px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 18px 0 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.check a { color: var(--ink); text-underline-offset: 3px; }
.qform .btn-block { margin-top: 18px; }
@media (max-width: 640px) { .qfields { grid-template-columns: 1fr; } }

/* ===== Split-Sektionen ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
.split-media { position: relative; border-radius: var(--radius-l); overflow: hidden; min-height: 460px; background: var(--surface); }
.split-media > img:first-child { object-fit: cover; position: absolute; inset: 0; width: 100%; height: 100%; }
.split-text { display: flex; flex-direction: column; justify-content: center; padding: 16px 0; }
.split-text h2 { margin-bottom: 18px; }
.split-text > p { color: var(--ink-2); }
.bullets { display: grid; gap: 14px; margin-top: 26px; }
.bullets li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.bullet-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin-top: 2px; }
.split-reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media { min-height: 0; aspect-ratio: 4 / 3; }
  .split-reverse .split-media { order: 0; }
}

/* ===== Valencia: Karte mit schwarzer Textkarte darüber ===== */
.origin { padding-bottom: 80px; }
.origin-stage { position: relative; }
.map { position: relative; z-index: 1; width: 100%; height: clamp(400px, 42vw, 520px); border: 1px solid var(--line-strong); border-radius: var(--radius-l); overflow: hidden; background: var(--surface-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.06); }
.origin-card { position: absolute; z-index: 2; left: 32px; bottom: 32px; width: min(400px, calc(100% - 64px)); padding: 34px 30px 30px; text-align: center; background: var(--ink); color: #f2f3f5; border-radius: var(--radius-l); }
.origin-card .eyebrow { color: rgba(242,243,245,.66); }
.origin-card h2 { color: #fff; font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 14px; }
.origin-card p:not(.eyebrow) { color: rgba(242,243,245,.78); font-size: 15px; }
.origin-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.origin-chips li { padding: 6px 12px; border: 1px solid rgba(242,243,245,.28); border-radius: 999px; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(242,243,245,.9); }
@media (max-width: 900px) {
  .origin-stage { display: flex; flex-direction: column; }
  .origin-card { position: relative; order: 1; left: auto; bottom: auto; width: min(640px, 100%); margin: 0 auto -48px; padding: 32px clamp(22px, 5vw, 48px) 72px; }
  .map { order: 2; height: clamp(340px, 60vw, 460px); }
  .origin { padding-bottom: 64px; }
}

/* ===== Parallax ===== */
.parallax { position: relative; overflow: hidden; aspect-ratio: 21 / 9; min-height: 420px; display: grid; place-items: center; color: #fff; text-align: center; isolation: isolate; }
.parallax-img { position: absolute; left: 0; right: 0; top: -14%; bottom: -14%; will-change: transform; z-index: -2; }
.parallax-img img { object-fit: cover; object-position: 50% 40%; }
.parallax-shade { position: absolute; inset: 0; background: rgba(15,17,20,.58); z-index: -1; }
.parallax-content { max-width: 900px; padding-top: 40px; padding-bottom: 40px; }
.parallax-quote { font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
.stats { display: flex; justify-content: center; gap: clamp(28px, 6vw, 72px); margin-top: 36px; }
.stats li { display: flex; flex-direction: column; align-items: center; }
.stats strong { font-family: var(--font-heading); font-size: clamp(34px, 4.4vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: #f2f3f5; margin-top: 8px; max-width: 16ch; line-height: 1.35; }
@media (max-width: 767px) { .parallax { aspect-ratio: auto; min-height: 460px; } .parallax-img { top: 0; bottom: 0; } .parallax-content { padding-left: 20px; padding-right: 20px; } .stats { gap: 20px; } }

/* ===== Karten ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px 28px; transition: transform .26s var(--ease), border-color .16s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-m); background: var(--surface); color: var(--ink); display: grid; place-items: center; margin-bottom: 20px; }
.card h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { color: var(--ink-2); font-size: 15px; }
/* B2B-Karte: umlaufender, animierter Rahmen */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.card-b2b { border: 2px solid transparent; background: linear-gradient(var(--canvas), var(--canvas)) padding-box, conic-gradient(from var(--angle), var(--ink) 0deg, #c9ccd1 90deg, var(--ink) 180deg, #c9ccd1 270deg, var(--ink) 360deg) border-box; animation: borderSpin 5s linear infinite; }
.card-b2b:hover { border-color: transparent; }
.card-b2b .card-icon { background: var(--ink); color: #fff; }
@keyframes borderSpin { to { --angle: 360deg; } }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ===== Footer (ink) ===== */
.footer { background: var(--ink); color: rgba(242,243,245,.66); padding: 64px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; line-height: 1.6; }
.footer-h { font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #f2f3f5; margin-bottom: 16px; }
.footer-list { display: grid; gap: 10px; }
.footer a, .footer-link-btn { color: rgba(242,243,245,.66); text-decoration: none; }
.footer a:hover, .footer-link-btn:hover { color: #f2f3f5; text-decoration: underline; text-underline-offset: 3px; }
.footer .lang { border-color: rgba(242,243,245,.28); }
.footer .lang a { color: rgba(242,243,245,.66); }
.footer .lang a:hover { color: #fff; background: rgba(242,243,245,.1); }
.footer .lang a.is-active { background: #f2f3f5; color: var(--ink); }
.footer :focus-visible { outline-color: #f2f3f5; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; text-align: left; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(242,243,245,.14); font-size: 12px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Mobile Aktionsleiste (nur Smartphones) ===== */
.mbar { display: none; }
@media (max-width: 640px) {
  .mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--canvas); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .mbar .btn { min-height: 44px; padding: 10px 8px; font-size: 13px; flex: 0 0 auto; }
  .mbar .btn-primary { flex: 1; }
  body { padding-bottom: 68px; }
}

/* ===== Dankeseite ===== */
.thanks { background: var(--surface); padding: 80px 0 96px; text-align: center; min-height: 70vh; }
.thanks-inner { max-width: 800px; display: flex; flex-direction: column; align-items: center; }
.thanks h1 { font-size: clamp(30px, 4vw, 46px); }
.thanks-check { width: 88px; height: 88px; margin-bottom: 28px; }
.thanks-check svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.thanks-check circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s var(--ease) forwards; }
.thanks-check path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .5s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0 36px; text-align: left; width: 100%; }
.steps li { display: flex; gap: 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; }
.steps li > span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-heading); font-weight: 600; display: grid; place-items: center; }
.steps strong { font-family: var(--font-heading); font-weight: 600; display: block; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.thanks-note { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--ink-2); flex-wrap: wrap; justify-content: center; }
.thanks-note svg { background: var(--ink); color: #fff; border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.thanks-note a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .thanks { padding: 56px 0 72px; } }

/* ===== Cookie-Banner (Ink-Karte, unten links; mobil Bottom-Sheet) ===== */
.cb-wrap { position: fixed; left: 24px; bottom: 24px; z-index: 300; width: min(440px, calc(100vw - 48px)); pointer-events: none; }
.cb { position: relative; pointer-events: auto; background: var(--ink); color: #f2f3f5; border-radius: var(--radius-l); padding: 24px; border: 1px solid rgba(242,243,245,.14); animation: cbIn .26s var(--ease) both; max-height: calc(100vh - 48px); overflow-y: auto; }
@keyframes cbIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cb-icon { width: 40px; height: 40px; border-radius: var(--radius-m); background: rgba(242,243,245,.1); color: #f2f3f5; display: grid; place-items: center; flex: none; }
.cb-title { font-size: 19px; color: #fff; }
.cb-text { font-size: 14px; line-height: 1.6; color: rgba(242,243,245,.72); }
.cb-text a { color: #fff; text-underline-offset: 3px; }
.cb-details { margin-top: 16px; display: grid; gap: 8px; }
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; background: rgba(242,243,245,.07); border-radius: var(--radius-m); }
.cb-row strong { display: block; font-size: 14px; font-weight: 500; }
.cb-row small { display: block; font-size: 12.5px; color: rgba(242,243,245,.62); margin-top: 2px; line-height: 1.4; }
.sw { flex: none; width: 46px; height: 26px; border-radius: 999px; border: 0; padding: 3px; background: rgba(242,243,245,.25); transition: background-color .16s var(--ease); }
.sw span { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .26s var(--ease); }
.sw.is-on { background: #f2f3f5; }
.sw.is-on span { transform: translateX(20px); background: var(--ink); }
.sw:disabled { opacity: .6; cursor: not-allowed; }
.cb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
/* gleichwertig gestaltet: gleiche Größe, Schrift, Gewicht */
.cb-btn { font-family: var(--font-body); font-weight: 500; font-size: 14px; min-height: 46px; padding: 12px; border-radius: var(--radius-s); border: 1px solid #f2f3f5; transition: background-color .16s var(--ease); }
.cb-accept { background: #f2f3f5; color: var(--ink); }
.cb-reject { background: transparent; color: #f2f3f5; }
.cb-accept:hover { background: #d7d9dd; }
.cb-reject:hover { background: rgba(242,243,245,.1); }
.cb-link { display: block; margin: 14px auto 0; background: none; border: 0; color: rgba(242,243,245,.72); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; padding: 4px 8px; }
.cb-link:hover { color: #fff; }
.cb-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: rgba(242,243,245,.7); }
.cb :focus-visible { outline-color: #f2f3f5; }
@media (max-width: 640px) { .cb-wrap { left: 0; right: 0; bottom: 0; width: 100%; } .cb { border-radius: var(--radius-l) var(--radius-l) 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); } }

/* ===== Sprachumschalter ===== */
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-s); overflow: hidden; }
.lang a { padding: 7px 11px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-decoration: none; color: var(--ink-2); transition: background-color .16s var(--ease), color .16s var(--ease); }
.lang a:hover { color: var(--ink); background: var(--surface-2); }
.lang a.is-active { background: var(--ink); color: #fff; }

/* ===== Schwebender WhatsApp-Button ===== */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 250; display: flex; align-items: center; height: 58px; min-width: 58px; padding: 0 14px; justify-content: center; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; box-shadow: 0 4px 16px rgba(15,17,20,.2); transition: transform .26s var(--ease), background-color .16s var(--ease); }
.wa-float:hover { transform: translateY(-3px); background: #20bd5a; }
.wa-float:focus-visible { outline-color: var(--ink); }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 500; opacity: 0; transition: max-width .26s var(--ease), margin .26s var(--ease), opacity .16s var(--ease); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 120px; margin-left: 8px; opacity: 1; }
@media (max-width: 640px) { .wa-float { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); height: 54px; min-width: 54px; } .wa-label { display: none; } }

/* ===== Vertrauens-Badges (letzte Quiz-Seite) ===== */
.trust-badges { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.trust-title { font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-align: center; margin-bottom: 16px; }
.trust-badges ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust-badges li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.trust-badges li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.trust-badges li { background: #f1f8f4; border-color: #cfe7da; }
.trust-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: #1f9d55; border: 0; border-radius: var(--radius-m); color: #fff; }
.trust-icon svg { width: 24px; height: 24px; }
.trust-text strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink-heading); }
.trust-text span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 560px) { .trust-badges ul { grid-template-columns: 1fr; } }

/* ===== Lo nuestro (gestión leads-landing-captacion, 15-oct-2026) ===== */
/* next/image con `fill` → img absoluta que llena su caja */
.fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.split-media > img.fill { object-fit: cover; }
.parallax-img img.fill { object-fit: cover; object-position: 50% 40%; }
.tile-media img.fill { object-fit: contain; }
.tile-start .tile-media img.fill { object-fit: cover; }
[hidden] { display: none !important; }

/* Mapa de Valencia: solo carga al pulsar (privacidad: sin pulsar, Google no recibe nada) */
.map-load { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.map-load .btn { min-height: 44px; }
.map-load small { max-width: 44ch; line-height: 1.45; }
@media (max-width: 900px) { .map-load { align-content: end; padding-bottom: 40px; } }

/* Formulario: código postal + interruptor «Compro como empresa» */
.biz { margin-top: 16px; text-align: left; }
.biz-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--canvas); cursor: pointer; width: 100%; font-size: 15px; font-weight: 500; color: var(--ink); text-align: left; }
.biz-toggle .sw { background: var(--line-strong); }
.biz-toggle .sw.is-on { background: var(--ink); }
.biz-toggle .sw.is-on span { background: #fff; }
.biz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.field small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 640px) { .biz-fields { grid-template-columns: 1fr; } }
