/* K-068 Fahrschule Spurhalt. Swiss road-sign system: signal blue plates with a white inner rule, white plates with a
   thin blue rule, white arrows, Hind 400/600/700 (self-hosted). The start page is a sign on two posts against a pale sky. */
@font-face { font-family: "Hind"; src: url("../fonts/hind-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hind"; src: url("../fonts/hind-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hind"; src: url("../fonts/hind-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #0d5196; --blue-2: #0a4580; --white: #fff; --rule: rgba(255, 255, 255, .5); --soft: rgba(255, 255, 255, .8);
  --sky-0: #e6ecf0; --sky: #eef2f4; --sky-2: #f7f8f6; --ink: #13263b; --ink-soft: #536274; --line: #cdd5dc; --line-2: #e0e6eb;
  --post: #a9b0b6; --accent: var(--blue); --paper: var(--sky-2); --mute: #536274; --ok: #2b7a4b; --bad: #b3261e;
  --sans: "Hind", system-ui, sans-serif; --max: 1180px; --pad: 32px; --ease: cubic-bezier(.3, .7, .2, 1);
}
html { scroll-padding-top: 96px; touch-action: manipulation; }
body { font: 400 17px/1.5 var(--sans); color: var(--ink); background: var(--sky-2); overflow-x: clip; }
a { text-decoration: none; }
.wrap.narrow { max-width: calc(880px + 2 * var(--pad)); }
.small { font-size: 15px; color: var(--ink-soft); }
.nw { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.toast { pointer-events: none; background: var(--ink); font-size: 16px; }
@media (min-width: 1800px) { :root { --max: 1300px; } }
.ar { display: block; flex: none; width: 30px; height: 18px; }

/* ---------------------------------------------------------------- header */
.hd { position: sticky; top: 0; z-index: 20; background: var(--sky-0); transition: box-shadow .3s; }
.hd.sc { box-shadow: 0 1px 0 var(--line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.lg { display: flex; align-items: center; min-height: 44px; gap: 12px; font-size: 21px; line-height: 1; color: var(--ink); }
.lg .lplate { flex: none; }
.lg .nm { padding-top: 4px; white-space: nowrap; } .lg .nm b { font-weight: 700; } .lg .nm span { color: var(--ink-soft); }
.hd .nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-weight: 600; font-size: 16px; }
.hd .nav a { display: flex; align-items: center; min-height: 44px; padding-top: 3px; }
.hd .nav a[aria-current] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.tel { display: flex; align-items: center; min-height: 44px; padding: 3px 0 0 24px; border-left: 1.5px solid var(--line); font-weight: 600; color: var(--blue); white-space: nowrap; }
@media (hover: hover) { .hd .nav a:hover, .tel:hover { color: var(--blue); } }
@media (max-width: 1239px) { .tel { display: none; } }

/* ---------------------------------------------------------------- the sign (start page) */
.hero { position: relative; overflow: clip; background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky) 45%, var(--sky-2) 100%); padding: 14px 0 92px; }
.stage { position: relative; }
.posts { position: absolute; top: 40%; bottom: -92px; left: var(--pad); right: var(--pad); pointer-events: none; z-index: 0; }
.posts i { position: absolute; top: 0; bottom: 0; width: 16px; background: linear-gradient(90deg, #8d959c, #c9cfd4 40%, #9aa2a9 75%, #848b92); }
.posts i:nth-child(1) { left: calc(24% - 8px); } .posts i:nth-child(2) { right: calc(24% - 8px); }
.clamp { position: absolute; z-index: 2; width: 46px; height: 10px; border-radius: 3px; background: #b7bec4; box-shadow: 0 1px 0 #8b939a; }
.clamp.t { top: -4px; } .clamp.b { bottom: -4px; }
.clamp.l { left: calc(24% - 23px); } .clamp.r { right: calc(24% - 23px); }

.sign { position: relative; z-index: 1; background: var(--blue); color: var(--white); border-radius: 20px; padding: 30px 34px 26px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 18px 40px -26px rgba(10, 40, 80, .55); }
.sign::before { content: ""; position: absolute; inset: 9px; border: 2.5px solid var(--white); border-radius: 13px; pointer-events: none; }
.hero .sign { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "title title" "rows side" "res res"; column-gap: 34px; }
.title { grid-area: title; display: flex; align-items: center; gap: 18px; padding: 2px 0 18px; border-bottom: 2.5px solid var(--white); }
.title .lplate { flex: none; }
.title h1 { font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.01em; padding-top: 6px; }
.title h1 span { font-weight: 400; }
.title p { margin-left: auto; max-width: 30ch; text-align: right; color: var(--soft); font-size: 16px; line-height: 1.3; }
.title p a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }

.rows { grid-area: rows; position: relative; padding-left: 30px; }
.rows .mk { position: absolute; left: 0; top: 0; }
.row { display: grid; grid-template-columns: 1fr auto 168px 40px; align-items: center; gap: 18px; width: 100%; min-height: 58px; padding: 4px 6px 0 0;
  border: 0; border-bottom: 1.5px solid var(--rule); background: none; color: var(--white); text-align: left; cursor: pointer; }
.rows li:last-child .row { border-bottom: 0; }
.row .n { font-weight: 600; font-size: 24px; line-height: 1.1; }
.row .i { color: var(--soft); font-size: 15px; text-align: right; }
.row .d { font-weight: 600; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .a { width: 36px; height: 22px; transition: transform .55s var(--ease), opacity .4s; transform-origin: 50% 50%; }
@media (hover: hover) { .row:hover .n { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; } }
.row:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.row.past .n, .row.past .i, .row.past .d { opacity: .55; }
.row.past .a { transform: rotate(-90deg); opacity: .55; }
.marker { display: block; width: 18px; height: 22px; transition: transform .55s var(--ease); }

.side { grid-area: side; display: flex; flex-direction: column; gap: 14px; padding: 18px 0 8px; min-height: 0; }
.fields { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.fields .wide { grid-column: 1 / -1; }
.pic { position: relative; border: 2.5px solid var(--white); border-radius: 12px; overflow: hidden; background: var(--blue-2); }
.side .pic { flex: 1 1 0; min-height: 0; }
.side .pic img, .zusatz .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 70%; }
.side .pic figcaption, .zusatz figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; font-size: 14px; line-height: 1.25; color: var(--white); background: linear-gradient(transparent, rgba(5, 30, 60, .72)); }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 15px; color: var(--soft); }
.sign .field select { width: 100%; height: 48px; min-height: 48px; padding: 6px 38px 2px 14px; border: 2px solid var(--white); border-radius: 8px; color: var(--white); font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat right 13px center; }
.sign .field select option { color: var(--ink); }
.sign .field select:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.res { grid-area: res; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 28px; margin-top: 10px; padding-top: 16px; border-top: 2.5px solid var(--white); }
.res .k { font-size: 18px; color: var(--soft); }
.res .v { font-weight: 700; font-size: 38px; line-height: 1.05; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.res .note { grid-column: 1; font-size: 14.5px; color: var(--soft); max-width: 78ch; }
.res .go { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 4px 22px 0; border-radius: 8px; background: var(--white); color: var(--blue); font-weight: 700; font-size: 18px; white-space: nowrap; }
.res .go .ar { width: 26px; height: 16px; margin-top: -3px; }

.under { position: relative; z-index: 1; width: 46%; margin: 30px auto 0; text-align: center; font-size: 16px; color: var(--ink-soft); }
.under p + p { margin-top: 6px; }
.under b { font-weight: 600; color: var(--ink); }
.zusatz { display: none; }

@media (max-width: 1100px) {
  .hero .sign { grid-template-columns: minmax(0, 1fr) 280px; }
  .title p { min-width: 0; font-size: 15px; }
  .row { grid-template-columns: 1fr 150px 36px; } .row .i { display: none; }
}

/* ---------------------------------------------------------------- sections */
.sec { padding: clamp(64px, 8vw, 112px) 0; background: var(--white); }
.sec.pale { background: var(--sky-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.txt > p + p, .txt > p + ul, .txt > ul + p, .txt > div + p, .txt > p + div { margin-top: 16px; }
.head { max-width: 780px; margin-bottom: 40px; }
.lead { font-size: 20px; line-height: 1.5; }
.txt .lead { margin-top: 0; }
.bp { position: relative; display: inline-flex; align-items: center; gap: 18px; margin-bottom: 26px; padding: 15px 22px 11px 24px; border-radius: 11px; background: var(--blue); color: var(--white); }
.bp::before { content: ""; position: absolute; inset: 5px; border: 2px solid var(--white); border-radius: 7px; pointer-events: none; }
.bp .h2 { font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.005em; }
.bp .ar { width: 30px; height: 18px; margin-top: -4px; }
.bp.sm { margin-bottom: 18px; padding: 12px 18px 8px 20px; } .bp.sm .h2 { font-size: 26px; }
.h3 { font-weight: 700; font-size: 24px; line-height: 1.15; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 5px 22px 1px; border: 2px solid var(--blue); border-radius: 8px; background: var(--blue); color: var(--white); font-weight: 700; font-size: 17px; cursor: pointer; white-space: nowrap; }
.btn .ar { width: 24px; height: 15px; margin-top: -3px; }
.btn.ghost { background: var(--white); color: var(--blue); }
@media (hover: hover) { .btn:hover { background: var(--blue-2); border-color: var(--blue-2); } .btn.ghost:hover { background: var(--sky); color: var(--blue); border-color: var(--blue); } }
.txt .btn { margin-top: 10px; }

/* white plate with a thin blue rule */
.wplate { position: relative; background: var(--white); border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2), 0 14px 30px -24px rgba(10, 40, 80, .45); }
.wplate::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--blue); border-radius: 9px; pointer-events: none; }
.plist.wplate { padding: 10px 28px; margin-top: 24px; }
.plist li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0 10px; border-bottom: 1.5px solid var(--line-2); }
.plist li:last-child { border-bottom: 0; }
.plist b { display: block; font-weight: 600; font-size: 18px; line-height: 1.25; }
.plist small { display: block; font-size: 15px; color: var(--ink-soft); line-height: 1.35; }
.plist em { font-style: normal; font-weight: 700; font-size: 19px; color: var(--blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.txt .small { margin-top: 14px; }

/* photos in sign frames */
.frame { position: relative; margin: 0; padding: 8px; border-radius: 15px; background: var(--blue); box-shadow: 0 18px 40px -28px rgba(10, 40, 80, .6); }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 2.5px solid var(--white); border-radius: 9px; background: var(--blue-2); }
.frame[style] img { height: 100%; aspect-ratio: auto; }
.frame.tall img { aspect-ratio: 3 / 2; }
.frame.portrait img { aspect-ratio: 3 / 4; object-position: 50% 30%; }
.frame.wide img { aspect-ratio: 2 / 1; object-position: 50% 62%; }
.frame figcaption { padding: 10px 8px 3px; color: var(--white); font-size: 15px; line-height: 1.3; }

/* Kurse on the start page */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { display: flex; flex-direction: column; padding: 14px; }
.card .frame { padding: 0; background: none; box-shadow: none; }
.card .frame img { border: 0; border-radius: 8px 8px 4px 4px; }
.card .cb { display: flex; flex-direction: column; flex: 1; padding: 18px 14px 8px; }
.card h3 { font-weight: 700; font-size: 24px; line-height: 1.15; }
.meta { color: var(--ink-soft); font-size: 16px; margin-top: 2px; }
.nx { margin-top: 18px; font-weight: 600; }
.drows { margin: 6px 0 14px; }
.drows li { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 50px; padding-top: 3px; border-bottom: 1.5px solid var(--line-2); }
.drows li > b { flex: 1 1 auto; }
.drows li:first-child { border-top: 1.5px solid var(--line-2); }
.drows b { font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.seat { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.seat::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); flex: none; margin-top: -2px; }
.seat.few::before { background: #d08a12; } .seat.full::before { background: var(--post); }
.more { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: auto; font-weight: 700; color: var(--blue); }
.more .ar { width: 24px; height: 15px; margin-top: -3px; }
@media (hover: hover) { .more:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* Motorrad */
.bsign { position: relative; margin-top: 24px; padding: 20px 28px 20px; border-radius: 15px; background: var(--blue); color: var(--white); }
.bsign::before { content: ""; position: absolute; inset: 7px; border: 2px solid var(--white); border-radius: 10px; pointer-events: none; }
.mrows li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; padding: 11px 0 8px; border-bottom: 1.5px solid var(--rule); }
.mrows li:last-child { border-bottom: 0; }
.mrows b { font-weight: 600; font-size: 20px; }
.mrows span { color: var(--soft); font-size: 16px; }
.season { margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--white); font-size: 16px; line-height: 1.4; }
.season b { font-weight: 600; }

/* Fahrlehrerin */
.who b { display: block; font-weight: 700; font-size: 26px; line-height: 1.2; }
.who span { display: block; color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.team li { padding: 18px 22px 16px; }
.team b { display: block; font-weight: 600; font-size: 19px; }
.team span { display: block; font-size: 15px; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
#fahrlehrerin .two { grid-template-columns: 5fr 7fr; }

/* Kontakt block */
.kbox { position: relative; }
.kplate { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); width: 410px; padding: 28px 30px 24px; }
.addr { font-size: 18px; line-height: 1.45; }
.addr b { font-weight: 600; }
.cp { margin: 10px 0 4px; }
.cp li { display: flex; align-items: center; gap: 12px; }
.cp li > span { min-width: 64px; font-size: 15px; color: var(--ink-soft); }
.copy { font-weight: 600; color: var(--blue); text-decoration-color: rgba(13, 81, 150, .35); font-size: 17px; }
.kplate .btn { margin-top: 12px; }
.kplate .st { margin-top: 4px; }

/* ---------------------------------------------------------------- page heads (sub-pages): a smaller sign on posts */
.phead { position: relative; overflow: clip; padding: 18px 0 76px; background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky) 50%, var(--sky-2) 100%); }
.phead .stage { max-width: calc(920px + 2 * var(--pad)); }
.phead .posts { bottom: -76px; }
.psign { padding: 26px 32px 18px; }
.psign .title { border-bottom: 2.5px solid var(--white); }
.psign .title h1 { font-size: 38px; }
.prows li { border-bottom: 1.5px solid var(--rule); }
.prows li:last-child { border-bottom: 0; }
.prows a { display: grid; grid-template-columns: 1fr auto 36px; align-items: center; gap: 18px; min-height: 58px; padding-top: 4px; color: var(--white); }
.prows .n { font-weight: 600; font-size: 22px; }
.prows .i { color: var(--soft); font-size: 16px; text-align: right; }
.prows .ar { width: 32px; height: 20px; transition: transform .45s var(--ease); }
@media (hover: hover) { .prows a:hover .n { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; } .prows a:hover .ar { transform: translateX(5px); } }
.kh .prows li { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; min-height: 54px; padding-top: 3px; }
.kh .prows .copy { color: var(--white); text-decoration-color: rgba(255, 255, 255, .45); font-size: 20px; }
.kh .prows .i { text-align: left; }
.kh .prows .stl { display: block; padding: 6px 0 2px; }
.kh .st { font-size: 16px; color: var(--white); }
.kh .st i { background: #7fd39d; }
.lh .psign { padding-bottom: 22px; } .lh .psign .title { border-bottom: 0; padding-bottom: 0; }

/* ---------------------------------------------------------------- Kurse und Preise */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pcol { display: grid; gap: 24px; }
.pcard { padding: 26px 30px 18px; }
.pcard h3 { font-weight: 700; font-size: 22px; color: var(--blue); padding-bottom: 6px; border-bottom: 2px solid var(--blue); }
.pcard .small { margin: 6px 0 6px; }
.course { display: grid; grid-template-columns: 7fr 5fr; grid-template-areas: "t p" "l l"; gap: 36px clamp(36px, 5vw, 72px); align-items: center; }
.ctxt { grid-area: t; } .course .frame { grid-area: p; } .clist { grid-area: l; }
.ctxt > p + p { margin-top: 14px; }
.ctxt > p:empty { display: none; }
.dlist { border-top: 2px solid var(--blue); }
.dlist li { display: grid; grid-template-columns: 38px minmax(0, 1.5fr) minmax(0, 1.2fr) 150px auto; align-items: center; gap: 18px; min-height: 76px; padding: 12px 0 10px; border-bottom: 1.5px solid var(--line); }
.dlist .sq { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--blue); color: var(--white); }
.dlist .sq .ar { width: 18px; height: 12px; }
.dlist .dt b { display: block; font-weight: 600; font-size: 19px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.dlist .dt span, .dlist .tm { display: block; font-size: 15px; color: var(--ink-soft); line-height: 1.35; }
.dlist .btn { min-width: 150px; }
.dlist .tag { display: inline-block; margin-top: 4px; padding: 3px 8px 1px; border-radius: 5px; background: var(--sky); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.dlist li.off .dt b { color: var(--ink-soft); }
.clist .none { padding: 18px 0; color: var(--ink-soft); }

/* dialog */
.dlg { width: min(580px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(10, 40, 80, .6); overflow: auto; }
.dlg::backdrop { background: rgba(19, 38, 59, .55); }
.dlg form { display: flex; flex-direction: column; gap: 16px; padding: 30px 32px 30px; }
.dlg .k { font-size: 15px; font-weight: 600; color: var(--blue); }
.dlg .h3 { margin-top: -10px; padding-right: 40px; }
.dlg [data-an-when] { margin-top: -10px; font-size: 16px; color: var(--ink); }
.dlg [data-an-note]:empty { display: none; }
.x { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; font-size: 30px; line-height: 1; color: var(--ink); cursor: pointer; }
@media (hover: hover) { .x:hover { background: var(--sky); } }
.two-f, .dlg .two, .rq .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
[data-done] { border-left-color: var(--blue); background: var(--sky); border-radius: 0 10px 10px 0; line-height: 1.5; }
.f label, .f legend { font-size: 15px; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
input:not([type=range]):not([type=checkbox]):not([type=radio]), select, textarea { border: 1.5px solid #b5c1cc; border-radius: 8px; font-size: 17px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

/* ---------------------------------------------------------------- Kontakt */
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dtabs { display: none; }
.day { padding: 12px 12px 14px; }
.day h3 { display: flex; flex-direction: column; margin: 0 0 10px; padding: 10px 12px 6px; border-radius: 8px; background: var(--blue); color: var(--white); font-weight: 600; font-size: 17px; line-height: 1.2; }
.day h3 small { font-weight: 400; font-size: 15px; color: var(--soft); }
.day ul { display: grid; gap: 6px; }
.sl { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 4px 12px 0; border: 1.5px solid var(--blue); border-radius: 7px; background: var(--white); color: var(--blue); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; cursor: pointer; }
.sl small { font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.sl.off { border: 1.5px dashed var(--line); color: #8a96a3; cursor: default; }
.sl.sel { background: var(--blue); color: var(--white); } .sl.sel small { color: var(--soft); }
@media (hover: hover) { button.sl:hover { background: var(--sky); } button.sl.sel:hover { background: var(--blue-2); } }
.day .empty { padding: 10px 4px; color: var(--ink-soft); font-size: 15px; }
.form-wrap { align-items: start; }
.form-wrap > .txt { position: sticky; top: 110px; }
.bring { margin-top: 26px; }
.bh { font-weight: 600; font-size: 19px; padding: 2px 0 6px; border-bottom: 2px solid var(--white); }
.bring .mrows li { grid-template-columns: 150px 1fr; }
.bring .mrows li:last-child { border-bottom: 0; }
.rq { display: flex; flex-direction: column; gap: 20px; padding: 30px 32px 30px; }
.rq fieldset { display: flex; flex-direction: column; }
.tgs { display: flex; flex-wrap: wrap; gap: 8px; }
.tg { position: relative; display: inline-flex; cursor: pointer; }
.tg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tg span { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 16px 0; border: 1.5px solid #b5c1cc; border-radius: 8px; background: var(--white); font-weight: 600; font-size: 16px; }
.tg input:checked + span { border-color: var(--blue); background: var(--blue); color: var(--white); }
.tg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.f.bad .tg span { border-color: var(--bad); }
.hint { margin-top: 8px; }
.slotpick { display: flex; gap: 10px; }
.slotpick input { font-weight: 600; color: var(--blue); }
.hrs { margin-top: 18px; }
.hrs div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 10px 0 8px; border-bottom: 1.5px solid var(--line-2); }
.hrs dt { font-weight: 600; } .hrs dd { margin: 0; color: var(--ink-soft); }
#adresse .st { margin-top: 16px; }

/* ---------------------------------------------------------------- legal */
.legal { padding: 56px 0 96px; background: var(--white); }
.lg-in { padding: 34px 40px 30px; }
.lg-in h2 { font-weight: 600; font-size: 22px; margin: 26px 0 6px; } .lg-in h2:first-child { margin-top: 0; }
.lg-in .copy { font-size: 17px; }

/* ---------------------------------------------------------------- footer: a white plate */
.ft { padding: 64px 0 44px; background: linear-gradient(180deg, var(--sky-2), var(--sky-0)); }
.ft .wplate { display: grid; grid-template-columns: 1.25fr 1.2fr 1.3fr .9fr; gap: 28px 32px; padding: 36px 40px 22px; }
.ft .lg { font-size: 19px; }
.ft p { font-size: 15.5px; line-height: 1.5; }
.fcol > p + p { margin-top: 8px; }
.ft .lg + p { margin-top: 14px; }
.fh { font-weight: 600; color: var(--blue); font-size: 15px !important; margin-bottom: 6px; }
.ft ul a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15.5px; }
.ft .cp { margin: 6px 0 0; } .ft .copy { font-size: 15.5px; }
.ft .st { font-size: 15px; }
.bot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 12px; border-top: 1.5px solid var(--line-2); font-size: 14.5px; color: var(--ink-soft); }
.bot nav { display: flex; gap: 22px; }
.bot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
@media (hover: hover) { .ft ul a:hover, .bot nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; } }

/* ---------------------------------------------------------------- menu (phones and tablets) */
.menu .mfoot { display: none; }
@media (max-width: 999px) {
  .hd .menu { background: var(--sky-2); padding: 96px var(--pad) 32px; gap: 0; align-items: stretch; }
  .menu > a { display: flex; align-items: center; min-height: 56px; padding-top: 4px; border-bottom: 1.5px solid var(--line); font-weight: 600; font-size: 22px; }
  .menu > a[aria-current] { color: var(--blue); }
  .menu .mfoot { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
  .menu .mfoot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--blue); font-size: 19px; }
  .menu .st { font-size: 15px; }
  .ft .wplate { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .hero .sign { grid-template-columns: minmax(0, 1fr) 236px; column-gap: 26px; }
  .hero .title p { display: none; }
  .row .n { font-size: 21px; }
}
@media (max-width: 1060px) {
  .kplate { position: relative; left: auto; top: auto; transform: none; width: auto; margin: -36px 20px 0; }
}
@media (max-width: 900px) {
  .two, #fahrlehrerin .two { grid-template-columns: 1fr; }
  .form-wrap > .txt { position: static; }
  .two .frame { max-width: 640px; }
  #fahrlehrerin .frame { max-width: 460px; }
  .course { grid-template-columns: 1fr; grid-template-areas: "t" "p" "l"; }
  .course .frame { max-width: 640px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dlist li { grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "s d b" "s t b" "s c b"; row-gap: 2px; }
  .dlist .sq { grid-area: s; align-self: start; margin-top: 2px; } .dlist .dt { grid-area: d; } .dlist .tm { grid-area: t; } .dlist .seat { grid-area: c; } .dlist .btn { grid-area: b; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 80px; }
  body { font-size: 16.5px; }
  .hd-in { height: 64px; }
  .lg { font-size: 18px; gap: 10px; }
  .lg .lplate { width: 34px; height: 34px; }
  .hero { padding: 4px 0 70px; }
  .hero .stage { padding: 0 12px; }
  .posts { top: 30%; left: 12px; right: 12px; bottom: -70px; }
  .posts i { width: 12px; } .posts i:nth-child(1) { left: calc(22% - 6px); } .posts i:nth-child(2) { right: calc(22% - 6px); }
  .clamp { width: 34px; height: 8px; } .clamp.l { left: calc(22% - 17px); } .clamp.r { right: calc(22% - 17px); }
  .sign { padding: 20px 20px 18px; border-radius: 16px; }
  .sign::before { inset: 6px; border-width: 2px; border-radius: 11px; }
  .hero .sign { grid-template-columns: 1fr; grid-template-areas: "title" "rows" "side" "res"; }
  .title { gap: 12px; padding: 0 0 12px; border-bottom-width: 2px; }
  .title .lplate { width: 36px; height: 36px; }
  .title h1 { font-size: 25px; line-height: 1.05; padding-top: 4px; }
  .title h1 span { display: block; font-size: 16px; color: var(--soft); }
  .hero .title p { display: none; }
  .rows { padding-left: 22px; }
  .row { grid-template-columns: 1fr auto 26px; gap: 10px; min-height: 48px; padding-right: 0; }
  .row .n { font-size: 18px; }
  .row .d { font-size: 15px; }
  .row .a { width: 26px; height: 16px; }
  .marker { width: 13px; height: 16px; }
  .side { padding: 8px 0 0; }
  .side .pic { display: none; }
  .field { gap: 2px; }
  .field label { font-size: 14px; }
  .sign .field select { height: 46px; min-height: 46px; font-size: 17px; padding: 5px 30px 1px 12px; background-position: right 10px center; }
  .res { grid-template-columns: 1fr; margin-top: 12px; padding-top: 10px; border-top-width: 2px; gap: 0; }
  .res .k { font-size: 15px; }
  .res .v { font-size: 27px; }
  .res .note { font-size: 13.5px; margin-top: 4px; }
  .res .go { grid-column: 1; grid-row: auto; justify-content: center; margin-top: 14px; font-size: 17px; }
  .under { display: none; }
  .zusatz { display: block; position: relative; z-index: 1; width: 74%; margin: 14px auto 0; padding: 8px; border-radius: 12px; background: var(--blue); }
  .zusatz .pic { border-width: 2px; border-radius: 7px; aspect-ratio: 16 / 9; }
  .zusatz figcaption { font-size: 12.5px; padding: 18px 9px 6px; }

  .sec { padding: 56px 0; }
  .lead { font-size: 18px; }
  .bp { gap: 14px; padding: 13px 18px 9px 20px; margin-bottom: 20px; }
  .bp .ar { width: 24px; height: 15px; }
  .plist.wplate { padding: 6px 20px; }
  .plist b { font-size: 17px; } .plist em { font-size: 18px; }
  .cards, .team, .pgrid { grid-template-columns: 1fr; }
  .drows li { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 10px 0 8px; }
  .ft nav.fcol ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .card { padding: 10px; } .card .cb { padding: 16px 10px 6px; }
  .frame { padding: 6px; border-radius: 13px; }
  .frame img { border-width: 2px; border-radius: 8px; }
  .frame figcaption { font-size: 14px; padding: 8px 6px 2px; }
  .bsign { padding: 16px 20px; }
  .mrows li, .bring .mrows li { grid-template-columns: 1fr; gap: 0; }
  .mrows b { font-size: 18px; } .mrows span { font-size: 15px; }
  .who b { font-size: 23px; }
  .kplate { margin: -24px 10px 0; padding: 24px 22px 20px; }
  .cp li { flex-wrap: wrap; gap: 0 12px; }
  .frame.wide img { aspect-ratio: 3 / 2; object-position: 62% 60%; }

  .phead { padding: 4px 0 60px; }
  .phead .stage { padding: 0 12px; }
  .phead .posts { bottom: -60px; }
  .psign { padding: 20px 20px 12px; }
  .psign .title h1 { font-size: 27px; }
  .psign .title p { display: none; }
  .lh .psign .title p { display: block; margin-left: 0; text-align: left; font-size: 15px; }
  .lh .psign .title { flex-wrap: wrap; }
  .prows a { grid-template-columns: 1fr 26px; gap: 10px; min-height: 52px; }
  .prows .n { font-size: 18px; } .prows .i { display: none; }
  .prows .ar { width: 26px; height: 16px; }
  .kh .prows li { grid-template-columns: 1fr; gap: 0; padding: 8px 0 6px; }
  .kh .prows .n { font-size: 14px; color: var(--soft); font-weight: 400; }
  .kh .prows .copy { font-size: 18px; min-height: 40px; }
  .kh .prows .i { font-size: 16px; display: block; color: var(--white); }

  .pcard { padding: 22px 22px 14px; }
  .dlist li { grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "s d" "s t" "s c" "s b"; min-height: 0; padding: 14px 0 14px; }
  .dlist .sq { width: 30px; height: 30px; }
  .dlist .btn { justify-self: start; margin-top: 10px; }
  .dlg form { padding: 26px 20px 24px; }
  .dlg .two, .rq .two { grid-template-columns: 1fr; }
  .rq { padding: 24px 20px 24px; }
  .slots { display: block; }
  .dtabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding: 2px; }
  .dtabs button { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; min-height: 54px; min-width: 60px; padding: 6px 8px 2px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); font-weight: 600; font-size: 15px; line-height: 1.15; cursor: pointer; }
  .dtabs button small { font-weight: 400; font-size: 13.5px; color: var(--ink-soft); }
  .dtabs button[aria-selected="true"] { border-color: var(--blue); background: var(--blue); color: var(--white); }
  .dtabs button[aria-selected="true"] small { color: var(--soft); }
  .day { display: none; padding: 12px; }
  .day.on { display: block; }
  .day h3 { display: none; }
  .day ul { grid-template-columns: 1fr 1fr; }
  .lg-in { padding: 26px 22px 22px; }
  .ft { padding: 48px 0 32px; }
  .ft .wplate { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px 16px; }
  .bot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .row .n { font-size: 17px; } .row .d { font-size: 14.5px; }
  .title h1 { font-size: 23px; }
  .lg { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .row .a, .marker, .prows .ar { transition: none; } }
