/* fitramp – Landingpage (fitramp.de). Theme „Kinesio“ wie die App.

   Die Farben unter :root stehen genauso in .streamlit/config.toml ([theme]);
   tests/test_landing.py prüft, dass beide gleich bleiben. Cyan = links, Pink = rechts,
   Grün nur für Zielbereiche. Hell wie die App, kein dunkles Theme.

   Schriften liegen hier (fonts/, SIL OFL), nicht bei Google: Überschriften wie in der App
   Bahnschrift (nur Windows), sonst Barlow; Text Source Sans 3 wie Streamlit. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@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: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  /* aus .streamlit/config.toml [theme] */
  --ink: #111417;          /* primaryColor, textColor */
  --bg: #FFFFFF;           /* backgroundColor */
  --bg-2: #F3F5F6;         /* secondaryBackgroundColor */
  --border: #DDE1E4;       /* borderColor */
  --link: #0090AE;         /* linkColor */
  --green: #11994F;        /* greenColor: im Zielbereich */
  --yellow: #E09A00;       /* yellowColor */
  --red: #C62F25;          /* redColor */
  --gray: #5B636B;         /* grayColor */
  --left: #00A3C4;         /* chartCategoricalColors[0]: links */
  --right: #EE4B7E;        /* chartCategoricalColors[1]: rechts */
  --radius: 0.6rem;        /* baseRadius */

  --font-head: Bahnschrift, "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--left); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--gray); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: var(--radius); z-index: 10; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- Kopf */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--link); }
.top .btn { padding: 9px 16px; }

/* ---------------------------------------------------------------- Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius); border: 1.5px solid var(--ink);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a3036; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- Einstieg */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 600 0.82rem/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray);
}
.lr { display: inline-flex; width: 18px; height: 10px; border-radius: 5px; overflow: hidden; flex: none; }
.lr::before, .lr::after { content: ""; flex: 1; }
.lr::before { background: var(--left); }
.lr::after { background: var(--right); }
.hero h1 .l { color: var(--left); }
.hero h1 .r { color: var(--right); }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.28rem); line-height: 1.55; margin: 24px 0 32px;
  max-width: 34em; color: #2b3137; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { margin-top: 16px; font-size: 0.93rem; color: var(--gray); }

.figure {
  margin: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: calc(var(--radius) * 2);
  padding: clamp(18px, 2.5vw, 28px);
}
.figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.figure figcaption strong { font: 600 1.05rem/1.2 var(--font-head); }
.figure figcaption span { font-size: 0.86rem; color: var(--gray); white-space: nowrap; }
.chart { width: 100%; height: auto; }
.chart text { font: 500 13px/1 var(--font-body); fill: var(--gray); }
.chart .val { font: 700 15px/1 var(--font-head); }
.chart .val.l { fill: var(--left); }
.chart .val.r { fill: var(--right); }
.chart .val.i { fill: var(--ink); }
.chart .watt { font-size: 11.5px; fill: #7A8794; }
.chart .hint { font: 500 12.5px/1 var(--font-body); fill: var(--gray); font-style: italic; }
.chart .goal { font: 600 13px/1 var(--font-head); fill: var(--green); }
.chart .flag { font: 600 12.5px/1 var(--font-body); fill: #9A6A00; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 0.9rem; color: var(--gray); }
.legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle;
  margin-right: 6px; }
.legend .k-l { background: var(--left); }
.legend .k-r { background: var(--right); }
.legend .k-i { background: var(--ink); }
.legend .k-g { height: 0; border-top: 2px dashed var(--green); border-radius: 0; }
.legend .k-z { background: rgba(17, 153, 79, 0.22); height: 10px; }

/* ---------------------------------------------------------------- Abschnitte */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-2); }
.head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.head p { margin-top: 14px; font-size: 1.12rem; color: #2b3137; }
.kicker { display: block; margin-bottom: 12px; font: 600 0.82rem/1 var(--font-head);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }

.steps { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 28px 24px 26px; border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.6); background: var(--bg); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px;
  margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: #fff;
  font: 700 1rem/1 var(--font-head);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: #2b3137; }
.quote { display: inline-block; margin-top: 12px; padding: 6px 10px; border-radius: 6px;
  background: var(--bg-2); font: 600 0.95rem/1.35 var(--font-head); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.6); overflow: hidden; }
.card { background: var(--bg); padding: 28px 26px 30px; }
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card h3 .lr { width: 14px; height: 8px; }
.card p { color: #2b3137; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.split .head p + p { margin-top: 12px; }
.split.mid { align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.checks small { display: block; color: var(--gray); font-size: 0.93rem; }
.callout { padding: 24px 26px; border-radius: calc(var(--radius) * 1.6); background: var(--bg);
  border: 1px solid var(--border); border-left: 4px solid var(--yellow); }
.callout h3 { margin-bottom: 8px; }
.callout p + p { margin-top: 10px; }

/* ---------------------------------------------------------------- Beta-Anfrage */
.beta { background: var(--ink); color: #fff; }
.beta .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.beta .kicker { color: var(--left); }
.beta .head p { color: #c9cfd4; }
.beta ul { margin: 22px 0 0; padding-left: 1.1em; color: #c9cfd4; }
.beta li + li { margin-top: 6px; }
.form { background: var(--bg); color: var(--ink); border-radius: calc(var(--radius) * 2);
  padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.96rem; }
.field .opt { font-weight: 400; color: var(--gray); }
.form input[type="email"], .form input[type="text"], .form select, .form textarea {
  width: 100%; padding: 11px 13px; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius);
}
.form textarea { min-height: 92px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--left);
  box-shadow: 0 0 0 3px rgba(0, 163, 196, 0.18); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.94rem; color: #2b3137; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- Fuß */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--border); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot img { width: 120px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--gray); text-decoration: none; font-size: 0.95rem; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot small { color: var(--gray); }

/* ---------------------------------------------------------------- Textseiten (Rechtliches, Danke) */
.page { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 24px; }
.page h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.page p, .page ul { margin: 0 0 12px; }
.page ul { padding-left: 1.2em; }
.draft { margin-bottom: 28px; padding: 14px 18px; border-radius: var(--radius);
  background: #FFF6E0; border: 1px solid #F1D48A; font-size: 0.96rem; }
.ph { background: #FFF1C2; padding: 0 4px; border-radius: 3px; }

/* ---------------------------------------------------------------- schmal */
@media (max-width: 900px) {
  .hero .wrap, .split, .beta .wrap { grid-template-columns: 1fr; }
  .steps, .grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top .btn-ghost { margin-left: auto; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .brand img { width: 124px; }
  .row { grid-template-columns: 1fr; }
  .ctas .btn { width: 100%; }
  .top .btn { padding: 8px 12px; font-size: 0.94rem; }
}
