/* ============================================
   FONTS & VARIABLES
   ============================================ */
@font-face {
    font-family: 'Inter';
    font-weight: 400;
    src: url('../fonts/Inter_24pt-Regular.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-weight: 700;
    src: url('../fonts/Inter_18pt-Bold.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-weight: 900;
    src: url('../fonts/Inter_18pt-Black.woff2') format('woff2');
    font-display: swap;
}

:root {
    /* Brand Colors */
    --primary: #2563eb;       /* Royal Blue */
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;        /* Gold/Orange für Trust-Elemente */
    --secondary: #0f172a;     /* Dark Slate (Fast Schwarz) */
    
    /* Backgrounds & Text */
    --light: #f8fafc;
    --white: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    
    /* UI Elements */
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --header-h-desktop: 80px;
    --header-h-mobile: 65px;
    --container-width: 1200px;
}

/* ============================================
   GLOBAL RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden; /* Verhindert seitliches Scrollen auf Mobil */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Utility */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS (High Conversion)
   ============================================ */
.btn, .btn2, .btn3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.05rem;
}

.btn:hover, .btn2:hover, .btn3:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================================
   HEADER & NAV (Glassmorphism)
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h-desktop);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -0.5px;
}
.logo-text span { color: var(--primary); }

/* Navigation Desktop */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--primary);
}

/* Telefonnummer im Menü hervorheben */
.nav-phone a {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
}

/* Hamburger & Checkbox Logic */
.menu-checkbox { display: none; }
.hamburger { display: none; cursor: pointer; }

/* ============================================
   HERO SECTION (Sales Focus)
   ============================================ */
.hero {
    position: relative;
    padding-top: var(--header-h-desktop);
    min-height: 85vh; /* Mehr Platz für Visuals */
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.hero .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto; /* Zentrieren auf Wunsch, oder margin-left für linksbündig */
}

/* Specific Backgrounds */
.hero-startseite { background-image: url("../image/hero1.jpg"); }
.hero-dienstleistungen { background-image: url("../image/hero2.jpg"); }
.hero-analyse { background-image: url("../image/hero3.webp"); }
.hero-branchen { background-image: url("../image/hero4.webp"); }

.hero h1 {
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive Font Size */
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-wrap: balance; /* Verhindert einzelne Wörter in neuer Zeile */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 

}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================
   TRUST ELEMENTS
   ============================================ */
.trust-bar {
    background: #f1f5f9;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.trust-bar p {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 700;
}

.trust-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-weight: 600;
    opacity: 0.7;
}

/* Checkliste (Haken) */
.check-list {
    list-style: none;
    margin: 20px 0;
}
.check-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-weight: 500;
}
.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981; /* Green */
    font-weight: 900;
}

/* ============================================
   SECTIONS & LAYOUTS
   ============================================ */
.section {
    padding: 80px 0;
}

/* Two Column Layout (Text + Bild) */
.two-column-section {
    padding: 80px 0;
    background: var(--white);
}

.text-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-column h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.text-column p { font-size: 1.1rem; color: var(--text); margin-bottom: 1.5rem; }

.image-column img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    width: 100%;
    object-fit: cover;
}

/* Google Ranking / Services Text Center */
.google-ranking {
    padding: 80px 0;
    background: var(--light);
    text-align: center;
}
.google-ranking .textContent {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   FAQ ACCORDION (SGE Optimized)
   ============================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-answer {
    display: none; /* JS toggles this */
    padding: 0 20px 20px 20px;
    color: var(--text);
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    margin-top: 10px; /* Kleiner Abstand zum Strich */
}

/* Active State Styles via JS Class */
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { color: var(--primary); }

/* ============================================
   KONTAKT & FORMULAR (Conversion)
   ============================================ */
.contact { background: var(--light); }

.cta-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
    max-width: 700px;
    margin: 40px auto 0;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
    margin-top: 20px;
}
.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form button {
    margin-top: 30px;
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-content h3, .footer-content h4 { color: white; margin-bottom: 20px; }
.footer-content ul { list-style: none; }
.footer-content li { margin-bottom: 10px; }
.footer-content a { color: #94a3b8; }
.footer-content a:hover { color: white; }

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    /* Header Anpassung */
    .hamburger { display: block; z-index: 1002; }
    .logo { z-index: 1002; }
    
    /* Mobile Menu */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        padding-top: 100px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        z-index: 1001;
    }
    
    .menu-checkbox:checked ~ nav { right: 0; }
    
    nav ul { flex-direction: column; align-items: flex-start; padding-left: 30px; }
    
    /* Layouts */
    .text-image-row { grid-template-columns: 1fr; gap: 40px; }
    
    /* Text Order Mobile: Bild zuerst? Nein, Text zuerst ist besser für SEO/Context */
    .image-column { order: -1; } /* Oder order: 1 für Bild unten */
    
    .hero h1 { font-size: 2.2rem; }
    .cta-box { padding: 20px; }
}

@media (max-width: 480px) {
    .hero { text-align: left; padding-top: 100px; }
    .hero-buttons { flex-direction: column; }
    .btn, .btn2, .btn3 { width: 100%; }
    
    .logo-text { font-size: 1.1rem; }
    
    /* Grid Abstände kleiner */
    .section { padding: 50px 0; }
}
/* ============================================
   HERO HINTERGRUNDBILDER (Korrigiert)
   ============================================ */

/* Startseite */
.hero-startseite { 
    background-image: url("../image/hero1.jpg"); 
}

/* Dienstleistungen */
.hero-dienstleistungen { 
    background-image: url("../image/hero2.jpg"); 
}

/* Analyse / Audit */
.hero-analyse { 
    background-image: url("../image/hero3.webp"); 
}

/* Branchen (WICHTIG: Hier stand vorher oft "branchen" mit n, 
   aber im HTML steht "branche". Das korrigieren wir hier:) */
.hero-branche { 
    background-image: url("../image/hero4.webp"); 
}

/* Impressum (Dieser Eintrag fehlte wahrscheinlich) */
.hero-impressum { 
    background-image: url("../image/hero5.webp"); 
}