/* Sailing Gekko – Stil
   Keine externen Schriften oder Skripte (Datenschutz). */

:root {
  --tief: #0d2233;        /* Nachtblau */
  --see: #155e75;         /* Petrol */
  --see-hell: #e3eff2;
  --sand: #f7f4ee;        /* Hintergrund */
  --papier: #ffffff;
  --tinte: #1c2a33;       /* Text */
  --grau: #5b6b75;
  --linie: #dde3e6;
  --signal: #d9572b;      /* Akzent, sparsam */
  --gruen: #3f7d4e;
  --radius: 10px;
  --breite: 1160px;
  --text-breite: 720px;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--tinte);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--see); text-underline-offset: 3px; }
a:hover { color: var(--tief); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--tief); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 16px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 34, 51, .96);
  backdrop-filter: blur(6px);
  color: #fff;
}
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; min-height: 62px;
}
.marke { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.marke img { width: 34px; height: 34px; }
.marke:hover { color: #fff; }
#hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
#hauptnav a { color: #d7e3ea; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .95rem; }
#hauptnav a:hover, #hauptnav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
/* Crew-Bereich: umrandeter Sand-Knopf, vom normalen Menü abgesetzt */
#hauptnav .nav-crew { margin-left: 10px; }
#hauptnav .nav-crew a { color: #f1e4c6; border: 1.5px solid #d9c08c; font-weight: 600; }
#hauptnav .nav-crew a:hover, #hauptnav .nav-crew a[aria-current="page"] { color: var(--tief); background: #ecdcb6; border-color: #ecdcb6; }
.menue-knopf { display: none; background: none; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; padding: 6px 12px; font: inherit; font-size: .95rem; }

@media (max-width: 820px) {
  .menue-knopf { display: block; }
  #hauptnav { display: none; position: absolute; left: 0; right: 0; top: 62px; background: var(--tief); padding: 8px 12px 16px; }
  #hauptnav.offen { display: block; }
  #hauptnav ul { flex-direction: column; }
  #hauptnav a { display: block; padding: 12px; font-size: 1.05rem; }
  #hauptnav .nav-crew { margin: 10px 0 0; }
  #hauptnav .nav-crew a { text-align: center; }
}

/* ---------- Startseite: Held ---------- */
.held {
  position: relative; min-height: min(78vh, 680px);
  display: flex; align-items: flex-end;
  background: var(--tief) center / cover no-repeat;   /* Bild kommt als background-image im style-Attribut */
  color: #fff;
}
.held::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,50,0) 35%, rgba(10,30,50,.55) 100%),
              linear-gradient(90deg, rgba(10,30,50,.75) 0%, rgba(10,30,50,.35) 100%); }
.held.ohne-bild::before { display: none; }
@media (max-width: 700px) { .held::before { background: linear-gradient(180deg, rgba(10,30,50,.35) 0%, rgba(10,30,50,.8) 55%, rgba(10,30,50,.9) 100%); } }
.held-text { position: relative; max-width: var(--breite); width: 100%; margin: 0 auto; padding: 40px 20px 56px; }
.held h1 { color: #fff; max-width: 820px; }
.held h1 a { color: inherit; text-decoration: none; }
.held .unterzeile { font-size: 1.2rem; max-width: 640px; color: #e8f0f4; }
.held-fakten { font-size: .95rem; color: #b9cdd8; }
.ueberzeile { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: #9fd0dd; margin: 0 0 .6em; }
.ueberzeile a { color: inherit; text-decoration: none; }

.knopf {
  display: inline-block; background: var(--signal); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; margin-top: .6em;
}
.knopf:hover { background: #bb4520; color: #fff; }
.knopf.hell { background: var(--tief); }
.knopf.hell:hover { background: var(--see); }

/* ---------- Blöcke und Karten ---------- */
.block { max-width: var(--breite); margin: 0 auto; padding: 8px 20px 24px; }
.block-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.block-kopf a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.block-links { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 20px; row-gap: 4px; }
.seitenkopf { max-width: var(--breite); margin: 0 auto; padding: 56px 20px 8px; }
.seitenkopf p { color: var(--grau); font-size: 1.1rem; max-width: 720px; }

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.karte { background: var(--papier); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(13,34,51,.06), 0 6px 20px rgba(13,34,51,.06); transition: transform .15s, box-shadow .15s; }
.karte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13,34,51,.08), 0 12px 28px rgba(13,34,51,.12); }
.karte > a { display: block; color: inherit; text-decoration: none; height: 100%; }
.karte-bild { position: relative; aspect-ratio: 16 / 10; background: var(--see-hell); }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.karte-text { padding: 16px 20px 20px; }
.karte-text h3 { margin: .1em 0 .3em; font-size: 1.25rem; }
.karte-text p { margin: 0 0 .4em; color: var(--grau); font-size: .95rem; }
.karte-zeit { font-size: .82rem !important; text-transform: uppercase; letter-spacing: .06em; color: var(--see) !important; font-weight: 600; }
.karte-fakten { color: var(--tinte) !important; font-weight: 500; }
.marke-status, .marke-art {
  position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--tief);
  font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
}
.marke-status.s-ausschreibung { background: var(--signal); color: #fff; }
.marke-status.s-ankuendigung { background: var(--see); color: #fff; }

.filter { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 24px; }
.filter-gruppe { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button {
  font: inherit; font-size: .9rem; border: 1px solid var(--linie); background: var(--papier); color: var(--tinte);
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--tief); color: #fff; border-color: var(--tief); }
.leer { color: var(--grau); }

.boote { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.boot { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; color: #fff; text-decoration: none; background: var(--tief); }
.boot img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .3s; }
.boot:hover img { transform: scale(1.03); }
.boot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(transparent, rgba(13,34,51,.85)); }
.boot strong { display: block; font-family: var(--serif); font-size: 1.6rem; }
.boot:hover { color: #fff; }

.vorstellung { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; padding-top: 32px; padding-bottom: 64px; }
.vorstellung img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; }
.vorstellung h2 { margin-top: 0; }
@media (max-width: 640px) {
  .vorstellung { grid-template-columns: 1fr; text-align: left; }
  .vorstellung img { width: 140px; height: 140px; }
}

/* ---------- Beitrag ---------- */
.titelbild {
  position: relative; min-height: 460px; display: flex; align-items: flex-end;
  background: var(--tief) center / cover no-repeat; color: #fff;
}
.titelbild.klein { min-height: 320px; }
.titelbild.hell { min-height: 560px; }
.titelbild.hell::before { background: linear-gradient(180deg, rgba(13,34,51,0) 35%, rgba(13,34,51,.7)); }
.titelbild.ohne-bild { min-height: 0; background: var(--tief); }
.titelbild::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,34,51,.1), rgba(13,34,51,.82)); }
.titelbild-text { position: relative; max-width: var(--breite); width: 100%; margin: 0 auto; padding: 40px 20px 36px; }
.titelbild h1 { color: #fff; max-width: 900px; }
.titelbild .unterzeile { font-size: 1.15rem; color: #e1ebf0; max-width: 680px; margin: 0; }
.entwurf-hinweis { display: inline-block; background: #ffd75e; color: #000; padding: 2px 10px; border-radius: 4px; font-weight: 700; font-size: .8rem; }

.beitrag-raster {
  max-width: var(--breite); margin: 0 auto; padding: 40px 20px;
  display: grid; grid-template-columns: 260px minmax(0, var(--text-breite)); gap: 56px; justify-content: center;
}
.eckdaten { position: sticky; top: 86px; align-self: start; background: var(--papier); border-radius: var(--radius); padding: 20px 22px; border-top: 4px solid var(--see); }
.eckdaten dl { margin: 0; }
.eckdaten div { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.eckdaten div:last-child { border-bottom: 0; }
.eckdaten dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grau); font-weight: 600; }
.eckdaten dd { margin: 0; font-weight: 500; }
.lesezeit { font-size: .82rem; color: var(--grau); margin: 12px 0 0; }
@media (max-width: 900px) {
  .beitrag-raster { grid-template-columns: 1fr; gap: 24px; }
  .eckdaten { position: static; }
  .eckdaten dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 16px; }
  .eckdaten div { border-bottom: 1px solid var(--linie) !important; }
}

.text { font-size: 1.06rem; }
.text.schmal { max-width: var(--text-breite); margin: 0 auto; padding: 40px 20px 64px; }
.text > :first-child { margin-top: 0; }
.text p { margin: 0 0 1.1em; }
.text h2 { padding-top: .4em; border-top: 1px solid var(--linie); }
.text ul, .text ol { padding-left: 1.3em; }
.text li { margin: .25em 0; }
.text blockquote { margin: 1.6em 0; padding: 0 0 0 20px; border-left: 4px solid var(--signal); font-family: var(--serif); font-size: 1.35rem; color: var(--tief); }
.text hr { border: 0; border-top: 1px solid var(--linie); margin: 2em 0; }
.text code { background: var(--see-hell); padding: 1px 5px; border-radius: 4px; font-size: .92em; }

.text figure { margin: 1.8em 0; }
.text figure.einzeln, .text figure.demo { margin-left: -40px; margin-right: -40px; }
.text figure.demo iframe { display: block; width: 100%; aspect-ratio: 7 / 5; border: 0; border-radius: 8px; background: #000; }
.text figure img { border-radius: 6px; width: 100%; }
.text figure.medien video, .text figure.medien iframe { display: block; width: 100%; aspect-ratio: 7 / 5; border: 0; border-radius: 6px; background: #000; }
.text figcaption { font-size: .9rem; color: var(--grau); margin-top: .5em; padding-left: 2px; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1.8em 0; }
.galerie figure { margin: 0; }
.galerie img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .text figure.einzeln, .text figure.demo { margin-left: 0; margin-right: 0; } }

.tabelle { overflow-x: auto; margin: 1.4em 0; }
.text table { border-collapse: collapse; width: 100%; background: var(--papier); border-radius: 8px; overflow: hidden; font-size: .97rem; }
.text td, .text th { padding: 9px 14px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.text tr:last-child td { border-bottom: 0; }
.text td:first-child { white-space: nowrap; color: var(--tief); }

.anmeldung { max-width: var(--text-breite); margin: 0 auto 40px; padding: 24px 28px; background: var(--see-hell); border-radius: var(--radius); }
.anmeldung h2 { margin-top: 0; }

.blaettern { max-width: var(--breite); margin: 0 auto; padding: 24px 20px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--linie); }
.blaettern a { text-decoration: none; font-family: var(--serif); font-size: 1.15rem; color: var(--tief); }
.blaettern a span { display: block; font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grau); }
.blaettern .rechts { text-align: right; }

/* ---------- Lightbox ---------- */
.lupe { position: fixed; inset: 0; z-index: 50; background: rgba(5, 15, 22, .94); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lupe img { max-height: 92vh; max-width: 96vw; width: auto; border-radius: 4px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tief); color: #b9cdd8; margin-top: 40px; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 40px 20px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; font-size: .95rem; }
.fuss strong { color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fuss a { color: #d7e3ea; }
.fuss-insta { display: inline-flex; align-items: center; gap: 6px; }
.fuss-insta svg { flex: none; }
.fuss small { flex-basis: 100%; color: #7f97a5; }
body.start .fuss { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .kopf, .fuss, .filter, .blaettern { display: none; } .titelbild { min-height: 0; color: #000; background: none; } .titelbild h1 { color: #000; } }
