/* --- style.css (FINAL: YELLOW HEADER & STICKY FIX) --- */

:root {
    /* --- FARBPALETTE --- */
    --c-primary: #C9237A;    /* Magenta */
    --c-complement: #00695C; /* Deep Teal */
    --c-accent: #FFD600;     /* Sunshine (Das Gelb!) */
    
    --c-bg: #F8F9FA;         /* Hintergrund Seite */
    --c-white: #FFFFFF;      
    --c-black: #000000;      
    
    --border-width: 3px;
    --shadow-dist: 5px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--c-bg);
    color: var(--c-black);
    line-height: 1.6;
    overflow-x: hidden; 
    width: 100%;
}

/* --- UTILITY KLASSEN --- */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-auto { margin-top: auto; }
.op-60 { opacity: 0.6; }
.op-80 { opacity: 0.8; }
.fs-09 { font-size: 0.9rem; }
.fs-11 { font-size: 1.1rem; }
.fw-bold { font-weight: bold; }
.block { display: block; }
.normal-style { font-style: normal; }

/* --- ACCESSIBILITY --- */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- TYPOGRAFIE --- */
h1, h2, h3, .big-number, summary, label, input, textarea, button {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--c-black);
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }

/* --- FOCUS STATES --- */
:focus-visible {
    outline: 4px solid var(--c-black);
    outline-offset: 4px;
    z-index: 10;
}

/* --- CONTAINER --- */
.container {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
    width: 100%;
}

/* --- NAVIGATION --- */
nav {
    /* 1. Sticky Positionierung */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    
    /* 2. Layering & Farbe */
    z-index: 1000;
    width: 100%;
    
    /* HIER IST DAS GELB (#FFD600) */
    background: var(--c-accent); 
    
    padding: 15px 0;
}

/* Die schwarze Linie unten (Ebene 1) */
nav::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px; 
    background-color: var(--c-black);
    /* Liegt ÜBER dem gelben Hintergrund (z-index auto), aber UNTER dem Inhalt (z-index 10) */
    z-index: 1; 
}

/* Der Nav-Inhalt (Logo/Links) auf Ebene 10 (höher als die Linie) */
nav .container {
    position: relative;
    z-index: 10; 
}

.nav-wrapper {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.logo {
    font-weight: 700; font-size: 1.5rem; text-transform: uppercase;
    border: var(--border-width) solid var(--c-black);
    padding: 8px 16px; background: var(--c-white);
    /* Harter Schatten */
    box-shadow: var(--shadow-dist) var(--shadow-dist) 0 0 var(--c-black); 
    text-decoration: none; color: var(--c-black); display: inline-block;
}

.nav-links {
    display: flex; gap: 30px; list-style: none; align-items: center; margin: 0; padding: 0;
}
.nav-links a {
    text-decoration: none; color: var(--c-black); font-weight: 600; font-size: 1.1rem;
    border-bottom: 3px solid transparent; transition: all 0.2s;
}
/* Hover Effekt Navigation Links */
.nav-links a:hover { border-bottom-color: var(--c-primary); }

.nav-cta {
    background: var(--c-primary); color: var(--c-white) !important;
    padding: 8px 16px; border: 3px solid var(--c-black);
    box-shadow: 4px 4px 0 var(--c-black);
}
.nav-cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--c-black); border-bottom: 3px solid var(--c-black) !important; }

/* Mobile Controls */
.menu-toggle-input { display: none; }
.menu-toggle-label { display: none; }


/* --- HERO --- */
.hero {
    padding: 80px 0; 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 60px; 
    align-items: center;
}
.hero h1 { font-size: 4rem; line-height: 1; margin-bottom: 30px; }
.hero h1 span {
    background-color: var(--c-accent); padding: 0 10px;
    color: var(--c-black); box-shadow: 4px 4px 0 var(--c-black);
}
.btn-primary {
    display: inline-block; background: var(--c-primary); color: var(--c-white);
    padding: 16px 32px; font-weight: 700; text-transform: uppercase; text-decoration: none;
    border: var(--border-width) solid var(--c-black);
    box-shadow: var(--shadow-dist) var(--shadow-dist) 0 0 var(--c-black);
    transition: all 0.1s; cursor: pointer;
}
.btn-primary:hover {
    transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 var(--c-black); background-color: #a61b63;
}
.hero-visual {
    width: 100%; height: 350px; background-color: var(--c-white);
    border: var(--border-width) solid var(--c-black);
    box-shadow: 10px 10px 0 var(--c-black);
    background-image: radial-gradient(var(--c-primary) 3px, transparent 3px);
    background-size: 24px 24px; position: relative;
}

/* --- BENTO GRID --- */
.bento-section { padding: 60px 0; }
.bento-header { margin-bottom: 50px; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 24px;
}

.bento-card {
    background: var(--c-white);
    padding: 30px;
    border: var(--border-width) solid var(--c-black);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-dist) var(--shadow-dist) 0 0 var(--c-black);
    transition: transform 0.2s;
    height: 100%;
}
.bento-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--c-primary); }

.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; background: var(--c-black); color: var(--c-white); }
.tall { grid-row: span 2; background: var(--c-complement); color: var(--c-white); }

.big-number {
    font-size: 5rem; opacity: 0.1; position: absolute;
    top: -15px; right: 10px; line-height: 1; color: var(--c-black);
}
.tall .big-number { opacity: 0.2; color: var(--c-white); }
.span-4 .big-number { color: var(--c-primary); opacity: 1; font-size: 2rem; top: 30px; right: 30px; }

.bento-card h3 { font-size: 1.4rem; margin-bottom: 12px; z-index: 2; position: relative; }
.bento-card p { font-size: 0.95rem; opacity: 0.9; z-index: 2; line-height: 1.5; position: relative; }

.tag {
    display: inline-block; padding: 4px 10px; background: var(--c-white);
    border: 2px solid var(--c-black); color: var(--c-black); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; width: fit-content;
}
.tall .tag, .span-4 .tag { background: var(--c-primary); color: var(--c-white); border-color: var(--c-white); }
.span-4 h3, .span-4 p { color: white; }
.stars { font-size: 3rem; color: var(--c-accent); text-shadow: 2px 2px 0 #000; }

/* --- REVIEW BOX --- */
.review-section { padding: 40px 0; }
.review-box {
    background: var(--c-accent); color: var(--c-black);
    border: var(--border-width) solid var(--c-black); padding: 40px;
    box-shadow: 8px 8px 0 var(--c-black); display: block; 
}
.review-box blockquote { margin: 0; padding: 0; border: none; }
.review-quote { 
    font-family: 'Space Grotesk', serif; font-size: 1.3rem; 
    font-style: italic; margin-bottom: 20px; font-weight: 600; color: var(--c-black);
}
.review-author { 
    display: flex; align-items: center; gap: 15px; 
    margin-top: 20px; background: transparent; padding: 0; border: none; width: fit-content;
}
.review-avatar {
    width: 50px; height: 50px; background: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-white); font-weight: bold; 
    border: 2px solid var(--c-black); border-radius: 50%; flex-shrink: 0;
}

/* --- TEAM --- */
.team-section { padding: 80px 0; border-top: 3px solid var(--c-black); }
.team-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.profile-card {
    display: flex; gap: 30px; background: var(--c-white); padding: 30px;
    border: 3px solid var(--c-black); box-shadow: var(--shadow-dist) var(--shadow-dist) 0 var(--c-black);
    transition: all 0.2s;
}
.profile-card:hover { box-shadow: 10px 10px 0 var(--c-primary); transform: translate(-3px, -3px); }
.profile-img {
    width: 130px; height: 130px; flex-shrink: 0; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--c-black); filter: grayscale(100%); transition: all 0.3s;
}
.profile-card:hover .profile-img { filter: grayscale(0%); border-color: var(--c-primary); }
.role { 
    color: var(--c-white); font-weight: 700; text-transform: uppercase; font-size: 0.75rem;
    background: var(--c-primary); padding: 4px 8px; border: 2px solid var(--c-black);
    box-shadow: 2px 2px 0 var(--c-black); display: inline-block; margin-bottom: 8px;
}

/* --- FAQ --- */
.faq-section { padding: 80px 0; max-width: 800px; margin: 0 auto; }
details {
    background: var(--c-white); margin-bottom: 15px; border: 3px solid var(--c-black);
    box-shadow: 4px 4px 0 var(--c-black); 
}
details[open] { box-shadow: 8px 8px 0 var(--c-primary); transform: translate(-2px, -2px); }
summary { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 700; }
summary::after { content: '+'; font-size: 1.5rem; }
details[open] summary::after { content: '-'; color: var(--c-primary); }
.faq-answer { padding: 20px; border-top: 3px solid var(--c-black); background: #fff0f7; }

/* --- FOOTER --- */
footer.main-footer {
    border-top: 3px solid var(--c-black); margin-top: 60px;
    background: var(--c-black); color: var(--c-bg);
    padding: 60px 0 20px 0; width: 100%;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-brand-text { font-family:'Space Grotesk', sans-serif; font-size: 2rem; font-weight:700; color: var(--c-white); }
.footer-limit-width { max-width: 400px; }
.footer-mail-link {
    color: var(--c-white); font-size: 1.2rem; text-decoration: none;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.footer-mail-link:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.contact-label { font-weight: 700; color: var(--c-primary); }
.contact-form {
    background: var(--c-white); padding: 30px; border: 3px solid var(--c-white);
    box-shadow: 8px 8px 0 var(--c-primary);
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--c-black); }
.form-input, .form-textarea {
    width: 100%; padding: 12px; border: 3px solid var(--c-black);
    font-size: 1rem; background: #f0f0f0; transition: all 0.2s;
}
.form-input:focus, .form-textarea:focus {
    background: var(--c-white); box-shadow: 4px 4px 0 var(--c-primary); border-color: var(--c-black); outline: none;
}
.btn-submit {
    width: 100%; background: var(--c-black); color: var(--c-white);
    border: 3px solid var(--c-black); padding: 15px; font-weight: 700; text-transform: uppercase; cursor: pointer;
    box-shadow: 4px 4px 0 var(--c-accent); 
}
.btn-submit:hover {
    background: var(--c-accent); color: var(--c-black);
    transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c-white);
}
.hp-field { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }
.legal-links {
    border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.9rem;
    display: flex; justify-content: center; gap: 20px;
}
.legal-links a { color: var(--c-white); text-decoration: none; opacity: 0.6; }
.legal-links a:hover { opacity: 1; text-decoration: underline; }

/* -----------------------------------------
   MOBILE OPTIMIERUNG
   -----------------------------------------
*/
@media (max-width: 800px) {
    /* Padding Container */
    .container { padding-left: 25px; padding-right: 25px; }

    /* Grid Reset */
    .hero, .bento-grid, .team-container, .footer-grid { 
        grid-template-columns: 100% !important; 
        display: grid; gap: 40px; 
    }
    
    /* Spans Reset */
    .span-2, .span-4, .tall { grid-column: auto !important; grid-row: auto !important; }

    /* Layout */
    .hero h1 { font-size: 3rem; text-align: center; }
    .profile-card { flex-direction: column; align-items: center; text-align: center; }
    
    /* Navigation Floating */
    .menu-toggle-label {
        display: block; cursor: pointer; padding: 10px;
        border: 3px solid var(--c-black); background: var(--c-white);
        box-shadow: 4px 4px 0 var(--c-black); user-select: none;
    }
    .hamburger-line {
        display: block; width: 25px; height: 3px; background: var(--c-black);
        margin: 5px 0; transition: 0.3s;
    }
    .nav-links {
        display: none; 
        position: absolute; top: 100%; left: 20px; right: 20px;
        background: var(--c-bg); flex-direction: column;
        border: 3px solid var(--c-black); padding: 20px; gap: 20px;
        box-shadow: 8px 8px 0 rgba(0,0,0,1); z-index: 999;
    }
    .menu-toggle-input:checked ~ .nav-links { display: flex; }
    .nav-links a { font-size: 1.5rem; display: block; width: 100%; text-align: center; }
    .nav-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    * { scroll-behavior: auto !important; transition: none !important; }
}

/* --- BLOG OVERVIEW STYLES (Add to style.css) --- */

.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten Desktop */
    gap: 40px;
}

/* Die Karte im Bento/Profile-Stil */
.blog-card {
    background: var(--c-white);
    border: 3px solid var(--c-black);
    box-shadow: var(--shadow-dist) var(--shadow-dist) 0 var(--c-black);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.2s;
    position: relative;
}

.blog-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--c-primary);
}

/* Inhalt der Karte */
.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Kategorie Label (Ähnlich wie .role) */
.blog-cat-label {
    display: inline-block;
    background: var(--c-accent); /* Gelb */
    color: var(--c-black);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 4px 8px;
    border: 2px solid var(--c-black);
    box-shadow: 2px 2px 0 var(--c-black);
    margin-bottom: 15px;
    align-self: flex-start;
}

/* Meta Daten (Autor / Datum) */
.blog-meta {
    font-size: 0.9rem;
    color: var(--c-black);
    opacity: 0.7;
    margin-bottom: 10px;
    font-weight: 500;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Titel (Semantisch H2 in der Übersicht) */
.blog-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* Textauszug */
.blog-excerpt {
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1; /* Drückt den Button nach unten */
}

/* Der Button unten in der Karte */
.blog-btn {
    text-align: center;
    background: var(--c-black);
    color: var(--c-white);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px;
    border: 3px solid var(--c-black);
    transition: all 0.2s;
    margin-top: auto; /* Klebt immer unten */
}

.blog-btn:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

/* Mobile Anpassung für Blog */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr; /* 1 Spalte Mobile */
    }
}

/* --- CONTENT BOX (Impressum Style) --- */
.content-box {
    background: var(--c-white);
    border: 3px solid var(--c-black);
    padding: 40px;
    box-shadow: 8px 8px 0 var(--c-black);
    margin-bottom: 40px;
}

/* Anpassung für Mobile: Weniger Padding innen */
@media (max-width: 800px) {
    .content-box {
        padding: 25px;
    }
}

/* --- CSS ONLY TOC (No Javascript) --- */

.toc-wrapper {
    background: var(--c-white);
    border: 3px solid var(--c-black);
    box-shadow: 6px 6px 0 var(--c-black);
    margin-bottom: 40px;
    width: 100%;
}

/* Der Header (Label) ist der Klick-Trigger */
.toc-header {
    background: var(--c-accent); /* Gelb */
    padding: 15px 20px;
    border-bottom: 3px solid var(--c-black);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.toc-header:hover {
    background: #e6c200;
}

.toc-content {
    padding: 0;
}

.toc-content ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.toc-content li {
    margin-bottom: 10px;
}
.toc-content li:last-child { margin-bottom: 0; }

.toc-content a {
    text-decoration: none;
    color: var(--c-black);
    border-bottom: 2px solid transparent;
}
.toc-content a:hover {
    color: var(--c-primary);
    border-color: var(--c-primary);
}

/* --- LOGIK (CHECKBOX HACK) --- */

/* 1. Checkbox verstecken */
.toc-checkbox {
    display: none;
}

/* 2. ICON LOGIK */
/* Standard Icon (Minus = Offen) */
.toc-icon::after { content: '-'; font-size: 1.5rem; line-height: 1; display: block; }


/* --- MOBILE FIRST (Standard: EINGEKLAPPT) --- */
@media (max-width: 800px) {
    /* Inhalt verstecken */
    .toc-content { display: none; }
    
    /* Wenn gecheckt: Inhalt anzeigen */
    .toc-checkbox:checked ~ .toc-content { display: block; }

    /* Icon anpassen: Standard ist Plus (weil zu) */
    .toc-icon::after { content: '+'; }
    /* Wenn gecheckt: Minus */
    .toc-checkbox:checked ~ .toc-header .toc-icon::after { content: '-'; }
}


/* --- DESKTOP (Standard: AUSGEKLAPPT) --- */
@media (min-width: 801px) {
    /* Inhalt anzeigen (Standard) */
    .toc-content { display: block; }

    /* Wenn gecheckt: Inhalt VERSTECKEN (Logik umgedreht!) */
    .toc-checkbox:checked ~ .toc-content { display: none; }

    /* Icon anpassen: Standard ist Minus (weil offen) */
    .toc-icon::after { content: '-'; }
    /* Wenn gecheckt (geschlossen): Plus */
    .toc-checkbox:checked ~ .toc-header .toc-icon::after { content: '+'; }
    
    /* Rahmen entfernen, wenn zugeklappt */
    .toc-checkbox:checked ~ .toc-header { border-bottom: none; }
}

/* --- KEY FACTS BOX (TL;DR) --- */
.facts-wrapper {
    background: var(--c-white);
    border: 3px solid var(--c-black);
    box-shadow: 6px 6px 0 var(--c-black);
    margin-bottom: 40px;
    margin-top: 40px; /* Abstand zum TOC darüber */
}

.facts-header {
    background: var(--c-primary); /* Magenta */
    color: var(--c-white);
    padding: 15px 20px;
    border-bottom: 3px solid var(--c-black);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Optional: Ein kleines Icon vor dem Titel */
.facts-header::before {
    content: '★'; /* Stern als Symbol */
    font-size: 1.2rem;
}

.facts-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.facts-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-weight: 500;
}

/* Eigene Bulletpoints (Pfeile) */
.facts-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--c-primary);
    font-weight: 800;
}

.facts-list li:last-child {
    margin-bottom: 0;
}