/* ==========================================================================
   SCHIFFSWERFT M. A. FLINT GMBH – Design-System
   Maritim-industriell: Navy/Stahl, Off-White, Signalgelb als Akzent
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (lokal gehostet, kein externer Aufruf – DSGVO-freundlich)
   Oswald ist eine Variable Font (wght 400–700).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/oswald-500.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --navy-900: #0d1822;      /* Footer, tiefster Grundton */
  --navy-800: #16283a;      /* Primär: Heads, Hero-Overlay */
  --navy-700: #1f3549;      /* Flächen, Karten auf dunkel */
  --ink: #232f3a;           /* Fließtext */
  --steel: #5f6d7d;          /* Sekundärtext */
  --paper: #f3f0e9;         /* Warmes Off-White, Seitenhintergrund */
  --white: #ffffff;
  --accent: #f2a413;        /* Signalgelb (Hafenkran) */
  --accent-dark: #d18d0b;
  --line: #d8d2c4;          /* Trennlinien auf hell */
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Typografie */
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 3px;            /* bewusst kantig-industriell */
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 40, 58, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy-900);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

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

ul, ol { padding-left: 1.2em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  z-index: 200;
}
.skip-link:focus { left: 0; color: var(--navy-900); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   Sektions-Kopf mit Nummern-Markierung (industrielles Detail)
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-pad); }
.section--tint { background: var(--white); }
.section--dark { background: var(--navy-800); color: #e8edf2; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--accent); border-bottom-color: rgba(242, 164, 19, 0.5); }
.section--dark a:hover { border-bottom-color: var(--accent); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.9rem;
}

.section-label::before {
  content: '';
  width: 34px;
  height: 3px;
  background: var(--accent);
  flex: none;
}

.section--dark .section-label { color: var(--accent); }

.section-label--center { justify-content: center; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p.lede {
  font-size: 1.15rem;
  color: var(--steel);
  max-width: 62ch;
}
.section--dark .section-head p.lede { color: #b6c2ce; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgba(13, 24, 34, 0.12);
}

.header-topbar {
  background: var(--navy-900);
  color: #cfd8e0;
  font-size: 0.85rem;
}

.header-topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 1.6rem;
  min-height: 36px;
  align-items: center;
}

.header-topbar a {
  color: #cfd8e0;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.header-topbar a:hover { color: var(--accent); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-bottom: none;
}

.brand-plate {
  flex: none;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: var(--radius);
  line-height: 0;
}
.brand-plate img { height: 52px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Hauptnavigation */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
}

.site-nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-800);
  padding: 0.55rem 0.95rem;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }

.site-nav a[aria-current="page"] {
  color: var(--navy-900);
  border-bottom-color: var(--accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy-800);
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(13, 24, 34, 0.12);
    display: none;
  }
  .site-nav.open { display: block; }

  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 1rem; }
  .site-nav a { padding: 0.8rem 1.4rem; border-bottom: none; border-left: 4px solid transparent; }
  .site-nav a:hover { border-left-color: var(--accent); }
  .site-nav a[aria-current="page"] { border-left-color: var(--accent); }

  .header-topbar .container { justify-content: center; gap: 1.1rem; }
}

/* --------------------------------------------------------------------------
   Hero (Startseite)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13, 24, 34, 0.88) 0%,
    rgba(13, 24, 34, 0.72) 42%,
    rgba(13, 24, 34, 0.30) 100%
  );
}

.hero-inner {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  max-width: 720px;
}

.hero .section-label { color: var(--accent); }

.hero h1 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-bottom: 0.5em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #dbe3ea;
  max-width: 54ch;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--navy-900);
  border-bottom: 1px solid transparent;
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--navy-900);
  border-bottom: 1px solid transparent;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom-width: 1px;
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  border-bottom-width: 1px;
}

.btn--dark {
  background: var(--navy-800);
  color: var(--white);
  border-bottom: 1px solid transparent;
}
.btn--dark:hover {
  background: var(--navy-700);
  color: var(--white);
  border-bottom: 1px solid transparent;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-actions--center { justify-content: center; }
.lede-center { max-width: 56ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Kennzahlen-Leiste
   -------------------------------------------------------------------------- */
.stats {
  background: var(--navy-900);
  color: var(--white);
  border-top: 3px solid var(--accent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.09);
}
.stat {
  background: var(--navy-900);
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aebbc7;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Karten-Grids (Leistungs-Teaser etc.)
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
  align-items: center;
}

@media (max-width: 940px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(13, 24, 34, 0.10);
  border-top-color: var(--accent);
}

.card-no {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-dark);
  letter-spacing: 0.14em;
  margin-bottom: 0.7rem;
}

.card h3 { margin-bottom: 0.5em; }

.card p { color: var(--steel); font-size: 1rem; }

.card ul { color: var(--steel); font-size: 0.95rem; margin: 0.4rem 0 0; }
.card ul li { margin-bottom: 0.3rem; }

.card-link {
  margin-top: auto;
  padding-top: 1.2rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Bild-Text-Blöcke
   -------------------------------------------------------------------------- */
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 var(--navy-800);
}
.media-frame img { width: 100%; height: auto; }
.section--dark .media-frame { border-color: var(--line-dark); box-shadow: 8px 8px 0 rgba(242, 164, 19, 0.85); }

figcaption,
.media-caption {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   Zitat / Slogan-Band
   -------------------------------------------------------------------------- */
.quote-band {
  background: var(--navy-900);
  border-top: 3px solid var(--accent);
  color: var(--white);
  padding-block: clamp(2.6rem, 5vw, 3.6rem);
  text-align: center;
}
.quote-band p {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.quote-band .quote-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-top: 0.9rem;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Timeline (Geschichte)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding: 0.5rem 0 1rem;
  max-width: 860px;
  margin-inline: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--navy-800);
}
.section--dark .timeline::before { background: var(--line-dark); }

.timeline-item {
  position: relative;
  padding: 0 0 2.4rem 66px;
}
.timeline-item:last-child { padding-bottom: 0.4rem; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--accent);
  border: 5px solid var(--paper);
  box-shadow: 0 0 0 2px var(--navy-800);
}
.section--dark .timeline-item::before {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy-900);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.section--dark .timeline-year { color: var(--accent); }

.timeline-item h3 { font-size: 1.2rem; margin-bottom: 0.35em; }

.timeline-item p { color: var(--steel); max-width: 68ch; }
.section--dark .timeline-item p { color: #b6c2ce; }

.timeline-media {
  margin-top: 1rem;
  max-width: 520px;
}

/* --------------------------------------------------------------------------
   Kontakt-Seite
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  margin-bottom: 1.3rem;
}

.contact-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.45rem 0;
  align-items: baseline;
}
.contact-list .label {
  flex: none;
  width: 92px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-family: var(--font-head);
  font-weight: 500;
}
.contact-list a { border-bottom-width: 1px; }

.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 var(--navy-800);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Page-Hero (Unterseiten)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--navy-800);
  color: var(--white);
  padding-block: clamp(2.6rem, 6vw, 4.4rem);
  border-bottom: 3px solid var(--accent);
}
.page-hero h1 {
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.25em;
}
.page-hero p {
  color: #c4cfda;
  max-width: 66ch;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Legal-Seiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal {
  max-width: 780px;
}
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.4rem;
}
.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.6rem;
}
.legal p, .legal li { color: var(--ink); }
.legal .note {
  font-size: 0.9rem;
  color: var(--steel);
  border-left: 4px solid var(--accent);
  padding: 0.8rem 1.1rem;
  background: var(--white);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #aebbc7;
  border-top: 3px solid var(--accent);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.4rem;
  padding-block: clamp(2.6rem, 5vw, 4rem);
}
@media (max-width: 940px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer a { color: #aebbc7; border-bottom: none; }
.site-footer a:hover { color: var(--accent); }

.footer-brand { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.footer-brand .brand-plate { border-color: var(--line-dark); background: var(--white); }
.footer-brand img { height: 48px; width: auto; }
.footer-brand .brand-name { color: var(--white); font-size: 1.1rem; }
.footer-brand .brand-sub { color: #8b99a6; }

.footer-about { max-width: 40ch; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer ul li { padding: 0.25rem 0; }

.footer-contact address {
  font-style: normal;
  line-height: 1.75;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.1rem;
  font-size: 0.85rem;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}
.footer-bottom a { border-bottom: 1px dotted #55636f; }

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }