/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #e83128;
    --color-secondary: #ffffff;
    --color-text: #3b3b3b;
    --color-bg: #ffffff;
    --color-bg-light: #f5f5f5;
    --color-accent: #0080FE;
    --spacing-unit: 1rem;
    --max-width: 1200px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Skip Link (WCAG) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header */
.header {
    background: var(--color-bg);
    border-bottom: 1px solid #e0e0e0;
}

.header-top {
    background: var(--color-bg);
    border-bottom: 1px solid #e0e0e0;
    padding: calc(var(--spacing-unit) * 0.5) 0;
}

.header-contact {
    display: flex;
    justify-content: flex-end;
    gap: calc(var(--spacing-unit) * 1.5);
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.header-main {
    padding: var(--spacing-unit) 0;
    position: relative;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--color-text);
    text-transform: lowercase;
}

.logo-img {
    max-height: 70px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    min-width: 44px;
    min-height: 44px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-unit) * 1.5);
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    padding: 0;
    text-align: center;
    background: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

/* Hero Parallax Background */
.hero-parallax {
    max-height: 600px;
    min-height: 600px;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.hero-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    padding: calc(var(--spacing-unit) * 6) var(--spacing-unit);
    position: relative;
    z-index: 2;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: calc(var(--spacing-unit) * 3);
    align-items: start;
}

.column-images {
    position: sticky;
    top: calc(var(--spacing-unit) * 2);
}

.image-slider {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.image-slide.active {
    opacity: 1;
}

.image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.column-content h2 {
    margin-top: 0;
}

/* Footer Image Section */
.footer-image-section {
    padding: calc(var(--spacing-unit) * 3) 0;
    background: var(--color-bg-light);
}

.footer-image {
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Section Images */
.section-image {
    margin: calc(var(--spacing-unit) * 3) 0;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    object-fit: contain;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-unit);
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #ffffff;
    margin: var(--spacing-unit) auto;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: calc(var(--spacing-unit) * 2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-secondary);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    min-height: 44px;
    min-width: 44px;
    transition: opacity 0.3s, transform 0.2s;
    border-radius: 4px;
}

.btn:hover,
.btn:focus {
    opacity: 0.9;
    transform: translateY(-2px);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-secondary);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--color-primary);
    color: var(--color-secondary);
}

/* Content Sections */
.content-section {
    padding: calc(var(--spacing-unit) * 4) 0;
}

.content-section.bg-light {
    background: var(--color-bg-light);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-unit);
    font-weight: bold;
    color: var(--color-text);
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    margin-top: calc(var(--spacing-unit) * 1.5);
    font-weight: bold;
}

.content-section p {
    margin-bottom: var(--spacing-unit);
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.service-card {
    background: var(--color-bg);
    padding: calc(var(--spacing-unit) * 2);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Process Flow */
.process-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
    background: var(--color-bg);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #e0e0e0;
    align-self: stretch;
}

.process-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-unit);
}

.process-arrow {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: bold;
    display: flex;
    align-items: center;
    align-self: stretch;
}

/* Workflow Steps */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.workflow-step {
    background: var(--color-bg);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    position: relative;
}


.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-secondary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: var(--spacing-unit);
}

/* Feature Highlight */
.feature-highlight {
    background: var(--color-bg);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    margin-top: calc(var(--spacing-unit) * 2);
}

.feature-content ul {
    margin-left: calc(var(--spacing-unit) * 2);
    margin-top: var(--spacing-unit);
    list-style: none;
    padding-left: 0;
}

.feature-content li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
}

.benefit-item {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.benefit-item h4 {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* Tech Specs */
.tech-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.tech-item {
    background: var(--color-bg);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tech-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}

.tech-item ul {
    margin-left: calc(var(--spacing-unit) * 2);
    margin-top: var(--spacing-unit);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 2);
    justify-content: center;
}

/* Keywords Grid */
.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.keyword-item {
    background: var(--color-bg);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.keyword-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}

/* Footer Services */
.footer-services {
    margin-top: var(--spacing-unit);
    font-size: 0.9rem;
    color: #666;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Lead Text */
.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: #666;
}

/* Responsive Design - Breakpoints */
/* Laptop: 992px - 1200px */
@media (min-width: 992px) and (max-width: 1200px) {
    .logo-img {
        max-height: 65px;
        max-width: 190px;
    }
    
    .nav-menu {
        gap: calc(var(--spacing-unit) * 1);
    }
    
    .nav-menu a {
        padding: 8px 14px;
        font-size: 0.95rem;
    }
    
    .header-contact {
        font-size: 0.85rem;
    }
}

/* Tablet: 768px - 991px */
@media (max-width: 991px) {
    .process-flow {
        flex-direction: column;
        align-items: center;
    }
    
    .process-step {
        width: 100%;
        max-width: 100%;
    }
    
    /* Erste Card */
    .process-flow > .process-step:nth-child(1) {
        order: 0;
    }
    
    /* Erster Pfeil nach erster Card */
    .process-flow > .process-arrow:nth-child(2) {
        order: 1;
        transform: rotate(90deg);
        margin: calc(var(--spacing-unit) * 0.5) 0;
        align-self: center;
        width: auto;
    }
    
    /* Zweite Card */
    .process-flow > .process-step:nth-child(3) {
        order: 2;
    }
    
    /* Zweiter Pfeil nach zweiter Card */
    .process-flow > .process-arrow:nth-child(4) {
        order: 3;
        transform: rotate(90deg);
        margin: calc(var(--spacing-unit) * 0.5) 0;
        align-self: center;
        width: auto;
    }
    
    /* Dritte Card */
    .process-flow > .process-step:nth-child(5) {
        order: 4;
    }
    .logo-img {
        max-height: 60px;
        max-width: 180px;
    }
    
    .logo-text {
        font-size: 1.75rem;
    }
    
    .nav-menu {
        gap: calc(var(--spacing-unit) * 1);
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .header-contact {
        font-size: 0.8rem;
        gap: calc(var(--spacing-unit) * 1);
    }
    
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .column-images {
        position: relative;
        top: 0;
    }
    
    .image-slider {
        height: 450px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
    }
    
    .tech-specs {
        grid-template-columns: 1fr;
    }
}

/* Mobile: < 768px */
@media (max-width: 768px) {
    .logo-img {
        max-height: 50px;
        max-width: 150px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
    
    .image-slider {
        height: 400px;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .process-flow {
        flex-direction: column;
        align-items: center;
    }
    
    .process-step {
        width: 100%;
        max-width: 100%;
    }
    
    /* Erste Card */
    .process-flow > .process-step:nth-child(1) {
        order: 0;
    }
    
    /* Erster Pfeil nach erster Card */
    .process-flow > .process-arrow:nth-child(2) {
        order: 1;
        transform: rotate(90deg);
        margin: calc(var(--spacing-unit) * 0.5) 0;
        align-self: center;
        width: auto;
    }
    
    /* Zweite Card */
    .process-flow > .process-step:nth-child(3) {
        order: 2;
    }
    
    /* Zweiter Pfeil nach zweiter Card */
    .process-flow > .process-arrow:nth-child(4) {
        order: 3;
        transform: rotate(90deg);
        margin: calc(var(--spacing-unit) * 0.5) 0;
        align-self: center;
        width: auto;
    }
    
    /* Dritte Card */
    .process-flow > .process-step:nth-child(5) {
        order: 4;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
    font-size: 1.25rem;
}

.service-card p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* Services List */
.services-list {
    list-style: none;
    margin: var(--spacing-unit) 0;
    padding-left: 0;
}

.services-list li {
    padding: calc(var(--spacing-unit) * 0.5) 0;
    padding-left: calc(var(--spacing-unit) * 1.5);
    position: relative;
}

.services-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Branches Grid */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 2);
}

.branch-item {
    padding: calc(var(--spacing-unit) * 1.5);
    background: var(--color-bg);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: calc(var(--spacing-unit) * 4) 0;
    background: var(--color-bg-light);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.contact-item {
    background: var(--color-bg);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    text-align: center;
}

.contact-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
    font-size: 1.125rem;
}

.contact-item a {
    color: var(--color-text);
    text-decoration: none;
}

.contact-item a:hover,
.contact-item a:focus {
    color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: var(--color-secondary);
    padding: calc(var(--spacing-unit) * 3) 0;
    margin-top: calc(var(--spacing-unit) * 4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-section h3 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-unit);
    font-size: 1.125rem;
}

.footer-section p {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 0.875rem;
}

.footer-section a {
    color: var(--color-secondary);
    text-decoration: none;
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.footer-nav ul {
    list-style: none;
    padding-left: 0;
}

.footer-nav li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.footer-copyright {
    text-align: center;
    font-size: 0.875rem;
    color: #999;
    margin-top: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid #555;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Footer Social Links */
.footer-social {
    margin-top: calc(var(--spacing-unit) * 2);
}

.footer-social p {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 0.875rem;
}

.social-links {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
    flex-wrap: wrap;
}

.social-links li {
    margin-bottom: 0;
}

.social-links a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.social-links a:hover,
.social-links a:focus {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Footer ISO Logo */
.footer-iso-logo {
    margin-top: calc(var(--spacing-unit) * 2);
}

.iso-logo-img {
    max-width: 120px;
    height: auto;
    display: block;
}

/* Responsive Navigation - Tablet & Mobile */
/* Tablet: 768px - 991px */
@media (max-width: 991px) {
    .header-main {
        padding: calc(var(--spacing-unit) * 0.75) 0;
    }
    
    .header-contact {
        justify-content: center;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .nav {
        flex-wrap: wrap;
    }
    
    .nav-toggle {
        display: flex;
        order: 2;
    }
    
    .nav-brand {
        order: 1;
        flex: 1;
        min-width: 0;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + var(--spacing-unit));
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--spacing-unit);
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        width: 100%;
        order: 3;
        margin-top: var(--spacing-unit);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: calc(var(--spacing-unit) * 1.5);
        width: 100%;
        display: block;
    }
}

/* Mobile: < 768px */
@media (max-width: 768px) {
    .header-main {
        padding: calc(var(--spacing-unit) * 0.5) 0;
    }
    
    .header-top {
        padding: calc(var(--spacing-unit) * 0.25) 0;
    }
    
    .header-contact {
        justify-content: center;
        font-size: 0.75rem;
        gap: calc(var(--spacing-unit) * 0.75);
    }
    
    .contact-link {
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* WCAG: Focus Indicators */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* WCAG: Minimum Touch Target Size */
button,
a.btn,
input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .hero-cta {
        display: none;
    }
}
