/* Tischtennis Eventanmeldung – Stylesheet (Schriften liegen am eigenen Server, DSGVO-freundlich) */
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/lato-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/lato-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/lato-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 800 900; font-style: normal; font-display: swap; src: url(fonts/lato-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/bebas-neue-latin-400-normal.woff2) format("woff2"); }
:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --ink: #14213d;
  --muted: #5d667a;
  --line: #e2e6ef;
  --brand: #014492;
  --brand-dark: #01377a;
  --brand-soft: rgba(1,68,146,.09);
  --bar: #014492;
  --bar-ink: #ffffff;
  --primary: var(--brand);
  --primary-hover: var(--brand-dark);
  --primary-ink: #ffffff;
  --blue: #1f4fd8;
  --blue-soft: #e7eefe;
  --orange-soft: #fff0e5;
  --green: #0f7b55;
  --green-soft: #e3f6ee;
  --yellow: #9a6100;
  --yellow-soft: #fff4d6;
  --red: #c42b2b;
  --red-soft: #fdeaea;
  --hero: #14213d;
  --hero-ink: #ffffff;
  --paddle: #1f4fd8;
  --handle: #14213d;
  --ball: #ff7a1a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .06);
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --heading: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 850; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 750; }
p { margin: 0 0 1em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 .3em; font-size: .9em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1280px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.optional { color: var(--muted); font-weight: 400; font-size: .875em; }
.text-danger { color: var(--red) !important; }
.text-warn { color: var(--yellow); }
.inline { display: inline; }
.stack > * + * { margin-top: 16px; }
.back { margin: 0 0 12px; }
.back a { text-decoration: none; font-weight: 600; }

/* Kopfzeile */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand .logo { flex: none; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.topnav a:hover { background: var(--surface-2); }
.topnav a.pill { background: var(--orange-soft); color: var(--primary-hover); }
.admin-bar .topbar-inner { min-height: 56px; }
.adminnav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.adminnav a, .linkbtn { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 7px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.adminnav a:hover, .linkbtn:hover { background: var(--surface-2); color: var(--ink); }
.adminnav a.active { background: var(--brand-soft); color: var(--brand); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--hero); color: var(--hero-ink); border-radius: 24px; padding: clamp(28px, 5vw, 56px); margin-bottom: 20px; }
.hero::before { content: ""; position: absolute; inset: 0; background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.14) calc(50% - 1px), rgba(255,255,255,.14) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(255,255,255,.08) calc(50% - 1px), rgba(255,255,255,.08) calc(50% + 1px), transparent calc(50% + 1px));
  pointer-events: none; }
.hero-text { position: relative; max-width: 560px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; margin-bottom: .25em; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.2rem); opacity: .9; margin: 0; }
.hero .hero-hint { margin-top: 14px; display: inline-block; background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.hero-ball { position: absolute; right: clamp(-40px, 4vw, 48px); top: 50%; width: clamp(110px, 18vw, 180px); aspect-ratio: 1; border-radius: 50%; transform: translateY(-50%);
  background: radial-gradient(circle at 35% 30%, #ffc79a 0 10%, #ff8a2e 38%, #f05d00 75%, #c94c00 100%); box-shadow: 0 20px 40px rgba(0,0,0,.35); animation: bounce 2.8s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(-62%); } 50% { transform: translateY(-38%); } }
@media (prefers-reduced-motion: reduce) { .hero-ball { animation: none; } }
@media (max-width: 640px) { .hero-ball { opacity: .35; } }

/* Filter-Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--blue); }
.chip.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* Terminliste */
.month { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 10px; font-weight: 800; }
.event-list { display: grid; gap: 12px; }
.event-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.event-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.event-card.is-cancelled { opacity: .6; }
.event-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.datebox { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 68px; height: 76px; border-radius: 14px; background: var(--orange-soft); color: var(--primary-hover); line-height: 1.05; }
.event-card:has(.tag-spieltag) .datebox { background: var(--blue-soft); color: var(--blue); }
.datebox .dow { font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.datebox .day { font-size: 1.7rem; font-weight: 900; }
.datebox .mon { font-size: .8rem; font-weight: 700; }
.event-body h3 { margin: 4px 0 2px; font-size: 1.15rem; }
.event-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; font-weight: 600; }
.loc, .note { margin: 0; color: var(--muted); font-size: .92rem; }
.note { color: var(--yellow); font-weight: 600; }
.cancelled-label { color: var(--red); font-weight: 800; margin: 6px 0 0; }
.event-cta { position: relative; z-index: 0; }
@media (max-width: 640px) {
  .event-card { grid-template-columns: auto 1fr; gap: 12px 14px; }
  .event-cta { grid-column: 1 / -1; }
  .event-cta .btn { width: 100%; }
  .datebox { width: 58px; height: 66px; }
}

.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tag-turnier { background: var(--orange-soft); color: var(--primary-hover); }
.tag-spieltag { background: var(--blue-soft); color: var(--blue); }

/* Kapazität */
.cap { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.cap-bar { flex: 0 0 110px; height: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.cap-bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.cap-low .cap-bar span { background: var(--primary); }
.cap-low .cap-text { color: var(--primary-hover); }
.cap-full .cap-bar span { background: var(--red); }
.cap-full .cap-text { color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--brand-soft); color: var(--brand); }
.btn-secondary:hover { border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-disabled { background: var(--surface-2); color: var(--muted); cursor: default; font-weight: 600; font-size: .9rem; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 6px 11px; font-size: .85rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* Karten & Formulare */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.narrow-card { max-width: 560px; margin: 24px auto; }
.form > * + *, .card.form > * + * { margin-top: 14px; }
label { display: block; font-weight: 650; font-size: .95rem; }
.label-text { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 6px; }
label small, .form small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input[type=time], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 11px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
textarea { resize: vertical; min-height: 44px; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.field-error { display: block; color: var(--red); font-size: .85rem; font-weight: 600; margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid2.tight { gap: 8px; }
.grid2.tight input { margin-top: 0; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.check.has-error span { color: var(--red); }
.check-soft { background: var(--surface-2); border-radius: 12px; padding: 12px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 650; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-weight: 500; cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.radio.big { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; }
.radio.big:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quick-hint { text-align: center; font-size: .92rem; color: var(--muted); margin: 14px 0 0; }

/* Eventdetail */
.event-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 28px; align-items: start; }
@media (max-width: 860px) { .event-detail { grid-template-columns: 1fr; } }
.event-info h1 { margin-top: 8px; }
.facts { display: grid; gap: 10px; margin: 16px 0; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 0; } }
.description { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.event-form { position: sticky; top: 84px; }
@media (max-width: 860px) { .event-form { position: static; } }
.success-card, .closed-card { text-align: center; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 2rem; font-weight: 900; }
.profile-check { background: var(--green-soft); border-radius: 14px; padding: 14px 16px; }
.profile-hello { font-weight: 800; margin-bottom: 8px; }
.profile-summary { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.profile-summary li { display: grid; grid-template-columns: 100px 1fr; gap: 8px; overflow-wrap: anywhere; }
.profile-summary span { color: var(--muted); font-size: .9rem; }
.edit-details summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 4px 0; }
.edit-details[open] > summary { margin-bottom: 10px; }
.edit-details > * + * { margin-top: 14px; }

/* Meldungen */
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--green-soft); color: var(--green); }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-info { background: var(--blue-soft); color: var(--blue); }
.empty { text-align: center; padding: 40px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge-confirmed { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge-pending { background: var(--yellow-soft); color: var(--yellow); border-color: transparent; }
.badge-waitlist { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.badge-cancelled, .badge-error { background: var(--red-soft); color: var(--red); border-color: transparent; }

/* Profil */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }
.reg-list { list-style: none; padding: 0; margin: 0; }
.reg-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.reg-list li:first-child { border-top: 0; }
.danger-zone { border-color: var(--red-soft); }
.prose { max-width: 760px; margin: 0 auto; }

/* Fußzeile */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* ---------- Admin ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-num { display: block; font-size: 2rem; font-weight: 900; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.toolbar input:not([type=checkbox]) { max-width: 320px; margin: 0; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:first-child td { border-top: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn, .table .actions form { margin: 2px 0 2px 4px; }
.row-muted td { opacity: .55; }
.row-form { display: flex; gap: 6px; align-items: center; }
.row-form input { margin: 0; padding: 7px 10px; }
.input-sm { max-width: 84px; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table tr { display: block; border-top: 1px solid var(--line); padding: 10px 4px; }
  .table tr:first-child { border-top: 0; }
  .table td { display: grid; grid-template-columns: 110px 1fr; gap: 10px; border: 0; padding: 4px 12px; text-align: left !important; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 700; }
  .table td.actions { display: block; white-space: normal; padding-top: 8px; }
  .table td.actions .btn, .table td.actions form { margin: 2px 4px 2px 0; }
  .row-form { flex-wrap: wrap; }
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 4px 0; font-weight: 600; }
.checklist .ok { color: var(--green); }
.checklist .fail { color: var(--red); }
.sticky-save { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; z-index: 5; }
details.card > summary, details.tpl > summary { cursor: pointer; }
details.card[open] > summary { margin-bottom: 14px; }
details.tpl { border-top: 1px solid var(--line); padding: 10px 0; }
details.tpl > summary { font-weight: 700; }
details.tpl[open] > summary { margin-bottom: 10px; }
details.tpl > * + * { margin-top: 10px; }
.weekdays .radio { margin-right: 10px; }
.date-mode { margin-bottom: 10px; }
.mail-body { white-space: pre-wrap; font-family: inherit; font-size: .88rem; background: var(--surface-2); padding: 10px; border-radius: 8px; max-width: 520px; }
[hidden] { display: none !important; }


/* =================================================================
   Öffentliche Seiten im Website-Stil (Übersicht, Eventseite, Formular)
   ================================================================= */
body.public { background: #fff; }
body.public.signup { background: #f5f6f8; }
.public h1, .public h2, .public h3 { font-family: var(--display); letter-spacing: -.02em; }
.icon { flex: none; vertical-align: -4px; }
.btn-pill { border-radius: 999px; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #f1f3f7; }
.center { justify-content: center; text-align: center; }
.hide-sm { }
@media (max-width: 560px) { .hide-sm { display: none; } }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.site-header .brand { font-family: var(--display); }
.site-logo { height: 44px; width: auto; display: block; border-radius: 4px; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav-link:hover { background: var(--surface-2); }
.site-nav .btn { padding: 10px 20px; }
.main-full { flex: 1; padding-bottom: 0; }
.preview-bar { background: var(--yellow-soft); color: var(--yellow); text-align: center; padding: 10px 16px; font-weight: 600; }

.lp-badge { display: inline-block; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink); background: #fff; margin-bottom: 18px; }

/* Übersicht */
.ov-hero { text-align: center; max-width: 780px; margin: 20px auto 26px; }
.ov-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; margin-bottom: .3em; }
.ov-hero p { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }
.hero-hint { display: inline-block; background: var(--green-soft); color: var(--green); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 8px; }
.ev-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.ev-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,33,61,.12); }
.ev-link { position: absolute; inset: 0; z-index: 2; }
.ev-media { position: relative; aspect-ratio: 16 / 9; background: var(--brand-soft); }
.ev-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); }
.ev-placeholder .site-logo { height: 72px; }
.ev-placeholder .logo { width: 64px; height: 64px; }
.ev-media .tag { position: absolute; left: 12px; top: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.ev-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ev-body h2 { font-size: 1.3rem; font-weight: 800; margin: 2px 0; }
.ev-date { color: var(--brand); font-weight: 700; font-size: .93rem; margin: 0; display: flex; gap: 6px; align-items: center; }
.ev-loc { color: var(--muted); font-size: .92rem; margin: 0; display: flex; gap: 6px; align-items: flex-start; }
.ev-teaser { color: var(--muted); font-size: .95rem; margin: 4px 0 0; }
.ev-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-foot .cap { margin-top: 0; }
.ev-foot .cap-bar { flex-basis: 70px; }

/* Eventseite */
.lp-hero { text-align: center; max-width: 860px; padding-top: clamp(28px, 6vw, 64px); padding-bottom: 36px; }
.lp-hero h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; margin-bottom: .4em; }
.lp-date { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.lp-intro { font-size: clamp(1.05rem, 2vw, 1.2rem); color: #4b5563; max-width: 640px; margin: 0 auto; }
.lp-intro strong { color: var(--ink); }
.lp-intro p { margin: 0 0 .9em; }
.lp-cta { margin-top: 26px; }
.lp-cta .btn { padding: 15px 34px; font-size: 1.1rem; box-shadow: 0 8px 22px var(--brand-soft); }
.lp-cta-hint { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
.lp-closed { margin-top: 20px; font-weight: 600; color: var(--muted); }
.lp-image-wrap { max-width: 1100px; }
.lp-image { width: 100%; max-height: 620px; object-fit: cover; border-radius: 20px; display: block; box-shadow: var(--shadow); }
.lp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 34px; max-width: 1100px; }
.fact { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 14px 16px; }
.fact .icon { color: var(--brand); margin-top: 2px; }
.fact span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fact strong { display: block; font-size: .98rem; }
.lp-text { max-width: 720px; padding-top: 48px; padding-bottom: 16px; font-size: 1.05rem; color: #374151; }
.lp-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 1.2em 0 .5em; color: var(--ink); }
.lp-text h3 { font-size: 1.2rem; margin: 1em 0 .4em; color: var(--ink); }
.lp-text ul { padding-left: 1.2em; }
.lp-text li { margin: .3em 0; }
.lp-dates { max-width: 860px; padding-top: 48px; text-align: center; }
.lp-dates h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.date-list { display: grid; gap: 12px; margin-top: 18px; text-align: left; }
.date-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fff; }
.date-row.is-cancelled { opacity: .6; }
.date-info { display: flex; flex-direction: column; gap: 2px; }
.date-info .cap { margin-top: 4px; }
@media (max-width: 560px) { .date-row { grid-template-columns: auto 1fr; } .date-cta { grid-column: 1 / -1; } .date-cta .btn { width: 100%; } }
.datebox { background: var(--brand-soft) !important; color: var(--brand) !important; }
.lp-location { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 24px; max-width: 1100px; }
@media (max-width: 860px) { .lp-location { grid-template-columns: 1fr; gap: 24px; } }
.lp-location h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.1; }
.lp-location .lp-intro { margin: 0 0 18px; text-align: left; }
.address { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0; }
.address-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.address strong { font-family: var(--display); font-size: 1.15rem; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #e8ecf2 repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,.5) 22px 24px); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 20px; color: var(--ink); }
.map-consent .icon { width: 36px; height: 36px; color: var(--brand); }
.map-consent p { margin: 0; }
.lp-final { margin-top: 64px; background: var(--brand); color: #fff; text-align: center; padding: 56px 0; }
.lp-final h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: .2em; color: #fff; }
.lp-final p { opacity: .9; font-size: 1.1rem; }
.share { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 28px; font-size: .95rem; }
.share-btn { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 7px 14px; border-radius: 999px; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.share-btn:hover { background: rgba(255,255,255,.24); }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  body.landing .site-footer { padding-bottom: 90px; }
}

/* Anmeldeformular */
.signup-wrap { max-width: 640px; margin: 0 auto; }
.signup-event { display: flex; gap: 16px; align-items: center; margin: 4px 0 18px; }
.signup-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; flex: none; }
.signup-kicker { margin: 0; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.signup-event h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; margin: 2px 0 6px; }
.signup-meta { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.7; }
.signup-form { padding: clamp(20px, 4vw, 32px); }
.signup-form > * + * { margin-top: 18px; }
.req { color: var(--red); }
.signup-form input, .signup-form select, .signup-form textarea { border-radius: 8px; border-width: 1px; }
.terms-box .check { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: .93rem; }
.terms-box.has-error .check { border-color: var(--red); }
.form-note { font-family: var(--display); font-size: 1.2rem; line-height: 1.4; color: var(--ink); }
.form-note p { margin: 0 0 .5em; }
.privacy-note { font-size: .85rem; color: var(--muted); text-align: center; margin-bottom: 0; }
.date-pick { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.date-pick:hover { border-color: var(--brand); }
.date-pick.is-closed { opacity: .5; pointer-events: none; }
.success-card { text-align: center; }
.success-card h2 { font-size: 1.6rem; }
.success-icon .icon { width: 34px; height: 34px; stroke-width: 2.6; }
.btn-group.center { justify-content: center; margin: 18px 0; }

/* Fußzeile öffentlich */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 0; font-size: .9rem; color: var(--muted); }
.site-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--muted); }
.made { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 6px; text-decoration: none; color: var(--ink) !important; font-weight: 600; }
.made .site-logo { height: 24px; }
.made .logo { width: 22px; height: 22px; }

/* Admin-Ergänzungen */
.input-prefix { display: flex; align-items: stretch; margin-top: 6px; }
.input-prefix > span { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); border: 1.5px solid var(--line); border-right: 0; border-radius: 11px 0 0 11px; color: var(--muted); font-weight: 500; font-size: .88rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.input-prefix input { margin-top: 0; border-radius: 0 11px 11px 0; }
.image-field { display: flex; flex-direction: column; gap: 10px; }
.image-preview { max-width: 360px; width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.logo-preview { max-height: 80px; width: auto; align-self: flex-start; }
.color-input { height: 46px; padding: 4px; max-width: 120px; }
.align-end { align-self: end; padding-bottom: 12px; }
.ev-media .ev-placeholder img { width: auto; height: 84px; object-fit: contain; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
body.public a:not(.btn):not(.chip):not(.share-btn):not(.nav-link):not(.made):not(.brand) { color: var(--brand); }
body.public .site-footer nav a:not(.btn):not(.chip) { color: var(--muted); }
#erfolg:focus { outline: none; }
.legal h2 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .35em 0; }
.terms-box small { display: block; margin-top: 6px; }
.center-text { text-align: center; }

/* Live-Zähler */
.lp-counter { max-width: 760px; margin-bottom: 34px; }
.counter-box { position: relative; background: var(--brand-soft); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 22px; text-align: center; transition: transform .3s; }
.lp-counter.bump .counter-box { transform: scale(1.02); }
.counter-num { font-family: var(--display); font-weight: 800; color: var(--brand); line-height: 1; }
.counter-num [data-count] { font-size: clamp(3.2rem, 11vw, 5rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.counter-num small { display: block; font-size: 1.05rem; color: var(--ink); margin-top: 6px; font-weight: 700; }
.counter-bar { height: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 18px auto 10px; max-width: 520px; }
.counter-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #e4202b); border-radius: 999px; transition: width 1s ease; }
.counter-text { margin: 0; font-size: 1.05rem; }
.who { margin-top: 18px; }
.who-title { font-weight: 700; margin: 0 0 8px; font-size: .95rem; }
.who-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-height: 150px; overflow: auto; }
.who-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: .88rem; font-weight: 600; }
.live-dot { position: absolute; top: 12px; right: 14px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--red); display: inline-flex; align-items: center; gap: 5px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(196,43,43,.5); } 70% { box-shadow: 0 0 0 8px rgba(196,43,43,0); } 100% { box-shadow: 0 0 0 0 rgba(196,43,43,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } .counter-bar span { transition: none; } }
code.copyable { word-break: break-all; user-select: all; display: inline-block; margin: 4px 0; }

/* ===== Vereinsdesign (wie www.tischtennishobbywien.at): Menübalken #014492 + Wappen ===== */
.club-mark { display: block; width: auto; flex: none; }
.site-header, .admin-bar { background: var(--bar); border-bottom: 0; backdrop-filter: none; box-shadow: 0 2px 10px rgba(1, 68, 146, .25); }
.site-header .brand, .admin-bar .brand { color: var(--bar-ink); gap: 12px; }
.site-header .brand-name { font-family: var(--display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.site-header .nav-link { color: var(--bar-ink); }
.site-header .nav-link:hover { background: rgba(255, 255, 255, .14); }
.site-header .btn-primary { background: #fff; color: var(--bar); border-color: #fff; }
.site-header .btn-primary:hover { background: #e9eef7; color: var(--bar); }
.admin-bar .adminnav a, .admin-bar .linkbtn { color: rgba(255, 255, 255, .86); }
.admin-bar .adminnav a:hover, .admin-bar .linkbtn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.admin-bar .adminnav a.active { background: rgba(255, 255, 255, .2); color: #fff; }
.admin-bar .badge { box-shadow: 0 0 0 2px var(--bar); }
.mark-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bar); }
@media (max-width: 480px) { .site-header .brand-name { font-size: .95rem; } .site-header .club-mark { height: 36px !important; } }

/* Event-Kacheln mit blauem Rand und Schatten */
.ev-card { border: 2px solid var(--bar); box-shadow: 0 4px 14px rgba(1, 68, 146, .16), 0 1px 3px rgba(1, 68, 146, .12); }
.ev-card:hover { box-shadow: 0 14px 32px rgba(1, 68, 146, .28); }
.ev-placeholder { background: linear-gradient(135deg, #0255b5 0%, var(--bar) 100%); }
.chip.active { background: var(--bar); border-color: var(--bar); color: #fff; }
.ev-media .ev-placeholder img.club-mark { border-radius: 0; box-shadow: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.site-header .nav-link { white-space: nowrap; }

/* Schriften wie auf der Vereinswebsite: Überschriften Bebas Neue, Text Lato */
.public h1, .public h2 { font-family: var(--heading); font-weight: 400; letter-spacing: .015em; line-height: 1.02; }
.ov-hero h1, .hero h1 { font-size: clamp(3rem, 9vw, 5rem); font-weight: 400; letter-spacing: .02em; }
.lp-hero h1 { font-size: clamp(3rem, 9vw, 5.6rem); font-weight: 400; letter-spacing: .02em; line-height: 1; }
.signup-event h1 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 400; }
.ev-body h2 { font-size: 1.75rem; font-weight: 400; }
.lp-text h2, .lp-dates h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 400; }
.lp-location h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 400; }
.lp-final h2 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 400; }
.counter-num { font-family: var(--heading); font-weight: 400; }
.counter-num [data-count] { letter-spacing: .01em; }
.public h3 { font-family: var(--font); font-weight: 900; letter-spacing: 0; }
.site-header .brand-name { font-family: var(--font); font-weight: 900; letter-spacing: 0; }

/* Event-Arten: eigene Farbe pro Etikett */
.tag-cup { background: var(--bar); color: #fff; }
.tag-bezirksliga { background: #e3f6ee; color: #0f6b4a; }
.tag-turnier { background: #fff0e5; color: #b4510b; }
.tag-spieltag { background: #e7eefe; color: #1f4fd8; }
.tag-fun { background: #fbe7f6; color: #a3127f; }
.tag-park { background: #eaf7dc; color: #3f7a12; }
.tag-gemeindebau { background: #fdeee3; color: #a2470f; }
.ev-media .tag-cup { background: var(--bar); color: #fff; }

/* Überschriften in Vereinsblau */
.public h1, .public h2 { color: var(--bar); }
.public .lp-final h2 { color: #fff; }
.type-switch { display: flex; flex-wrap: wrap; gap: 8px; } .type-switch .radio { margin-right: 0; } .type-switch legend { width: 100%; margin-bottom: 6px; }
.tag-tour { background: #fff4d6; color: #8a5a00; }

/* Etikett über Überschriften: Vereinsblau mit rotem Strich (statt grauer Pille) */
.lp-badge { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--bar); font-family: var(--font); font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 14px; }
.lp-badge::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: #e3000f; flex: none; }
.ov-hero .lp-badge::after, .lp-hero .lp-badge::after { content: ""; width: 28px; height: 3px; border-radius: 2px; background: #e3000f; flex: none; }

/* Wappen auf der Startseite */
.hero-mark { display: grid; place-items: center; margin-left: auto; margin-right: auto; width: 116px; height: 116px; border-radius: 28px; background: var(--bar); box-shadow: 0 10px 28px rgba(1, 68, 146, .3); margin-bottom: 18px; transition: transform .15s; }
a.hero-mark:hover { transform: translateY(-2px); }
.ov-hero { text-align: center; }

/* Link zu weiterführenden Infos (Regulativ usw.) */
.lp-info-link { margin: 10px 0 0; }
.lp-info-link a { color: var(--bar) !important; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.lp-info-link a:hover { text-decoration: underline; }
.lp-more { margin-top: 28px; }
.more-card { display: flex; align-items: center; gap: 16px; max-width: 720px; margin: 0 auto; padding: 16px 20px; border-radius: 18px; background: var(--bar); color: #fff !important; text-decoration: none; box-shadow: 0 8px 24px rgba(1, 68, 146, .25); transition: transform .15s, box-shadow .15s; }
.more-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(1, 68, 146, .35); }
.more-mark { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.more-text { flex: 1; display: flex; flex-direction: column; }
.more-text small { opacity: .85; font-size: .85rem; }
.more-text strong { font-family: var(--heading); font-weight: 400; font-size: 1.7rem; letter-spacing: .02em; line-height: 1.1; }
.more-arrow { font-size: 1.6rem; font-weight: 700; }
.hide-md { }
@media (max-width: 760px) { .hide-md { display: none; } }
@media (max-width: 560px) {
  .lp-badge { font-size: .7rem; letter-spacing: .12em; gap: 8px; }
  .lp-badge::before, .ov-hero .lp-badge::after, .lp-hero .lp-badge::after { width: 18px; }
  .hero-mark { width: 92px; height: 92px; border-radius: 22px; }
  .hero-mark .club-mark { height: 62px !important; }
  .more-text strong { font-size: 1.35rem; }
  .more-mark { width: 52px; height: 52px; }
}
/* Vereinslogo (Schriftzug + Wappen) in der Mitte der Startseite */
.hero-mark { width: fit-content; height: auto; padding: 26px 30px; border-radius: 26px; }
.club-logo-full { display: block; height: 150px; width: auto; }
@media (max-width: 560px) { .hero-mark { padding: 18px 22px; border-radius: 20px; } .club-logo-full { height: 110px; } }
/* Logo-Quadrat (mit eigenem blauem Hintergrund) */
.hero-mark { padding: 0; background: none; border-radius: 24px; overflow: hidden; }
.club-logo-full { height: 200px; width: 200px; border-radius: 24px; }
@media (max-width: 560px) { .hero-mark { padding: 0; border-radius: 18px; } .club-logo-full { height: 140px; width: 140px; border-radius: 18px; } }

/* Discord im Anmeldeformular */
.discord-box { border: 2px solid #5865f2; border-radius: 16px; padding: 16px 18px; background: #f3f4ff; margin-bottom: 18px; }
.discord-box.has-error { border-color: var(--red); background: var(--red-soft); }
.discord-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.discord-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #5865f2; color: #fff; display: grid; place-items: center; }
.discord-icon .icon { width: 22px; height: 22px; }
.discord-text { margin: 2px 0 0; font-size: .92rem; color: var(--ink); }
.btn-discord { background: #5865f2; color: #fff !important; border-color: #5865f2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; }
.btn-block { display: flex; width: 100%; padding-top: 13px; padding-bottom: 13px; font-size: 1.05rem; }
.discord-hint { margin: 8px 0 4px; }
.discord-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted, #6b7280); font-size: .88rem; }
.discord-or::before, .discord-or::after { content: ""; flex: 1; height: 1px; background: rgba(88,101,242,.3); }
.discord-manual { margin-top: 6px; }
.discord-manual summary { cursor: pointer; font-weight: 700; color: #4752c4; font-size: .92rem; padding: 4px 0; }
.discord-manual label { margin-top: 8px; }
.discord-ok { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 1rem; }
.discord-ok > .icon { color: var(--green); }
.discord-change { margin-left: auto; font-size: .88rem; }
.discord-member { display: flex; gap: 6px; align-items: center; color: var(--green); font-weight: 700; margin: 10px 0 0; font-size: .93rem; }
.discord-join { background: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.discord-join p { margin: 0 0 10px; }
.discord-join.center { text-align: center; background: #f3f4ff; border: 2px solid #5865f2; margin: 16px 0; }
.discord-new { margin: 10px 0 0; color: var(--muted); }
.discord-join .btn, .discord-box .btn { white-space: normal; text-align: center; }
.discord-tag { font-size: .85rem; color: #4752c4; font-weight: 700; }
.discord-banner { display: flex; align-items: center; gap: 16px; margin: 36px 0 8px; padding: 18px 20px; border-radius: 18px; background: #5865f2; color: #fff; box-shadow: 0 8px 24px rgba(88, 101, 242, .3); }
.discord-banner .discord-icon { background: rgba(255, 255, 255, .18); width: 48px; height: 48px; }
.discord-banner-text { flex: 1; display: flex; flex-direction: column; }
.discord-banner-text strong { font-family: var(--heading); font-weight: 400; font-size: 1.7rem; letter-spacing: .02em; line-height: 1.1; }
.discord-banner .btn-discord { background: #fff; color: #4752c4 !important; border-color: #fff; }
@media (max-width: 640px) { .discord-banner { flex-direction: column; text-align: center; } }
.discord-ok { flex-wrap: nowrap; align-items: flex-start; } .discord-ok > span { flex: 1; } .discord-ok > .icon { margin-top: 3px; } .discord-change { align-self: center; white-space: nowrap; }

/* Event-Editor in Schritten */
.editor-intro { background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; margin: 0; }
.step-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step-no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bar); color: #fff; font-size: 1rem; font-weight: 900; flex: none; }
.step-hint { font-size: .85rem; font-weight: 600; color: var(--muted); }
.step-more > summary { list-style: none; cursor: pointer; }
.step-more > summary::-webkit-details-marker { display: none; }
.step-more > summary h2 { margin: 0; }
.step-more > summary h2::after { content: "▾ öffnen"; margin-left: auto; font-size: .85rem; color: var(--bar); font-weight: 700; }
.step-more[open] > summary h2::after { content: "▴ schließen"; }
.step-more[open] > summary { margin-bottom: 14px; }
.step-card h3 { margin: 18px 0 8px; font-size: 1rem; color: var(--bar); }
.sub-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.geo-ok { color: var(--green); font-weight: 700; margin: 0; }
details.mini > summary { cursor: pointer; font-weight: 700; color: var(--bar); font-size: .9rem; margin: 6px 0; }
.image-drop-inner { position: relative; border: 2px dashed var(--bar); border-radius: 16px; background: var(--brand-soft); min-height: 180px; display: grid; place-items: center; overflow: hidden; cursor: pointer; transition: background .15s; }
.image-drop.is-drag .image-drop-inner, .image-drop-inner:hover { background: rgba(1, 68, 146, .16); }
.image-drop-inner input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.image-drop-preview { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.image-drop-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px; color: var(--bar); }
.image-drop-empty .icon { width: 40px; height: 40px; }
.image-drop-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.sticky-save { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.publish-toggle { font-size: 1.02rem; }
.admin-strip { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; background: #0d2a52; color: #fff; padding: 8px 16px; font-size: .92rem; }
.admin-strip.is-draft { background: #8a5a00; }
.admin-strip .btn-light { color: var(--bar) !important; }
.partner-box { display: flex; align-items: center; gap: 20px; margin: 40px 0 0; padding: 22px 24px; border-radius: 18px; background: #fff; border: 2px solid var(--bar); box-shadow: 0 6px 20px rgba(1, 68, 146, .12); }
.partner-box h2 { margin: 0 0 4px; font-size: 2rem; }
.partner-box p { margin: 0; color: var(--muted); }
.partner-box .btn { flex: none; white-space: normal; text-align: center; }
@media (max-width: 640px) { .partner-box { flex-direction: column; text-align: center; } }
.discord-mode { display: flex; flex-direction: column; gap: 6px; border: 1.5px solid #5865f2; border-radius: 12px; padding: 10px 14px; background: #f3f4ff; } .discord-mode legend { font-weight: 700; padding: 0 4px; }
/* Titelbild überall im Format 16:9 – Vorschau im Editor zeigt genau diesen Ausschnitt */
.lp-image { aspect-ratio: 16 / 9; max-height: none; }
.image-drop-preview { aspect-ratio: 16 / 9; max-height: none; }
.image-drop-inner { max-width: 640px; }
.discord-mode { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
.discord-mode legend { width: 100%; }
.saved-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--green); color: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; }
.saved-banner > div { display: flex; flex-direction: column; gap: 2px; }
.saved-banner strong { font-size: 1.15rem; }
.saved-banner .btn-light { color: var(--green) !important; }
/* Termine: Mehrfachauswahl und Vorschau */
th.sel, td.sel { width: 36px; text-align: center; }
td.sel input, th.sel input { width: 18px; height: 18px; }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.bulk-bar [data-bulk-count] { font-weight: 700; margin-right: auto; }
.date-preview { margin: 8px 0 0; font-size: .92rem; padding: 0; }
.date-preview.ok { background: var(--green-soft); color: var(--green); padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.date-preview.warn { background: var(--yellow-soft); color: var(--yellow); padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.bulk-bar { position: sticky; bottom: 12px; z-index: 6; box-shadow: 0 6px 20px rgba(20,33,61,.12); }
/* Alle Kategorie-Etiketten einheitlich in Vereinsblau (gut lesbar) */
.tag, .ev-media .tag { background: var(--bar) !important; color: #fff !important; border-color: var(--bar) !important; }
.ev-media .tag { box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.counter-num small { font-size: clamp(1.6rem, 4.5vw, 2.1rem); color: var(--bar); margin-top: 8px; letter-spacing: .04em; }
.discord-text p { margin: 0 0 8px; } .discord-text p:last-child { margin-bottom: 0; }
.discord-web-alt { margin: 6px 0 0; font-size: .8rem; }

/* 1.8.8: Discord-Logo, Social Media, Discord-Ankündigung */
.discord-logo { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.discord-logo.sm { width: 40px; height: 40px; box-shadow: none; background: transparent; }
.social-box { margin: 22px 0 8px; text-align: center; }
.social-box p { margin: 0 auto 12px; max-width: 640px; color: var(--muted); font-weight: 600; }
.social-icons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.social-icons { gap: 26px; }
.social-icons a { display: grid; place-items: center; width: 44px; height: 44px; background: none; color: #014492 !important; transition: transform .15s, color .15s; }
.social-icons a svg { width: 34px; height: 34px; }
.social-icons a:hover, .social-icons a:focus-visible { transform: translateY(-2px); color: #01367a !important; }
.announce-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.discord-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.discord-cta .discord-web-alt { margin: 0; color: rgba(255,255,255,.85); text-align: center; max-width: 220px; line-height: 1.3; }
.discord-cta .discord-web-alt a { color: #fff !important; font-weight: 700; }
.ov-hero .hero-sub { font-family: var(--font) !important; font-weight: 900; font-size: clamp(1.15rem, 2.6vw, 1.5rem); letter-spacing: 0; text-transform: none; color: #014492; margin: -.1em 0 .35em; line-height: 1.25; }

/* Kooperationspartner – Laufband über der Fußzeile */
.partners { border-top: 4px solid #014492; border-bottom: 4px solid #014492; background: #fff; padding: 26px 0 30px; margin-top: 48px; }
.partners-title { margin: 0 0 20px; text-align: center; font-family: var(--font) !important; font-weight: 900 !important; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #014492; padding: 0 16px; }
.partners-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partners-track { display: flex; align-items: center; gap: 64px; width: max-content; margin: 0; padding: 0 32px; list-style: none; animation: partners-run var(--dur, 35s) linear infinite; }
.partners-track li { flex: none; display: flex; align-items: center; height: 80px; }
.partners-track img { display: block; max-width: none; height: auto; }
.partners-viewport:hover .partners-track { animation-play-state: paused; }
@keyframes partners-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 20px; }
  .partners-track li[aria-hidden="true"] { display: none; }
  .partners-viewport { -webkit-mask-image: none; mask-image: none; }
}
.site-footer { margin-top: 0; }
.partner-row { display: grid; grid-template-columns: 150px 1fr 1fr 110px 110px auto; gap: 12px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.partner-row img { max-width: 140px; height: auto; max-height: 60px; object-fit: contain; align-self: center; }
@media (max-width: 860px) { .partner-row { grid-template-columns: 1fr 1fr; } }
.share-cal { margin-top: 12px; }

/* Admin-Modus: eigene Farbe der Menüzeile, Button zur Teilnehmer-Ansicht */
.topbar.admin-bar { background: #0053B3 !important; }
.admin-bar .badge { box-shadow: 0 0 0 2px #0053B3; }
.adminnav a.view-btn { background: #fff; color: #0053B3 !important; border-radius: 999px; padding: 6px 14px; font-weight: 800; }
.adminnav a.view-btn:hover { background: #e8f0ff; }

/* Menüzeile: Kalender-Symbol + „Tischtennis Hobby Wien / Unsere Events“ */
.site-header .events-icon { flex: none; width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.site-header .brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.site-header .brand-sub { font-family: var(--heading); font-weight: 400; font-size: 1.15rem; letter-spacing: .04em; color: rgba(255,255,255,.88); }
@media (max-width: 480px) {
  .site-header .events-icon { width: 36px; height: 36px; }
  .site-header .brand-name { font-size: .92rem; }
  .site-header .brand-sub { font-size: 1rem; }
  .site-header .site-nav .btn { padding: 8px 14px; font-size: .9rem; }
}
.site-header .brand-name { white-space: nowrap; }
@media (max-width: 380px) { .site-header .brand-name { font-size: .84rem; } .site-header .brand { gap: 8px; } .site-header .site-nav .btn { padding: 7px 11px; font-size: .84rem; } }
.team-head { margin: 18px 0 2px; font-size: 1.05rem; color: #014492; }
.copy-panel { margin: 0 0 16px; border: 2px solid #014492; }
.copy-panel summary { cursor: pointer; font-weight: 800; color: #014492; }
.copy-panel[open] summary { margin-bottom: 10px; }
.organizer-box { border: 2px dashed #014492; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; } .organizer-box legend { font-weight: 800; color: #014492; padding: 0 6px; }
.lp-organizer { margin: -4px 0 12px; color: var(--muted); font-size: 1rem; }
.lp-organizer a { color: #014492; }
.ev-org { margin: 2px 0 6px; font-size: .85rem; font-weight: 700; color: #014492; }
.lp-organizer { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-organizer p { margin: 0; }
.lp-organizer img { display: block; height: auto; }
.organizer-other { margin-top: 8px; }

/* Event-Zähler auf der Startseite */
.event-stat { margin: 10px 0 0; display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; color: #014492 !important; }
.event-stat strong { font-family: var(--heading); font-weight: 400; font-size: clamp(3rem, 9vw, 4.4rem); line-height: 1; color: #014492; font-variant-numeric: tabular-nums; }
.event-stat span { font-weight: 900; font-size: 1.1rem; color: #014492; text-transform: uppercase; letter-spacing: .04em; }
.stats-overview .stat small { color: var(--muted); font-weight: 600; }
.stats-top { margin: 0 0 18px; }
.stats-top summary { cursor: pointer; }

/* Admin: Terminkalender */
.cal-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.cal-nav strong { font-size: 1.1rem; min-width: 150px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 6px; }
.cal-head { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { min-height: 84px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-empty { background: transparent; border-color: transparent; }
.cal-today { border: 2px solid #014492; }
.cal-clash { background: #fff7d6; border-color: #e0b400; }
.cal-num { font-size: .78rem; font-weight: 800; color: var(--muted); }
.cal-warn { color: #8a6200; font-weight: 800; }
.cal-ev { display: block; font-size: .72rem; line-height: 1.25; padding: 2px 5px; border-radius: 5px; background: #e8f0ff; color: #014492 !important; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev span { font-weight: 800; }
.cal-ev:hover { background: #014492; color: #fff !important; }
.cal-ev.is-draft { background: #fff; border: 1px dashed #014492; }
.cal-ev.is-cancelled { text-decoration: line-through; opacity: .55; }
@media (max-width: 700px) { .cal-day { min-height: 56px; } .cal-ev { font-size: .62rem; padding: 1px 3px; } .cal-head { font-size: .65rem; } }
.clash-flag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff3c4; border: 1px solid #e0b400; font-size: .8rem; cursor: help; vertical-align: middle; }

/* Admin-Login und Überschriften */
body.admin main h1, body.admin h1 { color: #014492 !important; }
.login-logo { text-align: center; margin: 10px 0 18px; }
.login-logo img { width: 150px; height: 150px; border-radius: 22px; box-shadow: 0 8px 24px rgba(1,68,146,.25); }
.login-help { text-align: center; color: var(--muted); font-size: .92rem; margin: 16px auto 0; max-width: 420px; }
.login-help a { color: #014492; font-weight: 700; }
.date-note { display: inline-block; margin-top: 4px; font-weight: 700; color: #014492; }
.fact-note .fact-icon { font-size: 1.3rem; }
.date-note-input { min-width: 260px; }
.date-chips summary { cursor: pointer; font-size: .82rem; color: #014492; font-weight: 700; margin-top: 4px; }
.date-chips[open] { max-width: 360px; }
.date-chip { display: inline-block; margin: 4px 4px 0 0; padding: 2px 8px; border-radius: 999px; background: #e8f0ff; color: #014492 !important; font-size: .78rem; font-weight: 700; text-decoration: none; }
.date-chip:hover { background: #014492; color: #fff !important; }
.date-chip.is-cancelled { text-decoration: line-through; opacity: .5; }

/* 1.9.0: Admin-Kopf wie die öffentliche Seite (Kalender-Icon + Unsere Events · ADMIN) */
.admin-bar .events-icon { flex: none; width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.admin-bar .brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.admin-bar .brand-name { font-family: var(--font); font-weight: 900; font-size: 1.08rem; white-space: nowrap; }
.admin-bar .brand-sub { font-family: var(--heading); font-weight: 400; font-size: 1.15rem; letter-spacing: .04em; color: rgba(255,255,255,.88); white-space: nowrap; }
.admin-bar .brand-admin { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: #fff; color: #0053B3; font-family: var(--font); font-weight: 900; font-size: .72rem; letter-spacing: .08em; vertical-align: 2px; }
@media (max-width: 600px) {
  .admin-bar .events-icon { width: 36px; height: 36px; }
  .admin-bar .brand-name { font-size: .92rem; }
  .admin-bar .brand-sub { font-size: 1rem; }
}
@media (max-width: 380px) { .admin-bar .brand-name { font-size: .84rem; } .admin-bar .brand { gap: 8px; } }
.date-chip-wrap { display: inline-flex; align-items: center; gap: 2px; }
.date-chip-wrap form { margin: 0; }
.chip-del { border: 0; background: none; cursor: pointer; color: #c62828; font-size: .9rem; padding: 2px 4px; line-height: 1; border-radius: 6px; }
.chip-del:hover { background: rgba(198,40,40,.1); }
.date-chips[open] { display: flex; flex-wrap: wrap; gap: 4px 6px; max-width: 420px; }
.date-chips[open] > summary { flex-basis: 100%; }
.date-chip-wrap .date-chip { margin: 0; }
.chip-del { font-size: .78rem; padding: 2px 3px; }
.date-chips[open] { min-width: 300px; }
@media (max-width: 700px) { .date-chips[open] { min-width: 0; } }
.cal-nav .cal-btn, .cal-nav .btn { background: #014492 !important; color: #fff !important; border-color: #014492 !important; }
.cal-nav .cal-btn:hover, .cal-nav .btn:hover { background: #0053B3 !important; color: #fff !important; }
/* Hinweis zum Termin direkt unter der Einleitung */
.lp-notice { display: flex; gap: 12px; align-items: flex-start; text-align: left; max-width: 640px; margin: 16px auto 4px; padding: 14px 18px; background: #fff7e0; border: 2px solid #f2b705; border-radius: 12px; color: #3b2f00; }
.lp-notice-icon { font-size: 1.4rem; line-height: 1.2; }
.lp-notice-label { display: block; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: #8a6400; margin-bottom: 2px; }
.lp-notice p { margin: 2px 0; font-size: 1rem; line-height: 1.45; }
.date-note strong, .lp-notice strong { font-weight: 900; }
/* Ferien (Wien) und Feiertage im Admin-Kalender */
.cal-day { position: relative; }
.cal-ferien { background: #ffeef0; border-color: #f6c6cc; }
.cal-feiertag { background: #ffd9de; border-color: #e88a96; }
.cal-ferien.cal-clash, .cal-feiertag.cal-clash { border: 2px solid #e0b400; }
.cal-hol { order: 2; font-size: .62rem; font-weight: 800; color: #b3261e; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ferien:not(.cal-feiertag) .cal-hol { color: #c2545f; font-weight: 700; }
.cal-num { order: 1; }
.cal-ev { order: 3; }
.legend-ferien, .legend-feiertag { padding: 0 5px; border-radius: 4px; }
.legend-ferien { background: #ffeef0; border: 1px solid #f6c6cc; }
.legend-feiertag { background: #ffd9de; border: 1px solid #e88a96; }
@media (max-width: 700px) { .cal-hol { font-size: .5rem; } }
.cal-nav strong { color: #014492; font-weight: 900; }
/* Footer: Vereinslogo mittig, Rechtliches darunter */
.site-footer-inner { flex-direction: column; justify-content: center; text-align: center; gap: 14px; }
.site-footer nav { justify-content: center; gap: 8px 18px; }
.foot-logo { display: inline-block; line-height: 0; transition: transform .2s; }
.foot-logo img { width: 76px; height: 76px; object-fit: contain; }
.foot-logo:hover { transform: scale(1.06); }
@media (max-width: 600px) { .foot-logo img { width: 64px; height: 64px; } .site-footer nav span { flex-basis: 100%; } }
/* Monat direkt wählen */
.cal-jump { margin: 0; }
.cal-jump select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 1.1rem; font-weight: 900; color: #014492; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23014492' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; border: 2px solid #014492; border-radius: 10px; padding: 6px 36px 6px 14px; min-width: 190px; cursor: pointer; }
.cal-jump select:focus { outline: 3px solid rgba(1,68,146,.25); outline-offset: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .cal-nav { gap: 6px; } .cal-jump select { min-width: 0; font-size: 1rem; padding: 5px 30px 5px 10px; background-position: right 9px center; } }
/* Hinweis pro Termin direkt in der Übersicht */
.ov-note { margin-top: 6px; font-size: .85rem; background: #fff7e0; border: 1px solid #f2b705; border-radius: 8px; padding: 4px 8px; color: #3b2f00; }
.ov-note-edit { margin-top: 6px; }
.ov-note-edit summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: #014492; }
.ov-note-form { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ov-note-form input { flex: 1 1 220px; min-width: 0; }
/* Organisator + wer das Tischtennis vor Ort macht */
.lp-tt-onsite { color: #014492; font-size: .95rem; }
.ev-org-tt { display: block; font-weight: 600; color: var(--muted); margin-top: 1px; }
.lp-organizer p { color: #014492; }
.lp-tt-onsite, .ev-org-tt { color: #014492 !important; font-weight: 400 !important; }
.lp-tt-onsite { font-size: 1rem; margin-top: -6px !important; }
.ev-org-tt { margin-top: 0; }

/* Serien-Rhythmus (jede Woche / alle 2 Wochen …) */
.series-every select { max-width: 260px; }
.series-every small { display: block; }
.btn-ticker-on { background: #e7f6ec; color: #146c2e !important; border: 1px solid #9fd8b0; font-weight: 700; }

/* Kalender-Abo auf der Startseite */
.cal-sub { display: flex; align-items: center; gap: 20px; margin: 40px 0 0; padding: 22px 24px; border-radius: 18px; background: #eef4fb; border: 2px dashed rgba(1, 68, 146, .35); }
.cal-sub h2 { margin: 0 0 4px; font-size: 1.35rem; color: var(--primary, #014492); }
.cal-sub p { margin: 0; }
.cal-sub-text { flex: 1; }
.cal-sub-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 360px; }
@media (max-width: 640px) { .cal-sub { flex-direction: column; text-align: center; } .cal-sub-btns { justify-content: center; } }

/* Admin: Teilen & Einbinden */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }
.embed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 10px; }
@media (max-width: 900px) { .embed-grid { grid-template-columns: 1fr; } }
.embed-preview { width: 100%; max-width: 560px; border: 0; display: block; }
.code-box { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; background: #f6f8fb; }
.src-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--brand, #014492); vertical-align: middle; margin-right: 6px; }

/* Admin: Statistik (2.0.0) */
.st-link { margin: 14px 0 0; }
.st-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-head h1 { margin: 0; }
.st-seg { display: flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 1px 4px rgba(1, 68, 146, .1); }
.st-seg a { padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: #5b6475; text-decoration: none; }
.st-seg a.on { background: var(--brand, #014492); color: #fff; }
.st-range { margin: 6px 0 14px; }
.st-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.st-kpi { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(1, 68, 146, .07); display: flex; flex-direction: column; gap: 2px; }
.st-l { font-size: .78rem; color: #5b6475; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.st-v { font-size: 2.1rem; font-weight: 800; color: #14213d; line-height: 1.15; }
.st-s { font-size: .82rem; color: #5b6475; }
.st-trend { font-size: .82rem; font-weight: 700; }
.st-trend.up { color: #16a34a; } .st-trend.dn { color: #dc2626; }
.st-card { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(1, 68, 146, .07); margin-top: 14px; min-width: 0; }
.st-card h2 { margin: 0 0 10px; font-size: 1.08rem; }
.st-card h2.st-sub { margin-top: 18px; }
.st-insights { background: linear-gradient(135deg, var(--brand, #014492), #0a5bbd); color: #fff; }
.st-insights h2 { color: #fff; }
.st-insights ul { margin: 0; padding-left: 20px; }
.st-insights li { margin: 6px 0; }
.st-insights a { color: #fff; }
.st-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.st-chart { width: 100%; height: auto; display: block; }
.st-grid { stroke: #e8edf4; }
.st-ax { font-size: 11px; fill: #7a8599; }
.st-area { fill: rgba(1, 68, 146, .10); }
.st-line { fill: none; stroke: var(--brand, #014492); stroke-width: 2.5; stroke-linejoin: round; }
.st-bar { fill: #e4002b; opacity: .85; }
.st-mark { stroke: #f59e0b; stroke-dasharray: 4 3; }
.st-mark-t { font-size: 11px; fill: #b45309; }
.st-legend { font-size: .82rem; color: #5b6475; margin: 0 0 6px; }
.st-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin: 0 4px 0 10px; }
.st-legend i:first-child { margin-left: 0; }
.lg-line, .lg-b1 { background: var(--brand, #014492); } .lg-bar, .lg-b2 { background: #e4002b; }
.st-funnel { display: flex; flex-direction: column; gap: 8px; }
.st-fs { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.st-fb { background: var(--brand, #014492); color: #fff; font-weight: 700; border-radius: 8px; padding: 6px 8px; white-space: nowrap; min-width: 38px; }
.st-fl { white-space: nowrap; }
.st-drop { color: #dc2626; font-size: .8rem; margin-left: 4px; }
.st-donut { display: flex; align-items: center; gap: 14px; }
.st-big { font-size: 1.5rem; }
.st-table td, .st-table th { padding: 7px 8px; }
.st-bars { width: 38%; }
.st-b1, .st-b2 { display: block; height: 8px; border-radius: 4px; background: var(--brand, #014492); min-width: 2px; }
.st-b2 { background: #e4002b; margin-top: 3px; }
.st-q { color: #16a34a; font-weight: 700; }
.st-split { display: flex; height: 26px; border-radius: 8px; overflow: hidden; font-size: .8rem; color: #fff; font-weight: 700; }
.st-split span { display: flex; align-items: center; padding: 0 8px; white-space: nowrap; }
.st-new { background: #16a34a; } .st-ret { background: var(--brand, #014492); }
.st-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.st-good { background: #16a34a; } .st-warn { background: #f59e0b; } .st-bad { background: #dc2626; } .st-na { background: #c4cad4; }
@media (max-width: 1000px) { .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .st-kpis { grid-template-columns: 1fr; } .st-v { font-size: 1.8rem; } }
/* Statistik-Tabellen bleiben auch am Handy Tabellen (kompakt, quer scrollbar) */
@media (max-width: 760px) {
  .st-table thead { display: table-header-group; }
  .st-table tr { display: table-row; padding: 0; }
  .st-table td { display: table-cell; padding: 6px 6px; border-top: 1px solid var(--line); }
  .st-table td.num { text-align: right !important; }
  .st-card .table-wrap { overflow-x: auto; }
  .st-table { font-size: .85rem; min-width: 100%; }
  .st-bars { width: 28%; min-width: 50px; }
}
@media (max-width: 1360px) { .adminnav a { padding: 7px 8px; font-size: .88rem; } }

/* 2.0.1: kompakteres Anmeldeformular + Statistik „Wo hakt es?“ */
.discord-lite { margin: 4px 0 6px; }
.discord-lite.has-error input { border-color: var(--red, #dc2626); }
.discord-lite-link { display: flex; align-items: center; gap: 6px; margin: -4px 0 8px; }
.discord-lite-link a { color: #4752c4; font-weight: 700; }
.comment-details { margin: 6px 0 12px; }
.comment-details summary { cursor: pointer; color: var(--brand, #014492); font-weight: 700; font-size: .95rem; padding: 4px 0; }
.comment-details textarea { margin-top: 6px; }
.terms-box.opt-box { padding: 0; margin-top: 4px; }
.terms-box.opt-box .check { padding: 9px 12px; }
.terms-box.opt-box .check span { font-size: .86rem; line-height: 1.35; }
.terms-box.opt-box small { font-size: .8rem; }
.st-row-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.st-h3 { font-size: .95rem; margin: 0 0 6px; }
.st-mini { font-size: .9rem; margin: 0 0 8px; }
.st-ok { color: #16a34a; font-weight: 700; } .st-err { color: #b45309; font-weight: 700; }
@media (max-width: 1000px) { .st-row-even { grid-template-columns: 1fr; } }

/* Statistik: Tooltip in der Verlaufsgrafik */
.st-chart-wrap { position: relative; }
.st-hit { fill: transparent; cursor: pointer; }
.st-hit.on { fill: rgba(1, 68, 146, .07); }
.st-dotp { fill: #fff; stroke: var(--brand, #014492); stroke-width: 2; pointer-events: none; }
.st-bar, .st-area, .st-line { pointer-events: none; }
.st-tip { position: absolute; z-index: 5; background: #14213d; color: #fff; font-size: .82rem; line-height: 1.45; padding: 8px 11px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); pointer-events: none; white-space: nowrap; }
.st-tip-h { font-weight: 800; margin-bottom: 2px; }
.st-barv { font-size: 11px; font-weight: 700; fill: #b5122e; pointer-events: none; }
.st-mark-legend { color: #b45309; margin-left: 8px; white-space: nowrap; }
.st-pvv { font-size: 11px; font-weight: 700; fill: var(--brand, #014492); paint-order: stroke; stroke: #fff; stroke-width: 3px; pointer-events: none; }

/* 2.0.2 Discord-Bestätigung per Bot */
.dcv-box { border: 2px solid #5865f2; border-radius: 16px; padding: 14px 16px; background: #f5f6ff; margin: 6px 0 18px; }
.dcv-box.has-error { border-color: var(--red); background: var(--red-soft); }
.dcv-head { display: flex; align-items: center; gap: 8px; font-weight: 900; color: #3c45c9; font-size: 1.02rem; margin-bottom: 6px; }
.dcv-head .optional { color: var(--muted); font-weight: 400; font-size: .85rem; }
.dcv-steps { margin: 0 0 10px; padding-left: 1.3em; font-size: .92rem; line-height: 1.5; }
.dcv-label { margin: 0 !important; }
.dcv-tip { display: block; color: var(--muted); font-size: .8rem; margin: 4px 0 10px; }
.dcv-box .btn-discord { white-space: normal; }
.btn-discord-outline { display: flex; align-items: center; justify-content: center; border: 2px solid #5865f2; color: #3c45c9 !important; background: #fff; font-weight: 700; text-decoration: none; padding: 9px 14px; margin-top: 10px; }
.dcv-status { margin-top: 10px; border-radius: 12px; padding: 10px 12px; font-size: .93rem; line-height: 1.45; background: #eef0ff; color: #2f37a8; }
.dcv-status p { margin: 0 0 6px; }
.dcv-status.is-err { background: var(--red-soft); color: #8f1f1f; }
.dcv-status.is-info { background: var(--yellow-soft); color: #6b4300; }
.dcv-found { background: var(--green-soft); color: #0b5e41; border-radius: 8px; padding: 6px 8px; }
.dcv-check { display: inline-block; background: #5865f2; color: #fff; font-weight: 900; font-size: 1.25rem; border-radius: 8px; padding: 0 10px; margin: 2px 2px; letter-spacing: .04em; }
.dcv-wait { color: var(--muted); font-size: .85rem; }
.dcv-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid #9aa2f5; border-top-color: #5865f2; border-radius: 50%; vertical-align: -1px; margin-right: 6px; animation: dcvspin 1s linear infinite; }
@keyframes dcvspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dcv-spin { animation: none; } }
.dcv-why { margin-top: 10px; font-size: .9rem; }
.dcv-why summary { color: #3c45c9; font-weight: 700; cursor: pointer; }
.dcv-why p { margin: 6px 0 0; }
.dcv-box .discord-new { margin: 8px 0 0; }
.dcv-alt { margin: 6px 0 0; }
@media (pointer: coarse) { .dcv-alt { display: none; } }
.dcv-ok { display: flex; align-items: flex-start; gap: 8px; background: var(--green-soft); color: #0b5e41; border-radius: 12px; padding: 10px 12px; margin: 6px 0 18px; }
.dcv-ok > .icon { flex: none; margin-top: 3px; }
.dcv-ok > span { flex: 1; }
.dcv-ok .discord-change { white-space: nowrap; font-size: .85rem; }
.dcv-done .success-icon { margin: 0 auto 10px; }
.badge-warn { background: var(--yellow-soft); color: var(--yellow); border-color: transparent; }
.share-field { margin-top: 12px; } .share-preview { display: block; width: 100%; max-width: 420px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.dcv-status .btn, .btn-discord-outline { white-space: normal; text-align: center; line-height: 1.3; }
.st-lang td { white-space: nowrap; } .st-lang td:first-child { white-space: normal; width: 45%; } .st-lang td.st-bars { width: 35%; min-width: 120px; }
.dcv-code { font: 900 2rem/1.1 var(--heading, "Bebas Neue", sans-serif); letter-spacing: .08em; text-align: center; background: #fff; border: 2px dashed #5865f2; color: #3c45c9; border-radius: 12px; padding: 10px; margin: 6px 0 10px; user-select: all; }
/* verbunden-Zeile: lange Discord-Namen umbrechen, „Anderes Konto?“ darunter */
.dcv-ok { flex-wrap: wrap; }
.dcv-ok > span { flex: 1 1 calc(100% - 30px); min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.dcv-ok .discord-change { flex-basis: 100%; margin-left: 26px; white-space: normal; align-self: auto; }
/* 2.0.2 kompakte Zustimmungen */
.consent-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.consent-list .check.consent { margin: 0; font-size: .95rem; line-height: 1.4; align-items: flex-start; }
.consent-list .check.consent input { margin-top: 2px; }
.consent-list .optional { font-size: .82rem; }
.consent-list .check.consent.has-error span { color: var(--red); }
.consent-list .field-error { margin: -4px 0 2px 30px; }

/* Sprachwahl mit Flaggen (2.0.5) */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; }
.lang-flag { display: inline-flex; border-radius: 4px; line-height: 0; transition: transform .15s, box-shadow .15s; }
.lang-flag svg { border-radius: 4px; display: block; }
.lang-flag:not(.is-active) { opacity: .85; }
.lang-flag:hover, .lang-flag:focus-visible { opacity: 1; transform: translateY(-1px); }
.lang-flag.is-active { box-shadow: 0 0 0 3px #fff; }
.lang-flag:not(.is-active) { filter: saturate(.75); }
@media (max-width: 380px) { .lang-flag svg { width: 22px; height: 15px; } .lang-switch { gap: 6px; } }

/* Discord-Protokoll: Monats-Rollup und Aufräumen (2.0.7) */
.st-month { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.st-month > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; list-style: none; }
.st-month > summary::-webkit-details-marker { display: none; }
.st-month > summary::before { content: "▸"; color: var(--muted); }
.st-month[open] > summary::before { content: "▾"; }
.dcv-cleanup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.st-table tr.dcv-retry td { opacity: .6; }
/* Eigene Markierungen im Statistik-Diagramm (2.0.7) */
.st-note { stroke: #7c3aed; stroke-dasharray: 2 3; }
.st-note-t { font-size: 11px; fill: #6d28d9; font-weight: 700; }
.st-note-legend { color: #6d28d9; white-space: nowrap; }
.st-notes { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.st-notes > summary { cursor: pointer; font-weight: 700; }
.st-note-list { list-style: none; padding: 0; margin: 8px 0; }
.st-note-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0; }
.st-note-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.st-note-form input[name=note_text] { flex: 1 1 220px; }
.st-sumrow td { border-top: 2px solid var(--line); }
/* Admin-Anmeldeliste: letzte E-Mail pro Person (2.0.8) */
.mail-tag { display: inline-block; margin-top: 4px; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.mail-tag.is-ok { color: var(--green); }
.mail-tag.is-err { color: var(--red); font-weight: 700; }
.st-dcfrom { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 8px; }
.st-dcfrom input[type=date] { padding: 4px 8px; font-size: .85rem; width: auto; }

/* 2.0.9.3: Hinweis auf die Karte „Tischtennis im Park“ + Trennlinie vor den Filtern */
.map-teaser-wrap { margin: 12px 0 0; text-align: center; }
a.map-teaser { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 18px 6px 6px; background: #fff; border: 2px solid #014492; border-radius: 999px; text-decoration: none; color: var(--ink); text-align: left; box-shadow: 0 1px 4px rgba(1, 68, 146, .10); transition: box-shadow .15s, transform .15s; }
a.map-teaser:hover { box-shadow: 0 4px 14px rgba(1, 68, 146, .18); transform: translateY(-1px); }
.map-teaser img { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.map-teaser span { line-height: 1.25; }
.map-teaser strong { display: block; color: #014492; font-size: .95rem; }
.map-teaser small { color: #5d667a; font-size: .8rem; }
.hero-sep { height: 5px; max-width: 760px; margin: 26px auto; border: 0; border-radius: 3px; background: #014492; }
.site-header .nav-map { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .14); }
.nav-map img { width: 26px; height: 26px; border-radius: 50%; background: #fff; flex: none; }
.nav-map .nm-short { display: none; }
@media (max-width: 760px) { .nav-map .nm-long { display: none; } .nav-map .nm-short { display: inline; } }
@media (max-width: 420px) { .nav-map .nm-short { display: none; } .site-header .nav-map { padding: 4px; } }
/* 2.0.9.3: am Handy nur die Frage – der graue Zusatztext entfällt, Button bleibt schmal */
@media (max-width: 560px) {
  .map-teaser small { display: none; }
  a.map-teaser { padding: 5px 16px 5px 5px; gap: 8px; }
  .map-teaser img { width: 38px; height: 38px; }
  .map-teaser strong { font-size: .9rem; }
}
/* 2.0.9.3: „HIER KLICKEN“ direkt nach der Frage (PC und Handy) */
.mt-cta { margin-left: 4px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; color: #014492; white-space: nowrap; }
