/* ===================================
   ERUNG GmbH - Industrial Stylesheet
   Version: 2.0 - Industrial Design
   ================================== */

/* CSS Custom Properties (Industrial Variables) */
:root {
    /* Industrielle Primärfarben */
    --industrial-primary: #1B365D;        /* Dunkles Stahlblau */
    --industrial-secondary: #2E4A66;      /* Mittleres Stahlblau */
    --industrial-accent: #3A5F7D;         /* Helles Stahlblau */
    
    /* Metallische Akzente */
    --metal-steel: #6B7784;               /* Stahlgrau */
    --metal-iron: #4A525A;                /* Eisengrau */
    --metal-chrome: #8B9298;              /* Chromsilber */
    
    /* Industrielle Signalfarben */
    --safety-orange: #E85A2B;             /* Sicherheitsorange */
    --warning-yellow: #D4A20A;            /* Warngelb */
    --success-green: #2D7D47;             /* Industriegrün */
    
    /* Neutrale Industrie-Töne */
    --concrete-light: #E8EAEC;            /* Heller Beton */
    --concrete-medium: #D1D5D8;           /* Beton */
    --concrete-dark: #A8AEB3;             /* Dunkler Beton */
    
    /* Text Industrie */
    --text-primary: #1A1D21;              /* Anthrazit */
    --text-secondary: #4A525A;            /* Eisengrau */
    --text-light: #6B7784;                /* Stahlgrau */
    
    /* Industrielle Backgrounds */
    --bg-primary: #F8F9FA;                /* Sehr helles Grau */
    --bg-secondary: #FFFFFF;              /* Weiß */
    --bg-dark: #2C3E50;                   /* Dunkler Industriehintergrund */
    
    /* Borders & Shadows */
    --border-industrial: #A8AEB3;         /* Industrieller Rahmen */
    --border-light: #D1D5D8;              /* Heller Rahmen */
    --shadow-industrial: rgba(27, 54, 93, 0.15);  /* Industrieller Schatten */
    --shadow-heavy: rgba(27, 54, 93, 0.25);       /* Schwerer Schatten */
    
    /* Layout */
    --section-padding: 8rem 0;
    --container-max-width: 1200px;
    --header-height: 80px;
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 12px;
}

/* ===================================
   RESET & BASE STYLES
   ================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   LAYOUT COMPONENTS
   ================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.page-wrapper {
    padding-top: var(--header-height);
    min-height: 100vh;
}

.page-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   TYPOGRAPHY
   ================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    font-size: 1.1rem;
    color: var(--safety-orange);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--industrial-primary);
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.page-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--industrial-primary);
}

.page-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.4;
    max-width: 800px;
}

/* ===================================
   HEADER COMPONENT
   ================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-industrial);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-industrial);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 30px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.nav-main {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-main a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--safety-orange);
    transition: width 0.3s ease;
}

.nav-main a:hover::after,
.nav-main a.active::after {
    width: 100%;
}

.nav-main a:hover,
.nav-main a.active {
    color: var(--industrial-primary);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.language-toggle {
    background: var(--concrete-light);
    border: 2px solid var(--border-industrial);
    border-radius: var(--border-radius-small);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-toggle:hover {
    background: var(--industrial-primary);
    color: white;
    border-color: var(--industrial-primary);
}

.cta-header {
    background: var(--safety-orange);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(232, 90, 43, 0.3);
}

.cta-header:hover {
    background: #d04818;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 90, 43, 0.4);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-industrial);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.mobile-nav a:hover {
    background: var(--concrete-light);
    color: var(--industrial-primary);
}

/* ===================================
   BUTTON COMPONENTS
   ================================== */

.btn-primary {
    background: var(--industrial-primary);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px var(--shadow-industrial);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--industrial-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-heavy);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.btn-secondary2 {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary2:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: var(--border-radius-small);
}

/* ===================================
   CARD COMPONENTS
   ================================== */

.card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-medium);
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    border: 2px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-industrial);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--concrete-light);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 0.5;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-heavy);
    border-color: var(--industrial-accent);
}

.card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: var(--industrial-primary);
    border-radius: var(--border-radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px var(--shadow-industrial);
    transition: all 0.4s ease;
}

.card:hover .card-icon {
    background: var(--safety-orange);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(232, 90, 43, 0.3);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
}

/* ===================================
   GRID SYSTEMS
   ================================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===================================
   SECTION LAYOUTS
   ================================== */

.section {
    padding: var(--section-padding);
}

.section-white {
    background: var(--bg-secondary);
}

.section-gray {
    background: var(--bg-primary);
}

.section-dark {
    background: var(--bg-dark);
    color: white;
}

.section-dark .section-title {
    color: white;
}

.section-dark .section-subtitle {
    color: var(--concrete-medium);
}

.section-centered {
    text-align: center;
}

/* ===================================
   FOOTER COMPONENT
   ================================== */

.footer {
    background: var(--bg-dark);
    padding: 4rem 0 2rem;
    color: white;
    border-top: 3px solid var(--industrial-primary);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--concrete-medium);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--safety-orange);
}

.footer-bottom {
    font-size: 0.8rem;
    color: var(--metal-chrome);
}

/* ===================================
   UTILITY CLASSES
   ================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.hidden { display: none; }
.visible { display: block; }

/* Industrial Accent Classes */
.accent-orange { border-left: 4px solid var(--safety-orange); }
.accent-yellow { border-left: 4px solid var(--warning-yellow); }
.accent-green { border-left: 4px solid var(--success-green); }
.accent-steel { border-left: 4px solid var(--metal-steel); }

/* ===================================
   ANIMATIONS
   ================================== */

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInFromLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in {
    animation: slideInFromLeft 0.6s ease-out;
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }
    
    .nav-main {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .header-actions {
        order: 3;
        gap: 0.75rem;
    }
    
    .logo {
        order: 1;
    }

    .logo img {
        height: 32px;
        max-width: 140px;
    }
    
    .cta-header {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .language-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-auto {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.75rem 1rem;
    }
    
    .cta-header {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .language-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 50px;
    }
    
    .logo img {
        height: 28px;
        max-width: 120px;
    }
}

/* ===================================
   CUSTOM SCROLLBAR (Industrial Style)
   ================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--concrete-light);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--metal-steel);
    border-radius: 6px;
    border: 2px solid var(--concrete-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--industrial-primary);
}

/* ===================================
   INDUSTRIAL SPECIFIC COMPONENTS
   ================================== */

/* Industrial Service Features List */
.service-features {
    list-style: none;
    text-align: left;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-features li::before {
    content: "●";
    color: var(--safety-orange);
    font-weight: bold;
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Industrial Tags */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.industry-tag {
    background: var(--concrete-light);
    color: var(--industrial-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-industrial);
    transition: all 0.2s ease;
}

.industry-tag:hover {
    background: var(--industrial-primary);
    color: white;
    transform: scale(1.05);
}

/* Brand Items */
.brand-item {
    background: var(--concrete-light);
    border: 2px solid var(--border-industrial);
    color: var(--industrial-primary);
    border-radius: var(--border-radius-small);
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.brand-item:hover {
    background: var(--industrial-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 6px var(--shadow-industrial);
}