/* MiKi-Homepage – gemeinsames Design fuer alle Seiten (Startseite, Über die MiKi, Rechtliches) */

/* --- 1. DESIGN SYSTEM & VARS --- */
:root {
    --primary: #10BB82;        /* Fresh Mint */
    --primary-dark: #059669;
    --primary-ink: #047857;    /* dunkleres Mint fuer kleine Schrift auf Hell (Kontrast) */
    --dark: #1A1A1A;           /* Fast-Schwarz (Branding) */
    --darker: #111111;
    --light: #FFFFF7;          /* Creme (Branding), Grundfarbe der hellen Abschnitte */
    --cream-2: #F4F1E6;        /* etwas dunkleres Creme fuer abwechselnde Abschnitte und Infokaesten */
    --white: #ffffff;
    --gray: #a6a69e;           /* graue Schrift, nur auf dunklem Grund */
    --muted: #67675f;          /* graue Schrift auf hellem Grund (Kontrast >= 5:1) */
    --text: #3a3a35;           /* Fliesstext auf hellem Grund */
    --text-soft: #4d4d47;      /* etwas hellerer Fliesstext */
    --line: #e7e4d9;           /* Rahmen und Trennlinien */

    --radius: 24px;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-head: 'Just Me Again Down Here', sans-serif; /* Handschrift-Stil */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3.5rem, 10vw, 7rem); }
h2 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
h3 { font-size: clamp(1.8rem, 5vw, 3rem); }
h4 { font-size: clamp(1.3rem, 3vw, 2rem); }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: var(--radius); }

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-padding { padding: 100px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.text-gradient {
    color: var(--primary);
}

/* --- TEXT-AKZENTE: handgemalter Textmarker (bewusst sparsam einsetzen) --- */
.mark {
    background-image: linear-gradient(
        104deg,
        rgba(16, 187, 130, 0) 0.5%,
        rgba(16, 187, 130, 0.45) 2%,
        rgba(16, 187, 130, 0.6) 6%,
        rgba(16, 187, 130, 0.5) 94%,
        rgba(16, 187, 130, 0) 99%
    );
    background-repeat: no-repeat;
    background-size: 100% 0.62em;
    background-position: 0 88%;
    padding: 0 0.12em;
    /* ungleiche Ecken -> handgemalter, leicht schiefer Eindruck */
    border-radius: 0.35em 0.6em 0.4em 0.55em;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--dark);
    color: var(--primary);
    border: 2px solid var(--dark);
}
.btn-primary:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(16, 187, 130, 0.4);
}


/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 12px 30px;
    border-radius: 100px;
    z-index: 100;
    display: flex;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: max-content;
    max-width: 90%;
}
.navbar a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--light);
    position: relative;
}
.navbar a:hover { color: var(--primary); }
.navbar a.active::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: -2px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    opacity: 0.8;
    transition: all 0.2s;
}
.nav-logo { font-family: var(--font-head); font-weight: 900; color: var(--primary) !important; margin-right: 10px; }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;       /* Text in der Mitte des Titelbilds */
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--darker);
    overflow: hidden;
    color: white;
    padding-top: 80px; /* Space for Nav */
}

/* Hero Background Image with Overlay */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    filter: grayscale(10%);
    transition: opacity 1s ease-in-out;
}

/* Erstes Titelfoto (sofort sichtbar). Handy hochkant bekommt den Hochkant-Zuschnitt "-handy":
   gleicher Bildausschnitt und gleiche Schaerfe, etwa halbe Dateigroesse. Die Bedingung steht
   genauso im Preload-Link (index.html) und im Skript "Hero Image Carousel". */
.hero-bg-first { background-image: url('Assets/T6.webp'); }
@media (max-width: 600px) and (orientation: portrait) {
    .hero-bg-first { background-image: url('Assets/T6-handy.webp'); }
}

.hero-bg-image:not(.active) {
    opacity: 0;
}

.hero-bg-image.active {
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 400;          /* die Handschrift gibt es nur normal: bei "fett" malt Safari sie doppelt und verschoben */
    margin-bottom: 22px;
    line-height: 1;
}



/* --- VISION --- */
.vision-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.vision-list i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 2px;
}
.vision-image-container {
    position: relative;
}
.vision-image-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    z-index: -1;
}

/* --- EVENTS (Cards) --- */
#events { background: var(--dark); color: white; }
#events h2 { color: white; }
#events p { color: var(--gray); }

/* Unterteilung: Highlights (einmalig) und Jede Woche (regelmaessig) */
.events-sub {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 40px 0 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.events-sub::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); }
/* Highlights kompakt: am PC nebeneinander, am Handy seitlich zum Wischen (siehe MOBILE) */
.highlight-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.highlight-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(16, 187, 130, 0.2) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(16, 187, 130, 0.5);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.highlight-card:hover { border-color: var(--primary); box-shadow: 0 24px 50px -20px rgba(16, 187, 130, 0.5); }
.highlight-card:active { transform: scale(0.98); }
.hl-date {
    flex-shrink: 0;
    width: 66px; height: 66px;
    border-radius: 16px;
    background: var(--primary);
    color: var(--dark);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    line-height: 1;
    transform: rotate(-4deg);
    box-shadow: 0 12px 24px -10px rgba(16, 187, 130, 0.7);
}
.hl-day { font-size: 1.75rem; font-weight: 700; }
.hl-month { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.hl-body { flex: 1; min-width: 0; }
.hl-meta { display: block; color: var(--primary); font-weight: 700; font-size: 0.9rem; }
/* Termin verschoben (Feld "postponed"): gelbes Schild, Datum durchgestrichen, Datumsfeld blass */
.tag-postponed {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    background: #fbbf24;
    color: var(--dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}
.highlight-card.is-postponed .hl-date { opacity: 0.45; filter: grayscale(1); }
.hl-body h3 { color: #fff; font-family: var(--font-main); font-weight: 700; font-size: 1.3rem; margin: 2px 0 4px; }
.hl-body p { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }  /* ganzer Text im Pop-up */
.hl-cta { flex-shrink: 0; align-self: center; color: var(--primary); font-size: 1.2rem; }

/* Wochenplan: eine Zeile pro woechentlichem Angebot. Die 1px-Luecken zwischen den Zeilen ergeben die Trennlinien. */
.week-plan {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
}
/* breite Bildschirme: zwei Angebote nebeneinander (bei vier Angeboten waeren es in einer Reihe zu schmale Spalten).
   Bei ungerader Anzahl nimmt das letzte die ganze Breite ein - so bleibt kein leeres Feld. */
@media (min-width: 1000px) {
    .week-plan { grid-template-columns: 1fr 1fr; }
    .week-row:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.week-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #212121;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
}
.week-row:hover { background: #262b28; }
.week-row:active { background: #1f3a2f; }
.week-day {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary);
    color: var(--dark);
    font-weight: 800;
    font-size: 1.05rem;
    transform: rotate(-3deg);
}
.week-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.week-main strong { color: #fff; font-size: 1.1rem; }
.week-start {
    display: block;
    width: max-content;
    margin: 3px 0 2px;
    padding: 1px 8px;
    border-radius: 100px;
    background: var(--light);
    color: var(--dark);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.week-meta { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.week-desc { color: var(--gray); font-size: 0.88rem; }
.week-arrow { flex-shrink: 0; color: var(--primary); font-size: 1.2rem; }

/* Hinweise unter den Terminen als kleine Chips */
.event-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.event-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    font-size: 0.85rem;
    font-weight: 600;
}
.event-chips i { color: var(--primary); }
.event-place { color: var(--primary-ink); text-decoration: underline; font-weight: 600; }

.events-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* --- PROGRESS --- */
.progress-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 187, 130, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-ink);
    flex-shrink: 0;
}
.progress-bar-bg {
    height: 12px;
    background: var(--line);
    border-radius: 10px;
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.progress-item:hover {
    box-shadow: 0 10px 25px rgba(16, 187, 130, 0.18);
}
.progress-photo-modal img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
}

/* --- DONATE --- */
.donate-section {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.donate-section { padding: 72px 0 56px; }
.donate-section h2 { color: var(--dark); font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.donate-section p { font-size: 1.05rem; color: var(--dark); font-weight: 500; }

/* Kompakt: links Text, rechts weisse Spendenbox */
.donate-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}
.kicker.kicker-on-mint { color: var(--dark); background: rgba(255, 255, 255, 0.4); }
.donate-box {
    background: #fff;
    color: var(--dark);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 24px 50px -24px rgba(17, 17, 17, 0.45);
}
.donate-box .btn {
    width: 100%;
    justify-content: center;
    background: var(--dark);
    color: #fff;
}
.donate-box .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(17, 17, 17, 0.5); }
.donate-section .paypal-hint {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(16, 187, 130, 0.12);
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    animation: fadeIn 0.3s;
}
.paypal-hint i { color: var(--primary-ink); font-size: 1.2rem; margin-top: 1px; }
.donate-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.donate-divider::before,
.donate-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.bank-rows { display: grid; gap: 12px; }
.bank-row { display: flex; flex-direction: column; gap: 2px; }
.bank-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.bank-value { font-size: 0.95rem; font-weight: 700; }
.bank-iban { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bank-iban .bank-value { letter-spacing: 0.03em; }
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(16, 187, 130, 0.14);
    color: var(--primary-ink);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    transition: background 0.2s ease;
}
.copy-btn:hover { background: rgba(16, 187, 130, 0.25); }

/* Termin-Pop-up: "In meinen Kalender" / "Google Kalender" (gleicher Stil wie "Kopieren") */
.cal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(16, 187, 130, 0.14);
    color: var(--dark);
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.cal-btn i { color: var(--primary-ink); }
.cal-btn:hover { background: rgba(16, 187, 130, 0.25); }
.cal-btn:active { transform: scale(0.96); }

/* --- UNTERSTUETZER-LOGOS (Endlos-Laufband) --- */
.supporter-strip { margin-top: 56px; }
.supporter-title { color: var(--dark); font-size: 1.6rem; font-weight: 400; margin-bottom: 18px; }
.logo-marquee {
    /* Volle Breite, auch wenn der Container auf 1200px begrenzt ist */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    /* Weiche Kanten, damit die Logos nicht hart abgeschnitten wirken */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.logo-track {
    display: flex;
    width: max-content;
    animation: logoScroll 94s linear infinite;
}
.logo-group { display: flex; align-items: center; gap: 24px; padding-right: 24px; }
.logo-item {
    flex: 0 0 auto;
    width: 150px; height: 82px;
    display: flex; align-items: center; justify-content: center;
    background: var(--white);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px -14px rgba(0,0,0,0.45);
}
.logo-item img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    display: block;
}
/* Der Track enthaelt 6 identische Gruppen, verschoben wird um 3 -> nahtlose Schleife */
@keyframes logoScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- FOOTER --- */
footer {
    background: var(--darker);
    color: var(--gray);
    padding: 80px 0 40px;
    font-size: 0.9rem;
}
.footer-col h3 { color: white; margin-bottom: 20px; font-size: 1.2rem; }
.footer-col a:hover { color: var(--primary); }
/* Links im Fliesstext des Footers (Traeger) - gilt auf allen Seiten */
.footer-col p a { color: var(--primary); text-decoration: underline; }
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a { font-size: 1.5rem; color: white; }

/* Konfetti beim "Alles klar!" im Termin-Fenster: liegt ueber allem, faengt keine Klicks ab */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1100; }

/* --- MODAL --- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(26, 26, 26, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    animation: fadeIn 0.3s;
}
.modal-content {
    background: white;
    width: 90%; max-width: 600px;
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header { margin-bottom: 20px; border-bottom: 2px solid var(--line); padding-bottom: 20px; }
.modal-details-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
    background: var(--cream-2); padding: 20px; border-radius: 16px; margin-bottom: 20px;
}

/* Vue-Teile verstecken, bis Vue geladen ist (sonst blitzen bei langsamem Netz
   leere Fenster und Platzhalter wie {{ event.title }} auf) */
[v-cloak] { display: none !important; }

/* --- ANIMATION CLASSES --- */
/* Inhalte blenden beim Scrollen ein (site.js setzt "show-el"). Versteckt wird nur, wenn JavaScript
   wirklich laeuft: Die Klasse "js" setzt ein kleines Skript im Seitenkopf. Ohne JavaScript, oder wenn
   das Einblenden nicht startet (Sicherheitsnetz im Seitenkopf), bleibt alles sichtbar. */
.hidden-el { transition: all 0.8s ease-out; }
.js .hidden-el:not(.show-el) { opacity: 0; transform: translateY(30px); }
.show-el { opacity: 1; transform: translateY(0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Termin- und Kachel-Fenster: beim Schliessen 0,25 s weich ausblenden (Vue <transition name="modal-fade">).
   animation: none, damit Vue nur das Ausblenden abwartet; keine Klicks waehrend des Ausblendens. */
.modal-fade-leave-active { transition: opacity 0.25s ease; animation: none; pointer-events: none; }
.modal-fade-leave-active .modal-content { transition: transform 0.25s ease; }
.modal-fade-leave-to { opacity: 0; }
.modal-fade-leave-to .modal-content { transform: scale(0.97); }

/* --- TASTATUR-FOKUS: sichtbar, aber nur bei Tastaturbedienung --- */
/* Zweifarbig (innen dunkel, aussen gruen): auf hellen und auf dunklen Flaechen gut zu erkennen */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--dark);
}
/* Offenes Fenster: der Fokus liegt zuerst auf dem Fenster selbst (site.js), dafuer kein Rahmen */
.modal-content:focus, .modal-content:focus-visible { outline: none; box-shadow: none; }
/* "Zum Inhalt springen": erscheint nur beim Tabben mit der Tastatur */
.skip-link {
    position: absolute; left: 12px; top: -80px; z-index: 300;
    padding: 12px 18px; border-radius: 12px;
    background: var(--dark); color: var(--light); font-weight: 700;
}
.skip-link:focus { top: 12px; }
/* Hauptbereich ist nur das Sprungziel, kein Rahmen */
main:focus, main:focus-visible { outline: none; box-shadow: none; }

/* --- SCROLL-FORTSCHRITT (duenner Balken ganz oben) --- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 200;
    pointer-events: none;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- HERO-EXTRAS: Parallax, Wechselwort, Scroll-Hinweis --- */
.hero-bg { will-change: transform; }
.hero-content { will-change: transform, opacity; }
/* Verlauf nach unten, damit Text und Ticker auf jedem Foto lesbar bleiben */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.35) 0%, rgba(17, 17, 17, 0.1) 40%, rgba(17, 17, 17, 0.85) 100%);
    pointer-events: none;
}
/* Schriftzug "MiKi" im Titelbild: nur ein leichter Schatten (14.11.2026 auf Stefans Wunsch abgeschwaecht) */
.hero h1 .text-gradient { text-shadow: 0 1px 3px rgba(17, 17, 17, 0.3); }

.hero-rotator {
    font-family: var(--font-main);
    font-size: clamp(1.15rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 36px;
    line-height: 1.5;
}
.rot-word {
    display: inline-block;
    color: var(--dark);
    background: var(--primary);
    padding: 0 0.4em;
    border-radius: 0.3em 0.5em 0.35em 0.45em;
    transform: rotate(-2deg);
}
.rot-word.rot-in { animation: rotIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
/* Titelbild: dezente Info-Zeile und Knopf zu den Terminen */
.hero-rotator, .hero-facts { text-shadow: 0 2px 14px rgba(17, 17, 17, 0.7); }
.hero-facts {
    margin: -16px auto 28px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
}
.hero-cta { box-shadow: 0 0 30px rgba(16, 187, 130, 0.45); line-height: 1.3; }
.hero-cta .nowrap { white-space: nowrap; }  /* schmale Handys: Umbruch nur nach "Open Church:" */
/* zwei Knoepfe nebeneinander (am Handy untereinander, siehe MOBILE) */
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Open Church Kids: dunkel mit hellem Rand, damit der gruene Open-Church-Knopf das Hauptangebot bleibt */
.hero-cta-kids {
    background: rgba(17, 17, 17, 0.6);
    color: #fff;
    border: 2px solid rgba(255, 255, 247, 0.7);
    box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
    .hero-cta-kids:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
}
@keyframes rotIn {
    from { opacity: 0; transform: translateY(50%) rotate(-8deg); }
    to   { opacity: 1; transform: translateY(0) rotate(-2deg); }
}

/* --- TICKER: schraeges Laufband mit Schlagworten zwischen Hero und Inhalt --- */
.ticker-wrap {
    position: relative;
    z-index: 20;
    margin: -46px 0 -46px;
    padding: 24px 0;
    overflow: hidden;
    pointer-events: none;
    /* Luecke zwischen Titelbild und Terminen dunkel fuellen, damit an den Raendern
       neben dem schraegen Band nie der helle Seitenhintergrund durchblitzt */
    background: linear-gradient(180deg, transparent 46px, var(--dark) 46px);
}
.ticker {
    width: 110vw;
    margin-left: -5vw;
    background: var(--primary);
    color: var(--dark);
    padding: 12px 0;
    transform: rotate(-1.5deg);
    box-shadow: 0 14px 30px -12px rgba(17, 17, 17, 0.45);
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 40s linear infinite;
}
.ticker-group { display: flex; align-items: center; }
.ticker-group span {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1;
    white-space: nowrap;
    padding: 0 22px;
}
.ticker-group i { font-size: 1.2rem; opacity: 0.7; }
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- ABSCHNITTS-KOEPFE --- */
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head p { font-size: 1.1rem; color: var(--text-soft); }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dark);
    background: var(--primary);
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    transform: rotate(-2deg);
    box-shadow: 3px 3px 0 var(--dark);
}
.kicker-dark { box-shadow: 3px 3px 0 var(--light); }

/* --- WAS DICH ERWARTET: Foto-Kacheln mit Parallax im Bild --- */
#erleben { background: var(--light); }
#events { padding-top: 140px; }
/* Hinweis: Bilder sind anklickbar ("Tipp" am Handy, "Klick" mit Maus) */
.section-head p.exp-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(16, 187, 130, 0.1);
    color: var(--primary-ink);
    font-size: 0.9rem;
    font-weight: 600;
}
.exp-hint i { font-size: 1.1rem; }
.hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
    .hint-touch { display: none; }
    .hint-mouse { display: inline; }
}
/* Slider: Kacheln in einer Reihe, seitlich blaetterbar (Wischen, Pfeile) und automatisch weiter.
   PC 3 sichtbar, Tablet 2, Handy 1 (die naechste schaut am Rand hervor). */
.exp-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * 20px) / 3);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Platz, damit der Schatten der Kacheln nicht abgeschnitten wird */
    padding: 6px 8px 30px;
    margin: -6px -8px -30px;
    scroll-padding-inline: 8px;
}
.exp-track::-webkit-scrollbar { display: none; }
.exp-track .exp-card { aspect-ratio: 4 / 5; scroll-snap-align: start; box-shadow: 0 14px 24px -16px rgba(17, 17, 17, 0.5); }
@media (max-width: 1024px) {
    .exp-track { grid-auto-columns: calc((100% - 20px) / 2); }
}
/* Pfeile links und rechts neben den Kacheln (mittig auf Bildhoehe), Punkte darunter.
   Handy: Pfeile und Punkte unter den Kacheln (siehe MOBILE). */
.exp-slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "prev track next" ". dots .";
    column-gap: 20px;
    align-items: center;
    /* breite Bildschirme: Pfeile stehen im freien Rand, die Bilder bleiben so gross wie die Ueberschrift breit ist */
    margin-inline: calc(-1 * clamp(0px, (100vw - 1152px) / 2 - 24px, 68px));
}
.exp-track { grid-area: track; }
.exp-controls { display: contents; }
.exp-arrow[data-dir="-1"] { grid-area: prev; }
.exp-arrow[data-dir="1"] { grid-area: next; }
.exp-dots { grid-area: dots; justify-self: center; margin-top: 22px; }
/* "In Planung": was als Naechstes gebaut wird, fuehrt zum Baujugendkreis */
.build-teaser {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding: 18px 22px;
    border-radius: var(--radius);
    background: var(--dark);
    color: var(--light);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 14px 30px -18px rgba(17, 17, 17, 0.6);
    transition: transform 0.2s ease;
}
.build-teaser:active { transform: scale(0.98); }
.build-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary);
    color: var(--dark);
    font-size: 1.6rem;
    transform: rotate(-4deg);
}
.build-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.build-tag {
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--light);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}
.build-text strong { color: #fff; font-size: 1.15rem; }
.build-sub { color: var(--gray); font-size: 0.92rem; }
.build-arrow { flex-shrink: 0; color: var(--primary); font-size: 1.3rem; }
@media (hover: hover) and (pointer: fine) { .build-teaser:hover { transform: translateY(-3px); } }
@media (max-width: 768px) {
    /* schmales Handy: ganze Karte ist antippbar, Pfeil weglassen -> Text bricht weniger um */
    .build-teaser { padding: 16px; gap: 14px; margin-top: 40px; }
    .build-icon { width: 44px; height: 44px; font-size: 1.35rem; }
    .build-arrow { display: none; }
    .build-sub { font-size: 0.86rem; }
}

/* Stimmen von Jugendlichen (unter dem Slider) */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.quotes-label {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}
.quote-card {
    margin: 0;
    align-self: start;
    max-width: 92%;
    padding: 16px 20px;
    border-radius: 22px 22px 22px 6px;
    background: #fff;
    box-shadow: 0 10px 26px -16px rgba(17, 17, 17, 0.45);
}
/* zweite Nachricht rechts und gruen, wie eine Antwort im Chat */
.quote-card + .quote-card { justify-self: end; border-radius: 22px 22px 6px 22px; background: var(--primary); }
@media (min-width: 769px) { .quote-card + .quote-card { margin-top: 48px; } }
.quote-card blockquote { font-size: 1.15rem; font-weight: 600; line-height: 1.5; color: var(--dark); }
.exp-arrow {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: #fff;
    color: var(--dark);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.exp-arrow:hover { border-color: var(--primary); color: var(--primary-ink); }
.exp-arrow:active { transform: scale(0.94); }
.exp-dots { display: flex; gap: 8px; }
.exp-dots span { width: 8px; height: 8px; border-radius: 100px; background: #d6d3c6; transition: width 0.3s ease, background 0.3s ease; }
.exp-dots span.active { width: 24px; background: var(--primary-dark); }
.exp-dots span[hidden] { display: none; }
.exp-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--dark);
    isolation: isolate;
    box-shadow: 0 20px 40px -20px rgba(17, 17, 17, 0.45);
}
/* Bild ist hoeher als die Kachel, damit es beim Scrollen gleiten kann */
.exp-media {
    position: absolute;
    left: 0; right: 0;
    top: -18%; bottom: -18%;
}
.exp-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: brightness(1.18) saturate(1.08); /* Fotos sind teils abends entstanden -> aufhellen */
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.exp-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    /* nur unten abdunkeln - dort steht die Ueberschrift */
    background: linear-gradient(180deg, rgba(17, 17, 17, 0) 50%, rgba(17, 17, 17, 0.7) 100%);
}
.exp-card { cursor: pointer; }
/* kleines "+" oben rechts: zeigt, dass man fuer mehr Infos tippen kann */
.exp-more {
    position: absolute;
    right: 14px; top: 16px;
    z-index: 2;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    font-size: 1rem;
    box-shadow: 0 6px 16px -6px rgba(17, 17, 17, 0.6);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.exp-card:active { transform: scale(0.98); }
.tile-modal img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
}
.tile-modal h2 { font-size: 2.4rem; margin-bottom: 10px; }
.tile-modal p { line-height: 1.75; color: var(--text); }
.tile-close {
    position: absolute;
    right: 44px; top: 44px;
    z-index: 1;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px -4px rgba(17, 17, 17, 0.4);
}
.exp-icon {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    transform: rotate(-6deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.exp-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 22px 24px;
    color: #fff;
    text-shadow: 0 1px 12px rgba(17, 17, 17, 0.6);
}
.exp-caption h3 { font-size: clamp(2rem, 3vw, 2.5rem); color: #fff; margin-bottom: 2px; }

.btn-glow {
    background: var(--primary);
    color: var(--dark);
    border: 2px solid var(--primary);
}
.btn-glow:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 34px rgba(16, 187, 130, 0.55);
}
.btn-ghost-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost-light:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Abschnitte mit mitgleitenden Fotos: Inhalt bleibt darueber, nichts ragt seitlich heraus */
.has-doodles { position: relative; overflow: hidden; }
.has-doodles > .container { position: relative; z-index: 1; }

/* --- HAEUFIGE FRAGEN (Aufklapp-Liste, ohne JavaScript) --- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px -12px rgba(17, 17, 17, 0.25);
    border: 1px solid var(--line);
    transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(16, 187, 130, 0.6); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(16, 187, 130, 0.12);
    color: var(--primary-ink);
    font-size: 1.3rem;
    font-weight: 700;
    transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--text-soft); }
.faq-item a { color: var(--primary-ink); text-decoration: underline; font-weight: 600; }
/* Weitere Fragen hinter "Mehr Fragen" (ohne JavaScript) */
.faq-more > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin: 6px auto 0;
    padding: 12px 22px;
    border-radius: 100px;
    background: var(--dark);
    color: var(--light);
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
}
.faq-more > summary::-webkit-details-marker { display: none; }
.faq-more > summary i { color: var(--primary); transition: transform 0.25s ease; }
.faq-more > summary .less { display: none; }
.faq-more[open] > summary .more { display: none; }
.faq-more[open] > summary .less { display: inline; }
.faq-more[open] > summary i { transform: rotate(45deg); }
.faq-more-list { display: grid; gap: 12px; margin-top: 12px; }
/* Zeitstrahl (Geschichte der Michaelskirche) */
.timeline { list-style: none; margin: 4px 0 16px; border-left: 2px solid rgba(16, 187, 130, 0.35); }
.timeline li { position: relative; padding: 0 0 14px 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: -6px; top: 0.5em;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px #fff;
}
.tl-year {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--primary-ink);
}

/* Ansprechpartner-Karte unter den Fragen */
.contact-card {
    max-width: 760px;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 26px;
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: 0 24px 50px -24px rgba(17, 17, 17, 0.5);
}
.contact-card img {
    flex-shrink: 0;
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    transform: rotate(-3deg);
}
.contact-text h3 { color: #fff; font-size: 2.2rem; margin-bottom: 6px; }
.contact-text p { color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; margin-bottom: 18px; }
.contact-card { scroll-margin-top: 100px; } /* beim Sprung aus der Navigation nicht unter der Leiste verstecken */
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.contact-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 8px 0;
}
.contact-mail:hover { color: var(--primary); }

/* --- FINALER AUFRUF vor dem Footer --- */
/* Foto-Hintergrund, gleitet beim Scrollen; die Abdunklung haelt den Text lesbar */
.cta-bg {
    position: absolute;
    left: 0; right: 0;
    top: -20%; bottom: -20%;
    z-index: 0;
    background-size: cover;
    background-position: center;
}
.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(26, 26, 26, 0.72) 0%, rgba(26, 26, 26, 0.9) 100%);
}
.cta-final {
    background: var(--dark);
    color: #fff;
    text-align: center;
}
.cta-final h2 { color: #fff; font-size: clamp(3rem, 8vw, 5.5rem); margin-bottom: 14px; }
.cta-final .cta-lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.cta-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    color: #fff;
    font-weight: 600;
}
.cta-info li { text-align: center; }
.cta-info i { color: var(--primary); font-size: 1.2rem; vertical-align: -3px; margin-right: 4px; }
/* Socials: eine dezente Karte unter den Buttons, die Logos sind die Links */
.social-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 520px;
    margin: 36px auto 0;
    padding: 14px 18px;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}
.social-card-text { display: flex; flex-direction: column; gap: 2px; }
.social-card-text strong { font-size: 0.98rem; color: #fff; }
.social-card-text span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); line-height: 1.4; }
.social-card-icons { display: flex; gap: 10px; flex-shrink: 0; }
.social-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.social-icon:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
    .social-icon:hover { transform: translateY(-3px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.7); }
}
.insta-icon { background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%); }
.tiktok-icon {
    background: #010101;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: -1.5px -1.5px 0 #25f4ee, 1.5px 1.5px 0 #fe2c55;
}
.youtube-icon { background: #ff0000; }
/* Karte: gefuelltes Play-Dreieck (das Font-Symbol hat einen eigenen Rahmen -> doppelt) */
.social-icon.youtube-icon svg { width: 24px; height: 24px; }


/* --- HOVER-PERSOENLICHKEIT (nur echte Zeiger/Desktop, nicht auf Touch) --- */
@media (hover: hover) and (pointer: fine) {
    .btn i { transition: transform 0.3s ease; }
    .btn:hover i.ph-arrow-right { transform: translateX(4px); }
    .btn:hover i.ph-heart { transform: scale(1.15); }
    .navbar a:not(.nav-logo):hover { transform: translateY(-2px); }
    .social-links a { transition: transform 0.3s ease, color 0.3s ease; }
    .social-links a:hover { transform: translateY(-3px) rotate(-6deg); color: var(--primary); }
    /* Laufband anhalten, solange die Maus drueberliegt */
    .logo-marquee:hover .logo-track { animation-play-state: paused; }
    .exp-card:hover .exp-media img { transform: scale(1.07); }
    .exp-card:hover .exp-icon { transform: rotate(8deg) scale(1.1); }
    .exp-card:hover .exp-more { transform: rotate(90deg) scale(1.1); background: var(--primary); }
    /* Anheben nur mit Maus - auf Touch-Geraeten wuerde es nach dem Tippen haengen bleiben */
    .btn-primary:hover { transform: translateY(-3px); }
    .progress-item:hover { transform: translateY(-4px); }
}

/* Touch: kurzes Feedback beim Antippen statt Hover */
.progress-item, .btn, .faq-item summary, .copy-btn {
    -webkit-tap-highlight-color: transparent;
}
.progress-item:active { transform: scale(0.98); }
.btn:active, .copy-btn:active { transform: scale(0.96); }

/* --- BEWEGUNG ZURUECKHALTEN: prefers-reduced-motion respektieren --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    html { scroll-behavior: auto !important; }
    /* Scroll-Reveal-Inhalte sofort sichtbar, ohne Versatz */
    .hidden-el { opacity: 1 !important; transform: none !important; }
    /* Logos statisch: eine Gruppe, umgebrochen statt laufend */
    .logo-marquee {
        width: auto; margin-left: 0; overflow: visible;
        -webkit-mask-image: none; mask-image: none;
    }
    .logo-track { animation: none !important; width: 100%; justify-content: center; }
    .logo-group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
    .logo-group + .logo-group { display: none; }
    /* Ticker steht still, Parallax wird im JS gar nicht erst gestartet */
    .ticker-track { animation: none !important; }
}

/* --- MOBILE --- */
@media(max-width: 768px) {

    /* Footer kompakter: Kontakt volle Breite, Social und "Mehr" nebeneinander */
    footer { padding-top: 52px; padding-bottom: 28px; }
    footer .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px 20px !important; }  /* "footer" davor: staerker als die Sammelregel fuer Inline-Raster weiter unten */
    .footer-col:nth-child(1), .footer-col:nth-child(2) { grid-column: 1 / -1; }
    .footer-col h3 { margin-bottom: 10px; }
    .footer-bottom { margin-top: 32px !important; }

    /* Hero */
    .hero { padding-top: 100px; padding-bottom: 50px; min-height: 100svh; }
    .hero h1 { font-size: 5rem; }
    .hero-rotator { margin-bottom: 26px; }
    .hero-facts { margin: -12px auto 22px; font-size: 0.88rem; }
    .hero-cta { padding: 13px 20px; font-size: 0.95rem; }
    .hero-ctas { flex-direction: column; align-items: center; gap: 10px; }
    .hero-ctas .hero-cta { width: 100%; max-width: 360px; justify-content: center; }
    .cta-info { font-size: 0.95rem; }

    /* Ticker */
    .ticker-wrap { margin: -36px 0; padding: 18px 0; background: linear-gradient(180deg, transparent 36px, var(--dark) 36px); }
    .ticker { padding: 9px 0; }
    .ticker-group span { padding: 0 14px; }

    /* Was dich erwartet: Slider mit einer Kachel, die naechste schaut am Rand hervor */
    #events { padding-top: 96px; }
    .section-head { margin-bottom: 32px; }
    .exp-track { grid-auto-columns: 82%; gap: 12px; }
    .exp-slider { grid-template-columns: 1fr auto 1fr; grid-template-areas: "track track track" "prev dots next"; column-gap: 18px; margin-inline: 0; }
    .exp-arrow { margin-top: 22px; }
    .exp-arrow[data-dir="-1"] { justify-self: end; }
    .exp-arrow[data-dir="1"] { justify-self: start; }
    .quotes { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
    .quote-card { padding: 14px 18px; }
    .quote-card blockquote { font-size: 1.05rem; }
    .exp-card { border-radius: 18px; }
    .exp-icon { width: 38px; height: 38px; font-size: 1.2rem; top: 12px; left: 12px; border-radius: 11px; }
    .exp-more { width: 30px; height: 30px; right: 10px; top: 14px; font-size: 0.9rem; }
    .tile-modal { padding: 22px 20px 28px !important; }
    .tile-modal img { height: 220px; }
    .tile-modal h2 { font-size: 2rem; }
    .tile-close { right: 30px; top: 30px; }
    .exp-caption { padding: 14px 14px; }
    /* Schmale Kacheln: Text reicht hoeher ins Bild -> Abdunklung frueher starten */
    .exp-card::after {
        background: linear-gradient(180deg, rgba(17, 17, 17, 0) 45%, rgba(17, 17, 17, 0.75) 100%);
    }
    .exp-caption h3 { font-size: 1.7rem; }


    /* Ansprechpartner-Karte: Foto oben, Text darunter */
    .contact-card { flex-direction: column; text-align: center; gap: 18px; padding: 26px 20px; }
    .contact-card img { width: 120px; height: 120px; }
    .contact-actions { flex-direction: column; }

    /* Social-Karte: Text oben, Logos darunter */
    .social-card { flex-direction: column; text-align: center; gap: 12px; margin-top: 28px; padding: 16px 14px; }
    .social-card-text { align-items: center; }

    /* Navbar */
    .navbar {
        top: 12px; bottom: auto;
        width: 92%; justify-content: space-around;
        padding: 4px 6px; gap: 0;
    }
    .nav-logo { display: block; margin-right: 0; }
    .navbar a { font-size: 0.72rem; padding: 14px 4px; white-space: nowrap; }

    /* Tap-Ziele >= 44px auf dem Handy */
    .social-links a {
        min-width: 44px; min-height: 44px;
        display: flex; align-items: center; justify-content: center;
    }
    .footer-col ul a { display: inline-block; padding: 9px 0; }

    /* Layout */
    .grid-2 { grid-template-columns: 1fr; gap: 36px; }
    .section-padding { padding: 64px 0; }

    /* Highlights seitlich zum Wischen; die naechste Karte schaut rechts hervor.
       Nur eine Karte? Dann nimmt sie die ganze Breite (minmax). */
    .events-sub { margin-top: 32px; }
    .highlight-list {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(84%, 1fr);
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin-right: -24px;
        padding-right: 24px;
    }
    .highlight-list::-webkit-scrollbar { display: none; }
    .highlight-card { scroll-snap-align: start; gap: 14px; padding: 16px; }
    .hl-date { width: 58px; height: 58px; border-radius: 14px; }
    .hl-day { font-size: 1.55rem; }
    .hl-body h3 { font-size: 1.2rem; }
    .hl-meta { font-size: 0.82rem; }
    .hl-cta { display: none; }

    /* Wochenplan */
    .week-row { padding: 14px 16px; gap: 14px; }
    .week-day { width: 44px; height: 44px; }

    /* Progress */
    .progress-item { padding: 18px; gap: 14px; }
    .progress-circle { width: 50px; height: 50px; font-size: 0.78rem; }

    /* Modals: max-height + scroll damit der X-Button immer erreichbar ist */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 88vh;
        overflow-y: auto;
        border-radius: 24px 24px 0 0;
        padding: 28px 20px 32px;
        -webkit-overflow-scrolling: touch;
    }
    .modal-details-grid { grid-template-columns: 1fr; gap: 10px; }

    /* Baufortschritt-Modal Foto */
    .progress-photo-modal img { max-height: 220px; }

    /* Unterstuetzer-Laufband */
    .supporter-strip { margin-top: 40px; }
    .logo-group { gap: 12px; padding-right: 12px; }
    .logo-item { width: 118px; height: 66px; padding: 10px 14px; border-radius: 12px; }

    /* Spenden: untereinander */
    .donate-grid { grid-template-columns: 1fr; gap: 28px; }
    .donate-box { padding: 22px 20px; }

    /* Vision Deko-Rahmen weglassen */
    .vision-image-container::after { display: none; }

    /* Spende/Gebet-Karten: mehr Platz fuer den Text */
    .prayer-card, .donation-card { padding: 24px 20px !important; }
    .prayer-card > p:last-of-type { padding: 14px !important; }
    .copy-btn { min-height: 44px; padding: 8px 14px; }
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* h2 etwas kompakter */
    h2 { font-size: clamp(2rem, 9vw, 3.5rem); }
    h3 { font-size: clamp(1.5rem, 6vw, 2.5rem); }
}

/* =====================================================================
   MEHRERE SEITEN: Navigation, Unterseiten-Kopf, Michaelskirche, Rechtliches
   ===================================================================== */

/* Navigation: Link zur Seite "Über die MiKi" leicht abgesetzt */
.navbar a.nav-about {
    color: var(--primary);
    font-weight: 700;
}
.nav-short { display: none; }
/* Unterseiten: deutlicher Zurueck-Button zur Startseite */
.navbar a.nav-home {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(16, 187, 130, 0.18);
    color: var(--light);
    font-weight: 700;
    white-space: nowrap;
}
.navbar a.nav-home:hover { background: var(--primary); color: var(--dark); transform: none; }

/* Startseite: Hinweis fuer Erwachsene ganz unten */
.parents-teaser { background: var(--cream-2); padding: 0 0 90px; }
.teaser-card {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px -18px rgba(17, 17, 17, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.teaser-card:hover { border-color: var(--primary); box-shadow: 0 16px 34px -18px rgba(16, 187, 130, 0.45); }
.teaser-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(16, 187, 130, 0.12);
    color: var(--primary-ink);
    font-size: 1.5rem;
}
.teaser-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.teaser-text strong { color: var(--dark); font-size: 1.05rem; }
.teaser-text span { color: var(--text-soft); font-size: 0.93rem; line-height: 1.5; }
.teaser-arrow { flex-shrink: 0; color: var(--primary-ink); font-size: 1.3rem; }
.teaser-card + .teaser-card { margin-top: 14px; }
/* Spenden-Karte leicht mint hervorgehoben, damit Unterstuetzer sie schnell finden */
.teaser-donate { background: rgba(16, 187, 130, 0.08); border-color: rgba(16, 187, 130, 0.35); }
.teaser-donate .teaser-icon { background: var(--primary); color: var(--dark); }

/* Unterseiten: Kopfbereich mit Foto */
.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--darker);
    padding: 140px 0 70px;
}
.page-hero-bg {
    position: absolute;
    left: 0; right: 0;
    top: -20%; bottom: -20%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.45) 0%, rgba(17, 17, 17, 0.25) 40%, rgba(17, 17, 17, 0.9) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(3.2rem, 9vw, 6rem); color: #fff; margin: 6px 0 14px; }
.page-hero p { font-size: 1.15rem; max-width: 640px; color: rgba(255, 255, 255, 0.9); }
.page-back {
    display: flex;
    padding: 10px 0;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.92rem;
}
.page-back:hover { color: var(--primary); }

/* "Die Michaelskirche": eine Textspalte in Lesebreite + aufklappbare Geschichte */
.mk-wrap { max-width: 760px; margin: 0 auto; }
.mk-intro p { font-size: 1.08rem; line-height: 1.75; color: var(--text); margin-top: 14px; }
.mk-intro h2 { margin-bottom: 4px; }
.mk-link { color: var(--primary-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mk-history { margin-top: 36px; }
.mk-history summary { font-size: 1.1rem; }
.mk-history summary small { display: block; margin-top: 2px; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.mk-history-body { padding: 6px 24px 26px; }
.mk-history .timeline { margin: 0; color: var(--text); line-height: 1.65; }
.mk-history .timeline li { padding-bottom: 18px; }

/* Impressum / Datenschutz */
.legal-page { background: var(--light); padding: 130px 0 90px; }
.legal-wrap { max-width: 800px; }
.legal-back {
    display: inline-flex;
    padding: 10px 0;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: var(--primary-ink);
    font-weight: 600;
}
.legal-page h1 { font-size: clamp(2.8rem, 7vw, 4.2rem); margin-bottom: 18px; }
.legal-h {
    margin: 20px 0 10px;
    color: var(--dark);
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: normal;
}
.legal-h-sub { margin-top: 15px; font-size: 1.05rem; }
.legal-page a { color: var(--primary-ink); text-decoration: underline; word-break: break-word; }
.legal-page a.btn { text-decoration: none; }               /* Knoepfe (z. B. auf der Fehlerseite) */
.legal-page a.btn-glow { color: var(--dark); }
.legal-page a.btn-primary { color: var(--primary); }

@media (max-width: 768px) {
    .nav-long { display: none; }
    .nav-short { display: inline; }
    .navbar a.nav-home { padding: 6px 9px; margin-right: 2px; }
    /* sehr schmale Handys: Navigation mit Zurueck-Button etwas kompakter */
    @media (max-width: 380px) {
        .navbar a { font-size: 0.68rem; padding: 14px 3px; }
        .navbar a.nav-home { padding: 6px 8px; }
    }
    .parents-teaser { padding-bottom: 64px; }
    .teaser-card { padding: 18px; gap: 14px; }
    .teaser-icon { width: 42px; height: 42px; font-size: 1.3rem; }
    .page-hero { min-height: 0; padding: 110px 0 48px; }
    .page-hero p { font-size: 1.02rem; }
    .mk-intro p { font-size: 1.02rem; }
    .mk-history { margin-top: 28px; }
    .mk-history-body { padding: 4px 18px 22px; }
    .legal-page { padding: 104px 0 64px; }
}


/* =====================================================================
   ICONS (Phosphor) – nur die auf der Seite genutzten: 5 KB statt 219 KB.
   Neues Icon gebraucht? Dann muss extern/phosphor/miki-icons.woff2 neu erzeugt
   werden (Quelle: extern/phosphor/Phosphor.woff2 + style.css im selben Ordner).
   Danach die Versionsnummer ?v= hier und in den 4 Preload-Links der HTML-Seiten
   hochzaehlen - sonst zeigen Browser noch die alte, gespeicherte Schrift.
   ===================================================================== */
@font-face {
    font-family: 'MiKi Icons';
    src: url('extern/phosphor/miki-icons.woff2?v=3') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
.ph {
    font-family: 'MiKi Icons' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.ph-armchair:before { content: "\e012"; }
.ph-arrow-fat-lines-up:before { content: "\e52a"; }
.ph-arrow-left:before { content: "\e058"; }
.ph-arrow-right:before { content: "\e06c"; }
.ph-arrow-square-out:before { content: "\e5de"; }
.ph-calendar-blank:before { content: "\e10a"; }
.ph-check:before { content: "\e182"; }
.ph-church:before { content: "\ecea"; }
.ph-clock:before { content: "\e19a"; }
.ph-copy:before { content: "\e1ca"; }
.ph-couch:before { content: "\e7f6"; }
.ph-envelope:before { content: "\e214"; }
.ph-envelope-simple:before { content: "\e218"; }
.ph-game-controller:before { content: "\e26e"; }
.ph-hammer:before { content: "\e80e"; }
.ph-hand-heart:before { content: "\e810"; }
.ph-hand-tap:before { content: "\ec90"; }
.ph-hands-praying:before { content: "\ecc8"; }
.ph-heart:before { content: "\e2a8"; }
.ph-images:before { content: "\e836"; }
.ph-instagram-logo:before { content: "\e2d0"; }
.ph-lightbulb:before { content: "\e2dc"; }
.ph-map-pin:before { content: "\e316"; }
.ph-music-notes:before { content: "\e340"; }
.ph-paint-brush-broad:before { content: "\e590"; }
.ph-paypal-logo:before { content: "\e98c"; }
.ph-pencil-simple:before { content: "\e3b4"; }
.ph-phone:before { content: "\e3b8"; }
.ph-plus:before { content: "\e3d4"; }
.ph-question:before { content: "\e3e8"; }
.ph-sparkle:before { content: "\e6a2"; }
.ph-target:before { content: "\e47c"; }
.ph-ticket:before { content: "\e490"; }
.ph-tiktok-logo:before { content: "\eaf2"; }
.ph-users-three:before { content: "\e68e"; }
.ph-whatsapp-logo:before { content: "\e5d0"; }
.ph-wrench:before { content: "\e5d4"; }
.ph-youtube-logo:before { content: "\e4fc"; }
