/* Schriften liegen auf dem eigenen Webspace (nicht bei Google), Zeichensatz Latein. */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/BarlowCondensed-500.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;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/BarlowCondensed-600.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;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/BarlowCondensed-700.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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/IBMPlexMono-500.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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/IBMPlexSans.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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/IBMPlexSans.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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/IBMPlexSans.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;
}

/* Layout: schmale Lesespalte, Funktionen abwechselnd Text neben Handy-Bild; Piste 07/25 als wiederkehrendes Element. */
:root {
  --sky: #eef3f6;        /* Seitengrund, leicht bläulich wie Kartenpapier */
  --paper: #ffffff;      /* Flächen */
  --ink: #14212b;        /* Text */
  --muted: #52616d;      /* Nebentext */
  --line: #cfd9e0;       /* Linien */
  --chart: #a3216f;      /* Magenta der Sichtflugkarte, Akzent */
  --chart-soft: #f6e3ee;
  --warn: #c62828;       /* Rot wie das Warnbanner der App */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky: #0e161c; --paper: #16212a; --ink: #e4ecf1; --muted: #9aabb8; --line: #2a3a46;
    --chart: #e277b5; --chart-soft: #3a1b2e; --warn: #ff6b6b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sky: #0e161c; --paper: #16212a; --ink: #e4ecf1; --muted: #9aabb8; --line: #2a3a46;
  --chart: #e277b5; --chart-soft: #3a1b2e; --warn: #ff6b6b; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--sky); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chart); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--chart); outline-offset: 3px; }
.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 1.25rem; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 700; letter-spacing: 0.005em; }
h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.7rem; font-weight: 600; }
p { margin: 0; max-width: 62ch; }
.label {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--chart);
}

/* Kopf */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-decoration: none; color: var(--ink); }
.brand span { color: var(--chart); }
.top nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ink); }

/* Einstieg */
.hero { padding-block: 3.5rem 2.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero-text { display: grid; gap: 1.25rem; min-width: 0; }
.hero-text p { font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.4rem; border-radius: 0.4rem;
  background: var(--chart); color: var(--paper); font-weight: 600; text-decoration: none; font-size: 1.05rem;
}
.button:hover { filter: brightness(1.08); }
.button svg { width: 1.2rem; height: 1.2rem; }
.version { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

/* Piste 07/25 als Trennband */
.runway {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--muted);
  padding: 0.35rem 0.9rem; border: 2px solid var(--line); border-radius: 0.3rem; background: var(--paper);
}
.runway i { flex: 1; height: 0; border-top: 3px dashed var(--line); }

.phone {
  border: 6px solid var(--ink); border-radius: 1.6rem; overflow: hidden; background: var(--ink);
  box-shadow: 0 1.2rem 2.5rem -1.2rem rgba(20, 33, 43, 0.45); max-width: 19rem; margin-inline: auto; width: 100%;
}
.phone img { width: 100%; }

/* Funktionen */
section { padding-block: 3rem; }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2.5rem; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: 2.5rem; align-items: center;
  padding-block: 2.25rem; border-top: 1px solid var(--line);
}
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); }
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-text { display: grid; gap: 0.9rem; min-width: 0; }
.feature ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; max-width: 60ch; }
.feature .phone { max-width: 17rem; }
.zones { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.zone { font-size: 0.85rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 0.25rem; border: 1px solid var(--line); background: var(--paper); }
.zone.red { color: var(--warn); border-color: var(--warn); }
.zone.chart { color: var(--chart); border-color: var(--chart); }

.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.more div { display: grid; gap: 0.3rem; min-width: 0; }
.more h3 { font-size: 1.35rem; }
.more p { color: var(--muted); font-size: 1rem; }

/* Installieren */
.install { background: var(--paper); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.steps li::before {
  content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--chart);
}
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--muted); font-size: 1rem; }
.note { margin-top: 2rem; padding: 1rem 1.25rem; border-left: 4px solid var(--chart); background: var(--chart-soft); border-radius: 0 0.3rem 0.3rem 0; max-width: 62ch; }

/* Hinweis */
.caution { display: grid; gap: 0.8rem; }
.caution strong { color: var(--warn); }

footer { padding-block: 2rem 3rem; color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.mail { font-family: var(--font-mono); font-size: 0.9rem; user-select: all; }

@media (max-width: 760px) {
  .hero { padding-block: 2rem 1.5rem; }
  .hero .wrap, .feature, .feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
  .feature .phone, .phone { max-width: 15rem; }
}

/* Unterseiten Impressum und Datenschutz */
.legal { padding-block: 2.5rem 3rem; display: grid; gap: 1.1rem; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; max-width: 62ch; }
.todo { background: var(--chart-soft); padding: 0 0.3rem; border-radius: 0.2rem; }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Animierter Windenstart im Handyrahmen. Die App-Ansicht ist immer hell, wie auf dem Screenshot. */
.demo { margin: 0; display: grid; gap: 0.6rem; justify-items: center; }
.demo figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; max-width: 19rem; }
.demo-phone { max-width: 19rem; }
.demo-screen {
  --app-bg: #fbf8fd; --app-card: #ece9f2; --app-ink: #1b1b21; --app-muted: #5d5e67; --app-curve: #1f3a8a; --app-ias: #00796b; --app-red: #c62828; --app-grid: #d3d1db;
  background: var(--app-bg); color: var(--app-ink); display: flex; flex-direction: column; color-scheme: light;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif; font-size: 0.74rem; line-height: 1.3; padding: 0.55rem; gap: 0.55rem;
}
.demo-bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; font-weight: 500; padding: 0.15rem 0.2rem; }
.demo-live { font-size: 0.65rem; background: var(--app-card); border-radius: 1rem; padding: 0.1rem 0.5rem; }
.demo-card { background: var(--app-card); border-radius: 0.7rem; padding: 0.65rem; display: grid; gap: 0.25rem; }
.demo-title { color: var(--app-curve); font-weight: 600; font-size: 0.85rem; }
.demo-id { font-weight: 700; font-size: 1.05rem; }
.demo-big { font-weight: 700; font-size: 0.9rem; min-height: 2.4em; font-variant-numeric: tabular-nums; }
.demo-big .ias { color: var(--app-ias); }
.demo-chart { width: 100%; height: auto; }
.demo-cap { font-size: 0.68rem; font-weight: 600; color: var(--app-ink); }
.demo-cap2 { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--app-grid); }
.demo-x { font-weight: 400; color: var(--app-muted); text-align: right; font-size: 0.62rem; }
.demo-grid line { stroke: var(--app-grid); stroke-width: 1; }
.demo-axis text { fill: var(--app-muted); font-size: 10px; }
.curve { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.curve.h { stroke: var(--app-curve); } .curve.v { stroke: var(--app-ias); }
.dot.h { fill: var(--app-curve); } .dot.v { fill: var(--app-ias); } .dot.released { fill: var(--app-red); }
.demo-release { fill: var(--app-red); font-size: 10.5px; font-weight: 700; }
.demo-foot { color: var(--app-muted); font-size: 0.7rem; min-height: 5.2em; }
.demo-foot b { color: var(--app-ias); }

/* Statistikseite (nur für Heiner) */
.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.stats div { display: grid; }
.stats b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--chart); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 0.9rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.4rem 0.8rem 0.4rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }

/* Freiwilliger Name beim Download */
.who { display: grid; gap: 0.3rem; max-width: 22rem; }
.who label { font-size: 0.9rem; color: var(--muted); }
.who input { font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 0.3rem; background: var(--paper); color: var(--ink); }
.who-hint { margin: 0; font-size: 0.9rem; color: var(--warn, #b45309); font-weight: 600; }
.who input:focus-visible { outline: 3px solid var(--chart); outline-offset: 1px; }
