/* ==========================================================================
   Indian Register of Shipping GmbH – „Freibord“
   Rumpf an der Wasserlinie, Signalflaggen am Mast, Lotsenleiter, Deck-Logbuch,
   Kaje mit Pollern. Reihenfolge: Schriften → Tokens → Basis → Bausteine →
   Kopf/Mast → Abschnitte → Rechtstexte → Einwilligung → Hilfsklassen →
   Bewegung → Druck.
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/libre-franklin-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/libre-franklin-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/crimson-pro-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/crimson-pro-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/crimson-pro-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/crimson-pro-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Rumpf, Unterwasseranstrich, Deck, Messing */
  --navy: #0f2a44;
  --navy-deep: #0a1c2e;
  --red: #a3312a;
  --red-deep: #7a2620;
  --deck: #f4f1ea;
  --deck-2: #ebe6db;
  --paper: #fffdf8;
  --ink: #13212e;
  --ink-soft: #4d5966;
  --brass: #d4b065;
  --brass-ink: #7d5f1c;
  --steel: #c9d3dd;
  --steel-dim: #9fb3c6;
  --sea: #1b5a70;
  --rope: #c9a46a;
  --rope-dark: #9c7a45;
  --wood: #b9854d;
  --wood-dark: #8e5f2f;
  --concrete: #6f7c88;
  --field: #7b8794;
  --line: rgb(19 33 46 / 0.14);
  --line-strong: rgb(19 33 46 / 0.32);

  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;

  --step-0: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.7vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.4rem);

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --space: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --wrap: 72rem;
  --rail: 15.5rem;
  --bar-h: 4.25rem;
  --radius: 3px;
  --shadow: 0 1px 2px rgb(10 28 46 / 0.12), 0 8px 24px -12px rgb(10 28 46 / 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
}

body {
  margin: 0;
  background: var(--deck);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-wrap: break-word;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.15;
  text-wrap: balance;
}

p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

img, svg { display: block; max-width: 100%; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

/* ---------- Bausteine ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }

.btn-line { border-color: var(--steel); color: var(--deck); }
.btn-line:hover { background: var(--deck); color: var(--navy); }

/* Abschnittskennung: Flagge + Buchstabe im Funkalphabet */
.signal {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  color: var(--brass-ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.signal-dark { color: var(--brass); }
.signal-flag {
  width: 2.25rem;
  height: 1.5rem;
  box-shadow: 0 2px 4px rgb(10 28 46 / 0.25);
}

.section { padding-block: var(--space); }
.section h2 { max-width: 30ch; margin-bottom: 1.25rem; color: var(--navy); font-size: var(--step-3); font-weight: 800; letter-spacing: -0.01em; }
.section-lead { max-width: 44rem; color: var(--ink-soft); }

/* Kürzel der Leistungsart */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.tag-ze { background: var(--brass-ink); }
.tag-in { background: var(--sea); }

/* ---------- Kopf: Mast mit Flaggenhoist (Desktop) bzw. Leiste (mobil) ---------- */
.mast { z-index: 30; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
}
.brand-mark { flex: none; width: 2.5rem; height: 2.5rem; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-top {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-bottom {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}

.hoist-head {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hoist-list { margin: 0; padding: 0; list-style: none; }

.hoist-link {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.1rem;
  color: var(--ink);
  text-decoration: none;
}
.hoist-flag {
  width: 3rem;
  height: 2rem;
  transform-origin: left center;
  filter: drop-shadow(0 2px 2px rgb(10 28 46 / 0.22));
  transition: transform 0.35s ease;
}
.hoist-text { display: flex; flex-direction: column; line-height: 1.2; }
.hoist-code {
  color: var(--brass-ink);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hoist-name {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.hoist-link:hover .hoist-name { text-decoration: underline; text-underline-offset: 0.2em; }
.hoist-link:hover .hoist-flag { transform: translateX(0.2rem); }

/* Die Flagge des sichtbaren Abschnitts weht aus. */
.hoist-link[aria-current="true"] .hoist-flag { transform: translateX(0.55rem); animation: flutter 2.6s ease-in-out infinite; }
.hoist-link[aria-current="true"] .hoist-name { color: var(--red); font-weight: 800; }

@keyframes flutter {
  0%, 100% { transform: translateX(0.55rem) skewY(0deg) scaleX(1); }
  50% { transform: translateX(0.55rem) skewY(-3deg) scaleX(1.05); }
}

.mast-foot { display: flex; flex-direction: column; gap: 0.35rem; }
.mast-cta { width: 100%; margin-bottom: 0.4rem; padding-inline: 0.75rem; font-size: 0.95rem; }
.mast-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.mast-contact svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--brass-ink); }
.mast-contact:hover { text-decoration: underline; }

.bar-actions { display: flex; align-items: center; gap: 0.5rem; }
.bar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.bar-toggle svg { width: 1.3rem; height: 1.3rem; }
.bar-toggle:hover { background: var(--deck-2); }
.bar-toggle[aria-expanded="true"] { background: var(--navy); color: var(--deck); }
.bar-cta { min-height: 44px; padding-inline: 1rem; }

/* Desktop: fester Mast am linken Rand */
@media (min-width: 68.75rem) {
  html { scroll-padding-top: 1.5rem; }

  .mast {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: var(--rail);
    padding: 1.5rem 1.25rem 1.25rem;
    overflow-y: auto;
    border-right: 1px solid var(--line-strong);
    background: var(--deck-2);
  }
  .page { margin-left: var(--rail); }
  .bar-actions { display: none; }

  .hoist-wrap { display: flex; flex: 1; }
  .hoist-panel { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 2rem; }

  .hoist { position: relative; margin-top: 2.25rem; padding: 1.4rem 0 1.4rem; }
  /* Mast mit Flaggenknopf, daneben die Flaggleine, an der die Flaggen hängen */
  .hoist::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--wood-dark), var(--wood) 60%, var(--wood-dark));
  }
  .hoist::after {
    content: "";
    position: absolute;
    top: -0.55rem;
    left: -0.3rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--brass);
    box-shadow: inset -2px -2px 0 rgb(10 28 46 / 0.25);
  }
  .hoist-head { position: absolute; top: -2.2rem; left: 1rem; }
  .hoist-list { position: relative; padding-left: 0.65rem; }
  .hoist-list::before {
    content: "";
    position: absolute;
    top: -1.2rem;
    bottom: -1.2rem;
    left: 0.6rem;
    width: 2px;
    background: var(--rope-dark);
  }
  .hoist-list li + li { margin-top: 0.4rem; }
  .hoist-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rope-dark);
    transition: width 0.35s ease;
  }
  .hoist-link[aria-current="true"]::before { width: 0.6rem; }
}

/* Mobil und Tablet: Leiste oben, Flaggen als waagerechte Leine im Ausklappbereich */
@media (max-width: 68.74rem) {
  .mast {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: var(--bar-h);
    padding-inline: var(--gutter);
    border-bottom: 1px solid var(--line-strong);
    background: var(--deck);
  }

  .hoist-panel {
    padding: 1.5rem var(--gutter) 1.75rem;
    border-bottom: 5px solid var(--navy);
    background: var(--deck);
    box-shadow: var(--shadow);
  }
  .js .hoist-wrap {
    position: fixed;
    inset: var(--bar-h) 0 0;
    overflow-y: auto;
    background: rgb(10 28 46 / 0.55);
  }
  .js .hoist-wrap:not(.is-open) { display: none; }

  .hoist-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 1.25rem;
  }
  .hoist-list li { position: relative; padding-top: 0.75rem; }
  /* Jede Zelle trägt ihr Stück Leine; zusammen ergibt das eine durchgehende Flaggleine. */
  .hoist-list li::before {
    content: "";
    position: absolute;
    top: 0.3rem;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--rope-dark);
  }
  .hoist-link {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.45rem;
    padding: 0 0.25rem 0.35rem;
    text-align: center;
  }
  .hoist-flag { width: 3.3rem; height: 2.2rem; transform-origin: center top; }
  .hoist-link:hover .hoist-flag { transform: translateY(0.15rem); }
  .hoist-link[aria-current="true"] .hoist-flag { transform: none; animation: none; }
  .hoist-text { align-items: center; }
  .hoist-name { font-size: 0.98rem; }

  .mast-foot {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }
  /* Der Anfrage-Button steht schon in der Leiste. */
  .mast-cta { display: none; }
}

@media (max-width: 37.49rem) {
  .hoist-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 24.99rem) {
  .brand-mark { display: none; }
  .bar-toggle { padding-inline: 0.65rem; }
  .bar-cta { padding-inline: 0.8rem; }
}

@media (max-width: 21.99rem) {
  .brand-top { font-size: 0.82rem; }
  .brand-bottom { font-size: 0.94rem; }
  .bar-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Hero: Rumpf an der Wasserlinie ---------- */
.hull {
  --dr-h: clamp(17rem, 9rem + 24vw, 30rem);
  --dr-w: calc(var(--dr-h) * 0.2222);
  --sea-h: calc(var(--dr-h) * 0.375);
  --pl-w: clamp(10rem, 5rem + 15vw, 20rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--navy);
  /* Plattengänge: waagerechte Nähte und versetzte Stoßnähte */
  background-image:
    linear-gradient(180deg, var(--deck) 0 0.6rem, var(--brass) 0.6rem 0.8rem, transparent 0.8rem),
    repeating-linear-gradient(180deg, transparent 0 9.5rem, rgb(255 255 255 / 0.06) 9.5rem calc(9.5rem + 1px)),
    repeating-linear-gradient(90deg, transparent 0 18rem, rgb(255 255 255 / 0.045) 18rem calc(18rem + 1px));
  color: var(--deck);
}
/* Wasserpass: roter Unterwasseranstrich beginnt kurz über der Wasserlinie */
.hull::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: calc(var(--sea-h) + 1.4rem);
  border-top: 3px solid rgb(244 241 234 / 0.75);
  background: var(--red);
}

.hull-inner {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) var(--gutter) calc(var(--sea-h) + 2.75rem);
}

.hull-copy { max-width: 40rem; }
.hull h1 {
  margin-bottom: 1.4rem;
  color: #fff;
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  hyphens: manual;
}
.hull-lead { max-width: 36rem; color: var(--steel); font-size: var(--step-1); }
.hull-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.en-summary {
  max-width: 34rem;
  margin-top: 2.75rem;
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-left: 3px solid var(--brass);
}
.en-summary h2 {
  margin-bottom: 0.4rem;
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.en-summary p { margin: 0; color: var(--steel); font-size: 1.05rem; font-style: italic; }

@media (min-width: 75rem) {
  .hull-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
    column-gap: clamp(2.5rem, 4vw, 5rem);
    padding-right: calc(var(--dr-w) + clamp(1.5rem, 3vw, 3rem));
  }
  .en-summary { align-self: end; margin: 0 0 0.25rem; }
  .nameboard { grid-column: 1 / -1; }
}

/* Heckaufschrift: Heimathafen mit der Anschrift darunter */
.nameboard {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: clamp(2.5rem, 1rem + 4vw, 4.5rem) 0 0;
  padding-right: calc(var(--dr-w) + 0.5rem);
  color: var(--deck);
  font-family: var(--sans);
}
.nameboard-port {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem);
  font-weight: 800;
  letter-spacing: clamp(0.14em, 0.08em + 0.6vw, 0.24em);
  white-space: nowrap;
  line-height: 1;
  text-transform: uppercase;
  /* aufgeschweißte Buchstaben: Licht oben, Schatten unten */
  text-shadow: 0 -1px 0 rgb(255 255 255 / 0.35), 0 2px 0 rgb(0 0 0 / 0.35);
}
.nameboard-street {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
  color: var(--brass);
  font-size: clamp(0.85rem, 0.8rem + 0.25vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nameboard-street span { white-space: nowrap; }
.nameboard-street span + span::before { content: "·"; margin-right: 0.6rem; }

@media (max-width: 37.49rem) {
  .nameboard-street { flex-direction: column; font-size: 0.8rem; letter-spacing: 0.09em; }
  .nameboard-street span + span::before { content: none; }
}

.plimsoll,
.draught { position: absolute; z-index: 0; color: rgb(244 241 234 / 0.9); }

.plimsoll {
  right: calc(var(--dr-w) + clamp(2rem, 4vw, 5rem));
  bottom: calc(var(--sea-h) + 0.35rem - var(--pl-w) * 0.1607);
  width: var(--pl-w);
}
.plimsoll-letters { font-family: var(--sans); font-size: 34px; font-weight: 800; }

.draught {
  right: clamp(0.5rem, 2vw, 2rem);
  bottom: 0;
  width: var(--dr-w);
  height: var(--dr-h);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
}
.draught tspan { font-size: 11px; }

.sea {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: var(--sea-h);
  background: linear-gradient(180deg, rgb(27 90 112 / 0.86), rgb(10 28 46 / 0.96));
}
.sea-wave {
  position: absolute;
  left: 0;
  width: 200%;
  max-width: none;
  height: 2rem;
  animation: swell 16s linear infinite;
}
.sea-wave-back { bottom: calc(100% - 1px); height: 2.7rem; fill: rgb(80 150 170 / 0.4); animation-duration: 23s; animation-direction: reverse; }
.sea-wave-front { bottom: calc(100% - 1px); fill: rgb(27 90 112 / 0.86); }

@keyframes swell {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Unter 900 px liegt die Lademarke unter dem Text, links neben den Tiefgangsmarken. */
@media (max-width: 56.24rem) {
  .hull-inner { padding-bottom: calc(var(--sea-h) + var(--pl-w) * 0.304 + 3rem); }
  .plimsoll { right: auto; left: var(--gutter); }
}

/* ---------- G: Gesellschaft ---------- */
.company-grid { display: grid; gap: 2.5rem; }
.company-text p { max-width: 40rem; }

.particulars {
  margin: 0;
  border-top: 3px solid var(--navy);
  font-family: var(--sans);
}
.particulars div {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line-strong);
}
.particulars dt { color: var(--ink-soft); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.15rem; }
.particulars dd { margin: 0; font-size: 1rem; font-weight: 600; }

.berths-title {
  margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 1.25rem;
  color: var(--navy);
  font-size: var(--step-2);
  font-weight: 800;
}
.berths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.berths li { padding-top: 1rem; border-top: 3px solid var(--red); }
.berths h4 { margin-bottom: 0.5rem; color: var(--navy); font-size: 1.1rem; font-weight: 700; }
.berths p { margin: 0; color: var(--ink-soft); }

@media (min-width: 56.25rem) {
  .company-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .company-grid .particulars { margin-top: 0.5rem; }
}

/* ---------- L: Leistungen entlang des Rumpfs ---------- */
.lifecycle { border-block: 1px solid var(--line); background: var(--paper); }

.kinds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem 2rem;
  margin: 2rem 0 0;
}
.kind dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 700;
}
.kind dd { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.kind-ze .tag { background: var(--brass-ink); }
.kind-in .tag { background: var(--sea); }

.profile { margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; }
.profile-art { width: 100%; height: auto; }
.profile-pins { fill: var(--navy); }
.profile-pin-text { fill: #fff; font-family: var(--sans); font-size: 18px; font-weight: 800; }

.phases {
  display: grid;
  gap: 2.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.phase { display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 0.85rem; }
.phase-no {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-weight: 800;
}
.phase h3 { align-self: center; color: var(--navy); font-size: var(--step-2); font-weight: 800; }
.phase-when {
  grid-column: 1 / -1;
  margin: 0.6rem 0 0.75rem;
  color: var(--brass-ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.surveys { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; }
.surveys li {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}
.surveys .tag { margin-top: 0.1rem; }
.surveys h4 { margin-bottom: 0.25rem; color: var(--ink); font-size: 1.02rem; font-weight: 700; hyphens: manual; }
.surveys p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.45; }

@media (min-width: 56.25rem) {
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

/* ---------- V: Verfahren als Lotsenleiter an der Bordwand ---------- */
.ladder-section {
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 9.5rem, rgb(255 255 255 / 0.05) 9.5rem calc(9.5rem + 1px)),
    repeating-linear-gradient(90deg, transparent 0 18rem, rgb(255 255 255 / 0.04) 18rem calc(18rem + 1px));
  color: var(--deck);
}
.ladder-grid { display: grid; gap: 2.5rem; }
.ladder-section h2 { color: #fff; }
.ladder-intro p:last-child { max-width: 34rem; color: var(--steel); }

.ladder {
  --rung: clamp(4rem, 3rem + 4vw, 7.5rem);
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Zwei gedrehte Seile, zwischen denen die Holzsprossen hängen */
.ladder::before,
.ladder::after {
  content: "";
  position: absolute;
  top: -1.5rem;
  bottom: -0.5rem;
  width: 6px;
  border-radius: 3px;
  background: repeating-linear-gradient(-50deg, var(--rope) 0 4px, var(--rope-dark) 4px 7px);
}
.ladder::before { left: 0; }
.ladder::after { left: calc(var(--rung) - 6px); }

.rung {
  display: grid;
  grid-template-columns: var(--rung) 1fr;
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
  padding-block: 1.1rem;
}
.rung-step {
  display: grid;
  place-items: center;
  height: 1.75rem;
  margin: 0.15rem -3px 0;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--wood) 0 60%, var(--wood-dark));
  box-shadow: 0 3px 0 rgb(0 0 0 / 0.3);
  color: var(--navy-deep);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
}
.rung-body h3 { margin-bottom: 0.4rem; color: #fff; font-size: var(--step-1); font-weight: 700; }
.rung-time {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 0.2em;
  white-space: nowrap;
}
.rung-body p { max-width: 38rem; margin: 0; color: var(--steel); }

@media (min-width: 75rem) {
  .ladder-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
  .ladder-intro { position: sticky; top: 3rem; }
}

/* ---------- F: Fragen als Deck-Logbuch ---------- */
.log {
  max-width: 58rem;
  margin-top: 2rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 1.1rem;
}
.log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 1rem clamp(1rem, 3vw, 1.75rem);
  border-bottom: 3px double var(--navy);
  font-family: var(--sans);
}
.log-title { margin: 0; color: var(--navy); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.log-meta { margin: 0; color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; }

.log-columns,
.log-entry { display: grid; grid-template-columns: clamp(4.4rem, 3.6rem + 2.5vw, 6.5rem) 1fr; }
.log-columns {
  margin: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.log-columns span { padding: 0.5rem clamp(0.5rem, 1.5vw, 1.4rem); white-space: nowrap; }
.log-columns span:first-child { border-right: 2px solid rgb(163 49 42 / 0.5); }

.log-entries { margin: 0; padding: 0; list-style: none; }
.log-entry + .log-entry { border-top: 1px solid var(--line); }
.log-time {
  margin: 0;
  padding: 1.15rem clamp(0.5rem, 1.5vw, 1.4rem);
  border-right: 2px solid rgb(163 49 42 / 0.5);
  color: var(--red);
  font-family: var(--sans);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.log-text { padding: 1.1rem clamp(0.85rem, 3vw, 1.75rem) 1.2rem; }
.log-text h3 { margin-bottom: 0.4rem; color: var(--navy); font-size: 1.1rem; font-weight: 700; }
.log-text p { margin: 0; color: var(--ink-soft); }

/* ---------- A: Bereitschaftsmeldung (Formular) ---------- */
.request { background: var(--deck-2); }
.request-grid { display: grid; gap: 2.5rem; }
.request-intro p:not(.signal) { max-width: 36rem; }
.request-intro h2 { font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); }
.request-direct { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.request-direct a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
}
.request-direct a:hover { text-decoration: underline; }
.request-direct svg { width: 1.2rem; height: 1.2rem; color: var(--red); }

@media (min-width: 87.5rem) {
  .request-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr); gap: 3.5rem; align-items: start; }
  .request-intro { position: sticky; top: 3rem; }
}

.nor {
  position: relative;
  padding: clamp(1.1rem, 0.5rem + 3vw, 2.25rem);
  border: 2px solid var(--navy);
  background: var(--paper);
  box-shadow: var(--shadow);
  font-family: var(--sans);
}
.nor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px double var(--navy);
}
.nor-title { margin: 0; color: var(--navy); font-size: var(--step-1); font-weight: 800; letter-spacing: 0.06em; line-height: 1.2; text-transform: uppercase; }
.nor-title span { display: block; color: var(--brass-ink); font-size: 0.78rem; letter-spacing: 0.14em; }
.nor-to { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.45; }
.nor-hint { margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 0.88rem; }
.req { color: var(--red); font-weight: 700; }

.nor-part { min-width: 0; margin: 1.4rem 0 0; padding: 1.2rem 0 0; border: 0; border-top: 1px solid var(--line-strong); }
.nor-part legend {
  float: left;
  width: 100%;
  margin-bottom: 0.9rem;
  padding: 0;
  color: var(--brass-ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nor-part legend + * { clear: both; }

.nor-grid { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 37.5rem) {
  .nor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.box { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.box-wide { margin-top: 1.1rem; }
.box label { font-size: 0.95rem; font-weight: 600; }
.box-no {
  margin-right: 0.45rem;
  color: var(--brass-ink);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.box input,
.box select,
.box textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--field);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
}
.box textarea { min-height: 7rem; resize: vertical; }
.box input:hover,
.box select:hover,
.box textarea:hover { border-color: var(--navy); }
.box input:focus-visible,
.box select:focus-visible,
.box textarea:focus-visible { border-color: var(--navy); outline-offset: 1px; }
.box [aria-invalid="true"] { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.box-hint { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }
.box-error { margin: 0; color: var(--red); font-size: 0.88rem; font-weight: 600; }
.box-error:empty { display: none; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 0.55rem; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice:hover { border-color: var(--navy); }
.choice input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.08rem 0 0; accent-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--navy); background: #eef2f6; }
.choice:has(input[aria-invalid="true"]) { border-color: var(--red); }
.nor-part > .box-error { margin-top: 0.6rem; }

.nor-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 3px double var(--navy);
}
.nor-privacy { flex: 1 1 22rem; margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.nor-submit:disabled { opacity: 0.7; cursor: progress; }

.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 0.85rem 1rem; border-left: 4px solid var(--sea); background: #e8f0f2; }
.form-status.is-error { padding: 0.85rem 1rem; border-left: 4px solid var(--red); background: #f6e7e5; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fußzeile: Kaje mit Pollern und Festmacherleinen ---------- */
.quay { position: relative; background: var(--navy-deep); color: var(--steel); font-family: var(--sans); }
.quay-edge {
  height: 2.75rem;
  border-bottom: 8px solid var(--concrete);
  background: linear-gradient(180deg, var(--sea), #123f52);
}
.quay-inner { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter) 2rem; }

.bollards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.bollards li { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 4.5rem; }
.rope {
  position: absolute;
  top: calc(-2.75rem - 8px);
  right: 50%;
  width: 7rem;
  height: calc(2.75rem + 8px + 5.55rem);
  fill: none;
  stroke: var(--rope);
  stroke-width: 3;
  stroke-linecap: round;
  overflow: visible;
}
.rope path { vector-effect: non-scaling-stroke; }
.bollards .bollard { width: 4rem; height: 3.5rem; }
.bollards a,
.bollards button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  border: 0;
  background: none;
  color: var(--deck);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.bollards a:hover,
.bollards button:hover { color: var(--brass); text-decoration: underline; text-underline-offset: 0.2em; }
.bollards [aria-current="page"] { color: var(--brass); }

.quay-firm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.5rem 2rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(201 211 221 / 0.2);
  font-size: 0.92rem;
  line-height: 1.6;
}
.quay-firm p { margin: 0; }
.quay-firm strong { color: var(--deck); }
.quay-firm a { color: var(--deck); text-decoration: none; }
.quay-firm a:hover { text-decoration: underline; }
.quay-legal { margin: 1.75rem 0 0; color: var(--steel-dim); font-size: 0.8rem; }

@media (max-width: 47.49rem) {
  .bollards { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); row-gap: 0.5rem; padding-top: 1.5rem; }
  .bollards li { flex-direction: row; gap: 0.25rem; padding-top: 0; }
  .bollards .bollard { flex: none; width: 2.6rem; height: 2.3rem; }
  .rope { display: none; }
  .bollards a,
  .bollards button { text-align: left; }
}

/* ---------- Rechtstexte und Fehlerseite ---------- */
.doc { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--space); }
.doc .wrap { max-width: 48rem; }
.doc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--brass-ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.doc-kicker svg { width: 2rem; height: 2rem; }
.doc h1 { margin-bottom: 0.75rem; color: var(--navy); font-size: var(--step-3); font-weight: 800; letter-spacing: -0.01em; hyphens: manual; }
.doc-stand { color: var(--ink-soft); font-family: var(--sans); font-size: 0.9rem; }
.doc-lead { font-size: var(--step-1); }
.doc h2 {
  margin: 2.5rem 0 0.8rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--navy);
  color: var(--navy);
  font-size: var(--step-1);
  font-weight: 800;
}
.doc h3 { margin: 1.5rem 0 0.5rem; color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.doc ul,
.doc ol { margin: 0 0 1em; padding-left: 1.3em; }
.doc li + li { margin-top: 0.35em; }
.doc address { margin-bottom: 1em; }
.doc code { font-size: 0.85em; }

.facts-list { margin: 0 0 1em; font-family: var(--sans); }
.facts-list div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--line-strong); }
.facts-list dt { color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; }
.facts-list dd { margin: 0; font-size: 0.98rem; }

@media (max-width: 29.99rem) {
  .facts-list div,
  .particulars div { grid-template-columns: 1fr; gap: 0.1rem; }
}

.doc-toc { margin: 2rem 0; padding: 1.1rem 1.4rem; border-left: 4px solid var(--brass); background: var(--paper); }
.doc-toc h2 { margin: 0 0 0.5rem; padding: 0; border: 0; font-size: 1rem; }
.doc-toc ol { margin: 0; font-family: var(--sans); font-size: 0.95rem; }
.doc-toc a { display: inline-block; padding-block: 0.3rem; }

.cookie-table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-family: var(--sans); font-size: 0.9rem; line-height: 1.45; }
.cookie-table caption { padding-bottom: 0.5rem; font-weight: 700; text-align: left; }
.cookie-table th,
.cookie-table td { padding: 0.6rem 0.7rem; border: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.cookie-table thead th { background: var(--deck-2); }
.cookie-table tbody th { font-weight: 400; }
.cookie-table code { white-space: nowrap; }

/* Schmale Bildschirme: jede Zeile wird ein Block aus „Bezeichnung: Wert“. */
@media (max-width: 47.99rem) {
  .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cookie-table tbody,
  .cookie-table tr,
  .cookie-table th,
  .cookie-table td { display: block; }
  .cookie-table tr { margin-bottom: 0.75rem; border: 1px solid var(--line-strong); }
  .cookie-table tbody th,
  .cookie-table td { border: 0; border-top: 1px solid var(--line); }
  .cookie-table tbody th { border-top: 0; background: var(--deck-2); font-weight: 700; }
  .cookie-table td::before { content: attr(data-label) ": "; font-weight: 700; }
  .cookie-table code { white-space: normal; overflow-wrap: anywhere; }
}

.callout { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border: 2px solid var(--navy); background: var(--paper); }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.lost-art { width: min(15rem, 70%); height: auto; margin-bottom: 2rem; }
.lost-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-navy { border-color: var(--navy); color: var(--navy); }
.btn-navy:hover { background: var(--navy); color: var(--deck); }

/* ---------- Cookie-Hinweis und Einstellungen ---------- */
.consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.25rem 1.35rem 1.1rem;
  border: 2px solid var(--navy);
  border-top-width: 6px;
  background: var(--paper);
  box-shadow: 0 18px 40px -16px rgb(10 28 46 / 0.55);
  font-family: var(--sans);
}
.consent-title { margin: 0 0 0.5rem; color: var(--navy); font-size: 1.1rem; font-weight: 800; }
.consent-text { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.consent-btn {
  flex: 1 1 9rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.consent-btn:hover { background: var(--navy-deep); }
.consent-btn-save { background: var(--red); border-color: var(--red); }
.consent-btn-save:hover { background: var(--red-deep); }
.consent-link {
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: none;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.consent-dialog {
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 2px solid var(--navy);
  border-top-width: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
.consent-dialog::backdrop { background: rgb(10 28 46 / 0.6); }
.consent-dialog-inner { padding: 1.4rem 1.4rem 1.25rem; }
.consent-categories { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.consent-category { padding: 0.9rem 0; border-top: 1px solid var(--line-strong); }
.consent-category-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.consent-category h3 { font-size: 1rem; font-weight: 700; }
.consent-category p { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; }
.consent-always { color: var(--sea); font-size: 0.82rem; font-weight: 700; }

.consent-switch { position: relative; display: inline-flex; flex: none; align-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-switch-track {
  position: relative;
  width: 3rem;
  height: 1.6rem;
  border: 2px solid var(--field);
  border-radius: 1rem;
  background: var(--deck-2);
  transition: background-color 0.2s, border-color 0.2s;
}
.consent-switch-track::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--ink-soft);
  transition: transform 0.2s, background-color 0.2s;
}
.consent-switch input:checked + .consent-switch-track { border-color: var(--navy); background: var(--navy); }
.consent-switch input:checked + .consent-switch-track::after { background: #fff; transform: translateX(1.4rem); }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--sea); outline-offset: 3px; }

/* ---------- Hilfsklassen ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--navy);
  color: var(--deck);
  font-family: var(--sans);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .sea-wave,
  .hoist-link[aria-current="true"] .hoist-flag { animation: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  .mast,
  .sea,
  .rope,
  .bollards,
  .skip-link,
  .consent,
  .nor-sign { display: none; }
  .page { margin: 0; }
  body,
  .hull,
  .ladder-section,
  .quay { background: #fff; color: #000; }
  .hull h1,
  .hull-lead,
  .ladder-section h2,
  .rung-body h3,
  .rung-body p { color: #000; }
}
