/* Schlichtes Layout fuer Anmeldung, Passwort und Menue (Design folgt spaeter) */
/* "hidden" muss immer gelten (sonst ueberschreiben display-Regeln das Attribut) */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; background: #f2f2f2; color: #222; font: 14px/1.45 Arial, Helvetica, sans-serif; }
.box { max-width: 460px; margin: 6vh auto; background: #fff; border-top: 5px solid #e60005; padding: 24px 28px 28px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.box.wide { max-width: 760px; }
.head { display: flex; align-items: center; gap: 12px; color: #555; font-size: 14px; margin-bottom: 8px; }
.head img { height: 44px; }
h1 { font-size: 20px; margin: 12px 0 18px; color: #e60005; }
h2 { font-size: 16px; margin: 22px 0 8px; color: #444; border-bottom: 1px solid #eee; padding-bottom: 4px; }
label { display: block; margin: 0 0 12px; font-weight: bold; font-size: 13px; }
input[type=text], input[type=password], input:not([type]), input[type=email] { display: block; width: 100%; margin-top: 4px; padding: 8px; font-size: 14px; border: 1px solid #bbb; border-radius: 3px; }
input:focus { outline: 2px solid #e60005; border-color: #e60005; }
label.check { font-weight: normal; display: flex; gap: 8px; align-items: center; }
button { background: #e60005; color: #fff; border: 0; padding: 8px 16px; font-size: 14px; border-radius: 3px; cursor: pointer; }
button:hover { background: #b80004; }
.err { background: #fdecec; border-left: 4px solid #e60005; padding: 10px 12px; }
.ok  { background: #e9f6ec; border-left: 4px solid #2e8b3d; padding: 10px 12px; }
.small { font-size: 14px; color: #555; }
a { color: #b80004; }
ul.menu { list-style: none; margin: 0; padding: 0; }
ul.menu li { border-bottom: 1px solid #eee; }
ul.menu a { display: block; padding: 10px 4px; text-decoration: none; color: #222; }
ul.menu a:hover { background: #fbeaea; color: #b80004; }
.userbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #555; margin-bottom: 6px; }

/* ---------- breite Seiten (Zugangsverwaltung) ---------- */
.box.wide { max-width: 1500px; width: calc(100% - 32px); margin: 2vh auto; padding: 20px 24px; }
.muted { color: #888; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; border-bottom: 1px solid #eee; padding: 0 0 10px; margin: 0 0 14px; font-size: 14px; }
.nav a { text-decoration: none; font-weight: bold; }
.nav a:hover { text-decoration: underline; }
.nav a.active { color: #222; border-bottom: 3px solid #e60005; padding-bottom: 6px; margin-bottom: -11px; }
.nav .spacer { flex: 1; }
.note { background: #fff7e0; border-left: 4px solid #e0a800; padding: 10px 12px; margin: 0 0 14px; font-size: 14px; }
.note a { margin-right: 14px; }
.err ul { margin: 0; padding-left: 18px; }

form.filter { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 0 0 6px; }
form.filter label { margin: 0; font-size: 13px; }
form.filter input, form.filter select { margin-top: 4px; padding: 6px 8px; font-size: 13px; border: 1px solid #bbb; border-radius: 3px; min-width: 180px; display: block; }
form.filter button { padding: 7px 14px; font-size: 13px; }
select { font: inherit; font-weight: normal; }

.tablewrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { text-align: left; background: #f6f6f6; border-bottom: 2px solid #e60005; padding: 8px 6px; white-space: nowrap; }
table.list td { border-bottom: 1px solid #eee; padding: 7px 6px; vertical-align: top; }
table.list tr:hover td { background: #fcf3f3; }
table.list tr.inactive td { color: #999; }
table.list td.groups { font-size: 12px; max-width: 280px; color: #555; }
table.list td.actions { min-width: 150px; }
table.list td.actions .small-btn { margin: 1px 2px 1px 0; }
table.list td { overflow-wrap: anywhere; }

.badge { display: inline-block; white-space: nowrap; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; }
.badge.b-ok   { background: #e9f6ec; color: #2e7d32; }
.badge.b-warn { background: #fff4d6; color: #8a6100; }
.badge.b-off  { background: #eee; color: #777; }

form.inline { display: inline; margin: 0; }
.small-btn { display: inline-block; background: #fff; color: #b80004; border: 1px solid #e3b3b4; padding: 2px 8px; font-size: 12px; line-height: 1.5; border-radius: 3px; text-decoration: none; cursor: pointer; margin: 1px 0; }
.small-btn:hover { background: #fbeaea; color: #b80004; }
.small-btn.danger, button.danger { border-color: #b80004; }
button.danger { background: #b80004; }

form.form fieldset { border: 1px solid #e3e3e3; border-radius: 4px; padding: 12px 16px 4px; margin: 0 0 16px; }
form.form legend { font-weight: bold; color: #444; padding: 0 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 16px; margin-bottom: 10px; }
.groups-grid label.check { margin: 0; font-size: 13px; }
.buttons { display: flex; gap: 16px; align-items: center; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid #ddd; }
.tabs a { padding: 6px 14px; text-decoration: none; border: 1px solid transparent; border-bottom: 0; }
.tabs a.active { border-color: #ddd; background: #fff; font-weight: bold; margin-bottom: -1px; }

/* Handy: Tabelle als Karten */
@media (max-width: 720px) {
  .box, .box.wide { margin: 0; width: auto; padding: 16px; box-shadow: none; }
  .row2 { grid-template-columns: 1fr; }
  table.list thead { display: none; }
  table.list tr { display: block; border: 1px solid #eee; margin-bottom: 10px; }
  table.list td { display: flex; gap: 10px; border: 0; padding: 4px 8px; }
  table.list td::before { content: attr(data-l); font-weight: bold; min-width: 90px; color: #555; }
  table.list td.actions { flex-wrap: wrap; white-space: normal; }
  table.list td[colspan] { display: block; }
  table.list td[colspan]::before { content: none; }
  table.list td.num, table.list th.num { text-align: left; width: auto; }
}

/* Knoepfe in der Liste ueberschreiben die allgemeine Knopf-Regel */
button.small-btn { background: #fff; color: #b80004; font-weight: normal; }
button.small-btn:hover { background: #fbeaea; }

/* mit JavaScript: Filter wirkt sofort, Knopf wird nicht gebraucht */
.js .js-hide { display: none; }

/* ---------- E-Mail-Editor ---------- */
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #f6f6f6; border: 1px solid #ddd; border-bottom: 0; border-radius: 4px 4px 0 0; position: sticky; top: 0; z-index: 2; }
.ed-toolbar button, .ed-toolbar select { background: #fff; color: #222; border: 1px solid #ccc; border-radius: 3px; padding: 4px 8px; font-size: 13px; cursor: pointer; }
.ed-toolbar button:hover { background: #fbeaea; }
.ed-toolbar button:disabled, .ed-toolbar select:disabled { opacity: .4; cursor: default; }
.ed-canvas { background: #f2f2f2; border: 1px solid #ddd; padding: 16px 8px; }
.ed-editor { max-width: 600px; min-height: 320px; margin: 0 auto; background: #fff; border-top: 5px solid #e60005; padding: 24px 28px; font: 15px/1.5 Arial, Helvetica, sans-serif; color: #222; outline: none; }
.ed-editor:focus { box-shadow: 0 0 0 2px #f3b1b2; }
.ed-editor img { max-width: 100%; height: auto; }
.ed-editor img.ed-sel { outline: 3px solid #0b5394; }
.ed-editor h1, .ed-editor h2, .ed-editor h3 { color: inherit; border: 0; }
.ed-source { width: 100%; font: 13px/1.4 Consolas, monospace; border: 1px solid #ddd; padding: 10px; }
.ed-images { border: 1px solid #ddd; border-top: 0; background: #fffdf5; padding: 8px 12px; }
.ed-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ed-thumb { background: #fff; border: 1px solid #ccc; padding: 4px; width: 110px; height: 80px; cursor: pointer; }
.ed-thumb img { max-width: 100%; max-height: 100%; }
.inline-label { display: inline; font-weight: normal; }
.buttons .spacer { flex: 1; }
code { background: #f3f3f3; padding: 0 4px; border-radius: 3px; font-size: 12px; }
.tabs-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px 6px 0; min-width: 110px; }

/* zweispaltig: Formular + Hinweis (Tagesordnung) */
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.note-box { background: #f8f8f8; border-left: 4px solid #e60005; padding: 4px 16px 8px; }
.note-box h2 { margin-top: 10px; border: 0; }
.note-box ol { padding-left: 18px; }
.note-box li { margin-bottom: 6px; }
textarea { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; font-weight: normal; font-size: 14px; border: 1px solid #bbb; border-radius: 3px; }
textarea:focus { outline: 2px solid #e60005; border-color: #e60005; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }
table.list th.num, table.list td.num { text-align: right; width: 70px; }
@media (max-width: 720px) { table.list td.num, table.list th.num { text-align: left; width: auto; } }

/* Aktionsknoepfe als Raster: 2x2, auf breiten Bildschirmen 1x4; alle gleich breit */
.btn-grid { display: inline-grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.btn-grid .small-btn { text-align: center; margin: 0; white-space: nowrap; }
@media (min-width: 1200px) { .btn-grid { grid-template-columns: repeat(4, 1fr); } }
.btn-grid.g3 { grid-template-columns: repeat(3, auto); }
@media (max-width: 900px) { .btn-grid.g3 { grid-template-columns: 1fr; } }
.btn-grid form.inline { display: block; }
.btn-grid form.inline .small-btn { width: 100%; }
@media (max-width: 720px) { table.list td.actions .btn-grid { display: grid; width: 100%; } }

/* ---------- Tagesordnung verwalten ---------- */
.to-head { background: #f8f8f8; border-left: 4px solid #e60005; padding: 4px 16px; margin-bottom: 16px; }
.to-title { font-size: 20px; color: #222; border: 0; margin: 10px 0 2px; }
.action-list { display: grid; gap: 6px; }
.action-list .small-btn { text-align: left; padding: 6px 10px; }
a.break { overflow-wrap: anywhere; }
.top-card { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; border: 1px solid #e3e3e3; border-left: 4px solid #e60005; border-radius: 3px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.top-nr { font-weight: bold; color: #e60005; white-space: nowrap; }
.top-body h3 { margin: 0 0 4px; font-size: 15px; }
.top-body p { margin: 0 0 4px; }
.top-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-start; justify-content: flex-end; max-width: 330px; }
.top-actions select { padding: 2px 4px; font-size: 12px; border: 1px solid #e3b3b4; border-radius: 3px; color: #b80004; }
.small-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 720px) {
  .top-card { grid-template-columns: 1fr; }
  .top-actions { justify-content: flex-start; max-width: none; }
}

/* Oeffentliche Tagesordnung: Falle fuer Bots, Leseansicht, Druck */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.top-card-ro { grid-template-columns: 70px minmax(0, 1fr); }
@media (max-width: 720px) { .top-card-ro { grid-template-columns: 1fr; } }
@media print {
  body { background: #fff; font-size: 12pt; }
  .box, .box.wide { box-shadow: none; border-top: 0; margin: 0; max-width: none; width: auto; padding: 0; }
  .nav, .no-print, .small-btn, button, .ok, .err, form { display: none !important; }
  .top-card { break-inside: avoid; border-color: #999; }
  a { color: #000; text-decoration: none; }
}

/* Eingabefeld mit "+"-Knopf (Standardwert uebernehmen) */
.input-plus { display: flex; gap: 6px; align-items: stretch; margin: 4px 0 12px; }
.input-plus input { margin-top: 0 !important; flex: 1; }
.plus-btn { background: #fff; color: #e60005; border: 1px solid #e3b3b4; font-size: 18px; font-weight: bold; line-height: 1; padding: 0 12px; border-radius: 3px; cursor: pointer; }
.plus-btn:hover { background: #fbeaea; }
.plus-btn:disabled { color: #ccc; border-color: #ddd; cursor: default; background: #fff; }
.plus-label { margin-bottom: 0; }
.form label > select { display: block; width: 100%; margin-top: 4px; padding: 8px; font-size: 14px; border: 1px solid #bbb; border-radius: 3px; background: #fff; }

/* ---------- Aktivenausbildung ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 4px 0 6px; }
.stat { background: #f8f8f8; border-left: 4px solid #bbb; padding: 8px 12px; }
.stat.pos { border-left-color: #2e7d32; }
.stat.neg { border-left-color: #e60005; }
.stat-l { display: block; font-size: 12px; color: #666; }
.stat-v { display: block; font-size: 18px; font-weight: bold; color: #222; white-space: nowrap; }
.stat.neg .stat-v { color: #b80004; }
.flags { display: flex; flex-wrap: nowrap; gap: 4px; }
td.nowrap { white-space: nowrap; }
form.filter + .stats { margin-top: 14px; }
@media (max-width: 720px) { .flags { flex-wrap: wrap; } td.nowrap { white-space: normal; } }
.flags form.inline { display: inline; }
button.flag { font: inherit; font-size: 12px; line-height: 1.5; padding: 1px 8px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
button.flag.on  { background: #e9f6ec; color: #2e7d32; border-color: #b9dfc0; font-weight: bold; }
button.flag.off { background: #f3f3f3; color: #888; border-color: #ddd; font-weight: normal; }
button.flag:hover { border-color: #e60005; }
input.money { width: 120px; text-align: right; padding: 5px 8px; font: inherit; font-size: 14px; border: 1px solid #bbb; border-radius: 3px; }
table.list tr.sum td { font-weight: bold; border-top: 2px solid #ccc; background: #fafafa; }
.neg-txt { color: #b80004; font-weight: bold; }
@media (max-width: 720px) { input.money { width: 100%; text-align: left; } }
table.list.budget { max-width: 820px; }
table.list.budget td.num { white-space: nowrap; }
input.year { display: block; width: 120px; margin-top: 4px; padding: 7px 8px; font: inherit; font-size: 14px; border: 1px solid #bbb; border-radius: 3px; }
.input-plus .prefix { display: flex; align-items: center; padding: 0 8px; background: #f3f3f3; border: 1px solid #bbb; border-radius: 3px; color: #555; font-size: 14px; }
table.kv { border-collapse: collapse; font-size: 13px; }
table.kv th { text-align: left; padding: 3px 12px 3px 0; color: #555; font-weight: bold; vertical-align: top; }
table.kv td { padding: 3px 0; }
.form input[type=search] { display: block; width: 100%; padding: 8px; font: inherit; font-size: 14px; border: 1px solid #bbb; border-radius: 3px; }
.small-btn.disabled { opacity: .4; cursor: default; text-align: center; }
input.date { display: block; width: 200px; margin-top: 4px; padding: 7px 8px; font: inherit; font-size: 14px; border: 1px solid #bbb; border-radius: 3px; }
.rest { font-size: 12px; color: #666; white-space: nowrap; }
.rest.neg-txt { color: #b80004; }
.stat-s { display: block; font-size: 12px; color: #555; margin-top: 2px; }
.stat.neg .stat-s b { color: #b80004; }
.stat.neg .stat-v { color: #222; }
/* Zugangsverwaltung: Startpasswort */
.pw-card { background: #f8f8f8; border-left: 4px solid #e60005; padding: 10px 16px; margin: 0 0 12px; max-width: 560px; }
.pw-card p { margin: 6px 0; }
code.pw-big { font-size: 20px; font-weight: bold; letter-spacing: 1px; background: #fff; border: 1px solid #ddd; padding: 2px 8px; border-radius: 3px; }
label.pw-own { margin-left: 26px; }
@media print { .pw-card { border: 1px solid #999; } }

/* ---------- Startseite ---------- */
.lead { font-size: 15px; line-height: 1.6; max-width: 820px; }
.contact-box { background: #f8f8f8; border-left: 4px solid #e60005; padding: 12px 16px; margin: 14px 0 18px; max-width: 560px; font-size: 15px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 6px 0 16px; }
a.link-card { display: block; border: 1px solid #e3b3b4; border-radius: 4px; padding: 12px 14px; text-decoration: none; color: #222; background: #fff; }
a.link-card:hover { border-color: #e60005; background: #fdf3f3; }
.lc-title { display: block; font-weight: bold; color: #b80004; margin-bottom: 3px; }
.lc-text { display: block; font-size: 13px; color: #555; }
.badge.big { font-size: 14px; padding: 4px 12px; }
.badge.b-err { background: #fde8e8; color: #b80004; }

/* ---------- Startseite (neu, mit Piktogrammen) ---------- */
main.home > h1 { display: none; }
.ico { display: inline-block; vertical-align: middle; }
.hero { display: flex; align-items: center; gap: 24px; background: linear-gradient(135deg, #e60005 0%, #b80004 100%); color: #fff;
        border-radius: 10px; padding: 28px 32px; margin: 4px 0 22px; overflow: hidden; position: relative; }
.hero-text { flex: 1; position: relative; z-index: 1; }
.hero-kicker { margin: 0 0 4px; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }
.hero-title { margin: 0 0 8px; font-size: 34px; line-height: 1.15; color: #fff; border: 0; padding: 0; }
.hero-sub { margin: 0 0 18px; font-size: 16px; line-height: 1.5; max-width: 560px; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 6px; font-weight: bold; text-decoration: none; font-size: 15px; }
.hbtn .ico { width: 20px; height: 20px; }
.hbtn-light { background: #fff; color: #b80004; }
.hbtn-light:hover { background: #fdf0f0; }
.hbtn-line { border: 2px solid rgba(255,255,255,.85); color: #fff; }
.hbtn-line:hover { background: rgba(255,255,255,.12); }
.hero-art { flex: none; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.13); display: flex; align-items: center; justify-content: center; }
.hero-art .ico { width: 92px; height: 92px; stroke-width: 1.4; color: #fff; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 8px; }
.fact { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #444; }
.fact b { color: #222; }

h2.sec { font-size: 18px; margin: 22px 0 10px; border: 0; padding: 0; color: #222; }
.tile-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fdecec; color: #e60005; display: inline-flex; align-items: center; justify-content: center; }
.tile-ico .ico { width: 24px; height: 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tiles.tiles-1 { grid-template-columns: 1fr; }
a.tile { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #eadede; border-radius: 10px; padding: 14px 16px;
         text-decoration: none; color: #222; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .12s, box-shadow .12s, border-color .12s; }
a.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(184,0,4,.12); border-color: #e60005; }
a.tile:hover .tile-ico { background: #e60005; color: #fff; }
.tile-body { flex: 1; min-width: 0; }
.tile-title { display: block; font-weight: bold; font-size: 15px; color: #222; margin-bottom: 2px; }
.tile-text { display: block; font-size: 13px; color: #666; }
.tile-go { flex: none; color: #e60005; opacity: .6; }
.tile-go .ico { width: 18px; height: 18px; }
a.tile:hover .tile-go { opacity: 1; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
a.contact-card, .status-card { display: flex; gap: 14px; align-items: center; background: #f8f8f8; border-radius: 10px; padding: 14px 16px; text-decoration: none; color: #222; margin-bottom: 12px; }
a.contact-card { border-left: 4px solid #e60005; }
a.contact-card:hover { background: #fdf3f3; }
.contact-mail { display: block; font-weight: bold; color: #b80004; font-size: 16px; margin: 2px 0; overflow-wrap: anywhere; }
.st-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.st-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.st-ok .st-dot { background: #2e7d32; box-shadow: 0 0 0 4px #e3f3e5; }
.st-err .st-dot { background: #e60005; box-shadow: 0 0 0 4px #fde3e3; }
.st-warn .st-dot { background: #f0a000; box-shadow: 0 0 0 4px #fff1d0; }
.st-ok .tile-ico { background: #e9f6ec; color: #2e7d32; }
.st-warn .tile-ico { background: #fff4d6; color: #8a6100; }

@media (max-width: 820px) {
  .facts, .two { grid-template-columns: 1fr; }
  .hero { padding: 22px 20px; }
  .hero-art { display: none; }
  .hero-title { font-size: 28px; }
}

/* ---------- Ausbildungsprogramm (oeffentlich) ---------- */
.backlink { margin: 0 0 10px; font-size: 14px; }
.backlink a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.backlink .ico { width: 18px; height: 18px; }
.hero.hero-sm { padding: 22px 28px; }
.hero.hero-sm .hero-art { width: 110px; height: 110px; }
.hero.hero-sm .hero-art .ico { width: 64px; height: 64px; }
.ytabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.ytabs a { padding: 6px 16px; border: 1px solid #e3b3b4; border-radius: 20px; text-decoration: none; font-weight: bold; font-size: 14px; }
.ytabs a.active { background: #e60005; border-color: #e60005; color: #fff; }
.note-line { display: flex; gap: 10px; align-items: flex-start; background: #f8f8f8; border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; color: #444; }
.note-line .ico { flex: none; color: #e60005; }
.courses { display: grid; gap: 10px; }
.course { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #eadede; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.course.past { opacity: .6; }
.cdate { flex: none; width: 76px; text-align: center; background: #fdecec; color: #b80004; border-radius: 8px; padding: 8px 4px; }
.cd-day { display: block; font-size: 24px; font-weight: bold; line-height: 1.1; }
.cd-mon { display: block; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.cbody { flex: 1; min-width: 0; }
.cbody h3 { margin: 2px 0 2px; font-size: 17px; color: #222; }
.cnr { margin: 0 0 4px; font-size: 13px; color: #777; }
.cbody details { margin-top: 6px; font-size: 14px; }
.cbody summary { cursor: pointer; color: #b80004; font-weight: bold; display: inline-flex; align-items: center; gap: 6px; }
.cbody summary .ico { width: 18px; height: 18px; }
.cbody details p { margin: 8px 0 0; background: #f8f8f8; border-radius: 6px; padding: 8px 12px; line-height: 1.5; }
.cact { flex: none; align-self: center; }
.hbtn-red { background: #e60005; color: #fff; }
.hbtn-red:hover { background: #b80004; }
.hbtn-red .ico { width: 18px; height: 18px; }
.empty { background: #f8f8f8; border-radius: 8px; padding: 16px; text-align: center; color: #555; }
@media (max-width: 640px) {
  .course { flex-wrap: wrap; }
  .cact { width: 100%; }
  .cact .hbtn { width: 100%; justify-content: center; }
  .cdate { width: 64px; }
}

/* ---------- Anmeldung zur Ausbildung ---------- */
.course-head { margin: 0 0 16px; border-left: 4px solid #e60005; }
.hero-kicker.dark { color: #b80004; opacity: 1; margin: 0 0 2px; font-weight: bold; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
h2.ctitle { margin: 0 0 4px; font-size: 22px; color: #222; border: 0; padding: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 0 0 16px; counter-reset: st; }
.steps li { counter-increment: st; background: #f8f8f8; border-radius: 8px; padding: 10px 12px 10px 48px; position: relative; font-size: 14px; }
.steps li::before { content: counter(st); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
                    background: #e60005; color: #fff; font-weight: bold; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.anm-form button.hbtn { border: 0; cursor: pointer; font: inherit; font-weight: bold; }
.msg-card { display: flex; gap: 14px; align-items: flex-start; border-radius: 10px; padding: 16px 18px; margin: 0 0 16px; background: #f8f8f8; }
.msg-card h2 { margin: 2px 0 6px; font-size: 18px; border: 0; padding: 0; }
.msg-card p { margin: 0; line-height: 1.5; }
.msg-card.st-ok { background: #eef8f0; } .msg-card.st-ok .tile-ico { background: #d8f0dd; color: #2e7d32; }
.msg-card.st-err { background: #fdf0f0; }
.msg-card.st-warn { background: #fff8e6; } .msg-card.st-warn .tile-ico { background: #fff1c9; color: #8a6100; }
table.kv.big { font-size: 15px; margin: 0 0 14px; }
table.kv.big th { padding: 5px 16px 5px 0; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.form input[type=tel] { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; font-size: 14px; border: 1px solid #bbb; border-radius: 3px; }

/* ---------- Kostenuebernahme ---------- */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; margin: 0 0 8px; }
.rule { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #eadede; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; position: relative; }
.rule-nr { position: absolute; top: 8px; right: 12px; font-size: 12px; font-weight: bold; color: #c9a3a4; }
.rule b { color: #222; }
table.list.zuschuss td { font-size: 14px; vertical-align: middle; }
table.list.zuschuss td.num { white-space: nowrap; }

/* ---------- Wegbeschreibung ---------- */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.place { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #eadede; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.place-body { flex: 1; min-width: 0; }
.place address { font-style: normal; font-size: 14px; color: #444; margin: 4px 0 10px; line-height: 1.45; }
.place-act { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Kontakt ---------- */
a.contact-card .contact-mail { font-size: 15px; }

/* Aufzaehlung mit Spiegelstrichen */
ul.dash { list-style: none; margin: 0 0 12px; padding-left: 0; }
ul.dash li { padding-left: 1.1em; text-indent: -1.1em; margin: 2px 0; }
ul.dash li::before { content: "\2013\00a0\00a0"; }

/* Post-Benachrichtigung: grosse Knoepfe fuers Tablet */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 20px; }
.post-grid .small-btn { font-size: 17px; padding: 16px 10px; font-weight: bold; }
