/* ==========================================================================
   1. Design-Variablen & Resets
   ========================================================================== */
:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --dark-blue: #0f172a;       /* Edles Dunkelblau für Blöcke & Text */
    --accent-blue: #0284c7;     /* Modernes Cyan-Blau für Highlights/Buttons */
    --accent-hover: #0369a1;
    --text-dark: #334155;
    --text-light: #cbd5e1;
    --border-color: #e2e8f0;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
}

body {
    line-height: 1.6;
}

/* Links allgemein */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ==========================================================================
   2. Header & Navigation (Dunkelblau für weißen Logo-Text)
   ========================================================================== */
.main-header {
    background-color: var(--dark-blue); 
    border-bottom: 1px solid #1e293b;   
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* DESKTOP-LOGIK: Löst den umschließenden Container optisch auf, 
   damit die Elemente direkt im Header-Container verteilt werden */
.header-mobile-top {
    display: contents;
}

/* Container für das gesamte Logo (Icon + Text) */
.logo-wrapper {
    display: flex;
    align-items: center; 
    gap: 0.75rem;        
    cursor: pointer;    
    color: inherit;     
}

/* Das leuchtend blaue Monitor-Icon */
.logo-icon {
    width: 42px;         
    height: 42px;
    color: #0284c7;      
}

/* Container für die zwei Textzeilen */
.logo-text {
    display: flex;
    flex-direction: column; 
    line-height: 1.1;       
}

/* Hauptname (VAYO IT) */
.logo-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;         
    letter-spacing: 0.5px;
}

/* Das "IT" in Cyan-Blau */
.logo-main span {
    color: #0284c7;
}

/* Der Untertitel (IT-SERVICE) */
.logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;         
    letter-spacing: 2px;    
    margin-top: 2px;
}

/* Navigationslinks im dunklen Header */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: #e2e8f0;         
}

.nav-links a:hover {
    color: #0284c7;         
}

/* Telefonnummer-Button im dunklen Header */
.phone-link {
    font-weight: 600;
    color: #ffffff;
    background: #1e293b;    
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid #334155;
    white-space: nowrap;
}

.phone-link:hover {
    background: #0284c7;    
    border-color: #0284c7;
}

/* Unsichtbare mobile Steuerungselemente für die Desktop-Ansicht */
.menu-toggle, .hamburger-label {
    display: none; 
}

/* ==========================================================================
   3. Hero Sektion (Der erste Eindruck)
   ========================================================================== */
.hero {
    background: radial-gradient(circle at top right, #f0fdf4 0%, #ffffff 100%);
    padding: 8rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. Komponenten: Sektionen & Grids (Heller Hintergrund)
   ========================================================================== */
.services-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-titel {
    font-size: 2.25rem;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-titel span {
    color: var(--accent-blue);
}

.section-subtitel {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

/* Das Grid-System */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Karten-Styling */
.service-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.05);
    border-color: var(--accent-blue);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   5. Dunkelblaue Blöcke (Inversion für Struktur)
   ========================================================================== */
.bg-dark-block {
    background-color: var(--dark-blue);
    max-width: 100%; 
    color: #f1f5f9;
}

.container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px 0; 
}

.text-white { color: #ffffff !important; }
.text-light { color: #94a3b8 !important; }

/* Karten innerhalb der dunklen Blöcke wieder hell machen */
.card-light {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
}

.card-light h3 {
    color: #ffffff;
}

.card-light:hover {
    border-color: var(--accent-blue);
    background: #334155;
}

/* ==========================================================================
   6. FAQ Sektion
   ========================================================================== */
.faq-section {
    padding: 6rem 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 1.5rem 2rem;
    border-radius: 8px;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #94a3b8;
}

/* ==========================================================================
   7. Kontakt Formular Sektion
   ========================================================================== */
.contact-section {
    padding: 6rem 2rem;
    max-width: 700px !important; 
    margin: 0 auto;
}

.contact-container {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 12px;
    margin: 0 auto;
}

.price-disclaimer {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    color: #166534;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-blue);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.btn-submit {
    background-color: var(--dark-blue);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--accent-blue);
}

/* ==========================================================================
   8. Einsatzgebiet & Footer
   ========================================================================== */
.area-section {
    padding: 6rem 2rem;
    text-align: center;
}

.main-footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

.main-footer a {
    color: #ffffff;
    margin: 0 0.5rem;
}

.main-footer a:hover {
    color: var(--accent-blue);
}

/* ==========================================================================
   9. Responsive Media Queries (Mobile Optimierung)
   ========================================================================== */
@media (max-width: 768px) {
    .main-header {
        position: sticky !important;
        top: 0;
        z-index: 1000;
    }

    .header-container {
        flex-direction: column; 
        align-items: flex-start;
        padding: 0.75rem 1rem;
        position: relative;
    }

    /* Schaltet das 'display: contents' vom Desktop aus und aktiviert echtes Flexbox fürs Handy */
    .header-mobile-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - 35px); /* Genug Platz für das Hamburger-Icon rechts lassen */
    }

    /* Das Logo auf dem Handy kompakter machen */
    .logo-main {
        font-size: 1.3rem;
    }
    .logo-icon {
        width: 32px;
        height: 32px;
    }

    /* Macht den Telefon-Button auf Smartphones übersichtlich und schmal */
    .header-contact .phone-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.08);
    }

    /* Das Hamburger-Menü-Icon (Drei feine Linien) */
    .hamburger-label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 1.4rem; /* Hält das Icon exakt auf Höhe der oberen Zeile */
        z-index: 1001;
    }

    .hamburger-label span {
        display: block;
        width: 22px;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Versteckt die Navigation standardmäßig im mobilen Zustand */
    .main-nav {
        display: none; 
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-links {
        display: flex;
        flex-direction: column; 
        gap: 0px;
        width: 100%;
        padding: 0.5rem 0 0 0;
        list-style: none;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 0.8rem 0.25rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    }

    /* --- REINE CSS TOGGLE-LOGIK --- */
    
    /* Wenn die Checkbox aktiv ist -> Blende die Navigation ein */
    .menu-toggle:checked ~ .main-nav {
        display: block;
    }

    /* Verwandelt das Hamburger-Icon bei Klick flüssig in ein 'X' */
    .menu-toggle:checked ~ .hamburger-label span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle:checked ~ .hamburger-label span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger-label span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}