/* Poeler Ostsee-Lotse – Website */
:root {
  --sea-950: #041d38;
  --sea-900: #062a4f;
  --sea-700: #0b4f86;
  --sea-500: #1f86c7;
  --sky: #8fd3f7;
  --foam: #e9f7ff;
  --sand-50: #fdf6e7;
  --sand-100: #f8ead0;
  --sand-300: #e9cf9c;
  --ink: #102a43;
  --muted: #4b6075;
  --red: #e0362c;
  --red-dark: #b8241c;
  --gold: #ffc531;
  --cyan: #33e5ff;
  --card: #ffffff;
  --line: rgba(16, 42, 67, .12);
  --radius: 18px;
  --round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand-50: #0b2340;
    --sand-100: #0e2b4d;
    --sand-300: #1d4673;
    --ink: #e8f2fb;
    --muted: #a9bfd4;
    --card: #12345a;
    --line: rgba(233, 247, 255, .14);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sea-500); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--sky); } }
h1, h2, h3 { font-family: var(--round); line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin: 0 0 .4em; }
h3 { font-size: 1.2rem; margin: 0 0 .35em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(4, 29, 56, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.top-in {
  max-width: 1080px; margin: 0 auto; padding: 8px 20px;
  padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--round); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand img { border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .82); text-decoration: none; padding: 6px 11px; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav a[aria-current="page"] { color: #fff; background: rgba(51, 229, 255, .18); box-shadow: inset 0 0 0 1px rgba(51, 229, 255, .45); }

.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: .93rem;
  background: rgba(255, 255, 255, .1); color: #fff; user-select: none;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { background: rgba(255, 255, 255, .18); }
.langs summary svg:last-child { transition: transform .2s; }
.langs[open] summary svg:last-child { transform: rotate(180deg); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: #fff; color: var(--ink); border-radius: 14px; min-width: 190px;
  box-shadow: 0 18px 40px rgba(4, 29, 56, .35); max-height: 70vh; overflow: auto;
}
.langs li a { display: block; padding: 8px 12px; border-radius: 9px; color: #102a43; text-decoration: none; }
.langs li a:hover { background: var(--foam); }
.langs li a[aria-current="true"] { font-weight: 700; background: #fff1d0; }
.langs li a[aria-current="true"]::after { content: " ✓"; color: var(--red); }

@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
  .brand span { display: none; }
  .langs { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: .9rem; padding: 5px 10px; }
}

/* ---------- Startseite: Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    linear-gradient(180deg, rgba(4, 29, 56, .55) 0%, rgba(4, 29, 56, 0) 40%),
    url("img/water.webp") center top / cover no-repeat, var(--sea-700);
  padding: 40px 20px 0;
  min-height: 640px;
}
.hero::after { /* Sand mit Wellenkante */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: var(--sand-100);
  -webkit-mask: radial-gradient(60px 22px at 60px 0, transparent 98%, #000) 0 0 / 120px 100% repeat-x;
  mask: radial-gradient(60px 22px at 60px 0, transparent 98%, #000) 0 0 / 120px 100% repeat-x;
}
.hero-in { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.kicker {
  display: inline-block; margin: 0 0 6px; padding: 5px 14px; border-radius: 999px;
  background: rgba(4, 29, 56, .55); border: 1px solid rgba(51, 229, 255, .5);
  font-family: var(--round); font-weight: 700; letter-spacing: .02em; font-size: .95rem;
}
.hero h1 { margin: 0; }
.logo { width: min(560px, 92%); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.lead { font-size: 1.14rem; max-width: 600px; margin: 0 auto 22px; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .25);
}
.store:hover { transform: translateY(-1px); }
.store.soon { background: var(--red); border-color: rgba(255, 255, 255, .4); cursor: default; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 56px; width: auto; display: block; }
.devices { font-size: .92rem; opacity: .9; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.mascot {
  position: relative; z-index: 3; display: block; margin: 18px auto -6px;
  width: min(560px, 96%); filter: drop-shadow(0 -6px 20px rgba(0, 0, 0, .25));
}
.float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float .s { position: absolute; width: 64px; opacity: .92; animation: bob 5s ease-in-out infinite; }
.s1 { left: 6%; top: 22%; }
.s2 { right: 7%; top: 16%; animation-delay: -1.2s !important; }
.s3 { left: 12%; top: 58%; animation-delay: -2.4s !important; width: 64px !important; }
.s4 { right: 13%; top: 52%; animation-delay: -3.1s !important; }
.s5 { left: 26%; top: 6%; animation-delay: -.6s !important; width: 60px !important; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: 28px; }
  .s1, .s4 { display: none; }
  .float .s { width: 52px; }
  .s2 { top: 4%; right: 3%; } .s3 { top: 40%; left: 2%; } .s5 { top: 3%; left: 3%; }
}
@media (prefers-reduced-motion: reduce) { .float .s { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Badegäste ---------- */
.kinds { background: var(--sand-100); text-align: center; padding: 30px 0 46px; }
.kinds p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.kinds-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px;
  padding: 16px 12px 6px; border-radius: 22px;
  background: linear-gradient(180deg, #1f86c7, #0b4f86);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25), 0 12px 30px rgba(11, 79, 134, .25);
  max-width: 720px; margin: 0 auto;
}
.kinds-row { padding: 18px 14px; }
.kinds-row img { width: 84px; transition: transform .2s; }
.kinds-row img:hover { transform: translateY(-6px) rotate(-4deg); }
@media (max-width: 520px) { .kinds-row img { width: 60px; } }

/* ---------- Anleitung ---------- */
.howto { padding: 56px 0; background: var(--sand-50); }
.howto h2, .howto .sub { text-align: center; }
.howto .sub { color: var(--muted); margin: 0 0 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border-radius: var(--radius); padding: 14px 18px;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(16, 42, 67, .06);
}
.steps p { margin: 4px 0 0; }
.steps strong { color: var(--red); }
@media (prefers-color-scheme: dark) { .steps strong { color: #ff8a80; } }
.num {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--round); font-weight: 800; color: #fff;
  background: var(--red); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), 0 2px 6px rgba(184, 36, 28, .35);
}
.kinds-mini { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 6px; }
.kinds-mini img { width: 42px; padding: 3px; background: var(--sea-500); border-radius: 10px; }
.ring-inline { width: 40px; margin-top: 6px; }
.tip {
  margin: 22px 0 0; padding: 14px 18px; border-radius: var(--radius);
  background: #fff6d6; border: 1px dashed #e7b93d; color: #5c4400;
}
@media (prefers-color-scheme: dark) { .tip { background: #2b2a1a; color: #ffe9a6; border-color: #8a7120; } }

/* ---------- Merkmale ---------- */
.features { padding: 10px 0 70px; background: var(--sand-50); }
.features h2 { text-align: center; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(16, 42, 67, .06); }
.card p { margin: 0; color: var(--muted); }
.grid .card { border-top: 5px solid var(--sea-500); }
.grid .card:nth-child(2) { border-top-color: var(--gold); }
.grid .card:nth-child(3) { border-top-color: var(--red); }
.grid .card:nth-child(4) { border-top-color: var(--cyan); }

/* ---------- Unterseiten ---------- */
.band {
  color: #fff; padding: 46px 0 70px; position: relative;
  background: linear-gradient(180deg, rgba(4, 29, 56, .5), rgba(4, 29, 56, .1)), url("img/water.webp") center 30% / cover, var(--sea-700);
}
.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: var(--sand-50);
  -webkit-mask: radial-gradient(50px 18px at 50px 0, transparent 98%, #000) 0 0 / 100px 100% repeat-x;
  mask: radial-gradient(50px 18px at 50px 0, transparent 98%, #000) 0 0 / 100px 100% repeat-x;
}
.band h1 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.paper { padding: 10px 0 70px; }
.doc h2 { font-size: 1.35rem; margin: 1.8em 0 .4em; }
.doc section:first-of-type h2 { margin-top: .6em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .2em 0; }
.note { font-size: .92rem; color: var(--muted); background: var(--sand-100); border-radius: 12px; padding: 10px 14px; }
.lead-dark { font-size: 1.12rem; }
.contact { margin: 20px 0 10px; border-left: 6px solid var(--red); }
.contact h2 { margin-top: 0 !important; }
.faq { display: grid; gap: 10px; }
.qa { background: var(--card); border-radius: 14px; box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.qa summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 650; position: relative; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--sea-500); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* ---------- Fußzeile ---------- */
.foot { background: var(--sea-950); color: rgba(255, 255, 255, .78); padding: 34px 0 calc(30px + env(safe-area-inset-bottom)); font-size: .93rem; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; gap: 14px; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 11px; }
.foot-brand strong { color: #fff; font-family: var(--round); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.legal-note, .copy { margin: 0; opacity: .7; }

/* ---------- Sprachauswahl (Wurzel) ---------- */
.picker { background: url("img/water.webp") center / cover fixed, var(--sea-700); color: #fff; min-height: 100vh; }
.pick { max-width: 900px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.pick-icon { border-radius: 26px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.pick h1 { margin: 16px 0 4px; font-size: 2.2rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.pick p { margin: 0 0 26px; opacity: .9; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pick-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px;
  background: rgba(4, 29, 56, .55); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px;
  color: #fff; text-decoration: none; font-weight: 600;
}
.pick-grid a:hover { background: rgba(4, 29, 56, .8); border-color: var(--cyan); }
.pick-grid img { width: 130px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
