/* ==========================================================================
   1. GRUNDKONFIGURATION & RESETS (Inklusive Sticky-Footer-Garantie)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc; 
    color: #1e293b;            
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto; 
    animation: inhaltsWechsel 0.3s ease-out forwards;
}

@keyframes inhaltsWechsel {
    from { 
        opacity: 0; 
        transform: translateY(8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ==========================================================================
   2. KOPFBEREICH & NAVIGATION (Header) - Absolut umbruchsicher & starr
   ========================================================================== */
header {
    background-color: #ffffff;
    width: 100%;
    border-bottom: 4px solid #e2e8f0; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02); 
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0; 
}

.header-container {
    max-width: 1260px;        
    margin: 0 auto;
    padding: 0 20px;
    display: flex;            
    justify-content: space-between;
    align-items: center;      
    height: 115px;            
}

.logo {
    display: flex;
    align-items: center;
    width: 280px;              
    flex-shrink: 0;           
}

.logo a {
    display: block;
}

.logo img {
    height: 80px !important;  
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    flex-grow: 1;              
    justify-content: flex-end; 
}

nav ul {
    list-style: none;
    display: flex;            
    align-items: center;      
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 22px;        
    position: relative;
    display: flex;
    align-items: center;
    height: 115px;            
    flex-shrink: 0;           
}

nav ul li a {
    text-decoration: none;
    color: #1d2a44; 
    font-weight: 700;
    font-size: 20px;          
    white-space: nowrap !important; 
    padding: 10px 2px;
    display: block;
    transition: color 0.2s ease;
}

nav ul li a:hover:not(.nav-btn),
nav ul li a.active:not(.nav-btn) {
    color: #1d2a44;
}

nav ul li a:hover:not(.nav-btn)::after,
nav ul li a.active:not(.nav-btn)::after {
    content: "";
    position: absolute;
    bottom: 25px;             
    left: 2px;
    right: 2px;
    height: 4px;              
    background-color: #1d2a44; 
}

nav ul li a.nav-btn {
    background-color: #1d63b8; 
    color: #ffffff;
    padding: 15px 28px;       
    border-radius: 4px;
    font-weight: 700;
    font-size: 19px;
    white-space: nowrap !important; 
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(29, 99, 184, 0.2);
}

nav ul li a.nav-btn:hover {
    background-color: #154b8c;
    transform: translateY(-1px);
}

/* ==========================================================================
   3. HERO-SEKTION (Großer Farbbereich)
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(0, 31, 63, 0.92), rgba(0, 20, 40, 0.96)); 
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 19px;
    max-width: 800px;
    margin: 0 auto 35px auto;
    color: #cbd5e1;           
}

.button {
    display: inline-block;
    background-color: #1d63b8; 
    color: #ffffff;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(29, 99, 184, 0.25);
}

.button:hover {
    background-color: #154b8c;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. TEXT-BEREICHE
   ========================================================================== */
.text-bereich {
    max-width: 900px;
    margin: 70px auto 30px auto;
    padding: 0 20px;
    text-align: center;
}

.text-bereich h2 {
    color: #001f3f;           
    margin-bottom: 22px;
    font-size: 30px;
    font-weight: 700;
}

.text-bereich p {
    color: #475569;
    font-size: 17px;
}

/* ==========================================================================
   5. LEISTUNGSSEITE
   ========================================================================== */
.leistungen-behaelter {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.leistung-karte {
    background: #ffffff;
    flex: 1;
    min-width: 300px;
    padding: 40px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 31, 63, 0.03);
    border-top: 5px solid #001f3f; 
    transition: transform 0.3s ease;
}

.leistung-karte:hover {
    transform: translateY(-5px);
}

.leistung-karte h2 {
    color: #001f3f;
    margin-bottom: 15px;
    font-size: 23px;
}

/* ==========================================================================
   6. MASCHINENPARK
   ========================================================================== */
.maschinen-bereich {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.maschinen-bereich h2 {
    color: #001f3f;
    margin: 50px 0 25px 0;
    border-left: 5px solid #1d63b8; 
    padding-left: 18px;
    font-size: 26px;
}

.tabelle-container {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 31, 63, 0.03);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background-color: #001f3f; 
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   7. ANSPRECHPARTNER & TEAM (Altstrukturen)
   ========================================================================== */
.team-karte {
    background: #ffffff;
    flex: 1;
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 31, 63, 0.03);
    text-align: center;
    border-bottom: 4px solid #001f3f;
}

.team-karte .funktion {
    color: #1d63b8; 
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

/* ==========================================================================
   8. KONTAKTSEITE
   ========================================================================== */
.kontakt-info, .kontakt-formular {
    background: #ffffff;
    padding: 45px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 31, 63, 0.03);
}

.kontakt-info h2, .kontakt-formular h2 {
    color: #001f3f;
}

/* ==========================================================================
   9. EXAKTER PFISTER-FOOTER (Farbe & Schriftstärke exakt nach Bildvorlage)
   ========================================================================== */
footer {
    background-color: #03233f !important; 
    color: #ffffff;
    padding: 70px 6% 0 6%; 
    overflow: hidden;         
    margin-top: auto; 
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1260px;
    margin: 0 auto;
    padding-bottom: 50px; 
}

.footer-spalte {
    flex: 1;
    min-width: 200px;
}

.footer-spalte.brand {
    flex: 1.8;
    padding-right: 30px;
}

.footer-spalte h4 {
    color: #ffffff;
    font-size: 22px;         
    font-weight: 700;   
    margin-bottom: 30px;    
    text-transform: none;    
}

.footer-spalte p {
    font-size: 16px;         
    color: #ffffff;          
    line-height: 1.6;
    font-weight: 400;   
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;              
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 17px;         
    font-weight: 400;   
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-kontakt-netz {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kontakt-link {
    text-decoration: none !important;   
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    transition: opacity 0.2s ease;
    color: #ffffff !important;          
}

.kontakt-link:hover {
    opacity: 0.75 !important;           
}

.kontakt-link .kontakt-text {
    color: #ffffff !important;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 400;   
    text-align: left;
}

.kontakt-icon {
    color: #ffffff !important;
    font-size: 19px;         
    width: 24px;             
    text-align: center;
    margin-top: 2px;
}

.flip-icon {
    transform: scaleX(-1) rotate(15deg);
    display: inline-block;
}

.siegel-box {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.siegel-platzhalter {
    width: 70px;
    height: 70px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icons a {
    color: #ffffff;
    font-size: 26px;         
    transition: opacity 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    opacity: 0.7;
}

.footer-unten {
    background-color: #1d63b8; 
    margin: 40px -10% 0 -10%;  
    padding: 22px 8%;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    width: 120%;              
}

/* ==========================================================================
   10. STYLING FÜR DIE VERTIKALE TIMELINE (ÜBER UNS)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #03233f;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #ffffff;
    border: 4px solid #1d63b8;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    background-color: #f8fafc;
    position: relative;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.timeline-content h3 {
    font-size: 22px;
    color: #1d63b8;
    margin: 0 0 5px 0;
    font-weight: 800;
}

.timeline-content p {
    font-size: 15px;
    color: #334155;
    margin: 0;
    line-height: 1.5;
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }
    .timeline-item::after {
        left: 23px;
        right: auto;
    }
    .right {
        left: 0%;
    }
}

/* ==========================================================================
   11. NEW STYLING FÜR DIE ANSPRECHPARTNER-KACHELN (Jetzt ausserhalb der Mediaquery)
   ========================================================================== */
.ansprechpartner-bereich {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

.leitung-reihe, .team-reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    width: 100%;
}

.leitung-reihe {
    margin-bottom: 40px;
}

.karte {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 320px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.karte:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.profil-bild-ersatz {
    width: 90px;
    height: 90px;
    background-color: #03233f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px auto;
}

.karte h3 {
    font-size: 20px;
    color: #03233f;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.position {
    font-size: 14px;
    color: #1d63b8;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kontakt-daten {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    align-items: center;
}

.kontakt-zeile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #334155;
    font-size: 15px;
    transition: color 0.2s;
}

.kontakt-zeile:hover {
    color: #1d63b8;
}

.kontakt-zeile i {
    color: #1d63b8;
    width: 20px;
    text-align: center;
}
/* Borlabs-Style für das Cookie-Banner */
/* Hauptkasten zentrieren und polstern */
#cc--main .c-b {
    position: relative !important; /* Basis für die absolute Positionierung des X */
    display: flex !important;
    flex-direction: column !important;
    padding: 35px !important;
    border-radius: 8px !important;
    max-width: 520px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    overflow: visible !important;  /* Verhindert das Abschneiden von Elementen am Rand */
}

/* Button-Layout: Als Block untereinander */
#cc--main .c-b__buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 25px !important;
    order: 2 !important; /* Platziert die Buttons vor dem Einstellungs-Link */
}

/* Alle Buttons auf volle Breite für den echten Borlabs-Balken-Look */
#cc--main .c-b__btn {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease !important;
}

/* Primärer Button (Akzeptieren) - BERBA Dunkelblau */
#cc--main .all-btn {
    background-color: #03233f !important;
    color: #ffffff !important;
    border: none !important;
}
#cc--main .all-btn:hover {
    background-color: #1d63b8 !important;
}

/* Sekundärer Button (Ablehnen) - Dezentes Grau */
#cc--main .nec-btn {
    background-color: #e2e8f0 !important;
    color: #334155 !important;
    border: none !important;
}
#cc--main .nec-btn:hover {
    background-color: #cbd5e1 !important;
}

/* Custom Link für die detaillierten Einstellungen ganz unten */
#cc--main .settings-link-wrapper {
    text-align: center;
    margin-top: 20px !important;
    order: 3 !important; /* Rutscht unter die Buttons nach ganz unten */
}
#cc--main .settings-link-wrapper a {
    color: #1d63b8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
#cc--main .settings-link-wrapper a:hover {
    text-decoration: underline;
}

/* Styling für das im Titel eingenähte Schließkreuz (X) */
#cc--main .borlabs-close-x {
    display: inline-block !important;
    position: absolute !important;
    top: 25px !important;    /* Abstand von oben */
    right: 25px !important;  /* Abstand von rechts */
    width: 24px !important;   /* Feste Breite für Klickfläche */
    height: 24px !important;  /* Feste Höhe für Klickfläche */
    cursor: pointer !important; /* Macht die Hand als Mauszeiger */
    z-index: 99999 !important;
}

/* Die beiden Linien für das X zeichnen */
#cc--main .borlabs-close-x::before,
#cc--main .borlabs-close-x::after {
    content: '' !important;
    position: absolute !important;
    height: 18px !important;
    width: 2px !important;
    background-color: #64748b !important;
    top: 3px !important;
    left: 11px !important;
    transition: background-color 0.2s ease !important;
    pointer-events: none !important; /* Klick geht durch die Linien auf die Box */
}

#cc--main .borlabs-close-x::before { transform: rotate(45deg) !important; }
#cc--main .borlabs-close-x::after { transform: rotate(-45deg) !important; }

/* Das X färbt sich beim Drüberfahren dunkelblau */
#cc--main .borlabs-close-x:hover::before,
#cc--main .borlabs-close-x:hover::after {
    background-color: #03233f !important;
}
/* ==========================================================================
   Leistungsseiten-Layout (Wechselnde Blöcke)
   ========================================================================== */

.leistungen-hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.leistungen-hero h1 {
    color: #03233f;
    font-size: 36px;
    margin-bottom: 10px;
}

.leistungen-hero p {
    color: #64748b;
    font-size: 18px;
}

.leistungen-container {
    max-width: 1100px;
    margin: 40px auto 100px auto;
    padding: 0 20px;
}

/* Basis für jeden einzelnen Block */
.leistungs-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px; /* Großer Abstand wegen des Bildversatzes */
}

/* Dreht jeden zweiten Block um (Bild links, Text rechts) */
.leistungs-block.block-reverse {
    flex-direction: row-reverse;
}

.leistungs-text {
    flex: 1;
}

.leistungs-text h2 {
    color: #03233f;
    font-size: 26px;
    margin-bottom: 15px;
    position: relative;
}

/* Kleine blaue Design-Linie unter den Leistungs-Überschriften */
.leistungs-text h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #1d63b8;
    margin-top: 8px;
}

.leistungs-text p {
    color: #334155;
    line-height: 1.6;
    font-size: 16px;
}

/* Bild-Wrapper fängt das Bild ab */
.leistungs-bild-wrapper {
    flex: 1;
    position: relative;
}

/* Das eigentliche Bild mit dem gewünschten Versatz nach unten */
.leistungs-bild {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(3, 35, 63, 0.1);
    
    /* Verschiebt das Bild elegant nach unten */
    transform: translateY(30px); 
}

/* Mobil-Optimierung: Auf Smartphones stehen alle Blöcke untereinander */
@media (max-width: 768px) {
    .leistungs-block, 
    .leistungs-block.block-reverse {
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 60px;
    }
    
    .leistungs-bild {
        transform: translateY(0); /* Mobil kein Versatz für sauberen Lesefluss */
    }
}
