/* ─── FONTS (lokal, DSGVO-konform) ───────────────── */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/playfair-display-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/playfair-display-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg:        #0c1118;
    --bg2:       #141b24;
    --bg3:       #1c2632;
    --accent:    #c8a96e;
    --accent2:   #e8c98a;
    --text:      #e8e2d9;
    --text-muted:#8a8278;
    --border:    rgba(200,169,110,0.18);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: rgba(12,17,24,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: 0.04em;
}
.logo span { 
    font-style: italic; 
    color: #ffffff;
    margin-left: 2px;
}

nav ul {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}
nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s;
}
nav a:hover { color: var(--accent); }

/* ─── HERO ────────────────────────────────────── */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
    background-image: url('assets/images/wandmalerei.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 18, 0.72);
    pointer-events: none;
}

.hero-arch {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 350px 350px 0 0;
    pointer-events: none;
    opacity: 0.4;
}
.hero-arch::before {
    content:'';
    position: absolute;
    inset: 20px 20px 0 20px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 330px 330px 0 0;
}

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

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.35rem 1.1rem;
    margin-bottom: 1.5rem;
}

/* Der Wrapper, der Text und Logos in einer Reihe hält */
.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
}
h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 1.4rem 0 0.5rem;
    font-weight: 300;
}

.hero-actions { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-top: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.25s;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent);
    color: #0c1118;
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background: var(--accent2);
    border-color: var(--accent2);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ─── QUOTE BAND ──────────────────────────────── */
.quote-band {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
    text-align: center;
}
.quote-band blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}
.quote-band cite {
    display: block;
    margin-top: 1rem;
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ─── SECTIONS ────────────────────────────────── */
section.content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
h2 em { font-style: italic; color: var(--accent); }

.section-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.8;
}

/* ─── ÜBER UNS ────────────────────────────────── */
.ueber-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 680px) {
    .ueber-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.ueber-facts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
.fact-item {
    padding: 1.2rem 1.5rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}
.fact-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* opening hours box */
.hours-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem 2rem;
}
.hours-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}
.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: var(--text-muted); }
.hours-row .time { color: var(--text); font-weight: 500; }

.badge-open {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.9rem;
    background: rgba(200,169,110,0.12);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.08em;
}

/* ─── PROJEKTE ────────────────────────────────── */
#projekte { background: var(--bg2); }
#projekte section.content { max-width: 1080px; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(200,169,110,0.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
    color: var(--text);
}
.card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── STIMMEN ─────────────────────────────────── */
.quotes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}
@media (max-width: 600px) {
    .quotes-grid { grid-template-columns: 1fr; }
}
.quote-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem 2rem;
}
.quote-card p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.quote-card .author {
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─── KONTAKT ─────────────────────────────────── */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 680px) {
    .kontakt-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.kontakt-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}
.kontakt-detail {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.kontakt-detail a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.25s;
}
.kontakt-detail a:hover { color: var(--accent); }

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s;
    outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus {
    border-color: var(--accent);
}

textarea { resize: vertical; min-height: 140px; }

/* Honeypot: Text-Feld per CSS versteckt. Bots füllen es aus, echte Nutzer nicht. */
.hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

button[type=submit] {
    width: 100%;
    padding: 0.95rem;
    background: var(--accent);
    color: #0c1118;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s, opacity 0.25s;
}
button[type=submit]:hover { background: var(--accent2); }
button[type=submit]:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── KALENDER DROPDOWN ───────────────────────── */
.cal-wrap {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.cal-btn {
    background: var(--accent);
    color: #0c1118;
    border: none;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}
.cal-btn:hover { background: var(--accent2); }
.cal-btn:active { transform: scale(0.97); }

.cal-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}
.cal-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cal-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid var(--border);
}
.cal-option:last-child { border-bottom: none; }
.cal-option:hover {
    background: var(--bg3);
    color: var(--accent);
}
.cal-option svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.75;
}

/* ─── FORM FEEDBACK MESSAGES ──────────────────── */
.form-msg {
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.form-msg--success {
    background: rgba(100, 200, 120, 0.1);
    border: 1px solid rgba(100, 200, 120, 0.35);
    color: #7ecf8e;
}
.form-msg--error {
    background: rgba(220, 80, 80, 0.1);
    border: 1px solid rgba(220, 80, 80, 0.35);
    color: #e08080;
}

/* ─── FOOTER ──────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
    background: #080d12;
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}
footer p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.25s;
}
.footer-links a:hover { color: var(--accent); }

/* ─── HAMBURGER MOBILE ────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg2);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border);
    }
    nav ul.open { display: flex; }
}

/* Divider */
.divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem 0;
}

/* ─── EVENT CARDS ─────────────────────────────── */
.card-date {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}
.card-highlight {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg3) 0%, rgba(200,169,110,0.06) 100%);
    position: relative;
}
.card-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.9rem;
    background: var(--accent);
    color: #0c1118;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}
.time.tbd {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

/* ─── WIDE CARD ───────────────────────────────── */
.card-wide {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.card-wide .card-icon { flex-shrink: 0; }
.card-wide .card-body { flex: 1; }
.card-wide h3 { margin-bottom: 0.5rem; }

@media (max-width: 600px) {
    .card-wide { flex-direction: column; gap: 1rem; }
}

/* ─── LOGO OPTIMIERUNG ────────────────────────── */
.nav-logo-img {
    height: 32px;
    width: auto;
    margin-right: 0.6rem;
    vertical-align: middle;
    filter: invert(1) brightness(1.5);
    opacity: 1;
    transition: transform 0.3s ease;
}

.logo:hover .nav-logo-img {
    transform: rotate(-5deg) scale(1.1);
}

.hero-logo {
    width: 80px;
    height: auto;
    filter: invert(1) brightness(1.2) drop-shadow(0 0 8px rgba(200, 169, 110, 0.4));
    opacity: 0.95;
    flex-shrink: 0;
}

.hero-logo-right {
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    .hero-title-wrapper {
        gap: 1rem;
    }
    .hero-logo {
        width: 50px;
    }
}

/* ─── NAV RIGHT GROUP (lang + hamburger) ──────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ─── LANGUAGE SWITCHER ───────────────────────── */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
    white-space: nowrap;
}
.lang-switch:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(200,169,110,0.06);
}
.lang-flag {
    font-size: 0.9rem;
    line-height: 1;
}
.lang-label {
    font-size: 0.75rem;
}

/* ─── NAV RIGHT + LANGUAGE SWITCH ────────────────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 99px;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.lang-switch:hover {
    color: var(--accent);
    border-color: var(--border);
    background: rgba(200,169,110,0.07);
}
.lang-flag {
    font-size: 1rem;
    line-height: 1;
}
.lang-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* ─── NAV SCROLL-EFFEKT ───────────────────────── */
/* Klasse wird per JS gesetzt sobald gescrollt wird */
nav.scrolled {
    padding: 0.75rem 2.5rem;
    background: rgba(12,17,24,0.97);
    box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}

/* ─── NAV ACTIVE LINK ─────────────────────────── */
nav ul a.active {
    color: var(--accent);
    position: relative;
}
nav ul a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 1px;
    background: var(--accent);
    border-radius: 2px;
}

/* ─── HAMBURGER → X ANIMATION ─────────────────── */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── SCROLL INDICATOR ────────────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    animation: scrollBounce 2.2s ease-in-out infinite;
}
.scroll-indicator:hover { color: var(--accent); }
.scroll-indicator__text {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 0.6; }
}

/* ─── HERO TITLE GLOW ON HOVER ────────────────── */
h1 em {
    transition: text-shadow 0.4s ease;
}
h1:hover em {
    text-shadow: 0 0 40px rgba(200,169,110,0.45);
}

/* ─── STAGGERED CARD ANIMATION ────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease var(--delay, 0s), transform 0.7s ease var(--delay, 0s);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── CARD HOVER GLOW ─────────────────────────── */
.card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(200,169,110,0.1);
}
.card-highlight:hover {
    box-shadow: 0 12px 48px rgba(200,169,110,0.18);
}

/* ─── QUOTE BAND GOLD GRADIENT BORDER ─────────── */
.quote-band {
    position: relative;
    padding: 3.5rem 2rem;
    background: var(--bg2);
    text-align: center;
    border-top: none;
    border-bottom: none;
}
.quote-band::before,
.quote-band::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
    opacity: 0.4;
}
.quote-band::before { top: 0; }
.quote-band::after  { bottom: 0; }

/* ─── KONTAKT SECTION BACKGROUND ──────────────── */
#kontakt {
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200,169,110,0.05) 0%, transparent 70%),
                var(--bg);
}

/* ─── FOOTER GOLD TOPLINE ─────────────────────── */
footer {
    position: relative;
    border-top: none;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
    opacity: 0.35;
}

/* ─── FACT ITEMS HOVER ────────────────────────── */
.fact-item {
    transition: border-left-color 0.3s, background 0.3s, transform 0.25s;
}
.fact-item:hover {
    background: var(--bg3);
    transform: translateX(4px);
}

/* ─── TRANSITION BOX GLOW ─────────────────────── */
.transition-box {
    transition: box-shadow 0.3s;
}
.transition-box:hover {
    box-shadow: 0 8px 40px rgba(200,169,110,0.12);
}

/* ─── KONTAKT DETAIL ICONS ────────────────────── */
.kontakt-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.25s;
}
.kontakt-detail-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.8;
}
.kontakt-detail-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s;
}
.kontakt-detail-item:hover a,
.kontakt-detail-item a:hover { color: var(--accent); }

/* ─── SECTION TRENNLINIE GRADIENT ─────────────── */
#ueber {
    position: relative;
}
#ueber::after {
    content: '';
    position: absolute;
    bottom: 0; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}


/* ─── MITMACHEN SECTION ────────────────────────── */
#mitmachen {
    position: relative;
}
#mitmachen::after {
    content: '';
    position: absolute;
    bottom: 0; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.mitmach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Highlight Box */
.mitmach-box {
    background: linear-gradient(145deg, var(--surface) 0%, rgba(200,169,110,0.05) 100%);
    border: 1px solid rgba(200,169,110,0.28);
    border-radius: 16px;
    padding: 2rem 2rem 2.2rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(200,169,110,0.08);
    transition: box-shadow 0.3s;
}
.mitmach-box:hover {
    box-shadow: 0 12px 50px rgba(200,169,110,0.1), 0 0 0 1px rgba(200,169,110,0.15);
}

.mitmach-box-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Kein Beitrag */
.mitmach-kein-beitrag {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.mitmach-badge {
    display: inline-block;
    background: rgba(200,169,110,0.15);
    color: var(--accent);
    border: 1px solid rgba(200,169,110,0.3);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.mitmach-kein-beitrag p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Treffen */
.mitmach-treffen h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.mitmach-treffen p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Welcome */
.mitmach-welcome {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--accent);
    text-align: center;
    letter-spacing: 0.01em;
}

/* CTAs */
.mitmach-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mitmach-ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .mitmach-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .mitmach-box {
        position: static;
    }
}

/* ─── KRITISCH: Parallax auf Mobile deaktivieren ────────────────────────────
   background-attachment:fixed blockiert auf iOS/Android den Renderer komplett.
   Auf Mobile auf scroll umstellen → LCP von ~49s auf <3s.                    */
@media (max-width: 768px) {
    #home {
        background-attachment: scroll;
    }
}
