/*
Theme Name:  HVV St. Ingbert
Theme URI:   https://hvv-igb.de
Description: Heimat- und Verkehrsverein St. Ingbert e.V. – offizielles WordPress-Theme
Version:     2.0.0
Author:      Agentur
Text Domain: hvv-igb
Requires PHP: 8.0
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --gruen:        #1B5E20;
    --gruen-mittel: #2E7D32;
    --gruen-dunkel: #0D3316;
    --gruen-hell:   #EEF5EE;
    --gold:         #A67C00;
    --gold-warm:    #C8960C;
    --gold-hell:    #FDF6E3;
    --creme:        #FAF8F4;
    --sandstein:    #F2EDE6;
    --weiss:        #FFFFFF;
    --dunkel:       #1C1C1A;
    --text:         #3A3A38;
    --text-hell:    #6E6E6A;
    --rand:         #E2DAD0;
    --schatten:     rgba(27, 94, 32, 0.10);
    --radius:       12px;
    --radius-lg:    20px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--weiss);
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    color: var(--dunkel);
    line-height: 1.2;
    font-weight: 700;
}
h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--dunkel);
    font-weight: 600;
    line-height: 1.35;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }

a { color: var(--gruen); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gruen-mittel); }

img { max-width: 100%; height: auto; display: block; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.section      { padding: 88px 0; }
.section-sm   { padding: 56px 0; }
.bg-creme     { background: var(--creme); }
.bg-sandstein { background: var(--sandstein); }
.bg-white     { background: var(--weiss); }
.bg-gruen     { background: var(--gruen); color: white; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-title { margin-bottom: 10px; }
.section-sub {
    color: var(--text-hell);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 640px;
}
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
}
.section-header h2 { margin-bottom: 0; }

.link-mehr {
    font-size: 14px;
    font-weight: 500;
    color: var(--gruen);
    white-space: nowrap;
    letter-spacing: .02em;
}
.link-mehr:hover { color: var(--gold-warm); }

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-warm);
    margin-bottom: 16px;
    display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: .03em;
    cursor: pointer;
    transition: all .22s ease;
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: var(--gruen);
    color: white;
    border-color: var(--gruen);
}
.btn-primary:hover {
    background: var(--gruen-mittel);
    border-color: var(--gruen-mittel);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27,94,32,.25);
}
.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: white;
    color: white;
}
.btn-gruen {
    background: var(--gruen);
    color: white;
    border-color: var(--gruen);
}
.btn-gruen:hover {
    background: var(--gruen-mittel);
    border-color: var(--gruen-mittel);
    color: white;
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--gruen);
    border-color: var(--gruen);
}
.btn-ghost:hover {
    background: var(--gruen);
    color: white;
}
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ============================================================
   SITE HEADER & NAV
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rand);
    height: 72px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo--image {
    gap: 0;
}
.site-logo--image img,
.site-logo--image .custom-logo {
    height: 52px;
    width: auto;
    max-width: 320px;
    display: block;
    filter: brightness(0) invert(1);
    transition: opacity .2s;
}
.site-logo--image:hover img,
.site-logo--image:hover .custom-logo {
    opacity: .85;
}
.logo-badge {
    width: 44px;
    height: 44px;
    background: var(--gruen);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.5px;
    flex-shrink: 0;
}
.logo-text-main {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dunkel);
    line-height: 1.1;
    display: block;
}
.logo-text-sub {
    font-size: 11px;
    color: var(--text-hell);
    font-weight: 400;
    letter-spacing: .02em;
    display: block;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.primary-nav ul li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all .18s;
    text-decoration: none;
    display: block;
}
.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a {
    color: var(--gruen);
    background: var(--gruen-hell);
}

/* Dropdown */
.primary-nav ul li { position: relative; }
.primary-nav ul li ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    min-width: 200px;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--rand);
    z-index: 100;
}
.primary-nav ul li:hover > ul { display: flex; }
.primary-nav ul li ul li a { border-radius: 6px; padding: 8px 12px; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--dunkel);
}
.menu-toggle:hover { background: var(--gruen-hell); }
.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--gruen-dunkel);
    color: white;
    padding: 100px 0 0;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(46,125,50,.35) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold-warm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--gold-warm);
    border-radius: 2px;
}
.hero h1 {
    color: white;
    margin-bottom: 24px;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}
.hero h1 em {
    font-style: italic;
    color: var(--gold-warm);
}
.hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-emblem {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 40px;
}
.hero-emblem-year {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.hero-emblem-text {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    line-height: 1.5;
}
.hero-emblem-divider {
    width: 40px;
    height: 1px;
    background: var(--gold-warm);
    margin: 4px auto;
}
.hero-wave { display: block; width: 100%; position: relative; z-index: 1; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--gold-warm);
    padding: 0;
}
.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat {
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat:last-child { border-right: none; }
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
}

/* ============================================================
   EVENT CARDS
   ============================================================ */
.event-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--schatten);
    border: 1px solid var(--rand);
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px var(--schatten);
}
.event-card-stripe { height: 4px; flex-shrink: 0; }
.event-card-body   { padding: 24px; flex: 1; }
.event-card-body h3 { font-size: 1.05rem; margin: 10px 0 10px; color: var(--dunkel); }
.event-card-body p  { font-size: 14px; color: var(--text-hell); line-height: 1.6; }
.event-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--rand);
    display: flex;
    justify-content: flex-end;
}
.event-card-footer a { font-size: 13px; font-weight: 600; color: var(--gruen); letter-spacing: .02em; }
.event-card-footer a:hover { color: var(--gold-warm); }

.event-meta     { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.event-meta-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-hell); }
.meta-icon      { font-size: 14px; flex-shrink: 0; }

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}
.tag-stadtfuehrung { background: #E8F5E9; color: #1B5E20; }
.tag-konzert       { background: var(--gold-hell); color: #7A5800; }
.tag-vortrag       { background: #E3F2FD; color: #0D47A1; }
.tag-wanderung     { background: #E8F5E9; color: #1B5E20; }
.tag-sonstiges     { background: #F3F3F3; color: #555; }

/* ============================================================
   PAGE HERO (Unterseiten)
   ============================================================ */
.page-hero {
    background: var(--gruen-dunkel);
    color: white;
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(46,125,50,.2);
    pointer-events: none;
}
.page-hero h1 { color: white; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 12px; }
.breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-warm); }
.breadcrumb-sep { opacity: .4; }

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--rand);
    transition: transform .22s ease, box-shadow .22s ease;
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gruen);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px var(--schatten); }
.project-card:hover::before { transform: scaleX(1); }
.project-card h3    { font-size: 1.1rem; margin-bottom: 10px; }
.project-card p     { font-size: 14px; color: var(--text-hell); line-height: 1.65; }
.project-icon       { font-size: 32px; margin-bottom: 16px; }

/* ============================================================
   VERANSTALTUNGEN LISTE
   ============================================================ */
.event-list-item {
    display: flex;
    gap: 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--rand);
    margin-bottom: 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.event-list-item:hover { transform: translateX(4px); box-shadow: 0 4px 20px var(--schatten); }
.event-stripe { width: 5px; flex-shrink: 0; }
.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    min-width: 90px;
    border-right: 1px solid var(--rand);
    background: var(--creme);
    flex-shrink: 0;
    text-align: center;
}
.date-day   { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gruen); line-height: 1; }
.date-month { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-hell); font-weight: 600; margin-top: 2px; }
.event-list-body     { padding: 20px 24px; flex: 1; }
.event-list-body h3  { font-size: 1.05rem; margin: 8px 0 8px; color: var(--dunkel); }
.event-list-body p   { font-size: 14px; color: var(--text-hell); margin: 0 0 12px; }
.event-details-row   { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-hell); }
.event-detail        { display: flex; align-items: center; gap: 5px; }
.event-list-cta      { display: flex; align-items: center; padding: 20px 24px; flex-shrink: 0; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 24px 0 36px; }
.filter-bar a {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    color: var(--text);
    border: 1px solid var(--rand);
    transition: all .18s;
    text-decoration: none;
}
.filter-bar a:hover  { border-color: var(--gruen); color: var(--gruen); }
.filter-bar a.aktiv  { background: var(--gruen); color: white; border-color: var(--gruen); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.kontakt-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.form-group   { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dunkel);
    margin-bottom: 7px;
    letter-spacing: .02em;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--rand);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--dunkel);
    background: white;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gruen);
    box-shadow: 0 0 0 3px rgba(27,94,32,.1);
}
.form-group textarea { height: 160px; resize: vertical; }
.dsgvo-note { font-size: 12px; color: var(--text-hell); margin-bottom: 20px; line-height: 1.5; }

.contact-infobox {
    background: var(--gruen);
    color: white;
    border-radius: var(--radius-lg);
    padding: 36px;
}
.contact-infobox h3       { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.contact-info-row         { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; color: rgba(255,255,255,.85); align-items: flex-start; }
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-icon        { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.alert         { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 28px; font-size: 14px; display: flex; align-items: center; gap: 12px; }
.alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.alert-error   { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }

/* ============================================================
   SINGLE VERANSTALTUNG
   ============================================================ */
.single-event-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.event-sidebar {
    background: var(--creme);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--rand);
    position: sticky;
    top: 96px;
}
.event-sidebar h3  { font-size: 1rem; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rand); }
.sidebar-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--rand);
    font-size: 14px;
}
.sidebar-row:last-child { border-bottom: none; }
.sidebar-icon  { font-size: 15px; }
.sidebar-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-hell); font-weight: 600; display: block; margin-bottom: 2px; }
.sidebar-val   { color: var(--dunkel); font-weight: 500; }
.anmeldung-box { background: var(--gold-hell); border: 1px solid #E0C97F; border-radius: var(--radius); padding: 16px; margin-top: 20px; font-size: 13px; color: #7A5800; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content         { max-width: 760px; }
.page-content h2      { font-size: 1.9rem; margin: 2rem 0 1rem; }
.page-content h3      { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
.page-content p       { color: var(--text); line-height: 1.8; margin-bottom: 1.1rem; }
.page-content ul,
.page-content ol      { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.page-content li      { margin-bottom: .4rem; }
.page-content img     { border-radius: var(--radius); margin: 1.5rem 0; }

/* ============================================================
   WILLKOMMEN & CHRONIK
   ============================================================ */
.willkommen-section { background: var(--weiss); }

.willkommen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.willkommen-text h2 { margin-bottom: 20px; }
.willkommen-text p  { color: var(--text-hell); line-height: 1.8; margin-bottom: 16px; }

.willkommen-zitat {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gruen);
    border-left: 3px solid var(--gold-warm);
    padding-left: 16px;
    margin: 28px 0 32px;
    line-height: 1.5;
}

.chronik-timeline { display: flex; flex-direction: column; gap: 0; }
.chronik-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--rand);
    align-items: start;
    position: relative;
}
.chronik-item:first-child { padding-top: 0; }
.chronik-item:last-child  { border-bottom: none; }
.chronik-jahr {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-warm);
    line-height: 1;
    padding-top: 2px;
}
.chronik-inhalt strong { font-size: 14px; font-weight: 600; color: var(--dunkel); display: block; margin-bottom: 4px; }
.chronik-inhalt p      { font-size: 13px; color: var(--text-hell); line-height: 1.6; margin: 0; }

/* Wave divider */
.wave-divider { line-height: 0; margin-bottom: -1px; }
.wave-divider svg { width: 100%; display: block; }

/* Historisch Banner */
.historisch-banner {
    background: var(--gold-hell);
    border-top: 1px solid #E8D98A;
    border-bottom: 1px solid #E8D98A;
    padding: 20px 0;
}
.historisch-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.historisch-icon  { font-size: 28px; flex-shrink: 0; }
.historisch-inner > div { flex: 1; min-width: 200px; }
.historisch-inner strong { display: block; font-size: 14px; font-weight: 600; color: var(--dunkel); margin-bottom: 2px; }
.historisch-inner p      { font-size: 13px; color: var(--text-hell); margin: 0; }

.btn-ghost-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-ghost-gold:hover { background: var(--gold-warm); color: white; border-color: var(--gold-warm); }

/* Stadtführungen Teaser */
.sf-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.sf-text { font-size: 16px; color: var(--text-hell); line-height: 1.8; margin-bottom: 28px; }
.sf-zahlen {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: var(--radius-lg);
    padding: 8px 0;
    border: 1px solid var(--rand);
    box-shadow: 0 4px 20px var(--schatten);
}
.sf-zahl-item  { text-align: center; padding: 28px 32px; }
.sf-zahl {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gruen);
    line-height: 1;
}
.sf-zahl-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-hell); font-weight: 600; margin-top: 6px; }
.sf-zahl-divider { height: 1px; background: var(--rand); margin: 0 32px; }

/* Events leer */
.events-leer {
    text-align: center;
    padding: 48px;
    background: white;
    border-radius: var(--radius);
    border: 1px dashed var(--rand);
    color: var(--text-hell);
}
.events-leer p { margin-bottom: 16px; }

/* CTA eyebrow */
.cta-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold-warm);
    margin-bottom: 12px;
    display: block;
}

/* Responsive */
@media (max-width: 960px) {
    .willkommen-grid  { grid-template-columns: 1fr; gap: 40px; }
    .sf-teaser-grid   { grid-template-columns: 1fr; gap: 40px; }
    .sf-zahlen        { flex-direction: row; padding: 0 8px; }
    .sf-zahl-item     { flex: 1; padding: 20px 16px; }
    .sf-zahl-divider  { width: 1px; height: auto; margin: 16px 0; }
}
@media (max-width: 700px) {
    .historisch-inner { flex-direction: column; text-align: center; }
    .sf-zahlen        { flex-direction: column; }
    .sf-zahl-divider  { width: auto; height: 1px; margin: 0 32px; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--gruen-dunkel) 0%, var(--gruen) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(200,150,12,.15) 0%, transparent 60%);
    pointer-events: none;
}
.cta-banner h2 { color: white; margin-bottom: 14px; }
.cta-banner p  { color: rgba(255,255,255,.75); margin-bottom: 32px; font-size: 17px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--gruen-dunkel);
    color: rgba(255,255,255,.75);
    padding: 72px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
}
.footer-brand .logo-text-main { color: white; }
.footer-brand .logo-text-sub  { color: rgba(255,255,255,.45); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; margin-top: 16px; max-width: 220px; }
.footer-col h4 {
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col ul         { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a    { font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .18s; }
.footer-col ul li a:hover { color: var(--gold-warm); }
.footer-contact-line   { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.footer-contact-line:last-child { margin-bottom: 0; }
.footer-contact-icon   { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,.35);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a         { color: rgba(255,255,255,.45); transition: color .18s; }
.footer-bottom a:hover   { color: var(--gold-warm); }
.footer-bottom-links     { display: flex; gap: 20px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--rand);
    background: white;
    color: var(--text);
    transition: all .18s;
    text-decoration: none;
}
.pagination a:hover  { border-color: var(--gruen); color: var(--gruen); }
.pagination .current { background: var(--gruen); color: white; border-color: var(--gruen); }

/* ============================================================
   404
   ============================================================ */
.page-404      { text-align: center; padding: 80px 0; }
.page-404 .code {
    font-family: 'Playfair Display', serif;
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 700;
    color: var(--gruen-hell);
    line-height: 1;
    margin-bottom: 8px;
    user-select: none;
}
.page-404 h1 { margin-bottom: 12px; }
.page-404 p  { color: var(--text-hell); margin-bottom: 36px; }
.page-404 .btn + .btn { margin-left: 12px; }

/* ============================================================
   RESPONSIVE – TABLET (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
    .section { padding: 64px 0; }

    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-eyebrow { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }

    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
    .stat:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,.2); }
    .stat:nth-last-child(-n+2) { border-bottom: none; }

    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .kontakt-grid { grid-template-columns: 1fr; }
    .single-event-grid { grid-template-columns: 1fr; }
    .event-sidebar { position: static; }
}

/* ============================================================
   RESPONSIVE – MOBILE (≤ 700px)
   ============================================================ */
@media (max-width: 700px) {
    .section { padding: 48px 0; }

    .menu-toggle { display: flex; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: white;
        border-bottom: 1px solid var(--rand);
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
        z-index: 400;
    }
    .primary-nav.open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 2px; }
    .primary-nav ul li ul {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        border-radius: 0;
    }

    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }

    .event-list-item { flex-wrap: wrap; }
    .event-date-badge { min-width: auto; padding: 12px 16px; }
    .event-list-cta { width: 100%; padding: 12px 16px; border-top: 1px solid var(--rand); }

    .section-header { flex-direction: column; gap: 4px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }

    .hero { padding: 64px 0 0; }
}
