/* ============================================================
   fux_sitepackage_hsgm — Seite „Unternehmen“ (Etappe Ueber uns,
   2026-10-12). Geladen per f:asset.css aus Templates/Page/RelaunchAbout.html.

   Quelle: _prototypes/hsgm-about-page.html + css/about.css (about-hero,
   mission-section, timeline-section) mit den Relaunch-Tokens.
   Werte/Team/Zertifizierungen = CE „Kacheln“ (tiles.css), Abschluss = CE
   „CTA“ (eigene Styles).
   WCAG-Korrekturen gegenueber dem Prototyp:
   - Titel ohne Verlaufs-Textfuellung (Kontrast nicht bestimmbar)
   - Beschriftungen #6e6e73 (4,66:1 auf #f5f5f7), Jahr #0051a3 auf #e6f0fa (6,73:1)
   - keine Einblend-/Hover-Bewegung (Kennzahlen sind keine Links)
   - Zeitleiste ab < 768 px einspaltig (Reflow 320 px)
   ============================================================ */

.about-page {
    --about-surface: var(--gray-quaternary, #f5f5f7);
    --about-text: var(--gray-primary, #1d1d1f);
    --about-muted: var(--gray-secondary, #6e6e73);
    --about-line: var(--gray-tertiary, #d2d2d7);
    --about-blue: var(--hsgm-blue, #0066cc);
    --about-blue-dark: var(--hsgm-blue-dark, #0051a3);
    color: var(--about-text);
}

/* Nur fuer Screenreader (Zeitleiste, Zaehl-Animation); der Relaunch-Rahmen
   hat keine globale Klasse */
.about-page .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---------- Hero ---------- */
.about-hero {
    /* fixer Header: gleiche Rechnung wie .breadcrumb-nav / .contact-hero */
    margin-top: calc(var(--fux-navbar-inner-height, 40px) + 2rem + 1px);
    padding: var(--space-xl, 5rem) 0;
    background: linear-gradient(180deg, #fff 0%, var(--about-surface) 100%);
}

@media (max-width: 1199.98px) {
    html:not(.fux-nav-js) .about-hero {
        margin-top: 0;
    }
}

.about-hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.about-hero .page-overline {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--about-blue-dark);
}

.about-hero .page-title {
    margin: 0 0 1.5rem;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--about-text);
    hyphens: auto;
    overflow-wrap: break-word;
}

.about-hero .page-subtitle {
    max-width: 44rem;
    margin: 0 auto;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.5;
    color: var(--about-muted);
}

.about-hero-image {
    max-width: 75rem;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.about-hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ---------- Mission ---------- */
.mission-section {
    padding: var(--space-section, 5rem) 0;
    background: #fff;
}

.mission-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .mission-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 5rem;
    }
}

.mission-content h2 {
    margin: 0 0 1.5rem;
    font-size: var(--font-size-h2, clamp(1.75rem, 3.5vw, 2.5rem));
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* erster Absatz des Textes = Lead (Prototyp .lead-text) */
.mission-content p {
    margin: 0 0 1.25rem;
    line-height: 1.7;
}

.mission-content p:first-of-type {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Kennzahlen (CE „Kennzahlen“, Markup .home-key-figures-*) als Kacheln */
.mission-stats .home-key-figures-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mission-stats .home-key-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
    background: var(--about-surface);
    border-radius: 1rem;
}

.mission-stats .home-key-figure-number {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--about-blue);
    font-variant-numeric: tabular-nums;
}

.mission-stats .home-key-figure-label {
    font-size: 0.9375rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--about-muted);
}

@media (max-width: 379.98px) {
    .mission-stats .home-key-figures-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Zeitleiste (CE „Zeitleiste“) ---------- */
.timeline-section {
    padding: var(--space-section, 5rem) 0;
    background: var(--about-surface);
}

.timeline-section .section-title {
    margin: 0 0 3rem;
    font-size: var(--font-size-h2, clamp(1.75rem, 3.5vw, 2.5rem));
    font-weight: 700;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 62.5rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* Mittellinie (Dekoration) */
.timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1rem;
    width: 2px;
    content: '';
    background: var(--about-line);
}

.timeline-item {
    position: relative;
    box-sizing: border-box; /* width 50 % inkl. Abstand, sonst Ueberbreite */
    margin: 0 0 2rem;
    padding-left: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Punkt auf der Linie (Dekoration) */
.timeline-item::before {
    position: absolute;
    top: 1.75rem;
    left: calc(1rem + 1px);
    width: 16px;
    height: 16px;
    content: '';
    background: var(--about-blue);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
}

.timeline-content {
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.timeline-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.timeline-year {
    display: block;
    width: fit-content;
    margin: 0 0 0.5rem;
    padding: 0.125rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--about-blue-dark);
    background: #e6f0fa;
    border-radius: 2rem;
}

.timeline-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--about-muted);
}

/* ab 768 px: abwechselnd links/rechts der Mittellinie wie im Prototyp */
@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        padding: 0 3rem 0 0;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding: 0 0 0 3rem;
    }

    .timeline-item::before {
        left: 100%;
    }

    .timeline-item:nth-child(even)::before {
        left: 0;
    }

    /* rechtsbuendig nur Jahr und Titel, Fliesstext bleibt linksbuendig
       (A11y-Review 2026-10-12, Lesbarkeit) */
    .timeline-item:nth-child(odd) .timeline-title {
        text-align: right;
    }

    .timeline-item:nth-child(odd) .timeline-year {
        margin-left: auto;
    }
}

@media (forced-colors: active) {
    .timeline::before,
    .timeline-item::before {
        background: CanvasText;
        border-color: Canvas;
    }

    .mission-stats .home-key-figure,
    .timeline-content,
    .timeline-year {
        border: 1px solid CanvasText;
    }
}
