/* Segel-AG – Dunkelblau + Petrol */
:root {
  --navy: #0d2b45;
  --navy-deep: #081d30;
  --accent: #0b7285;
  --foam: #7fd3e3;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --text: #14283a;
  --muted: #566a7c;
  --line: rgba(13, 43, 69, .12);
  --alert: #b4530a;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1825;
    --surface: #112639;
    --text: #e6eef5;
    --muted: #9fb3c4;
    --line: rgba(255, 255, 255, .1);
    --accent: #5cc3d6;
    --alert: #f0a45d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--foam); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 20; background: #fff; color: #0d2b45; padding: 8px 14px; border-radius: 8px; }

.icon { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #fff; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.brand .icon { color: var(--foam); }
nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav a { color: #c3d3e1; text-decoration: none; font-size: .93rem; padding: 7px 12px; border-radius: 9px; white-space: nowrap; }
nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }

/* ---------- Titelbereich ---------- */
.hero {
  position: relative;
  color: #fff;
  /* background.webp liegt auf dem Webserver; fehlt sie, bleibt der Farbverlauf */
  background:
    linear-gradient(120deg, rgba(8, 29, 48, .94) 0%, rgba(13, 43, 69, .82) 55%, rgba(11, 114, 133, .68) 100%),
    url('background.webp') center bottom / cover, /* zeigt den unteren Teil des Bildes */
    var(--navy);
  padding: 48px 0 140px;
}
.eyebrow { color: var(--foam); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; max-width: 18ch; text-wrap: balance; }
.lead { margin-top: 16px; max-width: 52ch; color: #d6e4ee; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; text-align: center; }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--foam); color: var(--navy-deep); }
.btn-primary:hover { background: #a5e1ed; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--bg); }

/* ---------- Karten ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 22px rgba(8, 29, 48, .13); }

/* ---------- Termine ---------- */
.dates { position: relative; margin-top: -84px; }
.dates > h2 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.highlights { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.highlights li, .notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(8, 29, 48, .16); }
.notice { padding: 20px; color: var(--muted); }
.highlights li { display: flex; flex-direction: column; overflow: hidden; }
.highlights li:first-child { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 10px 28px rgba(8, 29, 48, .22); }
.date-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 16px 18px 12px; }
.date-day { font-size: 2.7rem; font-weight: 800; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.date-month { display: flex; flex-direction: column; line-height: 1.3; font-weight: 700; }
.date-month small { color: var(--muted); font-weight: 500; font-size: .82rem; }
.countdown { margin-left: auto; align-self: flex-start; font-size: .74rem; font-weight: 700; white-space: nowrap; border-radius: 99px; padding: 2px 10px; background: rgba(127, 211, 227, .22); color: var(--accent); }
.date-body { padding: 12px 18px 16px; border-top: 1px dashed var(--line); flex: 1; }
.date-body h3 { font-size: 1.08rem; line-height: 1.35; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: .87rem; line-height: 1.45; overflow-wrap: anywhere; }

.list-title { margin: 30px 0 10px; font-size: 1.05rem; }
.agenda { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.agenda li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 11px 20px; align-items: baseline; }
.agenda li + li { border-top: 1px solid var(--line); }
.agenda time { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.agenda strong { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.more { margin-top: 10px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 6px 2px; }

.calendars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.card.calendar { border: 2px solid var(--accent); padding: 22px; }
.calendar-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 12px; background: var(--accent); color: var(--surface); }
.card .calendar-icon .icon { color: inherit; width: 32px; height: 32px; }
.card.calendar h3 { font-size: 1.2rem; line-height: 1.35; overflow-wrap: anywhere; }
.card.calendar .go { width: 26px; height: 26px; }
.stand { margin-top: 8px; text-align: right; color: var(--muted); font-size: .82rem; }

/* ---------- Abschnitte ---------- */
.block { padding-top: 56px; }
h2 { font-size: 1.5rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub { color: var(--muted); margin: 2px 0 18px; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 99px; padding: 1px 10px; }

.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.card .icon { color: var(--accent); }
.card div { flex: 1; min-width: 0; }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.card .go { width: 20px; height: 20px; }

.news { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.news li { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; }
.news time { color: var(--muted); font-size: .87rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.news h3 { font-size: 1.05rem; }
.news p { white-space: pre-line; }

.team { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team li { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 50%; background: var(--navy); color: var(--foam); font-weight: 700; letter-spacing: .04em; }
.team h3 { font-size: 1.05rem; line-height: 1.35; }
.team p { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.team a { font-size: .87rem; max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Impressum ---------- */
.hero-small { padding: 36px 0 92px; }
.legal-wrap { position: relative; margin-top: -40px; max-width: 820px; }
.legal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(8, 29, 48, .16); padding: 30px 34px; }
.legal section + section, .legal-cols + section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.legal .legal-cols section { margin: 0; padding: 0; border: 0; }
.legal h2 { font-size: 1.1rem; line-height: 1.4; margin-bottom: 8px; }
.legal h3 { font-size: 1rem; margin: 16px 0 4px; }
.legal address { font-style: normal; }
.legal p, .legal address { overflow-wrap: anywhere; }
.back { margin-top: 20px; text-align: center; }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--surface); }

/* ---------- Fußzeile ---------- */
footer { margin-top: 56px; background: var(--navy-deep); color: #a9bccd; font-size: .9rem; padding: 22px 0; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer a { color: #d6e4ee; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 760px) {
  .top-inner { flex-direction: column; align-items: stretch; gap: 2px; padding-top: 10px; padding-bottom: 6px; }
  nav { margin: 0 -8px; }
  nav a { padding: 6px 8px; }
  html { scroll-padding-top: 108px; }
  .hero { padding-top: 36px; }
  .actions .btn { flex: 1 1 100%; }
  .highlights { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 10px; }
  .agenda li { grid-template-columns: 1fr; gap: 0; padding: 11px 16px; }
  .calendars { grid-template-columns: 1fr; gap: 10px; }
  .card.calendar { padding: 16px; gap: 12px; }
  .block { padding-top: 40px; }
  .news li { flex-direction: column; gap: 4px; }
  .legal { padding: 22px 18px; }
  .legal-cols { grid-template-columns: 1fr; gap: 20px; }
}
