/* ==========================================================================
   1. RESET & GLOBALE STILE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-blue: #0066b2;        
    --accessible-blue: #0066b2;  
    --anthrazit: #fefefe;         
    --text-dark: #222222;         
    --text-light: #ffffff;        
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-image: url('../hintergrund.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f6f9;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a:focus-visible {
    outline: 3px solid  var(--accessible-blue) !important;
    outline-offset: 4px;
}

/* ==========================================================================
   2. HEADER & SLOGAN-BAR
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.98); 
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area {
    padding-left: 15px; /* Schiebt das Logo im Header um 15 Pixel nach unten */
}

.logo {
    max-height: 80px;
    width: auto;
}

.address-area {
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark) !important;
    font-style: normal; 
}

.address-area p {
    color: var(--text-dark) !important;
}

.address-area a {
    color: var(--accessible-blue) !important; 
      
    font-weight: 600;
}

.address-area a:hover {
    text-decoration: none;
}

.sub-bar {
    background-color: #ffffff;
    color: var(--brand-blue);
    text-align: right;
    padding-top: 35px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
    border-top: 0px solid #eeeeee;
    border-bottom: 0px solid #eeeeee;
}

/* ==========================================================================
   3. SCHRÄGES 4-SPALTEN-LAYOUT (INTEGRIERTE 3PX TRENNLINIEN)
   ========================================================================== */
.diagonal-grid {
    display: flex;
    width: 100%;
    min-height: 55vh;
    background-color: transparent;
    overflow: hidden;
    flex: 1;
}

.grid-box {
    flex: 1;
    position: relative;
    transition: transform 0.4s ease;
    height: 100%;
    min-height: 450px;
}

/* Box 3 (Prüfung & Wartung) bekommt wunschgemäß mehr Breite */
.diagonal-grid .grid-box:nth-child(3) {
    flex: 1.5;
}

/* --- MESSERSCHARFE SCHNITTE MIT INTEGRIERTEN LINEN --- */

/* Box 1: Metallbau Text */
.diagonal-grid .grid-box:nth-child(1) {
    background-color: var(--brand-blue);
    clip-path: polygon(0 0, 100% 0, calc(100% - 80px) 100%, 0 100%);
    margin-right: -80px;
    z-index: 4;
}

/* Box 2: Rotes Gerüst Bild */
.diagonal-grid .grid-box:nth-child(2) {
    clip-path: polygon(80px 0, 100% 0, calc(100% - 80px) 100%, 0 100%);
    margin-right: -80px;
    z-index: 3;
}

/* Box 3: Prüfung & Wartung Text */
.diagonal-grid .grid-box:nth-child(3) {
    background-color: var(--brand-blue);
    clip-path: polygon(80px 0, 100% 0, calc(100% - 80px) 100%, 0 100%);
    margin-right: -80px;
    z-index: 2;
}

/* Box 4: Weißes Tor Bild */
.diagonal-grid .grid-box:nth-child(4) {
    clip-path: polygon(80px 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

/* --- DIE 3PX WEISSEN LINIEN DIREKT AN DEN KANTEN --- */
/* Jede Box (außer der letzten) bekommt ein schräges Pseudo-Element, das den rechten Rand markiert */
.diagonal-grid .grid-box:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -40px; /* Platziert die Kante exakt im Schnittbereich */
    width: 80px;
    height: 150%;
    background: inherit; /* Übernimmt die Farbe/das Bild der Box */
    transform: skewX(-14deg); /* Folgt exakt dem vordefinierten Winkel */
    z-index: 100;
    /* Der Trick: Ein rechter, weißer Rahmen bildet die feine Trennlinie */
    border-right: 10px solid #ffffff; 
}

/* KORREKTUR FÜR BOX 2: Damit das Gerüst-Bild nicht in der Schräge doppelt */
.diagonal-grid .grid-box:nth-child(2)::after {
    background-image: url('../img/bild_metallbau.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 100;
}

/* ==========================================================================
   4. INHALT DER TEXT-BOXEN & CHECKLISTEN
   ========================================================================== */
.text-box {
    color: var(--text-light); 
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 5; /* Text liegt immer über den schrägen Kanten */
}

.box-content {
    width: 100%;
    /* Schützt den Text vor den Schrägen links und rechts */
    padding: 40px 60px; 
}

/* Die breite Box 3 bekommt links etwas mehr Puffer, damit nichts an die Schräge stößt */
.diagonal-grid .grid-box:nth-child(3) .box-content {
    padding-left: 80px;
}

.box-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.box-content h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 25px;
    opacity: 0.95;
}

.checkmark-list {
    list-style: none;
}

.checkmark-list li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkmark-list li::before {
    content: "✓";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}


/* ==========================================================================
   5. BILD-BOXEN (HINTERGRÜNDE)
   ========================================================================== */
.image-box {
    background-size: cover;
    background-position: left;
    width: 100%;
    height: 100%;
}

.image-metallbau {
    background-image: url('../img/bild_metallbau.jpg');
}

.image-brandschutz {
    background-image: url('../img/bild_brandschutz.jpg');
}

/* ==========================================================================
   5b. WEISSER TRENNBALKEN
   ========================================================================== */
.white-spacer {
    background-color: #ffffff;
    height: 20px;
    width: 100%;
    position: relative;
    z-index: 9;
}

/* ==========================================================================
   6. 4-SPALTIGER ANTHRAZIT-FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--anthrazit);
    color: var(--brand-blue);
    padding: 60px 20px 40px 20px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1fr 1fr 1.2fr; 
    gap: 40px;
}

.footer-column {
   
    display: flex;
    flex-direction: column;
}

.footer-column h2 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-blue);
    font-weight: 100;
}

.footer-logo .logo-footer {
    max-height: 40px;
    width: auto;
    align-self: flex-start;
    filter: brightness(1) invert(0); 
     margin-top: 10px; /* Bewegt das Logo um 15 Pixel nach unten */

}

.footer-address address {
    font-style: normal;
}

.footer-address p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--brand-blue);
}

.footer-contact-links {
    text-decoration: none;
    margin-top: 12px;
}

.footer-contact-links a {
    text-decoration: none;
    color: var(--brand-blue);
    display: inline-block;
    margin-bottom: 8px;
    transition: padding-left 0.2s ease, opacity 0.2s ease;
}

.footer-contact-links a:hover {
    opacity: 1;
    text-decoration: none;
     font-weight: bold;
    padding-left: 5px;

}

.footer-icon {
    margin-right: 4px;
}

.footer-brand {
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-values {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    line-height: 1.5;
    color: var(--brand-blue);
}

.footer-domain {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--brand-blue);
    margin-bottom: 15px;
}

.footer-legal {
  margin-top: 80px;
}

.footer-legal ul {
    list-style: none;
}

.footer-legal li {
    margin-bottom: 12px;
}

.footer-legal a {
    color: var(--brand-blue);
   text-decoration: none;
    font-size: 1rem;
    transition: padding-left 0.2s ease, opacity 0.2s ease;
    display: inline-block;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--brand-blue);
     font-weight: bold;
    padding-left: 5px;
    text-decoration: none;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75); 
    padding-top: 10px;
    color: var(--brand-blue);
}

.checkmark-list-footer {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkmark-list-footer li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-blue); /* Textfarbe im Footer passend zum Markenblau */
}

.checkmark-list-footer li::before {
    content: "✓";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* Verhindert, dass der Kreis bei Textumbruch gequetscht wird */
    border: 2px solid var(--brand-blue); /* Blauer Kreis passend zum Markenblau */
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--brand-blue); /* Blauer Haken */
}

/* ==========================================================================
   7. RESPONSIVE ANPASSUNGEN (MOBILE & TABLET BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
    .diagonal-grid {
        flex-direction: column;
    }

    .grid-box {
        clip-path: none !important;
        margin-right: 0 !important;
        min-height: auto;
        padding: 45px 25px;
    }

    .image-box {
        height: 280px;
    }

    .diagonal-grid .grid-box:nth-child(1) .box-content,
    .diagonal-grid .grid-box:nth-child(3) .box-content {
        padding: 0;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .address-area {
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo .logo-footer {
        align-self: center;
    }

    .footer-brand {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 25px;
        align-items: center;
    }
}

.responsive-svg {
  width: auto;
  height: 80px;
  max-height: 80px; /* Optional: maximale Größe begrenzen */
}