/* Waldfreibad Walbeck – Mitgliedsantrag
   Gestaltung angelehnt an waldfreibadwalbeck.de: Inter (lokal eingebunden), Wasserblau-Verlauf,
   Mint als Hervorhebung, Wellenkanten, runde Karten und Pillen-Schaltflächen. */

@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  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: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  /* Markenfarben der Website */
  --blue-50: #E8F6FD;
  --blue-100: #CDEBFA;
  --blue-300: #7CC4EA;
  --blue-500: #1287C9;
  --blue-600: #0F6DA0;
  --blue-700: #0A5A8A;
  --blue-800: #08486E;
  --navy-900: #062840;
  --navy-950: #071E30;
  --mint: #4DD9AC;
  --mint-100: #DDF8EE;
  --mint-700: #127A59;
  --cyan: #009DD6;
  --ground: #F2F7FC;
  --paper: #FFFFFF;
  --ink: #0F1F2E;
  --heading: #1A2A3A;
  --ink-2: #33495F;
  --ink-3: #4F6B87;
  --line: #E0E7EB;
  --field: #7F95A9; /* Feldrahmen ≥ 3:1 auf Weiß */
  --ok: #127A59;
  --ok-tint: #DDF8EE;
  --warn: #8A5A00;
  --warn-tint: #FFF5DB;
  --bad: #C0362C;
  --bad-tint: #FDECEA;
  --grad: linear-gradient(135deg, #0E76B0, var(--blue-700)); /* Flächen mit weißer Schrift: ≥ 4.5:1 */
  --grad-hero: linear-gradient(165deg, var(--navy-900) 0%, var(--blue-700) 42%, #0E76B0 78%, var(--blue-600) 100%); /* weiße Schrift ≥ 4.5:1 */
  /* Altnamen für den Admin-Bereich */
  --blue: var(--blue-500);
  --blue-hover: var(--blue-700);
  --blue-tint: var(--blue-50);
  --rule: var(--line);

  --font: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(6, 40, 64, .06);
  --shadow: 0 1px 2px rgba(6, 40, 64, .05), 0 14px 32px -16px rgba(6, 40, 64, .22);
  --shadow-lg: 0 25px 50px -12px rgba(6, 40, 64, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --page: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--ground); -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* nichts darf seitlich herausragen (Bläschen, Konfetti, Karten) */
  -webkit-tap-highlight-color: rgba(18, 135, 201, .15);
}
::selection { background: var(--mint); color: var(--navy-950); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; color: var(--heading); }
p { margin: 0; }
a { color: var(--blue-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-500); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.sr-only:focus { position: fixed; z-index: 200; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; overflow: visible; background: #fff; color: var(--blue-700); border-radius: 10px; box-shadow: var(--shadow); }
.mono { font-family: var(--mono); font-size: .94em; letter-spacing: 0; }
.muted { color: var(--ink-3); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fieldset-reset { border: 0; padding: 0; margin: 0; min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.eyebrow { max-width: 100%; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* ================================================================
 * Kopfbereich: Wasserblau mit aufsteigenden Bläschen und Welle
 * ================================================================ */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--grad-hero); padding-bottom: 150px; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(../img/hero.jpg) center 40% / cover no-repeat; opacity: .6; }
.hero.has-photo { background: var(--navy-900); }
/* Abdunklung links (Textbereich) stärker, damit weiße Schrift auf jedem Foto lesbar bleibt */
.hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 40, 64, .82) 0%, rgba(6, 40, 64, .6) 50%, rgba(6, 40, 64, .3) 100%), linear-gradient(180deg, rgba(6, 40, 64, .2) 0%, transparent 45%, rgba(15, 109, 160, .85) 100%); }
.hero.has-photo .hero__content, .hero.has-photo .topnav { text-shadow: 0 1px 14px rgba(6, 40, 64, .45); }
.hero:not(.has-photo)::after { /* Lichtspiel auf dem Wasser */
  content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; opacity: .5;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent) 0 0 / 240px 150px,
    radial-gradient(closest-side, rgba(124, 196, 234, .18), transparent) 120px 75px / 300px 170px;
}
.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubbles i { position: absolute; bottom: -40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, .04) 60%); opacity: 0; }
.bubbles i:nth-child(1) { left: 6%; width: 14px; height: 14px; animation-delay: 0s; }
.bubbles i:nth-child(2) { left: 14%; width: 8px; height: 8px; animation-delay: 2.4s; }
.bubbles i:nth-child(3) { left: 23%; width: 20px; height: 20px; animation-delay: 5s; }
.bubbles i:nth-child(4) { left: 38%; width: 10px; height: 10px; animation-delay: 1.2s; }
.bubbles i:nth-child(5) { left: 52%; width: 16px; height: 16px; animation-delay: 6.5s; }
.bubbles i:nth-child(6) { left: 64%; width: 9px; height: 9px; animation-delay: 3.4s; }
.bubbles i:nth-child(7) { left: 73%; width: 22px; height: 22px; animation-delay: 8s; }
.bubbles i:nth-child(8) { left: 82%; width: 12px; height: 12px; animation-delay: 4.2s; }
.bubbles i:nth-child(9) { left: 90%; width: 18px; height: 18px; animation-delay: 1.8s; }
.bubbles i:nth-child(10) { left: 96%; width: 8px; height: 8px; animation-delay: 7.1s; }
@media (prefers-reduced-motion: no-preference) {
  .bubbles i { animation: bubble 11s linear infinite; }
  @keyframes bubble {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate3d(14px, -45vh, 0); }
    90% { opacity: .8; }
    100% { transform: translate3d(-8px, -95vh, 0); opacity: 0; }
  }
  .hero:not(.has-photo)::after { animation: shimmer-water 22s linear infinite; }
  @keyframes shimmer-water { to { transform: translate3d(240px, 150px, 0); } }
}
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 78px; width: 100%; z-index: 0; color: var(--ground); }
.hero--small { padding-bottom: 120px; }

.topnav { max-width: var(--page); margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand__logo { height: 52px; width: auto; }
.brand__sep { width: 1px; height: 34px; background: rgba(255, 255, 255, .3); }
.brand__sub { font-size: 13px; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, .85); max-width: 22ch; }
.head-link { color: #fff; text-decoration: none; font: inherit; font-weight: 700; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(6, 40, 64, .3); backdrop-filter: blur(6px); transition: background-color .2s; white-space: nowrap; cursor: pointer; }
.head-link:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hero :focus-visible, .site-foot :focus-visible { outline-color: var(--mint); }

.hero__content { max-width: var(--page); margin: 0 auto; padding: 40px 24px 0; position: relative; z-index: 1; }
.hero__content .eyebrow { background: rgba(6, 40, 64, .38); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.hero__content h1 { color: #fff; font-size: clamp(36px, 5.4vw, 60px); margin-top: 18px; max-width: 15ch; }
.hero__content h1 .hl { color: var(--mint); display: block; }
.hero__lead { margin-top: 16px; font-size: 19px; max-width: 50ch; color: rgba(255, 255, 255, .9); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(6, 40, 64, .38); border: 1px solid rgba(255, 255, 255, .28); font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); }
.chips .icon { color: var(--mint); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise .7s var(--ease) both; }
  .hero__content > *:nth-child(2) { animation-delay: .07s; }
  .hero__content > *:nth-child(3) { animation-delay: .14s; }
  .hero__content > *:nth-child(4) { animation-delay: .21s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* Hauptkarte, die in den Kopfbereich hineinragt */
.sheet { position: relative; z-index: 2; max-width: 940px; margin: -112px auto 0; padding: 0 20px; }
.sheet--wide { max-width: var(--page); }
.sheet--narrow { max-width: 620px; }
.sheet__card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 36px 44px 40px; }
.sheet__card + .sheet__card { margin-top: 24px; }

/* ================================================================
 * Fuß mit Welle
 * ================================================================ */
.site-foot { position: relative; margin-top: 96px; background: var(--navy-950); color: rgba(255, 255, 255, .78); }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px;
  background: var(--navy-950);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 18C260 36 520 0 780 19s440-16 660-2v23H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 18C260 36 520 0 780 19s440-16 660-2v23H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.site-foot__inner { max-width: var(--page); margin: 0 auto; padding: 36px 24px 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; font-size: 15px; }
.site-foot__logo { height: 46px; width: auto; }
.site-foot__brand p { margin-top: 14px; }
.site-foot__label { font-weight: 700; color: #fff; margin-bottom: 6px; }
.site-foot__contact p + p { margin-top: 4px; }
.site-foot a { color: #fff; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.site-foot a:hover { color: var(--mint); text-decoration: underline; }
.site-foot__contact .icon { color: var(--mint); }
.site-foot__note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
.site-foot__note a { display: inline; text-decoration: underline; }

/* ================================================================
 * Felder & Schaltflächen
 * ================================================================ */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 15px; font-weight: 700; color: var(--heading); display: inline-flex; align-items: center; gap: 8px; }
.req { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.hint { font-size: 14px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--field); border-radius: 12px; padding: 0 16px; height: 52px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.textarea { height: auto; padding: 12px 16px; min-height: 104px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue-700) 50%), linear-gradient(135deg, var(--blue-700) 50%, transparent 50%);
  background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: #5F7A92; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(18, 135, 201, .18); }
.input::placeholder, .textarea::placeholder { color: #6F8599; opacity: 1; }
.input[readonly] { background: var(--ground); color: var(--ink-2); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(192, 54, 44, .12); }
.field.is-valid .input { border-color: var(--mint-700); }
.field-error { font-size: 14px; color: var(--bad); display: flex; gap: 6px; align-items: flex-start; font-weight: 600; }
.field-error .icon { margin-top: 3px; }
.field-ok { font-size: 14px; color: var(--ok); display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap__icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); display: flex; }
.input-wrap__icon.is-ok { color: var(--ok); }
.input-wrap__icon.is-bad { color: var(--bad); }
.input--date { max-width: 240px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-plz { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); }
.span-2 { grid-column: span 2; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 15px; line-height: 1.55; }
.check input { appearance: none; width: 26px; height: 26px; margin: 0; border: 1.5px solid var(--field); border-radius: 8px; background: var(--paper); cursor: pointer; display: grid; place-content: center; transition: background-color .15s, border-color .15s; }
.check input::before { content: ""; width: 13px; height: 13px; transform: scale(0); transition: transform .15s var(--ease); background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.check input:checked { background: var(--blue-500); border-color: var(--blue-500); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.check.is-invalid input { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(192, 54, 44, .12); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; font: inherit; font-weight: 700; font-size: 16px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--blue-700); border-radius: 999px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s var(--ease), filter .2s;
}
.btn:hover { border-color: var(--blue-300); background: var(--blue-50); color: var(--blue-700); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -12px rgba(10, 90, 138, .8); }
.btn--primary:hover { background: var(--grad); color: #fff; border-color: transparent; filter: brightness(1.08) saturate(1.05); box-shadow: 0 14px 30px -12px rgba(10, 90, 138, .85); transform: translateY(-1px); }
.btn--light { background: #fff; border-color: #fff; color: var(--blue-500); }
.btn--light:hover { background: var(--blue-50); border-color: var(--blue-50); color: var(--blue-700); }
.btn--ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn--danger { color: var(--bad); border-color: #F0B9B3; }
.btn--danger:hover { background: var(--bad-tint); border-color: var(--bad); color: var(--bad); }
.btn--danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn--danger-solid:hover { background: #9E2A21; border-color: #9E2A21; color: #fff; }
.btn--quiet { border-color: transparent; background: transparent; color: var(--blue-700); padding: 0 12px; }
.btn--quiet:hover { background: var(--blue-50); border-color: transparent; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.btn .icon { width: 18px; height: 18px; }

.notice { padding: 14px 18px; font-size: 15px; line-height: 1.55; border-radius: 14px; background: var(--ground); display: flex; gap: 12px; }
.notice .icon { margin-top: 3px; }
.notice--info { background: var(--blue-50); color: var(--navy-900); border: 1px solid var(--blue-100); }
.notice--info .icon { color: var(--blue-500); }
.notice--warn { background: var(--warn-tint); color: #6B4500; border: 1px solid #F3DDA3; }
.notice--bad { background: var(--bad-tint); color: #8E241C; border: 1px solid #F3C3BD; }
.notice--ok { background: var(--ok-tint); color: #0B5A40; border: 1px solid #A9E9D2; }
.notice strong { font-weight: 800; }

/* ================================================================
 * Jahreskarte im Kleinformat (Statusanzeige)
 * ================================================================ */
.marke {
  --c1: var(--blue-700); --c2: #0E76B0; --t: #fff;
  position: relative; flex: none; width: 240px; aspect-ratio: 1.586; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--t);
  box-shadow: 0 20px 40px -18px rgba(6, 40, 64, .6); container-type: inline-size; isolation: isolate;
}
.marke::before { /* Welle unten */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: -1; opacity: .2; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 40c70 30 140-30 210 0s130 25 190 0v60H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 40c70 30 140-30 210 0s130 25 190 0v60H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.marke::after { /* Glanz */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%);
  transform: translateX(-100%);
}
.marke__frame { height: 100%; padding: 8cqi 8cqi 7cqi; display: grid; grid-template-rows: auto 1fr auto; }
.marke__org { display: flex; align-items: center; gap: 3cqi; font-size: 6.2cqi; font-weight: 800; letter-spacing: .01em; line-height: 1.2; }
.marke__org::before { content: ""; flex: none; width: 13cqi; height: 6cqi; background: currentColor;
  -webkit-mask: url(../img/mark.svg) center / contain no-repeat; mask: url(../img/mark.svg) center / contain no-repeat; }
.marke__year { align-self: end; font-size: 22cqi; font-weight: 900; letter-spacing: -0.04em; line-height: .95; white-space: nowrap; }
.marke__state { justify-self: start; margin-top: 3cqi; font-size: 5.6cqi; font-weight: 800; padding: 1.4cqi 4cqi; border-radius: 999px; background: var(--mint); color: var(--navy-950); white-space: nowrap; }
.marke--pending { --c1: #FFFFFF; --c2: var(--blue-50); --t: var(--blue-700); box-shadow: inset 0 0 0 2px var(--blue-100), 0 20px 40px -24px rgba(6, 40, 64, .4); }
.marke--pending .marke__state { background: var(--blue-700); color: #fff; }
.marke--pending::before { opacity: .12; }
.marke--blocked { --c1: #7E1F18; --c2: var(--bad); }
.marke--blocked .marke__state { background: #fff; color: var(--bad); }
.marke--ended { --c1: #94A3B3; --c2: #C9D3DD; --t: var(--navy-900); }
.marke--ended .marke__state { background: rgba(255, 255, 255, .7); }
.marke--sponsor { --c1: var(--mint); --c2: #C6F3E3; --t: var(--navy-950); }
.marke--sponsor .marke__state { background: var(--navy-900); color: #fff; }
.marke--sm { width: 150px; border-radius: 12px; }
.marke--lg { width: 320px; border-radius: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .marke::after { animation: card-shine 5s ease-in-out 1s infinite; }
  @keyframes card-shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
  .marke--stamp { animation: card-in .9s var(--ease) both .25s; }
  @keyframes card-in { from { opacity: 0; transform: perspective(800px) rotateY(-35deg) rotateZ(-6deg) translateY(24px); } to { opacity: 1; transform: perspective(800px) rotateY(-8deg) rotateZ(-3deg); } }
}
.marke--stamp { transform: perspective(800px) rotateY(-8deg) rotateZ(-3deg); }

/* ================================================================
 * Antragsformular
 * ================================================================ */
.steps { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 21px; height: 3px; background: var(--line); border-radius: 3px; z-index: 0; }
.steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: var(--ink-3); }
.steps__num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; font-weight: 800; font-size: 16px;
  background: var(--paper); border: 2px solid var(--line); color: var(--ink-3); transition: all .3s var(--ease);
}
.steps__name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.steps__meta { font-size: 12px; color: var(--ink-3); margin-top: -4px; }
.steps__done { display: none; }
.steps li.is-current { color: var(--heading); }
.steps li.is-current .steps__num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(18, 135, 201, .16); transform: scale(1.06); }
.steps li.is-done { color: var(--heading); }
.steps li.is-done .steps__num { background: var(--mint); border-color: var(--mint); color: transparent; position: relative; }
.steps li.is-done .steps__num::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; background: var(--navy-900);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.steps li.is-skipped .steps__num { border-style: dashed; background: var(--ground); color: #64798F; }
.steps li.is-skipped .steps__name { color: #64798F; }
.progress-compact { display: none; }

.panel { min-width: 0; }
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.panel__title { display: flex; gap: 16px; align-items: center; }
.panel__head h2 { font-size: 28px; }
.panel__head p { color: var(--ink-3); font-size: 16px; margin-top: 4px; }
.panel__badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-content: center; background: var(--blue-50); color: var(--blue-500); flex: none; }
.panel__badge .icon { width: 26px; height: 26px; }
.panel__body { padding-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.panel__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-error { margin-top: 20px; }
.section-title { font-size: 16px; font-weight: 800; color: var(--heading); display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.section-title .icon { color: var(--blue-500); }

/* Tarifwahl als Kacheln */
.tariffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tariff {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 20px 20px; border-radius: 18px; cursor: pointer;
  background: var(--paper); border: 2px solid var(--line); transition: border-color .2s, box-shadow .25s, transform .25s var(--ease), background-color .2s;
}
.tariff:hover { border-color: var(--blue-300); transform: translateY(-3px); box-shadow: var(--shadow); }
.tariff input { position: absolute; opacity: 0; pointer-events: none; }
.tariff:has(input:focus-visible) { outline: 3px solid var(--blue-500); outline-offset: 3px; }
.tariff__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-content: center; background: var(--blue-50); color: var(--blue-500); margin-bottom: 10px; transition: background .2s, color .2s; }
.tariff__icon .icon { width: 25px; height: 25px; }
.tariff__name { font-size: 17px; font-weight: 800; color: var(--heading); line-height: 1.3; letter-spacing: -0.01em; }
.tariff__desc { font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.tariff__price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.tariff__price strong { font-size: 34px; font-weight: 900; letter-spacing: -0.035em; color: var(--blue-500); }
.tariff__price span { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.tariff__features { margin-top: 10px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.tariff__feature { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.tariff__feature .icon { color: var(--mint-700); width: 16px; height: 16px; margin-top: 2px; }
.tariff__check { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-content: center; background: var(--mint); color: var(--navy-950); transform: scale(0); transition: transform .3s var(--ease); }
.tariff__check .icon { width: 16px; height: 16px; stroke-width: 3; }
.tariff.is-selected { border-color: var(--blue-500); background: linear-gradient(180deg, var(--blue-50), #fff 72%); box-shadow: 0 18px 36px -20px rgba(10, 90, 138, .6); }
.tariff.is-selected .tariff__icon { background: var(--grad); color: #fff; }
.tariff.is-selected .tariff__check { transform: scale(1); }

.subform { border-radius: 18px; padding: 22px; display: grid; gap: 16px; background: var(--ground); border: 1px solid var(--line); }
.subform__title { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 10px; color: var(--heading); }
.subform__title .icon { color: var(--blue-500); }
.dropzone { border: 2px dashed #A8BED0; border-radius: 16px; padding: 28px 20px; text-align: center; cursor: pointer; background: var(--paper); transition: border-color .2s, background-color .2s; width: 100%; font: inherit; color: var(--heading); display: grid; gap: 4px; justify-items: center; }
.dropzone .icon { width: 30px; height: 30px; color: var(--blue-500); margin-bottom: 4px; }
.dropzone:hover, .dropzone.is-over { border-color: var(--blue-500); background: var(--blue-50); }
.dropzone strong { font-size: 16px; }
.dropzone span { font-size: 13px; color: var(--ink-3); }
.file-row { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 12px 16px; font-size: 15px; background: var(--paper); border: 1px solid var(--line); }
.file-row > .icon { color: var(--ok); }
.file-row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }

.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--paper); border-radius: 14px; list-style: none; margin: 0; padding: 6px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.suggest li { padding: 11px 12px; font-size: 15px; cursor: pointer; border-radius: 10px; display: flex; gap: 10px; align-items: center; }
.suggest li .icon { color: var(--blue-500); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--blue-50); }

.family-row { display: grid; grid-template-columns: 1fr 1fr 190px 48px; gap: 12px; align-items: end; padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.family-row__label { grid-column: 1 / -1; font-size: 14px; font-weight: 800; color: var(--blue-700); display: flex; gap: 8px; align-items: center; }
#family-list { display: grid; gap: 14px; }
#family-list:empty { display: none; }
.icon-btn { width: 48px; height: 52px; display: grid; place-content: center; border: 1.5px solid transparent; border-radius: 12px; background: transparent; color: var(--ink-3); cursor: pointer; transition: all .2s; }
.icon-btn:hover { color: var(--bad); border-color: #F0B9B3; background: var(--bad-tint); }
.btn--add { border-style: dashed; border-width: 2px; border-color: #A8BED0; height: 60px; border-radius: 18px; }
.btn--add:hover { border-color: var(--blue-500); }

/* Zusammenfassung */
.summary { display: grid; gap: 18px; }
.summary__box { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.summary__box > .section-title { padding: 14px 20px; background: var(--ground); border-bottom: 1px solid var(--line); }
.summary__box > .dl { padding: 4px 20px; }
.dl { display: grid; grid-template-columns: 190px minmax(0, 1fr); margin: 0; }
.dl dt, .dl dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }
.dl dt { color: var(--ink-3); padding-right: 16px; }
.dl dd { font-weight: 600; overflow-wrap: anywhere; }
.total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: var(--grad); color: #fff; }
.total span { font-weight: 700; }
.total strong { font-size: 32px; font-weight: 900; letter-spacing: -0.035em; color: #fff; }
.legal { font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.legal-box { border-radius: 18px; border: 1px solid var(--line); padding: 22px; display: grid; gap: 14px; background: var(--paper); }

/* Bestätigung */
.done { text-align: center; position: relative; overflow: hidden; }
.done__check { width: 88px; height: 88px; margin: 6px auto 0; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-content: center; box-shadow: 0 0 0 10px var(--mint-100), 0 0 0 11px var(--mint); }
.done__check svg { width: 46px; height: 46px; }
.done__check path { stroke-dasharray: 30; stroke-dashoffset: 0; }
.done h2 { font-size: clamp(30px, 4.4vw, 44px); margin-top: 28px; }
.done h2 .hl { color: var(--blue-500); }
.done__lead { margin: 12px auto 0; font-size: 18px; color: var(--ink-2); max-width: 54ch; }
.done__lead .mono { white-space: nowrap; font-weight: 800; color: var(--heading); }
.done__card { display: flex; justify-content: center; margin: 36px 0 12px; }
.next-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.next-steps li { padding: 20px; border-radius: 18px; background: var(--ground); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.next-steps .icon { width: 26px; height: 26px; color: var(--blue-500); }
.next-steps strong { color: var(--heading); font-weight: 800; }
.next-steps span { font-size: 15px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.done .actions { justify-content: center; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .done__check { animation: pop .6s var(--ease) both; }
  .done__check path { stroke-dashoffset: 30; animation: draw .5s .35s ease-out forwards; }
  @keyframes pop { from { transform: scale(.4); opacity: 0; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .confetti i { animation: fall 2.8s cubic-bezier(.2, .6, .4, 1) forwards; }
  @keyframes fall { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--dx, 0), 640px, 0) rotate(var(--rot, 540deg)); } }
}
.confetti i:nth-child(4n+1) { background: var(--mint); }
.confetti i:nth-child(4n+2) { background: var(--blue-500); }
.confetti i:nth-child(4n+3) { background: var(--navy-900); border-radius: 50%; width: 12px; height: 12px; }
.confetti i:nth-child(4n+4) { background: var(--cyan); }
.confetti i:nth-child(1) { left: 6%; animation-delay: .05s; --dx: 30px; }
.confetti i:nth-child(2) { left: 13%; animation-delay: .3s; --dx: -40px; --rot: 380deg; }
.confetti i:nth-child(3) { left: 20%; animation-delay: .15s; --dx: 50px; }
.confetti i:nth-child(4) { left: 27%; animation-delay: .45s; --dx: -20px; --rot: 620deg; }
.confetti i:nth-child(5) { left: 34%; animation-delay: .1s; --dx: 25px; }
.confetti i:nth-child(6) { left: 41%; animation-delay: .35s; --dx: -55px; --rot: 300deg; }
.confetti i:nth-child(7) { left: 48%; animation-delay: .2s; --dx: 35px; }
.confetti i:nth-child(8) { left: 55%; animation-delay: .5s; --dx: -30px; --rot: 700deg; }
.confetti i:nth-child(9) { left: 62%; animation-delay: .12s; --dx: 45px; }
.confetti i:nth-child(10) { left: 69%; animation-delay: .4s; --dx: -45px; --rot: 420deg; }
.confetti i:nth-child(11) { left: 76%; animation-delay: .25s; --dx: 20px; }
.confetti i:nth-child(12) { left: 83%; animation-delay: .55s; --dx: -35px; --rot: 560deg; }
.confetti i:nth-child(13) { left: 90%; animation-delay: .18s; --dx: 30px; }
.confetti i:nth-child(14) { left: 96%; animation-delay: .38s; --dx: -25px; --rot: 350deg; }

/* ================================================================
 * Einfache Seiten: Jahreskarte, Kundenkonto, Fehler
 * ================================================================ */
.status-page { text-align: center; padding: 8px 0 4px; display: grid; justify-items: center; }
.status-page h1 { font-size: 30px; margin-top: 22px; }
.status-page p { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 52ch; }
.status-page .actions { justify-content: center; }
.status-page__code { width: 80px; height: 80px; border-radius: 50%; display: grid; place-content: center; background: var(--blue-50); color: var(--blue-500); font-weight: 900; font-size: 24px; letter-spacing: -0.02em; }
.status-page__code .icon { width: 36px; height: 36px; }

.card-view { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; margin-top: 24px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--ground)); }
.card-view .dl { grid-template-columns: 140px minmax(0, 1fr); }
.card-number { margin-top: 18px; }
.card-number span { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.card-number strong { font-family: var(--mono); font-size: 24px; letter-spacing: .02em; color: var(--blue-700); }

.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
.tabs button { flex: 1; font: inherit; font-size: 15px; font-weight: 700; padding: 10px 18px; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 999px; white-space: nowrap; transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--blue-700); box-shadow: 0 1px 3px rgba(6, 40, 64, .12); }
.tabs button:hover { color: var(--blue-700); }
.auth-box { margin-top: 26px; display: grid; gap: 20px; }
.auth-box > p:first-child { color: var(--ink-2); }
.membership { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); }
.membership + .membership { margin-top: 18px; }
.membership h3 { font-size: 22px; }
.membership__meta { margin-top: 4px; color: var(--ink-3); font-size: 15px; }
.membership__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.account-section > h2 { font-size: 22px; display: flex; gap: 12px; align-items: center; }
.account-section > h2 .panel__badge { width: 44px; height: 44px; border-radius: 14px; }
.account-section > h2 .panel__badge .icon { width: 22px; height: 22px; }
.account-section > .grid, .account-section > form { margin-top: 22px; }
.account-section > .hint { margin-top: 8px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-family: var(--mono); font-size: 16px; padding: 16px; background: var(--ground); border: 1px solid var(--line); border-radius: 12px; }

/* Hinweise & Dialoge */
.toasts { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--navy-900); color: #fff; padding: 14px 18px; border-radius: 14px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease); }
.toast--bad { background: var(--bad); }
.toast--ok .icon { color: var(--mint); }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); max-width: calc(100vw - 32px); }
dialog::backdrop { background: rgba(6, 40, 64, .55); backdrop-filter: blur(3px); }
.confirm { width: 480px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.confirm__body { padding: 28px 28px 8px; display: grid; gap: 12px; }
.confirm__body h2 { font-size: 21px; }
.confirm__body p { color: var(--ink-2); }
.confirm.is-danger .confirm__body h2 { color: var(--bad); }
.confirm__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px 26px; }

/* ================================================================
 * Responsiv
 * ================================================================ */
@media (max-width: 920px) {
  .tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-steps { grid-template-columns: 1fr; }
  .brand__sep, .brand__sub { display: none; }
}
@media (max-width: 720px) {
  .hero { padding-bottom: 116px; }
  .topnav { padding: 14px 16px; }
  .brand__logo { height: 40px; }
  .head-link { padding: 9px 14px; font-size: 14px; }
  .hero__content { padding: 16px 16px 0; }
  .hero__lead { font-size: 16px; }
  .chips li { font-size: 13px; padding: 6px 12px; }
  .sheet { padding: 0 10px; margin-top: -88px; }
  .sheet__card { padding: 24px 18px 26px; border-radius: 20px; }
  .steps { display: none; }
  .progress-compact { display: block; margin-bottom: 24px; }
  .progress-compact__label { font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; color: var(--heading); }
  .progress-compact__label span:last-child { color: var(--blue-700); }
  .progress-compact__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
  .progress-compact__bar span { height: 6px; border-radius: 6px; background: var(--line); transition: background-color .3s; }
  .progress-compact__bar span.is-on { background: var(--grad); }
  .progress-compact__bar span.is-skip { background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px); }
  .grid-2, .grid-3, .grid-plz, .tariffs { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .panel__head { flex-direction: column; }
  .panel__head h2 { font-size: 23px; }
  .panel__badge { width: 44px; height: 44px; border-radius: 14px; }
  .family-row { grid-template-columns: 1fr 48px; }
  .family-row .field { grid-column: 1; }
  .family-row .icon-btn { grid-column: 2; grid-row: 2; }
  .dl, .card-view .dl { grid-template-columns: minmax(0, 1fr); }
  .dl dt { border-bottom: 0; padding-bottom: 0; }
  .membership, .card-view { grid-template-columns: minmax(0, 1fr); }
  .card-view, .membership { padding: 18px; }
  .card-view .marke, .membership .marke { order: -1; justify-self: center; }
  .marke--lg { width: 280px; }
  .panel__nav { position: sticky; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); margin: 24px -18px -26px; padding: 12px 18px; border-radius: 0 0 20px 20px; z-index: 5; }
  .panel__nav .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; white-space: normal; line-height: 1.2; text-align: center; }
  .site-foot__inner { grid-template-columns: 1fr; }
  .codes { grid-template-columns: 1fr; }
  .total strong { font-size: 27px; }
  .tabs button { padding: 10px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.sheet__card > .auth-box:first-child { margin-top: 0; }
.sheet__card > .tabs + .auth-box { margin-top: 24px; }
.tariff__price strong, .total strong, .marke__year, .dl dd, .table td, .card-number strong { font-variant-numeric: tabular-nums; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
@media (max-width: 720px) { .panel__nav .btn:disabled { display: none; } }
/* Sehr schmale Handys (z. B. iPhone SE) */
@media (max-width: 380px) {
  .sheet__card { padding: 20px 14px 22px; }
  .panel__nav { margin: 20px -14px -22px; padding: 10px 14px; }
  .panel__nav .btn { font-size: 15px; gap: 6px; }
  #btn-back .icon { display: none; }
  .hero__content h1 { font-size: 32px; }
  .tariff { padding: 18px 16px; }
  .family-row { padding: 14px; }
}
/* Kleine Handys: Kopfbereich kürzer, damit das Formular früher sichtbar ist */
@media (max-width: 480px) {
  .hero .chips { display: none; }
  .hero__lead { font-size: 15px; margin-top: 12px; }
  .hero__content h1 { margin-top: 14px; }
}
