@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
    --bordeaux: #6e1423;
    --bordeaux-dunkel: #4a0e18;
    --gold: #b8892f;
    --gold-hell: #d9b872;
    --creme: #faf6ef;
    --creme-dunkel: #f0e8d8;
    --text: #2b2320;
    --text-soft: #5c5148;
    --weiss: #ffffff;
    --schatten: 0 8px 24px rgba(74, 14, 24, 0.10);
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    background: var(--creme);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, .brand {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--bordeaux-dunkel);
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.1rem); margin: 0 0 0.5em; }
h3 { font-size: clamp(1.5rem, 3vw, 1.5rem); margin: 0 0 0.4em; }

a { color: var(--bordeaux); text-decoration: none; }
a:hover { color: var(--gold); }

/* Bewusst breiter als früher (siehe Nutzerfeedback: kein künstlicher Leerraum links/rechts auf
   breiten Bildschirmen) - der Inhalt soll sich ähnlich wie die Kopfzeile (siehe .header-inner, die
   denselben Wert verwendet, damit beides bündig bleibt) an den natürlichen 32px-Innenabstand statt
   an einer engen festen Breite orientieren. Der max-width-Deckel bleibt trotzdem bestehen, damit
   Textzeilen auf sehr breiten/ultrabreiten Monitoren nicht unlesbar lang werden. */
.container {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-weit {
    max-width: 1960px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Fußleiste immer am unteren Bildschirmrand, auch bei kurzen Seiten */
body > *:not(header):not(footer) {
    flex: 1 0 auto;
}

/* ---------- Header / Navigation ---------- */
header.site-header {
    background: linear-gradient(135deg, var(--bordeaux-dunkel), var(--bordeaux));
    color: var(--creme);
    box-shadow: var(--schatten);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    max-width: 1760px;
    margin: 0 auto;
}

.brand {
    color: var(--creme);
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-hell);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

nav.main-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

nav.main-nav a {
    color: var(--creme-dunkel);
    font-weight: 500;
    font-size: 0.98rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    color: var(--gold-hell);
    border-bottom-color: var(--gold-hell);
}

.nav-admin-link {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--bordeaux) 0%, var(--bordeaux-dunkel) 100%);
    color: var(--creme);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 32px;
}

.hero-text { text-align: left; }

.hero h1 { color: var(--weiss); }
.hero p { font-size: 1.2rem; color: var(--creme-dunkel); max-width: 520px; }

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-bild {
    display: flex;
    justify-content: center;
}

.hero-bild svg {
    width: 100%;
    max-width: 420px;
    height: auto;
}

@media (max-width: 820px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text { text-align: center; }
    .hero p { margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    /* WhatsApp-Karte mitzentriert, passend zum zentrierten Hero-Text auf schmalen Bildschirmen. */
    .hero .wa-karte { margin-left: auto; margin-right: auto; }
    .hero-bild { max-width: 320px; margin: 0 auto; order: -1; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, background 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--gold);
    color: var(--bordeaux-dunkel);
}
.btn-primary:hover { background: var(--gold-hell); color: var(--bordeaux-dunkel); }

.btn-outline {
    background: transparent;
    border-color: var(--creme-dunkel);
    color: var(--creme);
}
.btn-outline:hover { border-color: var(--gold-hell); color: var(--gold-hell); }

.btn-small {
    padding: 7px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    background: var(--bordeaux);
    color: var(--weiss);
}
.btn-small:hover { background: var(--gold); color: var(--bordeaux-dunkel); }

.btn-danger {
    background: #8a2733;
}
.btn-danger:hover { background: #a8323f; color: var(--weiss); }

/* ---------- WhatsApp-Gruppe (Einladungs-Karte, siehe fragments/whatsapp.html) ---------- */
/* Bewusst im WhatsApp-Snippet-Look (weiße Karte, rundes Gruppen-Icon, kräftiges offizielles
   WhatsApp-Grün #25D366) statt in den Bordeaux/Gold-Tönen der Seite - die Karte soll auf
   einen Blick als WhatsApp-Gruppe erkennbar sein. */
.wa-karte {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 16px 18px;
    width: 100%;
    max-width: 420px;
}

/* Gruppen-Icon wie in WhatsApp: rundes Profilbild (hier dasselbe runde Website-Logo wie im
   Header-Favicon, weil die Gruppe dasselbe Icon verwendet) mit grünem Ring. */
.wa-avatar {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid #25D366;
}
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wa-info { flex: 1 1 160px; min-width: 0; }
.wa-name { display: block; font-weight: 600; color: var(--text); line-height: 1.35; }
.wa-unterzeile { display: block; font-size: 0.85rem; color: var(--text-soft); margin-top: 2px; }

/* Beitreten-Button in WhatsApp-Grün mit weißer Schrift, wie die echten WhatsApp-Buttons. */
.wa-btn {
    flex: none;
    display: inline-block;
    background: #25D366;
    color: var(--weiss);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 20px;
    border-radius: 999px;
    transition: background 0.2s, transform 0.15s;
}
.wa-btn:hover { background: #1ebe5d; color: var(--weiss); transform: translateY(-1px); }

/* Platzierung im Hero der Startseite: unterhalb der beiden Hero-Buttons. */
.hero .wa-karte { margin-top: 26px; }

/* Platzierung auf der Kontakt-Seite: mittig zwischen Einleitung und Spalten-Layout. */
.kontakt-whatsapp { max-width: 420px; margin: 0 auto 32px; }

/* Auf schmalen Bildschirmen rutscht der Button (flex-wrap siehe oben) unter die Info-Zeile
   und füllt dort die ganze Breite aus, statt verloren klein neben dem Gruppennamen zu stehen. */
@media (max-width: 480px) {
    .wa-btn { width: 100%; text-align: center; }
}

/* ---------- Sections & Cards ---------- */
section { padding: 64px 0; }
section.alt { background: var(--creme-dunkel); }

.section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
    color: var(--text-soft);
}

/* ---------- Hero-Kopfbereich (z.B. /events): dunkler Verlauf über einem echten Event-Bild ---------- */
.events-hero {
    position: relative;
    background-color: var(--bordeaux-dunkel);
    background-size: cover;
    background-position: center;
    padding: 90px 0 56px;
    margin-bottom: 8px;
}
.events-hero h1 { color: var(--creme); text-align: left; }
.events-hero .events-hero-intro { color: var(--creme-dunkel); text-align: left; margin-left: 0; }

/* Kommende/Vergangene sitzt wie ein Reiter mittig unten im Hero-Bild, statt darunter im Fließtext -
   siehe Nutzerfeedback (bewusst die einzige Ausnahme von "Filter stehen links"). */
.events-hero-zeitraum {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    z-index: 2;
}
.events-hero-zeitraum .zeitraum-umschalter {
    margin: 0;
    box-shadow: 0 6px 18px rgba(20, 8, 10, 0.35);
}

/* Der Bereich direkt nach einem Hero (siehe .events-hero/.gottesdienste-hero/.galerie-hero) soll
   nahtloser anschließen statt den üblichen großzügigen section-Innenabstand oben zu wiederholen -
   sonst wirkt z.B. "Kommende/Vergangene" unnötig weit vom Hero-Bild entfernt. */
.nach-hero { padding-top: 28px; }

/* /gottesdienste hat kein einzelnes "passendes" Foto wie /events - stattdessen ein großes, dezentes
   Kreuz-Symbol als Wasserzeichen im Hintergrund statt eines Fotos. */
.gottesdienste-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--bordeaux-dunkel);
    padding: 70px 0 50px;
    margin-bottom: 8px;
}
.gottesdienste-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 340px;
    height: 340px;
    background-color: rgba(250, 246, 239, 0.09);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2h2v7h7v2h-7v11h-2V11H4V9h7z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2h2v7h7v2h-7v11h-2V11H4V9h7z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    pointer-events: none;
}
.gottesdienste-hero .container { position: relative; z-index: 1; }
.gottesdienste-hero h1 { color: var(--creme); }
.gottesdienste-hero .gd-intro { color: var(--creme-dunkel); }

/* Gleicher Aufbau wie .gottesdienste-hero, hier mit einem Bilder-Symbol statt eines Kreuzes. */
.galerie-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--bordeaux-dunkel);
    padding: 70px 0 50px;
    margin-bottom: 8px;
}
.galerie-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 340px;
    height: 340px;
    background-color: rgba(250, 246, 239, 0.09);
    -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.3' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='15' rx='1.5'/%3E%3Ccircle cx='8.5' cy='11' r='2.2'/%3E%3Cpath d='M22 16l-5.5-5-8.5 8.5'/%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.3' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='15' rx='1.5'/%3E%3Ccircle cx='8.5' cy='11' r='2.2'/%3E%3Cpath d='M22 16l-5.5-5-8.5 8.5'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    pointer-events: none;
}
.galerie-hero .container { position: relative; z-index: 1; }
.galerie-hero h1 { color: var(--creme); }
.galerie-hero .gd-intro { color: var(--creme-dunkel); }

.card {
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 28px;
}

/* ---------- Icon-Badges für Karten (z.B. Startseite "Neu im Glauben") ---------- */
.card-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--bordeaux), var(--bordeaux-dunkel));
    margin-bottom: 16px;
}

.card-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    flex: none;
    background-color: var(--gold-hell);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.card-icon-schritte {
    -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='12' r='9'/%3E%3Cpath d='M12 7l2.2 5L12 17l-2.2-5z'/%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='12' r='9'/%3E%3Cpath d='M12 7l2.2 5L12 17l-2.2-5z'/%3E%3C/svg%3E");
}

.card-icon-community {
    -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='8.5' cy='7.5' r='2.6'/%3E%3Cpath d='M3 19c0-3 2.5-5.2 5.5-5.2s5.5 2.2 5.5 5.2'/%3E%3Ccircle cx='16.3' cy='8' r='2.1'/%3E%3Cpath d='M14.8 14.1c2.7 .3 4.7 2.3 4.7 4.9'/%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='8.5' cy='7.5' r='2.6'/%3E%3Cpath d='M3 19c0-3 2.5-5.2 5.5-5.2s5.5 2.2 5.5 5.2'/%3E%3Ccircle cx='16.3' cy='8' r='2.1'/%3E%3Cpath d='M14.8 14.1c2.7 .3 4.7 2.3 4.7 4.9'/%3E%3C/svg%3E");
}

.card-icon-chat {
    -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='M4 5h16v11H9l-4 4V5z'/%3E%3Cline x1='8' y1='9' x2='16' y2='9'/%3E%3Cline x1='8' y1='12.5' x2='13' y2='12.5'/%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='M4 5h16v11H9l-4 4V5z'/%3E%3Cline x1='8' y1='9' x2='16' y2='9'/%3E%3Cline x1='8' y1='12.5' x2='13' y2='12.5'/%3E%3C/svg%3E");
}

.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Feste 3 gleich breite Spalten (statt auto-fit mit fixer Mindestbreite) - für Bereiche wie
   /admin/sicherheit, wo 3 Karten den verfügbaren Platz immer gleichmäßig ausfüllen sollen, statt
   bei viel Platz schmal zu bleiben und Leerraum daneben zu lassen. */
.grid-3-fest { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
    .grid-3-fest { grid-template-columns: 1fr; }
}

/* ---------- Gottesdienstzeiten ---------- */
.pfarre-block {
    margin-bottom: 36px;
}

.pfarre-block h3 {
    border-bottom: 2px solid var(--gold-hell);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.zeiten-kategorie {
    margin-bottom: 14px;
}

.zeiten-kategorie .label {
    font-weight: 600;
    color: var(--bordeaux);
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.zeiten-kategorie .text {
    color: var(--text-soft);
}
.kategorie-block {
    margin-top: 3rem;
}

.kategorie-titel {
    color: #6b1523;
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid #c9a15a;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
/* ---------- Event-Karte ---------- */
/* Karten sind für Events doch sinnvoll (Nutzerfeedback nach Testen der kartenlosen Variante) -
   bewusst aber zurückhaltender als vorher: kleiner Radius statt stark abgerundeter Ecken, ein feiner
   Rahmen statt eines kräftigen Schattens - vermeidet den generischen "KI-Template"-Look, ohne auf
   die klare visuelle Gruppierung einer Karte zu verzichten. Bild/Inhalt teilen sich weiterhin die
   Breite zur Hälfte, der Titel bleibt in der größeren Serifenschrift. */
.event-card {
    background: var(--weiss);
    border: 1px solid var(--creme-dunkel);
    border-radius: 6px;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-bottom: 24px;
}

.event-card:last-child { margin-bottom: 0; }

/* .event-card-bild ist ein eigenes Element (statt das <img> direkt zu stylen), damit das
   "Eselsohr" bei mehreren Terminen (siehe .hat-mehrere-termine weiter unten) etwas zum Anlegen hat. */
.event-card-bild {
    position: relative;
    flex: 1 1 50%;
    overflow: hidden;
    min-width: 0;
}
.event-card-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-card .event-body {
    padding: 28px 32px;
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.event-card h3 {
    font-size: 1.9rem;
    line-height: 1.15;
}

.event-grid { display: block; }

/* "Ansicht"-Umschalter (wie viele Events nebeneinander) auf /events - siehe events.html. Bewusst
   dieselbe Pillen-Optik wie .pfarre-filter/.kategorie-filter, aber als eigene, kompaktere Klasse,
   da hier nur 3 kurze Ziffern statt langer Labels stehen. */
.ansicht-umschalter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ansicht-label {
    font-size: 0.88rem;
    color: var(--text-soft);
    margin-right: 2px;
}
.ansicht-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--creme-dunkel);
    background: var(--weiss);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}
.ansicht-btn.aktiv {
    background: var(--bordeaux);
    border-color: var(--bordeaux);
    color: var(--weiss);
}

/* Mehrspaltige Ansicht (2 oder 3 Events nebeneinander, siehe Ansicht-Umschalter oben): die Karten
   wechseln dafür auf denselben kompakten, gestapelten Stil wie .whats-on-more auf der Startseite
   (Bild oben, Text darunter) statt der breiten Bild-links/Text-rechts-Karte, die bei schmaleren
   Spalten sonst zu gequetscht wirken würde. */
.event-grid.eg-mehrspaltig {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.event-grid.eg-mehrspaltig.eg-spalten-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.event-grid.eg-mehrspaltig .event-card {
    flex-direction: column;
    margin-bottom: 0;
}
.event-grid.eg-mehrspaltig .event-card-bild {
    width: 100%;
    height: 200px;
    flex: none;
}
.event-grid.eg-mehrspaltig .event-card .event-body {
    padding: 20px;
}
.event-grid.eg-mehrspaltig .event-card h3 {
    font-size: 1.4rem;
}
@media (max-width: 900px) {
    .event-grid.eg-mehrspaltig,
    .event-grid.eg-mehrspaltig.eg-spalten-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .event-grid.eg-mehrspaltig,
    .event-grid.eg-mehrspaltig.eg-spalten-3 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .event-card { flex-direction: column; }
    .event-card-bild { width: 100%; height: 240px; flex: none; }
    .event-card .event-body { padding: 20px; }
}

/* Eyebrow-Label statt Pill/Badge - Typografie (Großbuchstaben, Sperrung) statt eines
   eingefärbten Kastens macht die Kategorie kenntlich. */
.event-badge {
    display: inline-block;
    background: none;
    color: var(--bordeaux);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0;
    border-radius: 0;
    margin-bottom: 10px;
}

/* "Details ansehen"/"Details" innerhalb eines Event-Eintrags: schlichter Text-Link mit Pfeil statt
   eines gefüllten Buttons, der sonst selbst wie eine weitere kleine Card wirkt. */
.event-card .btn, .featured-event .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    color: var(--bordeaux);
    border: none;
    padding: 0;
    margin-top: 14px;
    border-radius: 0;
    box-shadow: none;
    font-weight: 700;
}
.event-card .btn::after, .featured-event .btn::after { content: '→'; transition: transform 0.15s ease; }
.event-card .btn:hover, .featured-event .btn:hover { color: var(--gold); background: none; }
.event-card .btn:hover::after, .featured-event .btn:hover::after { transform: translateX(3px); }

.event-meta {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin: 10px 0;
}
/* gap statt auf Leerzeichen im HTML zu vertrauen: in einem Flex-Container werden
   Text-Knoten, die nur aus Whitespace bestehen, ignoriert ("Wann:05.10.2026" ohne Lücke),
   deshalb sorgt hier gap zuverlässig für Abstand zwischen Icon/Label/Wert. */
.event-meta div { margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }

/* Beschreibung auf Kartenansichten (Startseite, /events): standardmäßig auf ein paar Zeilen
   geklemmt, damit lange Texte die Karten nicht sprengen, aber per "Weiterlesen" (siehe
   event-beschreibung.js) komplett aufklappbar statt nur stumm abgeschnitten. */
.event-beschreibung-kurz {
    color: var(--text-soft);
    margin: 8px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-beschreibung-kurz.ausgeklappt {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.event-weiterlesen-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 10px;
    color: var(--bordeaux);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: underline;
    width: fit-content;
}
.event-weiterlesen-btn:hover { color: var(--gold); }

/* Basis für alle mask-image-Icons (.icon-*, .eventkat-icon-*, admin-icon-* nutzen dasselbe Prinzip
   an anderer Stelle) - war früher nur als ".event-meta .icon" definiert, wodurch Icons AUSSERHALB
   von .event-meta (z.B. .event-badge-mit-icon, .lightbox-details, die Kategorie-Vorschau im Admin)
   unsichtbar blieben (kein display:inline-block -> width/height auf einem <span> wirkungslos, kein
   background-color -> nichts zu sehen). Einzelne Stellen überschreiben bei Bedarf nur noch Größe/Farbe. */
.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;
}

.event-meta .icon {
    color: var(--gold);
    margin-right: 8px;
}

.icon-datum {
    -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%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%3C/svg%3E");
}

.icon-ort {
    -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 21s7-7.4 7-12.5A7 7 0 1 0 5 8.5C5 13.6 12 21 12 21z'/%3E%3Ccircle cx='12' cy='8.4' r='2.3'/%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 21s7-7.4 7-12.5A7 7 0 1 0 5 8.5C5 13.6 12 21 12 21z'/%3E%3Ccircle cx='12' cy='8.4' r='2.3'/%3E%3C/svg%3E");
}

.icon-gruppe {
    -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='8.5' cy='7.5' r='2.6'/%3E%3Cpath d='M3 19c0-3 2.5-5.2 5.5-5.2s5.5 2.2 5.5 5.2'/%3E%3Ccircle cx='16.3' cy='8' r='2.1'/%3E%3Cpath d='M14.8 14.1c2.7 .3 4.7 2.3 4.7 4.9'/%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='8.5' cy='7.5' r='2.6'/%3E%3Cpath d='M3 19c0-3 2.5-5.2 5.5-5.2s5.5 2.2 5.5 5.2'/%3E%3Ccircle cx='16.3' cy='8' r='2.1'/%3E%3Cpath d='M14.8 14.1c2.7 .3 4.7 2.3 4.7 4.9'/%3E%3C/svg%3E");
}

/* "Für wen" (Zielgruppe) - bewusst ein eigenes Etikett-Icon statt desselben Personen-Icons wie
   "Veranstalter", damit die beiden Zeilen auf der Event-Detailseite auf einen Blick unterscheidbar sind. */
.icon-zielgruppe {
    -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.6 2.5h5.4a1.5 1.5 0 0 1 1.5 1.5v5.4a2 2 0 0 1-.6 1.4l-9 9a2 2 0 0 1-2.8 0l-5.4-5.4a2 2 0 0 1 0-2.8l9-9a2 2 0 0 1 1.4-.6z'/%3E%3Ccircle cx='16.5' cy='7.5' r='1.3' fill='%23000' stroke='none'/%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.6 2.5h5.4a1.5 1.5 0 0 1 1.5 1.5v5.4a2 2 0 0 1-.6 1.4l-9 9a2 2 0 0 1-2.8 0l-5.4-5.4a2 2 0 0 1 0-2.8l9-9a2 2 0 0 1 1.4-.6z'/%3E%3Ccircle cx='16.5' cy='7.5' r='1.3' fill='%23000' stroke='none'/%3E%3C/svg%3E");
}

/* ---------- Kuratiertes Icon-Set für Event-Kategorien (siehe EventKategorie/AdminEventKategorieController) ----------
   Bewusst eine feste, kleine Auswahl statt freiem SVG-Upload (kein XSS-Risiko durch Admin-Eingaben). */
.eventkat-icon-kreuz {
    -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.7' stroke-linecap='round'%3E%3Cline x1='12' y1='2' x2='12' y2='22'/%3E%3Cline x1='5' y1='8' x2='19' y2='8'/%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.7' stroke-linecap='round'%3E%3Cline x1='12' y1='2' x2='12' y2='22'/%3E%3Cline x1='5' y1='8' x2='19' y2='8'/%3E%3C/svg%3E");
}
.eventkat-icon-gruppe {
    -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='8.5' cy='7.5' r='2.6'/%3E%3Cpath d='M3 19c0-3 2.5-5.2 5.5-5.2s5.5 2.2 5.5 5.2'/%3E%3Ccircle cx='16.3' cy='8' r='2.1'/%3E%3Cpath d='M14.8 14.1c2.7 .3 4.7 2.3 4.7 4.9'/%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='8.5' cy='7.5' r='2.6'/%3E%3Cpath d='M3 19c0-3 2.5-5.2 5.5-5.2s5.5 2.2 5.5 5.2'/%3E%3Ccircle cx='16.3' cy='8' r='2.1'/%3E%3Cpath d='M14.8 14.1c2.7 .3 4.7 2.3 4.7 4.9'/%3E%3C/svg%3E");
}
.eventkat-icon-buch {
    -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 5.2c3-1.4 6-1.4 9 0c3-1.4 6-1.4 9 0v13.6c-3-1.4-6-1.4-9 0c-3-1.4-6-1.4-9 0z'/%3E%3Cline x1='12' y1='5.2' x2='12' y2='18.8'/%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 5.2c3-1.4 6-1.4 9 0c3-1.4 6-1.4 9 0v13.6c-3-1.4-6-1.4-9 0c-3-1.4-6-1.4-9 0z'/%3E%3Cline x1='12' y1='5.2' x2='12' y2='18.8'/%3E%3C/svg%3E");
}
.eventkat-icon-weg {
    -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 19l5.5-12l3.5 6l2.5-4.5l6.5 10.5'/%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 19l5.5-12l3.5 6l2.5-4.5l6.5 10.5'/%3E%3C/svg%3E");
}
.eventkat-icon-kompass {
    -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='12' r='9'/%3E%3Cpath d='M15 9l-4 3l1 4l4-3z' fill='%23000' stroke='none'/%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='12' r='9'/%3E%3Cpath d='M15 9l-4 3l1 4l4-3z' fill='%23000' stroke='none'/%3E%3C/svg%3E");
}
.eventkat-icon-stern {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2l2.9 6.5L22 9.3l-5 4.9L18.2 22L12 18.3L5.8 22L7 14.2L2 9.3l7.1-.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='%23000'%3E%3Cpath d='M12 2l2.9 6.5L22 9.3l-5 4.9L18.2 22L12 18.3L5.8 22L7 14.2L2 9.3l7.1-.8z'/%3E%3C/svg%3E");
}
.eventkat-icon-musik {
    -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='M9 18V5l10-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='16' cy='16' r='3'/%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='M9 18V5l10-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='16' cy='16' r='3'/%3E%3C/svg%3E");
}
.eventkat-icon-herz {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 21s-7-4.35-9.5-8.5C1 9 2.5 5 6 5c2 0 3.5 1.2 4 2.5c.5-1.3 2-2.5 4-2.5c3.5 0 5 4 3.5 7.5C19 16.65 12 21 12 21z'/%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='%23000'%3E%3Cpath d='M12 21s-7-4.35-9.5-8.5C1 9 2.5 5 6 5c2 0 3.5 1.2 4 2.5c.5-1.3 2-2.5 4-2.5c3.5 0 5 4 3.5 7.5C19 16.65 12 21 12 21z'/%3E%3C/svg%3E");
}

/* Event-Badge mit Kategorie-Farbe/Icon (siehe event-badge-mit-icon in den Templates) - Farbe kommt
   per Inline-style (--kat-farbe) vom jeweiligen EventKategorie-Datensatz, da sie frei wählbar ist. */
.event-badge-mit-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--kat-farbe, var(--bordeaux));
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.event-badge-mit-icon .icon {
    width: 14px;
    height: 14px;
    flex: none;
}

/* ---------- Mehrtägige/mehrfache Events: "Eselsohr"-Markierung + Termine-Liste ---------- */
/* Angelehnt an eine umgeknickte Papier-Ecke ("dog-ear") - markiert Karten, deren Event mehr als
   einen Termin hat (siehe Event.hatMehrereTermine), ohne extra Text/Badge zu brauchen. Die Karten
   selbst haben schon overflow:hidden + abgerundete Ecken, die Ecke "deckt" die runde Kartenecke
   dadurch sauber ab statt seltsam dagegen geclippt zu werden. */
.hat-mehrere-termine {
    position: relative;
}
.hat-mehrere-termine::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 48px 48px 0;
    border-color: transparent var(--gold) transparent transparent;
    filter: drop-shadow(-2px 2px 3px rgba(74, 14, 24, 0.25));
    z-index: 2;
    pointer-events: none;
}
/* Kleines "Wiederholt sich"-Symbol IN der Ecke, statt einer bloß eingefärbten Fläche ohne erkennbare
   Bedeutung (siehe Nutzerfeedback) - um 45° gedreht, damit es der Falz-Diagonale folgt. Der native
   title="" auf der Karte selbst (siehe events.html/index.html) liefert den Text dazu beim Hover.
   Position: der Schwerpunkt eines rechtwinkligen Dreiecks mit Kathetenlänge 48px (siehe ::after
   oben) liegt bei einem Drittel jeder Kathete vom rechten Winkel entfernt, also bei (16px, 16px) ab
   der Kartenecke - top/right hier so gewählt, dass die Mitte des Icons (nicht seine Ecke) genau
   dort landet, statt näher an der äußeren Falz-Diagonale zu wirken. */
.hat-mehrere-termine::before {
    content: '';
    position: absolute;
    top: 7px;
    right: 7px;
    width: 18px;
    height: 18px;
    background-color: var(--creme);
    -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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l4 4-4 4'/%3E%3Cpath d='M21 6H8a4 4 0 0 0-4 4v1'/%3E%3Cpath d='M7 22l-4-4 4-4'/%3E%3Cpath d='M3 18h13a4 4 0 0 0 4-4v-1'/%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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l4 4-4 4'/%3E%3Cpath d='M21 6H8a4 4 0 0 0-4 4v1'/%3E%3Cpath d='M7 22l-4-4 4-4'/%3E%3Cpath d='M3 18h13a4 4 0 0 0 4-4v-1'/%3E%3C/svg%3E");
    transform: rotate(45deg);
    z-index: 3;
    pointer-events: none;
}

/* Termine-Karte rechts auf der Event-Detailseite (siehe event-detail.html), wenn ein Event mehrere
   Termine hat - eigene Spalte statt einer langen Liste mitten im Fließtext, die Seite hat dafür
   ohnehin genug Platz (siehe Nutzerfeedback). Bewusst NICHT sticky wie .wegbeschreibung-karte: bei
   vielen Terminen (z.B. täglich über mehrere Wochen) würde eine fixierte, sehr hohe Karte seltsam
   wirken - sie scrollt stattdessen ganz normal mit der Seite mit. */
.event-termine-karte {
    margin-top: 20px;
}
.event-termine-karte h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.event-termin-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--creme-dunkel);
    font-size: 0.94rem;
}
.event-termin-zeile:last-child {
    border-bottom: none;
}
.event-termin-zeile .et-datum {
    font-weight: 600;
    color: var(--bordeaux-dunkel);
}
.event-termin-zeile .et-uhrzeit {
    color: var(--text-soft);
    flex: 0 0 auto;
}
.event-termin-zeile .et-ort {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-soft);
}
.event-termin-zeile .et-ort .icon {
    width: 14px;
    height: 14px;
    margin-right: 0;
}

/* ---------- Galerie ---------- */
/* Enger, dichter angeordnetes Raster (statt großer Lücken) - der Titel-Overlay zeigt bei Bedarf
   auch, zu welchem Event ein Bild gehört. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 6px;
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: var(--weiss);
    font: inherit;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }

.gallery-item-titel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 20px 14px 12px;
    background: linear-gradient(to top, rgba(20, 8, 10, 0.82), transparent);
    color: var(--weiss);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: left;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .gallery-item-titel,
.gallery-item:focus-visible .gallery-item-titel { opacity: 1; transform: translateY(0); }

.gallery-item-event {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gold-hell);
}

/* ---------- Öffentliche Galerie: dichtes Pinterest-artiges Masonry-Layout ---------- */
/* CSS-Columns statt Grid: jedes Bild behält sein eigenes, natürliches Seitenverhältnis (kein
   object-fit-Zuschnitt), die Spalten füllen sich wie bei einem Moodboard von oben nach unten -
   Hoch- und Querformate wirken dadurch bewusst uneinheitlich statt maschinell gleich groß. Sehr
   schmale Abstände statt großzügigem Weißraum, angelehnt an ein dichtes Pinterest-Board. Bewusst
   komplett rechteckig (kein border-radius) statt abgerundeter Karten: wirkt ruhiger, näher an einer
   Ausstellungs-Bildstrecke als an einem typischen "SaaS"-Kachelraster. */
/* Weniger, dafür deutlich größere Spalten als zuvor (siehe Nutzerfeedback: Bilder sind wichtig,
   sollen mehr Platz haben) - Karte liegt jetzt auch in .container-weit statt .container. */
.editorial-galerie {
    column-count: 4;
    column-gap: 10px;
}

@media (max-width: 1500px) { .editorial-galerie { column-count: 3; } }
@media (max-width: 900px)  { .editorial-galerie { column-count: 2; } }
@media (max-width: 500px)  { .editorial-galerie { column-count: 1; } }

.editorial-photo {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin: 0 0 6px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    text-align: left;
}

.editorial-photo-rahmen {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--creme-dunkel);
}

/* Jedes Bild behält grundsätzlich sein eigenes Seitenverhältnis (siehe Kommentar oben) - eine sehr
   hochkant fotografierte Aufnahme (z.B. Handyfoto) würde damit aber unbegrenzt hoch werden und die
   ganze Spalte sprengen. max-height fängt nur solche Ausreißer ab (normale Quer-/Hochformate bleiben
   unverändert); object-fit:cover statt fill, damit ein gekapptes Bild beschnitten statt gestaucht wird. */
.editorial-photo img {
    width: 100%;
    height: auto;
    max-height: 640px;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

@media (max-width: 500px) {
    .editorial-photo img { max-height: 520px; }
}

/* Sehr dezente Abdunkelung statt Schatten/Glow beim Hover - über ein Pseudo-Element, damit das
   Bild selbst nicht durch einen Filter an Qualität verliert. */
.editorial-photo-rahmen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 14, 12, 0.16);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.editorial-photo:hover img,
.editorial-photo:focus-visible img { transform: scale(1.025); }

.editorial-photo:hover .editorial-photo-rahmen::after,
.editorial-photo:focus-visible .editorial-photo-rahmen::after { opacity: 1; }

/* Titel/Event liegen als Overlay über dem Bild und erscheinen erst bei Hover/Fokus - dadurch bleibt
   das dichte Board ruhig und aufgeräumt, die Zuordnung ist trotzdem einen Hover entfernt. */
.editorial-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 22px 14px 12px;
    background: linear-gradient(to top, rgba(20, 8, 10, 0.85), transparent);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.28rem;
    color: var(--creme);
    line-height: 1.3;
    text-align: left;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.editorial-photo:hover .editorial-photo-caption,
.editorial-photo:focus-visible .editorial-photo-caption { opacity: 1; transform: translateY(0); }

.editorial-photo-event {
    display: block;
    margin-top: 3px;
    font-family: 'Source Sans 3', sans-serif;
    font-style: normal;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--gold-hell);
}

.editorial-photo-veranstalter {
    display: block;
    margin-top: 1px;
    font-family: 'Source Sans 3', sans-serif;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(250, 246, 239, 0.75);
}

/* ---------- Startseite: Galerie-Vorschau ---------- */
.ss-galerie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.ss-galerie-bild {
    display: block;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--schatten);
}

.ss-galerie-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ss-galerie-bild:hover img { transform: scale(1.07); }

@media (max-width: 900px) {
    .ss-galerie-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .ss-galerie-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Kommende/Vergangene-Umschalter auf der Event-Seite ---------- */
.zeitraum-umschalter {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 20px;
    width: fit-content;
    background: var(--creme-dunkel);
    padding: 4px;
    border-radius: 999px;
}

.zeitraum-umschalter a {
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.zeitraum-umschalter a.aktiv {
    background: var(--bordeaux);
    color: var(--weiss);
}

.zeitraum-umschalter a:hover:not(.aktiv) { color: var(--bordeaux); }

/* ---------- Event-Detailseite: Wegbeschreibung seitlich ---------- */
.event-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.event-detail-layout.ohne-seitenleiste {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin: 0 auto;
}

.wegbeschreibung-karte {
    margin-top: 20px;
    position: sticky;
    top: 90px;
}

.wegbeschreibung-karte h3 { margin-bottom: 12px; }

.wegbeschreibung-medium {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 14px;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

@media (max-width: 860px) {
    .event-detail-layout { grid-template-columns: minmax(0, 1fr); }
    .wegbeschreibung-karte { position: static; }
}

/* ---------- Event-Bilderkarussell (Instagram-artig) ---------- */
.event-karussell {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schatten);
}

.ek-bilder {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ek-bilder::-webkit-scrollbar { display: none; }

.ek-bild {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
    border: none;
    padding: 0;
    margin: 0;
    background: var(--creme-dunkel);
    cursor: pointer;
}

.ek-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ek-pfeil {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 8, 10, 0.55);
    color: var(--weiss);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ek-pfeil:hover { background: rgba(20, 8, 10, 0.75); }
.ek-pfeil-links { left: 12px; }
.ek-pfeil-rechts { right: 12px; }

.ek-punkte {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.ek-punkt {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--creme-dunkel);
    border: 1px solid var(--gold);
    transition: background 0.2s;
}

.ek-punkt.aktiv { background: var(--gold); }

@media (max-width: 600px) {
    /* Touch-Swipe reicht auf dem Handy, Pfeile wären eher im Weg */
    .ek-pfeil { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 8, 10, 0.92);
    align-items: center;
    justify-content: center;
}
.lightbox.aktiv { display: flex; }

.lightbox-inhalt {
    max-width: min(900px, 90vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-inhalt img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.lightbox-info {
    color: var(--creme);
    text-align: center;
    margin-top: 16px;
    max-width: 640px;
}
.lightbox-info h3 { color: var(--gold-hell); margin-bottom: 6px; font-size: 1.3rem; }
.lightbox-info p { margin: 0; color: var(--creme-dunkel); font-size: 0.95rem; }

/* Zusatzangaben (Veranstalter, Event, Ort, Datum, Kategorie) beim Vergrößern eines Galeriebilds -
   siehe galerie.js. Leere Felder werden dort gar nicht erst als Zeile eingefügt. */
.lightbox-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-top: 14px;
    color: var(--creme-dunkel);
    font-size: 0.86rem;
}
.lightbox-details .lb-zeile {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lightbox-details .icon {
    width: 15px;
    height: 15px;
}

.lightbox-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;
}
.lightbox-schliessen:hover { background: rgba(255,255,255,0.22); }

.lightbox-nav {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--weiss);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    flex: none;
    margin: 0 16px;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }

@media (max-width: 700px) {
    .lightbox-nav { width: 40px; height: 40px; margin: 0 8px; }
}

/* ---------- Forms ---------- */
form.styled-form label {
    display: block;
    font-weight: 600;
    margin: 16px 0 6px;
    color: var(--bordeaux-dunkel);
}

form.styled-form input[type=text],
form.styled-form input[type=password],
form.styled-form input[type=email],
form.styled-form input[type=date],
form.styled-form input[type=time],
form.styled-form input[type=file],
form.styled-form select,
form.styled-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--creme-dunkel);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--weiss);
    color: var(--text);
}

form.styled-form textarea { min-height: 120px; resize: vertical; }

form.styled-form input:focus,
form.styled-form select:focus,
form.styled-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.pflicht {
    color: var(--bordeaux, #6e1423);
    margin-left: 2px;
}

.field-error {
    color: #a8323f;
    font-size: 0.85rem;
    margin-top: 4px;
}

.alert-success {
    background: #e8f3e6;
    color: #2c5c2a;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ---------- Footer ---------- */
/* Kein zusätzlicher margin-top mehr (siehe Nutzerfeedback: wirkte als seltsame leere Lücke vor der
   Fußzeile, zusammen mit dem ohnehin schon großzügigen section-Innenabstand von 64px). */
footer.site-footer {
    background: var(--bordeaux-dunkel);
    color: var(--creme-dunkel);
    padding: 40px 24px;
}

footer.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

footer.site-footer a { color: var(--gold-hell); }
footer.site-footer small { color: rgba(250, 246, 239, 0.6); }

/* ---------- Admin ---------- */
.admin-shell {
    display: flex;
}

/* Die äußere Leiste (.admin-sidebar) streckt sich per Flexbox auf die volle Höhe von .admin-content
   (dunkler Hintergrund geht immer bis nach unten durch, auch bei kurzen Seiten). Bewusst NICHT fix/
   sticky positioniert: das ließ die Leiste sonst über die Fußzeile hinausragen, sobald man dorthin
   scrollt (siehe Nutzerfeedback) - Flex-Stretch bleibt exakt innerhalb von .admin-shell, kann also
   nie über die eigentliche Fußzeile hinausreichen. Die Lücke, die davor sichtbar war, kam vom
   allgemeinen Fußzeilen-Abstand (siehe ".admin-shell + footer.site-footer" weiter unten). */
.admin-sidebar {
    width: 220px;
    flex: none;
    background: var(--bordeaux-dunkel);
    color: var(--creme-dunkel);
}

.admin-sidebar-inner {
    padding: 26px 18px;
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Seitenleiste und Fußzeile haben dieselbe dunkle Farbe und liegen jetzt ohne Lücke aneinander
   (siehe .admin-shell/.admin-sidebar oben) - eine feine helle Linie dazwischen macht trotzdem
   sichtbar, dass es zwei getrennte Elemente sind, statt dass beide optisch ineinander verschwimmen. */
.admin-shell + footer.site-footer {
    border-top: 1px solid rgba(250, 246, 239, 0.14);
}

.admin-sidebar-titel {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--gold-hell);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 20px;
    padding: 0 12px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--creme-dunkel);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 500;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: var(--gold-hell);
}

/* Ein-/ausklappbare Unterpunkte (z.B. "Kategorien"/"Arten" unter Gottesdienste/Events/Veranstalter) -
   standardmäßig eingeklappt, damit die Seitenleiste nicht mit selten gebrauchten Links zugestellt
   wird; klappt automatisch auf, wenn man sich gerade auf dem Unterpunkt selbst befindet. */
.admin-nav-zeile {
    display: flex;
    align-items: stretch;
    gap: 2px;
}
.admin-nav-zeile .admin-nav-haupt { flex: 1; margin-bottom: 0; }
.admin-nav-toggle {
    background: none;
    border: none;
    color: var(--creme-dunkel);
    cursor: pointer;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0.6;
    border-radius: 8px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.admin-nav-toggle:hover { opacity: 1; background: rgba(255,255,255,0.1); }
.admin-nav-toggle.offen { transform: rotate(90deg); }
.admin-nav-unter.versteckt { display: none; }

/* ---------- Admin-Sidebar-Icons ---------- */
.admin-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;
}

.admin-icon-kategorie {
    -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.6 2.5h5.4a1.5 1.5 0 0 1 1.5 1.5v5.4a2 2 0 0 1-.6 1.4l-9 9a2 2 0 0 1-2.8 0l-5.4-5.4a2 2 0 0 1 0-2.8l9-9a2 2 0 0 1 1.4-.6z'/%3E%3Ccircle cx='16.5' cy='7.5' r='1.3' fill='%23000' stroke='none'/%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.6 2.5h5.4a1.5 1.5 0 0 1 1.5 1.5v5.4a2 2 0 0 1-.6 1.4l-9 9a2 2 0 0 1-2.8 0l-5.4-5.4a2 2 0 0 1 0-2.8l9-9a2 2 0 0 1 1.4-.6z'/%3E%3Ccircle cx='16.5' cy='7.5' r='1.3' fill='%23000' stroke='none'/%3E%3C/svg%3E");
}

.admin-icon-dashboard {
    -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");
}

.admin-icon-messe {
    -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");
}

.admin-icon-kalender {
    -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%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%3C/svg%3E");
}

.admin-icon-galerie {
    -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='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.7'/%3E%3Cpath d='M21 15.5l-5.5-5-8.5 8'/%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='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.7'/%3E%3Cpath d='M21 15.5l-5.5-5-8.5 8'/%3E%3C/svg%3E");
}

.admin-icon-post {
    -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='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 7 8.5-7'/%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='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 7 8.5-7'/%3E%3C/svg%3E");
}

.admin-icon-web {
    -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='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%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='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3C/svg%3E");
}

.admin-icon-sicherheit {
    -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 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/%3E%3Cpath d='M9.3 12.2l1.9 1.9 3.5-3.9'/%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 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/%3E%3Cpath d='M9.3 12.2l1.9 1.9 3.5-3.9'/%3E%3C/svg%3E");
}

.admin-icon-benutzer {
    -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='8.5' cy='7.5' r='2.6'/%3E%3Cpath d='M3 19c0-3 2.5-5.2 5.5-5.2s5.5 2.2 5.5 5.2'/%3E%3Ccircle cx='16.3' cy='8' r='2.1'/%3E%3Cpath d='M14.8 14.1c2.7 .3 4.7 2.3 4.7 4.9'/%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='8.5' cy='7.5' r='2.6'/%3E%3Cpath d='M3 19c0-3 2.5-5.2 5.5-5.2s5.5 2.2 5.5 5.2'/%3E%3Ccircle cx='16.3' cy='8' r='2.1'/%3E%3Cpath d='M14.8 14.1c2.7 .3 4.7 2.3 4.7 4.9'/%3E%3C/svg%3E");
}

.admin-icon-veranstalter {
    -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 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.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%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.4'/%3E%3C/svg%3E");
}

.admin-icon-backup {
    -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 3v12'/%3E%3Cpath d='M7.5 10.5L12 15l4.5-4.5'/%3E%3Cpath d='M4 15v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-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%3Cpath d='M12 3v12'/%3E%3Cpath d='M7.5 10.5L12 15l4.5-4.5'/%3E%3Cpath d='M4 15v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E");
}

.admin-icon-telefon {
    -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.5 3.5l3 1.5-1.2 3.3c1 2.1 2.9 4 5 5l3.3-1.2 1.5 3-2.3 2.4c-4.8-.6-9.6-5.4-10.2-10.2z'/%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.5 3.5l3 1.5-1.2 3.3c1 2.1 2.9 4 5 5l3.3-1.2 1.5 3-2.3 2.4c-4.8-.6-9.6-5.4-10.2-10.2z'/%3E%3C/svg%3E");
}

.admin-icon-logout {
    -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='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%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='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

.admin-content {
    flex: 1;
    padding: 26px 32px;
}

/* Erlaubt Tabellen, auf schmalen Bildschirmen horizontal zu scrollen statt das Layout zu sprengen. */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.admin-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: var(--weiss);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schatten);
}

table.admin-table th, table.admin-table td {
    padding: 9px 14px;
    text-align: left;
    border-bottom: 1px solid var(--creme-dunkel);
    font-size: 0.94rem;
}

table.admin-table th {
    background: var(--creme-dunkel);
    color: var(--bordeaux-dunkel);
}

/* Admin-Übersicht: bewusst kein Karten-Look mehr (siehe Nutzerfeedback) - offene Reihe mit feinen
   Trennlinien statt einzelner weißer Kästen. */
.admin-stat-reihe {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-top: 1px solid var(--creme-dunkel);
    border-bottom: 1px solid var(--creme-dunkel);
}

.admin-stat {
    flex: 1 1 180px;
    padding: 14px 20px;
    text-align: center;
    border-left: 1px solid var(--creme-dunkel);
}
.admin-stat:first-child { border-left: none; }
.admin-stat .zahl {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem;
    color: var(--bordeaux);
    font-weight: 700;
}

.admin-aktionen-reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 28px;
}

.admin-aktion-link {
    flex: 1 1 260px;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
    color: var(--text);
}
.admin-aktion-link h3 { margin-bottom: 4px; color: var(--bordeaux-dunkel); }
.admin-aktion-link p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }
.admin-aktion-link:hover { border-left-color: var(--bordeaux); }
.admin-aktion-link:hover h3 { color: var(--gold); }

.admin-panel h3 { margin-bottom: 10px; }

.empty-state {
    text-align: center;
    color: var(--text-soft);
    padding: 40px;
}

.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 24px;
}

.login-card {
    max-width: 380px;
    width: 100%;
}

/* ---------- "Was passiert gerade"-Bereich auf der Startseite ---------- */
.eyebrow {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

/* Macht auf der Startseite klar, dass die groß hervorgehobene Karte konkret das NÄCHSTE Event ist
   (nicht nur irgendein Beispiel) - gleiche Typografie wie .eyebrow, aber linksbündig, passend zum
   übrigen linksbündigen Karteninhalt. */
.featured-naechstes-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

/* ---------- Startseite: "Gottesdienste heute"-Kompaktübersicht ---------- */
.heute-gottesdienste { padding-bottom: 24px; }

.heute-karte {
    max-width: 680px;
    margin: 0 auto;
}

.whats-on { padding-top: 32px; padding-bottom: 16px; }

/* Karte, aber zurückhaltend: kleiner Radius, feiner Rahmen statt kräftigem Schatten (siehe
   .event-card weiter oben) - das hervorgehobene nächste Event bleibt trotzdem prominent (großes
   Bild, große Titel-Type). */
.featured-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--weiss);
    border: 1px solid var(--creme-dunkel);
    border-radius: 6px;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 32px;
}

/* Eigenes Element um Bild/Platzhalter (statt das <img> direkt zu stylen), damit das "Eselsohr" bei
   mehreren Terminen (siehe .hat-mehrere-termine) etwas zum Anlegen hat. */
.featured-event-bild {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    max-height: 480px;
}

.featured-event-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    max-height: 480px;
    font-size: 5rem;
    color: var(--gold-hell);
    background: linear-gradient(160deg, var(--bordeaux), var(--bordeaux-dunkel));
}

.featured-event .featured-body {
    padding: 36px 40px 36px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.featured-event .featured-body h3 {
    font-size: 2.9rem;
    line-height: 1.1;
    margin-bottom: 6px;
}

.featured-event .event-meta {
    font-size: 1.1rem;
    margin: 16px 0;
}

.featured-event .featured-body p {
    font-size: 1.08rem;
}

/* Die weiteren Events (nach dem großen ersten) stehen zu zweit nebeneinander statt einzeln
   untereinander - etwas kleiner als die große erste Karte, damit klar bleibt, dass es sich um die
   "nächsten" statt gleichrangige Events handelt. */
.whats-on-more {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* In dieser zweispaltigen, schmaleren Anordnung wirkt der 50/50-Bild/Text-Zuschnitt aus .event-card
   zu gequetscht - hier stattdessen Bild oben, Text darunter, wie eine kompaktere Kachel. */
.whats-on-more .event-card {
    flex-direction: column;
}
.whats-on-more .event-card-bild {
    width: 100%;
    height: 200px;
    flex: none;
}
.whats-on-more .event-card .event-body {
    padding: 20px;
}
.whats-on-more .event-card h3 {
    font-size: 1.4rem;
}

@media (max-width: 700px) {
    .featured-event { grid-template-columns: 1fr; gap: 20px; }
    .featured-event-bild, .featured-placeholder { min-height: 200px; }
    .featured-event .featured-body { padding: 0 20px 20px; }
    .whats-on-more { grid-template-columns: 1fr; }
}

/* ---------- Mobiles Burger-Menü ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--creme);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    nav.main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bordeaux-dunkel);
        box-shadow: var(--schatten);
        padding: 8px 24px 16px;
    }
    nav.main-nav.offen { display: flex; }
    nav.main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .header-inner { position: relative; }
}

/* ---------- Admin-Bereich: schmale Bildschirme ---------- */
@media (max-width: 900px) {
    .admin-shell { flex-direction: column; min-height: auto; }
    .admin-sidebar { width: 100%; }
    .admin-sidebar-inner {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 14px 16px;
        overflow-x: auto;
        /* Auf schmalen Bildschirmen ist die Sidebar eine horizontale Leiste oben, nicht mehr
           sticky an der Seite - die Desktop-Regel für den langen Tabellen-Scroll passt hier nicht. */
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    .admin-sidebar-titel { display: none; }
    .admin-sidebar a, .admin-sidebar form { margin-bottom: 0; white-space: nowrap; }
    .admin-sidebar hr { display: none; }
    .admin-content { padding: 22px 18px; }
}

/* ---------- Galerie: sehr schmale Bildschirme ---------- */
@media (max-width: 340px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Kontaktseite: Ansprechperson ---------- */
.kontakt-layout {
    display: grid;
    grid-template-columns: minmax(0, 320px) 1fr;
    gap: 28px;
    align-items: start;
}

.ansprechperson-karte { text-align: center; }

.ansprechperson-foto {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    box-shadow: var(--schatten);
}

.ansprechperson-kontaktdaten {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    text-align: left;
}

.ansprechperson-kontaktdaten a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
}

.ansprechperson-kontaktdaten a:hover { color: var(--bordeaux); }
.ansprechperson-kontaktdaten .admin-icon { color: var(--gold); }

@media (max-width: 720px) {
    .kontakt-layout { grid-template-columns: 1fr; }
}

/* ---------- Sprachumschalter (unten rechts, schwebend, auf jeder Seite gleich positioniert) ---------- */
.sprach-umschalter {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 500;
    display: flex;
    gap: 2px;
    background: #ffffff;
    border: 1px solid var(--creme-dunkel, #e6d9bd);
    border-radius: 999px;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.sprach-umschalter a {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-soft, #776b5c);
    text-decoration: none;
}

.sprach-umschalter a.aktiv {
    background: var(--bordeaux, #6e1423);
    color: #fff;
}

.sprach-umschalter a:not(.aktiv):hover {
    background: var(--creme-dunkel, #f0e8d8);
}

@media (max-width: 600px) {
    .sprach-umschalter { right: 10px; bottom: 10px; }
}
