:root {
  --red: #b3121f; --red-d: #8e0e18; --red-soft: #fbeaec;
  --bg: #f4f2ef; --card: #ffffff; --text: #1c1a19; --muted: #6d6863; --line: #e6e1dc;
  --ok: #1f8a5b; --ok-soft: #e4f4ec; --warn: #b7791f; --warn-soft: #fbf1e0; --err: #c0262d; --err-soft: #fbe9e9; --info: #1d6fb8; --info-soft: #e5f0fa;
  --radius: 16px; --shadow: 0 1px 2px rgba(28,26,25,.05), 0 4px 16px rgba(28,26,25,.05);
  --tabbar-h: 64px;
  color-scheme: light dark;
}
/* Darstellung: automatisch (System), hell oder dunkel – gewählt im Profil (data-theme am <html>) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) {
    --bg: #141312; --card: #1f1d1c; --text: #f1eeeb; --muted: #a29c96; --line: #34302d;
    --red: #e0414c; --red-d: #c42f3a; --red-soft: #3a1c1f;
    --ok: #4cc28c; --ok-soft: #173326; --warn: #e3a94d; --warn-soft: #3a2c15; --err: #f06b70; --err-soft: #3b1b1c; --info: #6aaee8; --info-soft: #172a3c;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
  }
}
:root[data-theme="dunkel"] {
    --bg: #141312; --card: #1f1d1c; --text: #f1eeeb; --muted: #a29c96; --line: #34302d;
    --red: #e0414c; --red-d: #c42f3a; --red-soft: #3a1c1f;
    --ok: #4cc28c; --ok-soft: #173326; --warn: #e3a94d; --warn-soft: #3a2c15; --err: #f06b70; --err-soft: #3b1b1c; --info: #6aaee8; --info-soft: #172a3c;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
  color-scheme: dark;
}
:root[data-theme="hell"] { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
body.bare { padding-bottom: 0; }
a { color: var(--red); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.ok-text { color: var(--ok); } .err-text { color: var(--err); } .warn-text { color: var(--warn); }
.ic { flex: none; vertical-align: middle; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--red); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: #fff; color: #b3121f; display: grid; place-items: center; flex: none; }
.brand-mark.big { width: 64px; height: 64px; border-radius: 18px; background: var(--red); color: #fff; margin: 0 auto 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1rem; }
.brand-text small { font-size: .75rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: none; margin-left: auto; gap: 4px; }
.topnav a { color: rgba(255,255,255,.85); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; }
.topnav a:hover, .topnav a.on { background: rgba(255,255,255,.16); color: #fff; }
.topbar .avatar { margin-left: auto; background: rgba(255,255,255,.2); color: #fff; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--red-soft); color: var(--red); flex: none; text-transform: uppercase; }
.avatar.sm { width: 34px; height: 34px; font-size: .78rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }

/* Tabbar (mobil) */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 8px; color: var(--muted); font-size: .7rem; font-weight: 500; }
.tabbar a.on { color: var(--red); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; color: var(--muted); font-size: .75rem; padding: 8px 16px 24px; }

/* Cards & Layout */
.card { display: block; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); color: inherit; margin-bottom: 12px; }
a.card { transition: transform .15s ease, box-shadow .15s ease; }
a.card:active { transform: scale(.985); }
.list .card { margin-bottom: 10px; }
.empty { color: var(--muted); text-align: center; padding: 24px 16px; }
.sec { font-size: 1.05rem; margin: 22px 0 10px; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-row .sec { margin-bottom: 10px; }
.sec-row a { font-size: .9rem; font-weight: 500; }
.page-head { margin: 4px 0 14px; }
.page-head.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-head p { margin: 0; }
.cols { display: grid; gap: 0 24px; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 500; margin: 0 0 12px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-align: center; }
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-d); border-color: var(--red-d); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 1.05rem; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--err); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row form { margin: 0; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); }

/* Forms */
.form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 14px; }
.form label small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], input[type=datetime-local], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; outline: none; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
textarea { resize: vertical; }
.form h3 { margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; }
.form h3:not(:first-of-type) { margin-top: 18px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.hp { position: absolute; left: -9999px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter input, .filter select { margin: 0; flex: 1 1 160px; padding: 10px 12px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.inline-form select, .inline-form input { margin: 0; flex: 1 1 140px; padding: 9px 12px; }
.copy-row { display: flex; gap: 8px; margin: 10px 0; }
.copy-row input { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--c); border-color: var(--c); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
.pre, pre.code { white-space: pre-wrap; background: var(--card); padding: 12px; border-radius: 12px; font-size: 12px; overflow: auto; }

/* Flash & Notices */
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 500; background: var(--ok-soft); color: var(--ok); }
.flash-err { background: var(--err-soft); color: var(--err); }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--info-soft); color: var(--info); margin-bottom: 10px; }
.notice span { flex: 1; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; vertical-align: middle; }
.badge-ok { background: var(--ok-soft); color: var(--ok); } .badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-err { background: var(--err-soft); color: var(--err); } .badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: var(--line); color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: .875rem; font-weight: 500; }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Auth */
.auth { max-width: 440px; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top)) 0 32px; }
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-head h1 { margin-bottom: 4px; }
.auth-head p { color: var(--muted); }
.big-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: var(--ok-soft); color: var(--ok); }

/* Dashboard */
.hero { background: linear-gradient(135deg, #b3121f, #7d0b14); color: #fff; border-radius: 20px; padding: 20px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 16px; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero h1 { margin: 0; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; color: #fff; display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; line-height: 1.1; }
.stat strong small { font-size: .9rem; opacity: .7; }
.stat span { font-size: .8rem; opacity: .85; }
.course-continue { display: flex; align-items: center; gap: 12px; border-left: 5px solid var(--c); }
.cc-body { flex: 1; min-width: 0; }
.cc-body h3 { margin: 2px 0 8px; }
.kat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c, var(--red)); }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.progress span { display: block; height: 100%; background: var(--c, var(--red)); border-radius: 999px; transition: width .4s; }
.progress-lg { height: 8px; margin-bottom: 12px; }
.termin-row { display: flex; gap: 14px; align-items: center; }
.termin-row.past { opacity: .55; }
.termin-row h3 { margin: 0 0 2px; font-size: 1rem; }
.termin-row p { margin: 0; }
.tr-body { min-width: 0; flex: 1; }
.datebox { width: 54px; flex: none; border-radius: 12px; text-align: center; padding: 6px 0; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); line-height: 1.1; }
.datebox span { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.datebox strong { display: block; font-size: 1.35rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.news-row h3 { margin: 2px 0 4px; }
.news-row p:last-child { margin: 0; }

/* Schulungen */
.course-grid { display: grid; gap: 12px; }
.course { display: flex; flex-direction: column; border-top: 5px solid var(--c); margin: 0; }
.course-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.course-top .muted { display: inline-flex; align-items: center; gap: 4px; }
.course h3 { margin-bottom: 4px; }
.course-foot { margin-top: auto; padding-top: 10px; }
.course-hero { background: var(--c); color: #fff; border-radius: 20px; padding: 22px 20px; margin-bottom: 14px; position: relative; overflow: hidden; }
.course-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.course-hero .kat { color: rgba(255,255,255,.8); }
.course-hero h1 { margin: 4px 0 6px; }
.course-hero p { opacity: .9; margin-bottom: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; }
.meta span { display: inline-flex; align-items: center; gap: 5px; opacity: .95; }
.lessons { list-style: none; padding: 0; margin: 0 0 12px; }
.lessons a { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; color: var(--text); font-weight: 500; }
.lessons a span:nth-child(2) { flex: 1; }
.lessons .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: .85rem; font-weight: 700; flex: none; color: var(--muted); }
.lessons a.done .num { background: var(--ok); color: #fff; }
.lessons .ic:last-child { color: var(--muted); }
.sticky { position: sticky; top: 80px; }
.sticky h3 { margin-top: 16px; }
.sticky h4 { margin: 16px 0 6px; font-size: .9rem; }
.attempts { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.attempts li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cert-banner, .cert-row { display: flex; align-items: center; gap: 14px; }
.cert-banner > div, .cert-row > span:nth-child(2) { flex: 1; min-width: 0; }
.cert-banner p { margin: 2px 0 0; }
.cert-row small { display: block; }
.cert-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); flex: none; }
.expired .cert-ic { background: var(--warn-soft); color: var(--warn); }

/* Lektion */
.lesson-steps { display: flex; gap: 4px; margin-bottom: 12px; }
.lesson-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.lesson-steps .past { background: color-mix(in srgb, var(--c) 45%, transparent); }
.lesson-steps .now { background: var(--c); }
.lesson { padding: 22px 20px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin: 4px -16px 16px; padding: 24px 16px 8px; background: linear-gradient(to bottom, transparent, var(--bg) 45%); position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); }
.lesson-nav form { margin: 0; }
.lesson-nav .btn { box-shadow: var(--shadow); }

/* Prose */
.prose { font-size: 1.02rem; line-height: 1.65; }
.prose h2 { font-size: 1.2rem; margin: 1.3em 0 .5em; }
.prose h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.prose h4 { margin: 1em 0 .3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1em 0; padding: 10px 14px; border-left: 4px solid var(--line); color: var(--muted); }
.prose figure { margin: 1em 0; }
.prose img { max-width: 100%; border-radius: 12px; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.prose .lead { font-size: 1.1rem; color: var(--muted); }
.callout { padding: 12px 14px; border-radius: 12px; margin: 1em 0; background: var(--info-soft); color: var(--text); border-left: 4px solid var(--info); }
.callout strong:first-child { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--info); margin-bottom: 2px; }
.callout-warnung { background: var(--err-soft); border-color: var(--err); } .callout-warnung strong:first-child { color: var(--err); }
.callout-merke { background: var(--warn-soft); border-color: var(--warn); } .callout-merke strong:first-child { color: var(--warn); }
.callout-tipp { background: var(--ok-soft); border-color: var(--ok); } .callout-tipp strong:first-child { color: var(--ok); }

/* Quiz */
.quiz-progress { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 8px 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.question { border: 1px solid var(--line); }
.question legend { float: left; width: 100%; font-weight: 600; margin-bottom: 12px; display: flex; gap: 10px; line-height: 1.4; }
.question legend + * { clear: both; }
.qnum { width: 28px; height: 28px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: .85rem; flex: none; }
.answer { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.answer input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.answer:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.answer.a-correct, .answer.a-correct:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); }
.answer.a-wrong, .answer.a-wrong:has(input:checked) { border-color: var(--err); background: var(--err-soft); }
.q-ok { border-left: 5px solid var(--ok); } .q-bad { border-left: 5px solid var(--err); }
.explain { display: flex; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: .9rem; color: var(--muted); }
.result { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.result h1 { margin-bottom: 4px; }
.result .btn { margin: 6px 6px 0 0; }
.ring { --p: 0; width: 110px; height: 110px; border-radius: 50%; background: conic-gradient(var(--rc) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; flex: none; }
.ring span { width: 86px; height: 86px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; }
.pass .ring { --rc: var(--ok); } .fail .ring { --rc: var(--err); }

/* News */
.news-grid { display: grid; gap: 12px; }
.news-card { margin: 0; }
.news-card.pinned { border-left: 5px solid var(--info); }
.news-card h3 { margin: 4px 0 6px; }
.news-card p:last-child { margin: 0; }

/* Kalender */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-head h2 { margin: 0; font-size: 1.2rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 8px; }
.cal-wd { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0 6px; text-transform: uppercase; }
.cal-day { min-height: 52px; border-radius: 10px; padding: 4px; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cal-day.out { opacity: .35; }
.cal-day.has { cursor: pointer; }
.cal-day.has:hover { background: var(--bg); }
.dnum { font-size: .9rem; font-weight: 600; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .dnum { background: var(--red); color: #fff; }
.evs { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; width: 100%; }
.ev { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ev-t { display: none; }
.ev-more { font-size: .65rem; color: var(--muted); line-height: 7px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted); margin: -2px 0 6px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.event { border-top: 5px solid var(--c); }
.kat-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--c); color: #fff; font-size: .75rem; font-weight: 700; margin-bottom: 8px; }
.event h1 { margin: 6px 0 12px; }
.facts { list-style: none; padding: 0; margin: 0 0 14px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.facts .ic { color: var(--muted); margin-top: 2px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.event-actions form { margin: 0; }
.people { list-style: none; padding: 0; margin: 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border: 0; }
.people small { display: block; }

/* Profil & Verwaltung */
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head h1 { font-size: 1.3rem; margin: 0 0 2px; }
.profile-head p { margin: 0; }
.menu-link { display: flex; align-items: center; gap: 14px; }
.menu-link > span { flex: 1; }
.menu-link small { display: block; }
.menu-link > .ic:first-child { color: var(--red); }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card[open] summary { margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tile .ic { color: var(--red); margin-bottom: 4px; }
.member summary { display: flex; align-items: center; gap: 12px; }
.m-name { flex: 1; min-width: 0; }
.m-name small { display: block; }
.member[open] summary { margin-bottom: 8px; }
.m-body { border-top: 1px solid var(--line); padding-top: 10px; }
.notice-pw { border: 2px solid var(--ok); }
.table-wrap { overflow-x: auto; padding: 0; }
.matrix { border-collapse: collapse; width: 100%; font-size: .875rem; }
.matrix th, .matrix td { padding: 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); white-space: normal; min-width: 150px; }
.matrix thead th { vertical-align: bottom; font-size: .78rem; color: var(--muted); }
.matrix thead th span { display: inline-block; max-width: 120px; white-space: normal; }
.cell-yes { color: var(--ok); } .cell-exp { color: var(--warn); font-weight: 800; } .cell-no { color: var(--line); }
.admin-course { border-left: 5px solid var(--c); display: flex; flex-direction: column; gap: 10px; }
.admin-course h3 { margin: 2px 0; }
.admin-course p { margin: 0; }
.fw-row.inactive { opacity: .55; }
.fw-row .inline-form { margin: 0 0 6px; }
.fw-row p { margin: 0 0 8px; }
.grow { flex: 1; }
.verify-result.valid { border: 2px solid var(--ok); text-align: center; }
.verify-result.expired { border: 2px solid var(--warn); text-align: center; }

/* Push & Neues */
.push-box { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.push-row { display: flex; align-items: center; gap: 12px; }
.push-row small { display: block; }
.push-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); padding-left: 0; }
.pflicht { background: var(--red-soft); color: var(--red); }
.doc-row { display: flex; align-items: center; gap: 12px; }
.doc-row > span:nth-child(2) { flex: 1; min-width: 0; }
.doc-row small { display: block; }
.doc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--info-soft); color: var(--info); flex: none; font-size: .62rem; font-weight: 800; letter-spacing: .02em; flex-direction: column; }
.doc-row form { margin: 0; }
.att-list { list-style: none; padding: 0; margin: 0; }
.att-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.att-list li:last-child { border: 0; }
.att-list .att-name { flex: 1; min-width: 0; }
.att-list .att-name small { display: block; }
.att-list input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--ok); flex: none; }
.att-list input.std { width: 74px; margin: 0; padding: 8px 10px; text-align: center; }
.sum-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sum-bar .stat2 { flex: 1 1 120px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat2 strong { display: block; font-size: 1.5rem; line-height: 1.1; }
.stat2 span { font-size: .8rem; color: var(--muted); }
.matrix th.pf { color: var(--red); }
.cell-miss { color: var(--err); font-weight: 800; background: var(--err-soft); }
.scene { border-top: 5px solid var(--c); }
.scene .prose { margin-bottom: 8px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.opt:hover { border-color: var(--c); }
.opt .ol { width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.feedback { border-radius: 14px; padding: 14px; margin-bottom: 12px; border-left: 5px solid var(--ok); background: var(--ok-soft); }
.feedback.mittel { border-color: var(--warn); background: var(--warn-soft); }
.feedback.schlecht { border-color: var(--err); background: var(--err-soft); }
.feedback strong { display: block; margin-bottom: 4px; }
.vitals { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 0 0 14px; }
.vitals div { background: var(--bg); border-radius: 12px; padding: 8px 10px; }
.vitals span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.vitals strong { font-size: 1.05rem; }
.path { list-style: none; padding: 0; margin: 0; counter-reset: p; }
.path li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); counter-increment: p; }
.path li::before { content: counter(p); position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--bg); }
.path li.p-gut::before { background: var(--ok); color: #fff; } .path li.p-mittel::before { background: var(--warn); color: #fff; } .path li.p-schlecht::before { background: var(--err); color: #fff; }
.path small { display: block; color: var(--muted); }

/* Tablet / Desktop */
@media (min-width: 640px) {
  .course-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .hero { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px; }
  .hero-stats { min-width: 340px; }
  .admin-course { flex-direction: row; align-items: center; justify-content: space-between; }
  .cal-day { min-height: 76px; align-items: stretch; }
  .dnum { align-self: flex-end; }
  .evs { flex-direction: column; flex-wrap: nowrap; }
  .ev { width: auto; height: auto; border-radius: 5px; background: color-mix(in srgb, var(--c) 16%, transparent); border-left: 3px solid var(--c); padding: 1px 4px; }
  .ev-t { display: block; font-size: .7rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ev-more { line-height: 1; padding-left: 4px; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .topbar .avatar { margin-left: 8px; }
  .topbar { padding: 12px 24px; }
  .wrap { padding: 24px; }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols-wide { grid-template-columns: 1fr 320px; }
  .course-grid, .news-grid { grid-template-columns: repeat(3, 1fr); }
  .lesson { padding: 32px 40px; }
  .lesson-nav { bottom: 12px; }
  .prose { max-width: 72ch; }
  h1 { font-size: 1.85rem; }
  .cal-day { min-height: 96px; }
}
@media (max-width: 400px) { .grid2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Unterschriften */
.sigpad { position: relative; border: 1.5px dashed var(--line); border-radius: 14px; background: #fff; margin: 10px 0 14px; touch-action: none; }
.sigpad canvas { display: block; width: 100%; height: 190px; touch-action: none; cursor: crosshair; border-radius: 14px; }
.sigpad .sig-hint { position: absolute; left: 0; right: 0; top: 42%; text-align: center; color: #9a948e; font-size: .9rem; pointer-events: none; }
.sigpad.filled .sig-hint { display: none; }
.sigpad .sig-line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1.5px solid #c9c0b5; pointer-events: none; }
.sigpad .sig-clear { position: absolute; right: 8px; bottom: 8px; background: #fff; color: #444; }
.sigpad.sig-error { border-color: var(--err); }
@media (min-width: 640px) { .sigpad canvas { height: 220px; } }
.sig-img { display: block; max-height: 64px; max-width: 100%; }
.sig-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sig-list li:last-child { border: 0; }
.sig-list { list-style: none; margin: 0; padding: 0; }
.sig-list .grow small { display: block; }
.sig-list img { height: 38px; max-width: 120px; background: #fff; border-radius: 6px; padding: 2px 4px; }
.erklaerung { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }
.badge-sig { background: var(--ok-soft); color: var(--ok); }

/* Service */
.tiles-big .tile { min-height: 132px; }
.cmp-pick { padding: 12px 14px; }
.cmp-pick p { margin: 0 0 8px; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.cmp-chip input { position: absolute; opacity: 0; }
.cmp-chip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; cursor: pointer; }
.cmp-chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.cmp-chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
table.cmp { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .875rem; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 150px; }
.cmp thead th { background: var(--card); position: sticky; top: 0; }
.cmp thead th small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.cmp thead th strong { font-size: 1rem; }
.cmp tbody th { position: sticky; left: 0; background: var(--card); color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; min-width: 120px; max-width: 140px; z-index: 1; }
.cmp thead th:first-child { left: 0; z-index: 2; position: sticky; }
.cmp tr.same td { background: var(--bg); color: var(--muted); }
.cmp tr.pros td { color: var(--ok); }
.cmp tr.cons td { color: var(--warn); }
.cmp tr.src td { font-size: .75rem; color: var(--muted); }
.equip h3 { margin-bottom: 6px; }
.equip-list { list-style: none; margin: 0; padding: 0; }
.equip-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.equip-list li:last-child { border: 0; }
.equip-list li.has .eq-main strong::before { content: "✓ "; color: var(--ok); }
.equip-list li.missing .eq-main strong { color: var(--err); }
.eq-main { flex: 1 1 220px; min-width: 0; }
.eq-main small, .eq-main a { display: block; margin-top: 2px; }
.eq-edit { display: flex; gap: 8px; flex: 1 1 260px; }
.eq-edit label { display: flex; flex-direction: column; font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.eq-edit input { margin-top: 3px; padding: 8px 10px; }
.eq-edit input[type=number] { width: 78px; }
.eq-edit input[type=date] { width: 150px; }
.eq-edit .eq-notiz { flex: 1; }
.eq-edit label.err input { border-color: var(--err); background: var(--err-soft); }
.eq-edit label.warn input { border-color: var(--warn); background: var(--warn-soft); }
.save-bar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index: 5; margin: 12px 0; }
@media (min-width: 960px) { .save-bar { bottom: 12px; } }
.shop-grid { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 640px) { .shop-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
.shop { margin: 0; border-top: 5px solid var(--c); display: flex; flex-direction: column; }
.shop.inactive { opacity: .6; }
.shop-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.shop-head small { display: block; }
.shop-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.shop-deal { font-size: 1.15rem; font-weight: 800; color: var(--c); margin-bottom: 6px; line-height: 1.3; }
.code-box { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px dashed var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; }
.code-box code { flex: 1; font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; }
.shop-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 6px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-size: .75rem; font-weight: 600; text-align: center; }
.quick a .ic { color: var(--red); }
.eq-edit { flex-wrap: wrap; }
.eq-edit .eq-notiz { flex: 1 1 100%; }
@media (min-width: 640px) { .eq-edit .eq-notiz { flex: 1 1 160px; } }
.shop .btn-primary { background: var(--c); border-color: var(--c); }

.foot a { color: var(--muted); text-decoration: underline; }
.auth-wide { max-width: 760px; }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.danger-zone { border-color: var(--err-soft); }
.ue-bar .ue-top { display: flex; align-items: baseline; gap: 6px; font-size: .9rem; margin-bottom: 4px; }
.ue-bar .ue-top strong { font-size: 1.2rem; }
.ue-bar .ue-top span { margin-left: auto; font-size: .78rem; font-weight: 700; }
.ue-bar .progress { position: relative; height: 10px; overflow: visible; }
.ue-bar .progress span { border-radius: 999px; }
.ue-bar .progress i { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--text); opacity: .35; border-radius: 2px; }
.ue-bar.ok .progress span { background: var(--ok); } .ue-bar.ok .ue-top span { color: var(--ok); }
.ue-bar.info .progress span { background: var(--info); } .ue-bar.info .ue-top span { color: var(--info); }
.ue-bar.warn .progress span { background: var(--warn); } .ue-bar.warn .ue-top span { color: var(--warn); }
.hero .ue-bar { background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px 14px; }
.hero .ue-bar .ue-top span, .hero .ue-bar .ue-top { color: #fff; }
.hero .ue-bar .progress { background: rgba(255,255,255,.25); }
.hero .ue-bar .progress span { background: #fff; }
.hero .ue-bar .progress i { background: #fff; opacity: .7; }
.cell-ue-ok { color: var(--ok); font-weight: 700; } .cell-ue-warn { color: var(--warn); font-weight: 700; }

.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank li:last-child { border: 0; }
.rank li.me { background: var(--red-soft); margin: 0 -16px; padding: 10px 16px; }
.rank .pos { width: 28px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.rank small { display: block; }
.wf h2 { font-size: 1.15rem; margin: 4px 0 14px; }
.md-table { overflow-x: auto; margin: 0 0 1em; }
.md-table table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.md-table th, .md-table td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
.md-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.tk-suche { margin: 0 0 12px; }
.tk-grid { display: grid; gap: 10px; }
@media (min-width: 960px) { .tk-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.tk { margin: 0; border-left: 5px solid var(--c); }
.tk summary { display: flex; flex-direction: column; gap: 2px; }
.tk summary strong { font-size: 1.05rem; }
.tk[open] summary { margin-bottom: 8px; }
.tk-body { font-size: .95rem; }
.offline-hint { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); margin: -6px 0 10px; }
.bars { padding: 14px 16px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr 44px; gap: 10px; align-items: center; padding: 6px 0; font-size: .875rem; }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { position: relative; height: 14px; background: var(--bg); border-radius: 999px; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); border-radius: 999px; }
.bar-track i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .5; }
.bar-row strong { text-align: right; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill-ok { background: var(--ok-soft); color: var(--ok); } .pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-err { background: var(--err-soft); color: var(--err); } .pill-muted { background: var(--line); color: var(--muted); }
.matrix.kreis td, .matrix.kreis th { text-align: left; }
.opt-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.opt-row input { margin: 0; padding: 10px; }
.vote-list { list-style: none; margin: 0 0 12px; padding: 0; }
.vote-list li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vote-date small { display: block; }
.vote-seg { display: flex; gap: 6px; }
.vote-seg input { position: absolute; opacity: 0; }
.vote-seg span { display: inline-block; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; cursor: pointer; min-width: 44px; text-align: center; }
.vote-seg .v-ja input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.vote-seg .v-vielleicht input:checked + span { background: var(--warn); border-color: var(--warn); color: #fff; }
.vote-seg .v-nein input:checked + span { background: var(--err); border-color: var(--err); color: #fff; }
.vote-seg input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.matrix.poll th { min-width: 70px; }
.matrix.poll th.best { color: var(--ok); }
.matrix.poll td { font-weight: 800; }
.pv-ja { background: var(--ok-soft); color: var(--ok); } .pv-vielleicht { background: var(--warn-soft); color: var(--warn); } .pv-nein { background: var(--err-soft); color: var(--err); }
.matrix.poll tr.me td:first-child { color: var(--red); }
.matrix.poll tr.sum td { font-weight: 500; background: var(--bg); }

/* Standard-Ausbildungen & Mehrfachrollen */
.rollen { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 4px; margin: 10px 0; }
.rollen legend { font-weight: 700; font-size: .85rem; padding: 0 4px; }
.rollen label.check { margin-bottom: 8px; }
.rollen-form { margin-top: 12px; }
.d-block { display: block; }
.ausb-kat-h { margin: 18px 0 8px; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ausb-card { padding: 4px 16px; }
.ausb-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ausb-row:last-child { border-bottom: 0; }
.ausb-row .ausb-felder { display: none; gap: 8px; margin: 10px 0 0 30px; flex-wrap: wrap; }
.ausb-row.an .ausb-felder { display: flex; }
.ausb-felder label { flex: 0 1 160px; margin: 0; font-size: .8rem; }
.ausb-felder label.grow { flex: 1 1 200px; }
.ausb-felder input { margin-top: 4px; padding: 9px 10px; }
.ausb-wer { display: block; margin: 6px 0 0 30px; }
.ausb-list { list-style: none; margin: 0; padding: 0; }
.ausb-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ausb-list li:last-child { border-bottom: 0; }
.ausb-list li.ausb-kat { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding-top: 14px; border-bottom: 0; }
.ausb-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.sticky-save { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 10px 0; z-index: 5; }
.sticky-save .btn { width: 100%; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
@media (min-width: 900px) { .sticky-save { bottom: 12px; } .sticky-save .btn { width: auto; min-width: 220px; } }
.warn-card { border-left: 4px solid var(--warn); }
.quali-matrix td.c { font-weight: 800; }
.quali-matrix td.m-ok { background: var(--ok-soft); color: var(--ok); }
.quali-matrix td.m-bald { background: var(--warn-soft); color: var(--warn); }
.quali-matrix td.m-abgelaufen { background: var(--err-soft); color: var(--err); }
.leiter-quali { font-size: .8rem; color: var(--muted); }

/* Teilnehmende Feuerwehren */
.fw-suche { margin: 4px 0 14px; }
.fw-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-bottom: 14px; }
.fw-card { margin: 0; display: flex; flex-direction: column; }
.fw-card.eigene { border: 2px solid var(--red); }
.fw-kopf { display: flex; gap: 12px; align-items: flex-start; }
.fw-kopf h3 { margin: 0 0 2px; font-size: 1.05rem; }
.fw-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft, #fbe9ea); color: var(--red); display: grid; place-items: center; flex: none; }
.fw-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; }
.fw-zahlen div { background: var(--bg); border-radius: 12px; padding: 8px 10px; text-align: center; }
.fw-zahlen strong { display: block; font-size: 1.25rem; }
.fw-zahlen span { font-size: .75rem; color: var(--muted); }
.fw-quali { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.fw-info { margin: 0 0 10px; color: var(--text); }
.fw-kontakt { display: grid; grid-template-columns: 80px 1fr; gap: 4px 10px; margin: 6px 0 0; font-size: .875rem; }
.fw-kontakt dt { color: var(--muted); }
.fw-kontakt dd { margin: 0; overflow-wrap: anywhere; }
.fw-termine { list-style: none; margin: 0; padding: 0; }
.fw-termine a { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; font-size: .9rem; }
.fw-datum { font-weight: 800; color: var(--red); min-width: 44px; }
.fw-card[hidden] { display: none; }
.brand-logo { height: 40px; width: auto; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.brand-logo.big { height: 120px; display: block; margin: 0 auto 14px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }

/* Feuerwehr-Anmeldung zu Terminen */
.fw-anm { margin: 0; }
.fw-anm-kopf { display: flex; gap: 12px; align-items: center; }
.fw-anm .fw-kontakt { margin-top: 10px; grid-template-columns: 120px 1fr; }
.fw-anm.inactive { opacity: .6; }
.fw-entscheid { margin-top: 12px; display: grid; gap: 8px; }
.fw-entscheid input { margin: 0; }
.fw-form { margin-top: 12px; }
.fw-form summary { cursor: pointer; }
.fw-form form { margin-top: 12px; }
.fw-mitgl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px 12px; }
.dt-row { display: flex; gap: 6px; }
.dt-row input { min-width: 0; }
.fw-anm-felder[hidden] { display: none; }
.badge-info svg { vertical-align: -2px; }
.rollen { min-width: 0; max-width: 100%; }

/* Darstellung wählen */
.theme-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; text-align: center; font-weight: 400; }
.theme-opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt strong { font-size: .95rem; }
.theme-opt small { font-size: .75rem; }
.theme-vorschau { width: 56px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: flex; overflow: hidden; margin-bottom: 4px; }
.theme-vorschau i { flex: 1; }
.theme-hell .theme-vorschau i { background: #f4f2ef; } .theme-hell .theme-vorschau i + i { background: #fff; }
.theme-dunkel .theme-vorschau i { background: #141312; } .theme-dunkel .theme-vorschau i + i { background: #2a2725; }
.theme-auto .theme-vorschau i:first-child { background: #f4f2ef; } .theme-auto .theme-vorschau i + i { background: #141312; }

/* Ausstattung bearbeiten */
.ae-gruppe { padding-top: 12px; }
.ae-kopf { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--line); margin-bottom: 4px; }
.ae-kopf label { font-size: .75rem; color: var(--muted); font-weight: 600; margin: 0; }
.ae-kopf input, .ae-kopf select { margin: 3px 0 0; padding: 8px 10px; font-size: .9rem; }
.ae-item { padding: 10px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.ae-item:last-child { border-bottom: 0; }
.ae-item:target { background: var(--red-soft); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.ae-item.weg { opacity: .45; text-decoration: line-through; }
.ae-zeile { display: grid; grid-template-columns: 58px 1fr 120px; gap: 6px; align-items: center; }
.ae-zeile input, .ae-zeile select { margin: 0; padding: 9px 10px; }
.ae-name { font-weight: 600; }
.ae-stufe.stufe-pflicht { color: var(--err); font-weight: 700; } .ae-stufe.stufe-empfohlen { color: var(--info); font-weight: 700; } .ae-stufe.stufe-optional { color: var(--muted); }
.ae-mehr summary { cursor: pointer; font-size: .8rem; color: var(--muted); margin: 6px 0 0 64px; list-style: none; }
.ae-mehr summary::-webkit-details-marker { display: none; }
.ae-mehr-link { color: var(--red); font-weight: 600; }
.ae-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin: 8px 0 0 64px; }
.ae-felder label { font-size: .8rem; margin: 0; }
.ae-felder input, .ae-felder select, .ae-felder textarea { margin: 3px 0 6px; padding: 8px 10px; }
.ae-voll { grid-column: 1 / -1; }
.ae-del { color: var(--err); }
@media (max-width: 560px) {
  .ae-kopf { grid-template-columns: 1fr 1fr; } .ae-kopf label:last-child { grid-column: 1 / -1; }
  .ae-zeile { grid-template-columns: 46px 1fr; } .ae-stufe { grid-column: 2; }
  .ae-mehr summary, .ae-felder { margin-left: 52px; } .ae-felder { grid-template-columns: 1fr; }
}
.anlegen-box details { margin-bottom: 10px; } .anlegen-box summary { cursor: pointer; }

/* Meine Feuerwehr */
.fw-zwei { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .fw-zwei { grid-template-columns: 1fr 1fr; } }
.fw-tab td { vertical-align: top; }
.fw-tab td .pill { white-space: nowrap; }
.fw-links { display: grid; gap: 2px; padding: 8px 16px; }
.fw-links a { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-weight: 600; }
.fw-links a:last-child { border-bottom: 0; }
.fw-links svg { color: var(--red); }
.muted-text { color: var(--muted); }
