/* =================================================================== */
/* --- Stylesheet für Seite "Unternehmen" --- */
/* =================================================================== */

.unternehmen-page .hero-section {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.unternehmen-page .section-white {
    background-color: var(--weiss);
}

.unternehmen-page .section-light-gray {
    background-color: #f2f2f2;
}

.unternehmen-page .subheadline.red {
    color: var(--akzentfarbe);
    font-size: 1.1rem;
    font-weight: 600;
}

/* =================================================================== */
/* --- 1. Intro Sektion --- */
/* =================================================================== */
.un-intro-section .container {
    max-width: 1450px;
    text-align: left;
}

/* =================================================================== */
/* --- 2 & 3. Zwei-Spalten-Sektion --- */
/* =================================================================== */
.un-two-col-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7.5rem;
    align-items: center;
}

.un-two-col-section.reversed .image-column {
    order: -1;
}

.un-two-col-section .image-column img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* =================================================================== */
/* --- 4. Innovation Sektion --- */
/* =================================================================== */
.un-innovation-section {
    padding: 0;
}

.un-innovation-section .container-fullwidth {
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 100%;
}

.un-innovation-section .innovation-text-column {
    background-color: #434343;
    display: flex;
    flex-direction: column;
    padding: 50px 125px var(--spacing-xxl) var(--innovation-padding-left);
    padding-left: 60px;
    padding-top: 50px;
}

.innovation-text-column p {
    font-size: 17px;
    color: white;
}

.innovation-header h2 {
    font-size: 40px !important;
    width: 500px;
    line-height: normal;
    color: white;
}

.un-innovation-section .innovation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-sm);
}

.un-innovation-section .innovation-header .subheadline {
    margin-bottom: 0;
    color: var(--akzentfarbe);
    font-size: 1.1rem;
}

.un-innovation-section .made-in-germany {
    max-width: 150px;
    flex-shrink: 0;
}

.un-innovation-section .separator-line {
    border: none;
    height: 4px;
    background-color: var(--akzentfarbe);
    margin-bottom: var(--spacing-md);
    margin-left: calc(var(--innovation-padding-left) * -1);
}

.innovation-image-column {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    width: 800px;
}

/* =================================================================== */
/* --- 5. Historie / Zeitstrahl --- */
/* =================================================================== */
.un-history-section .container {
    max-width: 1100px;
    text-align: center;
}

.timeline {
    position: relative;
    margin-top: 4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #151515;
    z-index: 1;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    align-items: start;
    position: relative;
    margin-bottom: 5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-point {
    grid-column: 2;
    grid-row: 1;
    width: 30px;
    height: 30px;
    background-color: var(--akzentfarbe);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    align-self: start;
    position: relative;
    margin-top: 7px;
}

.timeline-point::after {
    content: '';
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-top: -2px;
}

.timeline-date {
    font-family: var(--font-headline);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--hauptfarbe);
    align-self: start;
    padding-top: 8px;
}

.timeline-content-wrapper {
    position: relative;
    align-self: start;
}

.timeline-arrow {
    position: absolute;
    top: 12px;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 3;
}

.timeline-content {
    background: var(--weiss);
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.timeline-image {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
}

.timeline-content h5 {
    font-size: 0.95rem;
    color: var(--akzentfarbe);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--hauptfarbe-3);
    margin: 0;
    line-height: 1.6;
}

.timeline-text-content {
    text-align: left;
}

/* Ungerade Items: Datum LINKS, Content RECHTS */
.timeline-item:nth-child(odd) .timeline-date {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
    padding-right: 2rem;
}

.timeline-item:nth-child(odd) .timeline-content-wrapper {
    grid-column: 3;
    grid-row: 1;
    margin-left: 2rem;
}

.timeline-item:nth-child(odd) .timeline-arrow {
    left: -12px;
    border-width: 10px 12px 10px 0;
    border-color: transparent var(--akzentfarbe) transparent transparent;
}

/* Gerade Items: Content LINKS, Datum RECHTS */
.timeline-item:nth-child(even) .timeline-date {
    grid-column: 3;
    grid-row: 1;
    text-align: left;
    padding-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content-wrapper {
    grid-column: 1;
    grid-row: 1;
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-arrow {
    right: -12px;
    border-width: 10px 0 10px 12px;
    border-color: transparent transparent transparent var(--akzentfarbe);
}

/* =================================================================== */
/* --- 6. Aktuelles / News --- */
/* =================================================================== */
.un-news-section .container {
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.news-card {
    background: #f9f9f9;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1),
    box-shadow 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-card .news-image-link img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

.news-content h5 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.news-content h5 a {
    transition: color 0.3s;
}

.news-content h5 a:hover {
    color: var(--akzentfarbe);
}

.news-more-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--akzentfarbe);
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.news-card:hover .news-more-link {
    transform: translateX(4px);
}

/* =================================================================== */
/* --- RESPONSIVE - KLEINER DESKTOP / KLEINE LAPTOPS (max-width: 1200px) --- */
/* =================================================================== */
@media (max-width: 1200px) {
    .un-two-col-section .container {
        gap: 5rem;
    }

    .un-innovation-section .container-fullwidth {
        grid-template-columns: 1fr 1.5fr;
    }

    .un-innovation-section .innovation-text-column {
        padding: 45px 80px var(--spacing-xxl) 50px;
    }

    .innovation-header h2 {
        font-size: 36px !important;
        width: 400px;
    }

    .innovation-image-column {
        width: 100%;
    }

    /* News Grid */
    .news-grid {
        gap: 1.5rem;
    }

    .news-card .news-image-link img {
        height: 200px;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - GROSSE TABLETS / LANDSCAPE TABLETS (max-width: 992px) --- */
/* =================================================================== */
@media (max-width: 992px) {
    /* Two Column Section */
    .un-two-col-section .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .un-two-col-section.reversed .image-column {
        order: 0;
    }

    /* Innovation Section */
    .un-innovation-section .container-fullwidth {
        grid-template-columns: 1fr;
    }

    .un-innovation-section .innovation-image-column {
        order: -1;
        min-height: 400px;
        width: 100%;
    }

    .un-innovation-section .innovation-text-column {
        padding: 50px var(--spacing-lg);
    }

    .innovation-header h2 {
        font-size: 32px !important;
        width: 100%;
    }

    .un-innovation-section .separator-line {
        margin-left: calc(var(--spacing-lg) * -1);
        margin-right: calc(var(--spacing-lg) * -1);
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .news-card .news-image-link img {
        height: 180px;
    }

    /* Timeline */
    .timeline-item {
        margin-bottom: 4rem;
    }

    .timeline-date {
        font-size: 1.4rem;
    }

    .timeline-content h5 {
        font-size: 0.9rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - NORMALE TABLETS / PORTRAIT TABLETS (max-width: 768px) --- */
/* =================================================================== */
@media (max-width: 768px) {
    /* Intro */
    .un-intro-section .container {
        text-align: left;
    }

    /* Innovation */
    .un-innovation-section .innovation-text-column {
        padding: 40px 2rem;
    }

    .innovation-header h2 {
        font-size: 28px !important;
    }

    .innovation-text-column p {
        font-size: 16px;
    }

    .un-innovation-section .innovation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .un-innovation-section .made-in-germany {
        max-width: 130px;
    }

    .un-innovation-section .innovation-image-column {
        min-height: 350px;
    }

    .un-innovation-section .separator-line {
        margin-left: -2rem;
        margin-right: -2rem;
    }

    /* Timeline - Umstellung auf einspaltiges Layout */
    .un-history-section .container {
        max-width: 100%;
        padding: 0 2rem;
    }

    .timeline {
        margin-top: 2.5rem;
    }

    .timeline::before {
        left: 15px;
        transform: none;
    }

    .timeline-item {
        display: grid;
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        gap: 0;
        margin-bottom: 3rem;
    }

    .timeline-point {
        grid-column: 1;
        grid-row: 1;
        width: 30px;
        height: 30px;
        justify-self: start;
        margin-top: 12px;
    }

    .timeline-item:nth-child(odd) .timeline-content-wrapper,
    .timeline-item:nth-child(even) .timeline-content-wrapper {
        grid-column: 2;
        grid-row: 1;
        margin-left: 1.5rem;
        margin-right: 0;
        margin-top: 0;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        padding-left: 1.5rem;
        padding-right: 0;
        padding-top: 1rem;
    }

    .timeline-date {
        font-size: 1.3rem;
    }

    .timeline-item:nth-child(odd) .timeline-arrow,
    .timeline-item:nth-child(even) .timeline-arrow {
        left: -12px;
        right: auto;
        border-width: 10px 12px 10px 0;
        border-color: transparent var(--akzentfarbe) transparent transparent;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-image {
        margin: -1.25rem -1.25rem 1.25rem -1.25rem;
    }

    .timeline-content h5 {
        font-size: 0.85rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card .news-image-link img {
        height: 220px;
    }

    .news-content {
        padding: 1.25rem;
    }

    .news-content h5 {
        font-size: 1.2rem;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - GROSSE SMARTPHONES (max-width: 576px) --- */
/* =================================================================== */
@media (max-width: 576px) {
    /* Hero */
    .unternehmen-page .hero-section {
        height: 50vh;
        min-height: 350px;
    }

    /* Innovation */
    .un-innovation-section .innovation-text-column {
        padding: 35px 1.5rem;
    }

    .innovation-header h2 {
        font-size: 26px !important;
    }

    .innovation-text-column p {
        font-size: 15px;
    }

    .un-innovation-section .made-in-germany {
        max-width: 120px;
    }

    .un-innovation-section .innovation-image-column {
        min-height: 300px;
    }

    .un-innovation-section .separator-line {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }

    /* Timeline */
    .un-history-section .container {
        padding: 0 1.5rem;
    }

    .timeline::before {
        left: 13px;
    }

    .timeline-item {
        grid-template-columns: 38px 1fr;
        margin-bottom: 2.5rem;
    }

    .timeline-point {
        width: 28px;
        height: 28px;
        margin-top: 10px;
    }

    .timeline-item:nth-child(odd) .timeline-content-wrapper,
    .timeline-item:nth-child(even) .timeline-content-wrapper {
        margin-left: 1rem;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        padding-left: 1rem;
    }

    .timeline-date {
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 1.1rem;
    }

    .timeline-image {
        margin: -1.1rem -1.1rem 1.1rem -1.1rem;
    }

    .timeline-content h5 {
        font-size: 0.82rem;
    }

    .timeline-content p {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    /* News */
    .news-grid {
        gap: 1.25rem;
    }

    .news-card .news-image-link img {
        height: 200px;
    }

    .news-content {
        padding: 1.1rem;
    }

    .news-content h5 {
        font-size: 1.1rem;
    }

    .news-category {
        font-size: 0.75rem;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - KLEINE SMARTPHONES (max-width: 480px) --- */
/* =================================================================== */
@media (max-width: 480px) {
    /* Hero */
    .unternehmen-page .hero-section {
        height: 45vh;
        min-height: 300px;
    }

    /* Innovation */
    .un-innovation-section .innovation-text-column {
        padding: 30px 1rem;
    }

    .innovation-header h2 {
        font-size: 24px !important;
    }

    .innovation-text-column p {
        font-size: 14px;
    }

    .un-innovation-section .made-in-germany {
        max-width: 100px;
    }

    .un-innovation-section .innovation-image-column {
        min-height: 250px;
    }

    .un-innovation-section .separator-line {
        margin-left: -1rem;
        margin-right: -1rem;
        height: 3px;
    }

    /* Timeline */
    .un-history-section .container {
        padding: 0 1rem;
    }

    .timeline {
        margin-top: 2rem;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        grid-template-columns: 35px 1fr;
        margin-bottom: 2rem;
    }

    .timeline-point {
        width: 26px;
        height: 26px;
        margin-top: 8px;
    }

    .timeline-point::after {
        padding: 2px;
    }

    .timeline-item:nth-child(odd) .timeline-content-wrapper,
    .timeline-item:nth-child(even) .timeline-content-wrapper {
        margin-left: 0.75rem;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        padding-left: 0.75rem;
        padding-top: 0.75rem;
    }

    .timeline-date {
        font-size: 1.1rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-image {
        margin: -1rem -1rem 1rem -1rem;
    }

    .timeline-content h5 {
        font-size: 0.8rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* News */
    .news-grid {
        gap: 1rem;
    }

    .news-card .news-image-link img {
        height: 180px;
    }

    .news-content {
        padding: 1rem;
    }

    .news-content h5 {
        font-size: 1rem;
    }

    .news-category {
        font-size: 0.7rem;
    }

    .news-more-link {
        font-size: 0.9rem;
    }
}

