/* ============================================================
   Bike+Hike – Webseite v1
   Hintergrund #c0baae, alle anderen Farben aus der App (app/css/app.css)
   ============================================================ */
:root {
    --bg: #c0baae;                 /* Sand – Seitenhintergrund */
    --ink: #0f172a;                /* App: --fg / Icon-Hintergrund */
    --ink-soft: #334155;           /* App: --line (dunkel) – AA auf Sand */
    --paper: #f1f5f9;              /* App: --bg-2 */
    --line: rgba(15, 23, 42, .18);
    --bike: #059669;               /* App: Rad-Akzent */
    --bike-text: #065f46;          /* dunklere Stufe für Text auf Sand */
    --hike: #c2410c;               /* App: Wander-Akzent */
    --hike-text: #9a3412;
    --hike-light: #fb923c;         /* App: Wander-Akzent dunkel / Sonne im Icon */
    --signal: #e5ff00;             /* App-Icon: Track */
    --brand: var(--bike);
    --brand-text: var(--bike-text);

    --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --mx: clamp(16px, 5.5vw, 88px);
    --hd-pad: clamp(14px, 2.2vw, 24px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 16px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -.02em; line-height: 1.02; }
em { font-style: normal; color: var(--brand-text); }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 999px; font: 600 12px var(--mono); text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow b { color: var(--ink); font-weight: 600; }
.eyebrow i { font-style: normal; }

/* ============ Pills (Buttons) ============ */
.pill {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
    border: 0; border-radius: 999px; padding: 12px 19px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), background-color .25s;
}
.pill:hover { transform: translateY(-2px); }
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--ink:hover { background: var(--bike-text); }
.pill--paper { background: var(--paper); color: var(--ink); }
.pill--soft { background: rgba(241, 245, 249, .72); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill--soft i { display: inline-flex; gap: 3px; }
.pill--soft i::before, .pill--soft i::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.pill--line { background: none; box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; }
.pill[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ============ Kopfzeile ============ */
.hd {
    position: fixed; inset: 0 0 auto; z-index: 90;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: var(--hd-pad) var(--mx); pointer-events: none;
}
.hd > * { pointer-events: auto; }
.brand {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
    font: 800 18px/1 var(--display); letter-spacing: -.02em;
    opacity: 0; transition: opacity .4s ease;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
body:not(.at-hero) .brand, .brand:focus-visible { opacity: 1; }
.hd-actions { display: flex; align-items: center; gap: 10px; }

/* ============ Menü ============ */
.menu {
    position: fixed; inset: 0; z-index: 120;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    padding: 80px var(--mx) 40px;
    background: rgba(15, 23, 42, .66); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s;
}
.menu[hidden] { display: flex; }
.menu.open { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.menu nav { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.menu nav a {
    font: 800 clamp(28px, 5.6vw, 56px)/1.12 var(--display); letter-spacing: -.02em;
    color: var(--paper); text-decoration: none; transition: color .25s;
}
.menu nav a:hover, .menu nav a:focus-visible { color: var(--bike); }
.menu-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(241, 245, 249, .55); }
.menu-x { position: absolute; top: var(--hd-pad); right: var(--mx); }

/* ============ Bild ============ */
/* Weiß im Foto wird durch multiply zur Hintergrundfarbe */
/* (Hintergrundfarbe im Container nötig, sonst blendet multiply gegen Transparenz) */
.canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bg); }
.canvas img, .hero-band img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
    mix-blend-mode: multiply; display: block;
}
/* Desktop: ganzes Foto zeigen und etwas verkleinern, damit die Hand zwischen den Textspalten bleibt */
.canvas img { object-fit: contain; object-position: 50% 100%; transform: scale(.88); transform-origin: 50% 100%; }
.hero-band { display: none; background: var(--bg); }

/* ============ Abschnittsanzeige ============ */
.hud {
    position: fixed; left: var(--mx); bottom: clamp(16px, 2.6vw, 26px); z-index: 60;
    font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-soft); pointer-events: none; transition: opacity .4s;
}
.hud b { color: var(--ink); font-weight: 600; }
.rail {
    position: fixed; right: clamp(12px, 2vw, 22px); top: 50%; transform: translateY(-50%); z-index: 60;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none; transition: opacity .4s;
}
.rail i { width: 2px; height: 16px; background: var(--line); transition: .3s; }
.rail i.on { background: var(--brand); height: 28px; }
body.at-hero .hud, body.at-hero .rail, body.at-end .hud, body.at-end .rail { opacity: 0; }

/* ============ Einblenden ============ */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* ============ Hero ============ */
main { position: relative; z-index: 1; }
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: flex-end;
    padding: 0 var(--mx) clamp(26px, 5vh, 56px);
}
.hero-in { width: 100%; }
.hero-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: clamp(14px, 2.4vh, 24px); }
.hero-meta span { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.hero-meta span::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); vertical-align: 2px; margin-right: 9px; }
.hero-meta span:nth-child(2)::before { background: var(--hike); }
.hero-meta span:nth-child(3)::before { background: var(--ink); }
.lockup {
    font-weight: 900; font-size: clamp(56px, 9.5vw, 170px); line-height: .86; letter-spacing: -.045em;
    color: var(--ink); margin: 0;
}
.lockup em { color: var(--bike); }
.claim {
    margin: clamp(16px, 2.8vh, 28px) 0 0; max-width: 24ch;
    font: 700 clamp(20px, 2.3vw, 30px)/1.16 var(--display); letter-spacing: -.015em;
}
.claim em { color: var(--hike-text); }
.cue { margin: clamp(14px, 2.4vh, 26px) 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.cue i { font-style: normal; }
.cue span { display: inline-block; animation: bob 1.9s ease-in-out infinite; margin-right: 6px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ============ Inhaltsabschnitte ============ */
.sec {
    min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    padding: 15vh var(--mx) 12vh;
}
.sec--left { align-items: flex-start; }
.sec--right { align-items: flex-end; }
/* Textspalte endet vor der Hand in der Bildmitte */
.copy { max-width: min(440px, calc(50vw - var(--mx) - 14vw)); }
.copy--wide { max-width: min(480px, calc(50vw - var(--mx) - 14vw)); }
.copy h2 { font-weight: 800; font-size: clamp(26px, 3.2vw, 42px); margin-top: 14px; }
.copy > p { margin: 16px 0 0; color: var(--ink-soft); font-size: clamp(14.5px, 1.25vw, 16px); max-width: 44ch; }
.copy .big {
    margin: 14px 0 0; font: 900 clamp(38px, 4.4vw, 68px)/.98 var(--display); letter-spacing: -.03em;
    color: var(--ink); max-width: none;
}
.copy .big em { color: var(--hike-text); }

/* Modi */
.modes { margin-top: 26px; display: grid; gap: 14px; }
.mode {
    position: relative; padding: 18px 20px 18px 22px; border-radius: 18px;
    background: rgba(241, 245, 249, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
}
.mode::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.mode--bike { --c: var(--bike); --ct: var(--bike-text); }
.mode--hike { --c: var(--hike); --ct: var(--hike-text); }
.mode small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ct); font-weight: 600; }
.mode h3 { font-weight: 800; font-size: clamp(22px, 2.1vw, 30px); margin-top: 6px; }
.mode p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }

/* Funktionen + Schritte */
.features, .steps { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.features li, .steps li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.features small, .steps small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--brand-text); font-weight: 600; flex: 0 0 auto; }
.features h4, .steps h4 { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.features p, .steps p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.cta { margin-top: 26px; }

/* Kennzahlen */
.stats { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.stat b { display: block; font: 800 clamp(19px, 1.8vw, 25px)/1.1 var(--display); color: var(--ink); }
.stat span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: clamp(13.5px, 1.15vw, 15px); max-width: 34ch; }
.sec--right .copy { text-align: right; }
.sec--right .copy > p, .sec--right .stat span { margin-left: auto; }
.sec--right .mode { text-align: left; }

/* ============ Abschluss-Band (dunkel) ============ */
.cta-band {
    position: relative; z-index: 2; background: var(--ink); color: var(--paper);
    padding: clamp(80px, 14vh, 140px) var(--mx) 0;
    border-radius: clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px) 0 0;
}
.cta-band em { color: var(--signal); }
.eyebrow--paper { color: rgba(241, 245, 249, .6); }
.eyebrow--paper b { color: var(--paper); }
.cta-in { max-width: 760px; }
.cta-in h2 { font-weight: 900; font-size: clamp(34px, 5.4vw, 76px); margin-top: 14px; letter-spacing: -.03em; }
.cta-in p { margin: 18px 0 0; max-width: 52ch; color: rgba(241, 245, 249, .72); font-size: clamp(15px, 1.3vw, 17px); }
.soon { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.soon .pill { color: var(--paper); }

.ft {
    margin-top: clamp(70px, 12vh, 120px); padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(241, 245, 249, .14);
    display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(241, 245, 249, .6);
}
.ft-links { display: flex; gap: 22px; flex-wrap: wrap; }
.ft-links a { text-decoration: none; color: var(--paper); }
.ft-links a:hover { color: var(--signal); }

/* ============ Unterseiten (Impressum, Datenschutz) ============ */
.page { position: relative; z-index: 1; max-width: 760px; padding: 120px var(--mx) 80px; }
.page h1 { font-weight: 900; font-size: clamp(34px, 5vw, 64px); margin-top: 14px; }
.page h2 { font-weight: 800; font-size: 22px; margin: 36px 0 0; }
.page p, .page li { color: var(--ink-soft); }
.page .brand { opacity: 1; }
.note { margin-top: 24px; padding: 14px 18px; border-radius: 14px; background: rgba(241, 245, 249, .6); border-left: 5px solid var(--hike); font-size: 14.5px; }

/* ============================================================
   Hochformat / schmale Bildschirme (Handy, Tablet hochkant)
   Bild als Band oben im Hero, Texte darunter, keine festen Seiten-Spalten.
   ============================================================ */
@media (max-width: 899px), (orientation: portrait) and (max-width: 1199px) {
    .canvas, .rail, .hud, .hd-app { display: none; }
    .brand { opacity: 1; }
    .pill { padding: 11px 15px; }

    .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0 0 34px; min-height: 0; }
    .hero-band {
        display: block; height: min(62svh, 125vw); margin: 0 calc(var(--mx) * -0) 0;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%);
    }
    .hero-band img { object-position: 50% 40%; }
    .hero-in { padding: 0 var(--mx); margin-top: -2svh; position: relative; }
    .hero-meta { order: 3; margin: 22px 0 0; }
    .hero-in { display: flex; flex-direction: column; }
    .lockup { font-size: clamp(54px, 17vw, 120px); }

    .sec, .sec--left, .sec--right { min-height: 0; padding: 64px var(--mx); align-items: stretch; }
    .sec + .sec { border-top: 1px solid var(--line); }
    .copy, .copy--wide { max-width: 560px; }
    .sec--right .copy { text-align: left; }
    .sec--right .copy > p, .sec--right .stat span { margin-left: 0; }
    .cta-band { margin-top: 24px; }
}

@media (max-width: 420px) {
    .ft { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cue span { animation: none; }
    .js .rv { opacity: 1; transform: none; transition: none; }
    .menu, .pill { transition: none; }
}

/* ============ Einwilligungs-Banner ============ */
.consent {
    position: fixed; z-index: 250; right: var(--mx); bottom: clamp(14px, 2.4vw, 26px);
    width: min(460px, calc(100vw - 2 * var(--mx)));
    max-height: calc(100svh - 28px); overflow-y: auto;
    background: var(--paper); color: var(--ink); border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
    opacity: 0; transform: translateY(16px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.consent.open { opacity: 1; transform: none; }
.consent-in { padding: 22px 22px 20px; }
.consent h2 { font-weight: 800; font-size: 24px; margin-top: 10px; }
.consent p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.consent p a { color: var(--brand-text); }
.consent-opts { margin: 16px 0 0; border-top: 1px solid var(--line); }
.consent-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.consent-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bike); flex: 0 0 auto; }
.consent-opt b { display: block; font: 700 15px/1.3 var(--display); }
.consent-opt b small { font: 600 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bike-text); margin-left: 6px; }
.consent-opt > span > small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.consent-btns .pill { justify-content: center; }
.consent-btns [data-c="settings"], .consent-btns [data-c="save"] { grid-column: 1 / -1; }
.consent-btns [hidden] { display: none; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--paper); }
.linkbtn:hover { color: var(--signal); }
.page .linkbtn { color: var(--brand-text); text-decoration: underline; text-transform: none; letter-spacing: 0; }
.page address { font-style: normal; color: var(--ink-soft); margin-top: 10px; }
.page a { color: var(--brand-text); }

@media (max-width: 520px) {
    .consent { left: 10px; right: 10px; bottom: 10px; width: auto; border-radius: 20px; }
    .consent-in { padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
    .consent h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
