/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #D40A10;
    --primary-white: #FFFFFF;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #F5F5F5;
    --bg-dark: #1a1a1a;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.main-header {
    background-color: #c9c2b4;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.main-nav a:hover {
    color: var(--primary-red);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #d40a10;
    border: none;
    cursor: pointer;
    padding: 12px;
    width: 50px;
    height: 50px;
    border-radius: 0;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    color: var(--primary-white);
    z-index: 3;
    padding: 20px;
    position: absolute;
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 500px;
}

.hero-slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 48px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

.hero-title {
    font-size: 56px;
    font-weight: 300;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    white-space: nowrap;
    color: #FFFFFF;
}

.hero-title br {
    display: block;
}

.hero-title-red {
    color: #d40a10;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
    color: #000000;
    letter-spacing: 3px;
    line-height: 1.8;
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.section-subtitle {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    color: #d40a10;
    line-height: 1.1;
}

.section-intro {
    text-align: center;
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.content-grid.reverse {
    grid-template-columns: 1fr 1fr;
}

.content-grid.reverse .content-image {
    order: -1;
}

.content-item {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-item h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.content-item p {
    margin-bottom: 15px;
}

.content-item strong {
    font-weight: 600;
    color: var(--text-dark);
}

.content-item a {
    color: var(--primary-red);
    text-decoration: none;
}

.content-item a:hover {
    text-decoration: underline;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Service Section */
.service-section {
    background-color: var(--bg-light);
}

.service-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.service-image {
    width: 100%;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-text {
    margin-top: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Unternehmen Section */
.unternehmen-section {
    background-color: var(--primary-white);
}

.portrait-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.portrait-item {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.portrait-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.unternehmen-text {
    margin-top: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Werksverkauf Section */
.werksverkauf-section {
    background-color: var(--bg-light);
}

.werksverkauf-image {
    width: 100%;
    margin: 0 auto 40px;
    max-height: 500px;
    max-width: 1200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.werksverkauf-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.werksverkauf-section .tagline {
    font-size: 20px;
    text-align: center;
    margin-top: 30px;
    color: var(--primary-red);
}

/* Karriere Section */
.karriere-section {
    background-color: var(--primary-white);
}

.karriere-image {
    width: 100%;
    margin: 0 auto 40px;
    max-height: 500px;
    max-width: 1200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.karriere-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.job-accordion {
    margin-top: 40px;
}

.job-accordion-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.job-accordion-header {
    width: 100%;
    padding: 20px;
    background-color: var(--bg-light);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: background-color 0.3s;
}

.job-accordion-header:hover {
    background-color: #e8e8e8;
}

.job-accordion-header[aria-expanded="true"] {
    background-color: #e8e8e8;
}

.job-accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
    color: var(--primary-red);
}

.job-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.job-accordion-content.active {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.job-listing {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.job-listing h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.job-details {
    padding: 20px;
    background-color: var(--primary-white);
}

.job-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.job-details-column {
    display: flex;
    flex-direction: column;
}

.job-details-column h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.job-details-column ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.job-details-column li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.job-application {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

/* Partner Section */
.partner-section {
    padding: 0;
    background-color: transparent;
    width: 100%;
    overflow: hidden;
}

.partner-logos {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

.partner-logo-item {
    flex: 1;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.partner-logo-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.partner-logos img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    display: block;
    padding: 0;
    margin: 0;
}

/* Footer */
.main-footer {
    background-color: #E8E0D6;
    color: var(--text-dark);
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 27px;
    font-weight: 300;
    color: #d40a10;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-column p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-column a {
    color: var(--text-dark);
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--primary-red);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Impressum Page */
.impressum-content {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.impressum-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #000000;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.impressum-section {
    margin-bottom: 30px;
}

.impressum-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 15px;
}

.impressum-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.impressum-section a {
    color: var(--primary-red);
    text-decoration: none;
}

.impressum-section a:hover {
    text-decoration: underline;
}

/* Datenschutz Page */
.datenschutz-content {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.datenschutz-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #000000;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.datenschutz-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
}

.datenschutz-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #000000;
    margin-top: 25px;
    margin-bottom: 15px;
}

.datenschutz-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.datenschutz-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style: disc;
}

.datenschutz-content ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 8px;
}

.datenschutz-content a {
    color: var(--primary-red);
    text-decoration: none;
}

.datenschutz-content a:hover {
    text-decoration: underline;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-gray);
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--text-dark);
}

/* Cookie Bar */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-white);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    padding: 30px 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-bar-content {
    max-width: 900px;
    margin: 0 auto;
}

.cookie-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cookie-bar-header h2 {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    color: var(--text-dark);
}

.cookie-bar-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.cookie-bar-close:hover {
    color: var(--text-dark);
}

.cookie-bar-description {
    margin-bottom: 25px;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 15px;
}

.cookie-options {
    margin-bottom: 25px;
}

.cookie-option-item {
    margin-bottom: 15px;
}

.cookie-option-label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.cookie-option-label:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-red);
}

.cookie-option-label input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-option-label input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-option-content {
    flex: 1;
}

.cookie-option-content strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.cookie-option-content span {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

.cookie-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Lato', sans-serif;
}

.cookie-btn-accept-all {
    background-color: var(--primary-red);
    color: var(--primary-white);
}

.cookie-btn-accept-all:hover {
    background-color: #b3090e;
}

.cookie-btn-save {
    background-color: var(--text-gray);
    color: var(--primary-white);
}

.cookie-btn-save:hover {
    background-color: var(--text-dark);
}

.cookie-help-link {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
}

.cookie-help-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-bar {
        padding: 20px 15px;
    }
    
    .cookie-bar-header h2 {
        font-size: 20px;
    }
    
    .cookie-bar-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-help-link {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        display: block;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #c9c2b4;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero Slider Mobile */
    .hero-slider {
        height: 40vh;
        min-height: 300px;
    }

    .hero-content {
        right: 10%;
        padding: 15px;
    }

    .hero-title {
        font-size: 28px;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    /* Partner Logos Mobile */
    .partner-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-logo-item {
        max-width: none;
        min-height: 80px;
    }

    .partner-logos img {
        padding: 15px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-grid.reverse .content-image {
        order: 0;
    }

    .service-images {
        grid-template-columns: 1fr;
    }

    .portrait-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .job-details-grid {
        grid-template-columns: 1fr;
    }
    
    @media (max-width: 480px) {
        .hero-slider {
            height: 35vh;
            min-height: 250px;
        }

        .hero-title {
            font-size: 24px;
        }

        .portrait-grid {
            grid-template-columns: 1fr;
        }

        .partner-logo-item {
            min-height: 100px;
        }

        .partner-logos img {
            padding: 20px;
        }

        .section-subtitle {
            font-size: 1.5rem;
        }

        .werksverkauf-image, .karriere-image {
            max-height: 250px;
        }
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .content-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-subtitle {
        font-size: 1.8rem;
    }

    .werksverkauf-image, .karriere-image {
        max-height: 300px;
    }
}


