/* ==========================================================================
   Unternehmen Page Styles – Scroll-Block Pattern
   Farbschema: Dark Blue (#2D5064)
   ========================================================================== */


/* --- 1. Banner-Bild --- */

.unt-banner {
    min-height: 333px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: -30px;
}


/* --- 2. Magenta-Streifen Hero --- */

.unt-hero {
    background-image: url('../images/SD-BG-Magenta-Streifen-lang.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: -64px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    transform: scaleX(-1);
}

.unt-hero__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    transform: scaleX(-1);
    justify-content: flex-end;
}

.unt-hero__text-col {
    flex: 0 0 auto;
    text-align: right;
}

.unt-hero__title {
    font-family: var(--font-primary);
    font-size: 3em;
    font-weight: 500;
    color: var(--color-white);
    margin: 0;
    line-height: 1.2;
}

.unt-hero__subtitle {
    font-family: var(--font-primary);
    font-size: 2em;
    font-weight: var(--fw-light);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0 0 10px 0;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}


/* --- 3. Scroll-Blocks --- */

.unt-block {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.unt-block--navy {
    background: linear-gradient(135deg, #eef2f5 0%, #dfe6ec 100%);
}

.unt-block--white {
    background: #fff;
}

/* First block overlaps hero */
.unt-hero + .unt-scroll .unt-block:first-child {
    margin-top: -100px;
    padding-top: 160px;
    z-index: 1;
}

/* Wasserzeichen */
.unt-block__bg-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 280px;
    color: rgba(45, 80, 100, 0.05);
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    right: -40px;
}

.unt-block--white .unt-block__bg-icon {
    right: auto;
    left: -40px;
}

/* Inner Layout: Icon + Text nebeneinander */
.unt-block__inner {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Icon-Kreis */
.unt-block__icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2D5064 0%, #1a3a4a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 32px rgba(45, 80, 100, 0.3);
}

/* Text */
.unt-block__text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.unt-block__text h3 {
    font-family: var(--font-primary);
    font-size: 1.6em;
    font-weight: var(--fw-bold, 700);
    color: #2D5064;
    margin: 0 0 12px 0;
}

.unt-block__text p {
    font-family: var(--font-primary);
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--color-text);
    margin: 0 0 16px 0;
    max-width: 720px;
}

.unt-block__text p:last-child {
    margin-bottom: 0;
}

/* White blocks: Text rechtsbündig */
.unt-block--white .unt-block__text {
    text-align: right;
}

.unt-block--white .unt-block__text p {
    margin-left: auto;
}

.unt-block--white .unt-block__map {
    margin-left: auto;
}

/* Checkliste */
.unt-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unt-block__list li {
    font-family: var(--font-primary);
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--color-text);
    padding-left: 24px;
    position: relative;
    margin-bottom: 4px;
}

.unt-block__list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2D5064;
    position: absolute;
    left: 0;
    top: 11px;
}

.unt-block--white .unt-block__list {
    text-align: right;
}

.unt-block--white .unt-block__list li {
    padding-left: 0;
    padding-right: 24px;
}

.unt-block--white .unt-block__list li::before {
    left: auto;
    right: 0;
}

/* Info-Grid (Mitarbeiter + Kunden) */
.unt-block__info-grid {
    display: flex;
    gap: 32px;
    margin: 24px 0;
}

.unt-block__info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    background: rgba(45, 80, 100, 0.04);
    border-radius: 12px;
    padding: 20px 24px;
    border-left: 3px solid #2D5064;
}

.unt-block__info-card strong {
    font-family: var(--font-primary);
    font-size: 1.1em;
    color: #2D5064;
    display: block;
    margin-bottom: 4px;
}

.unt-block__info-card p {
    font-size: 0.95em !important;
    margin: 0 !important;
    max-width: none !important;
}

.unt-block__info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2D5064;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Maschinen-Bild als opakes Wasserzeichen */
.unt-block__bg-img {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 650px;
    height: 350px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.unt-block__bg-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.unt-block__bg-img--left {
    right: auto;
    left: -120px;
}

/* Karte */
.unt-block__map {
    min-height: 245px;
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
    margin-top: 16px;
    max-width: 500px;
}

/* Button */
.unt-block__btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1em;
    font-weight: var(--fw-semibold, 600);
    color: #fff;
    background: #2D5064;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 24px;
    transition: background-color 0.3s, transform 0.2s;
}

.unt-block__btn:hover {
    background: #1a3a4a;
    transform: translateY(-2px);
}

.unt-block__btn i {
    margin-right: 8px;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .unt-hero {
        margin-top: -110px;
    }

    .unt-hero__title {
        font-size: 2.5em;
    }

    .unt-hero__subtitle {
        font-size: 1.5em;
    }

    .unt-block {
        padding: 60px 0;
    }

    .unt-block__inner {
        gap: 30px;
    }

    .unt-block__icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .unt-block__info-grid {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .unt-banner {
        display: none;
    }

    .unt-hero {
        min-height: auto;
        margin-top: 0;
        background-image: none;
        background-color: #E5007D;
        transform: none;
    }

    .unt-hero__inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        transform: none;
        justify-content: center;
    }

    .unt-hero__text-col {
        text-align: center;
    }

    .unt-hero__title {
        font-size: 1.6em;
    }

    .unt-hero__subtitle {
        font-size: 1.2em;
    }

    .unt-block {
        padding: 48px 0;
    }

    .unt-block__inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .unt-block__icon {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

    .unt-block__bg-icon {
        font-size: 140px;
        right: -20px;
    }

    .unt-block--white .unt-block__bg-icon {
        left: -20px;
    }

    .unt-block__text h3 {
        font-size: 1.3em;
    }

    .unt-block__text p {
        font-size: 0.95em;
    }

    .unt-block__list li {
        font-size: 0.95em;
    }

    .unt-block__info-grid {
        flex-direction: column;
        gap: 12px;
    }

    .unt-block__info-card {
        padding: 16px 20px;
    }

    .unt-block__map {
        min-height: 133px;
    }
}
