/* Gemeinsames Aussehen von wass-er.com (Startseite, Impressum, Datenschutz, 404) */
:root {
  --bg: #eef3f6; --panel: #ffffff; --ink: #10222b; --muted: #5a6b72; --line: #d3dfe4;
  --accent: #0e5a86; --accent-ink: #ffffff; --head: #072a40; --head-ink: #f2f5f4;
  --see1: #0e5a86; --see2: #072a40; --welle: #5fb0e0; --gelb: #ffb020; --rot: #c8102e; --gruen: #0f7a5a;
  --bullauge: #e9f3f8; --messing: #c99a3b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #081620; --panel: #10222d; --ink: #e6eef0; --muted: #93a5ad; --line: #22363f;
    --accent: #6cbbe8; --accent-ink: #04121b; --head: #04121b; --see1: #0b3550; --see2: #04121b;
    --bullauge: #1b3442; --rot: #ff5a6e; --gruen: #3fbf8f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081620; --panel: #10222d; --ink: #e6eef0; --muted: #93a5ad; --line: #22363f;
  --accent: #6cbbe8; --accent-ink: #04121b; --head: #04121b; --see1: #0b3550; --see2: #04121b;
  --bullauge: #1b3442; --rot: #ff5a6e; --gruen: #3fbf8f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.55 "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; font-optical-sizing: auto; }
h1, h2, h3, .marke { font-family: "Inter Tight", "Inter", -apple-system, sans-serif; }
a { color: var(--accent); }
.leise { color: var(--muted); font-size: 15px; }
.innen { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ---------- Kopf ---------- */
.held { position: relative; background: linear-gradient(180deg, var(--see1), var(--see2)); color: var(--head-ink);
  padding: calc(env(safe-area-inset-top) + 20px) 0 56px; overflow: hidden; }
.held .leiste { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.marke { font-size: 22px; font-weight: 800; letter-spacing: .01em; color: inherit; text-decoration: none; cursor: default;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; border-radius: 8px; padding: 2px 6px; margin-left: -6px; }
.marke.funkt { background: var(--gelb); color: var(--head); }
.kaffee-klein { color: var(--head-ink); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px;
  text-decoration: none; font-size: 15px; white-space: nowrap; }
.kaffee-klein:hover { background: rgba(255,255,255,.1); }
.held .buehne { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.held h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; margin: 0 0 10px; }
.held .unterzeile { font-size: 18px; margin: 0 0 14px; opacity: .95; }
.held .einleitung { margin: 0; max-width: 520px; opacity: .9; }
.held::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: var(--bg);
  -webkit-mask: radial-gradient(14px 10px at 14px 0, transparent 98%, #000) 0 0 / 28px 28px repeat-x;
          mask: radial-gradient(14px 10px at 14px 0, transparent 98%, #000) 0 0 / 28px 28px repeat-x; }

/* Fiete im Bullauge, mit Sprechblase */
.fiete-platz { position: relative; width: 190px; }
.bullauge { display: block; width: 190px; height: 190px; border-radius: 50%; background: var(--bullauge);
  border: 9px solid var(--messing); box-shadow: inset 0 0 0 3px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.3);
  padding: 14px 0 0; cursor: pointer; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; }
.bullauge .fiete { height: 100%; width: auto; display: block; }
.sprechblase { position: absolute; right: 150px; top: -6px; background: var(--panel); color: var(--ink); border-radius: 14px;
  padding: 8px 12px; font-size: 15px; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.25); width: max-content; max-width: 260px; }
.sprechblase::after { content: ""; position: absolute; right: -8px; top: 18px; border: 8px solid transparent; border-left-color: var(--panel); border-right: 0; }
.sprechblase.neu { animation: auftauchen .25s ease-out; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(4px); } }
.fiete-winkt .flosse { transform-box: view-box; transform-origin: 162px 130px; }
.winken .fiete-winkt .flosse { animation: winken .5s ease-in-out 4 alternate; }
@keyframes winken { from { transform: rotate(-112deg); } to { transform: rotate(-150deg); } }

/* ---------- Schnellwahl ---------- */
.schnellwahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; margin: 8px 0 28px; }
.schnellwahl a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.schnellwahl a:hover { border-color: var(--accent); transform: translateY(-2px); }
.schnellwahl .zeichen { font-size: 24px; display: block; }
.schnellwahl b { display: block; font-family: "Inter Tight", "Inter", sans-serif; font-size: 17px; }
.schnellwahl span:last-child { color: var(--muted); font-size: 14.5px; }

/* ---------- Abschnitte und Karten ---------- */
.gruppe { margin: 0 0 30px; scroll-margin-top: 16px; }
.gruppe > h2 { font-size: 24px; margin: 0 0 4px; }
.gruppe > .einleitung { color: var(--muted); margin: 0 0 14px; max-width: 720px; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.karte { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; scroll-margin-top: 16px; }
.karte .kopf { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.karte .kopf > div { min-height: 56px; display: flex; flex-direction: column; justify-content: center; }
.karte .kopf img, .karte .kopf .symbol { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.karte .kopf .symbol { display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.karte h3 { margin: 0; font-size: 19px; line-height: 1.2; }
.karte .art { color: var(--muted); font-size: 14px; }
.karte p { margin: 0 0 10px; }
.karte ul { margin: 0 0 14px; padding-left: 20px; }
.karte li { margin-bottom: 4px; }
.karte .knopf { margin-top: auto; align-self: flex-start; }
.karte .knoepfe { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.karte .knoepfe .knopf { margin-top: 0; }
.mehr { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.knopf { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 9px 16px;
  text-decoration: none; font-weight: 600; }
.knopf:hover { filter: brightness(1.08); }
.knopf.still { background: transparent; color: var(--muted); border: 1px dashed var(--line); font-weight: 500; cursor: default; }
.marke-klein { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 2px; }

/* Über mich: Ausbildung als Leiter */
.ueber { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.leiter { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.leiter li { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); border-radius: 999px; padding: 4px 11px; font-size: 14.5px; font-weight: 600; }
.leiter li + li::before { content: none; }
.karte h4 { margin: 14px 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
/* Über mich: Scheine-Wegweiser */
.wegweiser h3 { margin-bottom: 2px; }
.wegweiser dl { display: grid; grid-template-columns: 6.4em 1fr; gap: 6px 12px; margin: 0; }
.wegweiser dt { font-weight: 700; font-size: 14.5px; background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 999px;
  padding: 1px 10px; align-self: start; justify-self: start; margin-top: 1px; hyphens: manual; }
.wegweiser dd { margin: 0; font-size: 15px; line-height: 1.45; }
.wegweiser dd a { white-space: nowrap; font-weight: 600; }

/* Unterstützen und Seenotretter */
.kaffee { background: linear-gradient(135deg, color-mix(in srgb, var(--gelb) 22%, var(--panel)), var(--panel)); }
.kaffee .knopf { background: #e07b1a; color: #fff; }
.seenot { display: flex; gap: 12px; align-items: center; border-left: 5px solid var(--rot); }
.seenot p { margin: 0; }

/* ---------- Signalflaggen-Trenner ---------- */
.flaggen { display: flex; justify-content: center; gap: 7px; margin: 6px 0 30px; }
.flaggen svg { width: 30px; height: 20px; display: block; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.flaggen span { position: relative; display: block; }
.flaggen span::after { content: attr(data-name); position: absolute; left: 50%; top: 24px; transform: translateX(-50%);
  font-size: 12px; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
.flaggen span:hover::after, .flaggen span:focus::after { opacity: 1; }
/* Morse-Trenner: Punkte und Striche, Buchstaben mit Abstand; leuchten beim Abspielen */
.morsetrenner { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 6px auto 30px; width: max-content;
  padding: 6px 10px; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.morsetrenner:hover, .morsetrenner:focus-visible { background: color-mix(in srgb, var(--accent) 10%, transparent); outline: none; }
.morsetrenner .buchstabe { position: relative; display: flex; align-items: center; gap: 4px; }
.morsetrenner i { display: block; height: 7px; border-radius: 4px; background: var(--muted); opacity: .75; transition: background .05s, opacity .05s; }
.morsetrenner i.punkt { width: 7px; }
.morsetrenner i.strich { width: 21px; }
.morsetrenner i.an { background: var(--gelb); opacity: 1; box-shadow: 0 0 8px var(--gelb); }
.morsetrenner .buchstabe::after { content: attr(data-name); position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  font-size: 12px; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
.morsetrenner:hover .buchstabe::after, .morsetrenner:focus-visible .buchstabe::after { opacity: 1; }

/* ---------- Fuß ---------- */
footer { border-top: 1px solid var(--line); padding: 22px 0 calc(env(safe-area-inset-bottom) + 28px); text-align: center; color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
footer .gruss { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
footer .glasen { font-size: 14px; margin-top: 4px; }
.glasen-knopf { background: none; border: 0; padding: 2px 4px; font: inherit; color: inherit; cursor: pointer; border-radius: 6px; }
.glasen-knopf:hover, .glasen-knopf[aria-expanded="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.glasen-knopf .info { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px; border-radius: 50%;
  border: 1.5px solid currentColor; font: italic 700 11.5px/1 Georgia, "Times New Roman", serif; vertical-align: 1px; }
.glasen-erklaerung { max-width: 520px; margin: 6px auto 0; text-align: left; line-height: 1.5; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--ink); }

/* ---------- Rechtliche Seiten und 404 ---------- */
.schlicht header { background: var(--head); color: var(--head-ink); padding: calc(env(safe-area-inset-top) + 14px) 16px 14px; }
.schlicht header div { max-width: 760px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.schlicht header h1 { font-size: 20px; margin: 0; }
.schlicht header a { color: var(--head-ink); border: 1px solid rgba(255,255,255,.3); border-radius: 10px; padding: 6px 12px; text-decoration: none; font-size: 15px; white-space: nowrap; }
.schlicht main { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(env(safe-area-inset-bottom) + 32px); }
.schlicht section { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.schlicht h2 { font-size: 19px; margin: 0 0 8px; }
.schlicht h3 { font-size: 16px; margin: 16px 0 6px; }
.schlicht p, .schlicht li { margin: 0 0 10px; }
.schlicht ul { padding-left: 22px; margin: 0 0 10px; }
.verloren { text-align: center; padding-top: 30px; }
.verloren .fiete { width: 180px; height: auto; }
.verloren h2 { font-size: 26px; }

@media (max-width: 640px) {
  .held .buehne { grid-template-columns: 1fr; }
  .fiete-platz { justify-self: end; width: 150px; margin-top: 4px; }
  .bullauge { width: 150px; height: 150px; border-width: 7px; padding-top: 10px; }
  .sprechblase { right: 120px; top: 0; max-width: min(240px, calc(100vw - 170px)); }
  .ueber { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .winken .fiete-winkt .flosse, .sprechblase.neu { animation: none; }
  .schnellwahl a { transition: none; }
}
@media print {
  .held { background: none; color: #000; } .held::after, .kaffee-klein, .flaggen, .morsetrenner, .fiete-platz { display: none; }
  .karte { break-inside: avoid; }
}
