/* Local fonts (latin-ext covers ä, ö, ü, ß etc.) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-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: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/libre-baskerville-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/libre-baskerville-700-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;
}

/* Hero: fixiertes Hintergrundbild (Parallax) */
.hero-bg {
  background-image: url('../img/header.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* iOS Safari unterstützt background-attachment: fixed nicht korrekt */
@supports (-webkit-touch-callout: none) {
  .hero-bg {
    background-attachment: scroll;
  }
}

/* Smooth scrolling with reduced motion respect */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Wave bob animation for nautical icons */
@keyframes wave-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Fade-up animation for section reveal */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Horizontal wave shift for hero wave divider */
@keyframes wave-shift {
  from { background-position-x: 0; }
  to   { background-position-x: -1440px; }
}

/* Apply bob to anchor/nautical icons */
.icon-bob {
  display: inline-block;
  animation: wave-bob 3s ease-in-out infinite;
}

/* Section fade-in (triggered by IntersectionObserver adding .visible class) */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated hero wave */
.wave-animate {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'><path fill='white' d='M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,80 L0,80 Z'/></svg>");
  background-size: 1440px 100%;
  background-repeat: repeat-x;
  background-position: 0 0;
  animation: wave-shift 12s linear infinite;
  width: 100%;
}

/* Rope divider */
.rope-divider {
  border: none;
  border-top: 2px dashed rgba(0, 174, 239, 0.3);
  margin: 1.5rem 0;
}

/* OSM iframe responsive */
.map-frame {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 0.75rem;
}

/* Stat badge hover lift */
.stat-badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 82, 179, 0.2);
}

/* Table striping for Tailwind */
.fee-table tr:nth-child(even) td {
  background-color: rgba(0, 174, 239, 0.06);
}

/* Nav link active indicator */
nav a.nav-active {
  color: #00aeef;
  border-bottom: 2px solid #00aeef;
}
