/* Kiwanis Club Baden-Wettingen – Stylesheet nach Kiwanis-Markenbuch (2016)
   Farben:   Blau PMS 295 #003874 · Gold PMS 872 #B49759 · Hellblau PMS 291 #99CAEA · Grau 6 #A9A8A9
   Schriften (Web-Ersatz, lokal gehostet, SIL Open Font License):
     Knockout HTF67/69  → Oswald      (Überschriften, nur Grossbuchstaben)
     Avenir Next LT Pro → Nunito Sans (kurze Texte, Bedienung)
     Adobe Garamond     → EB Garamond (längere Texte)                                   */

@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url(fonts/oswald-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url(fonts/oswald-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(fonts/oswald-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url(fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/nunito-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url(fonts/nunito-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url(fonts/nunito-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-display: swap; src: url(fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-display: swap; src: url(fonts/eb-garamond-latin-600-normal.woff2) format("woff2"); }

:root {
  --blue: #003874;          /* Kiwanis-Blau PMS 295 */
  --blue-2: #0b4a8f;
  --blue-dark: #002650;
  --gold: #B49759;          /* Kiwanis-Gold PMS 872 – Linien, Flächen, Text auf Blau */
  --gold-light: #cdb57f;
  --gold-text: #836a33;     /* Gold-Ton für Text auf Weiss (Kontrast ≥ 4.5:1) */
  --sky: #99CAEA;           /* Hellblau PMS 291 */
  --sky-bg: #e8f2fa;
  --grey: #A9A8A9;          /* Grau 6 */
  --bg: #ffffff;
  --paper: #ffffff;
  --sand: #f6f3ec;          /* Hinweisflächen wie im Markenbuch */
  --ink: #1a1f29;
  --muted: #5f6672;
  --line: #e3dfd6;
  --yes: #1f7a4d; --yes-bg: #e5f4ec;
  --no: #a23b2a;  --no-bg: #fbeae6;
  --radius: 3px;
  --display: "Oswald", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --sans: "Nunito Sans", "Avenir Next", Avenir, Arial, system-ui, sans-serif;
  --serif: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --denim: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
           repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 1px, transparent 1px 4px),
           linear-gradient(160deg, #0a467f 0%, var(--blue) 45%, var(--blue-dark) 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-color: var(--gold); }
a:hover { color: var(--gold-text); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1.05; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--gold-text); }
h2 { font-size: 1.55rem; color: var(--blue); }
h3 { font-size: 1.2rem; color: var(--blue); }
img { max-width: 100%; }
code { background: var(--sand); padding: .1em .35em; border-radius: 2px; font-size: .9em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--blue); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* Kleine Grossbuchstaben-Zeile in Gold (Markenbuch: Avenir in Versalien) */
.eyebrow, .caps-gold { font: 600 .8rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); margin: 0 0 10px; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 8px rgba(0, 20, 50, .12); }
/* Kopf bleibt auch auf dem Handy stehen; aufgeklapptes Menü scrollt bei Bedarf in sich */
@media (max-width: 900px) { .nav-open .nav { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; } }
html { scroll-padding-top: 180px; }
@media (max-width: 900px) { html { scroll-padding-top: 90px; } }
@media print { .site-header { position: static; box-shadow: none; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 16px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; padding: 4px 0; }
.brand-logo { height: 52px; width: auto; display: block; }
/* Clubname unter der Wortmarke – gemäss Markenbuch «Club-Logos»: Avenir, Versalien, Kiwanis-Blau */
.brand-club { font: 600 .78rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-top: 4px; padding-left: 58px; }
.brand-word { font: 700 2.3rem/1 var(--display); text-transform: uppercase; color: var(--blue); letter-spacing: .01em; }
.brand-word + .brand-club { padding-left: 2px; color: var(--gold-text); }
.header-motto { margin: 0; font: 600 1.05rem/1.1 var(--display); text-transform: uppercase; color: var(--gold-text); letter-spacing: .02em; text-align: right; max-width: 420px; }
.nav { background: var(--denim); border-top: 4px solid var(--gold); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.nav a { display: block; color: #fff; text-decoration: none; padding: 14px 13px 12px; font: 500 1.02rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--gold-light); }
.nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav .btn { padding: 8px 14px; border: 0; color: var(--blue); }
.nav .btn:hover { color: var(--blue); }
.nav .muted-link { color: var(--sky); }
.nav-toggle { display: none; background: var(--blue); border: 0; width: 46px; height: 46px; position: relative; cursor: pointer; border-radius: var(--radius); flex: none; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; }
.nav-toggle span:first-child { top: 22px; }
.nav-toggle span:first-child::before { left: 0; right: 0; top: -7px; }
.nav-toggle span:first-child::after { left: 0; right: 0; top: 7px; }

@media (max-width: 900px) {
  .header-motto { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; }
  .nav-open .nav { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { border-bottom: 0; border-left: 3px solid transparent; padding: 12px; }
  .nav a[aria-current="page"] { border-left-color: var(--gold); }
  .nav-user { border-top: 1px solid rgba(255,255,255,.15); padding-top: 8px !important; }
  .nav-user .btn { display: inline-flex; margin: 6px 12px; }
  .brand-logo { height: 40px; }
  .brand-club { padding-left: 44px; font-size: .7rem; }
}

/* ---------- Main ---------- */
.main { padding-top: 40px; padding-bottom: 72px; min-height: 60vh; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 0 0 20px; border-left: 4px solid; }
.flash-ok { background: var(--yes-bg); border-color: var(--yes); color: #164d33; }
.flash-warn { background: var(--sand); border-color: var(--gold); color: #5c4818; }
.flash-err { background: var(--no-bg); border-color: var(--no); color: #7a2717; }
.back { margin: 0 0 14px; font-size: .95rem; }
.back a { text-decoration: none; font-weight: 600; }
.hint { margin-top: 28px; padding: 14px 18px; background: var(--sand); border-left: 4px solid var(--gold); }

/* ---------- Buttons (kantig, wie im Markenbuch) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .98rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 22px; border-radius: var(--radius); border: 2px solid var(--blue); background: var(--blue); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--blue); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-small { padding: 7px 14px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-yes { background: var(--yes); border-color: var(--yes); }
.btn-yes:hover { background: #18653f; border-color: #18653f; }
.btn-no, .btn-danger { background: #fff; color: var(--no); border-color: #e3b7ad; }
.btn-no:hover { background: var(--no-bg); color: var(--no); border-color: var(--no); }
.btn-danger:hover { background: var(--no); color: #fff; border-color: var(--no); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.push-right { margin-left: auto; }
.link-btn { background: none; border: 0; color: var(--no); cursor: pointer; font: inherit; font-size: .9rem; padding: 0; text-decoration: underline; }

/* ---------- Hero mit goldenem Rahmen ---------- */
.hero { position: relative; background: var(--denim); color: #fff; margin: -8px 0 52px; min-height: 420px; display: grid; grid-template-columns: 1fr; overflow: hidden; }
.hero-frame { position: absolute; inset: 26px; border: 12px solid var(--gold); pointer-events: none; z-index: 2;
  background: none; opacity: .95; }
.hero-text { position: relative; z-index: 3; padding: clamp(56px, 7vw, 92px) clamp(48px, 7vw, 96px); max-width: 760px; align-self: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.02; margin-bottom: .35em; }
.hero .eyebrow { color: var(--gold-light); }
.lead { font-size: 1.1rem; color: #dce6f2; max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: #fff; color: var(--blue); }
/* Variante mit Foto: Text links auf Weiss (Titel in Gold), Foto rechts – Rahmen läuft über beide */
.hero-photo { grid-template-columns: 1fr 1fr; background: #fff; color: var(--ink); }
.hero-photo .hero-text { padding: clamp(56px, 6vw, 80px) 40px clamp(56px, 6vw, 80px) clamp(48px, 6vw, 84px); }
.hero-photo h1 { color: var(--gold-text); font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.hero-photo .lead { font-size: 1.02rem; }
.hero-photo .eyebrow { color: var(--gold-text); }
.hero-photo .lead { color: var(--ink); }
.hero-photo .btn-ghost { color: var(--blue); border-color: var(--blue); }
.hero-photo .btn-ghost:hover { background: var(--blue); color: #fff; }
.hero-img { background-size: cover; background-position: center; min-height: 420px; }
@media (max-width: 760px) {
  .hero { min-height: 0; margin-top: -16px; }
  .hero-frame { inset: 12px; border-width: 7px; }
  .hero-text { padding: 48px 34px 44px; }
  .hero h1, .hero-photo h1 { font-size: 2.1rem; }
  .lead, .hero-photo .lead { font-size: 1rem; }
  .hero-photo { grid-template-columns: 1fr; }
  .hero-photo .hero-img { order: -1; min-height: 240px; }
  .hero-photo .hero-text { padding: 34px 34px 44px; }
}

/* ---------- Abschnittstitel mit goldener Linie ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.section-head h2 { margin: 0; color: var(--gold-text); font-size: 1.7rem; }
.section-head a { font: 600 .82rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }

/* ---------- Home ---------- */
.home-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.intern-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .home-grid, .intern-grid { grid-template-columns: 1fr; gap: 36px; } }
.event-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-card { display: flex; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.event-card.is-next { border: 2px solid var(--gold); background: linear-gradient(90deg, #fbf8f1, #fff 60%); }
.ec-label { display: inline-block; font: 600 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 2px; }
.event-card h3 { margin: 0 0 4px; font: 700 1.08rem/1.3 var(--sans); text-transform: none; }
.event-card h3 a { color: var(--blue); text-decoration: none; }
.event-card h3 a:hover { text-decoration: underline; }
.ec-meta { margin: 0; color: var(--muted); font-size: .94rem; }
.ec-reg { margin-top: 10px; }
.date-badge { flex: none; width: 64px; text-align: center; background: var(--denim); color: #fff; padding: 7px 0 8px; align-self: flex-start; border-bottom: 4px solid var(--gold); }
.date-badge span { display: block; line-height: 1.1; }
.db-wd { font: 600 .7rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--sky); }
.db-d { font: 600 1.9rem/1.05 var(--display); }
.db-m { font: 500 .8rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); }
.news-item { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.news-item time { font: 600 .76rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--gold-text); }
.news-item h3 { margin: 4px 0 6px; font: 700 1.08rem/1.3 var(--sans); text-transform: none; }
.news-item .prose p { margin: 0 0 .6em; }
.news-item-lg h2 { margin-top: 6px; }
.member-box { background: var(--sand); border-left: 4px solid var(--gold); padding: 20px; }
.member-box h3 { margin-top: 0; }

/* ---------- Programm ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--gold); }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
h2.month { font: 600 1.15rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--gold-text); margin: 32px 0 10px; }
.program-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.program-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: center; }
.program-row:first-child { border-top: 0; }
.program-row.is-free { background: #fafafa; color: var(--muted); }
.pr-date { display: flex; flex-direction: column; line-height: 1.2; }
.pr-wd { font: 600 .72rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pr-d { font: 600 1.15rem/1.2 var(--display); color: var(--blue); }
.pr-t { font-size: .88rem; color: var(--muted); }
.pr-main { min-width: 0; }
.pr-title { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
a.pr-title:hover { color: var(--blue); text-decoration: underline; }
.is-free .pr-title { font-weight: 400; font-style: italic; }
.pr-loc { display: block; font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) {
  .program-row { grid-template-columns: 64px 1fr; gap: 10px 12px; padding: 12px 14px; }
  .pr-reg { grid-column: 2; }
}

/* Schnell-Anmeldung */
.quick-reg { display: inline-flex; border: 1px solid #cfd6df; border-radius: var(--radius); overflow: hidden; background: #fff; }
.qr { border: 0; background: transparent; padding: 7px 14px; font: 700 .84rem/1.2 var(--sans); cursor: pointer; color: var(--muted); white-space: nowrap; }
.qr + .qr, .stepper + .qr { border-left: 1px solid #cfd6df; }
.qr-yes:hover { background: var(--yes-bg); color: var(--yes); }
.qr-no:hover { background: var(--no-bg); color: var(--no); }
.qr-yes.is-on { background: var(--yes); color: #fff; }
.qr-no.is-on { background: var(--no-bg); color: var(--no); }

.pill { display: inline-block; font: 700 .74rem/1.4 var(--sans); padding: 2px 9px; border-radius: 2px; background: #eef0f3; color: var(--muted); vertical-align: middle; }
.pill-yes { background: var(--yes-bg); color: var(--yes); }
.pill-no { background: var(--no-bg); color: var(--no); }
.pill-open { background: var(--sand); color: #6b5520; }
.pill-intern { background: var(--sky-bg); color: var(--blue); }

/* ---------- Anlass-Detail ---------- */
.event-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .event-detail { grid-template-columns: 1fr; } }
.ed-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.ed-head h1 { margin-bottom: 8px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.ed-when { margin: 0; color: var(--muted); font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 22px; }
.facts dt { font: 600 .78rem/1.9 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); }
.facts dd { margin: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.card h2 { font-size: 1.3rem; }
.reg-card { border: 2px solid var(--gold); }
.counts { margin: 0 0 10px; }
.names { columns: 2; padding-left: 18px; margin: 0 0 8px; font-size: .94rem; }
@media (max-width: 480px) { .names { columns: 1; } }
details summary { cursor: pointer; color: var(--muted); font-size: .92rem; }

/* ---------- Formulare ---------- */
.form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 14px; color: var(--ink); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .search input {
  display: block; width: 100%; margin-top: 5px; font: 400 1rem/1.4 var(--sans); padding: 10px 12px; border: 1px solid #c9ced6; border-radius: var(--radius); background: #fff; color: var(--ink); }
.form textarea { resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .93rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form label.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 2px; margin: 4px 0 18px; }
.form legend { font: 600 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--blue); padding: 0 6px; }
.form-wide { max-width: 880px; }
.input-short { max-width: 110px; }
.input-tiny { width: 70px !important; padding: 6px 8px !important; margin: 0 !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; align-items: end; }
.grid-zip { display: grid; grid-template-columns: 110px 1fr; gap: 0 12px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.auth-box { max-width: 440px; margin: 20px auto; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--gold); padding: 30px; }
.auth-box h1 { font-size: 2.2rem; }
.search input { margin: 0; min-width: 220px; padding: 8px 12px; }
.md-help { margin: -6px 0 16px; }
.md-help table { margin-top: 8px; border-collapse: collapse; }
.md-help td { padding: 3px 14px 3px 0; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--sand); border-left: 4px solid var(--gold);
  padding: 12px 16px; margin: 0 0 18px; }
.danger-zone { margin-top: 10px; }
.media-slot { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.media-slot:first-of-type { border-top: 0; }
.media-preview { border: 1px dashed var(--grey); min-height: 90px; display: grid; place-items: center; padding: 10px; background: #fff; }
.media-preview img { max-height: 120px; }
.media-hero img { max-height: 140px; object-fit: cover; }
@media (max-width: 640px) { .media-slot { grid-template-columns: 1fr; } }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); margin-bottom: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font: 600 .74rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fcfbf8; }
.table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:first-child td { border-top: 0; }
.table .num { text-align: right; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.row-muted td { color: var(--muted); background: #fafafa; }
.actions a { margin-right: 12px; font-size: .9rem; }
.table-regs select { padding: 5px 8px !important; margin: 0 !important; width: auto !important; }
.reg-yes td:first-child { box-shadow: inset 4px 0 0 var(--yes); }
.reg-no td:first-child { box-shadow: inset 4px 0 0 var(--no); }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, #fff 30%); }

/* ---------- Verwaltung ---------- */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: -14px 0 26px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 6px 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font: 500 .92rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.admin-nav a:hover { background: var(--sand); }
.admin-nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 26px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-bottom: 3px solid var(--gold); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.stat strong { display: block; font: 600 2.2rem/1.05 var(--display); color: var(--blue); }
.stat span { font-size: .85rem; color: var(--muted); }
.stat-yes strong { color: var(--yes); }
.admin-edit { margin-top: 28px; font-size: .9rem; }

/* ---------- Listen ---------- */
.member-names { columns: 3 200px; padding: 0; list-style: none; }
.member-names li { padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.member-names .ln { font-weight: 700; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { text-decoration: none; font-weight: 600; }
.doc-list { list-style: none; padding: 0; margin: 0; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.doc-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.doc-list li:first-child { border-top: 0; }
.doc-list a { text-decoration: none; font-weight: 700; }
.doc-ext { display: inline-block; font: 600 .68rem/1.2 var(--sans); background: var(--blue); color: #fff; padding: 3px 5px; margin-right: 10px; vertical-align: middle; }

/* ---------- Fliesstext ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.5em; color: var(--gold-text); font-size: 1.7rem; }
.prose h3 { margin-top: 1.3em; }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; background: var(--denim); color: #fff; border-left: 6px solid var(--gold); }
.prose blockquote p { margin: 0; font: 600 1.35rem/1.25 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--gold-text); font-weight: 700; }
/* Längere Texte in Garamond, erster Absatz in Gold-Versalien (Markenbuch «Typographie in Aktion») */
.prose-long { font: 400 1.2rem/1.6 var(--serif); }
.prose-long > p:first-child { font: 600 .95rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); }
.prose-long strong { font-weight: 600; }
.page h1 { margin-bottom: .6em; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--denim); color: #c9d6e6; font-size: .92rem; border-top: 6px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; padding-top: 32px; padding-bottom: 28px; }
.footer-motto { margin: 0 0 10px; font: 600 1.5rem/1.05 var(--display); text-transform: uppercase; color: var(--gold-light); }
.site-footer strong { color: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: #fff; text-decoration: none; font: 500 .95rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { grid-column: 1 / -1; font-size: .82rem; color: #93a8c4; border-top: 1px solid rgba(180,151,89,.4); padding-top: 14px; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

@media print {
  .site-header .nav, .site-footer, .admin-nav, .btn, .quick-reg, .page-head-actions, .sticky-save { display: none !important; }
}

/* ---------- Erweiterungen: Stempel, Quick-Infos, Catering, Druck ---------- */
.stamp { display: inline-block; font: 700 .78rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--no);
  border: 2px solid var(--no); padding: 2px 7px; transform: rotate(-3deg); background: #fff; vertical-align: middle; }
.stamp-lg { font-size: 1.05rem; padding: 4px 10px; }
.is-cancelled { text-decoration: line-through; text-decoration-color: var(--no); opacity: .75; }
.row-stamp td { background: #fff8f6; }
.qr-link { display: inline-block; font: 700 .84rem/1.2 var(--sans); padding: 7px 14px; border: 1px solid var(--blue); border-radius: var(--radius); text-decoration: none; }
.qr-link:hover { background: var(--blue); color: #fff; }
.copy-field { width: 100%; font: .82rem/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 8px 10px; border: 1px solid #c9ced6; border-radius: var(--radius); background: var(--sand); margin: 4px 0 8px; }
.cal-settings { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .9rem; }
.cal-settings th { text-align: left; font: 600 .72rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); padding: 4px 0; }
.cal-settings td { padding: 3px 6px 3px 0; }
.cal-settings label.check { margin: 0 !important; }
.cal-settings input:not([type=checkbox]) { margin: 0 !important; padding: 6px 8px !important; }
.qi-list { list-style: none; padding: 0; margin: 0; }
.qi { padding: 10px 0; border-top: 1px solid var(--line); }
.qi:first-child { border-top: 0; }
.qi-meta { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.qi strong { display: block; font-size: .95rem; }
.qi-body { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.page-head + .qi-list, .qi-list:only-child { background: #fff; }
.bar { display: inline-block; width: 120px; height: 8px; background: #eef0f3; vertical-align: middle; border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); }
.select-inline { padding: 8px 10px; border: 1px solid #c9ced6; border-radius: var(--radius); font: inherit; }
.sum-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sum-list strong { color: var(--blue); font-family: var(--display); font-size: 1.15rem; margin-right: 2px; }
.menu-box { background: var(--sand); border-left: 4px solid var(--gold); padding: 12px 16px; margin: 14px 0; }
.menu-box h2 { font-size: 1.15rem; margin-bottom: 4px; }
.menu-box p { margin: 0; }
.card-sub { border: 1px dashed var(--grey); padding: 12px 16px; margin: 4px 0 18px; border-radius: var(--radius); }
.card-sub summary { cursor: pointer; color: var(--ink); font-size: .95rem; }
.card-sub[open] summary { margin-bottom: 12px; }
.grid-office { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 0 12px; align-items: end; }
@media (max-width: 760px) { .grid-office { grid-template-columns: 1fr 1fr; } }
.series-list { columns: 2 260px; font-size: .92rem; padding-left: 18px; }
.catering-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.catering-card h2 { font-size: 1.25rem; margin-bottom: 2px; }
.catering-card.is-stamped { opacity: .7; }
.cc-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.cc-count { text-align: center; min-width: 76px; background: var(--denim); color: #fff; padding: 8px 6px; border-bottom: 4px solid var(--gold); }
.cc-count strong { display: block; font: 600 2.2rem/1 var(--display); }
.cc-count span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); }
.cc-count .stamp { transform: none; }
.answer-box { text-align: center; }
.answer-icon { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font: 700 2.2rem/1 var(--sans); color: #fff; }
.answer-icon.is-yes { background: var(--yes); }
.answer-icon.is-no { background: var(--no); }
/* Druckansicht */
.print-page { background: #fff; }
.print-wrap { max-width: 900px; margin: 0 auto; padding: 24px; }
.print-wrap h1 { color: var(--blue); font-size: 2rem; margin-top: 10px; }
.print-logo { height: 40px; }
.print-table th, .print-table td { border: 1px solid #ccc !important; padding: 6px 8px; }
.print-table .sign { width: 40px; }
.print-table .num { text-align: right; }
.print-foot { font-size: .8rem; color: var(--muted); margin-top: 18px; }
@media print { .print-actions { display: none; } .print-wrap { padding: 0; } .print-table { font-size: 10pt; } .catering-card { break-inside: avoid; } }
.test-banner { background: #fff3cd; color: #5c4818; text-align: center; font-size: .85rem; padding: 6px 12px; border-bottom: 1px solid #f0d68a; }

/* ---------- An-/Abmeldung in Listen: Zähler Begleitpersonen, Verlauf ---------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid #cfd6df; border-radius: var(--radius); background: #fff; font: 700 .95rem/1 var(--sans); }
.stepper button { border: 0; background: transparent; color: var(--blue); width: 34px; height: 34px; font: 700 1.15rem/1 var(--sans); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--sky-bg); }
.stepper button:disabled { color: #c3c9d2; cursor: default; }
.stepper-val { min-width: 1.4em; text-align: center; }
.stepper-compact { border: 0; border-left: 1px solid #cfd6df; border-radius: 0; font-size: .8rem; }
.stepper-compact button { width: 24px; height: auto; align-self: stretch; font-size: .95rem; }
.stepper-compact .stepper-val { min-width: 1em; }
.stepper-lbl { font: 600 .7rem/1 var(--sans); color: var(--muted); margin-left: 3px; }
.field-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.field-lbl { font-weight: 600; }
.reg-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.reg-wrap .info-btn { margin-left: 8px; }
.companions { display: block; color: var(--gold-text); font-size: .8rem; line-height: 1.35; margin-bottom: 4px; }
.names li { break-inside: avoid; }
.intern-grid > *, .home-grid > *, .ec-body, .pr-reg { min-width: 0; }
@media (max-width: 640px) { .qr { padding: 7px 9px; } }
@media (max-width: 400px) {
  .program-row { grid-template-columns: 52px 1fr; }
  .pr-reg { grid-column: 1 / -1; }
  .stepper-lbl { display: none; }
  .stepper-compact .stepper-val::before { content: "+"; font-weight: 600; }
}
@media (max-width: 360px) { .event-card { flex-direction: column; gap: 6px; padding: 14px; } }

/* ---------- Menü-Hinweis bei Anlässen ---------- */
.menu-tip { position: relative; display: inline-block; margin-top: 3px; font: 600 .76rem/1.4 var(--sans); color: var(--gold-text); background: var(--sand); border-radius: 999px; padding: 1px 9px; cursor: help; white-space: nowrap; }
.menu-pop { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: max-content; max-width: min(340px, 80vw); white-space: normal;
  background: #fff; color: var(--ink); font: 400 .9rem/1.45 var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .16); }
.menu-pop strong { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 4px; }
.menu-tip:hover .menu-pop, .menu-tip:focus .menu-pop, .menu-tip:focus-within .menu-pop { display: block; }
.program-list { overflow: visible; }   /* damit der Hinweis nicht abgeschnitten wird */
/* Handy: als Feld unten am Bildschirm, damit nichts über den Rand ragt */
@media (max-width: 640px) {
  .menu-pop { position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; width: auto; max-width: none; max-height: 60vh; overflow-y: auto; font-size: .95rem; }
}

/* ---------- «i»-Knopf und Dialogfenster (Verlauf, Bildausschnitt) ---------- */
.info-btn { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--blue); background: #fff; color: var(--blue);
  font: 700 italic .78rem/1 Georgia, serif; cursor: pointer; vertical-align: middle; padding: 0; }
.info-btn:hover { background: var(--blue); color: #fff; }
.info-dialog { border: 0; border-radius: 14px; padding: 22px 24px 18px; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 20px 50px rgba(16, 24, 40, .3); color: var(--ink); font-family: var(--sans); }
.info-dialog::backdrop { background: rgba(10, 25, 50, .4); }
.info-dialog h2 { font-size: 1.2rem; margin: 0 0 2px; padding-right: 30px; }
.info-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.hist-list { list-style: none; margin: 14px 0 6px; padding: 0 0 0 6px; max-height: 60vh; overflow-y: auto; }
.hist-list li { position: relative; padding: 0 0 14px 18px; border-left: 2px solid var(--line); }
.hist-list li:last-child { border-left-color: transparent; }
.hist-list li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.hist-list time { font-weight: 700; font-size: .88rem; margin-right: 4px; }
.crop-dialog { max-width: 420px; }
.crop-frame { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 14px auto 10px; border-radius: 12px; overflow: hidden; background: #eee; touch-action: none; }
.crop-frame canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.crop-frame canvas:active { cursor: grabbing; }
.crop-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(255, 255, 255, .55); pointer-events: none; outline: 2px solid #fff; }
.crop-zoom { display: flex; align-items: center; gap: 10px; max-width: 340px; margin: 0 auto 16px; font-weight: 700; color: var(--muted); }
.crop-zoom input { flex: 1; accent-color: var(--blue); }
.crop-dialog .btn-row { justify-content: center; }

/* ---------- Verwaltung: Lokale, Menü erfassen (Catering) ---------- */
.grid-venue { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: end; margin: 0; }
.grid-venue label { margin: 0; }
.grid-venue input { margin-top: 0 !important; }
.grid-venue label input { margin-top: 5px !important; }
@media (max-width: 640px) { .grid-venue { grid-template-columns: 1fr; } }
.menu-edit { margin-top: 10px; }
.menu-edit summary { font-weight: 700; color: var(--blue); font-size: .9rem; }
.menu-edit[open] summary { margin-bottom: 8px; }
.menu-edit textarea { font-family: var(--sans) !important; }
@media print { .menu-edit { display: none; } }

/* ---------- Kopf: «Angemeldet als …», Abmelden-Knopf ---------- */
.header-inner { position: relative; }
.header-right { margin-left: auto; min-width: 0; }
.brand-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.header-inner:has(.header-user) { padding-bottom: 8px; }
.header-user { margin: 2px 0 0; padding-left: 58px; font: 600 .74rem/1.3 var(--sans); color: #9aa3b0; text-transform: none; letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.header-user > span[aria-hidden] { opacity: .5; filter: grayscale(1); }
.hu-login { font-weight: 400; }
.nav-whoami { display: none; }
.nav-form { margin: 0; }
.nav .nav-btn { display: block; background: none; border: 0; cursor: pointer; color: var(--sky); padding: 14px 13px 12px; font: 500 1.02rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; border-bottom: 3px solid transparent; }
.nav .nav-btn:hover { color: var(--gold-light); }
@media (max-width: 900px) {
  .header-user { display: none; }
  .header-inner:has(.header-user) { padding-bottom: 16px; }
  .nav-whoami { display: block; padding: 10px 12px 6px; font: 600 .85rem/1.35 var(--sans); color: #c9d6e6; }
  .nav-whoami span { font-weight: 400; font-size: .8rem; }
  .nav .nav-btn { width: 100%; text-align: left; padding: 12px; border-bottom: 0; border-left: 3px solid transparent; }
}

/* ---------- Mitgliederfotos ---------- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none; background: var(--sky-bg); color: var(--blue); font: 700 .8rem/1 var(--sans); letter-spacing: .02em; }
.avatar-sm { width: 38px; height: 38px; }
.avatar-lg { width: 120px; height: 120px; font-size: 2.2rem; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.avatar-pop { width: 170px; height: 170px; max-width: none; border-radius: 10px; display: block; }
.photo-card { display: flex; gap: 24px; align-items: center; }
.photo-card h2 { margin-bottom: 4px; }
.photo-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.photo-form label.photo-pick { display: inline-flex; margin: 0; cursor: pointer; }
.photo-form input[type=file] { display: none !important; }
.mc-head { display: flex; gap: 20px; align-items: center; margin-bottom: 14px; }
.mc-head h1 { margin: 0; }
@media (max-width: 520px) { .photo-card, .mc-head { flex-direction: column; align-items: flex-start; } .avatar-lg { width: 96px; height: 96px; } }
/* Foto als Mouseover in der Mitgliederliste (nur mit Maus) */
.photo-tip { position: relative; display: inline-block; }
.photo-pop { display: none; position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); z-index: 30; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(16, 24, 40, .2); pointer-events: none; }
.photo-tip:hover .photo-pop, .photo-tip:focus-within .photo-pop { display: block; }
@media (hover: hover) and (min-width: 1000px) { .table-wrap:has(.photo-tip) { overflow: visible; } }
@media (hover: none) { .photo-pop { display: none !important; } }

/* ---------- Region Baden-Wettingen: Silhouette mit Lägern, Ruine Stein, Stadtturm, Holzbrücke, Kloster ---------- */
.region-band { height: clamp(64px, 11.5vw, 150px); color: var(--gold-light); opacity: .55; overflow: hidden; margin-bottom: -18px; }
.region-band svg, .hero-region svg { display: block; width: 100%; height: 100%; }
.hero-region { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(90px, 13vw, 170px); color: var(--gold-light); opacity: .42; pointer-events: none; z-index: 1; }
.hero:not(.hero-photo) .hero-text { padding-bottom: clamp(110px, 12vw, 150px); }
@media (max-width: 760px) { .hero-region { height: 90px; } .hero:not(.hero-photo) .hero-text { padding-bottom: 96px; } }
/* Silhouette auch im Kopf: dezent hinter Motto und Login, links (Logo) ausgeblendet */
.header-region { position: absolute; left: calc(50% - 50vw); right: 20px; bottom: 0; top: 6px; color: var(--gold-light); opacity: .5; pointer-events: none; z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 35%, #000 65%); mask-image: linear-gradient(to right, transparent 0, transparent 35%, #000 65%); }
.header-region svg { display: block; width: 100%; height: 100%; }
.header-inner { isolation: isolate; }
.site-header { overflow-x: clip; }
@media (max-width: 900px) { .header-region { -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 40%, #000 75%); mask-image: linear-gradient(to right, transparent 0, transparent 40%, #000 75%); } }
@media print { .header-region { display: none; } }

/* ---------- Mitgliederverzeichnis: Auswahl ---------- */
.dir-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.dir-filter a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font: 600 .88rem/1.2 var(--sans); }
.dir-filter a:hover { border-color: var(--blue); color: var(--blue); }
.dir-filter a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.table th.pick, .table td.pick { width: 1%; padding-right: 0; }
.table td.pick input, .table th.pick input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.mail-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 25; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(16, 24, 40, .18); max-width: calc(100vw - 24px); }
.mail-bar[hidden] { display: none; }
@media print { .mail-bar, .table .pick { display: none !important; } }
.mail-bar .btn { white-space: nowrap; }
@media (max-width: 520px) { .mail-bar { left: 12px; right: 12px; transform: none; max-width: none; flex-wrap: nowrap; } .mail-bar .btn { flex: 1; padding-left: 10px; padding-right: 10px; font-size: .85rem; } }
@media (max-width: 520px) { .mail-bar { gap: 6px; padding: 8px; } .mail-bar [data-mail-clear] { flex: none; padding-left: 14px; padding-right: 14px; } }
.dir-empty { padding: 18px 4px; }
/* Verzeichnis: Suche und Knöpfe immer auf eigener Zeile, Suchfeld links – gleiche Position in allen Gruppen */
.dir-head { flex-direction: column; align-items: stretch; }
.dir-head .page-head-actions { justify-content: flex-start; }
@media (max-width: 600px) { .dir-note { display: block; } .dir-dot { display: none; } }
@media (max-width: 600px) { .dir-head .search { flex: 1 1 100%; } .dir-head .search input { width: 100%; } .dir-head h1 { font-size: min(2.2rem, 9vw); } }

/* ---------- Anmeldeschluss unter dem Datum ---------- */
.dl { display: block; margin-top: 6px; font: 600 .7rem/1.25 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; hyphens: manual; }
.dl > span { display: block; }
.dl-l { font-weight: 500; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.dl-d { color: var(--ink); }
.dl.is-soon .dl-d, .dl.is-soon .dl-t { color: #b4560b; }
.dl.is-past { opacity: .55; }
.dl.is-past .dl-d { text-decoration: line-through; }
.date-col { flex: none; display: flex; flex-direction: column; align-items: center; width: 64px; text-align: center; }
.date-col .dl { margin-top: 8px; }
.inline-form { display: inline; margin: 0; }
.actions .inline-form .link-btn { margin-left: 0; font-size: .9rem; text-decoration: none; }
.actions .inline-form .link-btn:hover { text-decoration: underline; }

/* ---------- Verwaltungslisten: Live-Suche ---------- */
.list-search { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.list-search input { width: 300px; max-width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: #fff; }
@media (max-width: 600px) { .list-search input { width: 100%; } }

/* ---------- Lokale mit Caterern ---------- */
.venue-card { max-width: 980px; margin-bottom: 22px; }
.venue-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.venue-head .grid-venue { flex: 1 1 520px; }
.venue-stats { margin: 0 0 6px; }
.caterer-form { margin: 16px 0 0; padding: 14px 16px; background: var(--sky-bg, #f3f6fa); border-radius: var(--radius); }
.caterer-form h3 { margin: 0 0 10px; font-size: 1.02rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.caterer-form .caterer-login { margin: 10px 0 6px; background: #fff; }
.caterer-form .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 0 0; }
.caterer-add { margin-top: 14px; }
.caterer-add summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.caterer-add .caterer-new { margin: 10px 0 0; align-items: end; grid-template-columns: 1fr 1fr 1.3fr auto; }
.caterer-add .caterer-link { margin-top: 10px; }
.venue-delete { margin: 14px 0 0; text-align: right; }
@media (max-width: 640px) { .caterer-add .caterer-new { grid-template-columns: 1fr; } }
.notice-card { border-left: 4px solid var(--gold); margin-bottom: 20px; } .notice-card ul { margin: 6px 0 12px; padding-left: 18px; }

/* ---------- Seite Clublokal: Lokale als Karten ---------- */
.venue-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 26px 0 10px; }
.venue-public { background: var(--paper, #fff); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 20px 22px 18px; }
.venue-public .eyebrow { margin: 0 0 4px; }
.venue-public h2 { margin: 0 0 10px; font-size: 1.35rem; color: var(--blue); }
.vp-addr { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.5; }
.vp-links { list-style: none; padding: 0; margin: 0 0 12px; }
.vp-links li { margin: 4px 0; }
.vp-links span { display: inline-block; width: 1.4em; }
.vp-next { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.vp-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 4px 0 0; }
.vp-facts dt { font: 600 .74rem/1.9 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.vp-facts dd { margin: 0; line-height: 1.5; word-break: break-word; }
