/* ===== Schriften (selbst gehostet, SIL Open Font License) ===== */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fredoka-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/quicksand-latin.woff2") format("woff2");
}

/* ===== Grundlayout ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Quicksand", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: #073642;
  background: #1d7ba3;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== Ozean von oben (feststehende Szene) ===== */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(160deg, #8fd9e2 0%, #4fb3cd 40%, #2891b4 75%, #1d7ba3 100%);
}

.sun-glow {
  position: absolute;
  top: -10vh;
  right: -6vw;
  width: 45vw;
  height: 45vh;
  background: radial-gradient(closest-side, rgba(255, 245, 200, 0.5), transparent 70%);
}

/* Lichtreflexe auf der Wasseroberfläche */
.glint {
  position: absolute;
  width: 80px;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
  animation: glint-drift 6s ease-in-out infinite;
}

.g-1 { top: 12vh; left: 8vw; }
.g-2 { top: 26vh; left: 70vw; width: 60px; animation-delay: 1.2s; }
.g-3 { top: 48vh; left: 30vw; width: 100px; animation-delay: 2.4s; }
.g-4 { top: 70vh; left: 60vw; animation-delay: 3.6s; }
.g-5 { top: 85vh; left: 15vw; width: 56px; animation-delay: 4.8s; }

@keyframes glint-drift {
  0%, 100% { transform: translateX(0); opacity: 0.9; }
  50%      { transform: translateX(14px); opacity: 0.4; }
}

/* Fische als Schatten unter der Oberfläche */
.fish {
  position: absolute;
  fill: rgba(6, 40, 60, 0.3);
  filter: blur(1.5px);
}

.fish-1 { width: 54px; top: 38vh; left: 20vw; animation: roam 12s ease-in-out infinite; }
.fish-2 { width: 40px; top: 76vh; left: 76vw; animation: roam 15s ease-in-out infinite reverse; }

@keyframes roam {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(7vw, 14px); }
}

/* Algenfelder, die unter der Wasseroberfläche schimmern */
.algae {
  position: absolute;
  width: 130px;
  filter: blur(1.2px);
}

.algae-svg { display: block; width: 100%; height: auto; }

.frond {
  fill: none;
  stroke: rgba(9, 64, 52, 0.5);
  stroke-width: 7;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: frond-sway 5s ease-in-out infinite;
}

.frond-light { stroke: rgba(46, 138, 108, 0.5); stroke-width: 6; animation-delay: 1.1s; }
.frond-short { stroke-width: 8; animation-delay: 2.2s; }

@keyframes frond-sway {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}

.algae-1 { top: 6vh;  left: 16vw; }
.algae-2 { top: 55vh; left: 66vw; transform: scale(0.7); }
.algae-3 { top: 78vh; left: 34vw; transform: scale(0.5); opacity: 0.8; }

.gull { position: absolute; width: 30px; animation: glide 5s ease-in-out infinite; }
.gull-1 { top: 16vh; left: 44vw; }
.gull-2 { top: 22vh; left: 52vw; width: 22px; animation-delay: 1.4s; }

@keyframes glide {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* ===== Die Otter (Vogelperspektive, Rückenlage) ===== */
.otter { position: absolute; will-change: transform; }

.otter-1 { width: min(200px, 40vw); left: 56vw; top: 24vh; }
.otter-2 { width: min(150px, 30vw); left: 12vw; top: 50vh; }
.otter-3 { width: min(120px, 24vw); left: 74vw; top: 64vh; }

.otter-1 .otter-pose { transform: rotate(-14deg); }
.otter-2 .otter-pose { transform: rotate(22deg); }
.otter-3 .otter-pose { transform: rotate(-38deg); }

.otter-svg { display: block; width: 100%; height: auto; }

.otter-bob { animation: float 4.5s ease-in-out infinite; }

.otter-2 .otter-bob { animation-duration: 5.4s; animation-delay: 0.8s; }
.otter-3 .otter-bob { animation-duration: 3.8s; animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-6px); }
}

.ripple {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 3;
  transform-origin: 100px 170px;
  animation: ripple-pulse 4.5s ease-in-out infinite;
}

.ripple-outer { animation-delay: 0.6s; stroke: rgba(255, 255, 255, 0.22); }

@keyframes ripple-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.06); opacity: 0.5; }
}

.tail {
  transform-origin: 100px 255px;
  animation: tail-sway 2.8s ease-in-out infinite;
}

@keyframes tail-sway {
  0%, 100% { transform: rotate(4deg); }
  50%      { transform: rotate(-5deg); }
}

.foot-left {
  transform-origin: 58px 235px;
  animation: wiggle 1.8s ease-in-out infinite;
}

.foot-right {
  transform-origin: 142px 235px;
  animation: wiggle 1.8s ease-in-out infinite;
  animation-delay: 0.5s;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(7deg); }
  50%      { transform: rotate(-9deg); }
}

/* ===== Inhalts-Stationen ===== */
main { position: relative; z-index: 2; }

.station {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12vh 8vw;
}

.hero {
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  padding-top: 14vh;
}

h1, h2, h3 {
  font-family: "Fredoka", "Quicksand", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 6.5rem);
  letter-spacing: 0.02em;
  color: #06303c;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.tagline {
  margin-top: 0.6em;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: #0a4454;
}

.hint {
  margin-top: 3em;
  font-size: 1rem;
  color: #0a4454;
  opacity: 0.85;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}

.about { justify-content: center; align-items: flex-start; }
.product { justify-content: center; align-items: center; }
/* Die letzte Station lässt Platz für den Footer. So ist er ohne weiteres Scrollen sichtbar. */
.contact {
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  min-height: calc(100vh - 4.5rem);
  padding-bottom: 4vh;
}

.kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fe3d9;
  margin-bottom: 0.4em;
}

.card {
  max-width: 34rem;
  padding: 2rem 2.4rem;
  border-radius: 1.4rem;
  background: rgba(7, 33, 51, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #eaf6f9;
  box-shadow: 0 12px 40px rgba(4, 20, 36, 0.3);
}

.card h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 0.6em;
  color: #ffffff;
}

.card p { line-height: 1.65; font-size: 1.08rem; }

.mail { margin-top: 1em; font-size: clamp(1.2rem, 3vw, 1.5rem); }

.card-cta { margin-top: 1.2em; font-size: clamp(1.1rem, 2.6vw, 1.3rem); }

.mail a, .card-cta a {
  color: #8fe3d9;
  text-decoration: none;
  border-bottom: 2px solid rgba(143, 227, 217, 0.4);
  transition: border-color 0.25s, color 0.25s;
}

.mail a:hover, .mail a:focus-visible,
.card-cta a:hover, .card-cta a:focus-visible {
  color: #c2f3ec;
  border-color: #c2f3ec;
}

/* Sanftes Einblenden beim Erreichen einer Station */
.hero, .card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.visible, .card.visible { opacity: 1; transform: none; }

/* ===== Footer ===== */
footer { position: relative; z-index: 2; }

.footer-text {
  text-align: center;
  padding: 1.2rem 1rem 1.6rem;
  font-size: 0.95rem;
  color: rgba(234, 246, 249, 0.85);
  background: rgba(7, 33, 51, 0.35);
}

.footer-text a {
  color: rgba(234, 246, 249, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-text a:hover, .footer-text a:focus-visible { color: #ffffff; }

/* ===== Impressum & Datenschutz ===== */
.legal-main {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  margin: 0 auto;
  padding: 8vh 6vw 4rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  color: #06303c;
  text-decoration: none;
  border-bottom: 2px solid rgba(6, 48, 60, 0.3);
}

.back-link:hover, .back-link:focus-visible { border-color: #06303c; }

.legal-card { max-width: none; }

.legal-card h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  color: #ffffff;
  margin-bottom: 0.8em;
}

.legal-card h2 { margin-top: 1.6em; }

.legal-card h3 {
  margin-top: 1.2em;
  margin-bottom: 0.4em;
  font-size: 1.15rem;
  color: #ffffff;
}

.legal-card p { margin-top: 0.6em; }

.legal-card ul {
  margin-top: 0.6em;
  padding-left: 1.3rem;
  line-height: 1.65;
}

.legal-card li { margin-top: 0.35em; }

.legal-card a { color: #8fe3d9; }

.legal-copyright {
  margin-top: 2.5em;
  opacity: 0.75;
  font-size: 0.95rem;
}

/* ===== Reduzierte Bewegung ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .glint, .gull, .fish, .hint, .frond,
  .otter-bob, .tail, .foot-left, .foot-right, .ripple {
    animation: none !important;
  }

  .hero, .card { opacity: 1; transform: none; transition: none; }
}

/* ===== Kleine Bildschirme ===== */
@media (max-width: 640px) {
  .station { padding: 10vh 7vw; }

  .hero { padding-top: 12vh; }

  .about, .contact { align-items: center; text-align: center; }

  .card { padding: 1.5rem 1.4rem; }

  .otter-1 { left: 52vw; top: 30vh; }
  .otter-2 { left: 6vw;  top: 46vh; }
  .otter-3 { left: 66vw; top: 68vh; }
}
