:root {
    --bg-body: #ffffff;
    --bg-section: #f1f5f9;
    --bg-card: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --text-main: #475569;
    --text-title: #0f172a;
    --primary: #0a58ca;
    --accent: #10b981;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.05);
    --radius-main: 40px;
}
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-section: #1e293b;
    --bg-card: #1e293b;
    --nav-bg: rgba(15, 23, 42, 0.9);
    --text-main: #94a3b8;
    --text-title: #f1f5f9;
    --primary: #38bdf8;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; transition: background-color 0.4s ease, color 0.4s ease; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-body); color: var(--text-main); line-height: 1.7; overflow-x: hidden; }

h1, h2, h3 { hyphens: auto; word-wrap: break-word; overflow-wrap: break-word; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

header { 
    background: var(--nav-bg); backdrop-filter: blur(12px); position: fixed; 
    width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--border);
}
.nav-inner { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 1rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
}
.logo { font-weight: 800; font-size: 1.3rem; color: var(--primary); text-decoration: none; letter-spacing: -1px; z-index: 1001; }

.nav-right { 
    display: flex; 
    align-items: center; 
    gap: 1em 2rem;
}
@media (min-width:992px) {
    .nav-right { 
        gap: 2rem;
    }
}
.menu-hidden { transform: translateY(-150%); opacity: 0; pointer-events: none; }
.nav-links a { text-decoration: none; color: var(--text-title); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-left: 1.5rem; white-space: nowrap; }

#theme-toggle {
    background: var(--bg-section); border: 1px solid var(--border); padding: 6px 14px; border-radius: 20px; 
    cursor: pointer; color: var(--text-title); font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 8px;

    margin-left: auto;
}

section { padding: 80px 2rem; max-width: 1200px; margin: 0 auto; }

/* HERO MIT RUNDUNG */
.hero { 
    padding: 180px 2rem; text-align: center; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; min-height: 80vh; position: relative;
}
@media (min-width:992px) { .hero {padding: 140px 2rem;} }


.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.05)), url('img/background.jpg');
    background-size: cover; background-position: center;
    opacity: 0.15; border-radius: var(--radius-main); z-index: 1;
}
.hero-content { position: relative; z-index: 10; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; color: var(--text-title); line-height: 1.05; margin-bottom: 2rem; letter-spacing: -0.04em; }

.btn-primary { 
    background: var(--primary); color: white; padding: 1.2rem 2.8rem; border-radius: 12px; 
    text-decoration: none; font-weight: 700; display: inline-block; font-size: 1.1rem; 
    box-shadow: 0 10px 20px rgba(10, 88, 202, 0.2); animation: pulse-primary 3s infinite;
    margin-top: 1em;
}
@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(10, 88, 202, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(10, 88, 202, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 88, 202, 0); }
}

.section-tag { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; display: block; margin-bottom: 1rem; text-align: center; }
.section-title { font-size: 2.2rem; color: var(--text-title); margin-bottom: 3.5rem; text-align: center; font-weight: 800; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; }

.logo-grid {
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}
.logo-grid img {
    flex: 1 1 33.333%;
    max-width: 200px;
    width: 33.33%;
    margin: 4%;
}

.card { padding: 3rem 2rem; border: 1px solid var(--border); border-radius: 24px; background: var(--bg-card); box-shadow: 0 10px 30px var(--shadow); position: relative; overflow: hidden;}
.card h3 { color: var(--text-title); margin-bottom: 1rem; font-weight: 700; position: relative; z-index: 10;}
.card li { margin-bottom: 0.8rem; display: flex; gap: 10px; font-size: 0.95rem; list-style: none; flex-wrap: wrap;}
.card li.no-wrap {flex-wrap: nowrap;}
@media (min-width:992px) { .card li {flex-wrap: nowrap;} }

.card li::before { content: "→"; color: var(--primary); font-weight: bold; }
.card-icon { position: absolute; bottom: -20px; right: -20px; font-size: 8rem; color: var(--primary); opacity: 0.05; z-index: 1; }


.about-container {
    background: var(--bg-section); border-radius: var(--radius-main);
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 4rem; 
    padding: 2rem; 
    align-items: center;
}

.about-container > div:first-child {
    order: 1;
    overflow-x: hidden;
}
@media (min-width:992px) {
    .about-container { 
        /* ABOUT LAYOUT 2/3 zu 1/3 */
        grid-template-columns: 2fr 1fr; 
        padding: 4rem; 
    }

    .about-container > div:first-child {
        order: 0;
    }
}
.about-image { 
    width: 100%;
    height: 100%; 
    min-height: 400px; 
    border-radius: 24px;
    
    order: 0;
}
@media (min-width:992px) {
    .about-image { 
        order: 1;
    }
}

.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--text-main); }

.ref-item { padding: 1.5rem; border-left: 3px solid var(--primary); background: var(--bg-section); border-radius: 0 12px 12px 0; }
.ref-item h4 { color: var(--text-title); margin-bottom: 0.5rem; font-weight: 700; }

.team-image-placeholder { width: 100px; height: 100px; background: var(--bg-section); border: 2px solid var(--border); border-radius: 50%; margin: 0 auto 1.5rem; overflow: hidden; }
.team-image-placeholder img { width: 100%; height: 100%; object-fit: cover; }

footer { background: var(--bg-section); padding: 80px 2rem; border-top: 1px solid var(--border); }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4rem; }
.footer-link { color: var(--primary); text-decoration: none; font-size: 0.85rem; cursor: pointer; background: none; border: none; font-weight: 600; margin-right: 15px; }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); overflow-y: auto;}
.modal-content { background: var(--bg-body); margin: 5% auto; padding: 3rem; width: 90%; max-width: 900px; border-radius: 24px; position: relative; border: 1px solid var(--border); }
.close-modal { position: absolute; top: 20px; right: 30px; font-size: 2rem; cursor: pointer; }

/* Erlaubt sanftes Schrumpfen des Headers */
.nav-inner { transition: padding 0.3s ease, gap 0.3s ease; }

@media (max-width: 992px) {
    /* Wenn die Klasse 'header-compact' aktiv ist: */
    header.header-compact .nav-inner {
        padding: 0.5rem 1rem; /* Weniger Platz oben/unten */
        gap: 0;
    }
    header.header-compact #nav-right-container {
        display: none; /* Versteckt die Links komplett */
    }
    header.header-compact .logo {
        font-size: 1.1rem; /* Logo wird dezent kleiner */
        margin: 0 auto;    /* Zentriert das Logo */
    }
}

.no-break {
    hyphens: none;
    word-break: keep-all;
}