/*
Theme Name: campusA Stuttgart
Theme URI: https://campusa-stuttgart.de
Description: Theme für den campusA Stuttgart — Netzwerk anthroposophischer Bildungseinrichtungen. Eigenständiges Theme mit Sektions-Baukasten für Tagungsseiten.
Version: 1.0.0
Author: campusA Stuttgart
Author URI: https://campusa-stuttgart.de
Text Domain: campusa
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   0. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Slate palette */
    --slate-950: #0c1220;
    --slate-900: #141d2f;
    --slate-800: #1e2a42;
    --slate-700: #2a3a58;
    --slate-600: #3d5077;
    --slate-400: #7b8fad;
    --slate-300: #a3b3cc;
    --slate-200: #c8d3e3;
    --slate-100: #e8ecf4;
    --slate-50: #f4f6fa;

    /* Accent */
    --amber-500: #d4913a;
    --amber-400: #e5a84d;
    --amber-300: #f0c06e;

    /* Backgrounds */
    --cream: #faf6f0;
    --warm-white: #fefcf9;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: clamp(3rem, 6vw, 5rem);
    --container-max: 1200px;
    --container-padding: clamp(1rem, 4vw, 2rem);
}

/* ==========================================================================
   1. 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-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate-900);
    background: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--amber-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--amber-400);
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: inherit;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
    margin-bottom: 1em;
}

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

/* ==========================================================================
   3. Layout / Container
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 18, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header .top-bar {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.35rem 0;
    font-size: 0.75rem;
    color: var(--slate-400);
    text-align: right;
}

.site-header .top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.site-header .top-bar a {
    color: var(--slate-400);
    transition: color 0.3s;
}

.site-header .top-bar a:hover {
    color: var(--amber-400);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
}

.site-logo span {
    color: var(--amber-400);
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--slate-200);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--amber-400);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-200);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   5. Sections — General
   ========================================================================== */

.section {
    padding: var(--section-padding) 0;
    background: var(--warm-white);
    color: var(--slate-900);
}

.section--dark {
    background: var(--slate-900);
    color: var(--slate-100);
}

.section--mid {
    background: var(--slate-800);
    color: var(--slate-100);
}

.section--cream {
    background: var(--cream);
    color: var(--slate-900);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber-500);
    margin-bottom: 0.75rem;
}

.section--dark .section-label,
.section--mid .section-label {
    color: var(--amber-400);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--amber-500);
    margin: 0 auto;
    border: none;
}

.section--dark .section-divider,
.section--mid .section-divider {
    background: var(--amber-400);
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */

.section-hero {
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    background: var(--slate-950);
    color: #fff;
    padding-top: 100px;
    padding-bottom: var(--section-padding);
}

.section-hero .hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

/* Geometric pattern overlay */
.section-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 145, 58, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 145, 58, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(212, 145, 58, 0.06) 0%, transparent 45%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.015) 40px,
            rgba(255, 255, 255, 0.015) 41px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.015) 40px,
            rgba(255, 255, 255, 0.015) 41px
        );
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
}

.section-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    animation: fadeUp 0.7s ease both;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(212, 145, 58, 0.15);
    border: 1px solid rgba(212, 145, 58, 0.4);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--amber-400);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-title em {
    font-style: italic;
    color: var(--amber-400);
    display: block;
    font-size: 0.7em;
    margin-top: 0.25em;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--slate-300);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--slate-400);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Year circle */
.hero-year-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: fadeUp 0.7s ease 0.2s both;
}

.hero-year-circle .year-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--amber-400);
    line-height: 1;
}

.hero-year-circle .year-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--slate-400);
    margin-top: 0.25rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   7. Gallery Section
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 400px));
    gap: 1rem;
    justify-content: center;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    max-width: 400px;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   8. Quote Section
   ========================================================================== */

.section-quote {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
    overflow: hidden;
}

.section-quote .quote-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
}

.section-quote blockquote {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.5;
    color: var(--slate-100);
}

.section-quote blockquote::before {
    content: '\201E';
    display: block;
    font-size: 4rem;
    color: var(--amber-400);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.section-quote cite {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.9rem;
    color: var(--amber-400);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   9. Text Columns
   ========================================================================== */

.text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
}

.text-columns p {
    color: inherit;
    line-height: 1.8;
}

/* ==========================================================================
   10. Speaker Cards
   ========================================================================== */

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.speaker-card {
    text-align: center;
    padding: 1.5rem 1rem;
    max-width: 240px;
    width: 100%;
    margin: 0 auto;
}

.speaker-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    overflow: hidden;
    border: 3px solid rgba(212, 145, 58, 0.2);
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-initial {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    border: 3px solid rgba(212, 145, 58, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-700);
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--amber-400);
}

.speaker-name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--slate-300);
    margin-bottom: 0.3rem;
}

.speaker-topic {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #fff;
}

/* ==========================================================================
   11. Resources Section
   ========================================================================== */

.resources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.resource-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--slate-200);
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-decoration: none;
}

.resource-btn:hover {
    background: rgba(212, 145, 58, 0.15);
    border-color: var(--amber-500);
    color: var(--amber-400);
}

.resource-btn .icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   12. Team Section
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
}

.team-group h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--amber-500);
    margin-bottom: 1rem;
}

.team-group p {
    line-height: 1.8;
}

/* ==========================================================================
   13. Partner / Sponsor Logo Grid
   ========================================================================== */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
    gap: 1.5rem;
    justify-content: center;
}

.partner-card {
    aspect-ratio: 1;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    max-width: 160px;
    width: 100%;
    margin: 0 auto;
}

/* Dark variant (partners on dark bg) */
.section--dark .partner-card,
.section--mid .partner-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section--dark .partner-card:hover,
.section--mid .partner-card:hover {
    transform: scale(1.05);
    border-color: var(--amber-500);
    background: rgba(255, 255, 255, 0.08);
}

/* Light variant (sponsors on cream bg) */
.section--cream .partner-card,
.section .partner-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section--cream .partner-card:hover,
.section .partner-card:hover {
    transform: scale(1.05);
    border-color: var(--amber-500);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.partner-card img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
}

.partner-card .partner-initial {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--slate-400);
    text-align: center;
    line-height: 1.3;
}

.section--dark .partner-card .partner-initial {
    color: var(--slate-300);
}

/* ==========================================================================
   14. About Section
   ========================================================================== */

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
}

.about-columns p {
    line-height: 1.8;
}

/* ==========================================================================
   15. Archive Section
   ========================================================================== */

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.archive-item {
    display: block;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: var(--slate-200);
    transition: all 0.3s ease;
    text-align: center;
}

.archive-item:hover {
    background: rgba(212, 145, 58, 0.1);
    border-color: var(--amber-500);
    color: var(--amber-400);
}

.archive-item .archive-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.site-footer {
    background: var(--slate-950);
    color: var(--slate-400);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--slate-100);
    margin-bottom: 1rem;
}

.footer-col p,
.footer-col li {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: var(--slate-400);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--amber-400);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-800);
    font-size: 0.8rem;
}

.footer-bottom .social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-bottom .social-links a {
    color: var(--slate-400);
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-bottom .social-links a:hover {
    color: var(--amber-400);
}

/* ==========================================================================
   17. Scroll Reveal
   ========================================================================== */

.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reusable entrance animation (plays on load, no JS needed) */
.fade-up {
    animation: fadeUp 0.7s ease both;
}

.fade-up-delay-1 { animation: fadeUp 0.7s ease 0.15s both; }
.fade-up-delay-2 { animation: fadeUp 0.7s ease 0.3s both; }
.fade-up-delay-3 { animation: fadeUp 0.7s ease 0.45s both; }

/* ==========================================================================
   18. Page Content (Standard pages)
   ========================================================================== */

.page-content {
    padding: calc(100px + var(--section-padding)) 0 var(--section-padding);
}

.page-content .entry-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    color: var(--slate-900);
}

.page-content .entry-content {
    max-width: 800px;
}

.page-content .entry-content p {
    margin-bottom: 1.5em;
}

/* ==========================================================================
   19. 404
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: calc(100px + 4rem) 0 4rem;
}

.error-404 h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--amber-500);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-404 h2 {
    margin-bottom: 1rem;
}

.error-404 a {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: var(--amber-500);
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s;
}

.error-404 a:hover {
    background: var(--amber-400);
    color: #fff;
}

/* ==========================================================================
   20. Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .section-hero .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-year-circle {
        width: 80px;
        height: 80px;
    }

    .hero-year-circle .year-number {
        font-size: 1.8rem;
    }

    .hero-year-circle .year-label {
        font-size: 0.5rem;
    }

    .text-columns,
    .team-grid,
    .about-columns {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--slate-950);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 1rem;
    }

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

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

    .top-bar {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .speakers-grid {
        grid-template-columns: 1fr;
    }

    .archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   21. Section Outer Wrapper (global bg image + overlay)
   ========================================================================== */

.section-outer {
    position: relative;
}

.section-outer.has-section-bg {
    background-size: cover;
    background-position: center;
}

/* Parallax — only on desktop, iOS doesn't support background-attachment:fixed */
@media (min-width: 769px) and (hover: hover) {
    .section-outer.parallax-section {
        background-attachment: fixed;
    }
}

.section-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--slate-950);
    pointer-events: none;
    z-index: 0;
}

.section-outer.has-section-bg > section,
.section-outer.has-section-bg > .section-quote {
    position: relative;
    z-index: 1;
}

/* BG color overrides via data attribute (applied by JS or CSS) */
.section-outer[data-bg-override="dark"] > section { background: var(--slate-900); }
.section-outer[data-bg-override="mid"] > section { background: var(--slate-800); }
.section-outer[data-bg-override="cream"] > section { background: var(--cream); }
.section-outer[data-bg-override="light"] > section { background: var(--warm-white); }

/* When there's a bg image, make inner section transparent */
.section-outer.has-section-bg > section {
    background: transparent !important;
}

/* ==========================================================================
   22. Spacing Utilities
   ========================================================================== */

.section-spacing-compact > section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.section-spacing-large > section { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.section-spacing-none > section { padding-top: 0; padding-bottom: 0; }

/* ==========================================================================
   23. Hero CTA Button
   ========================================================================== */

.hero-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: var(--amber-500);
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
}

.hero-cta:hover {
    background: var(--amber-400);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   24. Archive Cards (with thumbnails)
   ========================================================================== */

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

.archive-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--slate-200);
    transition: all 0.3s ease;
    padding: 1rem;
}

.archive-card:hover {
    color: var(--amber-400);
}

.archive-card-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
}

.archive-card:hover .archive-card-image {
    border-color: var(--amber-500);
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-card-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.3rem;
}

.archive-card-link {
    font-size: 0.8rem;
    color: var(--amber-400);
}

/* ==========================================================================
   25. Blog / Posts Layout
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
    gap: 1.5rem;
    justify-content: center;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, transform 0.3s;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.post-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 1.5rem;
}

.post-card-date {
    font-size: 0.75rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.post-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.post-card-title a {
    color: var(--slate-900);
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--amber-500);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.6;
}

/* Single post */
.single-post-header {
    padding-top: calc(80px + 3rem);
    padding-bottom: 2rem;
    background: var(--cream);
}

.single-post-header .entry-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.single-post-header .entry-meta {
    font-size: 0.85rem;
    color: var(--slate-400);
}

.single-post-content {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.single-post-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

/* ==========================================================================
   26. Quote Size Variants
   ========================================================================== */
.section-quote blockquote.quote-sm { font-size: clamp(1rem, 2vw, 1.3rem); }
.section-quote blockquote.quote-lg { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ==========================================================================
   27. Hero Size Variants
   ========================================================================== */
.hero-title-lg { font-size: clamp(2.8rem, 6vw, 4rem) !important; }
.hero-title-xl { font-size: clamp(3.5rem, 8vw, 5.5rem) !important; }

/* ==========================================================================
   28. Text Color Override
   ========================================================================== */
.section-outer[data-text-color="light"],
.section-outer[data-text-color="light"] section { color: var(--slate-100); }
.section-outer[data-text-color="light"] .section-label { color: var(--amber-400); }
.section-outer[data-text-color="light"] .section-title { color: var(--slate-100); }

.section-outer[data-text-color="dark"],
.section-outer[data-text-color="dark"] section { color: var(--slate-900); }
.section-outer[data-text-color="dark"] .section-label { color: var(--amber-500); }
.section-outer[data-text-color="dark"] .section-title { color: var(--slate-900); }

/* ==========================================================================
   29. Title Alignment
   ========================================================================== */
.section-outer[data-title-align="left"] .section-header { text-align: left; }
.section-outer[data-title-align="left"] .section-divider { margin: 0; }
.section-outer[data-title-align="right"] .section-header { text-align: right; }
.section-outer[data-title-align="right"] .section-divider { margin: 0 0 0 auto; }
.section-outer .section-divider-hidden { display: none; }

/* ==========================================================================
   30. Max Width Variants
   ========================================================================== */
.section-outer[data-max-width="wide"] .container { max-width: 1400px; }
.section-outer[data-max-width="full"] .container { max-width: 100%; padding: 0; }

/* ==========================================================================
   31. Animation Variants
   ========================================================================== */
.reveal-item-fade-left { opacity:0; transform:translateX(-30px); transition:opacity 0.6s ease, transform 0.6s ease; }
.reveal-item-fade-left.visible { opacity:1; transform:translateX(0); }
.reveal-item-zoom { opacity:0; transform:scale(0.9); transition:opacity 0.6s ease, transform 0.6s ease; }
.reveal-item-zoom.visible { opacity:1; transform:scale(1); }

/* ==========================================================================
   32. Lightbox
   ========================================================================== */
.campusa-lightbox { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.92); z-index:10000; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity 0.3s; pointer-events:none; }
.campusa-lightbox.active { opacity:1; pointer-events:auto; }
.campusa-lightbox img { max-width:90vw; max-height:90vh; object-fit:contain; border-radius:4px; cursor:default; }
.campusa-lightbox-close { position:absolute; top:20px; right:20px; background:none; border:none; color:#fff; font-size:2rem; cursor:pointer; z-index:10001; line-height:1; }
.campusa-lightbox-prev, .campusa-lightbox-next { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.1); border:none; color:#fff; font-size:2rem; padding:10px 16px; cursor:pointer; border-radius:4px; transition:background 0.2s; }
.campusa-lightbox-prev:hover, .campusa-lightbox-next:hover { background:rgba(255,255,255,0.25); }
.campusa-lightbox-prev { left:16px; }
.campusa-lightbox-next { right:16px; }

.gallery-item { cursor: pointer; }

/* ==========================================================================
   33. Back to Top
   ========================================================================== */
.back-to-top { position:fixed; bottom:24px; right:24px; width:44px; height:44px; border-radius:50%; background:var(--amber-500); color:#fff; border:none; font-size:1.2rem; cursor:pointer; display:flex; align-items:center; justify-content:center; opacity:0; transform:translateY(10px); transition:opacity 0.3s,transform 0.3s,background 0.3s,bottom 0.4s; z-index:9998; pointer-events:none; }
.back-to-top.visible { opacity:1; transform:translateY(0); pointer-events:auto; }
.back-to-top:hover { background:var(--amber-400); }
.consent-overlay.visible ~ .back-to-top, body.consent-visible .back-to-top { bottom:72px; }

/* ==========================================================================
   34. Rendered Markdown in sections
   ========================================================================== */
.md-content strong { font-weight: 600; }
.md-content em { font-style: italic; }
.md-content a { color: var(--amber-500); text-decoration: underline; }
.section--dark .md-content a,
.section--mid .md-content a { color: var(--amber-400); }

/* ==========================================================================
   35. Text Columns Ratio
   ========================================================================== */
.text-columns.ratio-60-40 { grid-template-columns: 3fr 2fr; }
.text-columns.ratio-40-60 { grid-template-columns: 2fr 3fr; }
.text-columns.ratio-70-30 { grid-template-columns: 7fr 3fr; }
.text-columns.ratio-30-70 { grid-template-columns: 3fr 7fr; }
.text-columns.cols-1 { grid-template-columns: 1fr; }
.text-columns.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ==========================================================================
   36. Posts Section
   ========================================================================== */
.posts-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,360px)); gap:1.5rem; justify-content:center; }

/* ==========================================================================
   37. Logo Accent
   ========================================================================== */
.site-logo .logo-accent { color: var(--amber-400); }

/* ==========================================================================
   38. Skip to Content
   ========================================================================== */
.skip-link { position:absolute; top:-40px; left:0; background:var(--amber-500); color:#fff; padding:8px 16px; z-index:10001; transition:top 0.2s; }
.skip-link:focus { top:0; }

/* ==========================================================================
   39. Focus Styles (Accessibility)
   ========================================================================== */
*:focus-visible {
    outline: 2px solid var(--amber-500);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--amber-500);
    outline-offset: 2px;
}

.main-nav a:focus-visible {
    outline-color: var(--amber-400);
    border-radius: 4px;
}

/* ==========================================================================
   40. Cookie Consent Manager (DSGVO / TDDDG konform)
   ========================================================================== */

/* Overlay */
.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}
.consent-overlay.visible { opacity: 1; pointer-events: auto; }

/* Banner / Dialog */
.consent-dialog {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    font-family: var(--font-body);
    color: var(--slate-900);
    -webkit-overflow-scrolling: touch;
}

.consent-dialog h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.consent-dialog p {
    font-size: 0.85rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.consent-dialog a {
    color: var(--amber-500);
    text-decoration: underline;
}

/* Category toggles */
.consent-categories {
    margin: 1.2rem 0;
}

.consent-category {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.consent-category:last-child { border-bottom: none; }

.consent-toggle-switch {
    position: relative;
    width: 40px; height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.consent-toggle-switch input {
    opacity: 0; width: 0; height: 0; position: absolute;
}

.consent-toggle-switch .slider {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.3s;
}

.consent-toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.consent-toggle-switch input:checked + .slider { background: var(--amber-500); }
.consent-toggle-switch input:checked + .slider::before { transform: translateX(18px); }
.consent-toggle-switch input:disabled + .slider { opacity: 0.6; cursor: default; }

.consent-cat-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    color: var(--slate-900);
}

.consent-cat-info p {
    font-size: 0.78rem;
    color: var(--slate-400);
    margin: 0;
    line-height: 1.4;
}

/* Buttons — DSGVO: gleich gewichtet! */
.consent-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.consent-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
    font-family: var(--font-body);
}

/* Beide Hauptbuttons gleich gestaltet (DSGVO Dark Pattern Vermeidung) */
.consent-btn-accept {
    background: var(--slate-900);
    color: #fff;
}

.consent-btn-accept:hover { background: var(--slate-700); }

.consent-btn-reject {
    background: var(--slate-900);
    color: #fff;
}

.consent-btn-reject:hover { background: var(--slate-700); }

.consent-btn-save {
    background: var(--amber-500);
    color: #fff;
}

.consent-btn-save:hover { background: var(--amber-400); }

.consent-btn-settings {
    background: none;
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
    font-size: 0.8rem;
}

.consent-btn-settings:hover { background: var(--slate-50); }

/* Footer reopen link */
.consent-reopen {
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .consent-dialog {
        padding: 1.25rem;
        border-radius: 12px;
        max-height: 80vh;
    }
    .consent-dialog h3 { font-size: 1.2rem; }
    .consent-dialog p { font-size: 0.8rem; }
    .consent-buttons { flex-direction: column; }
    .consent-btn { padding: 0.8rem 1rem; font-size: 0.9rem; }
    .consent-category { flex-direction: row; }
}

/* Partner card size cap for logo variants */
.partner-card-sm { max-width: 100px; max-height: 100px; }
.partner-card-lg { max-width: 200px; max-height: 200px; }

/* ==========================================================================
   41. Dark Mode (folgt System-Einstellung, kein Toggle)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --cream: #1a1a2e;
        --warm-white: #141422;
    }

    body {
        background: #141422;
        color: #e8ecf4;
    }

    .section { background: #141422; color: #e8ecf4; }
    .section--cream { background: #1a1a2e; color: #e8ecf4; }
    .section--dark { background: #0c1220; }
    .section--mid { background: #141830; }

    /* Hero: weniger Overlay im Dark Mode, Bilder sollen sichtbar bleiben */
    .section-hero { background: #0c1220; }
    .section-bg-overlay { opacity: 0.3 !important; }
    .hero-bg { opacity: 0.5 !important; }

    .post-card { background: #1a1a2e; }
    .post-card-title a { color: #e8ecf4; }
    .post-card-excerpt { color: #a3b3cc; }
    .page-content { color: #e8ecf4; }
    .page-content .entry-title { color: #e8ecf4; }

    .site-footer { background: #0a0a16; }
    .consent-dialog { background: #1e1e32; color: #e8ecf4; }
    .consent-cat-info h4 { color: #e8ecf4; }
    .consent-cat-info p { color: #a3b3cc; }
    .consent-category { border-color: rgba(255,255,255,0.08); }
    .consent-btn-reject, .consent-btn-accept { background: #2a2a44; color: #e8ecf4; }
    .consent-btn-reject:hover, .consent-btn-accept:hover { background: #3a3a55; }
    .consent-btn-settings { color: #a3b3cc; border-color: rgba(255,255,255,0.15); }

    .donate-card { background: #1e1e32; border-color: rgba(255,255,255,0.08); }

    /* Gallery/Partner cards */
    .section--cream .partner-card,
    .section .partner-card { background: #1e1e32; border-color: rgba(255,255,255,0.08); box-shadow: none; }
    .gallery-item { border-color: rgba(255,255,255,0.08); }

    .single-post-header { background: #1a1a2e; }

    /* Header bleibt dunkel in beiden Modi */
    .site-header { background: rgba(10, 10, 22, 0.95); }
}

/* ==========================================================================
   42. Donate Card
   ========================================================================== */
.donate-card {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: left;
    font-size: 0.9rem;
}

.donate-card p {
    margin-bottom: 0.5rem;
}

.donate-card strong {
    color: var(--amber-500);
}

/* Social link SVGs in footer */
.footer-col .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.footer-col .social-links a {
    color: var(--slate-400);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-col .social-links a:hover {
    color: var(--amber-400);
}

.footer-col .social-links svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   iOS Safe Area + Consent Fix
   ========================================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .consent-overlay {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Force consent dialog to render properly on all mobile browsers */
.consent-overlay {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: opacity;
}

.consent-dialog {
    position: relative;
    z-index: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Ensure buttons always have solid background */
.consent-btn-accept,
.consent-btn-reject {
    background: var(--slate-900, #141d2f) !important;
    color: #fff !important;
    -webkit-appearance: none;
    appearance: none;
}

.consent-btn-save {
    background: var(--amber-500, #d4913a) !important;
    color: #fff !important;
    -webkit-appearance: none;
    appearance: none;
}

.consent-btn-settings {
    -webkit-appearance: none;
    appearance: none;
}
