:root {
  color-scheme: light;
  --red: #c8102e;
  --red-dark: #9e0c24;
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: #d6d6d6;
  --bg: #f2f2f2;
  --card: #ffffff;
  --bar: #555555;
  --sub: #b8b8b8;
  --ok: #1e7b3a;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--red); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* Header */
.top { background: #111; color: #fff; border-bottom: 4px solid var(--red); }
.top-in { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; object-fit: cover; }
.eyebrow { font-size: 13px; color: #bbb; letter-spacing: .03em; }
h1 { margin: 0; font-size: 26px; font-weight: 700; }
h2 { font-size: 20px; margin: 0 0 10px; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); padding: 22px; margin: 20px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.step { display: flex; gap: 12px; background: #fafafa; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 700; }
.more { border-top: 1px solid var(--line); padding: 10px 0; }
.more summary { cursor: pointer; font-weight: 600; }
.more ul { margin: 8px 0; padding-left: 20px; }
.note { background: #fff8e6; border-left: 4px solid #e0a100; padding: 8px 12px; font-size: 13px; }
.alert { background: #fdecef; border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 4px; }
.fees { border-collapse: collapse; margin: 8px 0; }
.fees td { padding: 4px 18px 4px 0; border-bottom: 1px solid #eee; }
.fees td:last-child { font-weight: 600; text-align: right; }
.muted { color: var(--muted); font-size: 14px; }
.contact { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }

/* Form blocks (angelehnt an die ÖFB-Maske) */
.block { background: var(--card); margin: 20px 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bar { background: var(--bar); color: #fff; font-size: 16px; font-weight: 500; margin: 0; padding: 9px 18px; }
.bar .opt { font-size: 13px; color: #ddd; font-weight: 400; margin-left: 8px; }
.sub { background: var(--sub); color: #fff; font-size: 15px; font-weight: 500; margin: 0 0 12px;
  padding: 7px 18px; display: flex; align-items: center; gap: 12px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding-bottom: 16px; }
.cols2 > div > .grid, .pfields { padding: 0 18px; }
.pad { padding: 16px 18px; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 18px; }
.pad .hint { margin: 0 0 12px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; border: 0; margin: 0; min-width: 0; }
.span2 { grid-column: 1 / -1; }
label { display: block; font-size: 13px; color: #333; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 7px 9px; font: inherit; font-size: 15px;
  border: 1px solid #555; border-radius: 0; background: #fff; color: var(--ink); min-height: 36px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); background: #fff6f7; }
.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.code { font-size: 24px !important; letter-spacing: 8px; max-width: 220px; font-family: ui-monospace, Menlo, monospace; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[disabled] { opacity: .45; }
.radios legend { font-size: 13px; color: #333; padding: 0; margin-bottom: 6px; }
.radios label { display: inline-flex; align-items: center; gap: 6px; margin-right: 22px; font-size: 14px; }
input[type=radio], input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: inherit; color: inherit; }
.sub .check-inline { color: #fff; }
.sub .right { margin-left: auto; font-size: 13px; }
.fieldmsg { display: block; font-size: 12px; min-height: 16px; }
.fieldmsg.ok { color: var(--ok); }
.fieldmsg.bad { color: var(--red); }

.fee { align-self: end; background: #fafafa; border: 1px solid var(--line); padding: 8px 12px; font-size: 14px; }
.fee b { font-size: 18px; color: var(--red); }

.sepa { margin-top: 14px; border: 1px solid var(--line); }
.sepa .sub { margin: 0; }
.sepa .grid, .sepa .consent { margin: 12px 14px; }
.sepa-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; padding: 12px 14px 0; font-size: 14px; }
.sepa-meta span { display: block; font-size: 12px; color: var(--muted); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; color: var(--ink); }
.consent input { flex: none; margin-top: 3px; }
.consent.invalid { color: var(--red); }
.dsgvo { font-size: 13px; color: #444; background: #fafafa; border: 1px solid var(--line); padding: 10px 14px; margin: 0 0 10px 26px; }

/* Uploads */
.uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.up { border: 1px solid var(--line); padding: 10px; border-radius: 4px; }
.up-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.up-drop { display: flex; align-items: center; gap: 10px; cursor: pointer; border: 1px dashed #999; padding: 8px; }
.up-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.up-drop:focus-within { outline: 2px solid var(--red); }
.plus { width: 30px; height: 30px; border: 1px solid #bbb; border-radius: 4px; display: grid; place-items: center; font-size: 22px; color: #555; }
.up-text { font-size: 13px; color: var(--muted); word-break: break-all; }
.up-info { font-size: 12px; margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.up-info img { width: 48px; height: 60px; object-fit: cover; border: 1px solid var(--line); }
.up-info .warn { color: #a15c00; }
.up-info .bad { color: var(--red); }

/* Unterschrift */
.sig-grid { margin-top: 14px; }
.sig { margin-top: 14px; max-width: 560px; }
.sig.invalid #sigPad { border-color: var(--red); background: #fff6f7; }
.sig-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
#sigPad { width: 100%; max-width: 560px; height: 160px; border: 1px solid #555; background: #fff; touch-action: none; display: block; cursor: crosshair; }

/* Buttons & Messages */
.btn { background: var(--red); color: #fff; border: 0; padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 3px; min-height: 38px; }
.btn:hover { background: var(--red-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn.big { margin-top: 16px; padding: 12px 26px; font-size: 16px; }
.link { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; cursor: pointer; font: inherit; }
.link.small { font-size: 12px; color: #333; }
.row-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0; }
.grow { flex: 1 1 260px; }
.msg { min-height: 20px; font-size: 14px; margin: 8px 0 0; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--ok); }
.session-bar { margin-top: 20px; font-size: 14px; color: var(--muted); }

.foot { color: var(--muted); font-size: 12px; text-align: center; padding: 20px 16px 40px; }

@media (max-width: 760px) {
  h1 { font-size: 21px; }
  .logo { width: 52px; height: 52px; }
  .card { padding: 16px; }
  .steps, .cols2, .sepa-meta { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .grid > label:has(input[name$=".strasse"]), .grid > label:has(input[type=email]) { grid-column: 1 / -1; }
  .cols2 > div > .grid, .pfields { padding: 0 14px; }
  .pad { padding: 14px; }
  .hint { margin: 12px 14px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}

/* Straßenvorschläge (Photon) */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: 0; padding: 0; list-style: none;
  background: #fff; border: 1px solid #555; border-top: 0; box-shadow: 0 6px 16px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; }
.ac-list li { padding: 7px 10px; cursor: pointer; font-size: 14px; color: var(--ink); }
.ac-list li small { color: var(--muted); margin-left: 6px; }
.ac-list li.active, .ac-list li:hover { background: #fdecef; }
.ac-list .ac-foot { font-size: 11px; color: var(--muted); cursor: default; background: #fafafa; }
.ac-list .ac-foot:hover { background: #fafafa; }

/* Admin */
.narrow { max-width: 520px; }
.admin-login { display: grid; gap: 12px; margin-top: 12px; }
.admin-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #ccc; }
.link.light { color: #fff; }
.admin-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-bar small { font-weight: 400; color: #ddd; font-size: 13px; }
.admin-bar .small-btn { margin-left: auto; }
.small-btn { padding: 5px 12px; min-height: 0; font-size: 13px; text-decoration: none; display: inline-block; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 8px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.admin-table tbody tr { cursor: pointer; }
.admin-table tbody tr:hover { background: #fdf3f5; }
.admin-table a { color: var(--ink); text-decoration: none; }
.crumbs { margin: 16px 0 0; font-size: 14px; }
.sub.flush { margin: 18px -18px 8px; }
.kv { border-collapse: collapse; width: 100%; font-size: 14px; }
.kv td { padding: 5px 0; border-bottom: 1px solid #eee; vertical-align: top; }
.kv td:first-child { color: var(--muted); width: 38%; padding-right: 12px; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.doc { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); padding: 8px; font-size: 13px; word-break: break-all; }
.doc img { width: 64px; height: 80px; object-fit: cover; border: 1px solid var(--line); display: block; }
.doc img.sig-img { object-fit: contain; background: #fff; }
.doc .pdf { width: 64px; height: 80px; display: grid; place-items: center; background: #f4f4f4; border: 1px solid var(--line); font-weight: 700; color: var(--red); text-decoration: none; flex: none; }
.danger { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .sub.flush { margin: 18px -14px 8px; } .admin-user span { display: none; } }

.otp-hint { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.otp-hint .link { font-size: 13px; }
.resend { margin-top: 10px; }

/* Status NEU / Angemeldet */
.tabs { display: flex; gap: 4px; align-items: flex-end; margin-top: 20px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; background: #ddd; color: var(--ink); text-decoration: none; border-radius: 6px 6px 0 0; font-size: 14px; }
.tabs a span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.tabs a.active { background: var(--bar); color: #fff; }
.tabs a.active span { color: #ddd; }
.tabs .tabs-right { margin-left: auto; margin-bottom: 6px; border-radius: 3px; background: var(--red); color: #fff; }
.block.flat-top { margin-top: 0; border-top-left-radius: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.neu { background: #fdecef; color: var(--red); }
.badge.angemeldet { background: #e6f4ea; color: var(--ok); }
.admin-table td form { margin: 0; }
.status-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); margin-bottom: 10px; font-size: 14px; }
.status-box.neu { background: #fff8f9; }
.status-box.angemeldet { background: #f4fbf6; }

.keinesepa { margin-top: 14px; display: grid; gap: 10px; }
.keinesepa .alert { margin: 0; }

/* Hauptnavigation Admin */
.adminnav { display: flex; gap: 20px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.adminnav a { padding: 8px 2px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.adminnav a.active { color: var(--ink); border-bottom-color: var(--red); }

/* Vereinsplaner-Mitglieder */
.vp-upload { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.vp-upload input[type=file] { border: 1px dashed #999; }
.vp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.vp-stats div { border: 1px solid var(--line); padding: 10px 12px; }
.vp-stats b { display: block; font-size: 22px; }
.vp-stats span { font-size: 12px; color: var(--muted); }
.vp-stats .warn b { color: var(--red); }
.vp-filter { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.vp-filter input[name=q] { max-width: 280px; margin: 0; }
.vp-group { margin: 12px 0; }
.vp-group > summary { cursor: pointer; list-style: none; }
.vp-group > summary::-webkit-details-marker { display: none; }
.vp-group > summary::before { content: "▸"; margin-right: 6px; }
.vp-group[open] > summary::before { content: "▾"; }
.offen-hint { color: #ffd2d9; font-weight: 600; }
.vp-table tbody tr { cursor: default; }
.vp-table tr.archiv { opacity: .55; }
.vp-table a { color: var(--red); text-decoration: none; }
.vp-table .kontakt + .kontakt { margin-top: 6px; }
.badge.offen { background: var(--red); color: #fff; }
.badge.ok { background: #e6f4ea; color: var(--ok); }
.badge.frei { background: #eee; color: #666; }
.badge.offen-light { background: #fdecef; color: var(--red); }
.ok-text { color: var(--ok); font-weight: 700; }
.note-inline { color: #8a6d00; }
@media (max-width: 760px) { .vp-stats { grid-template-columns: 1fr 1fr; } }
.vp-table { table-layout: fixed; min-width: 760px; }
.vp-table th:nth-child(1) { width: 28%; } .vp-table th:nth-child(2) { width: 7%; }
.vp-table th:nth-child(3) { width: 15%; } .vp-table th:nth-child(4) { width: 12%; }
.vp-table th:nth-child(5) { width: 26%; } .vp-table th:nth-child(6) { width: 12%; }
.vp-table td { word-break: break-word; }

/* Rollen / Benutzer */
.role-hint { margin-left: auto; align-self: center; font-size: 12px; color: var(--muted); }
.users-table td { vertical-align: middle; }
.users-table tbody tr { cursor: default; }
.nowrap { white-space: nowrap; }
form.inline { display: inline; margin-left: 8px; }
.err-text { color: var(--red); }
.user-form { display: grid; gap: 14px; }
.group-pick { display: flex; flex-wrap: wrap; gap: 8px 20px; border: 1px solid var(--line); padding: 10px 12px; }
.group-pick legend { font-size: 13px; padding: 0 4px; }
.user-form > .btn { justify-self: start; }

/* Filter pro Gruppe: alle (grün) / nur offene MB (rot) */
.vp-group > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grp-filter { margin-left: auto; display: flex; gap: 6px; }
.pill { font: inherit; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; }
.pill-all.active { background: var(--ok); border-color: var(--ok); }
.pill-open { border-color: #ff9aaa; color: #ffd2d9; }
.pill-open.active { background: var(--red); border-color: var(--red); color: #fff; }
.pill:disabled { opacity: .4; cursor: default; }
.vp-group[data-filter="open"] tbody tr:not(.is-offen) { display: none; }

/* ══════════════════════════════════════════════════════════════════════
   Öffentliche Seite im USK-Gneis-Flyer-Stil
   (schwarz/rote Streifen, Körnung, Bebas-Headlines, Pinselstriche)
   ══════════════════════════════════════════════════════════════════════ */
@font-face { font-family: "Bebas Neue"; src: url("fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow"; font-weight: 400; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow"; font-weight: 600; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-display: swap; }

body.public {
  --red: #d0102b;
  --red-dark: #a00c20;
  --stripe-red: #6e0a15;
  --stripe-black: #0c0c0c;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M6 14 C40 6 90 9 140 7 S260 4 330 8 S392 6 396 12 L392 22 399 30 391 38 397 47 C360 54 300 51 240 53 S120 56 60 52 S12 55 4 49 L9 40 1 31 8 22 Z'/%3E%3C/svg%3E");
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background-color: var(--stripe-black);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55) 60%, rgba(0,0,0,.8)),
    var(--grain),
    repeating-linear-gradient(90deg, var(--stripe-black) 0 9vw, var(--stripe-red) 9vw 18vw);
  background-attachment: fixed, scroll, fixed;
}
@media (max-width: 760px) {
  body.public { background-attachment: scroll; background-image:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.6) 50%, rgba(0,0,0,.8)), var(--grain),
    repeating-linear-gradient(90deg, var(--stripe-black) 0 15vw, var(--stripe-red) 15vw 30vw); }
}

/* ── Hero ── */
.public .hero { color: #fff; position: relative; overflow: hidden; }
.public .hero-in { position: relative; padding: 48px 16px 56px; }
.public .hero-logo { position: absolute; right: 16px; top: 28px; width: clamp(110px, 22vw, 230px); height: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); }
.public .kicker { font-family: "Barlow Condensed"; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: clamp(16px, 2.2vw, 22px); margin: 0 0 18px; padding-bottom: 12px; position: relative; display: inline-block; }
.public .kicker::after { content: ""; position: absolute; left: 0; bottom: 0; width: 140px; max-width: 100%; height: 4px; background: var(--red); }
.public .kicker.dark { color: var(--ink); }
.public .hero-title { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 13vw, 150px); line-height: .88; margin: 0; letter-spacing: .01em; color: #f1f1f1;
  max-width: calc(100% - clamp(110px, 22vw, 230px) + 40px);
  /* abgenutzte Druckoptik wie im Flyer: Körnung im Text */
  background: var(--grain), linear-gradient(#f4f4f4, #dcdcdc); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 18px rgba(0,0,0,.5)); }
.public .hero-sub { font-family: "Barlow Condensed"; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(18px, 2.6vw, 26px); margin: 18px 0 26px; color: #ddd; }
.public .hero-sub span { color: var(--red); background: #fff; padding: 0 6px; }
.public .usp { list-style: none; margin: 0 0 30px; padding: 0; max-width: 620px; }
.public .usp li { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 2px solid var(--red); }
.public .usp li:last-child { border-bottom: 0; }
.public .usp .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--red); color: var(--red);
  display: grid; place-items: center; background: rgba(0,0,0,.35); }
.public .usp svg { width: 24px; height: 24px; }
.public .usp b { display: block; font-family: "Barlow Condensed"; font-weight: 700; text-transform: uppercase; font-size: 20px; letter-spacing: .03em; }
.public .usp small { color: #aaa; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

/* Pinselstrich-Button */
.public .brush-btn, .public .btn.big {
  display: inline-block; font-family: "Bebas Neue", Impact, sans-serif; font-size: 30px; letter-spacing: .04em; line-height: 1;
  color: #fff; background: var(--red); padding: 18px 46px 15px; text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat;
  transition: transform .15s ease, background .15s ease; }
.public .brush-btn:hover, .public .btn.big:hover { background: var(--red-dark); transform: translateY(-1px) rotate(-.4deg); }

/* ── Karten & Typo ── */
.public main.wrap { padding-bottom: 20px; }
.public .card { border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.45); border-top: 6px solid var(--red); padding: 28px; }
.public .display { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: .02em;
  text-transform: uppercase; margin: 0 0 16px; }
.public .display.big { font-size: clamp(44px, 8vw, 72px); color: var(--red); }
.public .howto { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.public .howto li { display: flex; gap: 12px; align-items: flex-start; background: #f6f6f6; padding: 16px; border-left: 4px solid var(--red); font-size: 15px; }
.public .howto li > div > b:first-child { display: block; font-family: "Barlow Condensed"; font-weight: 700; font-size: 20px; text-transform: uppercase; margin-bottom: 4px; }
.public .step-no { flex: none; font-family: "Bebas Neue"; font-size: 46px; line-height: .85; color: var(--red); }
.public .more { border-top: 1px solid var(--line); }
.public .more summary { font-family: "Barlow Condensed"; font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; padding: 4px 0; }
.public .more summary::marker { color: var(--red); }
.public .fee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.public .fee-grid div { background: #111; color: #fff; padding: 12px 14px; border-bottom: 4px solid var(--red); }
.public .fee-grid span { display: block; font-family: "Barlow Condensed"; font-weight: 600; text-transform: uppercase; font-size: 15px; color: #bbb; }
.public .fee-grid b { font-family: "Bebas Neue"; font-weight: 400; font-size: 34px; letter-spacing: .02em; }
.public .login-card { scroll-margin-top: 20px; }

/* Formular-Abschnitte: nummeriert wie Flyer-Punkte */
.public #form { counter-reset: sec; }
.public .session-bar { color: #ccc; }
.public .session-bar b { color: #fff; }
.public .session-bar .link { color: #ff8a9a; }
.public .block { border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.public .bar { counter-increment: sec; background: #0c0c0c; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400;
  font-size: 30px; letter-spacing: .03em; text-transform: uppercase; padding: 14px 20px 10px; border-bottom: 4px solid var(--red);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.public .bar::before { content: counter(sec, decimal-leading-zero); color: var(--red); }
.public .bar .opt { font-family: "Barlow Condensed"; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: #aaa; text-transform: none; }
.public .sub { background: #2a2a2a; font-family: "Barlow Condensed"; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; }
.public label { font-size: 14px; font-weight: 600; }
.public input:not([type=checkbox]):not([type=radio]), .public select, .public textarea {
  border: 1px solid #bbb; border-radius: 3px; min-height: 42px; font-family: "Barlow", sans-serif; font-size: 16px; }
.public input:focus, .public select:focus, .public textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.public .btn { font-family: "Barlow Condensed"; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 17px; border-radius: 2px; }
.public .btn.big { font-size: 30px; margin-top: 20px; }
.public .fee b { font-family: "Bebas Neue"; font-weight: 400; font-size: 28px; letter-spacing: .02em; }
.public .done-card { text-align: left; }


@media (max-width: 760px) {
  .public .hero-in { padding: 30px 16px 40px; }
  .public .hero-logo { top: 18px; }
  .public .hero-title { max-width: 100%; margin-top: 8px; }
  .public .kicker { max-width: calc(100% - 120px); }
  .public .howto { grid-template-columns: 1fr; }
  .public .card { padding: 20px 16px; }
  .public .bar { font-size: 26px; }
  .public .brush-btn { font-size: 26px; padding: 16px 36px 13px; }
}

/* ══ Rahmen der Vereins-Homepage (Kopfleiste + Footer) – Stile 1:1 aus usk.gneis/static/style.css ══ */
/* gleiche Inhaltsbreite wie die Homepage (dort .wrap max-width 1120px) */
.public .wrap { max-width: 1120px; }
.public .topbar { position: sticky; top: 0; z-index: 20; background: rgba(12,12,12,.94); border-bottom: 4px solid var(--red);
  backdrop-filter: blur(6px); }
.public .topbar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.public .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.public .brand:hover { color: #fff; }
.public .brand img { width: 44px; height: 44px; }
.public .brand span { font-family: "Bebas Neue", Impact, sans-serif; font-size: 28px; letter-spacing: .03em; line-height: 1; padding-top: 3px; }
.public .mainnav { display: flex; gap: 4px; }
.public .mainnav a { font-family: "Barlow Condensed"; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 17px;
  color: #eee; text-decoration: none; padding: 8px 10px; border-bottom: 3px solid transparent; }
.public .mainnav a:hover { color: #fff; border-bottom-color: #555; }
.public .navtoggle, .public .burger { display: none; }
.public .site-foot { color: #bbb; padding: 34px 0 50px; background: rgba(0,0,0,.6); border-top: 4px solid var(--red); font-size: 15px; margin-top: 30px; }
.public .foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.public .foot-title { font-family: "Barlow Condensed"; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; font-size: 18px; margin: 0 0 6px; }
.public .foot-cols p { margin-top: 0; }
.public .site-foot a { color: #ff8a9a; }
.public .foot-meta { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #333; font-size: 13px; color: #888; }
@media (max-width: 900px) {
  .public .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; }
  .public .burger span { display: block; height: 3px; background: #fff; border-radius: 1px; }
  .public .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: #0c0c0c; border-bottom: 4px solid var(--red); padding: 6px 16px 14px; }
  .public .navtoggle:checked ~ .mainnav { display: flex; }
  .public .mainnav a { font-size: 22px; padding: 10px 0; border-bottom: 1px solid #222; }
  .public .topbar-in { position: relative; }
}
@media (max-width: 760px) { .public .foot-cols { grid-template-columns: 1fr; } }

/* WhatsApp-Zahlungserinnerung */
.wa-btn { margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 12px; border: 1px solid #1f1f1f; background: #1f1f1f; color: #fff; cursor: pointer; }
.wa-btn svg { width: 14px; height: 14px; color: #fff; }
.wa-btn:hover { background: #000; }
.pay-dlg { border: 0; border-top: 6px solid var(--red); border-radius: 4px; padding: 0; width: min(860px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.pay-dlg::backdrop { background: rgba(0,0,0,.55); }
.pay-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.pay-head .link { font-size: 18px; text-decoration: none; color: var(--muted); }
.pay-body { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 18px; }
.pay-qr { text-align: center; }
.pay-qr img { width: 240px; height: 240px; image-rendering: pixelated; border: 1px solid var(--line); display: block; margin: 0 auto 6px; }
.pay-qr small { color: var(--muted); font-size: 12px; }
.pay-text textarea { font-size: 14px; font-family: inherit; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pay-actions .btn { text-decoration: none; font-size: 14px; padding: 7px 12px; min-height: 0; display: inline-flex; align-items: center; }
.hint-small { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
/* Zahlungshinweis am Handy: passt in den Bildschirm, Text scrollt, Knöpfe bleiben sichtbar */
@media (max-width: 700px) {
  .pay-dlg { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); margin: auto; }
  .pay-dlg[open] { display: flex; flex-direction: column; }
  .pay-head { flex: none; padding: 10px 14px; }
  /* flex-basis auto statt 0: sonst rechnen ältere Safari-/Brave-Versionen den Inhalt auf 0 px herunter */
  .pay-body { grid-template-columns: 1fr; gap: 10px; padding: 12px 14px 0; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
  .pay-qr img { width: 150px; height: 150px; }
  .pay-qr small { display: none; }
  .pay-text p.muted { margin: 0 0 6px; font-size: 13px; }
  .pay-text textarea { height: 9.5em; min-height: 0; resize: none; font-size: 13px; }
  .pay-actions { position: sticky; bottom: 0; background: #fff; margin: 8px -14px 0; padding: 10px 14px 12px;
    border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pay-actions .btn { justify-content: center; font-size: 13px; padding: 9px 8px; }
  .pay-actions #payShare:not([hidden]) { grid-column: 1 / -1; }
  .hint-small { display: none; }
  .pay-text #payMsg { margin: 0; min-height: 0; padding: 0 0 8px; }
  .pay-text #payMsg:empty { display: none; }
}

/* Mitgliederliste: Reminder-Knopf nie umbrechen, Notizen mit Zeilenumbrüchen */
.wa-btn { white-space: nowrap; }
.note-inline { white-space: pre-line; }
.vp-table .c-jg { white-space: nowrap; }

/* Mitgliederliste am Handy: Karten statt Tabelle */
@media (max-width: 700px) {
  .vp-table { min-width: 0; table-layout: auto; }
  .vp-table thead { display: none; }
  .vp-table, .vp-table tbody { display: block; }
  .vp-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px;
    border-bottom: 1px solid var(--line); align-items: start; }
  .vp-table td { display: block; padding: 0; border: 0; font-size: 14px; }
  .vp-table .c-name { grid-column: 1; grid-row: 1 / span 2; }
  .vp-table .c-beitrag { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .vp-table .c-beitrag br { display: none; }
  .vp-table .c-beitrag .wa-btn { display: flex; margin: 6px 0 0 auto; padding: 5px 12px; font-size: 13px; }
  .vp-table .c-jg { grid-column: 1; color: var(--muted); }
  .vp-table .c-jg:not(:empty)::before { content: "Jahrgang "; }
  .vp-table .c-sepa { grid-column: 2; text-align: right; font-size: 13px; }
  .vp-table .c-sepa::before { content: "SEPA "; color: var(--muted); }
  .vp-table .c-kontakt { grid-column: 1 / -1; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .vp-table .c-kontakt .kontakt + .kontakt { margin-top: 0; }
  .vp-table .c-seit { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
  .vp-table .c-seit:not(:empty)::before { content: "Mitglied seit "; }
}

/* Inaktiv melden */
.inaktiv-btn { margin-top: 6px; font: inherit; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 12px;
  border: 1px solid #bbb; background: #fff; color: #555; cursor: pointer; white-space: nowrap; }
.inaktiv-btn:hover { border-color: var(--red); color: var(--red); }
.badge.inaktiv { background: #eee; color: #444; margin-top: 6px; white-space: normal; }
.vp-table tr.is-inaktiv td { background: #fafafa; }
.in-dlg { width: min(520px, calc(100vw - 16px)); }
.in-body { padding: 14px 18px 16px; display: grid; gap: 10px; }
.in-body p { margin: 0; }
.in-body .pay-actions { margin-top: 0; }
@media (max-width: 700px) {
  .in-body .pay-actions { position: static; margin: 0; padding: 0; border: 0; }
}

.has-tip { cursor: help; border-bottom: 1px dotted #bbb; }

/* Inaktiv-Meldung erledigt */
.badge.inaktiv.done { background: #e6f4ea; color: var(--ok); }
.done-form { display: inline; margin: 0; }
.done-btn { margin-top: 6px; font: inherit; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 12px;
  border: 1px solid var(--ok); background: #fff; color: var(--ok); cursor: pointer; white-space: nowrap; }
.done-btn:hover { background: var(--ok); color: #fff; }
.reports-open { margin: 0 0 12px; padding: 8px 12px; background: #fff8e6; border-left: 4px solid #e0a100; font-size: 14px; }

.login-time { font-size: 11px; color: #999; margin-left: 2px; }

.reports-open a.jump { color: var(--red); font-weight: 600; }
@keyframes flashrow { 0%, 60% { background: #fff1c2; } 100% { background: transparent; } }
.vp-table tr.flash td { animation: flashrow 2.4s ease-out; }
