@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@400;500;600;700;800&family=Poppins:wght@400;500;600&display=swap');

/* =========================================================================
   Design-Tokens — Palette, Typografie und Rhythmus von oceangreece.com,
   verschoben Richtung Ägäis: Blau und Weiß tragen die Seite, Gelb und
   Türkis setzen Akzente.
   ========================================================================= */

:root {
  /* Farben */
  --navy:        #022447;   /* Überschriften, dunkle Sektionen, Header, Footer */
  --navy-deep:   #011830;
  --aegean:      #0D5EAF;   /* Griechisches Blau — Flächen, Primärlinie */
  --aegean-hell: #1E7FD4;
  --blue:        #0C67C4;   /* Sekundär-Button (gemessen) */
  --turquoise:   #33C7C5;   /* Flachwasser — Akzentflächen, Icons */
  --turquoise-hell: #A9E9E8;
  --yellow:      #FFE701;   /* Sonne — Primär-Button, Highlights */
  --cream:       #F9F6F0;
  --kalk:        #FCFBF7;   /* gekalkte Wand — sehr helle Fläche */
  --white:       #FFFFFF;   /* Kykladen-Weiß — Grundfläche */
  --bougainvillea: #D6336C; /* einziger warmer Akzent, sparsam einsetzen */
  --aegean-tief: #06467F;   /* tiefes Wasser — Meer auf der Routenkarte */
  --sand:        #EFE6D2;   /* Land auf der Routenkarte */
  --text:        #5F6973;
  --text-muted:  #B3BECA;
  --border:      #E3E7EC;

  /* Status */
  --ok:      #1F9D6B;  --ok-bg:      #E7F6EF;
  --maybe:   #FFE701;  --maybe-bg:   #FFFBE0;
  --no:      #D14343;  --no-bg:      #FCECEC;
  --open:    #B3BECA;  --open-bg:    #F2F4F7;

  /* Typografie */
  --font-head:  'Spectral', Georgia, 'Times New Roman', serif;
  --font-body:  'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lh-body:    2.15;
  --lh-compact: 1.6;
  --ls-eyebrow: 2.2px;
  --ls-button:  2.4px;
  --ls-label:   2.6px;

  /* Rhythmus */
  --section-y:   120px;
  --content-max: 1180px;
  --radius:      0;
  --header-h:    88px;

  --shadow:    0 10px 34px rgba(2, 36, 71, .10);
  --shadow-sm: 0 2px 10px rgba(2, 36, 71, .06);
  --transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================================
   Grundlagen
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(34px, 6vw, 70px); font-weight: 800; letter-spacing: -.055em; }
h2 { font-size: clamp(28px, 4vw, 37px); font-weight: 800; letter-spacing: -1px; }
h3 { font-size: clamp(22px, 3vw, 26px); font-weight: 700; letter-spacing: -1.3px; }
h4 { font-size: 20px; font-weight: 700; letter-spacing: -.6px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--aegean); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

code, kbd {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: .92em; background: var(--cream); color: var(--navy);
  padding: 2px 7px; border: 1px solid var(--border);
}

::selection { background: var(--yellow); color: var(--navy); }

:focus-visible { outline: 3px solid var(--aegean); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   Layout
   ========================================================================= */

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow { max-width: 820px; }

/* Volle Fensterbreite — für die breiten Tabellen der Verwaltung. */
.container--breit { max-width: none; padding-inline: 40px; }

.section { padding: var(--section-y) 0; position: relative; }
.section--tight  { padding: 72px 0; }
.section--cream  { background: var(--cream); }
.section--navy   { background: var(--navy); color: var(--text-muted); }
.section--aegean { background: var(--aegean); color: rgba(255, 255, 255, .85); }
.section--accent { background: var(--turquoise); color: var(--navy); }

.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.section--aegean h1, .section--aegean h2, .section--aegean h3, .section--aegean h4 { color: var(--white); }
.section--navy .eyebrow, .section--aegean .eyebrow { color: var(--turquoise); }
.section--navy a, .section--aegean a { color: var(--yellow); }

.section--accent h2, .section--accent h3 { color: var(--navy); }
.section--accent .eyebrow { color: var(--navy); }

.page-shell { display: flex; flex-direction: column; min-height: 100vh; }
.page-shell > main { flex: 1; }

/* Innenseiten: schmaler Kopf statt Vollbild-Hero */
.page-head {
  background:
    radial-gradient(70% 160% at 82% 0%, rgba(51, 199, 197, .28), transparent 60%),
    var(--navy);
  color: var(--text-muted);
  padding: 76px 0 64px;
  position: relative;
}
.page-head h1 { color: var(--white); font-size: clamp(32px, 5vw, 52px); margin-bottom: .2em; }
.page-head .eyebrow { color: var(--turquoise); }
.page-head p { max-width: 62ch; line-height: 1.8; }

.stack > * + * { margin-top: 24px; }

/* Blau-weißes Band — Anklang an die Flagge, als Sektionstrenner */
.flaggenband {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--aegean) 0 56px,
    var(--white) 56px 112px
  );
}

/* =========================================================================
   Typo-Bausteine
   ========================================================================= */

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--aegean);
  line-height: 1.6;
  margin-bottom: 8px;
}

.label {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--ls-label);
  color: var(--text-muted); line-height: 1.6;
}

.lead { font-size: 18px; line-height: 1.9; }

.compact { line-height: var(--lh-compact); }

/* Längerer Fließtext — auf Lesebreite begrenzt, mit hervorgehobener Schlusszeile. */
.prosa { max-width: 74ch; }
.prosa p + p { margin-top: 1.4em; }
.prosa__schluss {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.4;
  color: var(--navy);
  border-left: 4px solid var(--yellow);
  padding-left: 22px;
  margin-top: 1.8em;
}

.muted { color: var(--text-muted); }

.section-heading { margin-bottom: 56px; }
.section-heading--center { text-align: center; margin-inline: auto; max-width: 720px; }
.section-heading h2 { margin-bottom: .35em; }
.section-heading p { line-height: 1.9; }

/* =========================================================================
   Buttons — kantig, Versalien, gesperrt
   ========================================================================= */

.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; line-height: 1;
  text-align: center; text-transform: uppercase;
  letter-spacing: var(--ls-button);
  padding: 30px 58px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}
.btn--primary   { background: var(--yellow); color: var(--navy); }
.btn--secondary { background: var(--aegean); color: var(--white); }
.btn--ghost     { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px currentColor; }
.btn--navy      { background: var(--navy); color: var(--white); }
.btn--gefahr    { background: var(--no); color: var(--white); }
.btn--compact   { padding: 14px 26px; font-size: 12px; letter-spacing: 2px; }
.btn--block     { display: block; width: 100%; }

.btn:hover  { filter: brightness(.94); color: inherit; }
.btn--ghost:hover { background: var(--white); color: var(--navy); filter: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Textlink im Signatur-Look */
.link-more {
  display: inline-block;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--ls-button); color: var(--navy);
  border-bottom: 2px solid var(--yellow); padding-bottom: 4px;
}
.link-more:hover { color: var(--aegean); border-color: var(--aegean); }

/* =========================================================================
   Header / Navigation
   ========================================================================= */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.site-header__inner {
  display: flex; align-items: center; gap: 32px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; flex: none;
  background: var(--turquoise); color: var(--navy);
  display: grid; place-items: center;
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  color: var(--white); letter-spacing: -.6px; white-space: nowrap;
}
.brand__sub {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.4px; color: var(--turquoise);
}

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }

.nav__link {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--text-muted);
  padding: 8px 0; position: relative; white-space: nowrap;
}
.nav__link:hover { color: var(--white); }
.nav__link.active { color: var(--white); }
.nav__link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--yellow);
}

.nav__user { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.nav__user-name {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--white);
}
.nav__user-name:hover { color: var(--turquoise); }

.nav__logout {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted);
}
.nav__logout:hover { color: var(--yellow); }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block; height: 2px; background: var(--white); margin: 5px 0;
  transition: var(--transition);
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid; place-items: center;
  text-align: center;
  padding: 140px 0 170px;
  background: var(--navy-deep) center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(51, 199, 197, .30), transparent 62%),
    linear-gradient(180deg, rgba(2, 36, 71, .72), rgba(13, 94, 175, .88));
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; margin-inline: auto; padding-inline: 24px; }
.hero__icon {
  width: 76px; height: 76px; margin: 0 auto 26px;
  display: grid; place-items: center;
  color: var(--yellow);
}
.hero h1 { color: var(--white); margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--turquoise); }
.hero p { color: rgba(255, 255, 255, .82); font-size: 18px; line-height: 1.9; max-width: 60ch; margin-inline: auto; }
.hero .btn-row { justify-content: center; margin-top: 40px; }

/* Wellen-Trenner am Rand einer Sektion */
.wave {
  position: absolute; left: 0; right: 0; line-height: 0; pointer-events: none; z-index: 3;
}
.wave--top { top: 0; }
.wave--bottom { bottom: 0; transform: rotate(180deg); }
.wave svg { display: block; width: 100%; height: 56px; }

/* =========================================================================
   Karten
   ========================================================================= */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--turquoise); }
.card h3 { margin-bottom: .4em; }
.card p { line-height: 1.85; }

.card--flat:hover { box-shadow: none; border-color: var(--border); }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* Rubriken-Kachel mit Icon */
.tile {
  background: var(--white); border: 1px solid var(--border);
  padding: 44px 36px; height: 100%; transition: var(--transition);
}
.tile:hover { border-color: var(--aegean); box-shadow: var(--shadow); }
.tile__icon {
  width: 56px; height: 56px; margin-bottom: 24px;
  display: grid; place-items: center;
  background: var(--turquoise); color: var(--navy);
}
.tile h3 { margin-bottom: .4em; }

/* Revier-Kachel mit Bildfläche */
.revier {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--white);
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
  transition: var(--transition);
}
.revier::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 94, 175, .35), rgba(2, 36, 71, .92));
  transition: var(--transition);
}
.revier:hover::before { background: linear-gradient(180deg, rgba(51, 199, 197, .38), rgba(2, 36, 71, .88)); }
.revier > * { position: relative; z-index: 1; }
.revier__name {
  font-family: var(--font-head); font-size: 26px; font-weight: 800;
  letter-spacing: -1.3px; color: var(--white); margin: 0 0 6px;
}
.revier__meta {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--turquoise);
}
.revier__text { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .78); margin-top: 10px; }

/* Kennzahlen */
.stat { text-align: center; }
.stat__value {
  font-family: var(--font-head); font-size: clamp(48px, 7vw, 84px); font-weight: 800;
  line-height: .9; letter-spacing: -.05em; color: var(--yellow);
}
.stat__label {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--ls-label); color: var(--text-muted); margin-top: 14px;
}
.section--accent .stat__value { color: var(--navy); }
.section--accent .stat__label { color: var(--navy); }

/* =========================================================================
   Termine
   ========================================================================= */

.termin {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 32px; align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--aegean);
  padding: 28px 32px;
  transition: var(--transition);
}
.termin:hover { box-shadow: var(--shadow); }
.termin.is-abgesagt { background: var(--no-bg); border-color: #F3CFCF; border-left-color: var(--no); }
.termin.is-abgesagt .termin__titel { text-decoration: line-through; }

.termin__datum {
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 24px;
  line-height: 1.15;
}
.termin__tag {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--text-muted);
}
.termin__zahl {
  font-family: var(--font-head); font-size: 44px; font-weight: 800;
  letter-spacing: -2px; color: var(--navy); display: block; margin: 4px 0;
}
.termin__monat {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--aegean);
}

.termin__body { min-width: 0; line-height: var(--lh-compact); }
.termin__titel {
  font-family: var(--font-head); font-size: 24px; font-weight: 700;
  letter-spacing: -1.3px; color: var(--navy); margin: 8px 0 6px;
}
.termin__titel a { color: inherit; }
.termin__titel a:hover { color: var(--aegean); }
.termin__meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-size: 14px; color: var(--text); line-height: 1.6;
}
.termin__meta span { display: inline-flex; align-items: center; gap: 7px; }

.termin__aktion { min-width: 280px; }

.termin--gross {
  display: block; background: var(--white); border: 0; border-top: 6px solid var(--yellow);
  padding: 48px; box-shadow: var(--shadow);
}
.termin--gross .termin__titel { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -2.1px; }

.hinweis-absage {
  background: var(--no-bg); color: var(--no);
  border-left: 4px solid var(--no);
  padding: 16px 22px; margin-bottom: 24px;
  font-size: 14px; font-weight: 600; line-height: var(--lh-compact);
}

/* Terminart als Chip */
.chip {
  display: inline-block;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2.2px;
  padding: 6px 14px; line-height: 1.4;
  background: var(--navy); color: var(--white);
}
.chip--toern    { background: var(--aegean);    color: var(--white); }
.chip--regatta  { background: var(--yellow);    color: var(--navy); }
.chip--training { background: var(--turquoise); color: var(--navy); }
.chip--sonstiges{ background: var(--open-bg);   color: var(--text); }

/* =========================================================================
   Status
   ========================================================================= */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.8px;
  padding: 7px 14px; line-height: 1.5;
  background: var(--open-bg); color: var(--text);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pill--ok    { background: var(--ok-bg);    color: var(--ok); }
.pill--maybe { background: var(--maybe-bg); color: var(--navy); }
.pill--no    { background: var(--no-bg);    color: var(--no); }
.pill--open  { background: var(--open-bg);  color: var(--text); }

.zaehler { display: flex; flex-wrap: wrap; gap: 10px; }

/* Rückmelde-Buttons */
.rsvp { display: flex; gap: 8px; }
.rsvp__btn {
  flex: 1;
  background: var(--open-bg); color: var(--text);
  border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; line-height: 1;
  padding: 14px 12px; border-radius: var(--radius);
  transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.rsvp__btn:hover:not(:disabled) { filter: brightness(.94); }
.rsvp__btn:disabled { cursor: not-allowed; opacity: .6; }
.rsvp__btn--ok.is-active    { background: var(--ok);     color: var(--white); }
.rsvp__btn--maybe.is-active { background: var(--maybe);  color: var(--navy); }
.rsvp__btn--no.is-active    { background: var(--no);     color: var(--white); }
.rsvp__btn--open.is-active  { background: var(--aegean); color: var(--white); }
.rsvp__kurz { display: none; }
.rsvp__hinweis { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-top: 10px; }

/* Kojenanfrage auf der Törnseite */
.koje-box {
  background: var(--cream); border-top: 4px solid var(--turquoise);
  padding: 36px 32px;
}
.koje-box .eyebrow { display: block; color: var(--navy); margin-bottom: 18px; }
.koje-box .compact { margin-bottom: 20px; }
.koje-box .meldung { margin-bottom: 20px; }

/* „Anmeldung zurücknehmen" sieht aus wie ein Textlink, ist aber ein Schalter. */
.link-more--knopf {
  background: none; border: 0; border-bottom: 2px solid var(--yellow);
  padding: 0 0 4px; margin-top: 16px;
  cursor: pointer; font-family: var(--font-body);
}

/* =========================================================================
   Avatar
   ========================================================================= */

.avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  background: var(--aegean); color: var(--white);
  display: grid; place-items: center; flex: none;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  letter-spacing: 0; line-height: 1;
  overflow: hidden; text-transform: uppercase;
}
.avatar--sm { width: 36px; height: 36px; font-size: 14px; }
.avatar--lg { width: 128px; height: 128px; font-size: 40px; }

.avatar-zeile { display: flex; align-items: center; gap: 14px; line-height: var(--lh-compact); }
.avatar-zeile__name { font-weight: 500; color: var(--navy); }
.avatar-zeile__zusatz { display: block; font-size: 13px; color: var(--text-muted); }

/* Crewzeile als Link auf die Profilübersicht */
.avatar-zeile--link { text-decoration: none; padding: 4px; margin: -4px; transition: var(--transition); }
.avatar-zeile--link:hover { background: var(--white); }
.avatar-zeile--link:hover .avatar-zeile__name { color: var(--aegean); }

/* Crewliste in drei Spalten */
.teilnehmer-spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.teilnehmer-spalte { border-top: 4px solid var(--border); padding-top: 24px; }
.teilnehmer-spalte--ok    { border-color: var(--ok); }
.teilnehmer-spalte--maybe { border-color: var(--maybe); }
.teilnehmer-spalte--no    { border-color: var(--no); }
.teilnehmer-spalte--open  { border-color: var(--open); }
.teilnehmer-spalte h3 { font-size: 20px; margin-bottom: 4px; }
.teilnehmer-spalte__anzahl {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--text-muted); margin-bottom: 24px; display: block;
}
.teilnehmer-spalte ul { list-style: none; margin: 0; padding: 0; }
.teilnehmer-spalte li + li { margin-top: 16px; }

/* Crew-Raster */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-karte {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--aegean);
  padding: 36px 24px; text-align: center; transition: var(--transition);
}
.team-karte:hover { box-shadow: var(--shadow); }
.team-karte .avatar { margin: 0 auto 20px; }
.team-karte__name {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  letter-spacing: -.8px; color: var(--navy); line-height: 1.3;
}
.team-karte__zusatz { font-size: 13px; color: var(--text); line-height: 1.7; }
.team-karte__rolle {
  display: inline-block; margin-top: 10px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2.2px;
  color: var(--white); background: var(--aegean); padding: 4px 12px;
}
.team-karte__meilen {
  font-family: var(--font-head); font-size: 13px; font-weight: 800;
  letter-spacing: 1px; color: var(--turquoise); margin-top: 10px;
}
.team-karte__link { display: block; text-decoration: none; }
.team-karte:hover .team-karte__name { color: var(--aegean); }

/* Steckbrief auf der Profilübersicht */
.steckbrief { margin: 24px 0 0; }
.steckbrief > div {
  display: grid; grid-template-columns: 180px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.steckbrief dt {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--text-muted); line-height: 1.8;
}
.steckbrief dd { margin: 0; color: var(--navy); line-height: var(--lh-compact); }

/* Törns auf der Profilübersicht */
.toern-liste { list-style: none; margin: 16px 0 0; padding: 0; }
.toern-liste li {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.toern-liste a { font-weight: 500; color: var(--navy); text-decoration: none; }
.toern-liste a:hover { color: var(--aegean); }
.toern-liste .pill { margin-left: auto; }

/* =========================================================================
   Formulare
   ========================================================================= */

.feld { margin-bottom: 24px; }
.feld > label, .feld-label {
  display: block;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--navy);
  margin-bottom: 10px; line-height: 1.6;
}

.eingabe, input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="time"], input[type="file"], select, textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 15px; line-height: var(--lh-compact);
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
  transition: var(--transition);
}
.eingabe:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--aegean); outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 94, 175, .14);
}
textarea { min-height: 130px; resize: vertical; }
input[type="checkbox"] { width: auto; accent-color: var(--aegean); }

.feld-hinweis { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-top: 8px; }

.feld-reihe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feld-reihe--3 { grid-template-columns: repeat(3, 1fr); }

.checkbox-zeile { display: flex; align-items: center; gap: 12px; line-height: var(--lh-compact); }

.validation-message, .text-danger {
  display: block; color: var(--no); font-size: 13px; line-height: 1.6; margin-top: 6px;
}
.validation-errors { list-style: none; margin: 0 0 20px; padding: 0; }

/* Meldungen */
.meldung {
  padding: 16px 22px; margin-bottom: 24px;
  font-size: 14px; line-height: var(--lh-compact);
  border-left: 4px solid var(--border); background: var(--open-bg); color: var(--text);
}
.meldung--ok    { background: var(--ok-bg); border-color: var(--ok); color: #14684a; }
.meldung--fehler{ background: var(--no-bg); border-color: var(--no); color: var(--no); }
.meldung--info  { background: #EAF3FC; border-color: var(--aegean); color: var(--navy); }

/* Kurzmeldung nach dem Speichern — schwebt oben rechts über der Seite. */
.hinweis {
  position: fixed; top: calc(var(--header-h) + 16px); right: 24px; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 16px 18px;
  font-size: 14px; font-weight: 500; line-height: var(--lh-compact);
  border-left: 4px solid var(--ok);
  background: var(--white); color: var(--navy);
  box-shadow: var(--shadow);
  animation: hinweis-ein .22s cubic-bezier(.4, 0, .2, 1);
}
.hinweis__zeichen {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--ok); color: var(--white);
}
.hinweis__text { flex: 1 1 auto; }
.hinweis__zu {
  flex: none; border: 0; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--text-muted); padding: 0 2px;
}
.hinweis__zu:hover { color: var(--navy); }
.hinweis--fehler { border-left-color: var(--no); }
.hinweis--fehler .hinweis__zeichen { background: var(--no); }

@keyframes hinweis-ein {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hinweis { animation: none; }
}

.leer {
  border: 1px dashed var(--border); padding: 56px 32px; text-align: center;
  color: var(--text-muted); line-height: var(--lh-compact);
}

/* =========================================================================
   Tabellen (Admin)
   ========================================================================= */

.tabelle-wrap { overflow-x: auto; }

table.tabelle {
  width: 100%; border-collapse: collapse;
  font-size: 14px; line-height: var(--lh-compact);
}
table.tabelle th {
  text-align: left; font-family: var(--font-body);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--navy); border-bottom: 2px solid var(--aegean);
  padding: 14px 16px; white-space: nowrap;
}
table.tabelle td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tabelle tbody tr:hover { background: var(--cream); }
table.tabelle .zelle-mitte { text-align: center; }

.matrix td.matrix__zelle { text-align: center; padding: 8px; }
.matrix__punkt {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--open-bg);
}
.matrix__punkt--ok    { background: var(--ok); }
.matrix__punkt--maybe { background: var(--maybe); }
.matrix__punkt--no    { background: var(--no); }

.aktionen { display: flex; flex-wrap: wrap; gap: 8px; }

/* Aufklappbarer Bereich */
.klappe { border-top: 1px solid var(--border); margin-top: 56px; padding-top: 32px; }
.klappe > summary {
  cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--ls-button); color: var(--navy);
}
.klappe > summary:hover { color: var(--aegean); }
.klappe > summary::-webkit-details-marker { display: none; }
.klappe > summary::after { content: " +"; color: var(--turquoise); }
.klappe[open] > summary::after { content: " –"; }
.klappe__inhalt { margin-top: 32px; }

/* =========================================================================
   Konto-Seiten (Identity, statisches SSR)
   ========================================================================= */

.auth { padding: 72px 0 var(--section-y); }
.auth__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.auth__karte { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--aegean); padding: 44px; }
.auth__karte--schmal { max-width: 520px; }
.auth__links { margin-top: 32px; font-size: 14px; line-height: 1.9; }
.auth__links a { display: block; }
.auth__trenner {
  display: flex; align-items: center; gap: 16px;
  margin: 32px 0; color: var(--text-muted);
  font-size: 12px; text-transform: uppercase; letter-spacing: 2.2px;
}
.auth__trenner::before, .auth__trenner::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* Untermenü im Kontobereich */
.manage-nav { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.manage-nav li + li { margin-top: 2px; }
.manage-nav a {
  display: block; padding: 12px 20px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--text); line-height: 1.5;
}
.manage-nav a:hover { background: var(--cream); color: var(--navy); }
.manage-nav a.active { background: var(--aegean); color: var(--white); }

/* Identity-Templates verwenden diese Klassen an einigen Stellen weiter. */
.alert { padding: 16px 22px; margin-bottom: 24px; font-size: 14px; line-height: var(--lh-compact); border-left: 4px solid var(--border); background: var(--open-bg); color: var(--text); }
.alert-success { background: var(--ok-bg); border-color: var(--ok); color: #14684a; }
.alert-danger  { background: var(--no-bg); border-color: var(--no); color: var(--no); }
.alert-warning { background: var(--maybe-bg); border-color: var(--maybe); color: var(--navy); }
.alert-info    { background: #EAF3FC; border-color: var(--aegean); color: var(--navy); }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--navy-deep);
  color: var(--text-muted);
  padding: 88px 0 40px;
  position: relative;
  line-height: var(--lh-compact);
}
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.site-footer h4 {
  color: var(--white); font-size: 15px; text-transform: uppercase;
  letter-spacing: 2.2px; font-family: var(--font-body); font-weight: 600;
  margin-bottom: 20px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 10px; }
.site-footer__unten {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 13px;
}

/* Blazor-Fehleranzeige */
#blazor-error-ui {
  background: var(--yellow); color: var(--navy);
  bottom: 0; display: none; left: 0; position: fixed; width: 100%;
  padding: 16px 24px; box-shadow: 0 -1px 12px rgba(2, 36, 71, .2);
  z-index: 1000; font-size: 14px;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 18px; top: 14px; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1024px) {
  :root { --section-y: 80px; --header-h: 76px; }

  .grid--4, .team-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .teilnehmer-spalten { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .termin { grid-template-columns: 108px 1fr; }
  .termin__aktion { grid-column: 1 / -1; min-width: 0; }
  .btn { padding: 22px 40px; }
}

@media (max-width: 767px) {
  body { line-height: 1.9; }

  .burger { display: block; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 24px 24px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav__link { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav__link.active::after { display: none; }
  .nav__user { margin: 20px 0 0; flex-wrap: wrap; }

  .grid--2, .grid--3, .grid--4, .feld-reihe, .feld-reihe--3,
  .site-footer__grid, .teilnehmer-spalten, .auth__grid {
    grid-template-columns: 1fr;
  }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .auth__grid { gap: 40px; }
  .auth__karte { padding: 28px 24px; }
  .manage-nav { border-left: 0; border-top: 2px solid var(--border); }

  .btn { padding: 14px 26px; font-size: 12px; letter-spacing: 2px; }
  .btn-row .btn { flex: 1 1 auto; }

  .termin { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .termin__datum {
    display: flex; align-items: baseline; gap: 10px;
    border-right: 0; border-bottom: 1px solid var(--border);
    padding: 0 0 14px; text-align: left;
  }
  .termin__zahl { font-size: 28px; margin: 0; }
  .termin--gross { padding: 28px; }

  .hero { min-height: 76vh; padding: 100px 0 110px; }
  .page-head { padding: 56px 0 44px; }
  .section-heading { margin-bottom: 36px; }
  .card, .tile { padding: 28px 24px; }
  .flaggenband { background-size: 56px 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .rsvp { gap: 6px; }
  .rsvp__btn { padding: 13px 6px; letter-spacing: 1px; font-size: 11px; }
  .rsvp__lang { display: none; }
  .rsvp__kurz { display: inline; }
  .team-grid { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .rsvp, .btn { display: none !important; }
  body { line-height: 1.5; }
}


/* =========================================================================
   Kykladen-Editorial
   Große Bildflächen, versetztes Raster, gesetzte Serif-Zahlen.
   ========================================================================= */

/* --- Gekalkte Fläche mit angedeuteter Struktur --------------------------- */
.section--kalk {
  background: var(--kalk);
  position: relative;
}
.section--kalk::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(2, 36, 71, .035) 0 1px, transparent 1px),
    radial-gradient(circle at 62% 68%, rgba(2, 36, 71, .03) 0 1px, transparent 1px);
  background-size: 44px 44px, 68px 68px;
}
.section--kalk > * { position: relative; }

/* --- Editorial-Kopf: Nummer, Kicker, große Zeile ------------------------- */
.ed-kopf { display: flex; align-items: baseline; gap: 24px; margin-bottom: 48px; }
.ed-kopf__nummer {
  font-family: var(--font-head); font-size: clamp(56px, 9vw, 116px); font-weight: 800;
  line-height: .78; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px var(--turquoise);
  flex: none;
}
.ed-kopf__text { min-width: 0; }
.ed-kopf h2 { margin-bottom: .2em; }

/* --- Versetztes Bild-Text-Raster ---------------------------------------- */
.ed-reihe {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
}
.ed-reihe + .ed-reihe { margin-top: 120px; }

.ed-reihe__bild { grid-column: 1 / span 7; position: relative; }
.ed-reihe__text { grid-column: 9 / span 4; }

/* Jede zweite Reihe spiegeln — das erzeugt den Versatz */
.ed-reihe:nth-child(even) .ed-reihe__bild { grid-column: 6 / span 7; }
.ed-reihe:nth-child(even) .ed-reihe__text { grid-column: 1 / span 4; }

.ed-bild {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--aegean), var(--turquoise));
  padding: 18px;
}
/* Das Bild wird eingepasst, nicht beschnitten — so bleibt der blaue Rahmen
   ringsum stehen und das Motiv sitzt vollständig und mittig darin. */
.ed-bild img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.ed-bild--hoch { aspect-ratio: 3 / 4; }
.ed-bild--breit { aspect-ratio: 16 / 9; }

/* Verwaltung: Revierbild neben seinen Angaben */
.revier-zeile {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px; align-items: start;
  padding-bottom: 48px; margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.revier-zeile:last-of-type { border-bottom: 0; }
.revier-zeile__bild { position: relative; }
.revier-zeile__text h3 { margin-bottom: .2em; }
.revier-zeile__text .steckbrief { margin-top: 16px; }

/* Nummer, die halb über der Bildkante sitzt */
.ed-bild__nummer {
  position: absolute; left: -18px; bottom: -14px; z-index: 2;
  font-family: var(--font-head); font-size: clamp(60px, 8vw, 108px); font-weight: 800;
  line-height: .8; letter-spacing: -.06em; color: var(--white);
  text-shadow: 0 2px 24px rgba(2, 36, 71, .45);
}
.ed-reihe:nth-child(even) .ed-bild__nummer { left: auto; right: -18px; }

.ed-reihe__text .eyebrow { color: var(--bougainvillea); }
.ed-reihe__text h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: .4em; }
.ed-reihe__text p { line-height: 1.9; }

/* Kennwerte unter dem Text */
.ed-werte { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 24px; }
.ed-wert__zahl {
  font-family: var(--font-head); font-size: 28px; font-weight: 800;
  letter-spacing: -1px; color: var(--navy); line-height: 1;
}
.ed-wert__label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--text-muted); margin-top: 6px;
}

/* --- Zitat / Herausstellung --------------------------------------------- */
.zitat {
  border-left: 3px solid var(--bougainvillea);
  padding-left: 32px;
  font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600; font-style: italic; letter-spacing: -.5px;
  line-height: 1.5; color: var(--navy);
  max-width: 24ch;
}
.zitat__quelle {
  display: block; margin-top: 18px;
  font-family: var(--font-body); font-size: 12px; font-style: normal; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.4px; color: var(--text-muted);
}

/* --- Törn-Karten (Katalog) ---------------------------------------------- */
.toern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

.toern-karte {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.toern-karte:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.toern-karte.is-ausgebucht { opacity: .72; }

.toern-karte__bild {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--aegean), var(--turquoise));
}
.toern-karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.toern-karte:hover .toern-karte__bild img { transform: scale(1.04); }

.toern-karte__marke {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--white); color: var(--navy);
  padding: 10px 16px;
  font-family: var(--font-head); font-weight: 800; line-height: 1.15;
  text-align: center;
}
.toern-karte__marke b { display: block; font-size: 24px; letter-spacing: -1.4px; }
.toern-karte__marke span {
  display: block; font-family: var(--font-body); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.2px; color: var(--aegean);
}

.toern-karte__frei {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--turquoise); color: var(--navy);
  padding: 6px 13px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
}
.toern-karte__frei--knapp { background: var(--yellow); }
.toern-karte__frei--voll  { background: var(--bougainvillea); color: var(--white); }

.toern-karte__body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.toern-karte__revier {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.4px; color: var(--bougainvillea); margin-bottom: 10px;
}
.toern-karte__titel {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  letter-spacing: -1.2px; color: var(--navy); line-height: 1.25; margin: 0 0 12px;
}
.toern-karte__titel a { color: inherit; }
.toern-karte__titel a:hover { color: var(--aegean); }
.toern-karte__route {
  font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 18px;
}
.toern-karte__fuss {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.toern-karte__preis {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  letter-spacing: -1px; color: var(--navy);
}
.toern-karte__preis small {
  display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted);
}

/* Route als Etappenkette */
.etappen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.etappen span { font-size: 14px; color: var(--text); }
.etappen span + span::before {
  content: "→"; color: var(--turquoise); margin-right: 8px; font-weight: 600;
}

/* --- Törn-Detail --------------------------------------------------------- */
.toern-kopf {
  position: relative; min-height: min(62vh, 560px);
  display: grid; align-items: end;
  background: var(--navy) center/cover no-repeat;
  padding: 120px 0 56px;
  overflow: hidden;
}
.toern-kopf::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 36, 71, .28) 0%, rgba(2, 36, 71, .88) 78%);
}
.toern-kopf > .container { position: relative; z-index: 1; }
.toern-kopf h1 { color: var(--white); max-width: 18ch; }
.toern-kopf .eyebrow { color: var(--turquoise); }
/* Platz für die Mäander-Bordüre am unteren Rand. */
.toern-kopf { padding-bottom: 78px; }

.toern-fakten {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  margin-top: -60px; position: relative; z-index: 5;
}
.toern-fakten__zelle { background: var(--white); padding: 28px 24px; }
.toern-fakten__label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.4px; color: var(--text-muted); margin-bottom: 8px;
}
.toern-fakten__wert {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  letter-spacing: -1px; color: var(--navy); line-height: 1.3;
}

/* --- Griechische Mäander-Bordüre ---------------------------------------- */
.maeander {
  height: 22px;
  background-repeat: repeat-x;
  background-size: auto 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M2 20V6h14v10H8V10h4' fill='none' stroke='%230D5EAF' stroke-width='2.4'/%3E%3Cpath d='M24 20V6h14v10h-8V10h4' fill='none' stroke='%230D5EAF' stroke-width='2.4'/%3E%3C/svg%3E");
  opacity: .55;
}

/* Auf dunklem Grund: türkis statt blau, volle Deckkraft — der Kontrast trägt
   das Muster erst richtig. */
.maeander--hell {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M2 20V6h14v10H8V10h4' fill='none' stroke='%2333C7C5' stroke-width='2.4'/%3E%3Cpath d='M24 20V6h14v10h-8V10h4' fill='none' stroke='%2333C7C5' stroke-width='2.4'/%3E%3C/svg%3E");
  opacity: 1;
}

/* Im Seitenkopf sitzt die Bordüre unten auf der blauen Fläche. */
.page-head__maeander {
  position: absolute; left: 0; right: 0; bottom: 0;
}
.page-head--maeander { padding-bottom: 76px; }

/* --- Bildergalerien (Crewprofil und Yacht) ------------------------------- */
.galerie {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.galerie--yacht { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.galerie__feld {
  position: relative;
  background: var(--open-bg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.galerie__feld img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie--yacht .galerie__feld img { aspect-ratio: 16 / 9; }

.galerie__leer {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  border: 1px dashed var(--border); background: var(--kalk);
  color: var(--text-muted); font-size: 13px; text-align: center; padding: 16px;
}

.galerie__platz { padding: 16px; }
.galerie__platz .feld { margin-bottom: 12px; }
.galerie__nummer {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--turquoise);
  margin-bottom: 10px;
}
/* Partnerkarte */
.partner-karte {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px 30px;
  transition: var(--transition);
}
.partner-karte:hover { box-shadow: var(--shadow); border-color: var(--turquoise); }
.partner-karte .eyebrow { font-size: 13px; color: var(--bougainvillea); margin-bottom: 6px; }
.partner-karte h3 { margin-bottom: .4em; }
.partner-karte p { line-height: 1.85; flex: 1 1 auto; }
.partner-karte__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--aegean); word-break: break-all;
}
.partner-karte__link:hover { color: var(--navy); }

/* Route: Etappenliste links, Skizze rechts */
.route-raster {
  display: grid; grid-template-columns: minmax(240px, 3fr) minmax(0, 8fr);
  gap: 44px; align-items: start; margin-top: 20px;
}

.etappenliste { list-style: none; margin: 0; padding: 0; }
.etappenliste li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.etappenliste__nummer {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.5px;
  color: var(--turquoise); min-width: 34px;
}
.etappenliste__ort { color: var(--navy); font-weight: 500; }

.routenkarte { margin: 0; }
.routenkarte svg { display: block; width: 100%; height: auto; background: var(--navy); }
.routenkarte__unter {
  margin-top: 14px;
  font-size: 13px; line-height: 1.7; color: var(--text-muted);
}
.routenkarte__meilen {
  display: inline-block; margin-right: 10px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  background: var(--navy); color: var(--white);
}
.routenkarte__quelle {
  display: block; margin-top: 6px;
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted); opacity: .75;
}

/* Zahlungskonditionen auf der Törnseite */
.zahlungsziele { width: 100%; border-collapse: collapse; margin-top: 16px; }
.zahlungsziele th {
  text-align: left; padding: 0 0 10px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.zahlungsziele td {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  line-height: var(--lh-compact); color: var(--navy);
}
.zahlungsziele td + td, .zahlungsziele th + th { padding-left: 20px; }
.zahlungsziele__betrag { text-align: right; white-space: nowrap; }
.zahlungsziele tfoot td {
  font-weight: 600; border-bottom: 0; border-top: 2px solid var(--navy);
}
.zahlungsziele__vermerk {
  margin-top: 14px; padding: 14px 18px;
  font-size: 13px; line-height: var(--lh-compact); color: var(--navy);
  background: var(--maybe-bg); border-left: 3px solid var(--yellow);
}
.zahlungsziele__vermerk p + p { margin-top: 8px; }

/* Zahlungskonditionen stehen über die volle Breite, die Tabelle bleibt lesbar. */
.zahlungsblock { max-width: 820px; }

/* Zahlungskonditionen im Formular */
.zahlung-block { border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.zahlung-block legend {
  padding: 0 10px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--navy);
}
.zahlung-zeile {
  display: grid; grid-template-columns: minmax(0, 3fr) 130px minmax(0, 2fr) auto;
  gap: 12px; align-items: center; margin-bottom: 12px;
}
.zahlung-zeile--kopf {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--ls-label); color: var(--text-muted); margin-bottom: 8px;
}
.zahlung-zeile__knoepfe { display: flex; gap: 6px; }
.zahlung-zeile__knoepfe .btn { padding: 12px 14px; }
.zahlung-summe {
  margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--border);
  font-size: 14px; line-height: var(--lh-compact); color: var(--navy);
}

/* Anmeldefrist auf der Katalogkarte */
.toern-karte__frist {
  margin-top: 14px; padding: 9px 12px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.6px; line-height: 1.5;
  background: var(--maybe-bg); color: var(--navy);
  border-left: 3px solid var(--yellow);
}
.toern-karte__frist.is-abgelaufen {
  background: var(--open-bg); color: var(--text-muted); border-left-color: var(--open);
}

/* --- Bildergalerie mit Vor/Zurück ---------------------------------------- */
.slider { position: relative; }
.slider:focus-visible { outline: 3px solid var(--aegean); outline-offset: 4px; }

.slider__buehne {
  position: relative; overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--border);
}

/* Alle Bilder liegen übereinander; nur das aktive ist sichtbar. So wechselt
   die Ansicht ohne Nachladen und ohne Sprung im Layout. */
.slider__bild {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; visibility: hidden;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1);
}
.slider__bild.is-aktiv { opacity: 1; visibility: visible; }

.slider__pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.slider__pfeil:hover { background: var(--yellow); }
.slider__pfeil--zurueck { left: 16px; }
.slider__pfeil--vor     { right: 16px; }

.slider__zaehler {
  position: absolute; right: 16px; bottom: 16px;
  padding: 7px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: var(--ls-label);
  background: rgba(2, 36, 71, .82); color: var(--white);
}

.slider__unter {
  margin: 16px 0 0;
  font-size: 14px; line-height: var(--lh-compact); color: var(--text);
}

.slider__streifen {
  display: flex; gap: 10px; margin-top: 16px;
  overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
}
.slider__mini {
  flex: 0 0 108px; height: 68px;
  padding: 0; border: 2px solid transparent; cursor: pointer;
  background: var(--open-bg); overflow: hidden;
  transition: var(--transition);
}
.slider__mini img { width: 100%; height: 100%; object-fit: cover; }
.slider__mini:hover { border-color: var(--turquoise); }
.slider__mini.is-aktiv { border-color: var(--aegean); }
.slider__mini:not(.is-aktiv) img { opacity: .62; }

@media (prefers-reduced-motion: reduce) {
  .slider__bild { transition: none; }
}

/* --- Bildunterschrift ---------------------------------------------------- */
.bildunter {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--text-muted);
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .toern-grid { grid-template-columns: repeat(2, 1fr); }
  .toern-fakten { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .ed-reihe + .ed-reihe { margin-top: 72px; }
  .ed-reihe__text { grid-column: 9 / span 4; }
}

@media (max-width: 767px) {
  .route-raster { grid-template-columns: 1fr; gap: 28px; }
  .zahlung-zeile { grid-template-columns: 1fr; gap: 8px; padding-bottom: 16px;
                   border-bottom: 1px solid var(--border); }
  .zahlung-zeile--kopf { display: none; }
  .galerie { grid-template-columns: 1fr; }
  .slider__pfeil { width: 42px; height: 42px; }
  .slider__pfeil--zurueck { left: 8px; }
  .slider__pfeil--vor     { right: 8px; }
  .slider__mini { flex: 0 0 84px; height: 54px; }
  .hinweis { top: auto; bottom: 16px; right: 16px; left: 16px; max-width: none; }
  .container--breit { padding-inline: 24px; }
  .steckbrief > div { grid-template-columns: 1fr; gap: 2px; }
  .toern-liste .pill { margin-left: 0; }
  .toern-grid { grid-template-columns: 1fr; gap: 28px; }
  .toern-fakten { grid-template-columns: 1fr; margin-top: 0; }

  .revier-zeile { grid-template-columns: 1fr; gap: 24px; }
  .ed-bild { padding: 12px; }
  .ed-reihe { grid-template-columns: 1fr; gap: 28px; }
  .ed-reihe__bild,
  .ed-reihe:nth-child(even) .ed-reihe__bild,
  .ed-reihe__text,
  .ed-reihe:nth-child(even) .ed-reihe__text { grid-column: 1 / -1; }
  .ed-bild__nummer,
  .ed-reihe:nth-child(even) .ed-bild__nummer { left: 12px; right: auto; bottom: 8px; }

  .ed-kopf { flex-direction: column; gap: 8px; margin-bottom: 32px; }
  .zitat { padding-left: 20px; max-width: none; }
  .toern-kopf { min-height: 52vh; padding: 88px 0 62px; }
}


/* =========================================================================
   Törnhistorie — Jahrgänge mit stehender Jahreszahl
   ========================================================================= */

.historie-jahr {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 56px;
  padding-bottom: 72px;
}
.historie-jahr + .historie-jahr {
  border-top: 1px solid var(--border);
  padding-top: 72px;
}

.historie-jahr__marke { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.historie-jahr__zahl {
  display: block;
  font-family: var(--font-head); font-size: clamp(52px, 6vw, 78px); font-weight: 800;
  line-height: .9; letter-spacing: -.05em; color: var(--navy);
}
.historie-jahr__anzahl {
  display: block; margin-top: 10px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.4px; color: var(--bougainvillea);
}

.historie-liste { list-style: none; margin: 0; padding: 0; }
.historie-liste > li + li { margin-top: 40px; }

.historie-eintrag {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  align-items: start;
}
.historie-eintrag__bild {
  aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(150deg, var(--aegean), var(--turquoise));
}
.historie-eintrag__bild img { width: 100%; height: 100%; object-fit: cover; }

.historie-eintrag__text { line-height: var(--lh-compact); }
.historie-eintrag__datum {
  display: block;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--turquoise); margin-bottom: 8px;
}
.historie-eintrag__titel {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  letter-spacing: -1.2px; color: var(--navy); margin: 0 0 10px; line-height: 1.25;
}
.historie-eintrag__titel a { color: inherit; }
.historie-eintrag__titel a:hover { color: var(--aegean); }
.historie-eintrag__meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-size: 13px; color: var(--text-muted);
}
.historie-eintrag__meta span { display: inline-flex; align-items: center; gap: 7px; }
.historie-eintrag__meta span + span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--border); flex: none;
}

@media (max-width: 1024px) {
  .historie-jahr { grid-template-columns: 130px 1fr; gap: 32px; }
  .historie-eintrag { grid-template-columns: 170px 1fr; gap: 22px; }
}

@media (max-width: 767px) {
  .historie-jahr { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; }
  .historie-jahr + .historie-jahr { padding-top: 48px; }
  .historie-jahr__marke { position: static; display: flex; align-items: baseline; gap: 16px; }
  .historie-jahr__anzahl { margin-top: 0; }
  .historie-eintrag { grid-template-columns: 1fr; gap: 16px; }
  .historie-eintrag__bild { aspect-ratio: 16 / 9; }
}
