/* =====================================================================
   Trilane – Website Design-System
   Marke: drei Lanes (Schwimmen Blau · Rad Grün · Laufen Orange)
   System-Font-Stack → matcht die iOS-App, null externe Requests.
   ===================================================================== */

:root {
  /* Farben */
  --ink:        #1D1D1F;
  --ink-soft:   #51515A;
  --muted:      #6E6E73;
  --surface:    #F5F5F7;
  --surface-2:  #EEEEF1;
  --white:      #FFFFFF;
  --line:       #E2E2E7;

  --swim:   #1F8FE6;
  --swim-2: #3FA5E6;
  --bike:   #16A074;
  --bike-2: #0AB39C;
  --run:    #F29427;
  --run-2:  #F7A93C;

  --brand-grad:  linear-gradient(120deg, #1F8FE6 0%, #16A074 52%, #F29427 100%);
  --run-grad:    linear-gradient(135deg, #F29427 0%, #F0712E 100%);

  /* Maße */
  --maxw: 1120px;
  --radius:    14px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(20,20,30,.06);
  --shadow:    0 18px 48px rgba(20,20,40,.10), 0 4px 12px rgba(20,20,40,.06);
  --shadow-lg: 0 50px 110px rgba(15,22,45,.22), 0 16px 36px rgba(15,22,45,.12);

  --font: -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; } /* height:auto → Seitenverhältnis aus width/height-Attributen */
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ----- Skip-Link (A11y) ----- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--swim); outline-offset: 2px; border-radius: 6px; }

/* ----- Layout-Helfer ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bike); margin-bottom: 14px;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* =====================================================================
   Typografie
   ===================================================================== */
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); letter-spacing: -.015em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }

.gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1.02rem; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--run-grad); color: #fff; box-shadow: 0 10px 26px rgba(242,148,39,.35); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(242,148,39,.45); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cfcfd6; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }

/* Offizielles App-Store-Badge (Apple-Artwork, unverändert) */
.badge-appstore { display: inline-flex; line-height: 0; }
.badge-appstore img { display: block; height: 48px; width: auto; transition: transform .15s ease, filter .2s ease; }
.badge-appstore:hover img { transform: translateY(-1px); filter: brightness(1.05); }
.nav .badge-appstore img, .nav-drawer .badge-appstore img { height: 40px; }
.cta-band .badge-appstore img { height: 52px; }

/* =====================================================================
   Brand-Logo (Inline-SVG drei Lanes)
   ===================================================================== */
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.logo svg { height: 30px; width: auto; }
.logo-mark { height: 30px; width: auto; flex: none; }
.logo .word { font-size: 1.4rem; }

/* =====================================================================
   Header / Navigation
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: .98rem; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-links, .nav-right .badge-appstore { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-drawer[hidden] { display: none; }
  .nav-drawer {
    border-top: 1px solid var(--line); background: var(--white);
  }
  .nav-drawer ul { list-style: none; padding: 14px 24px 22px; display: grid; gap: 4px; }
  .nav-drawer a { display: block; padding: 12px 8px; font-size: 1.08rem; font-weight: 500; border-bottom: 1px solid var(--surface); }
  .nav-drawer .btn { display: inline-flex; margin-top: 10px; }
}
@media (min-width: 861px) { .nav-drawer { display: none !important; } }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 620px at 80% -10%, rgba(242,148,39,.14), transparent 60%),
    radial-gradient(900px 560px at 8% 8%, rgba(31,143,230,.12), transparent 55%),
    linear-gradient(180deg, #FFFDFB 0%, var(--surface) 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 30ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-phone { display: flex; justify-content: center; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.trust svg { width: 17px; height: 17px; color: var(--bike); flex: none; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { max-width: 38ch; margin-inline: auto; }
  .hero-cta, .trust { justify-content: center; }
  .hero-phone { order: -1; }
}

/* =====================================================================
   Phone-Mockup
   ===================================================================== */
.phone {
  position: relative; width: 290px; max-width: 76vw; flex: none;
  background: #0A0A0A; border-radius: 42px; padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone::after { /* Notch / Dynamic-Island-Andeutung */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; background: #0A0A0A; border-radius: 14px; z-index: 2;
}
.phone img { width: 100%; border-radius: 33px; }
.phone--sm { width: 250px; }
.phone--lg { width: 320px; }
.phone--tilt { transform: rotate(-3deg); }

/* =====================================================================
   Sektionen
   ===================================================================== */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 6vw, 64px); text-align: center; }
.section-head .lead { margin-top: 16px; }

/* Feature (zweispaltig, alternierend) */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(64px, 10vw, 130px); }
.feature-media { display: flex; justify-content: center; }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-media { order: 1; }

.feature-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 20px; color: #fff;
}
.feature-icon svg { width: 27px; height: 27px; }
.ic-swim { background: linear-gradient(135deg, var(--swim), var(--swim-2)); }
.ic-bike { background: linear-gradient(135deg, var(--bike), var(--bike-2)); }
.ic-run  { background: var(--run-grad); }
.ic-ink  { background: linear-gradient(135deg, #2b2b33, #4a4a55); }

.feature h2 { margin-bottom: 16px; }
.feature .lead { margin-bottom: 22px; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { width: 21px; height: 21px; color: var(--bike); flex: none; margin-top: 2px; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature.reverse .feature-text, .feature.reverse .feature-media { order: 0; }
  .feature-media { margin-bottom: 6px; }
  .feature-icon { margin-inline: auto; }
  .checklist li { text-align: left; }
  .checklist { max-width: 440px; margin-inline: auto; }
}

/* =====================================================================
   Feature-Grid (kompakte Kacheln)
   ===================================================================== */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile .feature-icon { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .98rem; }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }

/* =====================================================================
   Multisport-Callout (drei Lanes)
   ===================================================================== */
.sports { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.sport-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.sport-chip svg { width: 22px; height: 22px; }
.sport-chip.swim svg { color: var(--swim); }
.sport-chip.bike svg { color: var(--bike); }
.sport-chip.run  svg { color: var(--run); }
.sport-chip.tri  { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =====================================================================
   Privacy-Sektion (dunkel)
   ===================================================================== */
.privacy {
  background: radial-gradient(1100px 700px at 50% -200px, #1B2940 0%, #0B1220 72%);
  color: #fff; padding: clamp(64px, 10vw, 120px) 0;
}
.privacy .eyebrow { color: var(--swim-2); }
.privacy h2 { color: #fff; }
.privacy .lead { color: rgba(255,255,255,.66); }
.privacy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,6vw,72px); align-items: center; }
.privacy-points { list-style: none; display: grid; gap: 18px; margin-top: 30px; }
.privacy-points li { display: flex; gap: 14px; align-items: flex-start; }
.privacy-points .pp-ic {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--swim-2);
}
.privacy-points svg { width: 21px; height: 21px; }
.privacy-points strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.privacy-points span { color: rgba(255,255,255,.6); font-size: .96rem; }
@media (max-width: 820px) { .privacy-grid { grid-template-columns: 1fr; text-align: center; } .privacy-points li { text-align: left; } }

/* =====================================================================
   FAQ (Akkordeon via <details>)
   ===================================================================== */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.06rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; flex: none; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }

/* =====================================================================
   Finaler CTA
   ===================================================================== */
.cta-band {
  background: var(--brand-grad); color: #fff; border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 72px); text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.9); max-width: 46ch; margin: 16px auto 30px; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: .95rem; margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: .98rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}

/* =====================================================================
   Inhalts-Seiten (Legal / Kontakt)
   ===================================================================== */
.page-hero { background: linear-gradient(180deg, #FFFDFB 0%, var(--surface) 100%); padding: clamp(48px,7vw,90px) 0 clamp(28px,4vw,46px); }
.page-hero h1 { margin-bottom: 14px; }
.prose { max-width: 760px; margin-inline: auto; padding-bottom: clamp(56px,9vw,100px); }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 16px; }
.prose a { color: var(--swim); text-decoration: underline; text-underline-offset: 2px; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.prose strong { color: var(--ink); }

/* =====================================================================
   Kontaktformular
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.info-card + .info-card { margin-top: 20px; }
.info-card h3 { margin-bottom: 12px; }
.info-card p, .info-card li { color: var(--ink-soft); }
.info-card .mail { font-weight: 600; color: var(--swim); }
.info-card ul { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.info-card li { display: flex; gap: 11px; align-items: flex-start; }
.info-card li svg { width: 20px; height: 20px; color: var(--bike); flex: none; margin-top: 3px; }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field .req { color: var(--run); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--swim); background: #fff; box-shadow: 0 0 0 3px rgba(31,143,230,.15);
}
.form .btn-primary { width: 100%; margin-top: 6px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-note a { color: var(--swim); text-decoration: underline; }

/* Honeypot – für Menschen unsichtbar, von Screenreadern ignoriert */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Status-Banner */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-ok  { background: #E7F6EF; color: #11724E; border: 1px solid #BCE6D3; }
.alert-err { background: #FDECEC; color: #9B2C2C; border: 1px solid #F3C7C7; }

/* =====================================================================
   Scroll-Reveal
   ===================================================================== */
/* Nur aktiv, wenn JS läuft (html.js) → ohne JS bleiben Inhalte sichtbar. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
