/* ============================================================
   MIMAR SINAN CAMII — Design System
   Ottoman Modern · Editorial · Premium
   ============================================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
    /* Fonts */
    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-arabic:  'Noto Naskh Arabic', serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    --space-4xl: 7rem;

    /* Border Radius — restrained */
    --radius-sm:   2px;
    --radius-md:   4px;
    --radius-lg:   6px;
    --radius-xl:   8px;
    --radius-2xl:  12px;
    --radius-full: 9999px;

    /* Shadows — subtle */
    --shadow-sm:  0 1px 4px rgba(15,31,53,0.06);
    --shadow-md:  0 4px 20px rgba(15,31,53,0.09);
    --shadow-lg:  0 12px 40px rgba(15,31,53,0.12);
    --shadow-xl:  0 24px 60px rgba(15,31,53,0.16);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   300ms ease;
    --transition-prayer: 900ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max:  1160px;
    --container-wide: 1400px;
    --navbar-height:  72px;

    /* ── OTTOMAN MODERN COLOR PALETTE ── */

    /* Backgrounds */
    --color-bg:           #faf8f4;
    --color-bg-secondary: #f0ece4;
    --color-bg-card:      #ffffff;
    --color-bg-dark:      #0f1f35;

    /* Text */
    --color-text:         #1a1612;
    --color-text-muted:   #6b6458;
    --color-text-light:   #9d9289;
    --color-border:       #e0d9cf;
    --color-border-light: #ede8e0;

    /* Core Brand */
    --color-navy:         #0f1f35;
    --color-navy-mid:     #1a3050;
    --color-teal:         #1a4a5c;
    --color-teal-light:   #2a6b82;
    --color-gold:         #c9a84c;
    --color-gold-light:   #e0c070;
    --color-gold-dark:    #a88830;
    --color-cream:        #faf8f4;
    --color-anthracite:   #2a2a2a;

    /* Primary (default = Navy — changes by prayer time) */
    --prayer-color:       #1a3050;
    --prayer-color-light: #2a4a72;
    --prayer-color-dark:  #0f1f35;
    --prayer-color-rgb:   26, 48, 80;

    /* Prayer Time Colors — refined */
    --fajr-color:    #1a5c6b;   /* Deep Teal */
    --dhuhr-color:   #a88830;   /* Warm Gold */
    --asr-color:     #8b4513;   /* Sienna */
    --maghrib-color: #4a2060;   /* Deep Plum */
    --isha-color:    #1a3050;   /* Navy */

    /* Friday */
    --friday-color:       #a88830;
    --friday-color-light: #c9a84c;

    /* Accent for CTA */
    --color-accent:       #c9a84c;
    --color-accent-light: #e0c070;
    --color-primary:      #1a3050;
    --color-primary-dark: #0f1f35;
}

/* Dark Mode */
[data-theme="dark"] {
    --color-bg:           #0a1220;
    --color-bg-secondary: #0f1b2d;
    --color-bg-card:      #132030;
    --color-text:         #ede8df;
    --color-text-muted:   #9da8b5;
    --color-text-light:   #6b7a8d;
    --color-border:       #1e3048;
    --color-border-light: #162538;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--transition-prayer), color var(--transition-prayer);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--prayer-color); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--prayer-color-light); }
a:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: 2px; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }


/* ============================================================
   TYPOGRAPHY — Editorial Scale
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

.prose p { margin-bottom: var(--space-lg); font-size: 1.05rem; line-height: 1.8; }
.prose h2, .prose h3, .prose h4 { margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.prose ul, .prose ol { padding-left: var(--space-xl); margin-bottom: var(--space-lg); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--space-sm); }
.prose img { border-radius: var(--radius-md); margin: var(--space-2xl) 0; }
.prose blockquote {
    border-left: 3px solid var(--color-gold);
    padding: var(--space-md) var(--space-xl);
    margin: var(--space-2xl) 0;
    background: var(--color-bg-secondary);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-text);
}


/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-xl); }
.container--wide { max-width: var(--container-wide); }
.page-container { padding-top: var(--space-3xl); padding-bottom: var(--space-4xl); }
.page-layout { display: grid; gap: var(--space-3xl); }
@media (min-width: 1024px) { .page-layout--sidebar { grid-template-columns: 1fr 300px; } }
.page-layout__main { min-width: 0; }
.page-layout__main--full { grid-column: 1 / -1; max-width: 860px; }


/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: var(--space-md); top: var(--space-md); z-index: 10000; padding: var(--space-sm) var(--space-md); background: var(--color-navy); color: #fff; border-radius: var(--radius-md); }


/* ============================================================
   TOPBAR — Slim, refined
   ============================================================ */
.topbar {
    background: var(--color-navy);
    font-size: 0.8rem;
    padding: 0.45rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--transition-prayer);
    letter-spacing: 0.01em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.topbar__prayer { display: flex; align-items: center; gap: 0.75rem; color: rgba(255,255,255,0.65); }
.topbar__prayer-label { font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
.topbar__prayer-name { color: var(--color-gold-light); font-weight: 600; transition: color var(--transition-prayer); }
.topbar__prayer-time { color: rgba(255,255,255,0.9); font-weight: 500; font-variant-numeric: tabular-nums; }
.topbar__prayer-countdown {
    font-variant-numeric: tabular-nums;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 0.15rem 0.55rem;
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-gold-light);
    transition: background var(--transition-prayer);
}
.topbar__right { display: flex; align-items: center; gap: var(--space-lg); }
.topbar__link { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.6); font-weight: 400; font-size: 0.8rem; }
.topbar__link:hover { color: var(--color-gold-light); }
.topbar__dark-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
}
.topbar__dark-toggle:hover { border-color: var(--color-gold); color: var(--color-gold-light); }
[data-theme="dark"] .icon-sun { display: inline; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme]:not([data-theme="dark"]) .icon-sun { display: none; }
[data-theme]:not([data-theme="dark"]) .icon-moon { display: inline; }
.icon-sun, .icon-moon { display: inline; }


/* ============================================================
   NAVBAR — Minimal, architectural
   ============================================================ */
.navbar {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 33px;
    z-index: 90;
    height: var(--navbar-height);
    transition: all var(--transition-base);
}
.navbar.is-scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: transparent;
    background: rgba(250,248,244,0.97);
    backdrop-filter: blur(12px);
}
[data-theme="dark"] .navbar.is-scrolled { background: rgba(10,18,32,0.97); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--space-xl); }
.navbar__logo { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; text-decoration: none; }
.navbar__logo-img { max-height: 54px; width: auto; }
.navbar__logo-img--dark  { display: none; }
[data-theme="dark"] .navbar__logo-img--light { display: none; }
[data-theme="dark"] .navbar__logo-img--dark  { display: block; }
.navbar__logo-text { display: flex; align-items: center; gap: 10px; }
.navbar__logo-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-gold);
    flex-shrink: 0;
}
.navbar__logo-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Desktop nav */
.navbar__nav { display: none; flex: 1; }
@media (min-width: 1024px) { .navbar__nav { display: block; } }
.navbar__menu { display: flex; align-items: center; gap: 0; list-style: none; padding: 0; margin: 0; }
.navbar__menu .menu-item > a {
    display: block;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
    transition: color var(--transition-fast);
    white-space: nowrap;
    position: relative;
}
.navbar__menu .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0.8rem; right: 0.8rem;
    height: 1px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}
.navbar__menu .menu-item > a:hover { color: var(--color-gold); }
.navbar__menu .menu-item > a:hover::after,
.navbar__menu .current-menu-item > a::after { transform: scaleX(1); }
.navbar__menu .current-menu-item > a,
.navbar__menu .current-page-ancestor > a { color: var(--color-text); }

/* Dropdown */
.navbar__menu .menu-item { position: relative; }
.navbar__menu .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 200px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-gold);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: all var(--transition-base);
    list-style: none; z-index: 200;
}
.navbar__menu .menu-item:hover > .sub-menu,
.navbar__menu .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.navbar__menu .sub-menu .menu-item > a {
    padding: 0.55rem 1.2rem;
    display: block;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}
.navbar__menu .sub-menu .menu-item > a::after { display: none; }
.navbar__menu .sub-menu .menu-item > a:hover { color: var(--color-text); background: var(--color-bg-secondary); }

.navbar__actions { display: flex; align-items: center; gap: var(--space-sm); }
.navbar__cta { display: none; }
@media (min-width: 768px) { .navbar__cta { display: inline-flex; } }

/* Hamburger */
.navbar__hamburger {
    background: none; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.4rem; display: flex; flex-direction: column;
    gap: 4px; width: 38px; height: 38px;
    justify-content: center; align-items: center;
    transition: all var(--transition-fast);
}
@media (min-width: 1024px) { .navbar__hamburger { display: none; } }
.navbar__hamburger:hover { border-color: var(--color-gold); }
.hamburger__bar { width: 20px; height: 2px; background: var(--color-text); transition: all var(--transition-fast); display: block; }
@media (max-width: 1023px) { .navbar__right { padding-right: var(--space-md); gap: var(--space-sm); } }
.navbar__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.navbar__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.navbar__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile overlay */
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(10,18,32,0.7); z-index: 200; opacity: 0; visibility: hidden; transition: all var(--transition-base); backdrop-filter: blur(4px); }
.mobile-nav-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-nav { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 90vw); background: var(--color-navy); padding: var(--space-2xl) var(--space-xl); overflow-y: auto; transform: translateX(100%); transition: transform var(--transition-base); }
.mobile-nav-overlay.is-open .mobile-nav { transform: translateX(0); }
.mobile-nav__close { position: absolute; top: var(--space-lg); right: var(--space-lg); background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 2px; width: 34px; height: 34px; font-size: 1rem; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); }
.mobile-nav__close:hover { border-color: var(--color-gold); color: var(--color-gold-light); }
.mobile-nav__menu { margin-top: var(--space-2xl); list-style: none; }
.mobile-nav__menu .menu-item > a { display: block; padding: var(--space-md) 0; font-size: 1.1rem; font-weight: 500; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--font-display); }
.mobile-nav__menu .menu-item > a:hover { color: var(--color-gold-light); }
.mobile-nav__menu .sub-menu { padding-left: var(--space-md); list-style: none; }
.mobile-nav__menu .sub-menu .menu-item > a { font-size: 0.95rem; font-family: var(--font-sans); }


/* ============================================================
   FRIDAY BANNER
   ============================================================ */
.friday-banner {
    background: var(--color-gold-dark);
    color: var(--color-cream);
    padding: 0.55rem 0;
    font-size: 0.825rem;
    letter-spacing: 0.03em;
}
.friday-banner__inner { display: flex; align-items: center; justify-content: center; gap: var(--space-lg); flex-wrap: wrap; text-align: center; }
.friday-banner__icon { display: none; }
.friday-banner__text { font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.friday-banner__time { opacity: 0.85; }
.friday-banner__link { border: 1px solid rgba(250,248,244,0.4); padding: 0.2rem 0.8rem; border-radius: 2px; color: var(--color-cream); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.05em; }
.friday-banner__link:hover { background: rgba(250,248,244,0.15); color: var(--color-cream); }


/* ============================================================
   RAMADAN BAR
   ============================================================ */
.ramadan-bar {
    background: var(--color-navy);
    color: var(--color-gold-light);
    padding: 0.55rem var(--space-lg);
    text-align: center;
    font-size: 0.825rem;
    display: flex; align-items: center; justify-content: center; gap: var(--space-sm);
    letter-spacing: 0.02em;
}
.ramadan-bar a { color: var(--color-gold-light); text-decoration: underline; }


/* ============================================================
   HERO SLIDER — Atmospheric, full-bleed
   ============================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: clamp(480px, 80vh, 900px);
}
.hero-slider__track { display: flex; height: 100%; transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-slider__slide { position: relative; min-width: 100%; height: 100%; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slider__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 8s ease;
}
.hero-slider__slide.is-active .hero-slider__bg { transform: scale(1.04); }
.hero-slider__bg--gradient {
    background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-teal) 50%, #0a2535 100%);
}
.hero-slider__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,18,32,0.90) 0%,
        rgba(10,18,32,0.50) 50%,
        rgba(10,18,32,0.20) 100%
    );
}
.hero-slider__content { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero-slider__text { max-width: 700px; }
.hero-slider__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.7s ease 0.1s;
}
.hero-slider__slide.is-active .hero-slider__eyebrow { opacity: 1; transform: translateY(0); }
.hero-slider__title {
    font-size: clamp(2.2rem, 6vw, 5rem);
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.25s;
}
.hero-slider__slide.is-active .hero-slider__title { opacity: 1; transform: translateY(0); }
.hero-slider__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.75);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
    line-height: 1.65;
    font-weight: 400;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.8s ease 0.4s;
}
.hero-slider__slide.is-active .hero-slider__subtitle { opacity: 1; transform: translateY(0); }
.hero-slider__buttons {
    display: flex; gap: var(--space-md); flex-wrap: wrap;
    opacity: 0; transform: translateY(16px);
    transition: all 0.8s ease 0.55s;
}
.hero-slider__slide.is-active .hero-slider__buttons { opacity: 1; transform: translateY(0); }

/* Slider controls */
.hero-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 44px; height: 44px;
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}
.hero-slider__arrow:hover { background: rgba(201,168,76,0.25); border-color: var(--color-gold); }
.hero-slider__arrow--prev { left: var(--space-xl); }
.hero-slider__arrow--next { right: var(--space-xl); }
.hero-slider__dots { position: absolute; bottom: var(--space-xl); right: var(--space-xl); display: flex; gap: var(--space-sm); z-index: 10; }
.hero-slider__dot { width: 24px; height: 2px; border-radius: 0; background: rgba(255,255,255,0.3); border: none; transition: all var(--transition-base); cursor: pointer; }
.hero-slider__dot.is-active { width: 40px; background: var(--color-gold); }


/* ============================================================
   SECTION HEADERS — Editorial
   ============================================================ */
.section-header { margin-bottom: var(--space-2xl); }
.section-header--center { text-align: center; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-prayer);
}
.section-title { margin-bottom: var(--space-sm); }
.section-subtitle { color: var(--color-text-muted); font-size: 1.05rem; max-width: 580px; line-height: 1.7; }
.section-header--center .section-subtitle { margin: 0 auto; }
.section-link { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); letter-spacing: 0.05em; text-transform: uppercase; transition: color var(--transition-fast); }
.section-link:hover { color: var(--color-gold); }


/* ============================================================
   BUTTONS — Refined, architectural
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    font-family: var(--font-sans);
    line-height: 1;
    text-transform: uppercase;
}
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.78rem; }
.btn--lg { padding: 0.9rem 2.2rem; font-size: 0.9rem; }
.btn--primary {
    background: var(--color-teal);
    color: #fff;
    border-color: var(--color-teal);
    transition: all var(--transition-base), background var(--transition-prayer), border-color var(--transition-prayer);
}
.btn--primary:hover { background: #0a3d4a; border-color: #0a3d4a; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--color-text); border-color: var(--color-navy); }
.btn--outline:hover { background: var(--color-navy); border-color: var(--color-navy); color: #fff; transform: translateY(-1px); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn--gold { background: var(--color-gold); color: var(--color-navy); border-color: var(--color-gold); }
.btn--gold:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: var(--color-navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--color-gold); color: var(--color-navy); border-color: var(--color-gold); font-weight: 700; }
.btn--accent:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: var(--color-navy); }
.btn--paypal { background: #0070ba; color: #fff; border-color: #0070ba; }
.btn--paypal:hover { background: #003087; border-color: #003087; color: #fff; }
.btn--whatsapp { background: #25d366; color: #fff; border-color: #25d366; gap: var(--space-xs); }
.btn--whatsapp:hover { background: #128c7e; border-color: #128c7e; color: #fff; transform: translateY(-1px); }
.btn--telegram { background: #229ed9; color: #fff; border-color: #229ed9; gap: var(--space-xs); }
.btn--telegram:hover { background: #1a7fb5; border-color: #1a7fb5; color: #fff; transform: translateY(-1px); }


/* ============================================================
   PAGE HERO — Inner page header
   ============================================================ */
.page-hero {
    background: var(--color-navy);
    padding: var(--space-3xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(26,74,92,0.4) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .section-eyebrow { color: var(--color-gold-light); }
.page-hero__title { color: #fff; margin-bottom: var(--space-sm); }
.page-hero__subtitle { color: rgba(255,255,255,0.65); font-size: 1.05rem; font-weight: 400; }


/* ============================================================
   PRAYER SECTION — Premium Dashboard Style
   ============================================================ */
.prayer-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* Countdown Banner — Architectural */
.prayer-countdown-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-xl);
    background: var(--color-navy);
    border: 1px solid rgba(201,168,76,0.2);
    padding: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
    transition: background var(--transition-prayer);
}
.prayer-countdown-banner::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--color-gold);
    transition: background var(--transition-prayer);
}
.prayer-countdown-banner__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 4px;
    font-weight: 500;
}
.prayer-countdown-banner__name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}
.prayer-countdown-banner__arabic {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    color: rgba(255,255,255,0.5);
    direction: rtl;
}
.prayer-countdown-banner__time {
    font-size: 2.8rem;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    color: var(--color-gold-light);
    letter-spacing: -0.02em;
    line-height: 1;
}
.prayer-countdown-banner__countdown {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
    margin-left: auto;
}
.prayer-countdown-banner__countdown-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.4); }
.prayer-countdown-banner__word { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.prayer-countdown-banner__timer {
    font-size: 1.6rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
    letter-spacing: 0.02em;
}
@media (max-width: 640px) {
    .prayer-countdown-banner {
        grid-template-columns: 1fr;
        padding: var(--space-lg) var(--space-xl);
        gap: var(--space-md);
    }
    .prayer-countdown-banner__countdown { align-items: flex-start; margin-left: 0; }
    .prayer-countdown-banner__name { font-size: 1.6rem; }
    .prayer-countdown-banner__time { font-size: 2rem; }
}

/* Prayer Grid — Clean tabular */
.prayer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
}
@media (max-width: 640px) { .prayer-grid { grid-template-columns: 1fr; } }

.prayer-card {
    background: var(--color-bg-card);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    position: relative;
    transition: background var(--transition-base);
}
.prayer-card:hover { background: var(--color-bg-secondary); }
.prayer-card--current { background: var(--color-navy); }
.prayer-card--current:hover { background: var(--color-navy-mid); }

.prayer-card__icon { display: none; } /* No emoji */

.prayer-card__name {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.prayer-card--current .prayer-card__name { color: var(--color-gold-light); }
.prayer-card__arabic {
    font-family: var(--font-arabic);
    font-size: 1rem;
    color: var(--color-text-light);
    direction: rtl;
    margin-bottom: var(--space-sm);
    display: none; /* Show on gebetszeiten page */
}
.prayer-card__time {
    font-size: 2rem;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1;
    transition: color var(--transition-prayer);
}
.prayer-card--current .prayer-card__time { color: #fff; font-weight: 400; }
.prayer-card__badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
}
.prayer-card__badge--current { background: var(--color-gold); color: var(--color-navy); }
.prayer-card__badge--next { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

.prayer-sunrise {
    text-align: right;
    color: var(--color-text-light);
    margin-top: var(--space-md);
    font-size: 0.825rem;
    letter-spacing: 0.02em;
}
.prayer-sunrise strong { color: var(--color-text-muted); }
.prayer-section__footer { text-align: center; margin-top: var(--space-2xl); }

/* Prayer Sticky Widget */
.prayer-sticky { position: fixed; bottom: var(--space-xl); right: var(--space-xl); z-index: 80; }
.prayer-sticky__toggle {
    background: var(--color-navy);
    color: #fff;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 2px;
    padding: 0.6rem 1.1rem;
    display: flex; align-items: center; gap: var(--space-sm);
    font-weight: 600; font-size: 0.825rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-prayer);
    letter-spacing: 0.02em;
}
.prayer-sticky__toggle:hover { background: var(--color-teal); border-color: var(--color-gold); }
.prayer-sticky__panel {
    position: absolute;
    bottom: calc(100% + var(--space-md));
    right: 0;
    background: var(--color-navy);
    border: 1px solid rgba(201,168,76,0.2);
    border-top: 2px solid var(--color-gold);
    padding: var(--space-lg);
    min-width: 240px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.2s ease;
}
.prayer-sticky__panel[hidden] { display: none; }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.prayer-sticky__title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-md); color: var(--color-gold-light); }
.prayer-sticky__times { display: flex; flex-direction: column; gap: var(--space-xs); }
.prayer-sticky__countdown {
    margin-top: var(--space-md); padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between;
    font-size: 0.825rem; color: rgba(255,255,255,0.6);
}
.prayer-sticky__countdown strong { color: var(--color-gold-light); font-variant-numeric: tabular-nums; }
.prayer-sticky__link { display: block; text-align: center; margin-top: var(--space-md); font-size: 0.78rem; font-weight: 600; color: var(--color-gold-light); letter-spacing: 0.05em; text-transform: uppercase; }


/* ============================================================
   NEWS GRID — Editorial
   ============================================================ */
.news-section { padding: var(--space-4xl) 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-xl); }
.news-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-base);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-card__image-wrap { overflow: hidden; aspect-ratio: 16/9; display: block; position: relative; }
.news-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.news-card:hover .news-card__image { transform: scale(1.04); }
.news-card__body { padding: var(--space-xl); }
.news-card__meta { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.news-card__cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-gold); transition: color var(--transition-prayer); }
.news-card__date { font-size: 0.8rem; color: var(--color-text-light); }
.news-card__title { font-size: 1.15rem; margin-bottom: var(--space-sm); line-height: 1.3; letter-spacing: -0.01em; }
.news-card__title a { color: var(--color-text); }
.news-card__title a:hover { color: var(--color-teal); }
.news-card__excerpt { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: var(--space-md); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.65; }
.news-card__link { font-size: 0.78rem; font-weight: 600; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.08em; transition: color var(--transition-fast); }
.news-card__link:hover { color: var(--color-gold); }


/* ============================================================
   EVENTS — Clean list style
   ============================================================ */
.events-section { padding: var(--space-4xl) 0; }
.events-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--color-border); }
.event-card {
    background: var(--color-bg-card);
    display: flex;
    gap: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}
.event-card:last-child { border-bottom: none; }
.event-card:hover { background: var(--color-bg-secondary); }
.event-card__date-block {
    flex-shrink: 0;
    width: 80px;
    background: var(--color-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    transition: background var(--transition-prayer);
    position: relative;
}
.event-card__date-block::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 2px;
    background: var(--color-gold);
    opacity: 0.5;
}
.event-card__day { font-size: 2rem; font-weight: 700; line-height: 1; font-family: var(--font-display); letter-spacing: -0.03em; }
.event-card__month { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-gold-light); margin-top: 2px; }
.event-card__year { font-size: 0.65rem; opacity: 0.5; margin-top: 1px; }
.event-card__image-wrap { flex-shrink: 0; width: 110px; overflow: hidden; display: block; align-self: stretch; position: relative; }
@media (max-width: 479px) { .event-card__image-wrap { width: 80px; } }
.event-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card__body { padding: var(--space-lg) var(--space-xl); flex: 1; display: flex; flex-direction: column; justify-content: center; }
.event-card__cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-gold); margin-bottom: 6px; transition: color var(--transition-prayer); }
.event-card__title { font-size: 1.05rem; margin-bottom: var(--space-sm); letter-spacing: -0.01em; }
.event-card__title a { color: var(--color-text); }
.event-card__title a:hover { color: var(--color-teal); }
.event-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-md); font-size: 0.825rem; color: var(--color-text-light); }
.event-card__time, .event-card__location { display: flex; align-items: center; gap: 6px; }


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { padding: var(--space-4xl) 0; }
.about-section__inner { display: grid; gap: var(--space-3xl); }
@media (min-width: 768px) { .about-section__inner { grid-template-columns: 1fr 220px; align-items: center; } }
.about-section__text { color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: var(--space-xl); }
.about-section__imam { text-align: center; }
.about-section__imam-img { width: 180px; height: 220px; object-fit: cover; margin: 0 auto var(--space-md); box-shadow: var(--shadow-lg); }
.about-section__imam-placeholder { width: 180px; height: 220px; background: var(--color-bg-secondary); border: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto var(--space-md); color: var(--color-text-light); }
.about-section__imam-name { font-size: 1rem; font-weight: 700; }
.about-section__imam-title { color: var(--color-text-light); font-size: 0.85rem; }


/* ============================================================
   SPENDEN / DONATION CTA
   ============================================================ */
.spenden-cta {
    padding: var(--space-4xl) 0;
    background: var(--color-navy);
    position: relative;
    overflow: hidden;
}
.spenden-cta::before {
    content: '';
    position: absolute;
    right: -100px; top: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.spenden-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2xl); flex-wrap: wrap; }
.spenden-cta__title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; margin-bottom: var(--space-sm); letter-spacing: -0.02em; }
.spenden-cta__text { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 480px; margin-bottom: 0; line-height: 1.7; }


/* ============================================================
   GALLERY
   ============================================================ */
.gallery-preview { padding: var(--space-4xl) 0; background: var(--color-bg-secondary); }
.gallery-grid { display: grid; gap: 2px; }
.gallery-grid--preview { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .gallery-grid--preview { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { overflow: hidden; aspect-ratio: 1; }
.gallery-item__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover .gallery-item__img { transform: scale(1.05); }
.gallery-preview__footer { text-align: center; margin-top: var(--space-2xl); }


/* ============================================================
   CONTACT STRIP
   ============================================================ */
.contact-strip { padding: var(--space-4xl) 0; }
.contact-strip__inner { display: grid; gap: var(--space-3xl); align-items: start; }
@media (min-width: 768px) { .contact-strip__inner { grid-template-columns: 1fr 1fr; } }
.contact-strip__info h3 { font-size: 1.6rem; margin-bottom: var(--space-lg); letter-spacing: -0.02em; }
.contact-strip__info p { color: var(--color-text-muted); margin-bottom: var(--space-sm); font-size: 0.95rem; }
.contact-strip__info a { color: var(--color-teal); }
.contact-strip__info a:hover { color: var(--color-gold); }
.contact-strip__map { border: 1px solid var(--color-border); overflow: hidden; }
.contact-strip__map iframe, .contact-strip__map .mosq-map { width: 100%; display: block; }
.contact-strip__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); align-items: center; }
.prayer-info-card__icon { margin-bottom: var(--space-md); color: var(--prayer-color); display: flex; justify-content: center; transition: color var(--transition-prayer); }
.prayer-info-card__arabic { display: block; font-family: 'Amiri', 'Traditional Arabic', serif; font-size: 1rem; color: var(--color-gold); margin-top: var(--space-xs); direction: rtl; }
.empty-state { text-align: center; padding: var(--space-4xl) var(--space-2xl); }
.empty-state__icon { display: flex; justify-content: center; margin-bottom: var(--space-xl); color: var(--color-text-light); opacity: 0.5; }
.empty-state__title { font-size: 1.5rem; margin-bottom: var(--space-md); }
.empty-state__text { color: var(--color-text-muted); max-width: 480px; margin: 0 auto var(--space-xl); }


/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex; align-items: center; gap: var(--space-sm);
    font-size: 0.8rem; color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
    letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb__sep { color: var(--color-border); }
.breadcrumb__current { color: var(--color-text-muted); }


/* ============================================================
   FOOTER — Dark, minimal
   ============================================================ */
.footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.6);
    padding-top: var(--space-4xl);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: var(--space-2xl); } }

.footer__logo {
    display: flex; align-items: center; gap: var(--space-sm);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}
.footer__logo-icon { color: var(--color-gold); }
.footer__logo-ditib { height: 56px; width: auto; object-fit: contain; border-radius: 4px; }
.footer__logo-img { height: 56px; width: auto; object-fit: contain; border-radius: 4px; }
.footer__opening { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: var(--space-md); }
.footer__prayer-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-gold); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: opacity var(--transition-fast); }
.footer__prayer-link:hover { opacity: 0.8; }
.footer__about { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: var(--space-lg); }
.footer__social { display: flex; gap: var(--space-md); }
.footer__social-link {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition-fast);
}
.footer__social-link:hover { border-color: var(--color-gold); color: var(--color-gold-light); }

.footer__col-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: var(--space-lg);
    font-family: var(--font-sans);
}
.footer__nav { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__nav li a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer__nav li a:hover { color: var(--color-gold-light); }

.footer__address { font-style: normal; font-size: 0.9rem; line-height: 2; color: rgba(255,255,255,0.55); }
.footer__address a { color: rgba(255,255,255,0.55); }
.footer__address a:hover { color: var(--color-gold-light); }

.footer__prayer-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.footer__prayer-item {
    display: flex; justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    font-variant-numeric: tabular-nums;
}
.footer__prayer-item:last-child { border-bottom: none; }

.footer__bottom {
    padding: var(--space-lg) 0;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md);
}
.footer__copyright { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer__legal { display: flex; gap: var(--space-lg); }
.footer__legal a { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer__legal a:hover { color: rgba(255,255,255,0.6); }


/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed; bottom: var(--space-xl); right: var(--space-xl);
    z-index: 79;
    background: #25d366;
    color: #fff;
    width: 52px; height: 52px;
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}
.whatsapp-float:hover { background: #128c7e; color: #fff; transform: scale(1.05); }


/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post { padding: 0 0 var(--space-4xl); }
.single-post__header { margin-bottom: var(--space-2xl); }
.single-post__cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-gold); display: block; margin-bottom: var(--space-md); transition: color var(--transition-prayer); }
.single-post__title { margin-bottom: var(--space-lg); }
.single-post__meta { display: flex; align-items: center; gap: var(--space-lg); font-size: 0.85rem; color: var(--color-text-light); margin-bottom: var(--space-xl); padding-bottom: var(--space-xl); border-bottom: 1px solid var(--color-border); }
.single-post__thumbnail { margin-bottom: var(--space-2xl); aspect-ratio: 16/9; overflow: hidden; }
.single-post__thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Event Banner Image (optionales Bannerbild auf der Detailseite) */
.event-banner-img { margin: var(--space-2xl) 0; border-radius: var(--radius-lg); overflow: hidden; }
.event-banner-img__img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 420px; }
@media (min-width: 768px) { .event-banner-img__img { max-height: 520px; } }


/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: calc(var(--navbar-height) + 40px); }
.widget { margin-bottom: var(--space-2xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--color-border); }
.widget:last-child { border-bottom: none; }
.widget__title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-light); margin-bottom: var(--space-lg); }


/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); margin-top: var(--space-3xl); }
.pagination__btn { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--color-text-muted); transition: all var(--transition-fast); }
.pagination__btn:hover, .pagination__btn--active { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }


/* ============================================================
   REVEAL ANIMATIONS — Subtle
   ============================================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-sm); color: var(--color-text-muted); }
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}
.form-control:focus { outline: none; border-color: var(--color-teal); }
textarea.form-control { resize: vertical; min-height: 140px; }


/* ============================================================
   DOCUMENT LIBRARY
   ============================================================ */
.doc-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--color-border); }
.doc-item { display: flex; align-items: center; gap: var(--space-xl); padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--color-border); transition: background var(--transition-fast); }
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--color-bg-secondary); }
.doc-item__icon { flex-shrink: 0; color: var(--color-text-light); }
.doc-item__info { flex: 1; }
.doc-item__name { font-weight: 600; font-size: 0.95rem; color: var(--color-text); }
.doc-item__meta { font-size: 0.8rem; color: var(--color-text-light); margin-top: 2px; }
.doc-item__actions { display: flex; gap: var(--space-sm); }


/* ============================================================
   DARK MODE REFINEMENTS
   ============================================================ */
[data-theme="dark"] .navbar { border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .prayer-card { background: #132030; }
[data-theme="dark"] .prayer-card:hover { background: #1a2d42; }
[data-theme="dark"] .prayer-card--current { background: #0a1825; }
[data-theme="dark"] .news-card { background: #132030; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .event-card { background: #132030; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .event-card:hover { background: #1a2d42; }
[data-theme="dark"] .footer { background: #060e1a; }
[data-theme="dark"] .prayer-countdown-banner { background: #060e1a; }


/* ============================================================
   ISLAMIC GEOMETRIC ACCENT — Subtle background pattern
   ============================================================ */
.has-geometric-bg {
    position: relative;
    overflow: hidden;
}
.has-geometric-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(201,168,76,0.025) 0px, rgba(201,168,76,0.025) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(-45deg, rgba(201,168,76,0.025) 0px, rgba(201,168,76,0.025) 1px, transparent 1px, transparent 40px);
    pointer-events: none;
    z-index: 0;
}
.has-geometric-bg > * { position: relative; z-index: 1; }


/* ============================================================
   UTILITY
   ============================================================ */
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-md { margin-top: var(--space-md); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Divider */
.divider { height: 1px; background: var(--color-border); margin: var(--space-2xl) 0; }
.divider--gold { background: linear-gradient(90deg, transparent, var(--color-gold), transparent); opacity: 0.4; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .container { padding: 0 var(--space-lg); }
    .page-hero { padding: var(--space-2xl) 0 var(--space-xl); }
    .prayer-section, .news-section, .events-section, .about-section,
    .spenden-cta, .gallery-preview, .contact-strip { padding: var(--space-3xl) 0; }
    h1 { letter-spacing: -0.025em; }
}
@media (max-width: 480px) {
    :root { --navbar-height: 60px; }
    .btn { padding: 0.65rem 1.2rem; }
    .btn--lg { padding: 0.75rem 1.5rem; }
    .footer__grid { gap: var(--space-xl); }
}

/* ============================================================
   SPENDEN PAGE — Trust bar & payment strip
   ============================================================ */
.spenden-trust-bar { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; justify-content: center; background: var(--color-bg-secondary); border-radius: var(--radius-xl); padding: var(--space-xl) var(--space-2xl); margin-bottom: var(--space-3xl); border: 1px solid var(--color-border); }
.spenden-trust-bar__item { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); letter-spacing: 0.02em; text-transform: uppercase; }
.spenden-trust-bar__item svg { color: var(--color-gold); flex-shrink: 0; }
.payment-methods-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); padding: var(--space-lg) var(--space-xl); background: var(--color-bg-secondary); border-radius: var(--radius-lg); margin: var(--space-3xl) 0; border: 1px solid var(--color-border); }
.payment-methods-strip__label { font-size: 0.8rem; font-weight: 600; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.payment-methods-strip__icons { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.payment-method-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); background: var(--color-bg); }


/* ============================================================
   TOPBAR — Ramadan badge
   ============================================================ */
.topbar__ramadan {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--color-gold-light);
    background: rgba(200,169,107,0.12);
    border: 1px solid rgba(200,169,107,0.25);
    padding: 3px 10px;
    border-radius: 2px;
    white-space: nowrap;
}
a.topbar__ramadan {
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
}
a.topbar__ramadan:hover {
    background: rgba(200,169,107,0.25);
    color: #fff;
}


/* ============================================================
   KONTAKT — Quick-Buttons (hohe Spezifität, Plugin-sicher)
   ============================================================ */
a.quick-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: .5rem !important;
    padding: .55rem 1.25rem !important;
    border-radius: 999px !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all .2s ease !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}
a.quick-btn--phone,
a.quick-btn--phone:link,
a.quick-btn--phone:visited {
    background-color: #0d4d5c !important;
    color: #ffffff !important;
    border: none !important;
}
a.quick-btn--phone:hover { background-color: #0a3d4a !important; color: #ffffff !important; }
a.quick-btn--phone svg  { stroke: #ffffff !important; }

a.quick-btn--email,
a.quick-btn--email:link,
a.quick-btn--email:visited {
    background-color: #07182d !important;
    color: #ffffff !important;
    border: none !important;
}
a.quick-btn--email:hover { background-color: #0d4d5c !important; color: #ffffff !important; }
a.quick-btn--email svg  { stroke: #ffffff !important; }

a.quick-btn--whatsapp,
a.quick-btn--whatsapp:link,
a.quick-btn--whatsapp:visited {
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
}
a.quick-btn--whatsapp:hover { background-color: #1da851 !important; color: #ffffff !important; }

a.quick-btn--telegram,
a.quick-btn--telegram:link,
a.quick-btn--telegram:visited {
    background-color: #229ED9 !important;
    color: #ffffff !important;
    border: none !important;
}
a.quick-btn--telegram:hover { background-color: #1a86b8 !important; color: #ffffff !important; }


/* ============================================================
   DONATION PAGE — Full styles
   ============================================================ */
.donation-amounts { margin-bottom: var(--space-3xl); }
.donation-amounts__title,
.donation-methods__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}
.donation-amounts__grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}
.donation-amount-btn {
    padding: 0.65rem 1.4rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: -0.01em;
}
.donation-amount-btn:hover { border-color: var(--color-teal); color: var(--color-teal); }
.donation-amount-btn.is-active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #fff;
}
.donation-amount-custom {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}
.donation-amount-custom input {
    width: 100%;
    padding: 0.65rem 2.2rem 0.65rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition-fast);
}
.donation-amount-custom input:focus { outline: none; border-color: var(--color-teal); }
.donation-amount-custom__currency {
    position: absolute;
    right: 10px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    pointer-events: none;
}

.donation-methods { margin-bottom: var(--space-3xl); }
.donation-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    margin-bottom: 0;
}
.donation-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.8rem 1.4rem;
    background: var(--color-bg-secondary);
    border: none;
    border-right: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.donation-tab:last-child { border-right: none; }
.donation-tab:hover { background: var(--color-bg-card); color: var(--color-text); }
.donation-tab.is-active {
    background: var(--color-bg-card);
    color: var(--color-navy);
    box-shadow: inset 0 -2px 0 var(--color-gold);
}

.donation-panel { display: none; }
.donation-panel.is-active { display: block; }

.bank-card {
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-card);
}
.bank-card__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    margin: 0;
    background: var(--color-bg-secondary);
}
.bank-card__fields { padding: var(--space-lg) var(--space-xl); display: flex; flex-direction: column; gap: 0; }
.bank-field {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}
.bank-field:last-child { border-bottom: none; }
.bank-field--highlight { background: rgba(var(--prayer-color-rgb),0.04); margin: 0 calc(-1 * var(--space-xl)); padding: var(--space-md) var(--space-xl); }
.bank-field__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    min-width: 140px;
    flex-shrink: 0;
}
.bank-field__value { flex: 1; font-size: 0.95rem; color: var(--color-text); }
.bank-field__value--mono { font-family: 'Courier New', monospace; font-size: 1rem; font-weight: 600; letter-spacing: 0.05em; }
.copy-btn {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.copy-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }
.copy-btn.copied { border-color: #2ecc71; color: #2ecc71; }

.paypal-card {
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--space-2xl);
    background: var(--color-bg-card);
    text-align: center;
}
.paypal-card__logo { margin-bottom: var(--space-lg); display: flex; justify-content: center; }
.paypal-amounts { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin: var(--space-lg) 0; }
.btn--paypal {
    background: #0070ba;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}
.btn--paypal:hover { background: #005ea6; color: #fff; }

.qr-card {
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--space-2xl);
    background: var(--color-bg-card);
    text-align: center;
}
.qr-card h3 { margin-bottom: var(--space-md); font-size: 1rem; }
.qr-card p { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: var(--space-xl); max-width: 480px; margin-left: auto; margin-right: auto; }
.qr-card__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    margin: 0 auto var(--space-lg);
}
.qr-card__loading { color: var(--color-text-light); font-size: 0.875rem; }
.qr-card__note { font-size: 0.78rem; color: var(--color-text-light); margin-top: var(--space-md); }
.qr-card__error { color: #c0392b; font-size: 0.875rem; }

.twint-card {
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--space-2xl);
    background: var(--color-bg-card);
    text-align: center;
}
.twint-card h3 { margin-bottom: var(--space-md); }
.twint-card p { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: var(--space-lg); }
.twint-card__number {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text);
    border: 2px solid var(--color-border);
    display: inline-block;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-md);
}

.donation-receipt-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin: var(--space-2xl) 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}
.donation-receipt-note svg { flex-shrink: 0; color: var(--color-gold); margin-top: 2px; }
.donation-receipt-note p { margin: 0; line-height: 1.6; }

.sadaqa-note {
    background: var(--color-navy);
    border: 1px solid rgba(200,169,107,0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    margin: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}
.sadaqa-note::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(200,169,107,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.sadaqa-note__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-xl);
}
.sadaqa-note__ayat {
    font-family: var(--font-arabic);
    font-size: 1.6rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    direction: rtl;
}
.sadaqa-note__translation {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Spenden-Seite: Förderer-Hinweis */
.spenden-sponsoren-hint { margin-top: var(--space-3xl); }
.spenden-sponsoren-hint__inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--color-bg-secondary);
    border: 1px solid rgba(200,169,107,0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-2xl);
}
@media (max-width: 640px) {
    .spenden-sponsoren-hint__inner { flex-direction: column; text-align: center; }
}
.spenden-sponsoren-hint__icon { color: var(--color-gold); flex-shrink: 0; }
.spenden-sponsoren-hint__title { font-size: 1.1rem; font-weight: 700; color: var(--color-navy); margin: 0 0 4px; }
.spenden-sponsoren-hint__text  { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }
.spenden-sponsoren-hint__inner .btn { flex-shrink: 0; white-space: nowrap; margin-left: auto; }
@media (max-width: 640px) {
    .spenden-sponsoren-hint__inner .btn { margin-left: 0; }
}


/* ============================================================
   GEBETSZEITEN PAGE — Weekly table & prayer info
   ============================================================ */
.prayer-weekly { margin: var(--space-4xl) 0; }
.prayer-weekly .section-header { margin-bottom: var(--space-xl); }
.prayer-weekly__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prayer-weekly__table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
}
.prayer-weekly__table thead tr {
    background: var(--color-navy);
}
.prayer-weekly__table thead th {
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
.prayer-weekly__table thead th:first-child { text-align: left; }
.prayer-weekly__table tbody tr {
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition-fast);
}
.prayer-weekly__table tbody tr:last-child { border-bottom: none; }
.prayer-weekly__table tbody tr:hover { background: var(--color-bg-secondary); }
.prayer-weekly__table tbody tr.is-today {
    background: rgba(13,77,92,0.08);
}
.prayer-weekly__table tbody tr.is-today td { font-weight: 600; }
.prayer-weekly__table tbody tr.is-friday td { color: var(--color-gold); }
.prayer-weekly__table td {
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-muted);
}
.prayer-weekly__day {
    text-align: left !important;
    font-weight: 600;
    color: var(--color-text) !important;
    white-space: nowrap;
}
.today-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-teal);
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
    vertical-align: middle;
}
.prayer-weekly__note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.prayer-weekly__note .admin-only { font-size: 0.75rem; color: var(--color-text-light); }
.prayer-weekly__note .admin-only:hover { color: var(--color-gold); }
.prayer-sunrise {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    margin: var(--space-lg) 0;
    padding: var(--space-md) var(--space-xl);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}
.prayer-sunrise strong { color: var(--color-gold); }

.prayer-info { margin: var(--space-4xl) 0; }
.prayer-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-xl);
}
.prayer-info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}
.prayer-info-card:hover { border-color: var(--prayer-color); box-shadow: var(--shadow-sm); }
.prayer-info-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.prayer-info-card__desc { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.6; margin: 0; }


/* ============================================================
   EVENTS PAGE — Grid layout & filter
   ============================================================ */
.events-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}
.events-filter__btn {
    padding: 0.45rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
}
.events-filter__btn:hover { border-color: var(--color-teal); color: var(--color-teal); }
.events-filter__btn.is-active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #fff;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

/* Event card in full page (different from homepage list style) */
.events-grid .event-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}
.events-grid .event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.event-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-bg-secondary);
    display: block;
    text-decoration: none;
    flex-shrink: 0;
    width: 100%;
}
.event-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.events-grid .event-card:hover .event-card__img { transform: scale(1.04); }
.event-card__img-wrap .event-card__cat {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 3px 8px;
    border-radius: 2px;
}
.event-card__body { padding: var(--space-xl); flex: 1; display: flex; flex-direction: column; }
.event-card__excerpt { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.6; margin: var(--space-sm) 0 var(--space-lg); flex: 1; }
.event-card__date {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: var(--space-md);
}
.event-card__date-day {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-navy);
    letter-spacing: -0.03em;
}
.event-card__date-month {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
}
.event-card__content { flex: 1; display: flex; flex-direction: column; }
.event-card__title {
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.event-card__title a { color: var(--color-text); }
.event-card__title a:hover { color: var(--color-teal); }
.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}
.event-card__meta-item { display: flex; align-items: center; gap: 5px; }
.event-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================================================
   BTN TELEGRAM — global
   ============================================================ */
.btn--telegram { background: #229ED9; color: #fff; border: none; }
.btn--telegram:hover { background: #1a86b8; color: #fff; }

/* ============================================================
   LEGAL PAGES — Impressum & Datenschutz
   ============================================================ */
.legal-page { max-width: 780px; }
.legal-content .legal-section { margin-bottom: var(--space-3xl); padding-bottom: var(--space-3xl); border-bottom: 1px solid var(--color-border-light); }
.legal-content .legal-section:last-child { border-bottom: none; padding-bottom: 0; }
.legal-section__header { display: flex; align-items: flex-start; gap: var(--space-md); margin-bottom: var(--space-lg); }
.legal-section__icon { width: 44px; height: 44px; min-width: 44px; background: rgba(200,169,107,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--color-gold); flex-shrink: 0; }
.legal-section__title { font-size: 1.15rem; font-weight: 700; color: var(--color-navy); margin: 0; line-height: 1.3; padding-top: 11px; }
.legal-section__body p { margin-bottom: var(--space-md); color: var(--color-text); line-height: 1.8; }
.legal-section__body p:last-child { margin-bottom: 0; }
.legal-section__body ul { padding-left: var(--space-xl); margin-bottom: var(--space-md); }
.legal-section__body li { margin-bottom: var(--space-xs); color: var(--color-text); line-height: 1.7; }
.legal-section__body address { font-style: normal; line-height: 2; color: var(--color-text); }
.legal-section__body strong { color: var(--color-navy); }
.legal-toc { background: var(--color-bg-secondary); border: 1px solid var(--color-border-light); border-left: 3px solid var(--color-gold); border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-2xl); margin-bottom: var(--space-3xl); }
.legal-toc h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: var(--space-md); }
.legal-toc ol { padding-left: var(--space-xl); margin: 0; columns: 2; column-gap: var(--space-2xl); }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
.legal-toc li { margin-bottom: var(--space-xs); }
.legal-toc a { color: var(--color-teal); font-weight: 500; font-size: 0.9rem; }
.legal-toc a:hover { color: var(--color-gold); }
.legal-updated { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: var(--space-2xl); display: flex; align-items: center; gap: 6px; background: var(--color-bg-secondary); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); width: fit-content; }
.legal-notice-info { background: rgba(13,77,92,0.07); border: 1px solid rgba(13,77,92,0.2); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); color: var(--color-teal); font-size: 0.9rem; }

/* ============================================================
   CONTACT FORM 7 — Theme Styling
   ============================================================ */
.kontakt-form-section { margin-top: var(--space-3xl); padding-top: var(--space-3xl); border-top: 1px solid var(--color-border-light); }
.wpcf7 { margin-top: var(--space-xl) !important; }
.wpcf7-form { display: grid; gap: var(--space-sm); }
.wpcf7-form p { margin: 0 !important; }
.wpcf7-form label,
.wpcf7 label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 5px; letter-spacing: 0.05em; text-transform: uppercase; }

/* Alle Texteingaben — inkl. select, date, number */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea,
.wpcf7-text, .wpcf7-email, .wpcf7-tel, .wpcf7-textarea, .wpcf7-select, .wpcf7-date, .wpcf7-number {
    width: 100% !important;
    background: #f5f1e8 !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    color: var(--color-navy) !important;
    font-family: inherit !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { outline: none !important; border-color: var(--color-gold) !important; box-shadow: 0 0 0 3px rgba(200,169,107,0.18) !important; }

.wpcf7-form textarea, .wpcf7 textarea, .wpcf7-textarea { resize: vertical !important; min-height: 130px !important; }

/* Select-Pfeil */
.wpcf7-form select, .wpcf7 select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2307182d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}

/* Checkbox & Radio */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"],
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    width: auto !important;
    accent-color: var(--color-teal);
    margin-right: 6px;
    vertical-align: middle;
}
.wpcf7-list-item { display: inline-block; margin-right: var(--space-md); }
.wpcf7-list-item-label { font-size: 0.9rem; color: var(--color-text); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Submit-Button */
.wpcf7-form input[type="submit"], .wpcf7-submit, .wpcf7 input[type="submit"] {
    background: var(--color-teal) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 36px !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    width: auto !important;
}
.wpcf7-form input[type="submit"]:hover, .wpcf7-submit:hover, .wpcf7 input[type="submit"]:hover {
    background: var(--color-navy) !important; transform: translateY(-1px) !important;
}

/* Validation & Response */
.wpcf7-not-valid-tip { color: #c0392b !important; font-size: 0.78rem !important; margin-top: 3px !important; display: block !important; }
.wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7-response-output {
    border-radius: var(--radius-md) !important;
    padding: var(--space-md) var(--space-lg) !important;
    font-size: 0.9rem !important;
    margin-top: var(--space-md) !important;
    border: 1.5px solid transparent !important;
}
.wpcf7-mail-sent-ok { background: rgba(13,77,92,0.08) !important; border-color: var(--color-teal) !important; color: var(--color-teal) !important; }
.wpcf7-validation-errors, .wpcf7-spam-blocked, .wpcf7-acceptance-missing { background: rgba(192,57,43,0.08) !important; border-color: #c0392b !important; color: #c0392b !important; }
.wpcf7-spinner { accent-color: var(--color-teal); vertical-align: middle; }

/* Honeypot — nur bekannte Honeypot-Felder verstecken */
.wpcf7-form input[name*="honeypot"],
.wpcf7 input[name*="honeypot"],
.wpcf7-form input[name*="_hp"],
.wpcf7 input[name*="_hp"],
.wpcf7-form .wpcf7-quiz-answer,
.wpcf7 .wpcf7-quiz-answer,
input.wpcf7-quiz-answer { display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; }

@media (max-width: 640px) {
    .wpcf7-form input[type="submit"], .wpcf7-submit, .wpcf7 input[type="submit"] {
        width: 100% !important; display: block !important; margin-top: var(--space-sm) !important;
    }
}

/* ── Kennenlernen / Gäste: CTA-Buttons zentriert auf Mobil ── */
@media (max-width: 768px) {
    .kl-cta-box__inner { flex-direction: column; align-items: center; text-align: center; }
    .kl-cta-box__actions { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); width: 100%; }
    .kl-cta-box__actions .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ── Event-Detailseite: Zurück-Button Rand-Abstand ── */
.event-back-link { margin-top: var(--space-2xl); margin-bottom: var(--space-lg); }
.event-back-link .btn { display: inline-flex; }
@media (max-width: 768px) {
    .event-back-link { padding-inline: var(--space-sm); }
}

/* =========================================================
   VORSTAND-SEITE
   ========================================================= */

.page-hero--vorstand { background: var(--color-navy); }

.board-intro { max-width: 720px; margin-bottom: var(--space-2xl); }

.board-section { margin-bottom: var(--space-3xl); }

.board-grid--leaders {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    justify-items: center;
}

.board-grid--members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    justify-items: center;
}

/* Basis-Karte */
.board-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Führungs-Karte */
.board-card--leader {
    background: var(--color-cream);
    border: 3px solid var(--color-gold);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
    min-height: 360px;
}
.board-card--leader:not(.board-card--flippable):hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(0,0,0,.14);
}

/* Normale Karte */
.board-card--member {
    background: #fff;
    border: 1px solid rgba(7,24,45,.1);
    border-radius: var(--radius-md);
    transition: transform .2s, box-shadow .2s;
    min-height: 300px;
}
.board-card--member:not(.board-card--flippable):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

/* Portrait-Foto: füllt die volle Kartenbreite */
.board-card__photo-wrap {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}
.board-card--leader .board-card__photo-wrap {
    height: 220px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.board-card--member .board-card__photo-wrap {
    height: 180px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.board-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.board-card__photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
}
.board-card__photo-placeholder svg {
    width: 64px;
    height: 64px;
}

/* Text-Bereich */
.board-card__body {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}
.board-card--member .board-card__body {
    padding: var(--space-sm) var(--space-md) var(--space-md);
}

/* Text */
.board-card__role {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0 0 .35rem;
}
.board-card--leader .board-card__role { font-size: .85rem; }

.board-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 .3rem;
    line-height: 1.3;
}
.board-card--leader .board-card__name { font-size: 1.25rem; }

.board-card__function {
    font-size: .82rem;
    color: var(--color-teal);
    font-style: italic;
    margin: 0;
}

/* ── FLIP-KARTE ── */
.board-card--flippable {
    perspective: 1000px;
    cursor: pointer;
    overflow: visible;
}
.board-card--flippable .board-card__inner {
    position: relative;
    width: 100%;
    min-height: inherit;
    transform-style: preserve-3d;
    transition: transform 0.52s cubic-bezier(.4,0,.2,1);
    border-radius: inherit;
}
.board-card--flippable .board-card__front,
.board-card--flippable .board-card__back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: inherit;
}
.board-card--flippable .board-card__front {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.board-card--flippable .board-card__back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    background: var(--color-navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    text-align: center;
    overflow-y: auto;
}

/* Hover Desktop */
@media (hover: hover) {
    .board-card--flippable:hover .board-card__inner { transform: rotateY(180deg); }
}
/* JS-gesteuert (Mobil + Back-Button) */
.board-card--flippable.is-flipped .board-card__inner { transform: rotateY(180deg); }

/* Rückseiten-Inhalte */
.board-card__back-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.board-card__back .board-card__role { color: var(--color-gold); }
.board-card__back .board-card__name { color: #fff; margin: 0; font-size: 1.05rem; }
.board-card__description {
    font-size: .86rem;
    color: rgba(255,255,255,.85);
    line-height: 1.65;
    margin: .5rem 0 0;
}

/* Zurück-Button */
.board-card__flip-back {
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.7);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    margin-top: var(--space-sm);
    transition: border-color .2s, color .2s;
    flex-shrink: 0;
}
.board-card__flip-back:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ── INFO-BADGE ── */
.board-card__info-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-gold);
    font-size: .75rem;
    font-weight: 700;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    z-index: 2;
    pointer-events: none;
    transition: transform .2s, box-shadow .2s;
}
.board-card--flippable:hover .board-card__info-badge {
    transform: scale(1.18);
    box-shadow: 0 3px 14px rgba(200,169,107,.45);
}

/* ── TAP-HINT (nur Touch/Mobil) ── */
.board-card__tap-hint {
    font-size: .72rem;
    color: var(--color-gold);
    opacity: .8;
    margin: .5rem 0 0;
    letter-spacing: .02em;
}
@media (hover: hover) {
    .board-card__tap-hint { display: none; }
}

.board-empty { text-align: center; padding: var(--space-2xl) 0; color: var(--color-teal); }

/* Trennlinie zwischen Führung und Mitglieder */
.board-section--members {
    border-top: 1px solid rgba(200, 169, 107, 0.35);
    padding-top: var(--space-3xl);
    margin-top: 0;
}

/* Responsive */
@media (max-width: 1023px) {
    .board-grid--leaders { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
    .board-grid--members { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
}
@media (max-width: 600px) {
    .board-grid--leaders,
    .board-grid--members { grid-template-columns: 1fr; gap: var(--space-md); }
    .board-card--leader { min-height: auto; }
    .board-card--member { min-height: auto; }
    .board-card--leader .board-card__photo-wrap { height: 200px; }
    .board-card--member .board-card__photo-wrap { height: 160px; }
}

/* =========================================================
   MITGLIED WERDEN
   ========================================================= */

.page-hero--mitglied { background: var(--color-navy); }

.mitglied-intro { max-width: 720px; margin-bottom: var(--space-2xl); }

/* Benefits */
.mitglied-benefits { margin-bottom: var(--space-3xl); }

.benefits-list {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.benefits-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: var(--color-cream);
    border-left: 4px solid var(--color-gold);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.benefits-list__icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    background: var(--color-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-navy);
    padding: 9px;
}
.benefits-list__icon svg { width: 100%; height: 100%; }

.benefits-list__item strong {
    display: block;
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: .3rem;
}
.benefits-list__item p { margin: 0; font-size: .9rem; color: #555; }

/* Prozess */
.mitglied-process { margin-bottom: var(--space-3xl); }

.process-steps {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    counter-reset: step;
    position: relative;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.process-step__number {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-navy);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-md);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(200,169,107,.35);
}

.process-step__title {
    font-size: 1.05rem;
    color: var(--color-navy);
    margin: 0 0 .5rem;
}

.process-step__content p { font-size: .9rem; color: #555; margin: 0; }

/* PDF Download */
.mitglied-download { margin-bottom: var(--space-3xl); }

.download-card {
    background: var(--color-navy);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    color: #fff;
}

.download-card__icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    background: rgba(200,169,107,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-gold);
    padding: 14px;
}
.download-card__icon svg { width: 100%; height: 100%; }

.download-card__text { flex: 1; }
.download-card__text h3 { margin: 0 0 .35rem; color: var(--color-gold); font-size: 1.2rem; }
.download-card__text p  { margin: 0; opacity: .85; font-size: .92rem; }

/* Online-Formular */
.mitglied-form { margin-bottom: var(--space-3xl); }

.mitglied-form__inner {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 680px;
    margin: 0 auto;
}

.mitglied-form-placeholder { margin-bottom: var(--space-3xl); }

.info-card--note {
    background: rgba(13,77,92,.08);
    border-left: 4px solid var(--color-teal);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    color: var(--color-navy);
}

/* Responsive */
@media (max-width: 900px) {
    .process-steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .download-card { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .benefits-list { grid-template-columns: 1fr; }
    .download-card { padding: var(--space-lg); }
    .mitglied-form__inner { padding: var(--space-lg); }
}
