/* ============================================================
   THEME "BW" – Designvariante Rheuma-Liga Sachsen
   ------------------------------------------------------------
   Wird NACH styles/style.css geladen und überschreibt gezielt.
   Idee: Layout-Ruhe und Typografie der Rheuma-Liga
   Baden-Württemberg, kombiniert mit der sächsischen Identität
   (Logo-Grün, Utility-Bar, Karten-Trias, Zahlenblock).

   Zum Vergleich abschaltbar: in parts/header.php die Zeile
   mit theme-bw.css auskommentieren.
   ============================================================ */

/* ------------------------------------------------------------
   1. Farb- und Formsystem
   Leitfarbe seit 24.11.2026: das Grün des Bundesverbands
   (rheuma-liga.de: #01892A, dunkel #01621E, helle Fläche
   #DAE8DB) – Wunsch des Verbandes aus Gründen des Corporate
   Designs. Vorher Petrolgrün #2E7D62 (Mischung aus Sachsen-Grün
   und BW-Petrol); die Fassung liegt als 20261124theme-bw.css
   daneben.
   Kontrast Weiß/Leitfarbe 4,55:1. Als Schrift auf Creme oder
   hellem Grün reicht die Leitfarbe nicht (4,2:1 / 4,1:1) –
   dort immer --color-primary-deep nehmen (7,0:1 / 6,8:1).
   ------------------------------------------------------------ */
:root {
    --color-primary:      #01892A;   /* Leitfarbe: Grün des Bundesverbands */
    --color-primary-deep: #01621E;   /* Fließtext-Links, kleine Schrift (7,6:1) – Dunkelgrün des Bundesverbands */
    --color-secondary:    #01621E;   /* Utility-Bar, dunkle Flächen */
    --color-teal:         #10786C;   /* Teal: nur noch Akzent der Karte 1 (Termine); das Bildband ist seit 24.11.2026 dunkelgrün */

    --color-cd-box1: #10786C;        /* Karte 1 – Teal */
    --color-cd-box2: #8A5A17;        /* Karte 2 – Bernstein (abgedunkelt, 5,9:1) */
    --color-cd-box3: #7A2638;        /* Karte 3 – Burgund */

    --color-text:       #3A3A3A;     /* BW-nahes Dunkelgrau statt Grünschwarz */
    --color-muted:      #6A6A6A;
    --color-light-gray: #EBF4EC;     /* zartes Hellgrün statt Hellblau (Farbton des Bundesverbands, vorher Mint #EAF4F0) */
    --color-mint:       #EBF4EC;
    --color-mint-deep:  #DAE8DB;     /* helle Fläche des Bundesverbands */
    --color-line:       #DCE5DD;     /* feine Trennlinien (BW-Merkmal) */
    --color-footer:     #FFFFFF;
    --color-bund:       #01892A;     /* CTA jetzt in der Leitfarbe */

    --border-radius: 3px;            /* BW ist eckig (0), hier minimal gerundet */
    --shadow: 0 1px 3px rgba(0,0,0,0.07);
}

/* ------------------------------------------------------------
   2. Grundlayout & Typografie
   BW arbeitet mit viel Weißraum, leichten Schriftschnitten und
   Überschriften in der Leitfarbe – statt fett + Versalien.
   ------------------------------------------------------------ */
body {
    background-color: #FFFFFF;
    color: var(--color-text);
    font-size: 1.0625rem;            /* 17px wie BW */
    line-height: 1.65;
}

.container { max-width: 1100px; }

h1, h2, h3,
.hero h1,
.page-header h1 {
    font-family: "FS Me W01 Light", "FS Me W01 Regular", Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

h2, h3 { color: var(--color-primary); }

h2 { font-size: 1.85rem; line-height: 1.3; margin-bottom: 0.5em; }
h3 { font-size: 1.35rem; line-height: 1.35; }

p { max-width: 68ch; }               /* ruhige Zeilenlänge */

a { color: var(--color-primary-deep); }

/* Sichtbarer Fokus für Tastaturbedienung (Barrierefreiheit) */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ------------------------------------------------------------
   3. Kopfbereich: Utility-Bar, Logo links, ruhige Navigation
   ------------------------------------------------------------ */
.utility-bar {
    background-color: var(--color-secondary);
    padding: 6px 0;
    font-size: 0.85rem;
}
.utility-link,
.utility-button {
    border-radius: 2px;
    font-size: 0.85rem;
}

.navbar {
    background: #FFFFFF;
    padding: 18px 0 0 0;
    box-shadow: none;
    border-bottom: 1px solid var(--color-line);
}

/* Logo linksbündig wie bei BW, Aktionen rechts */
.navbar-top {
    padding: 0 0 16px 0;
    gap: 20px;
}
.navbar-top .logo { order: 1; margin-right: auto; }
.navbar-top .btn-contact { order: 2; }
.navbar-top .navbar-top-right { order: 3; }

.logo img { max-height: 64px; }

.navbar-top-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Nur Farbe – die Sichtbarkeit regelt weiterhin der Kopfbereich selbst
   (auf großen Bildschirmen ausgeblendet, weil die Utility-Bar die Suche führt) */
.nav-search-link { color: var(--color-primary); }

/* Hauptnavigation: linksbündig, Versalien klein, feine Linie */
.nav-menu ul {
    justify-content: flex-start;
    gap: 28px;
    border-top: 1px solid var(--color-line);
    margin-top: 0;
    padding: 12px 0 10px;
}
.nav-menu a {
    font-family: "FS Me W01 Regular", Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.nav-menu a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.nav-menu .menu-item-has-children > a::after { top: 10px; font-size: 0.5rem; }

.nav-menu .sub-menu {
    border-radius: 0;
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    padding: 6px 0;
}
.nav-menu .sub-menu a {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    border-bottom: none;
}

/* ------------------------------------------------------------
   4. Buttons: eckig, Versalien, ruhige Bewegung (BW-Handschrift)
   ------------------------------------------------------------ */
.btn {
    border-radius: 2px;
    font-family: "FS Me W01 Regular", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 22px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid,
.btn-contact {
    background-color: var(--color-primary);
    color: #FFFFFF;
}
.btn-solid:hover,
.btn-contact:hover {
    background-color: var(--color-primary-deep);
    transform: none;                 /* kein Anheben – BW bleibt ruhig */
    box-shadow: none;
}

.card .btn-outline,
.card .btn-outline-teal {
    border: 1px solid var(--color-primary);
    color: var(--color-primary-deep);
    background: #FFFFFF;
    display: block;
    width: 100%;
}
.card .btn-outline:hover,
.card .btn-outline-teal:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
    transform: none;
}

/* ------------------------------------------------------------
   5. Hero: großes Bild, Textband darunter (BW-Prinzip)
   ------------------------------------------------------------ */
.hero {
    flex-direction: column;
    justify-content: flex-end;
    min-height: 600px;
    background-image:
        linear-gradient(180deg, rgba(20,45,35,0.25) 0%, rgba(20,45,35,0.05) 40%, rgba(20,45,35,0.10) 100%),
        url('../media/startseite1.jpg');
}

.hero-banner-container {
    flex: 0 0 auto;
    width: 100%;
    background-color: var(--color-primary);
    padding: 0;
    text-align: left;
    justify-content: flex-start;
}

.hero-content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px 34px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.15;
    text-shadow: none;
}
.hero-titel2 {
    font-size: 0.5em;
    opacity: 1;
    margin-top: 0.15em;
}
.hero-tagline {
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: none;
    margin: 0.6em 0 1.2em;
    max-width: 60ch;
}
.hero-cta { justify-content: flex-start; gap: 12px; }

.btn-hero {
    border-radius: 2px;
    font-family: "FS Me W01 Regular", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    border-width: 1px;
}
.btn-hero-primary {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--color-primary-deep);
}
.btn-hero-primary:hover {
    background-color: transparent;
    border-color: #FFFFFF;
    color: #FFFFFF;
    transform: none;
    box-shadow: none;
}
/* zweite Aktion als Umriss-Variante */
.hero-cta .btn-hero-primary + .btn-hero-primary {
    background-color: transparent;
    color: #FFFFFF;
}
.hero-cta .btn-hero-primary + .btn-hero-primary:hover {
    background-color: #FFFFFF;
    color: var(--color-primary-deep);
}

/* ------------------------------------------------------------
   6. Karten: farbiger Kopfbalken (BW-Muster), im Übrigen die
      Proportionen der bisherigen Sachsen-Karten – jede Karte
      führt ihre Akzentfarbe konsequent durch (Icon, Zahl,
      Aufzählung, Schaltfläche).
   ------------------------------------------------------------ */
main.container { padding-top: 10px; padding-bottom: 56px; }

.card-grid {
    background-color: transparent;   /* grüne Bühne entfällt */
    padding: 0;
    gap: 30px;
    margin-top: 44px;
}

/* Akzentfarbe je Karte – einmal gesetzt, überall verwendet */
.card              { --karte: var(--color-primary); }
.card-color-1      { --karte: var(--color-cd-box1); }
.card-color-2      { --karte: var(--color-cd-box2); }
.card-color-3      { --karte: var(--color-cd-box3); }

.card {
    background-color: #FFFFFF;
    border: 1px solid var(--color-line);
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}
.card:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.card-content { padding: 0; display: flex; flex-direction: column; }

/* Kopfbalken: gleiche Höhe in allen drei Karten */
.card-header {
    background-color: var(--karte);
    color: #FFFFFF;
    margin: 0 0 22px;
    padding: 18px 24px;
    gap: 16px;
    min-height: 86px;
    align-items: center;
}

/* Kräftiger weißer Kreis mit Icon in der Kartenfarbe – wie bisher,
   nur seitenverkehrt, weil der Balken jetzt farbig ist */
.card-icon {
    width: 44px;
    height: 44px;
    background-color: #FFFFFF !important;
    color: var(--karte);
    box-shadow: none;
    border-radius: 50%;
}
.card-icon svg { width: 22px; height: 22px; }

.card h2 {
    font-family: "FS Me W01 Light", "FS Me W01 Regular", Arial, sans-serif;
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
}
.card-heading { flex: 1 1 auto; min-width: 0; }

/* .card statt .card-subtitle allein: sonst gewinnt `.card p { margin-bottom: 20px }`
   aus style.css – der Untertitel bekäme unten 20 px Luft und der Text stünde
   gegenüber dem Icon-Kreis zu hoch. */
.card .card-subtitle {
    display: block;
    margin: 2px 0 0;
    max-width: none;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
}

/* Inhalt der Karte bekommt seitliche Luft (Balken bleibt randlos) */
.card-content > *:not(.card-header) {
    padding-left: 24px;
    padding-right: 24px;
}
.card p { max-width: none; }

/* Aufzählungen und Zahl in der Farbe der jeweiligen Karte */
.card .link-list li::before { color: var(--karte); opacity: 1; }
.card .gruppen-anzahl {
    color: var(--karte);
    font-family: "FS Me W01 Light", "FS Me W01 Regular", Arial, sans-serif;
    font-weight: 400;
    font-size: 3rem;
}
.card .gruppen-highlight { margin: 0 0 0.75rem; }
.card .gruppen-label {
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--color-muted);
    opacity: 1;
}
.card .gruppen-schnellauswahl { margin-top: 0.75rem; }

/* Auswahlfeld im gleichen eckigen Stil wie die übrigen Bedienelemente */
.card .gruppe-dropdown {
    border: 1px solid #C8D4CA;
    border-radius: 2px;
    padding: 0.7rem 2.5rem 0.7rem 0.9rem;
}
.card .gruppe-dropdown:hover { border-color: var(--karte); }
.card .gruppe-dropdown:focus {
    border-color: var(--karte);
    box-shadow: 0 0 0 3px rgba(1,137,42,0.15);
}

/* Schaltfläche: kompakt und mittig wie bisher, nur eckig und in Versalien */
.card-button-container {
    margin-top: auto;
    padding: 22px 24px 24px;
    text-align: center;
}
.card .btn-outline,
.card .btn-outline-teal {
    display: inline-block;
    width: auto;
    border: 1px solid var(--karte);
    color: var(--karte);
    background: #FFFFFF;
    padding: 11px 24px;
}
.card .btn-outline:hover,
.card .btn-outline-teal:hover {
    background-color: var(--karte);
    color: #FFFFFF;
    transform: none;
}
.card .btn-outline:focus-visible,
.card .btn-outline-teal:focus-visible {
    outline: 3px solid var(--karte);
    outline-offset: 3px;
}

/* ------------------------------------------------------------
   6b. Willkommensblock: leichte Überschrift, Text links,
       Aktion rechts – das redaktionelle Herzstück bei BW
   ------------------------------------------------------------ */
.welcome-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: start;
    margin-top: 56px;
    padding-top: 8px;
}
.welcome-block h2 {
    font-size: 2.1rem;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: 0.7em;
}
.welcome-subline {
    display: block;
    color: var(--color-text);
}
.welcome-text p {
    margin-bottom: 1.1em;
    max-width: 64ch;
}
.welcome-action { padding-top: 6px; }
.welcome-action .btn { white-space: nowrap; }

/* ------------------------------------------------------------
   7. Themenband: Bild mit Farbfläche und Aktion (BW-Muster)
   ------------------------------------------------------------ */
.topic-band {
    position: relative;
    margin: 56px 0 0;
    background-size: cover;
    background-position: center;
    min-height: 320px;
    display: flex;
    align-items: center;
}
.topic-band::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(1,98,30,0.96) 0%,
        rgba(1,98,30,0.92) 48%,
        rgba(1,98,30,0.20) 80%,
        rgba(1,98,30,0) 100%);
}
.topic-band-inner {
    position: relative;
    padding: 44px 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    color: #FFFFFF;
}
.topic-band h2 {
    color: #FFFFFF;
    font-size: 2.1rem;
    margin-bottom: 0.35em;
}
.topic-band p {
    max-width: 46ch;
    margin-bottom: 1.4em;
    font-size: 1.05rem;
}
.btn-ghost {
    display: inline-block;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    background: transparent;
}
.btn-ghost:hover {
    background: #FFFFFF;
    color: var(--color-primary-deep);   /* Band seit 24.11.2026 im Dunkelgrün des Bundesverbands (vorher Teal) */
}

/* ------------------------------------------------------------
   8. Zahlenblock: ruhige Fläche mit feinen Trennlinien
   ------------------------------------------------------------ */
.stats {
    background-color: var(--color-mint);
    border-radius: 0;
    box-shadow: none;
    margin-top: 56px;
    padding: 46px 30px;
    gap: 0;
}
.stats .stat + .stat { border-left: 1px solid var(--color-mint-deep); }
.stat-number {
    font-family: "FS Me W01 Light", "FS Me W01 Regular", Arial, sans-serif;
    font-weight: 400;
    font-size: 3.4rem;
    color: var(--color-primary);
}
.stat-label {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1rem;
    color: var(--color-muted);
    opacity: 1;
}

/* Listen in Karten */
.link-list li::before { color: var(--color-primary); opacity: 1; }
.link-list a { color: var(--color-text); }
.link-list a:hover { color: var(--color-primary-deep); }

/* ------------------------------------------------------------
   9. Unterseiten
   ------------------------------------------------------------ */
.page-header {
    background-color: var(--color-mint);
    color: var(--color-text);
    padding: 44px 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-mint-deep);
}
.page-header h1 {
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--color-primary);
}

.main-content {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 48px;
}

.contact-details h2,
.contact-form h2 {
    font-family: "FS Me W01 Light", "FS Me W01 Regular", Arial, sans-serif;
    font-weight: 400;
    font-size: 1.7rem;
    color: var(--color-primary);
}
.contact-details a,
.contact-form a { color: var(--color-primary-deep); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    border-radius: 2px;
    border-color: #C8D4CA;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(1,137,42,0.15);
}

.group-grid a {
    border-radius: 0;
    background-color: #FFFFFF;
    border: 1px solid var(--color-line);
    font-family: "FS Me W01 Regular", Arial, sans-serif;
    font-size: 1.05rem;
}
.group-grid a:hover {
    background-color: var(--color-mint);
    border-color: var(--color-primary);
    color: var(--color-primary-deep);
    transform: none;
    box-shadow: none;
}

/* ------------------------------------------------------------
   10. Footer: hell und aufgeräumt (BW), grüne Spaltentitel
   ------------------------------------------------------------ */
footer {
    background-color: #FFFFFF;
    color: var(--color-text);
    border-top: 4px solid var(--color-primary);
    padding: 48px 20px 24px;
}
footer p { font-size: 0.95rem; }
footer a { color: var(--color-primary-deep); }

.footer-brand {
    text-align: left;
    border-bottom: 1px solid var(--color-line);
    padding-bottom: 20px;
    margin-bottom: 32px;
}
.footer-org-name {
    font-family: "FS Me W01 Light", "FS Me W01 Regular", Arial, sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: 0;
}
.footer-org-line2 { color: var(--color-text); font-size: 0.75em; opacity: 1; }

.footer-col-title {
    font-family: "FS Me W01 Light", "FS Me W01 Regular", Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
    color: var(--color-primary-deep);   /* auf Creme: Leitfarbe nur 4,2:1, Dunkelgrün 7,0:1 */
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--color-line);
}

.footer-sprechzeiten-time { opacity: 1; color: var(--color-muted); }

.footer-bottom {
    border-top: 1px solid var(--color-line);
    padding-top: 20px;
    text-align: left;
}
.footer-nav-links a { color: var(--color-primary-deep); }
.footer-nav-links a:not(:first-child)::before { opacity: 0.35; }
.footer-stand { color: var(--color-muted); opacity: 1; }

/* Telefon-/Mail-Symbole in Grün statt Weiß (heller Footer) */
footer a[href^="tel:"]::before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2301621E'%3e%3cpath d='M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.6 17.6 0 0 0 4.168 6.608 17.6 17.6 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.68.68 0 0 0-.58-.122l-2.19.547a1.75 1.75 0 0 1-1.657-.459L5.482 8.062a1.75 1.75 0 0 1-.46-1.657l.548-2.19a.68.68 0 0 0-.122-.58L3.654 1.328z'/%3e%3c/svg%3e");
}
footer a[href^="mailto:"]::before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2301621E'%3e%3cpath d='M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414zM0 4.697V12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4.697l-5.875 3.525a.5.5 0 0 1-.576 0z'/%3e%3c/svg%3e");
}

/* ------------------------------------------------------------
   11. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .navbar { padding: 12px 0; border-bottom: 1px solid var(--color-line); }
    .navbar-top .logo { order: 1; }
    .navbar-top .btn-contact { order: 2; margin-left: auto; }
    .navbar-top .navbar-top-right { order: 3; margin-left: 0; }
    .logo img { max-height: 52px; }

    .nav-menu a {
        font-size: 1.15rem;
        text-transform: none;
        letter-spacing: 0;
        border-bottom: 1px solid var(--color-line);
    }
    .nav-menu a:hover { border-bottom-color: var(--color-line); }

    .hero { min-height: 460px; }
    .hero h1 { font-size: 2rem; }

    .stats { grid-template-columns: 1fr; padding: 32px 20px; }
    .stats .stat + .stat {
        border-left: none;
        border-top: 1px solid var(--color-mint-deep);
        padding-top: 24px;
        margin-top: 24px;
    }
    .topic-band::before {
        background: linear-gradient(180deg,
            rgba(1,98,30,0.94) 0%,
            rgba(1,98,30,0.90) 60%,
            rgba(1,98,30,0.88) 100%);
    }
    .topic-band p { max-width: none; }

    .welcome-block { grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
    .welcome-block h2 { font-size: 1.75rem; }
}

/* Tablet: zwei statt drei enger Spalten – die Kopfbalken brechen sonst um */
@media (min-width: 768px) and (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid .card:last-child { grid-column: 1 / -1; }
    .card-grid .card:last-child .card-content > *:not(.card-header) { max-width: 60ch; }
}

@media (max-width: 767px) {
    body { font-size: 1rem; }
    .hero { min-height: 420px; }
    .hero-content { padding: 24px 16px 28px; max-width: 100%; }
    .hero h1 { font-size: 1.7rem; }
    .hero-tagline { font-size: 1.05rem; }
    .hero-cta { gap: 10px; }
    .btn-hero { padding: 11px 18px; font-size: 0.85rem; }

    .card-grid { padding: 0; gap: 20px; margin-top: 32px; }
    .card { padding: 0; border-top: none; }
    .card-header { padding: 15px 18px; min-height: 0; margin-bottom: 18px; }
    .card-icon { width: 40px; height: 40px; }
    .card-icon svg { width: 21px; height: 21px; }
    .card h2 { font-size: 1.2rem; letter-spacing: 0; }
    .card-content > *:not(.card-header) { padding-left: 18px; padding-right: 18px; }
    .card-button-container { padding: 22px 18px; }

    .topic-band { min-height: 0; }
    .topic-band-inner { padding: 32px 16px; }
    .topic-band h2 { font-size: 1.6rem; }

    .stats { margin-top: 32px; }
    .page-header { padding: 28px 0 26px; margin-bottom: 28px; }
    .page-header h1 { font-size: 1.8rem; }
    .stat-number { font-size: 2.6rem; }

    footer { padding: 36px 16px 20px; }
    .footer-col-title { font-size: 1.2rem; }
}

/* ------------------------------------------------------------
   12. Inhaltsbausteine der übernommenen Seiten (Migration 11/2026)
   Videos, Tondateien, Logos im Text, Kästen der Geschäftsstelle
   und die Weggabelung „Mitglied werden“. Die Klassen stehen in
   den Texten der Datenbank (content_7_seite).
   ------------------------------------------------------------ */

/* Videos (Bunny): feste Lesebreite statt voller Seitenbreite */
.video-liste { max-width: 760px; }
.video-liste .video-rahmen + .video-rahmen { margin-top: 28px; }
.video-rahmen {
    background: #10201A;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Tondateien und kleine Logos im Fließtext */
.block-text audio { display: block; width: 100%; max-width: 520px; }
.block-text .inhalt-logo {
    display: inline-block;
    width: auto; height: auto;
    max-width: 240px; max-height: 96px;
    margin: 6px 14px 10px 0;
    vertical-align: middle;
}

/* Geschäftsstelle: Anschrift und Sprechzeiten nebeneinander, Mitarbeiterinnen als Raster */
.info-spalten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 760px;
    margin-bottom: 2rem;
}
.info-kasten {
    background: var(--color-mint);
    border-left: 4px solid var(--color-primary);
    padding: 18px 22px 20px;
}
.block-text .info-kasten h2 {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: 1.25rem;
}
.block-text .personen-liste {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    max-width: 760px;
}
.block-text .personen-liste li {
    margin: 0;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-top: 3px solid var(--color-primary);
}
.block-text ul.personen-liste li::before { content: none; }

/* Mitglied werden: drei Wege (Online, PDF am Bildschirm, Papier) */
.ma-intro { max-width: 860px; }
.ma-wege { max-width: 860px; margin: 26px 0; }
.ma-karte {
    position: relative;
    margin: 0 0 18px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--border-radius);
}
.block-text .ma-karte h2 {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    font-size: 1.3rem;
}
.ma-karte p { margin: 8px 0; }
.ma-empfohlen { border: 2px solid var(--color-primary); background: var(--color-mint); }
.ma-badge {
    position: absolute; top: -13px; right: 18px;
    padding: 3px 14px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.3px;
    border-radius: var(--border-radius);
}
.block-text .ma-schritte { list-style: none; margin: 14px 0; padding: 0; counter-reset: schritt; }
.block-text .ma-schritte li { counter-increment: schritt; position: relative; margin: 0; padding: 2px 0 10px 44px; }
.block-text ol.ma-schritte li::before,
.ma-schritte li::before {
    content: counter(schritt);
    position: absolute; left: 0; top: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700; text-align: center; line-height: 30px;
}
.block-text a.ma-btn,
.block-text a.ma-btn-nebenweg {
    display: inline-block;
    margin: 8px 0 2px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    border-radius: 2px;
}
.block-text a.ma-btn { padding: 14px 30px; background: var(--color-primary); color: #fff; }
.block-text a.ma-btn:hover,
.block-text a.ma-btn:focus { background: var(--color-primary-deep); color: #fff; }
.block-text a.ma-btn-nebenweg {
    padding: 10px 20px;
    font-size: 0.9rem;
    background: #fff;
    color: var(--color-primary-deep);
    border: 2px solid var(--color-primary);
}
.block-text a.ma-btn-nebenweg:hover,
.block-text a.ma-btn-nebenweg:focus { background: var(--color-mint); }
.ma-braucht { color: var(--color-muted); font-size: 0.9rem; margin: 10px 0 0; }
.ma-nebenwege { display: block; }
@media (min-width: 720px) {
    .ma-nebenwege { display: flex; }
    .ma-nebenwege .ma-karte + .ma-karte { margin-left: 18px; }
    .ma-nebenwege .ma-karte { flex: 1 1 0; min-width: 0; }
}
.ma-beitraege,
.ma-hilfe {
    max-width: 860px;
    margin: 26px 0;
    padding: 16px 22px;
    background: var(--color-mint);
    border: 1px solid var(--color-mint-deep);
    border-radius: var(--border-radius);
}
.block-text .ma-beitraege h2 { margin: 2px 0 10px; padding: 0; border: 0; font-size: 1.2rem; }
.ma-beitraege table { width: 100%; border-collapse: collapse; }
.ma-beitraege td { padding: 7px 4px; border-bottom: 1px solid var(--color-mint-deep); vertical-align: top; }
.ma-beitraege tr:last-child td { border-bottom: 0; }
.ma-beitraege td.b { text-align: right; white-space: nowrap; font-weight: 700; color: var(--color-primary-deep); }
.ma-beitraege .klein { color: var(--color-muted); font-size: 0.9rem; }

@media (max-width: 767px) {
    .ma-karte { padding: 20px 16px; }
    .ma-badge { right: 12px; }
    .ma-beitraege td.b { white-space: normal; }
}

/* Sehr schmale Smartphones (320 px): Logo, Suche und Menüknopf passten nicht
   nebeneinander – die Seite ließ sich 18 px seitlich schieben. */
@media (max-width: 359px) {
    .navbar-top { gap: 8px; }
    .logo img { max-height: 44px; }
}

/* ============================================================
   13. Herzlichkeit (17.11.2026)
   Der Auftritt wirkte nüchtern. Wärme kommt über fünf Mittel:
   Menschen-Fotos, einen warmen Grundton (Creme) mit einem
   Sonnenton als Schmuckfarbe, weiche Ecken und Bögen, die
   Zeichnung „Baum in der Hand“ und sanfte Bewegung beim Zeigen.
   Zum Vergleich mit dem Stand davor: diesen Abschnitt bis zum
   Dateiende auskommentieren (Fassung davor: 20261117theme-bw.css).
   ============================================================ */
:root {
    --color-warm:      #FBF6EE;   /* Creme: Flächen */
    --color-warm-deep: #F1E6D3;   /* Creme, kräftiger: Linien und Formen */
    --color-sun:       #E8A44A;   /* Sonnenton: nur Schmuck, nie Textfarbe */
    --rund:            16px;      /* Bilder, Bänder, Kästen */
    --rund-klein:      8px;       /* Schaltflächen, Felder */
    --schatten-weich:  0 10px 30px rgba(1, 98, 30,0.10);
}

/* --- Schaltflächen und Felder: weiche statt harter Ecken --- */
.btn,
.btn-hero,
.btn-contact,
.card .btn-outline,
.card .gruppe-dropdown,
.block-text a.ma-btn,
.block-text a.ma-btn-nebenweg,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea { border-radius: var(--rund-klein); }

/* --- Hero: geschwungener Übergang vom Bild ins Farbband, Sonnenstrich --- */
.hero-banner-container { position: relative; }
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
    .hero-banner-container::before {
        content: "";
        position: absolute;
        left: 0; right: 0;
        bottom: 100%;
        height: 56px;
        margin-bottom: -1px;
        background-color: var(--color-primary);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 56%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 56V30C200 4 420 0 700 22s520 30 740-6v40z%22/%3E%3C/svg%3E") center / 100% 100% no-repeat;
                mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 56%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 56V30C200 4 420 0 700 22s520 30 740-6v40z%22/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    }
}
.hero-content { padding-top: 14px; }
.hero-tagline { position: relative; padding-left: 20px; }
.hero-tagline::before {
    content: "";
    position: absolute;
    left: 0; top: 0.2em; bottom: 0.2em;
    width: 4px;
    border-radius: 4px;
    background-color: var(--color-sun);
}

/* --- Überschriften der Startseiten-Abschnitte: kurzer Sonnenstrich --- */
.welcome-block h2::after,
.themen > h2::after,
.leitbild h2::after {
    content: "";
    display: block;
    width: 56px; height: 4px;
    margin-top: 14px;
    border-radius: 4px;
    background-color: var(--color-sun);
}

/* --- Willkommen: Text und Fotos nebeneinander --- */
.welcome-block {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
    margin-top: 64px;
}
.welcome-fotos {
    position: relative;
    padding: 0 0 46px 46px;
}
.welcome-fotos::before {               /* Cremefläche hinter den Fotos */
    content: "";
    position: absolute;
    right: -22px; top: -22px;
    width: 72%; height: 78%;
    border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
    background-color: var(--color-warm-deep);
}
.welcome-fotos img {
    position: relative;
    display: block;
    height: auto;
    box-shadow: var(--schatten-weich);
}
.welcome-foto-gross {
    width: 100%;
    border-radius: 28px 28px 28px 6px;
}
.welcome-fotos .welcome-foto-klein {
    position: absolute;
    left: 0; bottom: 0;
    width: 38%;
    border: 6px solid #FFFFFF;
    border-radius: 50%;
}

/* --- Karten: weiche Ecken, sanfter Schatten, leichtes Anheben --- */
.card {
    border-radius: var(--rund);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(1, 98, 30,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--schatten-weich);
}

/* --- Bildkacheln „Leben mit Rheuma“ --- */
.themen { margin-top: 64px; }
.themen > h2 { font-size: 2.1rem; margin-bottom: 1.1em; }
.themen-raster {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.themen-raster li { margin: 0; padding: 0; }
.themen-raster li::before { content: none; }
.themen-kachel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #FFFFFF;
    border-radius: var(--rund);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(1, 98, 30,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.themen-bild { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.themen-bild img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.themen-titel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 18px;
    font-family: "FS Me W01 Regular", Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--color-primary-deep);
    border-top: 4px solid var(--color-sun);
}
.themen-titel::after { content: "›"; margin-left: 10px; font-size: 1.5rem; line-height: 1; transition: transform 0.25s ease; }
.themen-kachel:hover { transform: translateY(-4px); box-shadow: var(--schatten-weich); }
.themen-kachel:focus-visible { transform: translateY(-4px); box-shadow: var(--schatten-weich); }
.themen-kachel:hover .themen-bild img { transform: scale(1.05); }
.themen-kachel:hover .themen-titel::after { transform: translateX(4px); }

/* --- Themenband und Zahlenblock: gerundet --- */
.topic-band { border-radius: var(--rund); overflow: hidden; margin-top: 64px; }
.stats { border-radius: var(--rund); }

/* --- Leitbild: Zeichnung „Baum in der Hand“ auf Creme --- */
.leitbild {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    margin-top: 64px;
    padding: 40px 48px;
    background-color: var(--color-warm);
    border-radius: var(--rund);
}
.leitbild-bild { display: block; width: 100%; height: auto; }
.leitbild h2 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.2em; color: var(--color-primary-deep); /* auf Creme, 20 px: Dunkelgrün 7,0:1 */ }
.leitbild blockquote { margin: 0 0 1.6em; padding: 0; border: 0; }
.leitbild blockquote p {
    max-width: 30ch;
    font-family: "FS Me W01 Light", "FS Me W01 Regular", Arial, sans-serif;
    font-size: 1.9rem;
    line-height: 1.35;
    color: var(--color-primary-deep);
}

/* --- Fuss: warmer Grund, freundlicher Schlusssatz --- */
footer { background-color: var(--color-warm); margin-top: 72px; }
footer .footer-gruss {
    font-family: "FS Me W01 Light", "FS Me W01 Regular", Arial, sans-serif;
    font-size: 1.7rem;
    line-height: 1.3;
    color: var(--color-primary-deep);
    margin: 0 0 18px;
}
.footer-brand,
.footer-bottom { border-color: var(--color-warm-deep); }

/* --- Unterseiten: weiche Kreise im Kopf, gerundete Bilder, Sonnenstrich --- */
.hero-subpage { position: relative; overflow: hidden; }
.hero-subpage::after {
    content: "";
    position: absolute;
    right: -70px; top: -90px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 78%, rgba(232, 164, 74, 0.55) 0, rgba(232, 164, 74, 0.55) 26px, transparent 27px),
        radial-gradient(circle, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0.42) 60%, transparent 61%);
    pointer-events: none;
}
.hero-subpage .container { position: relative; z-index: 1; }

.block-image a,
.page-banner img { border-radius: var(--rund); }
.block-text h2 { border-bottom: 0; padding-bottom: 0; }
.block-text h2::after {
    content: "";
    display: block;
    width: 48px; height: 3px;
    margin-top: 10px;
    border-radius: 3px;
    background-color: var(--color-sun);
}
.block-text .ma-karte h2::after,
.block-text .ma-beitraege h2::after,
.block-text .info-kasten h2::after { content: none; }

.info-kasten { border-radius: 0 var(--rund) var(--rund) 0; background-color: var(--color-warm); }
.block-text .personen-liste li,
.ma-karte,
.ma-beitraege,
.ma-hilfe,
.video-rahmen { border-radius: var(--rund); }
.block-text .personen-liste li { border-top-color: var(--color-sun); }
.ma-hilfe { background-color: var(--color-warm); border-color: var(--color-warm-deep); }
.ma-badge { border-radius: 999px; }

/* --- Wer weniger Bewegung wünscht, bekommt keine --- */
@media (prefers-reduced-motion: reduce) {
    .card, .themen-kachel, .themen-bild img, .themen-titel::after { transition: none; }
    .card:hover, .themen-kachel:hover { transform: none; }
    .themen-kachel:hover .themen-bild img { transform: none; }
}

@media (max-width: 991px) {
    .themen-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .welcome-block { grid-template-columns: 1fr; gap: 40px; }
    .welcome-fotos { max-width: 520px; }
}
@media (max-width: 767px) {
    .hero-banner-container::before { height: 30px; }
    .welcome-block { margin-top: 44px; }
    .welcome-fotos { padding: 0 0 34px 28px; }
    .welcome-fotos::before { right: -10px; top: -14px; }
    .themen, .leitbild, .topic-band { margin-top: 44px; }
    .themen > h2 { font-size: 1.75rem; }
    .themen-raster { gap: 14px; }
    .themen-titel { padding: 12px 12px 14px; font-size: 1rem; }
    .leitbild { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; }
    .leitbild-bild { width: 120px; }
    .leitbild blockquote p { font-size: 1.45rem; }
    footer .footer-gruss { font-size: 1.45rem; }
    .hero-subpage::after { width: 220px; height: 220px; right: -80px; top: -80px; }
    footer { margin-top: 48px; }
}
@media (max-width: 359px) {
    .themen-raster { grid-template-columns: 1fr; }
}

/* --- Unterseiten-Kopf: sanft gebogene Unterkante; Inhaltsseiten in Creme → Mint mit Sonnenlinie --- */
.hero-subpage { border-radius: 0 0 50% 50% / 0 0 26px 26px; }
.hero-seite,
.hero-uebersicht {
    background: linear-gradient(115deg, var(--color-warm) 0%, var(--color-warm) 35%, var(--color-mint) 100%);
    border-bottom: 4px solid var(--color-sun);
}
.hero-seite::before,
.hero-uebersicht::before { background-image: none; }
.hero-seite h1,
.hero-uebersicht h1 { color: var(--color-primary-deep); }
.hero-subpage::after {
    background:
        radial-gradient(circle at 20% 50%, rgba(232, 164, 74, 0.6) 0, rgba(232, 164, 74, 0.6) 22px, transparent 23px),
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0.5) 60%, transparent 61%);
}
@media (max-width: 767px) {
    .hero-subpage { border-radius: 0 0 50% 50% / 0 0 14px 14px; }
    .hero-subpage::after {
        background:
            radial-gradient(circle at 22% 56%, rgba(232, 164, 74, 0.6) 0, rgba(232, 164, 74, 0.6) 14px, transparent 15px),
            radial-gradient(circle, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0.5) 60%, transparent 61%);
    }
}

/* --- Schmale Bildschirme: Kacheltitel umbrechen statt abschneiden --- */
.themen-titel { min-width: 0; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 767px) {
    .themen-titel::after { content: none; }
}

/* --- 320 px: Filter der Terminseite und Felder der Kontaktseite ragten über den Rand --- */
@media (max-width: 359px) {
    .filter-item,
    .filter-select,
    .form-row,
    .form-row .form-group { min-width: 0; max-width: 100%; box-sizing: border-box; }
    .filter-select { width: 100%; }
}

/* --- Feinschliff --- */
/* Kreis im Kopf der farbigen Unterseiten (Termine, Neuigkeiten, Gruppen) zurückhaltender */
.hero-subpage::after {
    background:
        radial-gradient(circle at 20% 50%, rgba(232, 164, 74, 0.75) 0, rgba(232, 164, 74, 0.75) 22px, transparent 23px),
        radial-gradient(circle, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 60%, transparent 61%);
}
.hero-seite::after,
.hero-uebersicht::after {
    background:
        radial-gradient(circle at 20% 50%, rgba(232, 164, 74, 0.6) 0, rgba(232, 164, 74, 0.6) 22px, transparent 23px),
        radial-gradient(circle, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0.55) 60%, transparent 61%);
}
/* Kacheltitel: Trennstellen stehen als weiche Trennzeichen in der Vorlage */
.themen-titel { overflow-wrap: break-word; }
@media (max-width: 767px) {
    .themen-titel { font-size: 0.95rem; padding: 11px 10px 13px; }
    .hero-subpage::after {
        background:
            radial-gradient(circle at 22% 56%, rgba(232, 164, 74, 0.75) 0, rgba(232, 164, 74, 0.75) 14px, transparent 15px),
            radial-gradient(circle, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 60%, transparent 61%);
    }
    .hero-seite::after,
    .hero-uebersicht::after {
        background:
            radial-gradient(circle at 22% 56%, rgba(232, 164, 74, 0.6) 0, rgba(232, 164, 74, 0.6) 14px, transparent 15px),
            radial-gradient(circle, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0.55) 60%, transparent 61%);
    }
}
@media (max-width: 359px) {
    .filter-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {
    .filter-actions { flex-wrap: wrap; }
    .filter-actions .btn { flex: 1 1 100%; min-width: 0; }
}

/* ============================================================
   14. Unterseiten: sympathische Elemente (17.11.2026)
   Orientierung im Kopf, grösserer Einstieg, freundliche Listen,
   Bilder mit Cremefläche, Download-Schaltflächen, „Mehr aus …“
   und der Abschluss „Haben Sie noch Fragen?“.
   ============================================================ */

/* --- Bereichszeile über dem Seitentitel --- */
.hero-bereich {
    margin: 0 0 0.55rem;
    max-width: none;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-bereich a {
    display: inline-block;
    padding-left: 22px;
    color: var(--color-primary-deep);
    text-decoration: none;
    background: radial-gradient(circle at 6px 50%, var(--color-sun) 0, var(--color-sun) 6px, transparent 7px) no-repeat;
}
.hero-bereich a:hover { text-decoration: underline; }
.hero-bereich a:focus-visible { text-decoration: underline; }

/* --- Einstieg: der erste Absatz etwas grösser und leichter --- */
.page-article > .content-block:first-child .block-text > p:first-child {
    font-family: "FS Me W01 Light", "FS Me W01 Regular", Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* --- Überschriften in den Farben des Designs --- */
.block-text h2 { color: var(--color-primary-deep); font-weight: 400; }
.block-text h3 { color: var(--color-primary); font-weight: 400; }
.block-text h4 { color: var(--color-text); }

/* --- Listen: Sonnenpunkte statt schwarzer Punkte --- */
.block-text ul:not([class]) > li::marker { color: var(--color-sun); font-size: 1.25em; }
.block-text ol:not([class]) > li::marker { color: var(--color-primary); font-weight: 700; }
.block-text ul:not([class]) > li,
.block-text ol:not([class]) > li { padding-left: 4px; margin-bottom: 0.35em; }

/* --- Bilder neben dem Text: weicher Schatten, Cremefläche dahinter --- */
.block-image { position: relative; z-index: 0; }
.block-image a { box-shadow: var(--schatten-weich); }
.position-rechts .block-image::before,
.position-links .block-image::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -16px;
    width: 62%; height: 62%;
    border-radius: 42% 58% 55% 45% / 55% 45% 58% 42%;
    background-color: var(--color-warm-deep);
}
.position-rechts .block-image::before { right: -16px; }
.position-links .block-image::before { left: -16px; }
.block-image figcaption { color: var(--color-muted); font-style: normal; font-size: 0.88rem; }

/* --- Downloads (PDF) als Schaltfläche mit Pfeil --- */
.block-text a[href$=".pdf"]:not([class]) {
    display: inline-block;
    margin: 4px 0;
    padding: 9px 18px 9px 44px;
    border: 2px solid var(--color-primary);
    border-radius: var(--rund-klein);
    background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%2301621E%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3v12m0 0l-5-5m5 5l5-5M5 20h14%22/%3E%3C/svg%3E") 14px 50% / 20px 20px no-repeat;
    color: var(--color-primary-deep);
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.block-text a[href$=".pdf"]:not([class]):hover { background-color: var(--color-mint); }
.block-text a[href$=".pdf"]:not([class]):focus-visible { background-color: var(--color-mint); }

/* --- „Mehr aus …“: die übrigen Themen des Bereichs als runde Marken --- */
.weitere-themen { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--color-line); }
.weitere-themen h2 {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 16px;
}
.weitere-themen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.weitere-themen li { margin: 0 10px 10px 0; padding: 0; }
.weitere-themen li::before { content: none; }
.weitere-themen a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background-color: var(--color-mint);
    color: var(--color-primary-deep);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.weitere-themen a:hover { background-color: var(--color-primary); color: #FFFFFF; }
.weitere-themen a:focus-visible { background-color: var(--color-primary); color: #FFFFFF; }

/* --- Abschluss: „Haben Sie noch Fragen?“ mit dem Herz aus Menschen --- */
.seiten-abschluss {
    display: flex;
    align-items: center;
    margin-top: 48px;
    padding: 28px 36px;
    background-color: var(--color-warm);
    border-radius: var(--rund);
}
.seiten-abschluss-bild { flex: 0 0 auto; width: 92px; height: auto; margin-right: 28px; }
.seiten-abschluss-text { flex: 1 1 auto; min-width: 0; margin-right: 24px; }
.seiten-abschluss-text h2 { margin: 0 0 4px; font-size: 1.6rem; color: var(--color-primary-deep); }
.seiten-abschluss-text p { margin: 0; font-size: 1.1rem; }
.seiten-abschluss-aktion { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.seiten-abschluss-aktion .btn { margin: 0 0 10px; }
.seiten-abschluss-telefon { color: var(--color-primary-deep); font-size: 1.05rem; white-space: nowrap; }

/* --- Leitbild-Band der Startseite: Herz statt Baum --- */
.leitbild-bild { display: block; width: 100%; height: auto; }

/* --- Gruppenübersicht: Karten weich und warm --- */
.gruppen-card-link { border-radius: var(--rund); }
.gruppen-contact-hint { border-radius: var(--rund); }

@media (max-width: 767px) {
    .hero-bereich { font-size: 0.82rem; }
    .page-article > .content-block:first-child .block-text > p:first-child { font-size: 1.12rem; }
    .position-rechts .block-image::before,
    .position-links .block-image::before { display: none; }
    .weitere-themen { margin-top: 40px; }
    .seiten-abschluss { flex-wrap: wrap; padding: 22px 20px; margin-top: 36px; }
    .seiten-abschluss-bild { width: 64px; margin-right: 16px; }
    .seiten-abschluss-text { flex: 1 1 0; margin-right: 0; }
    .seiten-abschluss-text h2 { font-size: 1.35rem; }
    .seiten-abschluss-aktion { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 16px; }
    .seiten-abschluss-aktion .btn { margin: 0 16px 0 0; }
    .leitbild-bild { width: 120px; }
}

/* --- Browser- und Geräteprüfung (17.11.2026): zwei Überbreiten behoben --- */
/* Kontaktformular: negative Aussenränder liessen die Feldzeilen 8 px über den Rand ragen (bis 1024 px Breite) */
.form-row { margin-left: 0; margin-right: 0; }
.form-row > .form-group { padding-left: 0; padding-right: 0; }
@media (min-width: 768px) {
    .form-row > .form-group + .form-group { padding-left: 1rem; }
}
@media (max-width: 767px) {
    .form-row > .form-group { -webkit-box-flex: 0; -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; }
}
/* Startseite: Cremefläche hinter den Fotos ragte auf dem Tablet 2 px über den Rand */
@media (max-width: 1140px) {
    .welcome-fotos::before { right: -12px; }
}

/* --- Safari auf dem iPhone zoomt in Felder mit weniger als 16 px Schrift. Auf Smartphones und Tablets
       haben deshalb alle Eingabe- und Auswahlfelder mindestens 16 px (gefunden mit webkit_pruefen.py). --- */
@media (max-width: 1024px) {
    input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"],
    input[type="date"], select, textarea { font-size: 16px !important; }
}

/* ---------- 15. Zugriffsstatistik: unsichtbares Zählbild (includes/statistik.php) ---------- */
.zaehlbild { position: absolute; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

/* ============================================================
   16. Smartphone-Feinschliff (18.11.2026)
   Ergebnis der Durchsicht aller Seiten bei 320 bis 412 px (_migration/handy_pruefen.py):
   Handy-Menü, Seitenränder, Überschriften, Filter zum Aufklappen, Tippflächen ab 44 px, Schrift ab 14 px.
   Für Safari: kein Flex-gap, Zusammenfassungen (summary) ohne Flex, dvh nur mit Rückfall auf vh.
   ============================================================ */

/* --- Seiten mit .main-content (Kontakt, Gruppe): Text und Felder standen ohne Rand an der Bildschirmkante --- */
main.main-content.container { padding-left: 20px; padding-right: 20px; }

/* --- Treffer der Suche: Hervorhebung ohne Lücke mitten im Wort („Rheuma tische“) --- */
.ergebnis-titel mark,
.ergebnis-auszug mark { padding: 0.1em 0; }

/* --- „App installieren“: Schaltfläche in der Schrift der Website --- */
.pwa-install-banner-button { font-family: inherit; }

/* --- Filter (Termine, Neuigkeiten, Suche): Die Zeile zum Aufklappen gibt es nur auf dem Handy --- */
.filter-klappe > summary { display: none; }

/* --- Menü: Den Knopf für die Unterpunkte gibt es nur im Handy-Menü --- */
.sub-toggle { display: none; }

/* --- Online-Antrag: Anrede mit grossen Tippflächen; Beitragsauswahl als Zeile (Kreis · Text · Betrag) --- */
.mw-anrede { display: flex; flex-wrap: wrap; padding: 4px 0; }
.mw-form .mw-anrede label { display: flex; align-items: center; min-height: 44px; margin: 0 24px 0 0; font-weight: 400; cursor: pointer; }
.mw-form .mw-anrede input[type=radio] { flex: 0 0 auto; width: 22px; height: 22px; margin: 0 9px 0 0; }
.mw-form label.mw-radio { display: flex; cursor: pointer; }
.mw-form label.mw-radio strong { flex: 1 1 0; min-width: 0; }

@media (max-width: 1024px) {
    /* --- Handy-Menü: Abstände, Schatten und Versalien der grossen Leiste schlugen hierher durch --- */
    html.nav-offen,
    html.nav-offen body { overflow: hidden; }
    .nav-menu {
        height: 100vh;
        height: 100dvh;
        visibility: hidden;                 /* geschlossen auch für Tastatur und Vorlesehilfen nicht vorhanden */
        transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu.nav-menu-active { visibility: visible; transition: transform 0.3s ease-in-out; }
    .nav-menu::before {
        content: "Menü";
        display: block;
        padding: 28px 20px 0;
        color: var(--color-muted);
        font-size: 0.875rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }
    /* Der Schliessen-Knopf steht fest oben rechts – unabhängig davon, wie hoch der Kopf der Seite gerade ist */
    .nav-toggle.nav-toggle-active { position: fixed; top: 12px; right: 12px; }

    .nav-menu ul { gap: 0; }
    .nav-menu > ul {
        padding: 14px 20px 56px;
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        border-top: 0;
    }
    .nav-menu > ul > li { border-bottom: 1px solid var(--color-line); }
    .nav-menu > ul > li > a {
        display: flex;
        align-items: center;
        min-height: 54px;
        padding: 8px 0;
        border-bottom: 0;
        font-size: 1.15rem;
    }
    .nav-menu .sub-menu {
        display: block;
        position: static;
        width: auto;
        min-width: 0;
        margin: 0 0 12px 2px;
        padding: 0 0 0 16px;
        border: 0;
        border-left: 2px solid var(--color-mint-deep);
        border-radius: 0;
        background: none;
        box-shadow: none;
    }
    .nav-menu .sub-menu a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 6px 0;
        border-bottom: 0;
        font-size: 1rem;
    }

    /* Unterpunkte auf- und zuklappen. Die Klasse setzt das Skript im Fuss; ohne JavaScript bleibt alles sichtbar. */
    .nav-klappbar li.menu-item-has-children { display: flex; flex-wrap: wrap; }
    .nav-klappbar li.menu-item-has-children > a { flex: 1 1 0; width: auto; min-width: 0; }
    .nav-klappbar .sub-toggle {
        display: block;
        flex: 0 0 56px;
        position: relative;
        min-height: 54px;
        margin: 0;
        padding: 0;
        border: 0;
        border-left: 1px solid var(--color-line);
        border-radius: 0;
        background: transparent;
        color: var(--color-primary-deep);
        cursor: pointer;
    }
    .nav-klappbar .sub-toggle::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 10px;
        height: 10px;
        margin: -8px 0 0 -6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    .nav-klappbar li.sub-offen > .sub-toggle::before { margin-top: -3px; -webkit-transform: rotate(-135deg); transform: rotate(-135deg); }
    .nav-klappbar li.menu-item-has-children > .sub-menu { display: none; flex: 1 1 100%; }
    .nav-klappbar li.sub-offen > .sub-menu { display: block; }
}

@media (max-width: 767px) {
    /* --- Seitenkopf: Überschriften nie abgeschnitten (Gruppenübersicht), lange Wörter dürfen trennen --- */
    .hero-subpage h1,
    .hero-gruppen h1 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
    .hero-gruppen h1 { font-size: 1.75rem; }
    .hero-gruppen p { font-size: 1rem; }
    /* Sonnenpunkt oben rechts in der Ecke – vorher lag er mitten in längeren Titeln */
    .hero-subpage::after {
        background:
            radial-gradient(circle at 46% 43%, rgba(232, 164, 74, 0.75) 0, rgba(232, 164, 74, 0.75) 11px, transparent 12px),
            radial-gradient(circle, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 60%, transparent 61%);
    }
    .hero-seite::after,
    .hero-uebersicht::after {
        background:
            radial-gradient(circle at 46% 43%, rgba(232, 164, 74, 0.6) 0, rgba(232, 164, 74, 0.6) 11px, transparent 12px),
            radial-gradient(circle, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0.55) 60%, transparent 61%);
    }
    /* Bereichszeile über dem Titel: lesbar und gut zu treffen */
    .hero-bereich { margin: -9px 0 -4px; font-size: 0.875rem; }
    .hero-bereich a { padding-top: 11px; padding-bottom: 11px; }

    /* --- Startseite --- */
    .hero-titel2 { font-size: 1rem; }
    .btn-hero { font-size: 0.9rem; text-align: center; justify-content: center; }
    .welcome-block h2 { font-size: 1.55rem; text-wrap: balance; }
    .gruppe-dropdown { min-height: 46px; }
    .link-list a { display: block; padding: 10px 0; }
    /* Zahlenband: drei knappe Zeilen statt dreier hoher Blöcke */
    .stats { padding: 16px 20px; }
    .stats .stat { display: flex; align-items: baseline; text-align: left; }
    .stats .stat + .stat { padding-top: 12px; margin-top: 12px; }
    .stat-number { flex: 0 0 53%; margin: 0; padding-right: 14px; font-size: 1.8rem; line-height: 1.2; text-align: right; white-space: nowrap; }
    .stat-label { flex: 1 1 0; min-width: 0; font-size: 1rem; }

    /* --- Gruppenübersicht: Einleitung linksbündig, Liste dichter --- */
    .gruppen-intro { margin-bottom: 1.75rem; font-size: 1rem; text-align: left; }
    .gruppen-grid { gap: 10px; }
    .gruppen-card-link { padding: 0.8rem 1rem; }

    /* --- Filter hinter einer Zeile zum Aufklappen --- */
    .filter-klappe > summary {
        display: block;
        position: relative;
        min-height: 48px;
        padding: 0 34px 0 0;
        color: var(--color-text);
        font-weight: 600;
        line-height: 48px;
        list-style: none;
        cursor: pointer;
    }
    .filter-klappe > summary::-webkit-details-marker { display: none; }
    .filter-klappe > summary::after {
        content: "";
        position: absolute;
        right: 6px;
        top: 50%;
        width: 9px;
        height: 9px;
        margin-top: -7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    .filter-klappe[open] > summary { margin-bottom: 14px; border-bottom: 1px solid var(--color-line); }
    .filter-klappe[open] > summary::after { margin-top: -2px; -webkit-transform: rotate(-135deg); transform: rotate(-135deg); }
    .filter-klappe[open] { padding-bottom: 16px; }
    .termine-filter,
    .news-filter { padding: 4px 18px; margin-bottom: 1.25rem; }
    .suche-klappe { margin-top: 6px; }
    .suche-klappe .suche-filter-zeile { padding-top: 0; border-top: 0; }
    .filter-gruppe select,
    .suche-formular .btn { min-height: 46px; }
    .filter-gruppe label { font-size: 0.95rem; }

    /* --- Listen und Marken: Schrift ab 14 px, Titel gut zu treffen --- */
    .news-item-title a,
    .ergebnis-titel a { display: block; padding: 12px 0; margin: -8px 0; }
    .news-item-date,
    .ergebnis-datum,
    .termin-item-meta .meta-location,
    .termin-item-meta .meta-time { font-size: 0.9rem; }
    .source-badge,
    .ergebnis-badge,
    .ma-badge,
    .meta-label,
    .termin-item-date .date-month,
    .termin-item-date .date-year,
    .mw-check .mw-tag,
    .block-text small,
    #ls-open-button span { font-size: 0.875rem; }
    #ls-open-button { min-height: 44px; }

    /* --- Abschluss „Haben Sie noch Fragen?“ und Schaltflächen im Text --- */
    .seiten-abschluss-telefon { display: inline-block; padding: 10px 0; }
    .block-text a.ma-btn,
    .block-text a.ma-btn-nebenweg { text-align: center; }

    /* --- Kontaktformular: Kästchen in tippbarer Grösse --- */
    .form-group.checkbox-group input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; }
    .form-group.checkbox-group label { font-size: 0.95rem; }

    /* --- Online-Antrag --- */
    .mw-erkr .mw-check { align-items: center; min-height: 44px; margin: 0; }
    .mw-erkr .mw-check span { flex: 1 1 0; min-width: 0; }
    /* !important: Die Vorlage setzt die Darstellung dieser Beschriftung im Element selbst */
    .mw-erkr .mw-check label { display: flex !important; align-items: center; min-height: 44px; cursor: pointer; }
    .mw-form label.mw-radio { flex-wrap: wrap; }
    .mw-form label.mw-radio .mw-betrag { flex: 1 1 100%; margin-left: 32px; padding-left: 0; }
    /* Überschrift des Abschnitts im Kasten statt auf der Randlinie (zweizeilig sah sie zerschnitten aus) */
    .mw-form legend { float: left; width: 100%; margin: 0 0 4px; padding: 0; }
    .mw-form legend + * { clear: both; }

    /* --- Fuss: Sprechzeiten lesbar, Verweise gut zu treffen --- */
    .footer-sprechzeiten-days,
    .footer-sprechzeiten-time { font-size: 0.95rem; }
    .footer-stand { font-size: 0.875rem; }
    footer .footer-col p a[href^="tel:"],
    footer .footer-col p a[href^="mailto:"] { display: inline-block; padding: 12px 0; }
    footer .footer-col p { margin-top: 0; margin-bottom: 0; }
    footer .footer-col .footer-address { margin-bottom: 4px; }
    footer .footer-col .footer-sprechzeiten + p { margin-top: 8px; }
    .footer-nav-links { margin: 0 -10px; }
    .footer-nav-links a,
    .footer-nav-links a:first-child { display: inline-block; margin: 0; padding: 12px 10px; }
}

@media (max-width: 560px) {
    /* --- Beitragstabelle („Mitglied werden“): Bezeichnung und Betrag untereinander statt in zwei engen Spalten --- */
    .ma-beitraege table,
    .ma-beitraege tbody,
    .ma-beitraege tr,
    .ma-beitraege td { display: block; width: auto; }
    .ma-beitraege tr { padding: 11px 14px; border-bottom: 1px solid var(--color-mint-deep); }
    .ma-beitraege tr:last-child { border-bottom: 0; }
    /* !important: Die allgemeinen Tabellenregeln (seite.css) setzen Abstand und Linie der Zellen ebenso */
    .block-text .ma-beitraege td { padding: 0 !important; border: 0 !important; font-size: 0.95rem; text-align: left; }
    .block-text .ma-beitraege td.b { margin-top: 3px; color: var(--color-primary-deep); font-size: 1rem; font-weight: 700; }
}

@media (max-width: 359px) {
    .stat-number { padding-right: 12px; font-size: 1.45rem; }
    .welcome-block h2 { font-size: 1.4rem; }
    .hero-gruppen h1 { font-size: 1.55rem; }
}

/* ============================================================
   17. Smartphone: kompaktere Abstände (18.11.2026)
   Auf dem Handy weniger Luft zwischen den Elementen, damit die Seiten geschlossener wirken.
   Eine Abstandsfolge für alle Seiten: rund 12 px (was zusammengehört) · 20 px (Bausteine) · 28 px (Abschnitte).
   Unverändert bleiben Schriftgrössen, der Zeilenabstand des Fliesstexts und die Tippflächen ab 44 px.
   Gemessen mit _migration/handy_pruefen.py; grosse Bildschirme sind nicht betroffen.
   ============================================================ */
@media (max-width: 767px) {
    /* --- Rahmen jeder Seite: Kopf, Inhalt, Fuss rücken zusammen (vorher 42 px unter dem Kopf, 104 px vor dem Fuss) --- */
    .hero-subpage { padding-top: 26px; padding-bottom: 24px; margin-bottom: 22px; }
    main.container { padding-top: 0; padding-bottom: 28px; }
    main.main-content.container { margin-bottom: 0; }
    footer { margin-top: 12px; padding-top: 26px; }

    /* --- Startseite --- */
    .hero-content { padding-bottom: 22px; }
    .hero-tagline { margin: 8px 0 16px; }
    .welcome-block { margin-top: 26px; padding-top: 0; gap: 24px; }
    .welcome-text p { margin-bottom: 14px; }
    /* die drei Karten: Kopfbalken, Liste und Schaltfläche dichter, Karten näher beieinander */
    .card-grid { margin-top: 24px; gap: 14px; }
    .card-header { padding: 11px 16px; margin-bottom: 8px; }
    .link-list li { margin-bottom: 0; }
    .link-list a { padding: 9px 0; }
    .card-button-container { padding: 10px 18px 18px; }
    .card .gruppen-highlight { margin-bottom: 4px; }
    .card .gruppen-schnellauswahl { margin-top: 4px; }
    .themen,
    .topic-band,
    .leitbild { margin-top: 30px; }
    .themen > h2 { margin-bottom: 16px; font-size: 1.6rem; }
    .themen-raster { gap: 12px; }
    .topic-band-inner { padding: 24px 18px; }
    .topic-band p { margin-bottom: 16px; }
    .leitbild { padding: 22px 20px; gap: 12px; }
    .leitbild h2 { margin-bottom: 14px; }
    .leitbild blockquote { margin-bottom: 18px; }
    .stats { margin-top: 24px; }

    /* --- Inhaltsseiten --- */
    .content-block { margin-bottom: 24px; }
    .block-text h2 { margin-top: 26px; }
    .block-text > h2:first-child { margin-top: 6px; }
    .weitere-themen { margin-top: 28px; padding-top: 22px; }
    .seiten-abschluss { margin-top: 26px; padding: 18px; }
    .page-navigation-buttons { margin-top: 26px; }
    .ma-wege,
    .ma-beitraege,
    .ma-hilfe { margin-top: 18px; margin-bottom: 18px; }
    .block-text .ma-beitraege table { margin: 12px 0; }
    .ma-karte { margin-bottom: 14px; }

    /* --- Listen: Gruppen, Termine, Neuigkeiten --- */
    .gruppen-intro { margin-bottom: 20px; }
    .gruppen-grid { margin-bottom: 0; }
    .gruppen-contact-hint { margin-top: 30px; padding: 20px; }
    .gruppen-contact-hint p { margin-bottom: 18px; }
    .termine-filter,
    .news-filter { margin-bottom: 0; }
    .termine-list-simple,
    .news-list-simple { margin-top: 16px; margin-bottom: 8px; }
    .termine-list-simple { gap: 14px; }
    .termin-meta-hero { margin-top: 16px; gap: 14px; }

    /* --- Gruppenseite und Kontakt --- */
    .group-section { padding-bottom: 16px; margin-bottom: 22px; }
    .group-contact-column { margin-bottom: 0; }
    .gruppe-back-link { margin-top: 26px; padding-top: 20px; }
    .kontakt-layout { gap: 22px; }
    .kontakt-layout .contact-details { margin-bottom: 0; }
    .kontakt-layout .contact-details address { margin-bottom: 14px; }
    .contact-info-box { margin-top: 22px; padding: 20px; }
    .kontakt-layout .contact-form h2 { margin-bottom: 14px; }

    /* --- Online-Antrag: Kästen dichter --- */
    .mw-form fieldset { margin-bottom: 20px; padding: 16px 16px 18px; }

    /* --- Fuss --- */
    .footer-brand { padding-bottom: 14px; margin-bottom: 20px; }
    footer .footer-gruss { margin-bottom: 10px; }
    .footer-columns { gap: 18px; margin-bottom: 16px; }
    .footer-col-title { margin-bottom: 8px; }
    .footer-bottom { padding-top: 8px; }
}

/* ============================================================
   18. Qualitätskontrolle 18.11.2026: Tastatur, Kontraste, Gruppenseite, Druck
   Gemessen mit _migration/qualitaet_pruefen.py (alle Seiten im Browser).
   ============================================================ */

/* --- Sprungmarke: erster Halt der Tabulatortaste, sonst unsichtbar (parts/header.php) --- */
.sprungmarke {
    position: absolute;
    left: 12px;
    top: -90px;
    z-index: 2000;
    padding: 12px 18px;
    background: #FFFFFF;
    color: var(--color-primary-deep);
    font-weight: 700;
    text-decoration: none;
    border: 3px solid var(--color-primary);
    border-radius: 3px;
}
.sprungmarke:focus { top: 12px; }
#seiteninhalt { display: block; height: 0; outline: none; }

/* --- Menü am grossen Bildschirm: Unterpunkte öffnen sich auch mit der Tastatur (bisher nur unter dem Mauszeiger) --- */
@media (min-width: 1025px) {
    .nav-menu li:focus-within > .sub-menu { display: block; }
    .nav-menu .sub-menu a:focus-visible { background-color: var(--color-light-gray); outline-offset: -3px; }
}

/* --- Leichte Sprache: geschlossen wirklich verborgen – auch für Tastatur und Vorleseprogramme --- */
.ls-panel {
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0.4s;
}
.ls-panel.ls-panel-active {
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0s;
}
.ls-close-button { width: 44px; height: 44px; opacity: 0.8; flex-shrink: 0; }
.ls-close-button::before,
.ls-close-button::after { left: 21px; top: 12px; }

/* --- Bildvergrösserung: Das Schliessen-Zeichen ist jetzt ein Knopf (mit der Tastatur erreichbar) --- */
button.lightbox-close { background: none; border: 0; padding: 0; line-height: 1; min-width: 44px; min-height: 44px; font-family: inherit; }
button.lightbox-close:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

/* --- Logo: Breite und Höhe stehen jetzt im HTML (kein Springen beim Laden); die Höhe begrenzt weiter das Stylesheet --- */
.logo img { width: auto; height: auto; }

/* --- Kontraste: alle Paare, die unter 4,5:1 lagen --- */
/* Verweise im Fliesstext in der dafür vorgesehenen Farbe (7,6:1); seite.css setzte ein helleres Blaugrün (auf Flächen 4,1:1) */
.block-text a { color: var(--color-primary-deep); }
/* Gruppenseiten: Gold als Schrift war auf Weiss zu hell (3,4:1) – dunkleres Gold (5,9:1) */
.group-text-content a,
.group-contact-column .contact-phone a,
.group-contact-column .contact-email a,
.group-contact-column .contact-fax a,
.group-contact-column .contact-website a,
.group-contact-column .contact-social a,
.group-contact-column .contact-social { color: #7A6200; }
.group-text-content a:hover,
.group-contact-column .contact-phone a:hover,
.group-contact-column .contact-email a:hover,
.group-contact-column .contact-fax a:hover,
.group-contact-column .contact-website a:hover,
.group-contact-column .contact-social a:hover,
.group-contact-block a:hover,
.group-list a:hover,
.contact-social-block a:hover { color: #5C4A00; }
/* goldene Schaltflächen: weisse Schrift hatte 2,3:1 – dunkle Schrift auf Gold hat 5,8:1 */
.gruppen-contact-hint .btn-solid,
.group-contact-column .btn-solid,
.gruppe-kontakt-grid .contact-form .btn-solid,
.gruppen-contact-hint .btn-solid:hover,
.group-contact-column .btn-solid:hover,
.gruppe-kontakt-grid .contact-form .btn-solid:hover,
.group-contact-column .btn-outline:hover,
.gruppe-back-link .btn-outline:hover { color: #3B2F05; }
.gruppen-contact-hint .btn-solid:hover,
.group-contact-column .btn-solid:hover,
.gruppe-kontakt-grid .contact-form .btn-solid:hover { background-color: #B8990A; }
/* Marke „Landesverband Sachsen“ bei Neuigkeiten und Terminen: weisse Schrift auf dunklerem Grün (6,4:1 statt 3,4:1) */
.source-landesverband { background-color: var(--color-secondary); }
/* Online-Antrag: Marken „erforderlich“ / „freiwillig“ */
.mw-tag.erforderlich { color: var(--color-primary-deep); }
.mw-tag.freiwillig { color: #566070; }

/* --- Gruppenseite ohne Randspalte (keine Neuigkeiten, Termine, Angebote der Gruppe): keine leere Spalte mehr ---
   Bisher blieb links ein Drittel bzw. rechts die Hälfte der Seite leer, der Text war auf 420 px eingezwängt. */
.gruppe-ohne-rand .contact-details { display: none; }
@media (min-width: 1025px) {
    .contact-grid.gruppe-layout-full.gruppe-ohne-rand {
        grid-template-columns: minmax(0, 1fr) 300px;
        grid-template-areas: "main contact";
        gap: 64px;
    }
    .gruppe-ohne-rand .group-main-content { max-width: 720px; }
    .contact-grid.gruppe-layout-medium.gruppe-ohne-rand,
    .contact-grid.gruppe-layout-minimal.gruppe-ohne-rand {
        grid-template-columns: minmax(0, 760px);
        grid-template-areas: "contact";
    }
}

/* --- Druck: Inhalt statt Bedienung. Hintergründe druckt der Browser nicht – helle Schrift auf Farbflächen wird dunkel. --- */
@media print {
    .utility-bar,
    .nav-menu,
    .nav-toggle,
    .nav-search-link,
    .navbar .btn-contact,
    .sprungmarke,
    .ls-panel,
    .pwa-install-banner,
    .weitere-themen,
    .seiten-abschluss,
    .page-navigation-buttons,
    .gruppe-back-link,
    .termine-filter,
    .news-filter,
    .filter-klappe,
    .suche-formular,
    .schnellzugriff,
    .footer-nav-links,
    .footer-gruss,
    .zaehlbild,
    .lightbox,
    .lightbox-overlay,
    .contact-form,
    .card-button-container,
    .hero-buttons { display: none !important; }
    html, body { background: #FFFFFF !important; }
    body { color: #000000; font-size: 11pt; }
    .navbar { border-bottom: 1pt solid #999999; padding-bottom: 6pt; margin-bottom: 10pt; box-shadow: none; position: static; }
    .logo img { max-height: 46px; }
    .hero,
    .hero-subpage { background: none !important; padding: 0 0 6pt !important; margin: 0 0 10pt !important; min-height: 0 !important; border-bottom: 1pt solid #999999; }
    .hero::before, .hero::after,
    .hero-subpage::before, .hero-subpage::after { display: none !important; }
    .hero *, .hero-subpage *,
    .card-header, .card-header *,
    .topic-band, .topic-band * { color: #000000 !important; text-shadow: none !important; }
    .hero-subpage h1, .hero h1 { font-size: 20pt; }
    main.container { padding: 0 !important; }
    a { color: #000000 !important; }
    .block-text a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
    footer { margin-top: 14pt !important; padding-top: 8pt !important; border-top: 1pt solid #999999; background: none !important; }
    h1, h2, h3 { break-after: avoid; }
    img, table, li, .termin-item, .news-item, .card { break-inside: avoid; }
    /* weisse Schrift auf Farbflächen (Datumskasten, Marken) wäre ohne Hintergrund unlesbar */
    .termin-item-date, .termin-item-date *,
    .source-badge, .ergebnis-badge, .news-date, .btn { color: #000000 !important; background: none !important; box-shadow: none !important; }
    .termin-item-date, .source-badge, .ergebnis-badge { border: 1pt solid #999999; }
    /* Gruppenseite: Der lange Text darf über Seiten laufen (sonst bliebe die erste Seite fast leer) */
    .group-main-content, .group-contact-column, .contact-details { break-inside: auto !important; page-break-inside: auto !important; }
}

/* ============================================================
   19. Intranet (18.11.2026) – templates/intranet.php
   Geschützter Bereich im Design der Website: Anmeldekarte, Kacheln der Kategorien, Einträge mit ihren Dateien.
   Tippflächen ab 44 px, Schrift ab 14 px, Passwortfeld 16 px (kein Zoom am iPhone).
   ============================================================ */
/* --- Kopf (wie Inhaltsseiten: .hero-seite aus seite.css) und Seitenrahmen --- */
.hero-intranet h1 + p { max-width: 700px; margin: 10px 0 0; font-size: 1.1rem; line-height: 1.5; color: var(--color-text); }
main.intranet { padding-bottom: 3rem; }

/* --- Anmeldung --- */
.intranet-anmeldung {
    max-width: 440px;
    margin: 6px auto 28px;
    padding: 32px 32px 34px;
    background: #FFFFFF;
    border: 1px solid var(--color-line);
    border-radius: var(--rund);
    box-shadow: var(--schatten-weich);
    text-align: center;
}
.intranet-schloss {
    width: 30px;
    height: 30px;
    padding: 13px;
    box-sizing: content-box;
    color: var(--color-primary-deep);
    background: var(--color-mint);
    border-radius: 50%;
}
.intranet-anmeldung h2 { margin: 14px 0 10px; font-size: 1.5rem; }
.intranet-anmeldung p { margin: 0 0 18px; }
.intranet-anmeldung form { text-align: left; }
.intranet-anmeldung label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--color-text); }
.intranet-anmeldung input[type="password"] {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    box-sizing: border-box;
    font: inherit;
    font-size: 1.0625rem;
    color: var(--color-text);
    background: #FFFFFF;
    border: 1px solid #7C8782;
    border-radius: var(--rund-klein);
}
.intranet-anmeldung .btn { display: block; width: 100%; min-height: 48px; margin-top: 16px; cursor: pointer; }
.intranet-meldung { padding: 12px 14px; border-radius: var(--rund-klein); text-align: left; }
.intranet-meldung-fehler { background: #FDECEC; color: #8A1C1C; border-left: 4px solid #B3261E; }
.intranet-meldung-hinweis { background: var(--color-mint); color: var(--color-primary-deep); border-left: 4px solid var(--color-primary); }

/* --- Leiste „angemeldet“ und Begrüssung --- */
.intranet-leiste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 26px;
    padding: 8px 10px 8px 18px;
    background: var(--color-warm);
    border-radius: var(--rund-klein);
}
.intranet-leiste p { margin: 0 16px 0 0; font-size: 0.95rem; }
.intranet-leiste form { margin: 0; }
.intranet-leiste .btn { min-height: 44px; padding: 8px 18px; background: #FFFFFF; cursor: pointer; }
.intranet-begruessung { max-width: 760px; margin: 0 0 26px; font-size: 1.1rem; line-height: 1.6; }
.intranet-leer { padding: 22px 24px; background: var(--color-warm); border-radius: var(--rund); }

/* --- Kacheln der Kategorien --- */
.intranet-kategorien {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 18px;
    margin: 0 0 38px;
    padding: 0;
    list-style: none;
}
.intranet-kategorien li { margin: 0; }
.intranet-kachel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 124px;
    box-sizing: border-box;
    padding: 20px 22px 18px;
    background: #FFFFFF;
    border: 1px solid var(--color-line);
    border-top: 4px solid var(--color-primary);
    border-radius: var(--rund-klein);
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.intranet-kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten-weich); }
.intranet-kachel-name { font-size: 1.25rem; line-height: 1.3; color: var(--color-primary-deep); overflow-wrap: anywhere; }
.intranet-kachel-text { margin-top: 6px; font-size: 0.95rem; line-height: 1.45; }
.intranet-kachel-zahl { margin-top: auto; padding-top: 12px; font-size: 0.9rem; color: var(--color-muted); }

/* --- Zuletzt aktualisiert --- */
.intranet-neueste h2 { margin: 0 0 10px; font-size: 1.35rem; }
.intranet-neueste ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-line); }
.intranet-neueste li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--color-line); }
.intranet-neueste a { display: inline-block; padding: 10px 16px 10px 0; font-weight: 700; color: var(--color-primary-deep); }
.intranet-neueste span { padding: 0 0 8px; font-size: 0.9rem; color: var(--color-muted); }

/* --- Kategorie: Wechsel zwischen den Kategorien, Einträge, Dateien --- */
.intranet-wechsel { display: flex; flex-wrap: wrap; margin: 0 -4px 24px; }
.intranet-wechsel a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 4px;
    padding: 6px 18px;
    box-sizing: border-box;
    border-radius: 999px;
    background-color: var(--color-mint);
    color: var(--color-primary-deep);
    text-decoration: none;
}
.intranet-wechsel a:hover { background-color: var(--color-mint-deep); }
.intranet-wechsel a[aria-current="page"] { background-color: var(--color-primary-deep); color: #FFFFFF; }
.intranet-eintrag {
    margin: 0 0 20px;
    padding: 24px 26px;
    background: #FFFFFF;
    border: 1px solid var(--color-line);
    border-radius: var(--rund);
    scroll-margin-top: 16px;
}
.intranet-eintrag:target { border-color: var(--color-primary); box-shadow: var(--schatten-weich); }
.intranet-eintrag h2 { margin: 0 0 4px; font-size: 1.35rem; overflow-wrap: anywhere; }
.intranet-stand { margin: 0 0 12px; font-size: 0.9rem; color: var(--color-muted); }
.intranet-eintrag .block-text { margin: 0 0 16px; }
.intranet-eintrag .block-text > :last-child { margin-bottom: 0; }
.intranet-dateien { margin: 0; padding: 0; list-style: none; }
.intranet-dateien li { margin: 8px 0 0; }
.intranet-dateien a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 14px;
    box-sizing: border-box;
    background: var(--color-mint);
    border-radius: var(--rund-klein);
    color: var(--color-primary-deep);
    text-decoration: none;
}
.intranet-dateien a:hover { background: var(--color-mint-deep); }
.intranet-art {
    flex: 0 0 auto;
    min-width: 46px;
    margin-right: 12px;
    padding: 3px 6px;
    box-sizing: border-box;
    background: var(--color-primary-deep);
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
}
.intranet-dateiname { flex: 1 1 auto; font-weight: 700; overflow-wrap: anywhere; }
.intranet-groesse { flex: 0 0 auto; margin-left: 12px; font-size: 0.9rem; color: var(--color-text); white-space: nowrap; }
.intranet-zurueck { margin: 26px 0 0; }

@media (max-width: 767px) {
    .intranet-anmeldung { margin-top: 0; padding: 24px 20px 26px; }
    .intranet-leiste { margin-bottom: 20px; padding-left: 14px; }
    .intranet-kategorien { grid-template-columns: 1fr; grid-gap: 12px; margin-bottom: 28px; }
    .intranet-kachel { min-height: 0; padding: 16px 18px 14px; }
    .intranet-eintrag { margin-bottom: 14px; padding: 18px 16px; }
    .intranet-wechsel { margin-bottom: 18px; }
    .intranet-neueste li { display: block; }
    .intranet-neueste span { display: block; }
}
@media print {
    .intranet-leiste, .intranet-wechsel, .intranet-zurueck { display: none !important; }
    .intranet-eintrag { border: 0; padding: 0 0 10pt; }
    .intranet-dateien a { background: none !important; padding: 2pt 0; min-height: 0; }
    .intranet-art { color: #000000 !important; background: none !important; border: 1pt solid #999999; }
}
