/* --- style.css --- */

/* 1. Design Variablen */
:root {
    --primary-color: #0f172a; 
    --accent-color: #0ea5e9;  
    --text-color: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gold: #d4af37;
}

/* 2. Grundeinstellungen */
html { scroll-behavior: smooth; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* 3. Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px; /* Feste Höhe für Layout-Berechnung */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.logo span { color: var(--accent-color); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { cursor: pointer; position: relative; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
}

.btn-cta {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-cta:hover { background: var(--accent-color); }
.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

/* 4. Sections & Layout */
/* WICHTIG: Padding-top verhindert, dass Inhalt hinter dem Header verschwindet */
section, .page-content {
    padding: 120px 2rem 5rem; 
}

/* Hero Section (Startseite) */
.hero {
    /* Padding oben etwas mehr, weil der Header drüber liegt */
    padding: 160px 2rem 120px; 
    text-align: center;
    color: var(--white);
    position: relative;
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    margin-top: -80px; /* Trick, damit der transparente/dunkle Hintergrund ganz oben anfängt */
}

.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero p { color: #e2e8f0; font-size: 1.25rem; max-width: 700px; margin: 0 auto 2.5rem; }

.hero-badges { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.badge { border: 1px solid rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; background: rgba(255,255,255,0.05); backdrop-filter: blur(5px); letter-spacing: 0.5px; }
.badge.highlight { border-color: var(--gold); background: rgba(212, 175, 55, 0.2); color: #fbbf24; font-weight: bold; }

/* Hero Small (für Unterseiten) */
.hero-small {
    background: var(--primary-color);
    color: var(--white);
    padding: 140px 2rem 60px; /* Angepasst für Header */
    text-align: center;
    margin-top: -80px; /* Header Ausgleich */
    margin-bottom: 3rem;
}
.hero-small h1 { color: var(--white); }

.bg-light { background: var(--bg-light); }
.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.section-padding { padding: 4rem 0; }

/* 5. Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.2s;
}
.card:hover { transform: translateY(-5px); border-top-color: var(--accent-color); }
.card h3 { font-family: 'Inter', sans-serif; margin-bottom: 1rem; font-size: 1.25rem; }
.card p { margin-bottom: 1rem; color: #64748b; }
.card ul li { margin-bottom: 0.5rem; display: flex; align-items: start; font-size: 0.95rem; }
.card ul li::before { content: "✓"; color: var(--accent-color); margin-right: 10px; font-weight: bold; }

/* 6. Kontakt & Alerts */
.nis2-alert {
    /* Kräftigeres Gelb-Orange (Warn-Farbe) */
    background: #ffeebb; 
    
    /* Der goldene Strich links wird etwas dicker */
    border-left: 8px solid var(--gold);
    
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 6px;
    
    /* Ein leichter Schatten, damit der Kasten sich abhebt */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Optional: Die Überschrift darin dunkel färben für besseren Kontrast */
.nis2-alert h3 {
    color: #451a03; /* Sehr dunkles Braun (wirkt wärmer als Schwarz) */
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.nis2-alert p {
    color: #451a03;
}

.contact-wrapper { background: var(--primary-color); color: var(--white); padding: 4rem 2rem; text-align: center; border-radius: 8px; }
.contact-form-container { max-width: 600px; margin: 2rem auto 0; text-align: left; }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 1rem; margin-bottom: 1rem; border-radius: 5px; border: none; font-family: 'Inter', sans-serif;
    background: #f1f5f9;
}
.submit-btn {
    width: 100%; background: var(--accent-color); color: var(--white); padding: 1rem; border: none; border-radius: 5px; font-weight: bold; cursor: pointer;
}
.submit-btn:hover { background: #0284c7; }
.form-message { display: none; padding: 1rem; margin-top: 1rem; border-radius: 5px; text-align: center; color: #000; }
.form-message.success { display: block; background: #dcfce7; color: #166534; }

/* 7. Footer */
footer { background: #0b1120; color: #64748b; padding: 3rem 2rem; text-align: center; font-size: 0.9rem; margin-top: auto; }
footer a { cursor: pointer; color: #94a3b8; transition: 0.3s; margin: 0 10px; }
footer a:hover { color: var(--white); }

/* IHK Badge Styles */
.trust-badge-container { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.ihk-seal-wrap {
    position: relative; width: 170px; height: 170px; display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, 0.8); border-radius: 50%; border: 2px solid var(--gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4); backdrop-filter: blur(5px);
}
.ihk-seal-content { text-align: center; color: var(--gold); display: flex; flex-direction: column; align-items: center; gap: 3px; text-transform: uppercase; letter-spacing: 1px; }
.ihk-seal-top { font-size: 0.7rem; font-weight: 600; }
.ihk-seal-main { font-size: 0.9rem; font-weight: 800; line-height: 1.1; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 4px 0; margin: 4px 0; }
.ihk-seal-icon svg { fill: var(--gold); width: 24px; height: 24px; }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 80px; left: 0; width: 100%; 
        background: white; 
        padding: 2rem; 
        box-shadow: 0 10px 10px rgba(0,0,0,0.1); 
    }
    .nav-links.mobile-active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; }
}

.contact-wrapper h2 {
    color: var(--white) !important;
}

/* 2. Design für den grünen Telefon-Button */
.phone-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #22c55e; /* Sattes Grün */
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: transform 0.2s ease;
}

.phone-button:hover {
    transform: scale(1.05);
    background-color: #16a34a; /* Dunkleres Grün beim Drüberfahren */
    text-decoration: none;
}

/* Kleines Telefon-Icon im Button */
.icon-phone::before {
    content: "📞";
    font-size: 1.2rem;
}
/* --- FIX FÜR 2-SPALTIGES LAYOUT --- */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr !important;
    }
}