/* Fahrwahl content pages: school pages, district pages, guides. Same tokens as the app. */
:root {
  --bg: #f4f5fb; --surface: #fff; --surface-2: #f0f2fa; --fg: #12142b; --muted: #5d6280; --line: #e2e5f1;
  --brand: #2f45ff; --brand-deep: #1b2bc2; --brand-ink: #0d1466; --brand-soft: #e8ebff;
  --cta: #ff4f5e; --cta-deep: #e63b4b; --save: #0f9d58; --save-soft: #e3f6ec; --bad: #d92d3a; --bad-soft: #fde8ea; --gold: #ffc21a;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(18,20,43,.06), 0 8px 24px -12px rgba(18,20,43,.18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font-body); padding-top: env(safe-area-inset-top, 0px); }
a { color: var(--brand); text-underline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; margin: 6px 0 10px; }
h2 { font-size: clamp(21px, 3vw, 27px); font-weight: 800; margin: 34px 0 12px; }
h3 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
p { margin: 0 0 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: 13.5px; } .na { color: var(--muted); font-weight: 500; font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: 700 15px var(--font-body); padding: 10px 16px; border-radius: 12px; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--brand); }
.btn-cta { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-deep); border-color: var(--cta-deep); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }

/* header + footer */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: #fff; }
.top-in { display: flex; align-items: center; gap: 22px; min-height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; }
.logo-svg { width: 34px; height: 34px; } .logo-wm { height: 19px; width: auto; aspect-ratio: 171.3 / 23.0; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 9px; }
.nav a:hover { background: var(--brand-soft); color: var(--brand); }
.top-btn { padding: 9px 14px; font-size: 14px; }
@media (max-width: 860px) { .nav { display: none; } .top-in { justify-content: space-between; } }
.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 56px; padding-block: 34px 26px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.foot-grid b { display: block; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.foot-grid a:not(.logo) { display: block; color: var(--fg); text-decoration: none; padding: 3px 0; }
.foot-grid a:not(.logo):hover { color: var(--brand); }
.foot-grid p { color: var(--muted); margin-top: 10px; max-width: 30ch; }
.foot-note { color: var(--muted); font-size: 12.5px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

.crumbs { font-size: 13.5px; color: var(--muted); margin: 18px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--brand); }

/* article */
.art-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 46px; align-items: start; }
.art-layout.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.art { min-width: 0; max-width: 740px; background: var(--surface); border-radius: 20px; padding: 6px 34px 30px; margin-top: 18px; box-shadow: var(--shadow); }
.art-side { position: sticky; top: 84px; margin-top: 30px; font-size: 14px; }
.art-side > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.art-side ol { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: t; }
.art-side li a { display: block; color: var(--fg); text-decoration: none; padding: 6px 8px; border-radius: 8px; line-height: 1.35; }
.art-side li a:hover { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 900px) { .art-layout { grid-template-columns: 1fr; gap: 0; } .art-side { display: none; } .art { padding: 2px 18px 22px; border-radius: 16px; } }
.meta { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; margin: 0 0 14px; }
.tldr { background: var(--brand-soft); border-radius: 14px; padding: 14px 16px; font-weight: 600; margin: 4px 0 8px; }
.tldr::before { content: "Kurz gesagt"; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 4px; }
html[lang="en"] .tldr::before { content: "Quick answer"; } html[lang="tr"] .tldr::before { content: "Kısaca"; } html[lang="ar"] .tldr::before { content: "باختصار"; }
html[lang="uk"] .tldr::before { content: "Коротко"; } html[lang="ru"] .tldr::before { content: "Коротко"; }
.art ul, .art ol { padding-inline-start: 22px; margin: 0 0 14px; } .art li { margin: 4px 0; }
.art blockquote { margin: 16px 0; padding: 4px 16px; border-inline-start: 4px solid var(--brand); color: var(--muted); }
.callout, .warn { border-radius: 14px; padding: 12px 16px; margin: 16px 0; }
.callout { background: var(--save-soft); } .warn { background: var(--bad-soft); }
.callout > :last-child, .warn > :last-child { margin-bottom: 0; }
.tbl { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
thead th { background: var(--surface-2); font-size: 13px; }
tbody tr:last-child > * { border-bottom: 0; }
td.num { white-space: nowrap; font-weight: 700; } td.lo { color: var(--save); } td.hi { color: var(--bad); }
details.faq { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin: 8px 0; background: var(--surface); }
details.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.faq p { margin: 0 0 12px; color: var(--muted); }
.sources { font-size: 13.5px; color: var(--muted); margin-top: 26px; } .sources ul { padding-inline-start: 18px; }
.related { display: grid; gap: 8px; margin-top: 26px; }
.related > b { font-family: var(--font-display); font-size: 20px; }
.related a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--fg); text-decoration: none; font-weight: 700; }
.related a span { display: block; font-size: 12px; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.related a:hover { border-color: var(--brand); }
.cta-box { display: flex; align-items: center; gap: 16px; justify-content: space-between; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; border-radius: 16px; padding: 18px 20px; margin: 26px 0; }
.cta-box b { font-family: var(--font-display); font-size: 19px; } .cta-box p { margin: 4px 0 0; opacity: .9; font-size: 14.5px; }
.cta-box .btn { flex: none; }
@media (max-width: 600px) { .cta-box { flex-direction: column; align-items: stretch; } }
.school-mini { display: grid; gap: 6px; background: var(--surface); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.school-mini span { font-size: 13px; color: var(--muted); }

/* school page */
.school-head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.school-head h1 { margin-bottom: 6px; } .addr { color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s-logo { display: block; max-width: 180px; max-height: 72px; width: auto; height: auto; object-fit: contain; margin-bottom: 10px; }
.s-gal { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px 0 4px; }
.s-gal img { flex: 0 0 auto; height: 200px; width: auto; max-width: 85%; object-fit: cover; border-radius: 14px; scroll-snap-align: start; background: var(--surface-2); }
@media (max-width: 760px) { .s-gal img { height: 160px; } }
.chips span { background: var(--surface-2); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.chips span.k { background: var(--brand-soft); color: var(--brand); }
.school-cta { display: grid; gap: 8px; } .school-cta small { color: var(--muted); font-size: 12.5px; text-align: center; }
@media (max-width: 760px) { .school-head { grid-template-columns: 1fr; padding: 16px; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.kpis > div { background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.kpis span { font-size: 13px; color: var(--muted); font-weight: 600; } .kpis b { font-family: var(--font-display); font-size: 26px; } .kpis small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) { .kpis { gap: 8px; } .kpis > div { padding: 10px; } .kpis b { font-size: 18px; } .kpis span, .kpis small { font-size: 11.5px; } }
.prices .med { color: var(--muted); font-weight: 500; }
.prices th:first-child { white-space: nowrap; }
.hours { columns: 2; padding-inline-start: 18px; } @media (max-width: 520px) { .hours { columns: 1; } }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mini { display: grid; gap: 2px; background: var(--surface); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow); }
.mini span { font-size: 13px; color: var(--muted); } .mini .num { color: var(--fg); font-weight: 700; }

/* lists */
.lead { font-size: 17px; max-width: 70ch; }
.list-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 16px 6px; margin-top: 18px; }
.rows { display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--surface); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow); }
.row:hover { outline: 2px solid var(--brand-soft); }
.row b { display: block; } .row span { font-size: 13.5px; color: var(--muted); }
.row > .num { font-weight: 800; font-size: 17px; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tags span { font-size: 11.5px; background: var(--surface-2); color: var(--fg); border-radius: 999px; padding: 2px 8px; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--fg); font-weight: 600; font-size: 14px; }
.az h2 a { color: var(--fg); text-decoration: none; } .az h2 small { color: var(--muted); font-size: 15px; }
.az-list { columns: 3 220px; font-size: 14.5px; } .az-list a { display: block; color: var(--fg); text-decoration: none; padding: 3px 0; break-inside: avoid; } .az-list a:hover { color: var(--brand); }
.hub .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { display: grid; gap: 4px; align-content: start; background: var(--surface); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow); }
.card span { font-size: 12px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.card b { font-family: var(--font-display); font-size: 18px; line-height: 1.25; } .card p { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.card:hover { outline: 2px solid var(--brand-soft); }
html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, system-ui, sans-serif; }
@media (max-width: 520px) { table { font-size: 13.5px; } th, td { padding: 8px 7px; } .prices .na { font-size: 11px; } .prices th:first-child { white-space: normal; } }
.rows, .row > div:first-child { min-width: 0; }
.row b { overflow-wrap: anywhere; }
.owner-note { font-size: 14px; color: var(--muted); margin-top: 24px; }
.form-msg { font-size: 14px; margin: 0; } .form-msg.err { color: var(--bad); font-weight: 600; }

/* partner page (/fuer-fahrschulen) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--surface); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); margin-top: 4px; }
.pp-hero h1 { font-size: clamp(30px, 4.4vw, 46px); }
.pp-hero .lead { color: var(--muted); }
.pp-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.pp-ctas small { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.pp-deal { background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: #fff; border-radius: 18px; padding: 22px 22px 18px; }
.pp-deal-k { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.pp-big { font-family: var(--font-display); font-size: 54px; font-weight: 800; line-height: 1.05; margin-top: 4px; }
.pp-deal-s { display: block; font-size: 14.5px; opacity: .92; }
.pp-deal ul { list-style: none; padding: 14px 0 0; margin: 14px 0 12px; display: grid; gap: 8px; border-top: 1px solid rgba(255,255,255,.25); font-size: 15px; }
.pp-deal li { position: relative; padding-left: 26px; }
.pp-deal li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.pp-deal a { color: #fff; font-weight: 700; font-size: 14.5px; }
@media (max-width: 860px) { .pp-hero { grid-template-columns: 1fr; padding: 20px 18px; gap: 18px; } .pp-big { font-size: 44px; } }
.pp-sec { margin-top: 44px; }
.pp-sec > h2 { margin-top: 0; }
.pp-narrow { max-width: 820px; }
.pp-sub { color: var(--muted); max-width: 62ch; }
.pp-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pp-steps li { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }
.pp-steps b { line-height: 1.3; }
.pp-steps p { margin: 0; color: var(--muted); font-size: 14.5px; }
.pp-n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 800 16px var(--font-display); display: grid; place-items: center; }
.pp-steps li:last-child .pp-n { background: var(--save-soft); color: var(--save); }
@media (max-width: 1000px) { .pp-steps { grid-template-columns: 1fr; gap: 8px; } .pp-steps li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px 16px; } .pp-n { grid-row: span 2; } }
.pp-bens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 900px) { .pp-bens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pp-bens { grid-template-columns: 1fr; gap: 8px; } }
.pp-ben { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.pp-ben b { display: block; margin-top: 8px; } .pp-ben p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.pp-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--save-soft); color: var(--save); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.pp-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.pp-facts li { display: grid; } .pp-facts b { font: 800 24px/1.1 var(--font-display); color: var(--brand-ink); } .pp-facts span { font-size: 13.5px; color: var(--muted); }
.pp-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 900px) { .pp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pp-rules { grid-template-columns: 1fr; gap: 8px; } }
.pp-rule { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); border-top: 3px solid var(--brand); }
.pp-rule b { display: block; font-size: 16.5px; } .pp-rule p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.pp-formgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.pp-formgrid .pf-card { margin-top: 0; }
@media (max-width: 900px) { .pp-formgrid { grid-template-columns: 1fr; } .pp-contact { order: -1; } }
.pp-contact { background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; position: sticky; top: 84px; }
.pp-contact > div:not(.pp-ava) { display: grid; gap: 1px; } .pp-contact b { font-size: 18px; }
.pp-contact-k { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.pp-ava { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: #fff; font: 800 19px var(--font-display); display: grid; place-items: center; }
.pp-contact ul { list-style: none; padding: 12px 0 0; margin: 0; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.pp-contact li { display: grid; font-weight: 600; overflow-wrap: anywhere; } .pp-contact li span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pp-contact p { margin: 0; }
@media (max-width: 900px) { .pp-contact { position: static; grid-template-columns: 52px minmax(0, 1fr); } .pp-contact ul, .pp-contact p { grid-column: 1 / -1; } }
.kl-wide span { min-width: 90px; }
.chips span.pt, .row .pt { background: var(--save-soft); color: var(--save); font-weight: 700; }
.row .pt { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin: 2px 6px 2px 0; }
.pp-cmp { background: var(--surface); } .pp-cmp tbody th { font-weight: 600; } .pp-cmp td.pp-yes { color: var(--save); font-weight: 700; }
.pp-cmp thead th:last-child { color: var(--save); }

/* partner form */
.pf-card { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); margin-top: 14px; }
@media (max-width: 600px) { .pf-card { padding: 18px 16px; border-radius: 16px; } }
.pf { display: grid; gap: 18px; }
.pf[hidden], .pf [hidden] { display: none !important; }
.pf fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pf legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 8px; }
.pf h3 { margin: 0; font-size: 17px; }
.pf-sec { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.pf .fld { display: grid; gap: 5px; align-content: start; min-width: 0; }
.pf .fld > label { font-weight: 600; font-size: 14px; }
.pf input[type=text], .pf input[type=email], .pf input[type=tel], .pf input[type=url], .pf select, .pf textarea { font: 16px var(--font-body); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; min-height: 44px; }
.pf input:focus-visible, .pf select:focus-visible, .pf textarea:focus-visible { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.pf input[aria-invalid=true]:not([type=checkbox]), .pf textarea[aria-invalid=true] { border-color: var(--bad); background: #fffafa; }
.pf .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 560px) { .pf .row2 { grid-template-columns: 1fr; } }
.pf .hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.pf .opt { color: var(--muted); font-weight: 500; }
.req { color: var(--cta); }
.fld-err { color: var(--bad); font-size: 13.5px; font-weight: 600; margin: 0; } .fld-err:empty { display: none; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg-opt { position: relative; display: block; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span { display: grid; gap: 2px; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.seg-opt small { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.35; }
.seg-opt:hover span { border-color: var(--brand); }
.seg-opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.seg-opt input:checked + span b { color: var(--brand-ink); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 480px) { .seg { grid-template-columns: 1fr; } .seg-opt span { padding: 10px 12px; } }
.kl { display: flex; flex-wrap: wrap; gap: 6px; }
.kl label { position: relative; cursor: pointer; }
.kl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kl span { display: inline-block; min-width: 44px; text-align: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 14px; }
.kl input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.kl input:focus-visible + span { outline: 3px solid var(--brand-soft); outline-offset: 1px; border-color: var(--brand); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; }
.eur { position: relative; } .eur input { padding-right: 30px !important; }
.eur::after { content: "€"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pf .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14.5px; cursor: pointer; }
.pf .chk input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.pf .chk input[aria-invalid=true] { outline: 2px solid var(--bad); outline-offset: 1px; }
.pf-chkw > .fld-err { margin: 4px 0 0 30px; } .pf-chkw > .kl + .fld-err { margin-left: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pf-actions .btn { min-width: 220px; min-height: 48px; font-size: 16px; }
.pf-actions .btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 560px) { .pf-actions .btn { width: 100%; } }
.pf-found { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; margin: 0; }
.pf-done { background: var(--save-soft); border-radius: 16px; padding: 22px; }
.pf-done > b { font-family: var(--font-display); font-size: 22px; display: block; margin-bottom: 6px; }
.pf-done:focus { outline: none; }
.pf-done[hidden] { display: none; }


.more-rows { margin-top: 12px; }
.more-rows > summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 10px 0; }
.az-more > summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 8px 0; font-size: 14px; }

/* school page v2: content left, sticky price box right, one primary action */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s2 .s-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.s-main { min-width: 0; }
.s-gal2 { display: grid; gap: 8px; border-radius: 20px; overflow: hidden; height: 360px; margin-bottom: 18px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.s-gal2 img { width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); display: block; }
.s-gal2 img:first-child { grid-row: span 2; }
.s-gal2.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.s-gal2.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; } .s-gal2.n2 img:first-child { grid-row: auto; }
.s-gal2.n3 { grid-template-columns: 2fr 1fr; }
.s-gal2.n4 { grid-template-columns: 2fr 1fr 1fr; } .s-gal2.n4 img:last-child { grid-column: span 2; }
.s-id { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.s-id h1 { margin: 2px 0 4px; font-size: clamp(26px, 4vw, 38px); }
.s-av { flex: none; width: 76px; height: 76px; border-radius: 18px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 800 26px var(--font-display); box-shadow: var(--shadow); }
.s-av.logo { background: #fff; padding: 8px; } .s-av.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.s2 .addr { display: flex; gap: 6px; align-items: flex-start; margin: 0; } .s2 .addr .ic { margin-top: 4px; }
.s-intro { margin: 16px 0 4px; font-size: 16.5px; }
.s-buy { position: sticky; top: 84px; display: grid; gap: 8px; background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.s-lbl { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.s-price { font: 800 36px/1.05 var(--font-display); letter-spacing: -0.02em; } .s-price.na2 { font-size: 26px; }
.s-cmp { color: var(--muted); font-size: 14px; font-weight: 600; } .s-cmp.lo { color: var(--save); }
.s-go { min-height: 52px; font-size: 17px; margin-top: 6px; }
.s-note { color: var(--muted); font-size: 12.5px; text-align: center; }
.s-acts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.s-acts > * { display: grid; justify-items: center; gap: 3px; background: none; border: 0; padding: 6px 2px; border-radius: 10px; color: var(--fg); font: 600 12.5px var(--font-body); text-decoration: none; cursor: pointer; }
.s-acts > *:hover { background: var(--surface-2); }
.s-acts [aria-pressed="true"] { color: var(--cta); } .s-acts [aria-pressed="true"] .ic { fill: currentColor; }
.s-more { font-size: 14px; font-weight: 600; text-align: center; margin-top: 4px; }
.s-offers { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.s-offers li { display: flex; gap: 8px; align-items: center; background: var(--surface); border-radius: 12px; padding: 10px 12px; font-weight: 600; box-shadow: var(--shadow); }
.s-offers .ic { color: var(--save); }
.s-ask { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 14.5px; } .s-ask .ic { margin-top: 3px; color: var(--brand); }
.s-noprice { background: var(--surface); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 4px; justify-items: start; } .s-noprice p { margin: 0 0 8px; }
.s-sticky, .s-acts.m { display: none; }
@media (max-width: 900px) {
  .s2 .s-top { grid-template-columns: 1fr; }
  .s-buy { display: none; }
  .s-acts.m { display: grid; margin: 4px 0 0; }
  .s-gal2 { display: flex; height: 240px; margin-left: -16px; margin-right: -16px; border-radius: 0; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .s-gal2 img { flex: 0 0 88%; scroll-snap-align: start; } .s-gal2.n1 img { flex-basis: 100%; }
  .s-av { width: 60px; height: 60px; border-radius: 14px; font-size: 21px; }
  .s-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); box-shadow: 0 -8px 24px -12px rgba(18,20,43,.25); }
  .s-sticky div { display: grid; line-height: 1.2; } .s-sticky small { color: var(--muted); font-size: 12px; } .s-sticky b { font-size: 18px; }
  .s-sticky .btn { min-height: 46px; padding: 10px 22px; }
  body:has(.s-sticky) .foot { padding-bottom: 90px; }
}

/* "Weitere Fahrschulen": Kacheln mit Foto, Logo, Preis */
.ncs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.nc { display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--fg); transition: transform .15s, box-shadow .15s; }
.nc:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(18,20,43,.06), 0 14px 30px -14px rgba(18,20,43,.3); }
.nc-ph { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--surface-2); }
.nc-none { background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); display: grid; place-items: center; font: 800 54px var(--font-display); color: rgba(47,69,255,.16); letter-spacing: .04em; }
.nc-b { display: flex; gap: 10px; align-items: center; padding: 0 14px; margin-top: -22px; }
.nc-av { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 800 17px var(--font-display); border: 3px solid var(--surface); box-shadow: var(--shadow); }
.nc-av.logo { background: #fff; padding: 4px; } .nc-av.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nc-t { display: grid; min-width: 0; padding-top: 24px; } .nc-t b { line-height: 1.25; } .nc-t span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-p { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 10px 14px 14px; border-top: 1px solid var(--line); margin-top: 10px; }
.nc-p span { font-size: 12.5px; color: var(--muted); font-weight: 600; } .nc-p b { font: 800 20px var(--font-display); }
.nc-p small { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-left: auto; } .nc-p small.lo { color: var(--save); }
@media (max-width: 640px) { .ncs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scroll-padding: 16px; scrollbar-width: none; } .nc { scroll-snap-align: start; } }
.row > div:not(.num) { flex: 1; min-width: 0; }
.row-av { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font: 800 15px var(--font-display); }
.row-av.logo { background: #fff; border: 1px solid var(--line); padding: 4px; } .row-av.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.row span.row-av { font-size: 15px; }
@media (max-width: 520px) { .row { gap: 10px; padding: 12px; align-items: flex-start; } .row > .num { align-self: center; font-size: 16px; } .row-av { width: 34px; height: 34px; border-radius: 9px; margin-top: 2px; } .row-av.logo { padding: 3px; } }
.s-credit { font-size: 12.5px; color: var(--muted); margin: -10px 0 14px; } .s-credit a { color: var(--muted); }
.s-why { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.s-why summary { cursor: pointer; font-weight: 600; text-align: center; list-style: none; } .s-why summary::-webkit-details-marker { display: none; }
.s-why p { margin: 6px 0 0; }
.owner-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 26px; }
.owner-box p { margin: 4px 0 0; color: var(--muted); font-size: 14px; } .owner-box .btn { flex: none; }
@media (max-width: 640px) { .owner-box { flex-direction: column; align-items: stretch; } }
.nc-p b.na2 { font-size: 16px; color: var(--muted); }
@media (max-width: 900px) { .s-credit { margin-top: -14px; } }
.s-chain-note { color: var(--muted); font-size: 15px; max-width: 70ch; }
.chips a.chip-link { background: var(--save-soft); color: var(--save); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; text-decoration: none; }
.s-allsites { margin-top: 12px; } .s-allsites summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.s-allsites .az { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; margin-top: 10px; font-size: 14px; }
.top-btn { white-space: nowrap; }
@media (max-width: 420px) { .top-btn { padding: 9px 13px; font-size: 14px; } .top-in { gap: 10px; } .top .logo-wm { height: 16px; } .top .logo-svg { width: 30px; height: 30px; } }
.mirror td { white-space: nowrap; } .mirror td, .mirror th { padding-left: 8px; padding-right: 8px; } .mirror tr.tot th, .mirror tr.tot td { border-top: 2px solid var(--line); font-weight: 800; }
.rev { padding: 10px 0; border-top: 1px solid var(--line); } .rev p { margin: 4px 0 0; } .stars { color: #f5a400; letter-spacing: 1px; } .rev-sum { font-size: 15px; }
.owner-box .seal-box { flex-basis: 100%; margin-top: 8px; } .seal-box summary { cursor: pointer; font-weight: 700; font-size: 14px; } .seal-box img { display: block; margin: 8px 0; } .seal-box textarea { width: 100%; font: 12px/1.4 ui-monospace, monospace; border: 1px solid var(--line); border-radius: 10px; padding: 8px; resize: none; }
.owner-box { flex-wrap: wrap; }
