/* =====================================================================
   HafenScout360 · Routenplaner (Besucher-Seite)
   Gestaltung angelehnt an den ersten Entwurf (hafenscout360_route.html) und die Startseite:
   Dunkelblau als Grund, Tuerkis/Mint als Akzent, Playfair Display + Inter.
   "Mobile first": erst fuers Handy gebaut, breitere Bildschirme bekommen unten mehr Platz.
   ===================================================================== */

/* Schriften liegen auf dem eigenen Server (fonts/), nicht bei Google -> keine IP-Weitergabe an Dritte */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-style: italic; font-display: swap; src: url('../fonts/playfair-display-latin-700-italic.woff2') format('woff2'); }

:root {
  --dunkelblau: #0D2137;
  --tiefblau:   #0a2e45;
  --tuerkis:    #5DCAA5;
  --mint:       #7ECFB0;
  --orange:     #E8720C;
  --weiss:      #FFFFFF;
  --leise:      rgba(255, 255, 255, 0.68);
  --rand:       rgba(93, 202, 165, 0.25);
  --kasten:     rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif; font-size: 16px; line-height: 1.6;
  background: var(--dunkelblau); color: var(--weiss);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; margin: 0; }
a { color: var(--mint); }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: sticky; top: 0; z-index: 1000; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; padding-top: env(safe-area-inset-top);
  background: rgba(13, 33, 55, 0.96); border-bottom: 1px solid var(--rand);
  backdrop-filter: blur(8px);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--weiss); text-decoration: none;
        font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.15rem; }
.logo-kreis {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
  background: radial-gradient(circle at 35% 35%, rgba(93, 202, 165, 0.4), rgba(13, 33, 55, 0.8)); border: 1px solid var(--tuerkis);
}
.tuerkis { color: var(--tuerkis); }
.kopf-titel { font-family: 'Playfair Display', Georgia, serif; color: var(--mint); font-size: 1rem; }
.kopf-titel .version { font-family: 'Inter', Arial, sans-serif; font-size: 0.7rem; color: var(--leise); margin-left: 4px; letter-spacing: 0.03em; }

/* ---------- Einleitung ---------- */
.einleitung { display: flex; flex-direction: column; }
.intro-pano { position: relative; height: 52vh; min-height: 280px; max-height: 560px; background: var(--tiefblau); }
.intro-platzhalter {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--tiefblau) 0%, var(--dunkelblau) 100%);
}
.puls-kreis {
  width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  background: radial-gradient(circle at 35% 35%, rgba(93, 202, 165, 0.25), rgba(13, 33, 55, 0.6));
  border: 2px solid var(--tuerkis); animation: puls 3s ease-in-out infinite;
}
@keyframes puls {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(93, 202, 165, 0.4); }
  50%      { transform: scale(1.05); box-shadow: 0 0 30px 10px rgba(93, 202, 165, 0); }
}
.intro-hinweis {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 5; margin: 0;
  padding: 4px 12px; border-radius: 100px; background: rgba(13, 33, 55, 0.8); color: var(--mint);
  font-size: 0.8rem; letter-spacing: 0.04em; pointer-events: none;
}
/* Pannellum-Hintergrund an unser Design anpassen */
.intro-pano.pnlm-container { background: var(--tiefblau); }

.einleitung-text { padding: 28px 18px 8px; max-width: 760px; margin: 0 auto; width: 100%; }
.dachzeile, .schritt-nr { margin: 0 0 6px; color: var(--mint); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { font-size: 2rem; margin-bottom: 14px; }
h1 em { color: var(--tuerkis); }
/* [7b.17] Leitsatz unter der Ueberschrift */
.einleitung-unterzeile { margin: -6px 0 14px; color: var(--tuerkis); font-size: 1.1rem; font-style: italic; }
.einleitung-lead { margin: 0 0 18px; color: var(--leise); font-size: 1.05rem; }

.beispiel { border-left: 3px solid var(--tuerkis); background: var(--kasten); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 0 0 18px; }
.beispiel p { margin: 0; color: var(--leise); }
.beispiel .beispiel-titel { color: var(--weiss); font-weight: 700; margin-bottom: 4px; }

.vorteile { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vorteile li { display: flex; gap: 10px; align-items: center; }

.knopf-haupt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 22px; border: none; border-radius: 10px;
  background: var(--tuerkis); color: var(--dunkelblau); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.knopf-haupt:hover { background: var(--mint); }
.knopf-haupt:focus-visible, .hafen-karte:focus-visible, .text-knopf:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.text-knopf { background: none; border: none; padding: 6px 0; min-height: 40px; color: var(--mint); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Schritte ---------- */
.schritt { padding: 40px 18px 16px; max-width: 1100px; margin: 0 auto; scroll-margin-top: 60px; }
.schritt h2 { font-size: 1.6rem; margin-bottom: 14px; }
.lade-text, .hinweis-klein { color: var(--leise); }
.hinweis-klein { font-size: 0.85rem; margin: 4px 0 14px; }

.suche input {
  width: 100%; height: 48px; padding: 0 16px; margin-bottom: 16px;
  border-radius: 10px; border: 1px solid var(--rand); background: var(--kasten);
  color: var(--weiss); font: inherit; font-size: 16px;   /* 16px verhindert das Hineinzoomen am iPhone */
}
.suche input::placeholder { color: rgba(255, 255, 255, 0.45); }
.suche input:focus { outline: none; border-color: var(--tuerkis); }

/* Hafen-Kaertchen */
.hafen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.hafen-karte {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid var(--rand); border-radius: 12px; background: var(--kasten); color: var(--weiss); font: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.hafen-karte:hover { border-color: var(--tuerkis); transform: translateY(-2px); }
.hafen-karte img, .bild-platzhalter { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--tiefblau); }
.bild-platzhalter { display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--tuerkis); }
.hafen-text { display: flex; flex-direction: column; padding: 10px 12px 12px; }
.hafen-text strong { font-size: 0.98rem; line-height: 1.3; }
.hafen-text small { color: var(--leise); font-size: 0.8rem; margin-top: 2px; }

/* Routen-Kaertchen */
.routen-liste { display: grid; grid-template-columns: 1fr; gap: 14px; }
.route-karte {
  border: 1px solid var(--rand); border-radius: 14px; background: var(--kasten); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.route-richtung { margin: 0; color: var(--mint); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.route-karte h3 { font-size: 1.35rem; }
.pfeil { color: var(--tuerkis); }
.route-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.route-zahlen div { background: rgba(93, 202, 165, 0.08); border-radius: 10px; padding: 8px 10px; }
.route-zahlen dt { color: var(--leise); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.route-zahlen dd { margin: 2px 0 0; font-weight: 700; font-size: 1rem; }
.route-text { margin: 0; color: var(--leise); }
.route-merkmale { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.88rem; color: var(--leise); }
.route-ansehen { align-self: flex-start; margin-top: 4px; }

/* ---------- Fuss ---------- */
.fuss { margin-top: 48px; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rand); text-align: center; font-size: 0.82rem; color: var(--leise); }
.fuss p { margin: 4px auto; max-width: 760px; }

.meldung-unten {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2000;
  margin: 0; padding: 10px 18px; border-radius: 10px; max-width: calc(100% - 32px);
  background: var(--tuerkis); color: var(--dunkelblau); font-weight: 700; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* ---------- Groessere Bildschirme ---------- */
@media (min-width: 760px) {
  h1 { font-size: 2.6rem; }
  .einleitung-text { padding-top: 40px; }
  .hafen-raster { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .routen-liste { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
}
@media (min-width: 1100px) {
  /* Breiter Bildschirm: Panorama links, Text rechts, wie im ersten Entwurf (halb/halb) */
  .einleitung { flex-direction: row; min-height: calc(100vh - 56px); max-height: 820px; }
  .intro-pano { flex: 1 1 58%; height: auto; max-height: none; }
  .einleitung-text { flex: 1 1 42%; max-width: none; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
  .einleitung-text .knopf-haupt { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .puls-kreis { animation: none; }
}
