/* Homepage und Artikel (Version 4.14): Verwaltung, Block-Editor, Artikelinhalt, öffentliche Homepage */

/* ---------- Gemeinsam ---------- */
.hp-klein { font-size: .82rem; color: var(--muted, #6b7280); }
.hp-ok { color: #15803d; font-weight: 600; }
.hp-warn { color: #b45309; font-weight: 600; }
.hp-rot { color: var(--danger, #dc2626) !important; border-color: #fca5a5 !important; }
.hp-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; padding: 2px 8px; border-radius: 99px; border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; margin: 1px 3px 1px 0; white-space: nowrap; line-height: 1.5; }
.hp-chip.pub { background: #dcfce7; border-color: #86efac; color: #166534; }
.hp-chip.mit { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.hp-chip.kurs { background: #fae8ff; border-color: #f0abfc; color: #86198f; }
.hp-chip.rolle, .hp-chip.grau { background: #f3f4f6; border-color: #d1d5db; color: #4b5563; }
.hp-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: .8rem; }
.hp-st { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.hp-st-entwurf { color: #6b7280; } .hp-st-geplant { color: #b45309; } .hp-st-veroeffentlicht { color: #15803d; } .hp-st-abgelaufen, .hp-st-archiv { color: #6b7280; }
.hp-nur-handy { display: none !important; }
@media (max-width: 800px) { .hp-nur-handy { display: inline-flex !important; } .hp-nicht-handy { display: none !important; } }

/* ---------- Verwaltung ---------- */
.hp-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: .2rem 0 .8rem; }
.hp-kopf h1 { margin: 0; }
.hp-kopf-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.hp-intro { margin-top: -.3rem; }
.hp-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border, #d9dee7); margin: -.2rem 0 .8rem; overflow-x: auto; }
.hp-tabs a { padding: .5rem .8rem; text-decoration: none; color: var(--muted, #4b5563); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.hp-tabs a.on { color: var(--primary, #2563eb); border-color: var(--primary, #2563eb); }
.hp-tabs a i { font-style: normal; font-weight: 500; opacity: .7; font-size: .85em; }
.hp-tabs-rechts { margin-left: auto; display: flex; }
.hp-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }
.hp-filter input[type=search], .hp-filter input[type=text] { flex: 1 1 220px; }
.hp-filter select { flex: 0 1 200px; }
.hp-liste-tab td { vertical-align: middle; }
.hp-liste-tab .r, .hp-liste-tab th.r { text-align: right; }
.hp-cb { width: 28px; }
.hp-titel a { font-weight: 600; }
.hp-thumb { display: block; width: 56px; height: 38px; border-radius: 6px; overflow: hidden; background: #e5e7eb; }
.hp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-akt { white-space: nowrap; width: 1%; }
.hp-akt .btn { margin: 1px 0; }
.hp-sammel { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: .8rem; }
.hp-sel-klein { width: auto; min-height: 32px; padding: 2px 6px; font-size: .9rem; }
.hp-schmal { max-width: 860px; }
.hp-einst label { display: block; margin: .6rem 0; }
.hp-einst fieldset { border: 1px solid var(--border, #d9dee7); border-radius: 10px; padding: .6rem .9rem; margin: 1rem 0; }
.hp-einst-zeile { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hp-logo-vorschau img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--border, #d9dee7); border-radius: 10px; background: #fff; }
.hp-cbz { display: flex !important; gap: 8px; align-items: flex-start; margin: .35rem 0; font-weight: 400; cursor: pointer; }
.hp-cbz input { margin-top: 3px; width: auto; min-height: 0; flex: none; }
@media (max-width: 700px) {
    .hp-liste-tab thead { display: none; }
    .hp-liste-tab tr { display: grid; grid-template-columns: 28px 64px 1fr; gap: 2px 8px; padding: .6rem 0; border-bottom: 1px solid var(--border, #e5e7eb); }
    .hp-liste-tab td { border: 0 !important; padding: 0 !important; }
    .hp-liste-tab td.hp-cb { grid-row: span 2; }
    .hp-liste-tab td.hp-th-bild { grid-row: span 2; }
    .hp-liste-tab td[data-label] { grid-column: 3; }
    .hp-liste-tab td[data-label="Aufrufe"], .hp-liste-tab td[data-label="Autor"] { display: none; }
    .hp-liste-tab td.hp-akt { grid-column: 1 / -1; display: flex; gap: 6px; width: auto; }
    .hp-liste-tab td.hp-akt .btn { flex: 1; }
}

/* Medien */
.hp-med-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hp-med-karte { border: 1px solid var(--border, #d9dee7); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.hp-med-bild { display: flex; align-items: center; justify-content: center; height: 140px; background: #f3f4f6; }
.hp-med-bild img { width: 100%; height: 100%; object-fit: cover; }
.hp-med-sym { font-size: 44px; }
.hp-med-form { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.hp-med-form input[type=text] { min-height: 32px; padding: 3px 8px; font-size: .9rem; }
.hp-med-knoepfe { display: flex; gap: 6px; margin-top: 4px; }

/* ---------- Editor ---------- */
.hp-editor-form { margin-top: -.3rem; }
.hp-ed-leiste { position: sticky; top: 0; z-index: 30; display: flex; gap: 6px; align-items: center; background: var(--card, #fff); border: 1px solid var(--border, #d9dee7); border-radius: 12px; padding: 6px 8px; margin-bottom: 10px; }
.hp-ed-leiste .btn-small { min-height: 34px; }
.hp-ed-plus { font-size: 1.3rem; font-weight: 400; min-width: 38px; justify-content: center; }
.hp-ed-info { flex: 1; text-align: center; font-size: .88rem; color: var(--muted, #4b5563); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hp-ed-info .hp-klein { font-size: .8rem; display: inline; }
.hp-ed-info div.hp-klein::before { content: " "; }
.hp-ed { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.hp-canvas { background: var(--card, #fff); border: 1px solid var(--border, #d9dee7); border-radius: 12px; padding: 26px 20px 40px; min-height: 70vh; }
.hp-papier { max-width: 760px; margin: 0 auto; }
.hp-titel-ed { width: 100%; border: 0 !important; background: transparent; font-size: 2rem; font-weight: 800; line-height: 1.2; resize: none; padding: 0; margin-bottom: 14px; color: inherit; font-family: inherit; box-shadow: none !important; outline: none; overflow: hidden; }
.hp-blk { position: relative; border: 1px solid transparent; border-radius: 8px; padding: 4px 10px; margin: 2px -11px; }
.hp-blk:hover { border-color: var(--border, #e5e7eb); }
.hp-blk.sel { border-color: var(--primary, #2563eb); box-shadow: 0 0 0 1px var(--primary, #2563eb); }
.hp-blk-leiste { display: none; position: absolute; top: -34px; right: 4px; z-index: 5; background: var(--card, #fff); border: 1px solid #374151; border-radius: 7px; height: 32px; align-items: stretch; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.hp-blk.sel .hp-blk-leiste { display: flex; }
.hp-blk-leiste > * { border: 0; border-right: 1px solid #e5e7eb; background: none; padding: 0 9px; font-size: .85rem; display: flex; align-items: center; cursor: pointer; color: inherit; }
.hp-blk-leiste > *:last-child { border-right: 0; }
.hp-blk-leiste .rot { color: #dc2626; }
.hp-blk-typ { cursor: default !important; font-weight: 600; color: var(--muted, #6b7280) !important; }
.hp-ce { outline: none; min-height: 1.6em; }
.hp-ce:empty::before { content: attr(data-ph); color: #9ca3af; }
.hp-blk.sel .hp-ce:empty::before { color: #9ca3af; }
.hp-blk:not(.sel) .hp-blk-p .hp-ce:empty::before { content: ''; }
.hp-blk-opt { display: none; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 2px; font-size: .85rem; color: var(--muted, #6b7280); }
.hp-blk.sel .hp-blk-opt, .hp-blk-bild .hp-blk-opt:first-of-type { display: flex; }
.hp-blk-opt input[type=text], .hp-blk-opt input[type=number], .hp-blk-opt select { min-height: 30px; padding: 2px 8px; font-size: .88rem; width: auto; flex: 1 1 160px; }
.hp-blk-opt select { flex: 0 1 auto; }
.hp-blk-opt .btn-small { min-height: 30px; padding: 2px 10px; font-size: .85rem; }
.hp-blk-hint { font-size: .78rem; color: var(--muted, #6b7280); }
.hp-blk:not(.sel) .hp-blk-hint { display: none; }
.hp-h2 { font-size: 1.5rem; font-weight: 700; }
.hp-h3 { font-size: 1.2rem; font-weight: 700; }
.hp-liste-ce { margin: 0; padding-left: 1.4em; }
.hp-zitat-ce { border-left: 4px solid var(--primary, #2563eb); padding-left: 14px; font-style: italic; font-size: 1.1rem; }
.hp-bildwahl img { max-width: 100%; border-radius: 8px; display: block; }
.hp-bildwahl.hp-bild-mittel img { max-width: 66%; margin: 0 auto; }
.hp-bildwahl.hp-bild-klein img { max-width: 40%; margin: 0 auto; }
.hp-leerbild { height: 120px; border: 2px dashed var(--border, #d1d5db); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: .9rem; }
.hp-gal-a { position: relative; display: block; }
.hp-gal-x { position: absolute; top: 4px; right: 4px; border: 0; border-radius: 50%; width: 24px; height: 24px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: none; }
.hp-blk.sel .hp-gal-x { display: block; }
.hp-tab-ed input { width: 100%; min-height: 30px; padding: 2px 6px; border: 1px solid var(--border, #e5e7eb); font-size: .9rem; }
.hp-vblock { display: flex; gap: 12px; align-items: flex-start; border: 1px dashed #d946ef; background: #fdf4ff; border-radius: 10px; padding: 10px 12px; color: #1f2937; }
.hp-vblock-sym { font-size: 1.6rem; }
.hp-vblock .hp-blk-opt { display: flex; }
.hp-plus-unten { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: #9ca3af; cursor: pointer; padding: 10px 0; font-size: .95rem; }
.hp-plus-unten span { width: 28px; height: 28px; background: #1f2937; color: #fff; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.hp-ins { position: absolute; z-index: 100; background: var(--card, #fff); border: 1px solid #374151; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 10px; }
.hp-ins input { width: 100%; min-height: 34px; margin-bottom: 8px; }
.hp-ins-gr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 6px; }
.hp-ins-gr button { border: 1px solid transparent; background: none; border-radius: 7px; padding: 8px 2px; font-size: .78rem; cursor: pointer; color: inherit; line-height: 1.2; }
.hp-ins-gr button b { display: block; font-size: 1.25rem; font-weight: 400; margin-bottom: 2px; }
.hp-ins-gr button:hover, .hp-ins-gr button:focus { background: #eff6ff; border-color: #93c5fd; }
.hp-ins-gr button.verein { background: #fdf4ff; }
.hp-textleiste { position: absolute; z-index: 90; display: none; background: #111827; border-radius: 7px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.hp-textleiste button { border: 0; background: none; color: #fff; min-width: 34px; height: 34px; cursor: pointer; font-size: .95rem; }
.hp-textleiste button:hover { background: #374151; }

/* Seitenleiste */
.hp-side { background: var(--card, #fff); border: 1px solid var(--border, #d9dee7); border-radius: 12px; overflow: hidden; position: sticky; top: 60px; max-height: calc(100vh - 70px); overflow-y: auto; }
.hp-sec { border-bottom: 1px solid var(--border, #e5e7eb); padding: 10px 14px; }
.hp-sec > summary { font-weight: 700; cursor: pointer; font-size: .95rem; padding: 2px 0; }
.hp-sec[open] > summary { margin-bottom: 6px; }
.hp-sec select, .hp-sec input[type=text], .hp-sec input[type=datetime-local], .hp-sec input[type=date], .hp-sec input[type=number], .hp-sec textarea { min-height: 34px; padding: 3px 8px; font-size: .9rem; }
.hp-zeile { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; margin: 6px 0 2px; }
.hp-sec-sicht { background: #fffdf5; }
.hp-rad { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; cursor: pointer; font-size: .92rem; }
.hp-rad input { width: auto; min-height: 0; margin-top: 3px; }
.hp-rad small { display: block; color: var(--muted, #6b7280); font-size: .78rem; }
.hp-sicht-box { background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 9px; padding: 8px 10px; margin: 0 0 6px 22px; font-size: .88rem; }
#hp-ziele-box.aus { opacity: .4; pointer-events: none; }
.hp-ziel-gr { margin: 6px 0; }
.hp-chips { margin: 3px 0; }
.hp-trenn-klein { border-top: 1px solid var(--border, #e5e7eb); margin: 8px 0 2px; padding-top: 6px; font-size: .78rem; color: var(--muted, #6b7280); }
.hp-wer { display: flex; justify-content: space-between; width: 100%; border: 0; background: #eef2ff; color: #3730a3; border-radius: 8px; padding: 8px 10px; margin-top: 8px; cursor: pointer; font-size: .88rem; font-weight: 600; }
.hp-bb img { width: 100%; border-radius: 8px; display: block; margin-bottom: 6px; }
.hp-bb .hp-leerbild { height: 70px; margin-bottom: 6px; }
.hp-ver { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--border, #e5e7eb); font-size: .85rem; }
.hp-sec .btn-small { min-height: 32px; font-size: .85rem; }
@media (max-width: 800px) {
    .hp-ed { grid-template-columns: minmax(0, 1fr); }
    .hp-blk select, .hp-blk input { max-width: 100%; }
    .hp-canvas { padding: 14px 12px 30px; border-radius: 10px; }
    .hp-titel-ed { font-size: 1.5rem; }
    .hp-ed-info .hp-ed-titel, .hp-ed-info #hp-gespeichert { display: none; }
    .hp-ed-leiste { flex-wrap: wrap; top: 0; }
    .hp-ed-leiste .btn-small { padding-left: 8px; padding-right: 8px; }
    .hp-ed-info { visibility: hidden; min-width: 0; flex: 1 1 0; padding: 0; }
    .hp-ed-leiste > a.btn:first-child { display: none; }
    .hp-ed-leiste { gap: 5px; padding: 5px 6px; }
    .hp-blk select { width: 100%; min-width: 0; }
    .hp-side { width: auto; box-sizing: border-box; }
    .hp-side .hp-zeile input, .hp-side .hp-zeile select, .hp-side select, .hp-side textarea { max-width: 100%; box-sizing: border-box; }
    .hp-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 200; max-height: 82vh; border-radius: 18px 18px 0 0; transform: translateY(105%); transition: transform .2s; box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
    body.hp-side-offen .hp-side { transform: none; }
    body.hp-side-offen::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 150; }
    .hp-side-griff { display: flex !important; justify-content: space-between; align-items: center; padding: 8px 14px; position: sticky; top: 0; background: var(--card, #fff); border-bottom: 1px solid var(--border, #e5e7eb); z-index: 2; }
    .hp-side-griff span { width: 40px; height: 5px; border-radius: 9px; background: #d1d5db; }
    .hp-blk-leiste { right: 0; top: -36px; }
    .hp-ins-gr { grid-template-columns: repeat(3, 1fr); }
}

/* Dialoge */
.hp-dlg-hg { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; }
.hp-dlg-hg[hidden] { display: none; }
.hp-dlg { background: var(--card, #fff); color: var(--text, #1f2937); border-radius: 14px; padding: 16px 18px; width: 100%; max-width: 900px; box-shadow: 0 12px 34px rgba(0,0,0,.3); }
.hp-dlg-klein { max-width: 480px; }
.hp-dlg h2 { margin: 0 0 2px; font-size: 1.2rem; }
.hp-dlg-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.hp-dlg-fuss { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.hp-sum { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; margin: 12px 0; }
.hp-sum > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border, #e5e7eb); font-size: .92rem; }
.hp-sum > div:last-child { border: 0; }
.hp-med-hoch { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.hp-med-hoch input[type=file] { display: none; }
.hp-med-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 55vh; overflow-y: auto; padding: 2px; }
.hp-med-k { border: 2px solid transparent; border-radius: 9px; background: #f3f4f6; padding: 0; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; height: 120px; }
.hp-med-k img { width: 100%; height: 92px; object-fit: cover; }
.hp-med-k .hp-med-sym { height: 92px; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.hp-med-n { font-size: .72rem; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #374151; }
.hp-med-k.on { border-color: var(--primary, #2563eb); box-shadow: 0 0 0 2px #93c5fd; }
.hp-wer-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.hp-wer-filter input { flex: 1 1 200px; }
.hp-seg { display: inline-flex; border: 1px solid var(--border, #d9dee7); border-radius: 8px; overflow: hidden; }
.hp-seg button { border: 0; background: none; padding: 6px 10px; font-size: .85rem; cursor: pointer; color: inherit; }
.hp-seg button.on { background: var(--primary, #2563eb); color: #fff; }
.hp-wer-tab { width: 100%; border-collapse: collapse; }
.hp-wer-tab th { text-align: left; font-size: .8rem; color: var(--muted, #6b7280); border-bottom: 1px solid var(--border, #d9dee7); padding: 5px 6px; }
.hp-wer-tab td { border-bottom: 1px solid var(--border, #eef0f4); padding: 6px; font-size: .9rem; vertical-align: middle; }
.hp-wer-tab td:first-child, .hp-wer-tab td:nth-child(3) { white-space: nowrap; }

/* ---------- Artikelinhalt (Editor, Homepage, Mitgliederbereich) ---------- */
.hp-inhalt { font-size: 1.05rem; line-height: 1.65; }
.hp-inhalt h1 { font-size: 2rem; line-height: 1.2; margin: .2rem 0 .8rem; }
.hp-inhalt h2 { font-size: 1.5rem; margin: 1.4rem 0 .4rem; line-height: 1.3; }
.hp-inhalt h3 { font-size: 1.2rem; margin: 1.1rem 0 .3rem; }
.hp-inhalt p { margin: 0 0 .9rem; }
.hp-inhalt .hp-lead { font-size: 1.2rem; color: #374151; }
.hp-inhalt ul, .hp-inhalt ol { margin: 0 0 .9rem; padding-left: 1.4em; }
.hp-bild { margin: 0 0 1rem; }
.hp-bild img { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.hp-bild-mittel img { max-width: 66%; margin: 0 auto; }
.hp-bild-klein img { max-width: 40%; margin: 0 auto; }
.hp-bild figcaption, .hp-video figcaption { font-size: .85rem; color: #6b7280; margin-top: 4px; text-align: center; }
.hp-art-bild img { width: 100%; max-height: 460px; object-fit: cover; }
.hp-galerie { display: grid; grid-template-columns: repeat(var(--sp, 3), 1fr); gap: 6px; margin: 0 0 1rem; }
.hp-galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.hp-zitat { border-left: 4px solid var(--hp-farbe, #2563eb); margin: 0 0 1rem; padding: 4px 0 4px 16px; font-style: italic; font-size: 1.12rem; }
.hp-zitat cite { display: block; font-style: normal; font-size: .9rem; color: #6b7280; }
.hp-hinweis { display: flex; gap: 10px; border-radius: 10px; padding: 10px 14px; margin: 0 0 1rem; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.hp-hinweis > span { font-weight: 700; }
.hp-hinweis-warn { background: #fef3c7; border-color: #fcd34d; color: #78350f; }
.hp-hinweis-ok { background: #dcfce7; border-color: #86efac; color: #14532d; }
.hp-knopf-zeile { margin: .4rem 0 1rem; }
.hp-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 9px; background: var(--hp-farbe, #2563eb); color: #fff !important; font-weight: 600; text-decoration: none; border: 2px solid var(--hp-farbe, #2563eb); font-size: .95rem; white-space: nowrap; }
.hp-knopf.zweit { background: transparent; color: var(--hp-farbe, #2563eb) !important; }
.hp-knopf.klein { min-height: 34px; padding: 0 12px; font-size: .88rem; }
.hp-knopf.weiss { background: #fff; color: #1e3a8a !important; border-color: #fff; }
.hp-datei, .hp-kurs, .hp-ort { display: flex; gap: 12px; align-items: center; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 14px; margin: 0 0 1rem; background: #fff; color: #1f2937; font-size: .95rem; line-height: 1.45; }
.hp-datei > div, .hp-kurs-txt, .hp-ort > div { flex: 1; min-width: 0; }
.hp-datei-sym, .hp-kurs-sym { font-size: 1.5rem; }
.hp-balken { display: block; height: 6px; border-radius: 9px; background: #e5e7eb; margin: 5px 0 2px; max-width: 260px; }
.hp-balken i { display: block; height: 100%; border-radius: 9px; background: #16a34a; }
.hp-zeiten { border: 1px solid #e5e7eb; border-radius: 10px; margin: 0 0 1rem; overflow: hidden; background: #fff; color: #1f2937; }
.hp-zeiten-kopf { font-weight: 700; padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.hp-zeiten table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hp-zeiten td { padding: 7px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.hp-video-link { display: flex; gap: 12px; align-items: center; border-radius: 10px; padding: 12px 14px; margin: 0 0 1rem; background: #0f172a; color: #fff !important; text-decoration: none; }
.hp-video-link .hp-klein { display: block; color: #cbd5e1; }
.hp-play { width: 44px; height: 44px; border-radius: 50%; background: #ef4444; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: none; }
.hp-video video { width: 100%; border-radius: 10px; }
.hp-tab-wrap { overflow-x: auto; margin: 0 0 1rem; }
.hp-tabelle { border-collapse: collapse; width: 100%; font-size: .95rem; }
.hp-tabelle th, .hp-tabelle td { border: 1px solid #e5e7eb; padding: 6px 10px; text-align: left; }
.hp-tabelle th { background: #f8fafc; }
.hp-trenner { border: 0; border-top: 2px solid #e5e7eb; margin: 1.5rem 0; }
.hp-liste { display: flex; flex-direction: column; gap: 4px; margin: 0 0 1rem; }
.hp-liste-z { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; padding: 6px; border-radius: 8px; }
.hp-liste-z:hover { background: #f3f4f6; }
.hp-liste-z .hp-klein { display: block; }
.hp-liste-bild { width: 64px; height: 46px; border-radius: 6px; overflow: hidden; flex: none; display: block; }
.hp-liste-bild img { width: 100%; height: 100%; object-fit: cover; }
.hp-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.hp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.hp-fuer { background: #fae8ff; border: 1px solid #f0abfc; color: #701a75; border-radius: 9px; padding: 7px 11px; font-size: .9rem; margin-bottom: 10px; }
.hp-als { background: #fef3c7; border: 1px solid #fcd34d; color: #78350f; border-radius: 9px; padding: 8px 12px; margin-bottom: 10px; }
.hp-verw-leiste { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #f1f5f9; border-radius: 9px; padding: 6px 10px; margin-bottom: 10px; font-size: .9rem; color: #1f2937; }
.hp-verw-leiste .hp-knopf { margin-left: auto; }
.hp-art-meta { margin-bottom: 2px; }
.hp-zurueck { margin: 0 0 .6rem; }
.hp-lesen { max-width: 860px; }
.hp-lesen .hp-artikel { padding: 6px 10px; }
@media (max-width: 700px) {
    .hp-inhalt { font-size: 1rem; }
    .hp-inhalt h1 { font-size: 1.5rem; }
    .hp-galerie { grid-template-columns: repeat(2, 1fr); }
    .hp-bild-mittel img, .hp-bild-klein img { max-width: 100%; }
    .hp-kurs, .hp-ort, .hp-datei { flex-wrap: wrap; }
    .hp-kurs .hp-knopf, .hp-datei .hp-knopf { flex: 1 1 100%; min-height: 44px; }
}

/* ---------- Mitgliederbereich: Neuigkeiten ---------- */
.hp-nlay { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 12px; align-items: start; }
.hp-nliste { padding: 10px !important; }
.hp-pillen { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.hp-pillen a { padding: 4px 11px; border-radius: 99px; font-size: .85rem; border: 1px solid var(--border, #d9dee7); text-decoration: none; color: inherit; }
.hp-pillen a.on { background: var(--primary, #2563eb); color: #fff; border-color: var(--primary, #2563eb); }
.hp-nit { display: flex; gap: 10px; padding: 9px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; color: inherit; margin-bottom: 2px; }
.hp-nit:hover { background: rgba(37,99,235,.05); }
.hp-nit.on { background: rgba(37,99,235,.08); border-color: #bfdbfe; }
.hp-nit b { display: block; font-size: .95rem; line-height: 1.3; }
.hp-nit .hp-klein { display: block; margin-top: 3px; }
.hp-nit-bild { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; flex: none; display: block; }
.hp-nit-bild img { width: 100%; height: 100%; object-fit: cover; }
.hp-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--primary, #2563eb); margin-right: 5px; vertical-align: 1px; }
.hp-nlesen { padding: 20px 26px !important; }
@media (max-width: 800px) {
    .hp-nlay { grid-template-columns: 1fr; }
    .hp-nlay:not(.hp-n-offen) .hp-nlesen { display: none; }
    .hp-nlay.hp-n-offen .hp-nliste { display: none; }
    .hp-nlesen { padding: 14px !important; }
}

/* ---------- Öffentliche Homepage ---------- */
body.hp-site { margin: 0; background: #fff; color: #1f2937; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; -webkit-text-size-adjust: 100%; }
.hp-site a { color: var(--hp-farbe, #1d4ed8); }
.hp-s-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hp-s-kopf { border-bottom: 1px solid #e5e7eb; background: #fff; position: sticky; top: 0; z-index: 50; }
.hp-s-kopf .hp-s-in { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.hp-s-logo { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #1f2937 !important; min-width: 0; }
.hp-s-logo img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; flex: none; }
.hp-s-logo b { display: block; font-size: 1.15rem; line-height: 1.2; }
.hp-s-logo small { display: block; color: #6b7280; font-size: .82rem; }
.hp-s-nav { display: flex; gap: 20px; align-items: center; margin-left: auto; font-weight: 600; }
.hp-s-nav > a, .hp-s-mehr { color: #1f2937 !important; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; cursor: pointer; position: relative; }
.hp-s-nav > a.on { color: var(--hp-farbe, #1d4ed8) !important; border-color: var(--hp-farbe, #1d4ed8); }
.hp-s-unter { display: none; position: absolute; top: 100%; left: -10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; min-width: 180px; }
.hp-s-mehr:hover .hp-s-unter, .hp-s-mehr:focus-within .hp-s-unter { display: block; }
.hp-s-unter a { display: block; padding: 7px 10px; border-radius: 6px; text-decoration: none; color: #1f2937 !important; font-weight: 500; }
.hp-s-unter a:hover { background: #f3f4f6; }
.hp-s-login { border: 2px solid var(--hp-farbe, #1d4ed8) !important; border-radius: 9px; padding: 7px 14px !important; color: var(--hp-farbe, #1d4ed8) !important; }
.hp-s-nav-cb, .hp-s-burger { display: none; }
.hp-s-main { padding: 24px 0 10px; min-height: 60vh; }
.hp-s-meldung { max-width: 1168px; margin: 0 auto 14px; padding: 10px 14px; border-radius: 9px; background: #dbeafe; color: #1e40af; }
.hp-s-error { background: #fee2e2; color: #991b1b; }
.hp-s-success { background: #dcfce7; color: #166534; }
.hp-s-h1 { font-size: 1.9rem; margin: 0 0 14px; }
.hp-hero { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 16px; overflow: hidden; background: #0f2a5c; color: #fff !important; text-decoration: none; margin-bottom: 14px; min-height: 280px; }
.hp-hero-bild { display: block; min-height: 240px; }
.hp-hero-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-hero-txt { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hp-chip-weiss { background: #fff !important; color: #1e3a8a !important; border-color: #fff !important; }
.hp-hero-h { font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.hp-hero-p { opacity: .92; line-height: 1.5; }
.hp-hero-meta { font-size: .85rem; color: #bfdbfe; }
.hp-hero-weitere { display: flex; gap: 14px; flex-wrap: wrap; margin: -4px 0 18px; font-weight: 600; }
.hp-willkommen { background: linear-gradient(135deg, #eff6ff, #fff); border: 1px solid #dbeafe; border-radius: 16px; padding: 22px 26px; margin-bottom: 22px; }
.hp-willkommen h1 { margin: 0 0 6px; }
.hp-willkommen p { margin: 0; line-height: 1.6; }
.hp-s-lay { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; margin-top: 10px; }
.hp-s-titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hp-s-titelzeile h2 { margin: 0; font-size: 1.4rem; }
.hp-kat-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.hp-kat-filter a { padding: 3px 10px; border-radius: 99px; border: 1px solid #e5e7eb; text-decoration: none; font-size: .85rem; color: #374151 !important; }
.hp-kat-filter a.on { background: var(--hp-farbe, #1d4ed8); border-color: var(--hp-farbe, #1d4ed8); color: #fff !important; }
.hp-karten { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-karte { border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; text-decoration: none; color: #1f2937 !important; display: flex; flex-direction: column; transition: box-shadow .15s; background: #fff; }
.hp-karte:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.hp-karte-bild { display: block; height: 170px; }
.hp-karte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-karte-txt { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.hp-karte-h { font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.hp-karte-p { color: #4b5563; font-size: .92rem; line-height: 1.5; }
.hp-blaettern { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.hp-wid { border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.hp-wid h3 { margin: 0 0 10px; font-size: 1.05rem; }
.hp-wid p { margin: 0; line-height: 1.55; font-size: .95rem; }
.hp-wid-zeiten .hp-zeiten { border: 0; margin: 0; }
.hp-wid-zeiten td { padding: 5px 0; font-size: .88rem; }
.hp-kk { display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 12px; margin: 0 0 8px; }
.hp-kk-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.hp-kurs-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.hp-s-artikel { max-width: 820px; }
.hp-s-leer { max-width: 700px; padding-top: 30px; padding-bottom: 30px; }
.hp-s-fuss { background: #0f172a; color: #cbd5e1; margin-top: 30px; }
.hp-s-fuss .hp-s-in { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 20px 16px; font-size: .92rem; }
.hp-s-fuss a { color: #e2e8f0 !important; }
@media (max-width: 900px) {
    .hp-s-lay { grid-template-columns: 1fr; }
    .hp-hero { grid-template-columns: 1fr; }
    .hp-hero-bild { min-height: 160px; max-height: 200px; }
    .hp-hero-txt { padding: 16px; }
    .hp-hero-h { font-size: 1.4rem; }
}
@media (max-width: 760px) {
    .hp-s-kopf .hp-s-in { min-height: 60px; gap: 10px; }
    .hp-s-logo img { width: 38px; height: 38px; }
    .hp-s-logo b { font-size: 1rem; }
    .hp-s-logo small { display: none; }
    .hp-s-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 10px; cursor: pointer; }
    .hp-s-burger span { width: 24px; height: 3px; background: #1f2937; border-radius: 2px; }
    .hp-s-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; border-bottom: 1px solid #e5e7eb; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
    .hp-s-nav-cb:checked ~ .hp-s-nav { display: flex; }
    .hp-s-nav > a, .hp-s-mehr { padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
    .hp-s-unter { display: block; position: static; box-shadow: none; border: 0; padding: 4px 0 0 10px; }
    .hp-s-login { margin-top: 10px; text-align: center; }
    .hp-karten { grid-template-columns: 1fr; gap: 0; }
    .hp-karte { flex-direction: row; border: 0; border-bottom: 1px solid #f1f5f9; border-radius: 0; padding: 10px 0; gap: 10px; }
    .hp-karte-bild { width: 92px; height: 70px; border-radius: 8px; overflow: hidden; flex: none; }
    .hp-karte-txt { padding: 0; }
    .hp-karte-h { font-size: 1rem; }
    .hp-karte-p { display: none; }
    .hp-s-main { padding-top: 14px; }
}

/* Fußzeile bei kurzen Seiten unten halten, Gruppenname in Trainingszeiten nicht umbrechen */
body.hp-site { min-height: 100vh; display: flex; flex-direction: column; }
body.hp-site .hp-s-main { flex: 1 0 auto; }
.hp-zeiten td:first-child { white-space: nowrap; font-weight: 600; }
