/* ==========================================================
   Schule für Sportschiffer – Stylesheet
   Farben zentral hier ändern:
   ========================================================== */
:root {
  --navy: #0a1f5c;        /* Hauptfarbe (dunkles Marineblau, aus dem Logo) */
  --navy-2: #12307f;
  --sea: #1f6fd1;         /* Akzent Blau */
  --sail: #4fb3ff;        /* Segel-Hellblau aus dem Logo */
  --sand: #ffc928;        /* Signal-Gelb (wie auf der alten Seite) */
  --ink: #18223a;
  --muted: #5b6680;
  --line: #dde3ef;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --ok: #1b7f4b;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 31, 92, .08);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: #fff; padding: 8px 12px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.topbar {
  background: #06153f; color: #c9d6f5; font-size: .85rem;
}
.topbar .container { display: flex; gap: 20px; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { height: 54px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 10px 11px; border-radius: 8px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: var(--sand); }
.main-nav .cta-nav { background: var(--sand); color: var(--navy); margin-left: 6px; }
.main-nav .cta-nav:hover { background: #ffd95c; color: var(--navy); }
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 8px; padding: 8px 12px; font-size: 1rem; font-weight: 700; cursor: pointer;
}
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 10px 20px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav .cta-nav { margin: 8px 0 0; text-align: center; }
  .topbar .container { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #0a1f5c 0%, #12307f 45%, #1f6fd1 100%);
  padding: 80px 0 140px;
}
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; color: #dce7ff; }
.hero .waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; }
.hero .sail-deco { position: absolute; right: 6%; top: 40px; width: min(32vw, 340px); opacity: .9; }
@media (max-width: 760px) { .hero .sail-deco { display: none; } .hero { padding: 56px 0 110px; } }
.page-hero { padding: 56px 0 100px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.breadcrumb { font-size: .9rem; color: #c9d6f5; margin-bottom: 10px; }
.breadcrumb a { color: #fff; }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sand); color: var(--navy); }
.btn-primary:hover { background: #ffd95c; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-blue { background: var(--sea); color: #fff; }
.btn-blue:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--sea); margin-bottom: 6px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body > :last-child { margin-bottom: 0; }
.card img.cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 700; text-decoration: none; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: #e6efff; color: var(--navy-2); margin: 0 6px 8px 0;
}
.tag-h { background: #e3f6ec; color: #136c3e; }
.tag-d { background: #fff3cf; color: #7a5300; }

/* Standort-Karten Startseite */
.loc-card { position: relative; }
.loc-card .loc-label {
  position: absolute; top: 14px; left: 14px; background: var(--navy); color: #fff;
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem;
}
.loc-card ul { padding-left: 20px; margin: 0 0 1em; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f8faff; }
tbody tr:last-child td { border-bottom: 0; }
td.price, th.price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.boat-row td:first-child { display: flex; align-items: center; gap: 14px; }
.boat-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }

/* ---------- Termine ---------- */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter button {
  border: 2px solid var(--navy); background: #fff; color: var(--navy); font-weight: 700;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .95rem;
}
.filter button.active { background: var(--navy); color: #fff; }
.course-block { margin-bottom: 36px; }
.course-block h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1.35rem; }
.course-block h3 small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .date-grid { grid-template-columns: 1fr; } }
.date-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.date-col header { background: var(--navy-2); color: #fff; padding: 12px 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.date-col header span { font-weight: 400; color: #d5e1ff; font-size: .9rem; }
.date-col ul { list-style: none; margin: 0; padding: 0; }
.date-col li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.date-col li:first-child { border-top: 0; }
.date-col .code { font-weight: 700; color: var(--navy); min-width: 64px; }
.date-col .dates { flex: 1; font-variant-numeric: tabular-nums; }
.date-col .dates small { display: block; color: var(--muted); }
.date-col a.book { font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.date-col li.past { opacity: .45; }

.calendar-placeholder {
  border: 3px dashed #9fb4e0; border-radius: var(--radius); background: #f5f8ff;
  padding: 48px 24px; text-align: center; color: var(--muted);
}
.calendar-embed iframe { width: 100%; min-height: 640px; border: 0; border-radius: var(--radius); }

/* ---------- Info / Hinweise ---------- */
.note {
  border-left: 5px solid var(--sand); background: #fffbea; padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 20px 0;
}
.note-blue { border-left-color: var(--sea); background: #eef5ff; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.stat-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 32px; }
.stat strong { display: block; font-size: 1.6rem; color: var(--sand); }
.stat span { color: #dce7ff; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.5rem; color: var(--sea); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; }

/* ---------- Formulare ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
@media (max-width: 640px) { .form-card { padding: 20px; } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-bottom: 14px; padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
label .req { color: var(--err); }
input[type=password], input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #c4cee3; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31,111,209,.25); border-color: var(--sea); }
textarea { min-height: 120px; resize: vertical; }
.choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
@media (max-width: 640px) { .choice-list { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; margin: 0; }
.choice:hover { border-color: #9fb4e0; }
.choice input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: var(--sea); }
.choice .c-text { flex: 1; }
.choice .c-price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.choice small { display: block; color: var(--muted); font-weight: 400; }
.choice:has(input:checked) { border-color: var(--sea); background: #eef5ff; }
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg .choice { flex: 1; min-width: 180px; }
.date-pickers { display: grid; gap: 14px; margin-top: 14px; }
.date-pickers:empty { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--sea); }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 10px; display: none; font-weight: 600; }
.form-status.ok { display: block; background: #e3f6ec; color: var(--ok); }
.form-status.err { display: block; background: #fdecea; color: var(--err); }
.form-status.info { display: block; background: #eef5ff; color: var(--navy); }

/* ---------- Karte (Klick-zum-Laden) ---------- */
.map-consent {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px;
  background: linear-gradient(135deg, #dfe9fb, #f3f6fb); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  border: 1px solid var(--line);
}
.map-consent p { max-width: 440px; margin: 0 auto 14px; color: var(--muted); font-size: .92rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Kontaktboxen ---------- */
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.contact-box dt { font-weight: 700; color: var(--muted); }
.contact-box dd { margin: 0; }

/* ---------- CTA Band ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #dce7ff; }

/* ---------- Footer ---------- */
.site-footer { background: #06153f; color: #c9d6f5; padding: 56px 0 24px; margin-top: 40px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--sand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* Rechtstexte */
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.2em; }
.placeholder { background: #fff3cf; padding: 1px 6px; border-radius: 4px; }

@media print {
  .site-header, .site-footer, .hero .waves, .btn-row, .filter { display: none !important; }
  .hero { background: none; color: #000; padding: 0; }
  .hero h1 { color: #000; }
}

/* Feinschliff Kopfbereich */
.nav-wrap { max-width: 1320px; }
.main-nav ul { flex-wrap: nowrap; }
.main-nav a { white-space: nowrap; }
@media (max-width: 1180px) { .main-nav ul { flex-wrap: wrap; } }
@media (max-width: 640px) { .topbar .hide-sm { display: none; } }

/* Neues Logo */
.brand-logo { height: 58px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 46px; } }
.hero .hero-logo { position: absolute; right: 6%; top: 36px; width: min(30vw, 360px); filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
@media (max-width: 1100px) { .hero .hero-logo { display: none; } }
.footer-logo { width: 190px; margin-bottom: 14px; }

.privacy-panel{position:fixed;bottom:0;left:0;right:0;z-index:9999;background:#fff;color:#18324b;border-top:2px solid #18324b;padding:18px max(18px,calc((100vw - 1000px)/2));box-shadow:0 -4px 20px #0002;max-height:80vh;overflow:auto}.privacy-panel[hidden],.privacy-options[hidden]{display:none}.privacy-panel h2{font-size:1.3rem;margin:0 0 8px}.privacy-actions{display:flex;flex-wrap:wrap;gap:8px}.privacy-panel button{background:#18324b;color:white;border:1px solid #18324b;border-radius:5px;padding:12px;cursor:pointer;font:inherit}.privacy-options label{display:block;margin:8px 0}.privacy-options{margin:12px 0}.privacy-link{font:inherit;color:inherit;background:none;border:0;text-decoration:underline;cursor:pointer;padding:0}.map-consent iframe{width:100%;min-height:300px;border:0}
