/* Veranstaltungen (04.12.2026) -- templates/veranstaltungen*.html, admin_veranstaltungen.html.
   Farben und Schriften wie Startseite und /fuer-ausbildungsbetriebe, Praefix v- gegen Namenskonflikte.
   Fusszeile: dieselben Regeln wie betriebe.css (templates/_oeffentlich_fuss.html). */
:root {
  --bg: #F6F4F0; --card: #FFFFFF; --nav: #1A1610; --alt: #EFEBE4;
  --amber: #B8742A; --amber-l: #D4924A; --amber-text: #8E5A1F; --amber-btn: #A0621F;
  --amber-bg: rgba(184,116,42,.08); --amber-bdr: rgba(184,116,42,.28);
  --gruen: #2F6B3F; --gruen-bg: rgba(47,107,63,.10); --gruen-bdr: rgba(47,107,63,.30);
  --text: #1C1710; --text-2: #5A5040; --text-3: #7A6F60; --border: #E0DAD0;
  --rot: #A3261E; --rot-bg: rgba(163,38,30,.07);
  --ui: 'Outfit', system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(28,23,16,.08), 0 1px 4px rgba(28,23,16,.05);
}
html[data-theme="dark"] {
  --bg: #0f1115; --card: #171a21; --nav: #0b0e14; --alt: #13161c;
  --text: #eef2f7; --text-2: #aeb7c4; --text-3: #8f99a6; --border: rgba(255,255,255,.12);
  --amber-text: #E0A35E; --amber-bg: rgba(212,146,74,.12); --amber-bdr: rgba(212,146,74,.32);
  --gruen: #86d19b; --gruen-bg: rgba(134,209,155,.12); --gruen-bdr: rgba(134,209,155,.35);
  --rot: #fca5a5; --rot-bg: rgba(252,165,165,.10);
  --shadow: 0 2px 14px rgba(0,0,0,.55);
}
@font-face { font-family: 'Twemoji Country Flags'; unicode-range: U+1F1E6-1F1FF;
  src: url('/static/fonts/TwemojiCountryFlags.woff2') format('woff2'); font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ui); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--amber-text); }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; line-height: 1.25; }
[id] { scroll-margin-top: 72px; }
:focus-visible { outline: 3px solid var(--amber-l); outline-offset: 2px; border-radius: 4px; }
.v-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; color: #1C1710; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.v-skip:focus { left: 12px; }

/* ── Kopfzeile ── */
.v-nav { position: sticky; top: 0; z-index: 100; height: 58px; padding: 0 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; background: rgba(26,22,16,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08); }
.v-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.v-logo-mark { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; color: #fff;
  background: linear-gradient(145deg, #cc8830, #a04020); display: flex; align-items: center; justify-content: center; }
.v-logo-name { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.v-nav-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v-nav-link { color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 8px; border-radius: 7px; white-space: nowrap; }
.v-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.v-lang { font-family: 'Twemoji Country Flags', var(--ui); background: rgba(255,255,255,.08); color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 5px 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.v-lang option { color: #1c1710; background: #fff; }
.v-nav-login { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: 8px;
  border: 1.5px solid rgba(184,116,42,.55); color: #E0A35E; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.v-nav-login:hover { background: rgba(184,116,42,.14); }

/* ── Allgemein ── */
.v-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.v-schmal { max-width: 760px; }
.v-seite { padding-top: 34px; padding-bottom: 64px; }
.v-sec { padding: 64px 0; }
.v-sec-alt { background: var(--alt); }
.v-label { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--amber-text); margin-bottom: 8px; }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 14px; }
.v-h1-klein { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.v-h3 { font-size: 20px; font-weight: 700; margin: 34px 0 12px; }
.v-lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--text-2); max-width: 40em; }
.v-sub { font-size: 17px; color: var(--text-2); max-width: 46em; margin-bottom: 18px; }
.v-klein { font-size: 13.5px; color: var(--text-3); margin-top: 14px; }
.v-klein-h { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.v-mehr { margin-top: 26px; color: var(--text-2); font-size: 15.5px; }
.v-link { font-weight: 600; text-decoration: none; }
.v-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.v-zurueck { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.v-zurueck:hover { color: var(--amber-text); }

.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 22px;
  border-radius: 10px; font-family: var(--ui); font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; background: var(--amber-btn); color: #fff; box-shadow: 0 6px 18px rgba(160,98,31,.28);
  transition: transform .15s, box-shadow .15s; }
.v-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(160,98,31,.36); }
.v-btn:disabled { opacity: .6; cursor: default; transform: none; }
.v-btn-hell { background: var(--card); color: var(--text); border-color: var(--border); box-shadow: none; }
.v-btn-gross { min-height: 54px; padding: 14px 30px; font-size: 17px; margin-top: 20px; }

/* ── Kopfbereich ── */
.v-hero { padding: 56px 0 48px; background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.v-sprung { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ── Termin vor Ort ── */
.v-termin { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; background: var(--card); border: 1px solid var(--border);
  border-left: 5px solid var(--amber); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); margin-top: 18px; }
.v-termin-vorbei { border-left-color: var(--text-3); opacity: .92; }
.v-datum { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--nav); color: #fff;
  border-radius: 12px; padding: 10px 6px; height: fit-content; text-align: center; }
.v-datum-tag { font-size: 32px; font-weight: 800; line-height: 1; }
.v-datum-monat { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #E5A35A; margin-top: 4px; }
.v-datum-jahr { font-size: 12.5px; color: rgba(255,255,255,.7); }
.v-termin-zeit { font-size: 14.5px; font-weight: 700; color: var(--amber-text); }
.v-termin h3 { font-size: 21px; margin: 4px 0 2px; }
.v-termin-ort { color: var(--text-2); font-size: 15px; margin-bottom: 8px; }
.v-termin-text p { margin-bottom: 8px; }

/* ── Kurse ── */
.v-punkte { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 6px 0 8px; }
.v-punkte li { font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--card); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 14px; }
.v-punkte li::before { content: "✓ "; color: var(--gruen); font-weight: 800; }
.v-gruppe { font-size: 20px; font-weight: 700; margin: 38px 0 14px; }
.v-kurse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.v-kurs { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 18px 16px; box-shadow: var(--shadow); min-width: 0; }
.v-kurs-garantie { border: 2px solid var(--gruen); }
.v-kurs-zu { opacity: .78; }
.v-kurs-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.v-kennung { font-size: 13px; font-weight: 800; letter-spacing: .5px; color: #fff; background: var(--nav); border-radius: 7px; padding: 3px 9px; }
html[data-theme="dark"] .v-kennung { background: #2a2f3a; }
.v-abz { font-size: 12.5px; font-weight: 700; border-radius: 100px; padding: 3px 10px; color: var(--amber-text);
  background: var(--amber-bg); border: 1px solid var(--amber-bdr); white-space: nowrap; }
.v-abz-ok { color: var(--gruen); background: var(--gruen-bg); border-color: var(--gruen-bdr); }
.v-abz-garantie { color: #fff; background: var(--gruen); border-color: var(--gruen); }
html[data-theme="dark"] .v-abz-garantie { color: #0b0e14; }
.v-abz-ok::before, .v-abz-garantie::before { content: "✓ "; }
.v-kurs-titel { font-size: 18.5px; font-weight: 700; margin-bottom: 2px; }
.v-kurs-zusatz { font-size: 14px; color: var(--text-2); }
.v-kurs-beruf { font-size: 13.5px; color: var(--text-3); margin-top: 2px; }
.v-termine { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 8px; }
.v-termine li { font-size: 13px; font-weight: 600; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 2px 8px; white-space: nowrap; }
.v-termine li.v-gp { border-color: var(--amber-bdr); background: var(--amber-bg); }
.v-termine em { font-style: normal; font-weight: 700; color: var(--amber-text); }
.v-kurs-zeit { font-size: 13.5px; color: var(--text-2); }
.v-kurs-pruefung { font-size: 13.5px; color: var(--text-2); margin-top: 4px; font-weight: 600; }
.v-kurs-fuss { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }
.v-kurs-preis { display: flex; flex-direction: column; gap: 2px; }
.v-preis { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.v-platz { font-size: 13px; font-weight: 600; color: var(--gruen); }
.v-platz-knapp { color: var(--amber-text); }
.v-platz-voll, .v-platz-zu { color: var(--text-3); }

/* ── Ablauf ── */
.v-schritte { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.v-schritte li { counter-increment: s; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 20px 18px 66px; position: relative; }
.v-schritte li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--amber-btn); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.v-schritte strong { display: block; font-size: 16px; margin-bottom: 4px; }
.v-schritte span { color: var(--text-2); font-size: 14.5px; }
.v-wissen { margin: 0 0 0 20px; color: var(--text-2); }
.v-wissen li { margin-bottom: 8px; }

/* ── Kasten, Meldungen ── */
.v-kasten { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); margin: 18px 0; }
.v-meldung { background: var(--card); border: 1px solid var(--border); border-left: 5px solid var(--amber); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.v-meldung ul { margin: 6px 0 0 18px; }
.v-meldung-fehler { border-left-color: var(--rot); background: var(--rot-bg); }
.v-meldung-ok { border-left-color: var(--gruen); }
.v-mail { font-weight: 700; margin-top: 4px; }
.v-warn { color: var(--rot); font-weight: 700; font-size: 13px; }
.v-rabatt { font-weight: 700; color: var(--gruen); margin-top: 6px; }
.v-rabatt-klein { font-size: 12.5px; color: var(--gruen); font-weight: 600; }

/* ── Formular ── */
.v-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.v-feldgruppe { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px 18px; background: var(--card); display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.v-feldgruppe legend { font-weight: 800; font-size: 16px; padding: 0 6px; }
.v-form label, .v-label-feld { font-size: 14px; font-weight: 600; color: var(--text-2); margin-top: 8px; }
.v-form input[type="text"], .v-form input[type="email"], .v-form textarea, .v-form select {
  width: 100%; font-family: var(--ui); font-size: 16px; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 9px; padding: 11px 13px; }
.v-form textarea { resize: vertical; min-height: 84px; }
.v-form input:focus, .v-form textarea:focus, .v-form select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.v-form [aria-invalid="true"] { border-color: var(--rot); }
.v-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.v-reihe > div { display: flex; flex-direction: column; gap: 6px; }
.v-reihe-frei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* Firma/Privat ohne Skript: der Haken #v-firma schaltet die Geschwister dahinter */
.v-schalter { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v-schalter-text { display: block; margin-top: 16px !important; background: var(--card); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 14px 16px 14px 52px; position: relative; cursor: pointer; color: var(--text) !important; }
.v-schalter-text::before { content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--text-3); background: var(--bg); }
.v-schalter-text span { display: block; font-weight: 500; color: var(--text-2); font-size: 13.5px; }
.v-schalter:checked + .v-schalter-text { border-color: var(--amber); background: var(--amber-bg); }
.v-schalter:checked + .v-schalter-text::before { background: var(--amber-btn); border-color: var(--amber-btn); }
.v-schalter:checked + .v-schalter-text::after { content: "✓"; position: absolute; left: 21px; top: 13px; color: #fff; font-weight: 800; }
.v-schalter:focus-visible + .v-schalter-text { outline: 3px solid var(--amber-l); outline-offset: 2px; }
.v-nur-firma { display: none; }
.v-schalter:checked ~ .v-nur-firma { display: flex; }
.v-schalter:checked ~ .v-nur-privat { display: none; }
.v-hinweis { font-size: 14px; color: var(--text-2); background: var(--amber-bg); border: 1px solid var(--amber-bdr); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.v-falle { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v-preiszeile { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 18px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.v-preiszeile strong { font-size: 24px; font-weight: 800; }
.v-preiszeile small { color: var(--text-3); font-size: 13px; }
.v-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 12px; }
.v-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber-btn); }
.v-check label { margin-top: 0 !important; font-weight: 500 !important; color: var(--text) !important; font-size: 14.5px !important; }

/* ── Rechtstext ── */
.v-sprachhinweis { background: var(--amber-bg); border: 1px solid var(--amber-bdr); border-radius: 10px; padding: 10px 14px; margin: 14px 0; font-weight: 600; }
html[lang="de"] .v-sprachhinweis { display: none; }
.v-recht h1 { font-size: clamp(24px, 3.2vw, 32px); margin-top: 10px; }
.v-recht h2 { font-size: 19px; letter-spacing: 0; margin: 28px 0 8px; }
.v-recht h3 { font-size: 16.5px; margin: 18px 0 6px; }
.v-recht h4 { font-size: 15px; margin: 14px 0 4px; }
.v-recht p, .v-recht li { font-size: 15px; color: var(--text-2); margin-bottom: 8px; }
.v-recht ul { margin: 0 0 10px 22px; }
.v-belehrung, .v-formular { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 6px 18px 10px; margin: 10px 0; }
.v-linie { letter-spacing: 1px; overflow: hidden; white-space: nowrap; color: var(--text-3) !important; }

/* ── Admin ── */
.v-admin .v-wrap { max-width: 1400px; }
.v-tabelle-rahmen { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.v-tabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.v-tabelle th { text-align: left; background: var(--alt); padding: 8px 10px; white-space: nowrap; }
.v-tabelle td { padding: 8px 10px; border-top: 1px solid var(--border); vertical-align: top; }
.v-aktionen form { display: inline-block; margin: 0 4px 4px 0; }
.v-aktionen button { font-family: var(--ui); font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; }
.v-aktionen button:disabled { opacity: .5; cursor: not-allowed; }

/* ── Fusszeile (wie betriebe.css) ── */
footer { background: var(--nav); border-top: 1px solid rgba(255,255,255,.06); padding: 24px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
footer a { color: rgba(255,255,255,.55); font-size: 12.5px; text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
footer a:hover { color: var(--amber-l); }
footer span { color: rgba(255,255,255,.3); font-size: 12px; }
footer .ea-ve { color: rgba(255,255,255,.55); font-size: 12.5px; }

/* ── Schmale Bildschirme ── */
@media (max-width: 960px) {
  .v-kurse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-schritte { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .v-nav { padding: 0 10px; gap: 6px; }
  .v-logo { gap: 8px; }
  .v-logo-mark { width: 32px; height: 32px; }
  .v-logo-name { font-size: 15.5px; }
  .v-nav-right { gap: 5px; }
  .v-nav-link { font-size: 13px; padding: 5px 4px; }
  .v-lang { padding: 4px 4px; font-size: 12px; }
  .v-nav-login { padding: 5px 9px; font-size: 12.5px; }
  .v-wrap { padding: 0 16px; }
  .v-sec { padding: 46px 0; }
  .v-hero { padding: 36px 0 34px; }
  .v-kurse, .v-reihe, .v-reihe-frei { grid-template-columns: minmax(0, 1fr); }
  .v-termin { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .v-datum { flex-direction: row; gap: 8px; width: fit-content; padding: 8px 14px; }
  .v-datum-tag { font-size: 22px; }
  .v-datum-monat { margin-top: 0; }
  .v-btn-gross { width: 100%; }
}
@media (max-width: 380px) {
  .v-logo-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .v-btn { transition: none; }
}
