:root {
    /* Gottesdienst-Kategorien selbst sind seit der Admin-CRUD-Umstellung (siehe Zeitkategorie)
       nicht mehr fest - ihre Farbe kommt jetzt als Inline-Variable "--kat-farbe" vom jeweiligen
       Datensatz (siehe .kat-farbe-text unten). --kat-event bleibt fix: Events auf dem Kalender
       sind keine Zeitkategorie, sondern ein eigener, fest eingefärbter Termin-Typ. */
    --kat-event: #2f7d5d;
}

.versteckt { display: none !important; }

/* ---------- Kategorie-Icons (Linien-Icons als Maske, folgen currentColor) ---------- */
.kat-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: none;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.kat-icon.kat-alle {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='8' height='8' rx='1.2'/%3E%3Crect x='12.5' y='3.5' width='8' height='8' rx='1.2'/%3E%3Crect x='3.5' y='12.5' width='8' height='8' rx='1.2'/%3E%3Crect x='12.5' y='12.5' width='8' height='8' rx='1.2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='8' height='8' rx='1.2'/%3E%3Crect x='12.5' y='3.5' width='8' height='8' rx='1.2'/%3E%3Crect x='3.5' y='12.5' width='8' height='8' rx='1.2'/%3E%3Crect x='12.5' y='12.5' width='8' height='8' rx='1.2'/%3E%3C/svg%3E");
}

/* Kuratiertes Icon-Set eigens für Zeitkategorien (Gottesdienste) - die ursprünglichen, für jede
   Kategorie eigens gezeichneten Symbole (Kelch, Beichte, Rosenkranz, Gebetbuch, Monstranz,
   Lesezeichen), jetzt als admin-wählbare Optionen statt fix pro Kategorie (siehe
   AdminZeitkategorieController) - kombiniert mit .kat-icon für die Größe, z.B.
   class="kat-icon zeitkat-icon-kelch". Bewusst ein eigenes Set statt der Event-Kategorie-Icons
   (.eventkat-icon-* in style.css) - passt inhaltlich besser zu Gottesdienstzeiten. */
.zeitkat-icon-kelch {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12l-6 9z'/%3E%3Cpath d='M12 13v5'/%3E%3Cpath d='M8 20.5h8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12l-6 9z'/%3E%3Cpath d='M12 13v5'/%3E%3Cpath d='M8 20.5h8'/%3E%3C/svg%3E");
}
.zeitkat-icon-beichte {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='8' r='3.4'/%3E%3Cpath d='M10 10.5 19 19.5M14.3 14.8l2-2M16.8 17.3l2-2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='8' r='3.4'/%3E%3Cpath d='M10 10.5 19 19.5M14.3 14.8l2-2M16.8 17.3l2-2'/%3E%3C/svg%3E");
}
.zeitkat-icon-rosenkranz {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6.5' stroke-dasharray='2.4 2.6'/%3E%3Cpath d='M12 15.5V21M9.3 18h5.4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6.5' stroke-dasharray='2.4 2.6'/%3E%3Cpath d='M12 15.5V21M9.3 18h5.4'/%3E%3C/svg%3E");
}
.zeitkat-icon-gebete {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5.5c-1.8-1.3-4.2-1.8-6.5-1.3v13c2.3-.5 4.7 0 6.5 1.3'/%3E%3Cpath d='M12 5.5c1.8-1.3 4.2-1.8 6.5-1.3v13c-2.3-.5-4.7 0-6.5 1.3'/%3E%3Cpath d='M12 5.5v13'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5.5c-1.8-1.3-4.2-1.8-6.5-1.3v13c2.3-.5 4.7 0 6.5 1.3'/%3E%3Cpath d='M12 5.5c1.8-1.3 4.2-1.8 6.5-1.3v13c-2.3-.5-4.7 0-6.5 1.3'/%3E%3Cpath d='M12 5.5v13'/%3E%3C/svg%3E");
}
.zeitkat-icon-anbetung {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='2.7'/%3E%3Cpath d='M12 3.6V2.4M9.4 4.5l.6.9M14.6 4.5l-.6.9M6.7 6.9l.9.6M17.3 6.9l-.9.6M5.6 9.3l1.1-.4M17.3 8.9l1.1.4M6.7 11.1l.9-.6M17.3 11.1l-.9-.6M9.4 12.5l.6-1.2M14.6 12.5l-.6-1.2'/%3E%3Cpath d='M12 10.7v4.3'/%3E%3Cpath d='M8.7 18.3c0-1.8 1.5-3.1 3.3-3.1s3.3 1.3 3.3 3.1'/%3E%3Cpath d='M7.7 20.6h8.6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='2.7'/%3E%3Cpath d='M12 3.6V2.4M9.4 4.5l.6.9M14.6 4.5l-.6.9M6.7 6.9l.9.6M17.3 6.9l-.9.6M5.6 9.3l1.1-.4M17.3 8.9l1.1.4M6.7 11.1l.9-.6M17.3 11.1l-.9-.6M9.4 12.5l.6-1.2M14.6 12.5l-.6-1.2'/%3E%3Cpath d='M12 10.7v4.3'/%3E%3Cpath d='M8.7 18.3c0-1.8 1.5-3.1 3.3-3.1s3.3 1.3 3.3 3.1'/%3E%3Cpath d='M7.7 20.6h8.6'/%3E%3C/svg%3E");
}
.zeitkat-icon-lesezeichen {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4V3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4V3z'/%3E%3C/svg%3E");
}

.kat-icon.kat-event {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cline x1='7.5' y1='2.5' x2='7.5' y2='7'/%3E%3Cline x1='16.5' y1='2.5' x2='16.5' y2='7'/%3E%3Cpath d='M12 13.3l1.05 2.1 2.3.3-1.65 1.6.4 2.3-2.1-1.1-2.1 1.1.4-2.3-1.65-1.6 2.3-.3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cline x1='7.5' y1='2.5' x2='7.5' y2='7'/%3E%3Cline x1='16.5' y1='2.5' x2='16.5' y2='7'/%3E%3Cpath d='M12 13.3l1.05 2.1 2.3.3-1.65 1.6.4 2.3-2.1-1.1-2.1 1.1.4-2.3-1.65-1.6 2.3-.3z'/%3E%3C/svg%3E");
}

/* Generische Variante für admin-verwaltete Zeitkategorien: Farbe kommt inline als --kat-farbe
   (siehe th:style in den Templates), statt einer fixen Klasse pro Kategorie. */
.kat-farbe-text, .kat-farbe-text .kat-icon { color: var(--kat-farbe, var(--bordeaux)); }
.kat-event, .kat-event .kat-icon { color: var(--kat-event); }

/* ---------- Gesamtlayout: Hauptbereich links, Kalender+Karte als Seitenleiste rechts ---------- */
.gd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 48px;
    align-items: start;
}

.gd-hauptbereich h1 { margin-bottom: 0.4em; }

/* Kurzer Hinweis auf mögliche Abweichungen (Absage/Verschiebung) - bewusst als schlichte Zeile mit
   dünnem linken Strich statt einer Karte/Box, passend zum offenen Seitenstil (siehe style.css). */
.gd-aktualitaets-hinweis {
    font-size: 0.92rem;
    color: var(--text-soft);
    border-left: 3px solid var(--gold);
    padding: 4px 0 4px 14px;
    margin: 0 0 28px;
    max-width: 60em;
}

/* Diese Unterüberschrift soll wie die Überschrift links ausgerichtet sein, nicht zentriert
   (überschreibt die zentrierte .section-intro-Voreinstellung nur hier). */
.gd-intro {
    text-align: left;
    margin: 0 0 2rem;
    max-width: 100%;
}

.gd-seitenleiste {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
    position: sticky;
    top: 1.5rem;
    /* Damit man die Karte sehen kann, ohne die Hauptliste links aus dem Blick zu verlieren:
       die Seitenleiste bekommt eine eigene, unabhängige Scrollbar statt mit der ganzen Seite
       mitzulaufen. Das hatte früher einen Bug: der Mini-Kalender nutzt selbst overflow:hidden
       für die runden Ecken, und laut Flexbox-Spec schrumpft ein Flex-Item mit overflow!=visible
       in einem höhenbegrenzten Flex-Container sonst auf 0px zusammen (komplett unsichtbar). Der
       Fix ist flex-shrink:0 auf den direkten Kindern - siehe Regel direkt darunter. */
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    scrollbar-width: thin;
    align-self: start;
}

.gd-seitenleiste > * {
    flex-shrink: 0;
}

/* ---------- Mini-Kalender ---------- */
.mini-kalender {
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    overflow: hidden;
}

.mini-kalender-kopf {
    background: linear-gradient(120deg, var(--bordeaux-dunkel), var(--bordeaux));
    color: var(--creme);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
}

.monat-titel {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.15rem;
}

.monat-nav {
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--creme);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.15s;
}
.monat-nav:hover { background: rgba(255,255,255,0.24); }

.mini-kalender-tage-kopf {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-soft);
    padding: 0.6rem 0.5rem 0.2rem;
}

.mini-kalender-tage-kopf .so { color: var(--gold); }

.mini-kalender-raster {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0.2rem 0.5rem 0.7rem;
}

.mk-tag {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.82rem;
    border-radius: 7px;
    cursor: pointer;
    color: var(--text);
    background: transparent;
    border: none;
    font-family: inherit;
}

.mk-tag:hover { background: var(--creme-dunkel); }
.mk-tag.leer { cursor: default; visibility: hidden; }
.mk-tag.so { color: var(--gold); font-weight: 600; }
.mk-tag.heute { background: var(--creme-dunkel); font-weight: 700; color: var(--bordeaux-dunkel); box-shadow: inset 0 0 0 1.5px var(--gold); }
.mk-tag.ausgewaehlt { background: var(--bordeaux); color: var(--weiss); font-weight: 700; }
.mk-tag.ausgewaehlt.heute { box-shadow: inset 0 0 0 1.5px var(--gold-hell); }

.mk-dots {
    display: flex;
    gap: 1.5px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 22px;
}

/* --dot-farbe kommt inline vom jeweiligen Punkt (server- oder JS-gerendert, siehe gottesdienste.js/
   startseite-kalender.js) - eine Klasse pro Kategorie ist seit der Admin-CRUD-Umstellung nicht mehr
   möglich, da die Farbe frei wählbar ist. Als CSS-Variable statt direkt inline auf "background"
   gesetzt, damit die Regel unten (ausgewählter Tag) weiterhin per Kaskade überschreiben kann. */
.mk-dot {
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: var(--dot-farbe, currentColor);
    flex: none;
}

.mk-dot.kat-event { background: var(--kat-event); }

.mk-tag.ausgewaehlt .mk-dot { background: var(--weiss); opacity: 0.85; }

.mini-kalender-fuss {
    display: flex;
    border-top: 1px solid var(--creme-dunkel);
}

.mini-kalender-fuss button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--bordeaux);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.6rem;
    cursor: pointer;
    font-family: inherit;
}
.mini-kalender-fuss button:hover { background: var(--creme-dunkel); }
.mini-kalender-fuss button:first-child { border-right: 1px solid var(--creme-dunkel); }

/* ---------- Hinweis + Kategorie-Filter ---------- */
.tag-hinweis {
    background: var(--creme-dunkel);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.88rem;
    color: var(--bordeaux-dunkel);
    margin-bottom: 1.2rem;
}

.tag-hinweis button {
    background: none;
    border: none;
    color: var(--text-soft);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.kategorie-pillen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.2rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--creme-dunkel);
}

.kategorie-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--weiss);
    border: 1px solid var(--creme-dunkel);
    color: var(--text-soft);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.15s ease;
}

.kategorie-filter .kat-icon { color: inherit; opacity: 0.55; }

.kategorie-filter:hover { background: var(--creme-dunkel); }

/* --kat-farbe kommt inline von der jeweiligen Pille (siehe gottesdienste.html) - fällt ohne eigene
   Farbe (z.B. die "Alle"-Pille) auf Bordeaux zurück. Ersetzt die früheren, festen
   ".kategorie-filter.kat-X.aktiv"-Regeln pro Kategorie. */
.kategorie-filter.aktiv {
    background: var(--kat-farbe, var(--bordeaux));
    border-color: var(--kat-farbe, var(--bordeaux));
    color: var(--weiss);
}
.kategorie-filter.aktiv .kat-icon { color: var(--weiss); opacity: 1; }

/* ---------- Pfarre-Filter ---------- */
.pfarre-pillen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.2rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--creme-dunkel);
}

.pfarre-filter {
    background: var(--weiss);
    border: 1px solid var(--creme-dunkel);
    color: var(--text-soft);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.15s ease;
}

.pfarre-filter:hover { background: var(--creme-dunkel); }

.pfarre-filter.aktiv {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bordeaux-dunkel);
    font-weight: 600;
}

/* ---------- Ausklappbarer Filterbereich (Kategorie + Pfarre) ---------- */
.filter-umschalter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--weiss);
    border: 1px solid var(--creme-dunkel);
    color: var(--bordeaux-dunkel);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: background 0.15s ease;
}

.filter-umschalter:hover { background: var(--creme-dunkel); }

.filter-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: none;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18l-7 8v6l-4 2v-8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18l-7 8v6l-4 2v-8z'/%3E%3C/svg%3E");
}

.filter-umschalter-pfeil {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.filter-umschalter[aria-expanded="true"] .filter-umschalter-pfeil {
    transform: rotate(180deg);
}

.filter-bereich {
    margin-bottom: 1rem;
}

/* ---------- Wochenliste ---------- */
.tag-ueberschrift {
    color: var(--bordeaux-dunkel);
    font-size: 1.4rem;
    margin: 0 0 0.6rem;
    font-weight: 700;
}

.eintrag-liste {
    margin-bottom: 2.2rem;
}

.eintrag-zeile {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--creme-dunkel);
}

.eintrag-zeile:last-child { border-bottom: none; }

.eintrag-zeile .kat-icon { flex: none; }

.zeile-zeit {
    font-weight: 600;
    color: var(--text);
    flex: 0 0 230px;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Wiederholungs-Hinweis (z.B. "alle 2 Wochen") - bewusst als eigenes, dezentes Element statt an die
   Uhrzeit angehängt, damit die Zeit selbst gut lesbar bleibt. */
.zeile-intervall {
    color: var(--gold-hell, #b8892f);
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--creme-dunkel);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    flex: none;
}

.zeile-kategorie {
    color: var(--text-soft);
    font-size: 0.85rem;
    flex: 1;
}

/* Notiz bewusst als eigene Zeile (flex-basis 100%) statt direkt neben der Uhrzeit, damit die
   Zeile nicht überladen wirkt - siehe Nutzerfeedback. */
.zeile-notiz {
    flex-basis: 100%;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-style: italic;
    margin-left: 2.1rem;
}

.zeile-pfarre {
    color: var(--bordeaux);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

/* ---------- "So findet ihr uns"-Karte ---------- */
.anfahrt-karte {
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 1.3rem 1.4rem 1.5rem;
}

.anfahrt-illustration {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60px;
    margin-bottom: 0.6rem;
}

.anfahrt-karte h3 {
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
}

.anfahrt-karte p {
    color: var(--text-soft);
    font-size: 0.88rem;
    margin: 0 0 0.6rem;
}

.anfahrt-liste {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.anfahrt-liste li {
    color: var(--bordeaux);
    font-weight: 600;
    font-size: 0.88rem;
    padding-left: 1rem;
    position: relative;
}

.anfahrt-liste li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

.anfahrt-karten-eingebettet {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--creme-dunkel);
    margin-bottom: 0.7rem;
    height: 280px;
    background: var(--creme-dunkel);
    position: relative;
    z-index: 1;
}

.anfahrt-karten-eingebettet iframe,
.anfahrt-karte-leaflet {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.kirchen-pin { background: transparent; border: none; }

.leaflet-popup-content { font-family: 'Source Sans 3', sans-serif; font-size: 0.85rem; line-height: 1.4; }
.leaflet-popup-content strong { color: var(--bordeaux); font-family: 'Cormorant Garamond', serif; font-size: 1rem; }

.anfahrt-link {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    color: var(--bordeaux);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.anfahrt-link:hover { color: var(--gold); text-decoration: underline; }

/* ---------- Vergrößerte Anfahrtskarte (Overlay statt Weiterleitung zu OpenStreetMap) ---------- */
.karten-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 8, 10, 0.92);
    align-items: center;
    justify-content: center;
}
.karten-overlay.offen { display: flex; }

.karten-overlay-inhalt {
    width: min(1100px, 92vw);
    height: 82vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.anfahrt-karte-gross {
    width: 100%;
    height: 100%;
}

.karten-overlay-schliessen {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--weiss);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
}
.karten-overlay-schliessen:hover { background: rgba(255,255,255,0.22); }

/* ---------- Sonderzeiten ---------- */
.sonderzeiten-panel {
    border-top: 1px solid var(--creme-dunkel);
    padding-top: 1.8rem;
}

.empty-state {
    color: #999;
    font-style: italic;
    padding: 2rem 0;
    text-align: center;
}

@media (max-width: 900px) {
    .gd-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .gd-seitenleiste {
        margin: 0 auto;
        max-width: 420px;
        position: static;
        /* Kalender & Karte sollen auf schmalen Bildschirmen trotzdem zuerst kommen,
           nicht erst nach der ganzen Wochenliste. */
        order: -1;
    }
}

@media (max-width: 620px) {
    .eintrag-zeile {
        flex-wrap: wrap;
        row-gap: 0.15rem;
    }
    .zeile-zeit { flex: 1 1 auto; }
    .zeile-kategorie { flex-basis: 100%; margin-left: 1.8rem; }
    .zeile-pfarre { flex-basis: 100%; margin-left: 1.8rem; text-align: left; }
}

@media (max-width: 400px) {
    .gd-hauptbereich h1 { font-size: 2.1rem; }
    .kategorie-pillen { gap: 0.35rem; margin-bottom: 1.6rem; }
    .kategorie-filter { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
    .eintrag-zeile { gap: 0.6rem; padding: 0.6rem 0.1rem; }
    .zeile-zeit { font-size: 0.92rem; }
    .mini-kalender-kopf { padding: 0.6rem 0.7rem; }
    .mk-tag { font-size: 0.74rem; }
    .anfahrt-karte { padding: 1rem 1rem 1.2rem; }
}

/* ---------- Großer Kalender auf der Startseite ---------- */
.ss-kalender-layout {
    display: grid;
    grid-template-columns: minmax(280px, 480px) 1fr;
    gap: 32px;
    align-items: start;
}

.grosser-kalender .mini-kalender-kopf {
    padding: 1rem 1.3rem;
}

.grosser-kalender .monat-titel {
    font-size: 1.4rem;
}

.grosser-kalender .mini-kalender-tage-kopf {
    font-size: 0.82rem;
    padding: 1rem 0.9rem 0.3rem;
}

.mini-kalender-raster.gross {
    gap: 5px;
    padding: 0.4rem 0.9rem 1.1rem;
}

.mini-kalender-raster.gross .mk-tag {
    font-size: 1rem;
    border-radius: 10px;
}

.mini-kalender-raster.gross .mk-dot {
    width: 5px;
    height: 5px;
}

.mini-kalender-raster.gross .mk-dots {
    max-width: 30px;
}

.ss-tagesliste {
    min-height: 340px;
}

.ss-tagesliste h3 {
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .ss-kalender-layout {
        grid-template-columns: 1fr;
    }
}

.kalender-legende {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 22px;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.kalender-legende span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kalender-legende .mk-dot {
    width: 9px;
    height: 9px;
}
