/* Neue Fassung nach den gemeinsamen Design-Prinzipien (21.11.2026)
   ──────────────────────────────────────────────────────────────────────────────────────
   Verbindlich: ~/Developer/Ionos-Server/DESIGN-PRINZIPIEN.md. Gleiche Prinzipien wie Kielwasser,
   eigene Farben: Navy als Anker (Menü, Kopfband, Fuß — voll deckend, derselbe Ton), Water als
   Seitengrund, weiße Flächen darauf, Spray als Akzent, Gold sparsam.

   Geladen nur, wenn sy_p_aktiv() — Vorschau-Cookie (?sy_vorschau=neu) oder Option
   sy_design_fassung = neu (prinzipien.php). Alles hängt an body.sy-p.
   Kastenfarben: höchstens zwei — Weiß (Inhalt) und Navy (Aufforderung/App). */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/sora-700-latin.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap;
  src: url(fonts/playfair-600i-latin.woff2) format("woff2"); }

body.sy-p {
  --p-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --p-grund: var(--sy-water);
  --p-linie: rgba(11, 30, 51, .09);
  --p-auf-navy: #F1F5F8;
  --p-auf-navy-2: #A6B8C8;
  --p-link: #17807A;                 /* Spray, für Text auf Weiß lesbar abgedunkelt */
  --p-schatten: 0 1px 2px rgba(11, 30, 51, .05), 0 10px 30px rgba(11, 30, 51, .08);
  --p-schatten-gross: 0 2px 6px rgba(11, 30, 51, .06), 0 24px 60px rgba(11, 30, 51, .12);
  --sy-sans: var(--p-sans);
  --sy-display: var(--p-sans);
  --sy-serif: var(--p-sans);
  background: var(--p-grund);
  font-family: var(--p-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Prinzip 4 + 5: Systemschrift und Satzschreibung überall — auch in legacy.css und im
   App-Block von Kielwasser, die feste Schriften und Versalien setzen. Nur der Schriftzug bleibt. */
body.sy-p *:not(.sy-brand-name, .sy-brand-name *, code, pre, kbd, samp) {
  font-family: var(--p-sans) !important;
  text-transform: none !important;
}
body.sy-p .sy-brand-name { font-family: "Sora", var(--p-sans); }
body.sy-p .sy-brand-name .sy { font-family: "Playfair Display", Georgia, serif; }

/* ── Menüleiste: voll deckendes Navy, ohne Trennlinie — geht nahtlos ins Kopfband über ── */
body.sy-p .sy-header { border-bottom: 0; }
body.sy-p .sy-header-inner { padding: 14px 24px; }
body.sy-p .sy-brand img { width: 44px; height: 44px; border-radius: 11px; }
body.sy-p .sy-nav { gap: 20px; }
body.sy-p .sy-nav a { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .86); }
body.sy-p .sy-nav a:hover { color: #fff; }
body.sy-p .sy-lang { gap: 4px; margin-left: 6px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
body.sy-p .sy-lang a { font-size: 13px; padding: 4px 11px; border-radius: 999px; }
body.sy-p .sy-lang .aktiv { background: #fff; color: var(--sy-navy); }

/* ── Knöpfe als Pillen ── */
body.sy-p .sy-btn,
body.sy-p .rd-btn,
body.sy-p .rda-btn {
  border-radius: 999px; padding: 12px 24px; font-size: 16px; font-weight: 600; letter-spacing: 0;
}
body.sy-p .sy-btn:hover { color: #fff; background: #26918A; }

/* ── Startseite: Fotokopf bleibt (Stimmung), aber nicht höher als nötig ── */
body.sy-p .sy-hero { min-height: min(62vh, 680px); }
body.sy-p .sy-hero h1 { font-weight: 800; font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
body.sy-p .sy-hero p { font-size: clamp(17px, 1.5vw, 19px); }
body.sy-p .sy-wellen path { fill: var(--p-grund); }

/* Abschnittsetiketten in Satzschreibung statt gesperrter Versalien */
body.sy-p .sy-eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
body.sy-p .sy-hero .sy-eyebrow { font-size: 16px; }

/* ── Abschnitte: ein Grund, ~72 px Abstand ── */
body.sy-p .sy-sec { padding: 72px 24px; }
body.sy-p .sy-sec-water { background: transparent; }
body.sy-p .sy-sec-water .sy-sec { padding-top: 8px; }
body.sy-p .sy-sec-kopf { margin-bottom: 28px; }
body.sy-p .sy-sec-kopf h2 { font-weight: 800; font-size: clamp(28px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.15; }
body.sy-p .sy-sec-kopf p { font-size: 17px; color: var(--sy-mist); }

/* ── Galerie: ganze Fotos, kein fester Ausschnitt (Prinzip 7) — in Zeilen gleicher Höhe ──
   23.11.2026 Christian: „die bilderanordnung gefällt mir noch nicht" — die Spalten (columns) endeten unten
   unterschiedlich lang. Jetzt Blocksatz-Zeilen: jedes Bild wächst im Verhältnis seines Seitenformats (--ar),
   dadurch haben alle Bilder einer Zeile dieselbe Höhe, die Zeilen schließen bündig ab und nichts wird beschnitten. */
body.sy-p .sy-p-galerie { display: flex; flex-wrap: wrap; gap: 16px; }
body.sy-p .sy-p-galerie::after { content: ""; flex-grow: 999; }
body.sy-p .sy-p-galerie figure { margin: 0; flex: var(--ar, 1.33) 1 calc(var(--ar, 1.33) * 260px); }
body.sy-p .sy-p-galerie img {
  width: 100%; height: auto; border-radius: 18px; box-shadow: var(--p-schatten); background: #fff;
}

/* ── Kennzahlen als durchgehende Instrumentenleiste statt Einzelkästchen (Prinzip 8) ── */
body.sy-p .sy-fakten {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  background: #fff; border-radius: 22px; box-shadow: var(--p-schatten); margin-top: 24px; overflow: hidden;
}
body.sy-p .sy-fakt { background: none; border: 0; border-radius: 0; padding: 18px 24px; border-left: 1px solid var(--p-linie); }
body.sy-p .sy-fakt:first-child { border-left: 0; }
body.sy-p .sy-fakt .label { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--sy-mist); }
body.sy-p .sy-fakt .wert { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--sy-navy); margin-top: 2px; }

/* ── Skipper: weiße Karte ohne Rahmen ── */
body.sy-p .sy-skipper {
  background: #fff; border: 0; border-radius: 22px; box-shadow: var(--p-schatten);
  max-width: 860px; margin-top: 24px; padding: 28px 32px;
}
body.sy-p .sy-skipper-foto { box-shadow: none; }
body.sy-p .sy-skipper-tx h3 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
body.sy-p .sy-skipper-tx p { font-size: 16px; line-height: 1.6; }

/* ── Törnkarten: randlos, weicher Schatten, großer Radius ── */
body.sy-p .rd-trips-grid { gap: 18px; }
body.sy-p .rd-trip-card { border: 0; border-radius: 20px; box-shadow: var(--p-schatten); overflow: hidden; background: #fff; }
body.sy-p .rd-trip-card:hover { box-shadow: var(--p-schatten-gross); transform: none; }
body.sy-p .rd-trip-body { padding: 14px 18px 18px; }
body.sy-p .rd-trip-date { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--sy-mist); }
body.sy-p .rd-trip-title-link { text-decoration: none; }
body.sy-p .rd-trip-name { font-size: 19px; font-weight: 700; letter-spacing: -.015em; color: var(--sy-navy); text-decoration: none; }
body.sy-p .rd-trip-meta { font-size: 13px; }
/* Der Kurzcode bringt einen eigenen „Alle Törns"-Link mit — die Seite hat schon den Knopf darunter. */
body.sy-p .sy-toerns .rd-trips-grid + p { display: none; }
body.sy-p .sy-toerns > p { font-size: 15px; color: var(--sy-ink); }
body.sy-p .sy-toerns > p a:not(.sy-btn),
body.sy-p .sy-seite-inhalt a:not(.sy-btn) { color: var(--p-link); }

/* ── App-Block (von Kielwasser gerendert): Weiß + Navy, keine dritte Kastenfarbe ── */
body.sy-p .rda-hero { border-radius: 28px; }
body.sy-p .rda .eyebrow { letter-spacing: 0; font-size: 15px; }
body.sy-p .rda-hero h1 { font-weight: 800; letter-spacing: -.025em; font-size: clamp(34px, 5vw, 48px); line-height: 1.08; }
body.sy-p .rda-hero h1 em { font-style: normal; }
body.sy-p .rda-stat .num { font-weight: 800; letter-spacing: -.02em; }
body.sy-p .rda-stat .lbl { letter-spacing: 0; font-size: 13px; }
body.sy-p .rda-sec { margin-top: 72px; }
body.sy-p .rda-sec-head h2 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(28px, 3vw, 32px); }
body.sy-p .rda-appbar,
body.sy-p .rda-hl,
body.sy-p .rda-card,
body.sy-p .rda-role,
body.sy-p .rda-wf .step {
  background: #fff; border: 0; border-radius: 20px; box-shadow: var(--p-schatten);
}
body.sy-p .rda-appbar, body.sy-p .rda-hl { border-radius: 22px; }
body.sy-p .rda-appbar .meta strong, body.sy-p .rda-hl h3, body.sy-p .rda-role h3, body.sy-p .rda-cta h2 { font-weight: 700; letter-spacing: -.015em; }
body.sy-p .rda-tier { letter-spacing: 0; font-size: 12px; }
body.sy-p .rda-tier.basis { background: var(--p-grund); border: 0; }
body.sy-p .rda-cta { border-radius: 28px; }
/* „Neu in …"-Kasten bringt Rahmen + Tönung inline mit → weiße Karte wie die übrigen */
body.sy-p .rda div[style*="border-left:4px"] {
  border: 0 !important; background: #fff !important; border-radius: 20px !important; box-shadow: var(--p-schatten);
}

/* ── Unterseiten: Navy-Kopfband (Prinzip 6) ── */
body.sy-p .sy-p-kopf { background: var(--sy-navy); color: #fff; padding: 40px 24px 96px; }
body.sy-p .sy-p-kopf-inner { max-width: 860px; margin: 0 auto; }
body.sy-p .sy-p-krume { font-size: 14px; font-weight: 600; color: var(--p-auf-navy-2); margin-bottom: 14px; }
body.sy-p .sy-p-krume a { color: var(--p-auf-navy-2); text-decoration: none; }
body.sy-p .sy-p-krume a:hover { color: #fff; }
body.sy-p .sy-p-krume span[aria-hidden] { margin: 0 6px; }
body.sy-p .sy-p-kopf h1 {
  margin: 0; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em;
  text-wrap: balance; color: #fff;
}
body.sy-p .sy-p-unter { margin: 14px 0 0; font-size: clamp(17px, 1.4vw, 19px); color: rgba(255, 255, 255, .78); max-width: 60ch; }

/* Lange Texte auf weißer Lesefläche, die ins Kopfband hineinragt */
body.sy-p .sy-p-seite { padding: 0 16px 72px; }
body.sy-p .sy-p-lese {
  max-width: 860px; margin: -64px auto 0; position: relative;
  background: #fff; border-radius: 26px; box-shadow: var(--p-schatten);
  padding: clamp(26px, 5vw, 56px);
  font-size: 17px; line-height: 1.65; color: var(--sy-ink);
}
body.sy-p .sy-p-lese > :first-child { margin-top: 0; }
body.sy-p .sy-p-lese > :last-child { margin-bottom: 0; }
body.sy-p .sy-p-lese h2 { font-size: clamp(22px, 2vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--sy-navy); margin: 40px 0 10px; }
body.sy-p .sy-p-lese h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--sy-navy); margin: 28px 0 8px; }
body.sy-p .sy-p-lese h4 { font-size: 17px; font-weight: 700; color: var(--sy-navy); margin: 22px 0 6px; }
body.sy-p .sy-p-lese ul, body.sy-p .sy-p-lese ol { padding-left: 1.3em; }
body.sy-p .sy-p-mitte { text-align: center; }
/* Seite ohne Inhalt (alte Ankerseiten wie /das-boot/): kein Platz für eine Lesefläche freihalten */
body.sy-p .sy-p-kopf:has(+ .sy-p-seite--leer) { padding-bottom: 48px; }   /* :has() lässt sich nicht verschachteln */
body.sy-p .sy-p-seite--leer { padding-bottom: 72px; }

/* ── Fußzeile in Spalten, im selben Navy wie das Menü (Prinzip 1 + 9) ── */
body.sy-p .sy-p-fuss { background: var(--sy-navy); color: var(--p-auf-navy-2); }
body.sy-p .sy-p-fuss-inner {
  max-width: 1160px; margin: 0 auto; padding: 56px 24px 32px;
  display: grid; grid-template-columns: minmax(200px, 1.1fr) 3fr; gap: 32px 48px;
}
body.sy-p .sy-p-fuss-marke .sy-brand img { width: 40px; height: 40px; border-radius: 10px; }
body.sy-p .sy-p-fuss-marke .sy-brand-name { font-size: 1.2rem; }
body.sy-p .sy-p-fuss-marke p { margin: 14px 0 0; font-size: 14px; line-height: 1.55; max-width: 30ch; }
body.sy-p .sy-p-fuss-gruppen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
body.sy-p .sy-p-fuss-gruppe { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
body.sy-p .sy-p-fuss-gruppe h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0; }
body.sy-p .sy-p-fuss-gruppe a { font-size: 14px; color: #D8E2EA; text-decoration: none; overflow-wrap: anywhere; }
body.sy-p .sy-p-fuss-gruppe a:hover { color: #fff; }
body.sy-p .sy-p-fuss-claim {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px;
}
body.sy-p .sy-p-fuss-claim a { color: #D8E2EA; }
body.sy-p .sy-p-fuss-sprache { margin-left: auto; display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
body.sy-p .sy-p-fuss-sprache a { padding: 3px 11px; border-radius: 999px; text-decoration: none; color: #D8E2EA; }
body.sy-p .sy-p-fuss-sprache a[aria-current] { background: #fff; color: var(--sy-navy); font-weight: 600; }

/* ── Schmal ── */
@media (max-width: 900px) {
  body.sy-p .sy-p-fuss-inner { grid-template-columns: 1fr; }
  body.sy-p .sy-p-fuss-gruppen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  /* Menü: Textlinks weg (wie bisher), der Sprachumschalter bleibt erreichbar */
  body.sy-p .sy-nav { display: flex; }
  body.sy-p .sy-nav > a { display: none; }
  body.sy-p .sy-header-inner { padding: 12px 16px; }
  body.sy-p .sy-brand { gap: 10px; }
  body.sy-p .sy-brand img { width: 38px; height: 38px; }
  body.sy-p .sy-brand-name { font-size: 1.15rem; }
  body.sy-p .sy-sec { padding: 56px 16px; }
  body.sy-p .sy-p-galerie { gap: 10px; }
  body.sy-p .sy-p-galerie figure { flex-basis: calc(var(--ar, 1.33) * 140px); }
  body.sy-p .sy-p-galerie img { border-radius: 16px; }
  body.sy-p .sy-fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sy-p .sy-fakt:nth-child(3) { border-left: 0; }
  body.sy-p .sy-fakt:nth-child(n+3) { border-top: 1px solid var(--p-linie); }
  body.sy-p .sy-fakt { padding: 14px 18px; }
  body.sy-p .sy-skipper { padding: 24px 20px; }
  body.sy-p .sy-p-kopf { padding: 28px 16px 84px; }
  body.sy-p .sy-p-seite { padding: 0 12px 56px; }
  body.sy-p .sy-p-lese { border-radius: 22px; }
  body.sy-p .sy-p-fuss-inner { padding: 44px 16px 28px; }
  body.sy-p .sy-p-fuss-sprache { margin-left: 0; }
}
