/* =========================================================
   WS-Barkassen e.V. — Modern Nautical Design System
   ========================================================= */

:root {
  /* Colors */
  --navy-950: #061626;
  --navy-900: #0a1f33;
  --navy-800: #0f2d4a;
  --navy-700: #163c5e;
  --navy-600: #1f4d75;
  --blue-500: #2e77a6;
  --brass-600: #b9812a;
  --brass-500: #c8912a;
  --brass-400: #dba648;
  --brass-100: #f6e9d2;
  --white: #ffffff;
  --off-white: #f6f9fb;
  --fog-100: #eef2f6;
  --fog-200: #dde5ec;
  --fog-300: #c2ceda;
  --ink-900: #16232f;
  --ink-700: #33475a;
  --ink-500: #5b7285;

  /* Type */
  --font-head: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 51, 0.08);
  --shadow-md: 0 8px 30px rgba(10, 31, 51, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 31, 51, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brass-500);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-brass {
  background: var(--brass-500);
  color: var(--navy-950);
}
.btn-brass:hover { background: var(--brass-400); color: var(--navy-950); }
.btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand:hover { color: var(--white); }
.brand .wheel {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--brass-500);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass-500);
  flex-shrink: 0;
}
.brand-logo { width: 38px; height: auto; flex-shrink: 0; }
.hero-logo { width: 96px; height: auto; margin-bottom: 20px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.45)); }
.story-logo-row { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.story-logo { width: 84px; height: auto; display: block; }
.story-banner { width: 220px; height: auto; display: block; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: var(--fog-300); letter-spacing: 0.03em; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
}
.main-nav a {
  color: var(--fog-200);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  color: var(--white);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 100%);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,22,38,0.55) 0%, rgba(6,22,38,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px 90px;
}
.hero.hero-sm .hero-inner { padding: 64px 24px; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--fog-200);
  max-width: 640px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 1.6em; flex-wrap: wrap; }
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.breadcrumb {
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--fog-300);
  margin-bottom: 1em;
}
.breadcrumb a { color: var(--fog-300); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy-900); color: var(--fog-200); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.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); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--fog-200);
}
.card-body { padding: 22px 24px; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.ship-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  align-items: start;
}
.ship-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ship-card .text-columns { column-count: 2; column-gap: 32px; }
.ship-card .text-columns p { break-inside: avoid; }
@media (max-width: 720px) {
  .ship-card .text-columns { column-count: 1; }
}
.ship-card .card-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.ship-card:nth-child(even) { direction: rtl; }
.ship-card:nth-child(even) .card-body { direction: ltr; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.stat {
  text-align: center;
  padding: 26px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--fog-200);
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-800);
  display: block;
}
.stat .label { font-size: 0.85rem; color: var(--ink-500); }

.callout {
  background: var(--brass-100);
  border-left: 4px solid var(--brass-500);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--fog-200);
  padding: 20px 0;
}
.faq-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brass-500);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; color: var(--ink-700); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-sm); }

/* Table (Formulare / Downloads) */
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--fog-200);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.file-list .tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy-700);
  background: var(--fog-100);
  padding: 4px 9px;
  border-radius: 4px;
}

/* Contact box */
.contact-box {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-box a { color: var(--brass-400); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--fog-300);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--fog-300); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--brass-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--fog-300); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ship-card, .two-col { grid-template-columns: 1fr; }
  .ship-card:nth-child(even) { direction: ltr; }
  .ship-card img { position: static; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 78px 0 0 0; background: var(--navy-900); padding: 20px 24px; overflow-y: auto; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.2s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 13px 10px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 20px 56px; }
  .section { padding: 52px 0; }
}
