/* deinschwimmlehrer.de – Webseite & Admin */
:root {
  --navy: #0D4571;
  --navy-deep: #0A2E4D;
  --blue: #2F8DAC;
  --blue-dark: #1F6F8B;
  --water: #CFEAF3;
  --ice: #EEF6F9;
  --ink: #10283D;
  --muted: #4F6273;
  --line: #D6E3EA;
  --white: #FFFFFF;
  --ok: #1E7A46;
  --ok-bg: #E3F4EA;
  --warn: #9A5B00;
  --warn-bg: #FFF2DC;
  --err: #B42318;
  --err-bg: #FDECEA;
  --radius: 18px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--navy-deep); color: var(--white); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid #7FC4DA; outline-offset: 2px; }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn-large { min-height: 56px; padding: 14px 32px; font-size: 18px; width: 100%; }
.btn-light { background: var(--ice); color: var(--navy); }
.btn-light:hover { background: var(--water); color: var(--navy); }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #155C34; }
.btn-danger { background: var(--white); color: var(--err); box-shadow: inset 0 0 0 2px #F3B8B2; }
.btn-danger:hover { background: var(--err-bg); color: var(--err); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 56px; height: auto; }
.logo-text { font-weight: 900; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); line-height: 1; }
.logo-dein, .logo-de { color: var(--blue); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--ice), var(--white)); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; letter-spacing: -.01em; }
.lead { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 16px 0 0; }
.hero-location { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 800; font-size: 17px; }
.hero-location svg { color: #8FD3E8; flex: none; }
.hero-water { justify-self: end; width: 100%; max-width: 440px; }

/* Kurs */
.course { padding: 48px 0 24px; }
.course + .course { border-top: 1px solid var(--line); }
.course-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.course-head h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 900; }
.course-desc { max-width: 70ch; color: var(--muted); margin: 0 0 24px; }
.seats { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 12px; row-gap: 8px; padding: 14px 20px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok); }
.seats-num { font-size: 40px; font-weight: 900; line-height: 1; }
.seats-label { font-weight: 800; line-height: 1.2; }
.seats-label small { font-weight: 600; opacity: .85; }
.seats-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(30,122,70,.18); overflow: hidden; }
.seats-bar span { display: block; height: 100%; background: currentColor; border-radius: 6px; }
.seats-few { background: var(--warn-bg); color: var(--warn); }
.seats-few .seats-bar { background: rgba(154,91,0,.18); }
.seats-full { background: var(--err-bg); color: var(--err); }
.seats-full .seats-bar { background: rgba(180,35,24,.18); }
.course-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 4px; }
.card p { margin: 0; }
.card-place { background: var(--navy); border-color: var(--navy); color: #DCEBF3; }
.card-place h3 { color: #8FD3E8; }
.card-place .place-name { font-size: 22px; font-weight: 900; color: var(--white); }
.card-place .place-info { margin-top: 6px; font-size: 15px; }
.card-place .link-arrow { color: var(--white); margin-top: auto; padding-top: 10px; }
.link-arrow { font-weight: 800; text-decoration: none; }
.link-arrow::after { content: " →"; }
.dates { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.dates li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dates li:last-child { border-bottom: 0; }
.date-day { font-weight: 800; }
.date-time { color: var(--muted); white-space: nowrap; }
.price { font-size: 40px; font-weight: 900; color: var(--navy); line-height: 1.1; }
.price-note { color: var(--muted); font-size: 15px; }
.card-price .btn { margin-top: auto; }

/* Formular */
.form-section { background: var(--ice); padding: 64px 0; margin-top: 40px; }
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.form-intro h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 900; margin-bottom: 20px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; color: var(--muted); }
.steps li strong { color: var(--ink); display: block; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 900; }
.booking-form { background: var(--white); border-radius: 24px; padding: 32px; box-shadow: 0 10px 40px rgba(13,69,113,.08); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label, legend { font-weight: 800; font-size: 15px; color: var(--ink); }
legend { padding: 0; margin-bottom: 6px; }
.opt { font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #B9CCD7; border-radius: 12px; background: var(--white); }
textarea { min-height: 96px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.field-error { margin: 0; color: var(--err); font-size: 14px; font-weight: 700; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid #B9CCD7; border-radius: 12px; cursor: pointer; font-weight: 700; }
.segmented input { width: 20px; min-height: 0; height: 20px; accent-color: var(--navy); }
.segmented label:has(input:checked) { border-color: var(--navy); background: var(--ice); }
.checks { display: grid; gap: 12px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.success { grid-column: 1 / -1; max-width: 680px; margin-inline: auto; background: var(--white); border-radius: 24px; padding: 40px; text-align: center; box-shadow: 0 10px 40px rgba(13,69,113,.08); }
.success h2 { font-size: 32px; font-weight: 900; margin: 16px 0 12px; }
.success p { margin: 0 0 12px; }
.empty-state { padding: 64px 0; text-align: center; }
.empty-state h2 { margin-bottom: 8px; }

/* Rechtstexte */
.legal { max-width: 780px; padding: 48px 0 64px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 900; margin-bottom: 20px; }
.legal h2 { font-size: 21px; font-weight: 900; margin: 32px 0 10px; scroll-margin-top: 90px; }
.legal p, .legal li { color: #24394C; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal-back { margin-top: 40px; }
mark.todo { background: var(--warn-bg); color: var(--warn); font-weight: 800; padding: 2px 6px; border-radius: 6px; }

/* Cookie-Hinweis */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.cookie-inner { pointer-events: auto; width: min(880px, 100%); display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 16px 50px rgba(10,46,77,.22); border: 1px solid var(--line); }
.cookie-inner > svg { color: var(--blue); flex: none; }
.cookie-text { flex: 1; }
.cookie-text strong { color: var(--navy); }
.cookie-text p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.cookie-inner .btn { flex: none; }
@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-inner > svg { display: none; }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9DCE7; padding: 28px 0; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--white); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 24px; }
  .hero-water { justify-self: start; max-width: 280px; order: -1; }
  .course-grid { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .logo-text { font-size: 16px; }
  .logo img { width: 44px; }
  .site-header .btn-small { display: none; }
  .field-row, .segmented { grid-template-columns: 1fr; }
  .booking-form { padding: 22px; }
  .success { padding: 28px 20px; }
}

/* ---------- Admin ---------- */
.admin { background: #F4F8FA; font-size: 16px; }
.admin-bar { background: var(--navy); color: var(--white); }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.admin-bar a { color: var(--white); text-decoration: none; font-weight: 700; }
.admin-brand { font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.admin-brand span { color: #8FD3E8; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-nav a { padding: 10px 14px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.admin-main { padding: 32px 0 64px; display: grid; gap: 24px; }
.admin-main h1 { font-size: 30px; font-weight: 900; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.panel h2 .count { color: var(--muted); font-weight: 700; }
.table-scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.list td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.actions .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.pill-reserviert { background: var(--warn-bg); color: var(--warn); }
.pill-bezahlt { background: var(--ok-bg); color: var(--ok); }
.pill-warteliste { background: #E8EEFC; color: #2B4BA0; }
.pill-abgelaufen, .pill-storniert { background: #EDEFF1; color: #4F5A64; }
.due-soon { color: var(--err); font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--ice); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-size: 28px; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.generator { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; background: var(--ice); padding: 14px; border-radius: 14px; }
.generator label { font-size: 13px; }
.toggle { display: flex; gap: 10px; align-items: center; font-weight: 700; min-height: 44px; }
.toggle input { width: 22px; height: 22px; min-height: 0; accent-color: var(--navy); }
.login-box { max-width: 420px; margin: 80px auto; }
.login-box .panel { display: grid; gap: 16px; }
.mail-ok { color: var(--ok); white-space: nowrap; }
.mail-err { color: var(--err); white-space: nowrap; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); }
@media (max-width: 760px) {
  .form-grid, .generator { grid-template-columns: 1fr; }
}
