/* ==========================================================================
   Jungwacht Ibach: Gestaltung
   Farben aus dem Logo (#1f6617, #37a62b, #497f43). Schrift Jost, lokal.
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green-950: #0d2a09;
  --green-900: #143f0f;
  --green-800: #1f6617;
  --green-500: #37a62b;
  --green-400: #497f43;
  --green-100: #e3efdf;
  --paper: #f4f7f2;
  --white: #ffffff;
  --ink: #111511;
  --muted: #4a5a48;
  --line: #d3ddcf;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13, 42, 9, .06), 0 6px 18px rgba(13, 42, 9, .06);
  --wrap: 1160px;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-800); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- Kopfzeile */

.site-header { background: var(--green-800); color: var(--white); position: relative; z-index: 20; }
.is-home .site-header { position: absolute; left: 0; right: 0; top: 0; background: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand:hover { color: inherit; }
.brand img { width: 52px; height: 52px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: rgba(13,42,9,.35); color: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.main-nav a { display: block; padding: 10px 12px; color: var(--white); text-decoration: none; font-weight: 500; font-size: 16px; border-radius: 999px; }
.main-nav a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.main-nav a[aria-current="page"] { color: #c6f0bc; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.main-nav .nav-cta a { background: var(--green-500); color: var(--ink); font-weight: 700; padding: 10px 18px; margin-left: 6px; text-decoration: none; }
.main-nav .nav-cta a:hover { background: #4fbd42; color: var(--ink); }

@media (max-width: 1100px) {
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav { display: none; position: absolute; left: 12px; right: 12px; top: 76px; background: var(--green-900); border-radius: var(--radius); padding: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
  .js .main-nav.open { display: block; }
  .js .main-nav ul { flex-direction: column; align-items: stretch; }
  .js .main-nav a { font-size: 18px; padding: 12px 14px; }
  .js .main-nav .nav-cta a { margin: 6px 0 0; text-align: center; }
  .brand span { font-size: 18px; }
}

/* ---------------------------------------------------------------- Startbild */

.hero { position: relative; min-height: max(600px, min(90vh, 860px)); display: flex; flex-direction: column; justify-content: center; color: var(--white); background: radial-gradient(ellipse at 70% 30%, #2a7a20 0%, var(--green-800) 45%, var(--green-900) 100%); overflow: hidden; isolation: isolate; }
.hero-motif { position: absolute; z-index: -1; right: -6%; top: 50%; width: min(70vw, 760px); transform: translateY(-46%); opacity: .22; }
.hero-content { padding: 130px 0 72px; text-align: center; }
.hero .eyebrow { color: #a6e39b; }
.hero h1 { font-size: clamp(42px, 7vw, 96px); font-weight: 800; line-height: 1.05; letter-spacing: 0; }
.hero-sub { margin: 16px auto 0; font-size: clamp(19px, 2.4vw, 26px); font-weight: 500; color: #dbeed5; max-width: 34ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip-next { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 22px; border-radius: 999px; background: rgba(13,42,9,.6); border: 1px solid rgba(255,255,255,.4); color: var(--white); text-decoration: none; }
.chip-next:hover { color: var(--white); background: rgba(13,42,9,.85); }
.chip-next .label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a6e39b; }
@media (max-width: 720px) {
  .hero-content { padding-top: 120px; }
  .hero-motif { right: -30%; width: 120vw; opacity: .14; }
}
@media (max-width: 480px) {
  .chip-next { flex-wrap: wrap; justify-content: center; gap: 2px 10px; border-radius: 22px; max-width: 100%; }
  .chip-next .label { width: 100%; text-align: center; font-size: 12px; }
}

/* ---------------------------------------------------------------- Knöpfe */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--green-500); color: var(--ink); }
.btn-primary:hover { background: #4fbd42; color: var(--ink); }
.btn-dark { background: var(--green-800); color: var(--white); }
.btn-dark:hover { background: var(--green-900); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--green-800); background: transparent; }
.btn-outline:hover { background: var(--green-100); }
.btn-light { border-color: rgba(255,255,255,.8); color: var(--white); background: transparent; }
.btn-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.arrow { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- Wegweiser */

.signposts { background: var(--green-900); padding: 28px 0; }
.signposts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.sign { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; min-height: 84px; padding: 12px 44px 12px 18px; background: var(--green-500); color: var(--ink); text-decoration: none; line-height: 1.2; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%); transition: transform .15s ease, background .15s ease; }
.sign:hover { background: #4fbd42; color: var(--ink); transform: translateX(4px); }
.sign strong { grid-column: 1 / -1; font-size: 20px; font-weight: 800; min-width: 0; }
.sign-time { order: 3; justify-self: end; font-size: 14px; font-weight: 700; white-space: nowrap; background: rgba(255,255,255,.6); padding: 2px 10px; border-radius: 999px; }
.sign-sub { order: 2; font-size: 15px; font-weight: 500; min-width: 0; }

/* ---------------------------------------------------------------- Abschnitte */

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-white { background: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 32px; }
.section-head h2, .h-big { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; }
.eyebrow { display: block; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-800); margin-bottom: 8px; }
.lead { font-size: clamp(19px, 2.2vw, 23px); max-width: 760px; color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.page-head { background: var(--green-800); color: var(--white); padding: 56px 0 60px; border-bottom: 6px solid var(--green-500); }
.page-head h1 { font-size: clamp(34px, 5.5vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: 0; }
.page-head p { margin: 14px 0 0; max-width: 720px; font-size: 20px; color: #dbeed5; }
.page-head .eyebrow { color: #a6e39b; }

/* ---------------------------------------------------------------- Spendenaktion */

.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: var(--white); border-left: 6px solid var(--green-500); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.notice > div { flex: 1 1 420px; }
.notice h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.notice p { margin: 8px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- Fragen */

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.faq { display: flex; gap: 18px; background: var(--white); border-radius: var(--radius); border-bottom: 4px solid var(--green-800); padding: 24px 26px; }
.faq-num { font-size: 26px; font-weight: 800; color: var(--green-500); line-height: 1.1; min-width: 2ch; }
.faq h3 { font-size: 22px; margin-bottom: 8px; }
.faq p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- Jahresprogramm als Route */

.route { list-style: none; margin: 0; padding: 0; }
.route li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 0 20px; border-radius: var(--radius-sm); }
.route li::before { content: ""; position: absolute; left: 12px; top: 22px; bottom: -6px; width: 4px; background: repeating-linear-gradient(var(--green-800) 0 12px, var(--green-500) 12px 18px); }
.route li:last-child::before { display: none; }
.route .dot { width: 18px; height: 18px; margin: 8px 0 0 5px; border-radius: 50%; background: var(--white); border: 4px solid var(--green-800); position: relative; z-index: 1; }
.route .is-next .dot { width: 28px; height: 28px; margin: 3px 0 0; background: var(--green-500); border-color: var(--green-800); box-shadow: 0 0 0 5px var(--green-100); }
.route .is-past { opacity: .5; }
.route .is-camp .dot { border-radius: 4px; background: var(--green-800); }
.route .is-target { background: var(--green-100); box-shadow: 0 0 0 10px var(--green-100); }
.route-body { padding-bottom: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.route-date { font-weight: 700; color: var(--green-800); min-width: 170px; font-variant-numeric: tabular-nums; }
.route-title { font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; }
a.route-title:hover { text-decoration: underline; color: var(--ink); }
.is-next .route-title { font-size: 26px; font-weight: 800; }
.route-note { flex-basis: 100%; padding-left: 184px; color: var(--muted); font-size: 15px; }
.route-info { flex-basis: 100%; margin: 4px 0 0 184px; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; font-size: 16px; }
.route-info dt { font-weight: 700; }
.route-info dd { margin: 0; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-900); font-size: 14px; font-weight: 600; }
.tag-next { background: var(--green-500); color: var(--ink); }
.programme-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; }
.legend { display: grid; gap: 10px; margin-top: 28px; font-size: 16px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 12px; }
.legend i { width: 18px; height: 18px; border: 4px solid var(--green-800); border-radius: 50%; background: var(--white); flex: none; }
.legend i.camp { border-radius: 4px; background: var(--green-800); }
.legend i.next { background: var(--green-500); }
@media (max-width: 860px) { .programme-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .route-date { min-width: 0; width: 100%; }
  .route-note { padding-left: 0; }
  .route-info { margin-left: 0; }
}

/* ---------------------------------------------------------------- Kacheln */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.tile { border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.tile h2 { font-size: 32px; font-weight: 800; }
.tile p { margin: 0; }
.tile-dark { background: var(--green-800); color: var(--white); }
.tile-dark p { color: #dbeed5; }
.tile-light { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.tile-light p { color: var(--muted); }
.tile .btn { align-self: flex-start; margin-top: auto; }
.tile:hover { color: inherit; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.steps li { counter-increment: s; background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-500); font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- Hockzeiten */

.days { display: grid; gap: 34px; }
.day h2 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.badge-card { display: flex; align-items: center; gap: 16px; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 14px 18px; box-shadow: 4px 4px 0 var(--ink); }
.badge-year { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; border: 2px solid var(--ink); background: var(--green-500); color: var(--ink); }
.badge-card:nth-child(even) .badge-year { background: var(--green-800); color: var(--white); }
.badge-card strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.badge-card span { color: var(--muted); }
.badge-card .badge-year { color: var(--ink); }
.badge-card:nth-child(even) .badge-year { color: var(--white); }
a.badge-card { color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.badge-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
/* Seite einer Hockgruppe: Bild + Text, Lieblingsaktivität hervorgehoben, Leiter */
.hg-oben { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 760px) { .hg-oben { grid-template-columns: 1fr; gap: 20px; } }
.hg-bild { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--green-100); }
.hg-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-bild-leer { height: 100%; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-weight: 600; }
.hg-text h2 { font-size: 28px; margin: 0 0 10px; }
.hg-text p { margin: 0; font-size: 19px; }
.hg-lieblings { margin: 36px 0 18px; padding: 28px 30px; border-radius: var(--radius); background: var(--green-800); color: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.hg-lieblings .eyebrow { color: #a6e39b; }
.hg-lieblings h2 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 8px; color: var(--white); }
.hg-lieblings p { margin: 0; font-size: 18px; color: #dbeed5; max-width: 60ch; }
.hg-platzhalter { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px 24px; }
.hg-platzhalter h2 { font-size: 22px; margin: 0 0 8px; }
.hg-platzhalter p { margin: 0; color: var(--muted); }
.hg-andere { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------------------------------------------------------------- Texte */

.prose { font-size: 19px; }
.prose h2 { font-size: 30px; font-weight: 800; margin: 1.6em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }

.facts { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; border-top: 2px solid var(--ink); margin: 0 0 32px; }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid #8a9688; }
.facts dt { font-weight: 700; padding-right: 16px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* Eigene Seite pro Anlass (z.B. 26-27/jungwacht-games/) */
.anlass-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px 56px; align-items: start; }
.flyer { margin: 0; }
.flyer img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.flyer figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .anlass-layout { grid-template-columns: 1fr; } .flyer { max-width: 480px; } }
a.route-title { text-decoration: underline; text-decoration-color: var(--green-500); text-decoration-thickness: 2px; }

.camp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-bottom: 40px; }
.camp-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 6px solid var(--green-800); }
.camp-card h2 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.camp-card p { margin: 0; color: var(--muted); }
.camp-card .big { display: block; font-size: 22px; font-weight: 700; color: var(--green-800); margin-bottom: 8px; }

/* ---------------------------------------------------------------- Formulare */

.form { display: grid; gap: 24px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px 28px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid #6b7869; border-radius: 0; padding: 10px 2px; min-height: 48px; }
.field textarea { border: 1.5px solid #6b7869; border-radius: var(--radius-sm); padding: 12px; min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-800); box-shadow: 0 2px 0 0 var(--green-800); }
.field textarea:focus { box-shadow: 0 0 0 2px var(--green-800); }
.field .hint { font-size: 15px; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-msg { color: #a3221a; font-weight: 600; margin: 0; }
.form-msg:empty { display: none; }
.form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.aside { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.aside h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.aside p:last-child { margin-bottom: 0; }
.contact-line { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.contact-line svg { width: 22px; height: 22px; flex: none; }

/* ---------------------------------------------------------------- Shop */

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.product { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-media { aspect-ratio: 16 / 9; background: var(--green-100); display: grid; place-items: center; color: var(--green-400); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 22px; display: grid; gap: 14px; }
.product-body p { margin: 0; }
.product-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.product-head h2 { font-size: 28px; font-weight: 800; }
.price { font-weight: 800; font-size: 20px; background: var(--green-500); padding: 2px 12px; border-radius: 999px; }
.order-summary { font-weight: 700; font-size: 20px; }
.order-box { margin-top: 28px; }

/* ---------------------------------------------------------------- Fusszeile */

/* Das Bild ist unten nicht ganz deckend (Alpha 254), darum zweimal übereinander: dann passt die Farbe genau zur Fusszeile */
.footer-scene { height: clamp(96px, 19.2vw, 384px); margin-top: 24px; background: url("../assets/img/fusszeile-landschaft.png") no-repeat 30% bottom / cover, url("../assets/img/fusszeile-landschaft.png") no-repeat 30% bottom / cover; }
@media (min-width: 2000px) { .footer-scene { background-size: 100% auto, 100% auto; } }
.site-footer { background: var(--green-950); color: #cfe2c9; padding: 8px 0 40px; margin-top: -1px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.site-footer h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: #a6e39b; margin-bottom: 12px; font-weight: 700; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: #a9c2a3; }
.nowrap { white-space: nowrap; }
.empty-state { padding: 28px; background: var(--white); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- Fotos */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease; }
.card:hover { color: var(--ink); transform: translateY(-3px); }
.card-media { aspect-ratio: 3 / 2; background: var(--green-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.card-meta { font-size: 14px; font-weight: 700; color: var(--green-800); }
.card-title { font-size: 22px; font-weight: 700; line-height: 1.2; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 8px; }
.gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--green-100); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
/* Ordner innerhalb eines Albums (z.B. Tag 1, Tag 2) */
.ordner-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; position: sticky; top: 0; z-index: 5; padding: 10px 0; background: var(--paper); }
.ordner-nav .btn { padding: 8px 16px; font-size: 15px; }
.ordner-zahl { font-weight: 500; opacity: .7; }
.ordner-titel { font-size: 24px; margin: 28px 0 12px; scroll-margin-top: 80px; }
.ordner-titel .muted { font-size: 16px; font-weight: 500; }
.ordner-box { margin: 24px 0 0; }
.ordner-box h2 { font-size: 22px; margin: 0 0 6px; }
.ordner-liste { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ordner-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ordner-box input:not([type=hidden]) { font: inherit; font-size: 16px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); }
.ordner-box .inline-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ordner-liste input[name=name] { width: 14em; }
html[data-theme="dark"] .ordner-box input:not([type=hidden]) { background: #0a2107; border-color: #6f9a66; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 15, 4, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 82vh; object-fit: contain; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.4); color: var(--white); font: inherit; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 20px; color: #dbeed5; font-size: 15px; }
.lightbox .lb-download { position: absolute; bottom: 16px; right: 20px; color: var(--white); font-size: 15px; }

.login-box { max-width: 520px; margin: 0 auto; display: grid; gap: 18px; }
.login-box h2 { margin: 0; }
.album-nav { margin: 0 0 24px; font-weight: 600; }
.inline-form { display: inline; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--green-800); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike.danger, .danger { color: #a3221a; }
.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 18px; font-weight: 600; }
.flash-success { background: var(--green-100); color: var(--green-900); }
.flash-error { background: #fbeceb; color: #a3221a; }
.field.has-error input { border-color: #a3221a; }
.field .error { color: #a3221a; font-size: 15px; font-weight: 600; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 22px; align-items: start; }
.admin-h { font-size: 28px; font-weight: 800; margin: 48px 0 16px; }
.drop { display: block; position: relative; border: 2px dashed #8a9688; border-radius: var(--radius); padding: 28px 20px; text-align: center; background: var(--paper); cursor: pointer; }
.drop:hover, .drop:focus-within { border-color: var(--green-800); background: var(--green-100); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.progress { height: 10px; border-radius: 999px; background: var(--green-100); overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--green-500); transition: width .2s ease; }
.progress-text { margin: 0; font-weight: 600; }
.progress-text:empty { display: none; }
.photo-admin { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: 14px; }
.photo-admin li { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.photo-admin li.is-cover { outline: 3px solid var(--green-500); }
.photo-admin img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 10px 12px; font-size: 15px; }
/* position: relative hält unsichtbare Beschriftungen (.visually-hidden) im Scrollbereich, sonst wird die Seite auf dem Handy breiter */
.table-wrap { position: relative; overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table th { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.danger-zone { margin-top: 48px; padding-top: 24px; border-top: 1.5px dashed #8a9688; }
.btn-danger { background: #a3221a; color: var(--white); }
.btn-danger:hover { background: #861b15; color: var(--white); }
.btn:disabled { opacity: .6; cursor: wait; }

/* Spam-Schutz im Kontaktformular: für Menschen unsichtbar */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 64px 0; }
  .faq { padding: 20px; gap: 14px; }
  .tile { padding: 26px; }
}

/* Downloads */
.doc-group + .doc-group { margin-top: 40px; }
.doc-group h2 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 18px; background: var(--white); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.doc:hover { color: var(--ink); background: var(--green-100); }
.doc-type { flex: 0 0 auto; min-width: 54px; padding: 8px 6px; border-radius: 8px; background: var(--green-800); color: var(--white); font-size: 13px; font-weight: 800; text-align: center; letter-spacing: .04em; }
.doc-text { display: flex; flex-direction: column; gap: 2px; }
.doc-text strong { font-size: 19px; }
.doc-text span { color: var(--muted); font-size: 16px; }

/* Unterstützer: Namensnennung */
.danke + .danke { margin-top: 36px; }
.danke h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.name-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.name-list li { background: var(--white); border-radius: 999px; padding: 8px 18px; box-shadow: var(--shadow); font-weight: 600; }

/* Packliste (lager.html#packliste) */
.packliste-titel { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 6px 0 10px; }
.packliste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; margin-top: 22px; }
.packliste > section { background: var(--white); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.packliste h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.packliste h3 + ul { margin-bottom: 14px; }
.packliste ul { margin: 0; padding-left: 20px; }
.packliste li { margin: 3px 0; }
@media print {
  .site-header, .site-footer, .footer-scene, .page-head, .section, .notice { display: none !important; }
  .packliste > section { box-shadow: none; border: 1px solid #999; }
}
/* Leiterbereich: Ämter */
.aemter-wahl summary { cursor: pointer; color: var(--green-800); }
.aemter-wahl form { display: grid; gap: 6px; padding: 8px 0 0; }
.aemter-wahl label { display: flex; gap: 8px; align-items: center; font-size: 16px; }
.aemter-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aemter-liste input { font: inherit; border: 0; border-bottom: 1.5px solid #6b7869; padding: 4px 2px; width: 12em; background: transparent; }

/* Jahresprogramm: Link zu den Fotos eines Anlasses */
.route-photos { display: inline-block; margin-top: 6px; font-size: 16px; font-weight: 600; }

/* Startbild: Foto im Kopf der Startseite (im Leiterbereich wählbar) */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,35,10,.62) 0%, rgba(12,35,10,.55) 45%, rgba(12,35,10,.82) 100%); }
.hero-has-photo h1, .hero-has-photo .hero-sub, .hero-has-photo .eyebrow { text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero-has-photo .hero-motif { display: none; }

/* Leiterbereich: Inhalte */
.inhalt-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; margin: 0 0 8px; }
.inhalt-liste { display: grid; gap: 14px; margin: 0 0 22px; }
.inhalt-liste > form, .inhalt-liste > div { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; display: grid; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.inhalt-liste .row { gap: 12px 18px; }
.inhalt-liste .field input, .inhalt-liste .field select, .inhalt-liste .field textarea { min-height: 40px; padding: 6px 2px; }
.inhalt-aktionen { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.startbild-vorschau { width: 100%; max-width: 420px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.konto-bearbeiten form { gap: 8px; padding-top: 10px; }
.konto-bearbeiten label { display: grid; gap: 2px; font-size: 15px; }
.konto-bearbeiten input { font: inherit; border: 0; border-bottom: 1.5px solid #6b7869; padding: 4px 2px; background: transparent; min-width: 14em; }
/* Leiterbereich: Fotos verschieben, Alben suchen */
.verschieben-box { position: sticky; top: 8px; z-index: 5; display: grid; gap: 10px; margin: 0 0 18px; }
.verschieben-box select, .danger-zone select { font: inherit; padding: 6px 4px; max-width: 100%; }
/* Zeilen im Raster dürfen schmaler werden als das breiteste Auswahlfeld (lange Albumnamen auf dem Handy) */
.verschieben-box > * { min-width: 0; }
.photo-admin li { position: relative; }
.foto-wahl { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(255,255,255,.9); border-radius: 8px; padding: 4px 6px; line-height: 0; }
.foto-wahl input { width: 20px; height: 20px; }
.alben-suche { max-width: 460px; margin: 0 0 14px; }

/* Aktuell und Lagerdraht */
[hidden] { display: none !important; }
.bericht-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.bericht-filter a { padding: 8px 16px; border-radius: 999px; background: var(--white); color: var(--green-800); text-decoration: none; font-weight: 700; box-shadow: var(--shadow); }
.bericht-filter a[aria-current="page"] { background: var(--green-800); color: var(--white); }
.bericht-ohne-bild { border-top: 5px solid var(--green-500); }
.bericht-anriss { color: var(--muted); font-size: 16px; line-height: 1.45; margin-top: 4px; }
.bericht { max-width: 760px; margin: 0 auto; }
.bericht-bild { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px; }
.bericht-titel { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; margin: 0 0 16px; }
.bericht-autor { margin-top: 22px; }
.bericht-fotos { margin-top: 28px; }
.bericht-zurueck { max-width: 760px; margin: 28px auto 0; }
.bericht-jahr { margin: 0 0 16px; }
.bericht-jahr summary { display: flex; align-items: baseline; gap: 14px; padding: 14px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; list-style: none; }
.bericht-jahr summary::-webkit-details-marker { display: none; }
.bericht-jahr summary::before { content: "▸"; color: var(--green-800); transition: transform .15s ease; }
.bericht-jahr[open] summary::before { transform: rotate(90deg); }
.bericht-jahr[open] summary { margin-bottom: 18px; }
.bericht-jahr-titel { font-size: 26px; font-weight: 800; }

/* Leiterbereich: Übersicht nach der Anmeldung */
.cockpit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; margin: 0 0 18px; }
.cockpit-box p { margin: 0 0 6px; }
.cockpit-gross { font-size: 24px; font-weight: 800; line-height: 1.2; }
.cockpit-knoepfe { margin: 0 0 28px; }
.mail-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 18px; }
.mail-box > div { flex: 1 1 320px; }
.mail-box .muted { font-size: 15px; margin: 0; }
.programm-filter { margin: 0 0 8px; }
.programm-monat { font-size: 22px; margin: 32px 0 12px; }
.programm-eintrag { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; margin: 0 0 12px; padding: 18px 20px; border-left: 4px solid transparent; }
.programm-mein { border-left-color: var(--green-500); }
.programm-datum { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; line-height: 1.2; font-size: 14px; color: var(--muted); }
.programm-datum strong { font-size: 22px; color: var(--ink); }
.programm-inhalt h3 { font-size: 20px; margin: 0 0 6px; }
.programm-inhalt h3 .tag { vertical-align: middle; font-size: 12px; }
.programm-inhalt p { margin: 0 0 4px; font-size: 16px; }
.programm-infos { display: flex; flex-wrap: wrap; gap: 2px 18px; color: var(--muted); }
.programm-notiz { background: var(--green-100); border-radius: var(--radius-sm); padding: 6px 10px; margin-top: 6px !important; }
.programm-links { font-size: 15px !important; margin-top: 6px !important; }
.programm-bald { font-size: 14px; font-weight: 600; white-space: nowrap; }
.tag-leitung { background: #1c241a; color: #fff; }
.programm-vorbei { margin-top: 36px; }
.programm-vorbei > summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.programm-vorbei .programm-eintrag { opacity: .7; }
@media (max-width: 520px) { .programm-eintrag { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 14px; } .programm-datum strong { font-size: 18px; } }
html[data-theme="dark"] .tag-leitung { background: #ffffff; color: #0a2107; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.field .check input, .check input { width: 20px; height: 20px; min-height: 0; padding: 0; }
.verantwortlich-wahl { border: 0; padding: 0; margin: 0; flex-flow: row wrap; gap: 6px 20px; }
.verantwortlich-wahl legend { font-weight: 600; width: 100%; padding: 0; margin-bottom: 4px; }
.verantwortlich-wahl .hint { width: 100%; }
/* Startseite (aufgeräumt) */
.section-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head-row a { font-weight: 700; text-decoration: none; }
.tile-neu { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.tile-neu > div { flex: 1 1 420px; display: grid; gap: 8px; }
.tile-neu .btn { align-self: center; margin-top: 0; }
.signposts ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
[data-hinweise]:not(:empty) { padding-top: 40px; display: grid; gap: 16px; }
[data-hinweise] > .section-tight { padding: 0; }
[data-hinweise] + .section { padding-top: 56px; }
.notice-hinweis { background: var(--green-800); color: var(--white); border-left: 0; padding: 32px 36px; box-shadow: 6px 6px 0 var(--ink); }
.notice-hinweis h2 { color: var(--white); margin-top: 10px; }
.notice-hinweis p { color: #dbeed5; font-size: 18px; }
.notice-hinweis .btn { font-size: 18px; padding: 16px 28px; }
.hinweis-etikett { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #a6e39b; color: var(--green-950); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Texte im Leiterbereich bearbeitbar (Textformat) */
.prose .knopf-zeile { margin-top: 32px; }
.prose .lead { margin-bottom: 1.5em; }
/* Leiterbereich: Texte der Seiten */
.seiten-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.seiten-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.seiten-hilfe { position: sticky; top: 12px; }
@media (max-width: 900px) { .seiten-layout { grid-template-columns: 1fr; } .seiten-hilfe { position: static; order: -1; } }
.seiten-form { display: grid; gap: 18px; }
.seiten-bereich { border: 0; margin: 0; display: grid; gap: 14px; }
.seiten-bereich legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--green-800); }
.seiten-bereich textarea.textformat { width: 100%; font: 16px/1.55 ui-monospace, Consolas, monospace; border: 1.5px solid #6b7869; border-radius: var(--radius-sm); padding: 12px; background: #fff; resize: vertical; }
.listen-eintrag { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid #e3e8e1; }
.listen-eintrag > div { display: grid; gap: 8px; }
.listen-nr { font-weight: 800; color: var(--green-500); font-size: 18px; padding-top: 30px; }
.listen-neu { opacity: .75; }
.seiten-speichern { position: sticky; bottom: 0; background: var(--bg, #f4f7f2); padding: 12px 0; z-index: 3; }
.hilfe-tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.hilfe-tabelle td { padding: 5px 4px; border-top: 1px solid #e3e8e1; vertical-align: top; }
.hilfe-tabelle code, .seiten-hilfe code, .seiten-bereich code { font-size: 14px; background: #eef3ec; padding: 1px 4px; border-radius: 4px; }
.versionen { list-style: none; padding: 0; margin: 0; font-size: 15px; display: grid; gap: 6px; }
/* Leiterbereich: einklappbare Bereiche (Albenliste) */
.klappe > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; margin-top: 48px; }
.klappe > summary::-webkit-details-marker { display: none; }
.klappe > summary::before { content: "▸"; color: var(--green-800); font-size: 22px; transition: transform .15s ease; }
.klappe[open] > summary::before { transform: rotate(90deg); }
.klappe > summary .admin-h { margin: 0; }
.klappe[open] > summary { margin-bottom: 16px; }
.klappe-zahl { font-size: 16px; font-weight: 700; color: var(--muted); background: #e9efe6; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.klappe-hinweis { margin-left: auto; font-size: 15px; color: var(--green-800); text-decoration: underline; }
.klappe + .klappe > summary { margin-top: 20px; }

/* Darstellung umschalten (Leiter- und Elternbereich, fotos/thema.js) */
.thema-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.thema-wahl button { font: inherit; font-size: 14px; font-weight: 600; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; cursor: pointer; }
.thema-wahl button[aria-pressed="true"] { background: #fff; color: var(--green-900); }

/* Dunkler Modus: nur auf Seiten, die thema.js laden (data-theme="dark") */
html[data-theme="dark"] { color-scheme: dark; --paper: #0a2107; --ink: #ffffff; --muted: #c4d9bf; --line: #2f5a27; --green-100: #1d4a16; --shadow: 0 1px 2px rgba(0,0,0,.45), 0 6px 18px rgba(0,0,0,.35); }
html[data-theme="dark"] :is(.aside, .empty-state, .photo-admin li, .table-wrap, .card, .notice, .doc, .bericht-filter a, .bericht-jahr summary, .skip, .inhalt-liste > form, .inhalt-liste > div) { background: #143f0f; color: var(--ink); }
html[data-theme="dark"] a, html[data-theme="dark"] .linklike, html[data-theme="dark"] .aemter-wahl summary, html[data-theme="dark"] .klappe-hinweis, html[data-theme="dark"] .klappe > summary::before, html[data-theme="dark"] .eyebrow { color: #a6e39b; }
html[data-theme="dark"] a:hover { color: #ffffff; }
html[data-theme="dark"] .site-header a, html[data-theme="dark"] .site-footer a { color: #fff; }
html[data-theme="dark"] .page-head .eyebrow { color: #a6e39b; }
html[data-theme="dark"] .btn-outline { color: #ffffff; border-color: #a6e39b; }
html[data-theme="dark"] .btn-outline:hover { background: #1f6617; }
html[data-theme="dark"] .btn-dark { background: #37a62b; color: #fff; }
html[data-theme="dark"] .btn-dark:hover { background: #4fbd42; color: #fff; }
html[data-theme="dark"] .tag { background: #1f6617; color: #ffffff; }
html[data-theme="dark"] .tag-next { background: #37a62b; color: #0d2a09; }
html[data-theme="dark"] .flash-success { background: #1f6617; color: #ffffff; }
html[data-theme="dark"] .flash-error { background: #3a1714; color: #f4b3ac; }
html[data-theme="dark"] .danger, html[data-theme="dark"] .linklike.danger, html[data-theme="dark"] .field .error { color: #f08a80; }
html[data-theme="dark"] :is(.field input, .field select, .field textarea, .aemter-liste input, .konto-bearbeiten input) { border-color: #6f9a66; }
html[data-theme="dark"] :is(select, .verschieben-box select, .danger-zone select) { background: #0a2107; color: var(--ink); }
html[data-theme="dark"] .seiten-bereich textarea.textformat { background: #0a2107; color: var(--ink); border-color: #6f9a66; }
html[data-theme="dark"] :is(.hilfe-tabelle code, .seiten-hilfe code, .seiten-bereich code), html[data-theme="dark"] .klappe-zahl { background: #1d4a16; color: #fff; }
html[data-theme="dark"] .drop { background: #0a2107; border-color: #6f9a66; }
/* Leiter hinzufügen / bearbeiten (fotos/konto.php): Auswahl als Kacheln */
.konto-formular h2 { font-size: 22px; margin: 18px 0 0; }
.konto-formular h2:first-of-type { margin-top: 0; }
.wahl-gruppe { border: 0; padding: 0; margin: 0; }
.wahl-gruppe legend { font-weight: 600; margin-bottom: 6px; }
.wahl-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 8px; }
.wahl-liste-breit { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.wahl-liste label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: 16px; line-height: 1.35; }
.wahl-liste label:has(input:checked) { border-color: var(--green-500); background: var(--green-100); }
.wahl-liste input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--green-800); }
.wahl-liste .muted { font-size: 14px; }
.startpasswort summary { cursor: pointer; color: var(--muted); font-size: 16px; }