/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a3a2a;
    --primary-dark: #0d1f16;
    --primary-mid: #1e4d35;
    --primary-light: #2a6b4a;
    --memorial-green: #3a7d5c;
    --white-petal: #f0efe8;
    --cream: #e8e6dc;
    --accent: #8fae6b;
    --accent-soft: #c5d4a8;
    --text: #2a2a28;
    --text-light: #6b6b65;
    --text-muted: #8a8a82;
    --bg: #f5f4ef;
    --bg-alt: #eceade;
    --white: #ffffff;
    --border: #d5d3c8;
    --shadow: 0 2px 16px rgba(13,31,22,0.06);
    --shadow-lg: 0 6px 32px rgba(13,31,22,0.1);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.3s ease;
    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
}

[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', var(--font-sans);
}

a { color: var(--primary-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--memorial-green); }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header {
    background: var(--primary-dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--white);
}

.flower-svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
}

.logo-text h1 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
    color: var(--white-petal);
}

.logo-text small {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    opacity: 0.45;
    display: block;
    margin-top: 2px;
    font-weight: 300;
    max-width: 340px;
    letter-spacing: 0.2px;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.06);
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* Desktop: rechts oben, Mobile: eigene Zeile unter Titel */
.lang-switch-desktop { display: flex; }
.lang-switch-mobile { 
    display: none;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.lang-switch a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    transition: all var(--transition);
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--white-petal);
    background: rgba(255,255,255,0.1);
}

.lang-switch .flag { font-size: 1.1rem; line-height: 1; }
.lang-switch .divider { width: 1px; height: 18px; background: rgba(255,255,255,0.12); }

/* Navigation */
.main-nav {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.03);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-list a {
    display: block;
    color: rgba(255,255,255,0.5);
    padding: 0.65rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    letter-spacing: 0.2px;
}

.nav-list a:hover,
.nav-list a.active {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.04);
    border-bottom-color: var(--accent-soft);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== MEMORIAL BANNER ===== */
.memorial-banner {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--memorial-green);
}

.memorial-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(58,125,92,0.06) 0%, transparent 70%);
}

.memorial-content {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.memorial-flower-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25));
}

.memorial-banner h2 {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--white-petal);
    letter-spacing: 0.5px;
}

.memorial-banner .memorial-sub {
    font-size: 0.92rem;
    opacity: 0.5;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

.memorial-date {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

.memorial-date .date-num {
    font-family: var(--font-serif);
    font-size: inherit;
    color: var(--white-petal);
    font-weight: 600;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-soft);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.25rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.page-header h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.page-header .subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 300;
}

/* Content Cards */
.content-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.03);
}

.content-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--cream);
}

.content-card p {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 0.92rem;
}

.content-card p:last-child { margin-bottom: 0; }

/* Timeline */
.timeline {
    position: relative;
    padding-inline-start: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-dark), var(--memorial-green), var(--accent-soft));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--bg-alt);
}

.timeline-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    inset-inline-start: -2.5rem;
    top: 0.3rem;
    width: 10px;
    height: 10px;
    background: var(--white-petal);
    border: 2px solid var(--memorial-green);
    border-radius: 50%;
    transform: translateX(-50%);
}

[dir="rtl"] .timeline-item::before { transform: translateX(50%); }

.timeline-item h4 {
    font-family: var(--font-serif);
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.timeline-item p {
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.85;
}

/* Route Box */
.route-box {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 2;
}

.route-box h4 {
    font-family: var(--font-serif);
    color: var(--accent-soft);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

/* Info List */
.info-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.65rem 0.9rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border-inline-start: 2px solid var(--memorial-green);
}

.info-list li::before {
    content: '✓';
    color: var(--memorial-green);
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* Committee Grid */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.committee-member {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem;
    text-align: center;
    border-top: 3px solid var(--memorial-green);
}

.member-role {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--primary-dark);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.committee-member h4 {
    font-family: var(--font-serif);
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.committee-member .org { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 0.35rem; }
.committee-member .phone { color: var(--memorial-green); font-size: 0.8rem; font-weight: 500; }

/* News Cards */
.news-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.75rem;
    margin-bottom: 1.25rem;
    border-inline-start: 3px solid var(--memorial-green);
}

.news-item h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Day Cards */
.day-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.day-number {
    background: var(--primary-dark);
    color: var(--white-petal);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.day-number .num { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1; font-weight: 600; }
.day-number small { font-size: 0.52rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; }

.day-content h3 { font-family: var(--font-serif); color: var(--primary-dark); font-size: 0.95rem; margin-bottom: 0.35rem; }
.day-content p { color: var(--text); font-size: 0.85rem; }

/* Links */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.65rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
    font-size: 0.85rem;
    color: var(--text);
}

.link-card:hover { transform: translateY(-1px); color: var(--memorial-green); }

.link-icon {
    width: 34px; height: 34px;
    background: var(--bg-alt);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #111;
}

.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.video-card-body { padding: 1rem 1.3rem; }
.video-card-body h3 { font-family: var(--font-serif); font-size: 0.95rem; color: var(--primary-dark); margin-bottom: 0.25rem; }
.video-card-body p { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.4);
    padding: 1.75rem 2rem 1.25rem;
    margin-top: 2rem;
    border-top: 2px solid var(--memorial-green);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-inner a { color: var(--accent-soft); }
.footer-inner a:hover { color: var(--white-petal); }
.footer-copy { font-size: 0.78rem; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.78rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-top { padding: 0.5rem 1rem; }
    .logo-text small { display: none; }
    .flower-svg { width: 38px; height: 38px; }
    .lang-switch-desktop { display: none; }
    .lang-switch-mobile { display: flex; }
    .nav-toggle { display: block; }
    .nav-list { display: none; flex-direction: column; }
    .nav-list.open { display: flex; }
    .nav-list a { border-bottom: none; border-inline-start: 2px solid transparent; }
    .nav-list a:hover, .nav-list a.active { border-inline-start-color: var(--accent-soft); border-bottom-color: transparent; }
    .memorial-banner { padding: 2rem 1.25rem 1.75rem; }
    .memorial-banner h2 { font-size: 1.5rem; }
    .memorial-flower-large { width: 60px; height: 60px; }
    .stats-bar { gap: 1.25rem; }
    .stat-num { font-size: 1.4rem; }
    .main-content { padding: 1.75rem 1rem; }
    .day-card { flex-direction: column; gap: 0.65rem; }
    .committee-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .memorial-banner h2 { font-size: 1.25rem; }
    .logo-text h1 { font-size: 1rem; }
}
