/* MFU Funktrainer: flaches, modernes Design in den Farben der Steirischen Motorflugunion. Mobil zuerst. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-ext-400.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-ext-500.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-ext-600.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-ext-700.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("../fonts/inter-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("../fonts/inter-ext-800.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jbmono-500.woff2") format("woff2"); }
:root {
  --green: #007a2a; --green-2: #0a8f37; --green-3: #e7f3eb; --green-ink: #0b5a24;
  --blue: #0345bf; --blue-2: #2a63d4; --blue-3: #e8effc;
  --ink: #15191c; --ink-2: #3c444b; --muted: #69737c; --line: #e3e7ea; --line-2: #eef1f3;
  --bg: #f4f6f5; --card: #ffffff; --card-2: #fafbfb;
  --red: #c42222; --red-3: #fdecec; --amber: #b85d00; --amber-3: #fff3e2; --yellow: #e0a800;
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(16,24,20,.05), 0 4px 16px rgba(16,24,20,.04);
  --nav-h: 60px; --tab-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8ecef; --ink-2: #c3cad0; --muted: #8f9aa3; --line: #2a3137; --line-2: #222a2f;
    --bg: #0f1316; --card: #161b1f; --card-2: #1b2125; --green-3: #11291a; --blue-3: #131f36; --green-ink: #6fd896;
    --red-3: #2e1515; --amber-3: #2c1f0e; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8ecef; --ink-2: #c3cad0; --muted: #8f9aa3; --line: #2a3137; --line-2: #222a2f;
  --bg: #0f1316; --card: #161b1f; --card-2: #1b2125; --green-3: #11291a; --blue-3: #131f36; --green-ink: #6fd896;
  --red-3: #2e1515; --amber-3: #2c1f0e; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(22px, 4.5vw, 30px); font-weight: 750; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15.5px; font-weight: 650; }
p { margin: 0 0 .8em; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.ic { flex: none; vertical-align: -4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Kopfleiste ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--nav-h); display: flex; align-items: center; gap: 14px;
  padding: 0 max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--green) 0 70%, var(--blue) 70%); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
:root[data-theme="dark"] .brand img { background: #fff; border-radius: 8px; padding: 3px 6px; height: 34px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { background: #fff; border-radius: 8px; padding: 3px 6px; height: 34px; } }
.brand span { font-size: 16px; }
.brand em { font-style: normal; color: var(--green); }
.brand.school { gap: 10px; }
.brand.school img { height: 30px; width: auto; max-width: 160px; object-fit: contain; }
.brand.school b { font-size: 15px; }
.mainnav { display: none; gap: 2px; margin-left: 10px; }
.mainnav a { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 550; font-size: 14.5px; }
.mainnav a:hover { background: var(--line-2); text-decoration: none; }
.mainnav a.on { background: var(--green-3); color: var(--green-ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.iconbtn:hover { background: var(--line-2); text-decoration: none; }
.dot-badge { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red);
  color: #fff; font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13.5px; object-fit: cover; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: 46px; min-width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 12px 40px rgba(0,0,0,.14); padding: 6px; display: none; z-index: 60; }
.menu.open .menu-pop { display: block; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink);
  background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--line-2); text-decoration: none; }
.menu-pop .who { padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-pop .who b { display: block; }

/* ---------- Tableiste unten (Handy) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.tabbar a.on { color: var(--green); }
.tabbar a:hover { text-decoration: none; }
.tabbar .dot-badge { top: 6px; right: calc(50% - 22px); }
body.has-tabbar main { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }

/* ---------- Layout ---------- */
main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 16px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.grid { display: grid; gap: 16px; }
.g2, .g3, .g4 { grid-template-columns: 1fr; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card.pad0 { padding: 0; overflow: hidden; }
.card > h2:first-child, .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.section-title { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }

/* ---------- Bedienelemente ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14.5px var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: #c9d2d8; text-decoration: none; background: var(--card-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-2); }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--red); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn.lg { min-height: 50px; padding: 0 22px; font-size: 16px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
label { font-weight: 600; font-size: 13.5px; color: var(--ink-2); display: block; margin-bottom: 5px; }
.field { margin-bottom: 14px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 15px var(--font); appearance: none; -webkit-appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2369737c' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink-2); cursor: pointer; margin: 8px 0; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.seg { display: inline-flex; padding: 3px; background: var(--line-2); border-radius: 12px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button, .seg label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px; color: var(--ink-2);
  font: 600 13.5px var(--font); border: 0; background: none; cursor: pointer; white-space: nowrap; margin: 0; }
.seg a:hover { text-decoration: none; background: color-mix(in srgb, var(--card) 60%, transparent); }
.seg .on, .seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg label input { display: none; }
.seg label span { padding: 0; }
.seg .locked { opacity: .45; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.green { background: var(--green-3); color: var(--green-ink); }
.tag.blue { background: var(--blue-3); color: var(--blue); }
.tag.red { background: var(--red-3); color: var(--red); }
.tag.amber { background: var(--amber-3); color: var(--amber); }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; border: 1px solid; }
.flash.ok { background: var(--green-3); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--green-ink); }
.flash.error { background: var(--red-3); border-color: color-mix(in srgb, var(--red) 30%, transparent); color: var(--red); }
.empty { text-align: center; padding: 30px 14px; color: var(--muted); }
.empty .ic { color: var(--line); margin-bottom: 8px; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--card-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Kennzahlen ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.kpi .v { font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .v small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.kpi .ic { color: var(--green); margin-bottom: 6px; }

/* Fortschrittsbalken und Ringe */
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.ring { --p: 0; --c: var(--green); width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
.ring b { position: relative; font-size: 15px; font-variant-numeric: tabular-nums; }
.ring.lg { width: 120px; height: 120px; }
.ring.lg::before { inset: 11px; }
.ring.lg b { font-size: 30px; }
.ring.sm { width: 44px; height: 44px; }
.ring.sm::before { inset: 5px; }
.ring.sm b { font-size: 12px; }
.ampel-gruen { --c: var(--green); }
.ampel-gelb { --c: var(--yellow); }
.ampel-rot { --c: var(--red); }
.light { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.light.gruen { background: var(--green); } .light.gelb { background: var(--yellow); } .light.rot { background: var(--red); }

/* ---------- Willkommen / Hero ---------- */
.hero { position: relative; border-radius: calc(var(--r) + 4px); overflow: hidden; color: #fff; min-height: 180px; display: flex; align-items: flex-end;
  background: linear-gradient(120deg, var(--green) 0%, #05602a 55%, var(--blue) 140%); }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,20,8,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,30,12,.82) 100%); }
.hero .in { position: relative; z-index: 1; padding: 20px; width: 100%; }
.hero h1 { color: #fff; margin: 0 0 4px; }
.hero p { margin: 0; opacity: .92; }
.hero .row { margin-top: 12px; }
.hero .btn { border-color: rgba(255,255,255,.4); }

/* ---------- Empfehlungen ---------- */
.recs { display: flex; flex-direction: column; gap: 10px; }
.rec { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.rec:hover { border-color: var(--green); text-decoration: none; }
.rec .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--green-3); color: var(--green); display: grid; place-items: center; flex: none; }
.rec.p0 .ico, .rec.p1 .ico { background: var(--green); color: #fff; }
.rec b { display: block; font-size: 14.5px; }
.rec span { font-size: 13px; color: var(--muted); display: block; }
.rec .go { margin-left: auto; color: var(--muted); }

/* ---------- Katalog ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sc-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.sc-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--green) 50%, var(--line)); transform: translateY(-2px); }
.sc-card .img { position: relative; aspect-ratio: 16/8; background: linear-gradient(135deg, var(--green-3), var(--blue-3)); overflow: hidden; }
.sc-card .img img { width: 100%; height: 100%; object-fit: cover; }
.sc-card .img .num { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 8px; padding: 2px 8px; font-weight: 750; font-size: 12.5px; }
.sc-card .img .state { position: absolute; right: 12px; top: 12px; }
.sc-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sc-card h3 { margin: 0; font-size: 16px; }
.sc-card p { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stage-pips { display: flex; gap: 4px; }
.stage-pips i { flex: 1; height: 6px; border-radius: 99px; background: var(--line-2); }
.stage-pips i.ok { background: var(--green); }
.stage-pips i.cur { background: color-mix(in srgb, var(--green) 35%, var(--line-2)); }
.meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }

/* Stufenwahl */
.stagepick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stagepick a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); }
.stagepick a:hover { text-decoration: none; border-color: var(--green); }
.stagepick a.locked { opacity: .5; pointer-events: none; }
.stagepick a.ok { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: var(--green-3); }
.stagepick b { font-size: 15px; }
.stagepick span { font-size: 12.5px; color: var(--muted); }

/* ---------- Übung ---------- */
body.exercise { --ptt-h: 104px; }
:root:has(body.exercise) { scroll-padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)); scroll-padding-top: calc(var(--nav-h) + 10px); }
.bubble { scroll-margin-bottom: calc(124px + env(safe-area-inset-bottom, 0px)); }
body.exercise.exercise main { padding-bottom: calc(var(--ptt-h) + var(--safe-b) + 24px); max-width: 1320px; }
.ex-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ex-head h1 { font-size: clamp(18px, 3.6vw, 24px); margin: 0; }
.ex-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ex-side { display: flex; flex-direction: column; gap: 14px; }
details.card summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; font-size: 20px; color: var(--muted); }
details.card[open] summary::after { content: "–"; }
details.card[open] summary { margin-bottom: 10px; }
dl.angabe { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: 13.5px; }
dl.angabe dt { color: var(--muted); font-weight: 600; }
dl.angabe dd { margin: 0; }
.atisbox { margin-top: 12px; padding: 10px 12px; background: var(--blue-3); border-radius: 10px; font-size: 13px; color: var(--ink-2); }

.radio { background: #121618; color: #cfd8d3; border-radius: var(--r); padding: 14px; border: 1px solid #222a2d; }
.radio-head { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .1em; color: #87938c; font-weight: 700; }
.radio-head .on { color: #4ade80; }
.lcd { margin: 8px 0 10px; padding: 8px 12px; background: #070a08; border-radius: 9px; border: 1px solid #253029; font-family: var(--mono);
  color: #4ade80; font-size: clamp(28px, 7vw, 36px); display: flex; align-items: baseline; gap: 10px; text-shadow: 0 0 12px rgba(74,222,128,.35); }
.lcd small { font-size: 12px; color: #5f8a6f; text-shadow: none; }
.lcd .stby { margin-left: auto; font-size: 15px; color: #6b8f78; text-shadow: none; }
.knobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.knobs button, .freqform button { border: 1px solid #2c3631; background: #1c2320; color: #d6e2db; border-radius: 9px; min-height: 42px; font: 600 13px var(--font); cursor: pointer; }
.knobs button:active, .freqform button:active { background: #29332e; }
.freqform { display: flex; gap: 6px; margin-top: 8px; }
.freqform input { flex: 1; min-width: 0; min-height: 42px; background: #070a08; border: 1px solid #2c3631; color: #e6efe9; font: 15px var(--mono); }

.log:empty { min-height: 0; }
.log { display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.bubble { max-width: 92%; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); position: relative; }
.bubble .who { font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.bubble .who img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.bubble.atc { align-self: flex-start; background: var(--blue-3); border-color: color-mix(in srgb, var(--blue) 20%, transparent); border-bottom-left-radius: 4px; }
.bubble.atc .who { color: var(--blue); }
.bubble.me { align-self: flex-end; background: var(--green-3); border-color: color-mix(in srgb, var(--green) 22%, transparent); border-bottom-right-radius: 4px; }
.bubble.me .who { color: var(--green-ink); justify-content: flex-end; }
.bubble.sys { align-self: center; background: transparent; border-style: dashed; color: var(--muted); font-size: 13px; max-width: 100%; text-align: center; }
.bubble.note { align-self: center; background: var(--amber-3); border-color: transparent; color: var(--amber); font-size: 13px; max-width: 100%; }
.bubble.wait { box-shadow: 0 0 0 2px var(--green); }
.bubble .txt { font-size: 15.5px; }
.hidden-text { color: var(--muted); font-style: italic; }
.gap { display: inline-block; min-width: 46px; border-bottom: 2px solid var(--green); margin: 0 2px; height: 1em; vertical-align: -2px; }
.tools { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tools button, .tools a { border: 1px solid var(--line); background: var(--card); border-radius: 9px; min-height: 34px; padding: 0 11px; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tools button:hover { border-color: var(--green); color: var(--green); }
.tools .primary { background: var(--green); border-color: var(--green); color: #fff; }
.tools .primary:hover { color: #fff; background: var(--green-2); }
.result { margin-top: 2px; }
.score { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.pill { padding: 2px 11px; border-radius: 99px; font-size: 13px; color: #fff; background: var(--green); font-variant-numeric: tabular-nums; }
.pill.bad { background: var(--red); }
.pill.mid { background: var(--yellow); color: #3b2c00; }
.heard { font-size: 13px; color: var(--muted); margin: 6px 0; }
.segs { line-height: 2.1; }
.sg { padding: 2px 6px; border-radius: 6px; margin-right: 2px; }
.sg.ok { background: color-mix(in srgb, var(--green) 16%, transparent); }
.sg.falsch { background: var(--red-3); color: var(--red); text-decoration: line-through; }
.sg.fehlt { background: var(--line-2); color: var(--muted); border: 1px dashed var(--muted); }
.sg.reihenfolge { background: var(--amber-3); color: var(--amber); }
.errs { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.errs li { padding: 3px 0 3px 22px; position: relative; }
.errs li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 9px; height: 9px; border-radius: 50%; }
.errs li.kritisch::before { background: var(--red); }
.errs li.mittel::before { background: #f59e0b; }
.errs li.gering::before { background: #9ca3af; }
.errs li.hinweis::before { background: #cbd5e1; }
.summary { padding: 18px; border-radius: 14px; background: var(--green-3); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); }
.summary.bad { background: var(--amber-3); border-color: transparent; }
.summary h3 { margin: 0 0 6px; font-size: 18px; }
.startbox { text-align: center; padding: 26px 10px; }
.startbox .voices { display: flex; gap: 12px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.voicepick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; width: 132px; background: var(--card); }
.voicepick img, .voicepick .ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--line-2); }
.voicepick.on { border-color: var(--green); background: var(--green-3); }
.voicepick b { font-size: 14px; }

.ptt-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + var(--safe-b));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  background: color-mix(in srgb, var(--card) 95%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.ptt-hint { font-size: 13.5px; color: var(--ink-2); text-align: right; font-weight: 550; line-height: 1.3; }
.ptt { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; font: 800 13px var(--font); letter-spacing: .1em; touch-action: none; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; box-shadow: 0 6px 18px color-mix(in srgb, var(--green) 40%, transparent); transition: transform .08s, background .15s; }
.ptt .dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: .55; }
.ptt:disabled { background: #b9c3bd; box-shadow: none; cursor: not-allowed; }
.ptt.rec { background: var(--red); transform: scale(1.08); box-shadow: 0 0 0 10px color-mix(in srgb, var(--red) 18%, transparent); }
.ptt.rec .dot { opacity: 1; animation: blink 1s infinite; }
.ptt.busy { background: var(--blue); }
.ptt.busy .dot { animation: spin 1s linear infinite; border-radius: 2px; }
@keyframes blink { 50% { opacity: .2; } }
@keyframes spin { to { transform: rotate(360deg); } }
.meter-wrap { display: flex; flex-direction: column; gap: 6px; }
.meter { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; max-width: 240px; }
.meter i { display: block; height: 100%; width: 0; background: var(--green); transition: width .06s; }
.ptt-side { display: flex; gap: 6px; }

/* Kniebrett (Notizen) */
.kneeboard textarea { font: 15px/1.5 var(--mono); min-height: 140px; background: repeating-linear-gradient(var(--card), var(--card) 26px, var(--line-2) 27px); }
.symbols { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.symbols button { border: 1px solid var(--line); background: var(--card); border-radius: 7px; min-width: 34px; height: 30px; font: 13px var(--mono); cursor: pointer; color: var(--ink); }

/* ---------- Statistik ---------- */
.chart-box { position: relative; height: 240px; }
.chart-box.tall { height: 300px; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.heat i { width: 12px; height: 12px; border-radius: 3px; background: var(--line-2); }
.heat i.l1 { background: color-mix(in srgb, var(--green) 25%, var(--line-2)); }
.heat i.l2 { background: color-mix(in srgb, var(--green) 50%, var(--line-2)); }
.heat i.l3 { background: color-mix(in srgb, var(--green) 75%, var(--line-2)); }
.heat i.l4 { background: var(--green); }
.matrix { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(4, 46px) 56px; gap: 4px; align-items: center; font-size: 13px; }
.matrix .h { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; }
.matrix .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.matrix .c { height: 30px; border-radius: 7px; background: var(--line-2); display: grid; place-items: center; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.matrix .c.ok { background: var(--green); color: #fff; }
.matrix .c.try { background: color-mix(in srgb, var(--yellow) 35%, var(--line-2)); color: var(--ink); }
.errbars { display: flex; flex-direction: column; gap: 10px; }
.errbar { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; align-items: center; font-size: 13.5px; }
.errbar .bar > i { background: var(--red); opacity: .8; }
.errbar .trend { font-size: 12px; font-weight: 700; text-align: right; }
.trend.up { color: var(--red); } .trend.down { color: var(--green); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.badge .ico { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: var(--line-2); color: var(--muted); }
.badge.ok .ico { background: linear-gradient(135deg, var(--green), var(--blue)); color: #fff; }
.badge b { display: block; font-size: 12.5px; line-height: 1.25; }
.badge span { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.badge:not(.ok) { opacity: .6; }
.spark { width: 90px; height: 26px; }

/* Klassenübersicht */
.stu { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.stu:hover { text-decoration: none; }
.stu b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu small { color: var(--muted); }
.flags { display: flex; gap: 4px; flex-wrap: wrap; }
.heatmap td.h { text-align: center; font-weight: 650; font-size: 12.5px; border-radius: 6px; }

/* Termine (Doodle) */
.poll { overflow-x: auto; }
.poll table { min-width: 0; }
.poll th.opt { text-align: center; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--ink); min-width: 92px; }
.poll th.opt b { display: block; font-size: 15px; }
.poll td.v { text-align: center; }
.v-ja { color: var(--green); font-weight: 800; } .v-vielleicht { color: var(--yellow); font-weight: 800; } .v-nein { color: var(--red); }
.poll tr.me td { background: var(--green-3); }
.vote { display: inline-flex; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.vote label { margin: 0; cursor: pointer; }
.vote input { display: none; }
.vote span { display: block; padding: 6px 9px; font-size: 13px; font-weight: 700; color: var(--muted); }
.vote input:checked + span.ja { background: var(--green); color: #fff; }
.vote input:checked + span.vielleicht { background: var(--yellow); color: #3b2c00; }
.vote input:checked + span.nein { background: var(--red); color: #fff; }
.best td { box-shadow: inset 0 2px 0 var(--green); }
.lesson { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.lesson:hover { text-decoration: none; border-color: var(--green); }
.lesson .date { width: 58px; text-align: center; flex: none; border-radius: 10px; background: var(--green-3); padding: 6px 0; color: var(--green-ink); }
.lesson .date b { display: block; font-size: 20px; line-height: 1.1; }
.lesson .date span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.optrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; }
.optrow input { min-width: 0; }
@media (max-width: 420px) { .optrow { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .optrow > .btn:not(.ghost) { grid-column: 1 / -1; } }
input[type=date], input[type=time] { min-width: 0; max-width: 100%; }

/* Hilfe und Rechtstexte */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose table { margin: 10px 0 16px; }
.helpgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.helpitem { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.helpitem:hover { text-decoration: none; border-color: var(--green); }
.helpitem .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-3); color: var(--blue); display: grid; place-items: center; flex: none; }
.helpitem span { display: block; font-size: 13px; color: var(--muted); }
.kbd { font: 12px var(--mono); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--card); }
.callout { padding: 12px 14px; border-radius: 12px; background: var(--blue-3); color: var(--ink-2); font-size: 14px; margin: 12px 0; }
.callout.warn { background: var(--amber-3); }

/* Fußzeile */
.foot { max-width: 1240px; margin: 0 auto; padding: 20px 16px 28px; color: var(--muted); font-size: 12.5px; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
body.has-tabbar .foot { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }

/* Feedback-Knopf und Dialog */
.fb-fab { position: fixed; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); z-index: 39; height: 44px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 600 13.5px var(--font); display: flex; align-items: center; gap: 7px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12); cursor: pointer; }
body.exercise .fb-fab { display: none; }
@media (max-width: 639px) { .fb-fab { width: 44px; padding: 0; justify-content: center; } .fb-fab span { display: none; } }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 24px)); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,16,12,.45); backdrop-filter: blur(2px); }
dialog .dlg { padding: 20px; }
dialog .dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
dialog .dlg-head h2 { margin: 0; }

/* Auth-Seiten */
.auth { min-height: 100svh; display: grid; grid-template-columns: 1fr; }
.auth .pic { display: none; position: relative; background: linear-gradient(140deg, var(--green), #064d22 60%, var(--blue)); }
.auth .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,30,12,.75)); }
.auth .pic .quote { position: absolute; left: 36px; right: 36px; bottom: 36px; color: #fff; z-index: 1; }
.auth .pic .quote b { font-size: 26px; display: block; line-height: 1.2; margin-bottom: 6px; }
.auth .form { display: flex; flex-direction: column; justify-content: center; padding: 28px 20px calc(28px + var(--safe-b)); max-width: 460px; width: 100%; margin: 0 auto; }
.auth .form .brand { margin-bottom: 26px; }
.auth h1 { font-size: 26px; }

/* Tour */
.tour { position: fixed; inset: auto 12px calc(var(--tab-h) + var(--safe-b) + 12px) 12px; z-index: 70; background: var(--ink); color: var(--card); border-radius: 16px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-width: 420px; }
.tour b { display: block; margin-bottom: 4px; font-size: 15.5px; }
.tour .row { margin-top: 10px; }
.tour .btn { min-height: 36px; }

/* Druck (Nachweis, Lehrermappe) */
@media print {
  .topbar, .tabbar, .fb-fab, .foot, .noprint { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .pagebreak { page-break-before: always; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  main { padding: 22px 22px 48px; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stagepick { grid-template-columns: repeat(4, 1fr); }
  .helpgrid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 220px; }
  .hero .in { padding: 26px 28px; }
}
@media (min-width: 900px) {
  .hide-wide { display: none !important; }
  .mainnav { display: flex; }
  .tabbar { display: none; }
  body.has-tabbar main { padding-bottom: 48px; }
  body.has-tabbar .foot { padding-bottom: 28px; }
  .fb-fab { bottom: 18px; }
  .tour { bottom: 18px; left: auto; right: 18px; }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr) 360px; }
  .g-main-l { grid-template-columns: 360px minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ex-grid { grid-template-columns: 330px minmax(0, 1fr); align-items: start; }
  .ex-side { position: sticky; top: calc(var(--nav-h) + 14px); max-height: calc(100vh - var(--nav-h) - var(--ptt-h) - 30px); overflow: auto; }
  .auth { grid-template-columns: 1.1fr 1fr; }
  .auth .pic { display: block; }
  .helpgrid { grid-template-columns: repeat(3, 1fr); }
  .bubble { max-width: 80%; }
}
@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Handy klein */
@media (max-width: 420px) {
  .brand span { display: none; }
  .ptt-bar { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .ptt { width: 78px; height: 78px; }
  .ptt-hint { font-size: 12.5px; }
  dl.angabe { grid-template-columns: 1fr; gap: 0 0; }
  dl.angabe dt { margin-top: 6px; }
  .errbar { grid-template-columns: 96px 1fr 52px; }
  .matrix { grid-template-columns: minmax(96px, 1fr) repeat(4, 36px) 44px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Öffentliche Seiten (Startseite, Flugschulen) ---------- */
body.landing main { max-width: none; padding: 0; }
.lp-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px; max-width: 1240px; margin: 0 auto; position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.lp-chip { background: rgba(255,255,255,.95); border-radius: 12px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 10px; color: #15191c; }
.lp-chip:hover { text-decoration: none; }
.lp-chip img { height: 30px; width: auto; }
.lp-chip span { display: inline !important; color: #15191c; }
.lp-nav { display: none; gap: 4px; }
.lp-nav a { color: #fff; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.lp-nav a:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.lp-hero { position: relative; min-height: min(86svh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: linear-gradient(130deg, #0b5a24, #03307f); }
.lp-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,22,10,.78) 0%, rgba(0,22,10,.45) 45%, rgba(0,0,0,.05) 75%), linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, rgba(0,20,8,.6)); }
.lp-hero .in { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 96px 20px 36px; width: 100%; }
.lp-hero h1 { font-size: clamp(32px, 6vw, 60px); line-height: 1.04; color: #fff; max-width: 780px; margin: 8px 0 14px; letter-spacing: -.02em; }
.lp-hero p.lead { font-size: clamp(16px, 2.1vw, 20px); max-width: 640px; opacity: .96; line-height: 1.5; }
.lp-hero .eyebrow { color: #bfe8cd; }
.lp-ghost { background: rgba(255,255,255,.14) !important; color: #fff !important; border-color: rgba(255,255,255,.45) !important; }
.lp-stats { display: flex; gap: 14px 30px; flex-wrap: wrap; margin-top: 26px; }
.lp-stats b { display: block; font-size: clamp(24px, 4vw, 34px); color: #fff; line-height: 1.1; }
.lp-stats span { font-size: 13.5px; opacity: .9; }
.lp-trust { background: var(--card); border-bottom: 1px solid var(--line); }
.lp-trust .in { max-width: 1240px; margin: 0 auto; padding: 18px 20px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.lp-trust .t { display: flex; gap: 12px; align-items: flex-start; }
.lp-trust .t .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--green-3); color: var(--green); display: grid; place-items: center; flex: none; }
.lp-trust .t b { display: block; font-size: 14.5px; }
.lp-trust .t span { font-size: 13px; color: var(--muted); }
.lp-sec { max-width: 1240px; margin: 0 auto; padding: 52px 20px; }
.lp-sec h2 { font-size: clamp(24px, 3.6vw, 36px); margin-bottom: 8px; letter-spacing: -.015em; }
.lp-sec .sub { color: var(--muted); font-size: 16.5px; max-width: 720px; }
.lp-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 22px; }
.feat .card { display: flex; gap: 14px; align-items: flex-start; }
.feat .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-3); color: var(--green); display: grid; place-items: center; flex: none; }
.feat h3 { margin: 2px 0 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }
.prod { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 22px; }
.prod .card h3 { font-size: 22px; margin: 0; }
.split { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: center; }
.split img { border-radius: 20px; width: 100%; aspect-ratio: 16/10; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.split ul { padding-left: 1.2em; margin: 12px 0 18px; }
.split li { margin: 7px 0; }
.quote-card { border-left: 4px solid var(--green); background: var(--green-3); padding: 16px 18px; border-radius: 0 14px 14px 0; font-size: 16px; margin: 16px 0; }
.fleet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.fleet div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.fleet b { font-family: var(--mono); font-size: 16px; color: var(--green-ink); display: block; }
.fleet span { font-size: 12.5px; color: var(--muted); }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 22px; }
.steps .card { position: relative; padding-top: 44px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; left: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.cta-band { background: linear-gradient(120deg, var(--green), #05602a 60%, var(--blue)); color: #fff; border-radius: 22px; padding: 30px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 4px 0 0; opacity: .92; }
@media (min-width: 760px) {
  .lp-nav { display: flex; }
  .lp-trust .in { grid-template-columns: repeat(4, 1fr); }
  .feat { grid-template-columns: repeat(2, 1fr); }
  .prod { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 44px; }
  .split.rev > :first-child { order: 2; }
  .fleet { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cta-band { padding: 36px 40px; }
}
@media (min-width: 1080px) { .feat { grid-template-columns: repeat(3, 1fr); } }

/* Galerie der Bildschirmfotos (Flugschulseite) */
.mock-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
.mock { text-align: left; border: 0; background: none; padding: 0; cursor: zoom-in; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.mock .frame { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(10,20,40,.12); background: var(--card); aspect-ratio: 16/10; }
.mock .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.mock:hover .frame img { transform: scale(1.02); }
.mock.handy .frame { position: relative; background: linear-gradient(135deg, #1d2b53, #f26b21); }
.mock.handy .frame img { position: absolute; top: 6%; bottom: 6%; left: 50%; transform: translateX(-50%); width: auto; height: 88%; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.35); object-fit: contain; }
.mock.handy:hover .frame img { transform: translateX(-50%) scale(1.02); }
.mock b { font-size: 15px; }
.mock > span:not(.frame) { font-size: 13px; color: var(--muted); }
.mockdlg { width: min(1280px, 96vw); max-height: 94vh; background: #0d1117; padding: 14px 14px 46px; }
.mockdlg img { display: block; max-width: 100%; max-height: calc(94vh - 80px); margin: 0 auto; border-radius: 10px; }
.mockdlg.phone img { max-height: calc(94vh - 80px); }
.mockdlg .cap { color: #dfe6ee; font-size: 14px; position: absolute; left: 18px; right: 18px; bottom: 14px; }
.mockdlg .close { position: absolute; right: 8px; top: 8px; color: #fff; background: rgba(0,0,0,.4); }
.mockdlg .nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; background: rgba(0,0,0,.45); font-size: 26px; }
.mockdlg .prev { left: 10px; } .mockdlg .next { right: 10px; }
@media (min-width: 700px) { .mock-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .mock-grid { grid-template-columns: repeat(3, 1fr); } }

/* Ergebnis eines Funkspruchs (result.js, _result.html) */
.rs-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.rs-pill { font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-pill.ok, .rs-pill.gut { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green-ink); }
.rs-pill.fast { background: var(--amber-3); color: var(--amber); }
.rs-pill.nochmal { background: var(--red-3); color: var(--red); }
.rs-who { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.rs-sent { font-size: 17px; line-height: 2.35; }
.rs-ok { border-bottom: 2px solid color-mix(in srgb, var(--green) 55%, transparent); padding: 0 1px; }
.rs-x, .rs-m, .rs-o { position: relative; border-radius: 6px; padding: 1px 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rs-x { background: var(--red-3); color: var(--red); font-weight: 600; }
.rs-m { border: 1.5px dashed var(--muted); color: var(--muted); }
.rs-o { background: var(--amber-3); color: var(--amber); }
.rs-x small, .rs-m small, .rs-o small { position: absolute; left: 0; top: -17px; font-size: 11px; line-height: 1; white-space: nowrap; font-weight: 600; letter-spacing: .01em; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.rs-tip { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.rs-tip.crit { color: var(--red); }
.rs-ic { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 1px; background: var(--line-2); color: var(--muted); }
.rs-tip.crit .rs-ic { background: var(--red); color: #fff; }
.rs-heard { font-size: 12px; color: var(--muted); margin-top: 8px; }
.rs-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.rs-tools button { border: 1px solid var(--line); background: var(--card); border-radius: 9px; min-height: 36px; padding: 0 12px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.rs-tools button:hover { border-color: var(--green); color: var(--green); }
.rs-tools button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.rs-tools button.primary:hover { background: var(--green-2); color: #fff; }
.rs-tools .push { margin-left: auto; }
.rs-tools .ghost-link { border-color: transparent !important; background: none !important; color: var(--muted) !important; }
.bubble.me .rs-head { margin-top: 0; }
.microw { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 11.5px; letter-spacing: .1em; color: #87938c; font-weight: 700; }
.microw select { flex: 1; min-width: 0; min-height: 38px; background-color: #070a08; border: 1px solid #2c3631; color: #d6e2db; font: 13px var(--font); letter-spacing: 0; }

/* Schalter „Automatischer Ablauf“ in der Sprechtasten-Leiste */
.autotgl { gap: 7px; }
.autotgl .sw { position: relative; width: 26px; height: 15px; border-radius: 99px; background: var(--line); transition: background .15s; flex: none; }
.autotgl .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.autotgl.on .sw { background: var(--green); }
.autotgl.on .sw::after { transform: translateX(11px); }
.rs-tools .push.counting { position: relative; overflow: hidden; }
.rs-tools .push.counting::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.75); animation: autobar var(--auto-ms, 2200ms) linear forwards; }
@keyframes autobar { from { width: 0 } to { width: 100% } }
