/* =========================================
   1. VARIABLEN & RESET
   ========================================= */
:root {
    /* Farben */
    --primary: #003366;      /* Seriöses Marineblau */
    --primary-dark: #002244;
    --accent: #C90000;       /* Signalrot (Notdienst) */
    --accent-hover: #a10000;
    --text-main: #2D3748;    /* Dunkles Grau für Text (besser als Schwarz) */
    --text-light: #718096;
    --bg-light: #F7FAFC;     /* Sehr helles Grau für Hintergründe */
    --white: #ffffff;
    
    /* Schatten & Rahmen */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-btn: 50px;
}

/* Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif; /* Fließtext */
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden; /* Verhindert seitliches Scrollen */
}

/* Typografie */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* Überschriften */
    font-weight: 700;
    color: #1a202c;
    margin-top: 0;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Links */
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Container (zentriert den Inhalt) */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

.logo {
    max-width: 220px;
    height: auto;
}

/* =========================================
   3. BUTTONS (Modern & "Klickbar")
   ========================================= */
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--radius-btn);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(201, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 0, 0, 0.5);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-main);
    padding: 12px 25px;
    border: none;
    border-radius: var(--radius-btn);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.full-width {
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

/* =========================================
   4. HERO SEKTION
   ========================================= */
.hero {
    position: relative;
    padding: 140px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: var(--white);
}

/* Dunkler Verlauf über dem Bild für Lesbarkeit */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,51,102,0.7) 100%);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem; 
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
}
@media (max-width: 768px) {
        .hero-text h1 {
            font-size: 26px !important; /* Deutlich kleiner auf Handys */
            line-height: 1.3;           /* Besserer Zeilenabstand */
            margin-bottom: 15px;
        }
        
        .hero-text p {
            font-size: 16px !important; /* Auch den Text etwas anpassen */
            padding: 0 10px;            /* Abstand zum Rand */
        }

        .hero-text {
            padding: 20px 10px;         /* Weniger Innenabstand im Container */
        }
    }
/* =========================================
   5. INHALTS-SEKTIONEN (Allgemein)
   ========================================= */
.content-section {
    padding: 80px 0;
    text-align: center;
}

/* Roter Unterstrich für Überschriften */
.content-section h2::after, 
.contact-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Split View (Text + Bild) */
.split-view {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left; /* Text linksbündig */
}

.split-view h2::after { margin: 15px 0 0 0; /* Strich linksbündig */ }
.split-view p { margin-left: 0; } /* Reset Zentrierung */

.split-view .text { flex: 1; }
.split-view .image { flex: 1; }

.split-view img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

/* =========================================
   6. FEATURES / WARUM WIR (Modern Light Design)
   ========================================= */

.features-section-wrapper {
    width: 100%;
    /* Ein sehr heller, technischer Grauton als Hintergrund */
    background-color: #F8F9FA;
    /* Optional: Ein ganz dezenter Verlauf für mehr Modernität */
    background: linear-gradient(180deg, #F8F9FA 0%, #E9ECEF 100%);
    padding: 100px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    width: 90%;
}

/* Die Karten (Jetzt Weiß & Clean) */
.features-grid .box {
    background: #ffffff;
    padding: 45px;
    border-radius: 12px;
    
    /* Ein moderner, weicher Schatten statt Glas-Effekt */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.03); /* Ganz feiner Rand */
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden; /* Damit der Akzent-Strich nicht übersteht */
}

/* Ein feiner farbiger Akzent oben an der Karte (optional, sieht sehr profi aus) */
.features-grid .box::top {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary); /* Nutzt Ihr Marineblau */
}

/* Hover-Effekt: Karte hebt sich leicht */
.features-grid .box:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Überschriften */
.features-grid h3 {
    color: var(--primary); /* Dunkelblau wirkt seriöser als Schwarz */
    font-size: 1.6rem;
    margin-bottom: 30px;
    position: relative;
    font-weight: 700;
}

/* Der rote Unterstrich bleibt als Markenzeichen */
.features-grid h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent); /* Rot */
    margin-top: 12px;
    border-radius: 2px;
}

/* Liste Styling */
.features-grid ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.features-grid li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 16px;
    color: var(--text-main); /* Dunkelgrau für gute Lesbarkeit */
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Checkbox Icon (Rot bleibt, da guter Kontrast zu Weiß) */
.features-grid li::before {
    content: '';
    position: absolute;
    left: 0; top: 3px;
    width: 20px; height: 20px;
    /* SVG Checkbox in Rot (#C90000) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C90000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Fettgedruckter Text in dunklem Blau/Grau */
.features-grid li b { 
    color: #1a202c; 
    font-weight: 700; 
}

/* Responsive */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* =========================================
   7. MARKEN (Brands)
   ========================================= */
.brands {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

.brand-grid img {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
/* =========================================
   8. KONTAKT FORMULAR (Grid Layout)
   ========================================= */
.contact-section {
    background: var(--white);
    padding: 80px 0;
    text-align: center;
}

.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    max-width: 900px; /* Breiter für Desktop-Layout */
    margin: 40px auto 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-top: 5px solid var(--accent);
    text-align: left;
    
    /* GRID SYSTEM AKTIVIEREN */
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Alles untereinander */
    gap: 20px; /* Abstand zwischen den Feldern */
}

.form-group {
    margin-bottom: 0; /* Margin wird jetzt durch gap geregelt */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background-color: #f8f9fa;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

/* Der Senden-Button */
.contact-form button[type="submit"] {
    margin-top: 10px;
    width: 100%;
    justify-self: center;
}

/* =========================================
   RESPONSIVE GRID (Tablet & Desktop)
   ========================================= */
@media (min-width: 768px) {
    .contact-form {
        /* Ab Tablet/Desktop: 3 Spalten Layout */
        grid-template-columns: repeat(3, 1fr); 
        padding: 50px;
    }

    /* Elemente, die über die volle Breite gehen sollen 
       (Marke, Adresse, Nachricht, Button) */
    .form-group.full-width,
    .full-width-btn {
        grid-column: span 3;
    }
}
/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a { color: #fff; text-decoration: underline; }
footer a:hover { color: var(--accent); }

/* =========================================
   10. MODAL (Popup) - ZENTRIERT
   ========================================= */
.modal {
    display: none; /* Wird per JS eingeblendet */
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); /* Dunkler Hintergrund */
    backdrop-filter: blur(5px); /* Milchglas-Effekt im Hintergrund */
}

/* Animation für das Aufploppen */
@keyframes modalPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-content {
    background-color: #fff;
    
    /* ZENTRIERUNGS-MAGIE START */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* ZENTRIERUNGS-MAGIE ENDE */

    margin: 0; /* Wichtig: Alte Margins entfernen */
    padding: 40px 30px;
    border-radius: 12px;
    width: 90%; /* Auf Handy nicht ganz randlos */
    max-width: 420px; /* Maximale Breite auf Desktop */
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    
    /* Animation aktivieren */
    animation: modalPop 0.3s ease-out forwards;
}

.modal-content h3 {
    margin-top: 0;
    color: var(--primary);
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover { color: var(--accent); }

/* Buttons im Modal */
.modal-content .btn-primary {
    margin-bottom: 10px;
    width: 100%; /* Volle Breite */
}

.modal-content .btn-secondary {
    width: 100%; /* Volle Breite */
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.modal-content .btn-secondary:hover {
    background: #f1f1f1;
    color: #333;
}
/* =========================================
   11. RESPONSIVE (Handy & Tablet)
   ========================================= */
@media (min-width: 768px) {
    /* Ab Tablet: 2 Spalten für Features */
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Anpassungen */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero { padding: 80px 0; }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .split-view {
        flex-direction: column;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}
/* =========================================
   MOBILE STICKY BUTTON (Telefon)
   ========================================= */

/* 1. Animation definieren (Pulsieren / Blinken) */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 0, 0, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(201, 0, 0, 0); /* Breitet sich aus und wird transparent */
        transform: scale(1.05); /* Wird kurz etwas größer */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 0, 0, 0);
        transform: scale(1);
    }
}

/* 2. Button Basis-Styling (Standardmäßig unsichtbar auf Desktop) */
.mobile-call-btn {
    display: none; /* Auf Desktop ausgeblendet */
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background-color: var(--accent); /* Rot */
    color: #ffffff;
    border-radius: 50%; /* Rund */
    z-index: 9999; /* Immer ganz oben */
    
    /* Zentriert das Icon im Kreis */
    align-items: center;
    justify-content: center;
    
    /* Schatten und Animation */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: pulse-red 2s infinite; /* Unendliches Blinken */
    
    transition: background-color 0.3s;
}

.mobile-call-btn:active {
    background-color: #a10000; /* Dunkler beim Drauftippen */
}

/* 3. MEDIA QUERY: Anpassungen für Handys & Tablets */
@media (max-width: 768px) {
    
    /* A) Button im Header ausblenden */
    header .btn-primary {
        display: none !important;
    }

    /* B) Logo im Header etwas zentrieren oder anpassen (Optional) */
    .header-content {
        justify-content: center; /* Logo mittig, da Button weg ist */
    }

    /* C) Sticky Button unten einblenden */
    .mobile-call-btn {
        display: flex; /* Jetzt sichtbar machen (Flexbox für Zentrierung) */
    }
}
/* =========================================
   MODERNER FOOTER
   ========================================= */
.site-footer {
    background-color: #1a202c; /* Sehr dunkles Grau (fast Schwarz) */
    color: #cbd5e0; /* Helles Grau für Text (angenehmer als reines Weiß) */
    padding-top: 60px;
    font-size: 0.95rem;
    border-top: 4px solid var(--accent); /* Rote Linie als optischer Abschluss oben */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    display: inline-block;
}

/* Firmen Badge (Gastech-Pro e.U.) hervorheben */
.company-badge {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-left: 3px solid var(--accent);
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.6;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Links Styling */
.footer-links, .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a, 
.contact-list a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover, 
.contact-list a:hover {
    color: var(--accent); /* Rot beim Hover */
    padding-left: 5px; /* Kleiner Bewegungseffekt */
}

/* Kontakt-Liste Icons */
.contact-list li {
    display: flex;
    align-items: flex-start; /* Falls Adresse zweizeilig wird */
    margin-bottom: 15px;
    gap: 10px;
}

.contact-list .icon {
    font-size: 1.2rem;
}

/* Footer Bottom (Copyright Leiste) */
.footer-bottom {
    background-color: #111; /* Noch dunklerer Streifen unten */
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive Anpassung für Handy */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Alles untereinander */
        gap: 30px;
        text-align: center; /* Auf Handy zentriert wirkt oft besser */
    }
    
    .footer-col h4 {
        display: block;
        border-bottom: none; /* Linie mobil entfernen oder anpassen */
    }
    
    .company-badge {
        display: inline-block; /* Damit der Rahmen links bleibt */
        text-align: left;
    }
    
    .contact-list li {
        justify-content: center; /* Icons mittig */
    }
}
/* =========================================
   SEO TEXT & CTA KOMBI-SEKTION
   ========================================= */

.seo-cta-section {
    background-color: #ffffff;
    padding: 100px 0;
    position: relative;
}

/* Typografie und Abstände für den SEO Text */
.seo-content {
    margin-bottom: 60px;
    text-align: center;
}

.seo-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #1a202c;
}

.intro-text {
    font-size: 1.15rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
}

/* Zweispaltiges Layout für den Text (Magazin-Stil) */
.text-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
}

.text-col h3 {
    font-size: 1.3rem;
    color: var(--primary); /* Dunkelblau */
    margin-bottom: 15px;
    border-left: 3px solid var(--accent); /* Roter Akzentstrich links */
    padding-left: 15px;
}

.text-col p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0; /* Reset für Grid */
    max-width: 100%;
}

/* -----------------------------------------
   CTA BANNER (Der "Hingucker")
   ----------------------------------------- */
.cta-banner {
    background-color: var(--primary); /* Nutzt Ihr Marineblau */
    /* Alternativ: background: linear-gradient(135deg, #003366 0%, #001a33 100%); */
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
}

/* Dekoratives Hintergrund-Element (optional) */
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-text h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta-text p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Button Variationen für den CTA Bereich */
.cta-banner .btn-primary {
    background-color: var(--accent);
    border: 2px solid var(--accent);
    padding: 12px 35px; /* Etwas breiter */
}

.cta-banner .btn-primary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

/* Transparenter Button mit weißem Rand */
.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}

/* -----------------------------------------
   RESPONSIVE
   ----------------------------------------- */
@media (min-width: 768px) {
    /* Textspalten nebeneinander auf Desktop */
    .text-columns {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    /* CTA Banner: Text links, Buttons rechts */
    .cta-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 50px;
    }
    
    .cta-text {
        flex: 1;
        padding-right: 40px; /* Abstand zu den Buttons */
    }
    
    .cta-text p {
        margin-bottom: 0;
    }
    
    .cta-actions {
        flex-shrink: 0; /* Verhindert, dass Buttons gequetscht werden */
    }
}