/* =========================================
   UNTERNEHMEN PAGE — ENGINEERING BLUEPRINT SKIN
   ========================================= */

:root {
    --bp-navy: #143977;
    --bp-grid-line: #cbd5e1;
    --bp-text-muted: #6b7280;
    --bp-text-faint: #9ca3af;
    --bp-text-strong: #111111;
}

/* ---------- §-Tag (Datasheet reference label) ---------- */
.bp-tag {
    display: inline-block;
    color: var(--bp-navy);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
}

/* Team-Sektion: vergroessertes Kennzeichen als Kopf ohne H2 */
.bp-roster-section .bp-tag {
    font-size: 16px;
}

/* ---------- Section divider with 4 ticks ---------- */
.bp-divider-wrap {
    padding: var(--spacing-md) 0;
}

.bp-divider {
    position: relative;
    height: 24px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.bp-divider::before {
    content: '';
    position: absolute;
    left: var(--container-padding);
    right: var(--container-padding);
    top: 50%;
    height: 0.8px;
    background-color: var(--bp-navy);
}

.bp-divider-tick {
    position: absolute;
    top: 50%;
    width: 0.8px;
    background-color: var(--bp-navy);
    transform: translateY(-50%);
}

.bp-divider-tick--long  { height: 12px; }
.bp-divider-tick--short { height: 6px; }

.bp-divider-tick:nth-child(1) { left: calc(var(--container-padding)); }
.bp-divider-tick:nth-child(2) { left: calc(var(--container-padding) + (100% - 2 * var(--container-padding)) * 0.3333); }
.bp-divider-tick:nth-child(3) { left: calc(var(--container-padding) + (100% - 2 * var(--container-padding)) * 0.6666); }
.bp-divider-tick:nth-child(4) { left: calc(100% - var(--container-padding)); }

/* ---------- Shared section header ---------- */
.bp-section-header {
    margin-bottom: var(--spacing-lg);
}

.bp-section-title {
    font-weight: 500;
    font-size: 18px;
    color: var(--bp-text-strong);
    letter-spacing: -0.01em;
    margin-top: 12px;
}

.bp-section-intro {
    color: var(--color-text-grey);
    line-height: 1.7;
    max-width: 720px;
    margin-top: var(--spacing-sm);
}

/* =========================================
   § 1.0 HERO
   ========================================= */
.bp-hero {
    background-color: var(--color-background);
    padding: calc(var(--spacing-xxl) + 80px) 0 var(--spacing-lg);
    position: relative;
}

.bp-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.bp-hero-title {
    font-weight: 500;
    font-size: 22px;
    color: var(--bp-text-strong);
    letter-spacing: -0.01em;
    margin: 16px 0 12px;
    line-height: 1.25;
}

.bp-hero-cta {
    margin-top: var(--spacing-xs);
}

.bp-spec-box {
    border: 0.8px solid var(--bp-navy);
    aspect-ratio: 4 / 3;
    background-color: rgba(255, 255, 255, 0.65);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bp-spec-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ausschnitt bewusst hoeher als mittig: unter den Personen liegt nur Boden,
       darueber die Firmenwand. 25% haelt die Gesichter (28-54% der Bildhoehe)
       auch im 16/9-Ausschnitt der Mobilfassung sicher im Bild. */
    object-position: center 25%;
}

.bp-spec-box-label {
    color: var(--bp-navy);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

.bp-spec-box::before,
.bp-spec-box::after {
    content: '';
    position: absolute;
    background-color: var(--bp-navy);
}

.bp-spec-box::before {
    left: -4px;
    top: 50%;
    width: 8px;
    height: 0.8px;
    transform: translateY(-50%);
}

.bp-spec-box::after {
    top: -4px;
    left: 50%;
    height: 8px;
    width: 0.8px;
    transform: translateX(-50%);
}

/* =========================================
   § 2.0 ROSTER / TEAM
   ========================================= */
.bp-roster-section {
    background-color: var(--color-background);
    padding: var(--spacing-lg) 0;
}

.bp-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.bp-roster-card {
    border: 0.8px solid var(--bp-navy);
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
}

.bp-roster-card-photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.bp-roster-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(20%);
}

.bp-roster-card-body {
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.bp-roster-name {
    color: var(--bp-navy);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.bp-roster-role {
    color: var(--bp-text-muted);
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.bp-roster-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    border-top: 0.8px solid var(--color-border);
    padding-top: 10px;
}

.bp-roster-contact > div {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px;
    align-items: baseline;
}

.bp-roster-contact dt {
    color: var(--bp-text-muted);
    font-size: 10px;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    font-feature-settings: "tnum";
}

.bp-roster-contact dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.bp-roster-contact dd a {
    color: var(--bp-text-strong);
    text-decoration: none;
    transition: color var(--transition-fast);
    word-break: break-word;
}

.bp-roster-contact dd a:hover {
    color: var(--bp-navy);
}

/* =========================================
   § 2.0 GESCHICHTE — vertical spec list
   ========================================= */
.bp-history-section {
    background-color: var(--color-surface);
}

.bp-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 0.8px solid var(--bp-navy);
    border-bottom: 0.8px solid var(--bp-navy);
    background-color: var(--color-background);
}

.bp-history-row {
    display: grid;
    grid-template-columns: 25% 1fr;
    align-items: stretch;
    position: relative;
    border-bottom: 0.5px solid #e5e7eb;
    min-height: 75px;
}

.bp-history-row:last-child {
    border-bottom: 0;
}

.bp-history-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 24px;
    border-right: 0.8px solid var(--bp-navy);
    gap: 6px;
}

.bp-history-year {
    font-size: 36px;
    font-weight: 500;
    color: var(--bp-navy);
    letter-spacing: -0.02em;
    line-height: 1;
    font-feature-settings: "tnum";
}

.bp-history-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.bp-history-content p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
}

.bp-history-row--current .bp-history-now {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 60px;
    height: 22px;
    background-color: var(--bp-navy);
    color: var(--color-text-light);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* =========================================
   § 4.0 PARTNER / ALLIANZEN
   ========================================= */
.bp-partner-section {
    background-color: var(--color-background);
}

.bp-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.bp-partner-card {
    border: 0.8px solid var(--bp-navy);
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: background-color var(--transition-base);
}

.bp-partner-card:hover {
    background-color: rgba(20, 57, 119, 0.04);
}

.bp-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    min-height: 140px;
}

.bp-partner-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}

.bp-partner-card:hover .bp-partner-logo img {
    filter: grayscale(0%);
}

/* =========================================
   MOBILE (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
    .bp-hero {
        padding: calc(var(--spacing-xxl) + 40px) 0 var(--spacing-xl);
    }

    .bp-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bp-hero-right { order: 2; }

    .bp-spec-box { aspect-ratio: 16 / 9; }

    .bp-roster-grid {
        grid-template-columns: 1fr;
    }

    .bp-partner-grid {
        grid-template-columns: 1fr;
    }

    .bp-history-row {
        grid-template-columns: 30% 1fr;
    }

    .bp-history-meta {
        padding: 12px 16px;
        gap: 4px;
    }

    .bp-history-year {
        font-size: 28px;
    }

    .bp-history-content {
        padding: 16px;
    }

    .bp-history-row--current .bp-history-now {
        top: 8px;
        right: 8px;
        width: 50px;
        height: 18px;
        font-size: 10px;
    }

    /* Body copy stays legible (>= 16px) on mobile */
    .bp-history-content p {
        font-size: 1rem;
    }

    .bp-roster-name {
        font-size: 1rem;
    }

    .bp-roster-role {
        font-size: 0.875rem;
    }

    .bp-roster-contact dd,
    .bp-roster-contact dd a {
        font-size: 1rem;
    }

    /* Tap targets for the roster phone/email links */
    .bp-roster-contact dd a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}
