/* ====== BLOCK 1: DESIGN-VARIABLEN, RESET & RANDLOSER HEADER ====== */

:root {
    --bg-dark: #11161B;        /* Dunkles, technisches Anthrazit */
    --bg-light: #F8FAFC;       /* Sehr helles, sauberes Industrie-Grau */
    --text-dark: #0F172A;      /* Fast Schwarz für maximale Lesbarkeit */
    --text-muted: #475569;     /* Dezentes Schiefergrau für Fließtexte */
    --accent-blue: #005A9C;    /* Markantes Signalblau (für helle Hintergründe) */
    --accent-blue-light: #60A5FA; /* Helles Stahlblau (für dunkle Hintergründe, >7:1 Kontrast) */
    --accent-blue-hover: #004475;
    --border-color: #E2E8F0;   /* Feines Hellgrau für saubere Kanten */
}

/* Globale Resets */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    box-sizing: border-box;
}

/* Schwebende Industrie-Navigation */
.industry-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 2px solid var(--accent-blue);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    height: 65px;
    position: relative;
    box-sizing: border-box;
}

.industry-logo {
    font-size: 1.1em;
    letter-spacing: 1px;
    color: var(--text-dark);
    font-weight: bold;
}

.logo-bold {
    font-weight: 800;
    color: var(--accent-blue);
}

.logo-badge {
    font-size: 0.65em;
    background: var(--bg-dark);
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: bold;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-blue);
}

/* Burger Steuerung */
.menu-toggle { display: none; }
.burger-label { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger-label span { display: block; width: 25px; height: 3px; background: var(--text-dark); border-radius: 2px; }

/* ====== COMPACT INDUSTRIAL BANNER ====== */
.industry-banner {
    margin-top: 65px;
    width: 100%;
    background-color: var(--bg-dark);
    color: #FFFFFF;
    padding: 60px 0;
    box-sizing: border-box;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.banner-text {
    width: 100%;
    max-width: 800px;
    text-align: left;
}

.banner-sub {
    color: var(--accent-blue-light); /* Kontrast > 7:1 auf #11161B */
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 15px;
}

.banner-text h1 {
    font-size: 2.8em;
    margin: 0 0 20px 0;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 1.2;
}

.banner-lead {
    color: #CBD5E1;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.btn-industry {
    display: inline-block;
    background: var(--accent-blue);
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 28px;
    font-size: 0.95em;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-industry:hover { background: var(--accent-blue-hover); }

.banner-image-row {
    width: 100%;
    height: 400px;
    background-image: url('../img/schrauben-800-400.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

/* ====== BLOCK 2: INHALTE, FORMULAR & FOOTER ====== */

.industry-features {
    padding: 80px 20px;
    background-color: #FFFFFF;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,23,42,0.05);
}

.feature-card {
    padding: 50px 40px;
    text-align: left;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 2;
}

.card-num {
    font-size: 2.5em;
    font-weight: 900;
    display: block;
    margin-bottom: 15px;
    /* opacity: 0.3 entfernt, damit der Farbkontrast barrierefrei bleibt */
}

.feature-card h2,
.feature-card h3 {
    color: #FFFFFF !important;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-card p {
    color: #F1F5F9 !important;
    font-size: 0.95em;
    margin: 0;
    line-height: 1.6;
}

/* Barrierefreie Blautöne (> 6,5:1 Kontrast) */
.feature-card:nth-child(1) { background-color: #0B1E36; }
.feature-card:nth-child(1) .card-num { color: #94A3B8; }

.feature-card:nth-child(2) { background-color: #005A9C; border-left: 1px solid rgba(255,255,255,0.15); border-right: 1px solid rgba(255,255,255,0.15); }
.feature-card:nth-child(2) .card-num { color: #E0F2FE; }

.feature-card:nth-child(3) { background-color: #004475; }
.feature-card:nth-child(3) .card-num { color: #E0F2FE; }

/* Rechner Sektion */
.calculator-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.calculator-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.calc-subtitle {
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}

.calculator-container h2 {
    font-size: 1.4em;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 15px;
}

.calc-intro {
    color: var(--text-muted);
    font-size: 1em;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.calculator-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    max-width: 750px;
    margin: 0 auto;
    padding: 40px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(15,23,42,0.02);
}

.calc-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.calc-group {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
}

.calc-group label {
    font-size: 0.9em;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: bold;
}

.calculator-card select {
    padding: 12px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    font-size: 1em;
    box-sizing: border-box;
}

.btn-calc {
    width: 100%;
    padding: 14px;
    background: var(--accent-blue);
    border: none;
    color: #FFFFFF;
    font-size: 1em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-calc:hover { background: var(--accent-blue-hover); }

/* Footer */
.industry-footer {
    background-color: var(--bg-dark);
    color: #FFFFFF;
    padding: 70px 20px 20px 20px;
    border-top: 3px solid var(--accent-blue);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-column { flex: 1; min-width: 250px; }
.brand-space { flex: 1.5; }

.footer-logo {
    font-size: 1.2em;
    letter-spacing: 1px;
    color: #FFFFFF;
    display: block;
    margin-bottom: 15px;
}

/* Im dunklen Footer helleres Stahlblau für vollen Kontrast */
.industry-footer .logo-bold {
    color: var(--accent-blue-light);
}

.footer-heading,
.industry-footer h4 {
    color: #FFFFFF;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #273542;
    padding-bottom: 6px;
}

.brand-space p {
    color: #CBD5E1;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #CBD5E1; text-decoration: none; font-size: 0.95em; transition: all 0.2s; }
.footer-links a:hover { color: var(--accent-blue-light); padding-left: 4px; }

.footer-bottom {
    max-width: 1400px;
    margin: 50px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #273542;
    text-align: center;
    font-size: 0.85em;
    color: #94A3B8; /* Kontrast > 6,5:1 statt #64748B */
}

/* Tastatur-Fokus für Barrierefreiheit */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 3px solid var(--accent-blue-light);
    outline-offset: 2px;
}

/* ====== SMARTPHONE- & MEDIA-QUERIES ====== */
@media (max-width: 900px) {
    .banner-container { flex-direction: column; gap: 30px; }
    .banner-text { width: 100%; }
}

/* ====== SMARTPHONE- & MEDIA-QUERIES ====== */
@media (max-width: 900px) {
    .banner-container { flex-direction: column; gap: 30px; }
    .banner-text { width: 100%; }
}

@media (max-width: 768px) {
    .industry-banner {
        padding: 40px 20px;
        width: auto;
    }

    .banner-container {
        padding: 0;
        width: 100%;
    }
    
    .banner-text h1 { 
        font-size: 2em; 
    }
    
    .banner-image-row { 
        height: 200px; 
        width: 100%;
    }

    .burger-label { display: flex; }

    .nav-links {
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links li { width: 100%; text-align: center; border-bottom: 1px solid var(--border-color); }
    .nav-links a { display: block; padding: 15px 0; color: var(--text-dark); }

    .menu-toggle:checked ~ .nav-links {
        max-height: 250px;
    }
    
    .feature-card { border: none !important; border-bottom: 1px solid rgba(255,255,255,0.15) !important; }
    .footer-container { flex-direction: column; gap: 30px; }
    .footer-column { min-width: 100%; }
}
