/* =========================================================
   Falkenried Werktechnik – Stylesheet
   Farbwerte laut Firmenporträt (sRGB)
   ========================================================= */

:root {
    --tief: #182431;
    --tief-80: rgba(24, 36, 49, .8);
    --orange: #F58046;
    --rost: #BD491D;
    --schiefer: #465461;
    --linie: #E0E5E8;
    --weiss: #FFFFFF;
    --flaeche: #F4F6F7;

    --satz: "Source Serif 4", Georgia, serif;
    --grotesk: "Archivo", "Helvetica Neue", Arial, sans-serif;

    --rand: clamp(1.25rem, 5vw, 4rem);
    --spalte: 72rem;
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    margin: 0;
    background: var(--weiss);
    color: var(--schiefer);
    font-family: var(--satz);
    font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rost); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--tief); }

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

h1, h2, h3, h4 {
    font-family: var(--grotesk);
    color: var(--tief);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.015em;
    margin: 0 0 .6em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }

p { margin: 0 0 1.1em; max-width: 68ch; }

.inhalt {
    width: min(100% - 2 * var(--rand), var(--spalte));
    margin-inline: auto;
}

.breit { --spalte: 86rem; }

section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }

.sprungmarke {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--orange);
    color: var(--tief);
    font-family: var(--grotesk);
    font-weight: 700;
    padding: .7rem 1.1rem;
    z-index: 100;
}
.sprungmarke:focus { left: 0; }

/* ---------- Skala: das Maßband des Hauses ----------
   Die Werkbank-Kante aus dem ersten Werktisch von 1949,
   hier als Millimeterteilung. Sie markiert Abschnitte
   und trägt die Zeitleiste.                              */

.skala {
    height: 14px;
    background-image:
        linear-gradient(to right, var(--tief) 1px, transparent 1px),
        linear-gradient(to right, var(--linie) 1px, transparent 1px);
    background-size: 48px 14px, 8px 7px;
    background-position: 0 0, 0 bottom;
    background-repeat: repeat-x;
    border-bottom: 2px solid var(--tief);
}

.skala--hell {
    background-image:
        linear-gradient(to right, var(--orange) 1px, transparent 1px),
        linear-gradient(to right, rgba(255,255,255,.38) 1px, transparent 1px);
    border-bottom-color: var(--orange);
}

/* ---------- Kopf ---------- */

.kopf {
    background: var(--tief);
    color: var(--weiss);
    position: sticky;
    top: 0;
    z-index: 50;
}

.kopf__zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: .85rem;
}

.kopf__logo { display: block; line-height: 0; }
.kopf__logo img { width: clamp(9.5rem, 16vw, 13rem); }

.nav ul {
    display: flex;
    gap: clamp(1rem, 2.4vw, 2.2rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    font-family: var(--grotesk);
    font-weight: 600;
    font-size: .95rem;
    color: var(--weiss);
    text-decoration: none;
    padding-block: .45rem;
    display: block;
    border-bottom: 3px solid transparent;
}

.nav a:hover { color: var(--orange); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--weiss); }

.nav-schalter {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,.35);
    color: var(--weiss);
    font-family: var(--grotesk);
    font-weight: 600;
    font-size: .9rem;
    padding: .5rem .85rem;
    cursor: pointer;
}
.nav-schalter:hover { border-color: var(--orange); color: var(--orange); }

@media (max-width: 54rem) {
    .nav-schalter { display: block; }
    .nav {
        display: none;
        width: 100%;
        order: 3;
        padding-bottom: .75rem;
    }
    .nav.offen { display: block; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav a {
        padding: .8rem 0;
        border-bottom: 1px solid rgba(255,255,255,.14);
    }
    .nav a[aria-current="page"] { color: var(--orange); border-bottom-color: rgba(255,255,255,.14); }
    .kopf__zeile { flex-wrap: wrap; }
}

/* ---------- Auftakt ---------- */

.auftakt {
    background: var(--tief);
    color: var(--weiss);
    padding: 0;
}

.auftakt__raster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: stretch;
}

.auftakt__text {
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4.5rem) clamp(2.5rem, 5vw, 5rem) var(--rand);
    align-self: center;
    max-width: 44rem;
    margin-left: auto;
}

.auftakt h1 { color: var(--weiss); }

.auftakt__vorlauf {
    font-family: var(--grotesk);
    font-weight: 600;
    font-size: .95rem;
    color: var(--orange);
    margin-bottom: 1.4rem;
}

.auftakt p { color: rgba(255,255,255,.82); font-size: 1.12rem; }

.auftakt__bild { position: relative; min-height: 22rem; }
.auftakt__bild img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 60rem) {
    .auftakt__raster { grid-template-columns: 1fr; }
    .auftakt__text { padding-inline: var(--rand); margin-left: 0; order: 2; }
    .auftakt__bild { min-height: 15rem; order: 1; }
}

/* ---------- Kennzahlen an der Skala ---------- */

.kennzahlen { background: var(--tief); padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.kennzahlen .skala { margin-bottom: clamp(2rem, 4vw, 3rem); }

.kennzahlen__liste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.kennzahl__wert {
    display: block;
    font-family: var(--grotesk);
    font-weight: 800;
    font-size: clamp(2.3rem, 1.4rem + 2.6vw, 3.6rem);
    line-height: 1;
    color: var(--weiss);
    letter-spacing: -.03em;
}

.kennzahl__text {
    display: block;
    margin-top: .6rem;
    color: rgba(255,255,255,.72);
    font-size: .98rem;
    max-width: 22ch;
}

/* ---------- Textabschnitte ---------- */

.marke {
    display: inline-block;
    font-family: var(--grotesk);
    font-weight: 700;
    font-size: .88rem;
    color: var(--rost);
    padding-left: .85rem;
    border-left: 4px solid var(--orange);
    margin-bottom: 1.5rem;
}

.zweispalt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

@media (max-width: 58rem) { .zweispalt { grid-template-columns: 1fr; } }

.flaeche { background: var(--flaeche); }

.bildblock figcaption {
    font-family: var(--grotesk);
    font-size: .85rem;
    color: var(--schiefer);
    padding-top: .7rem;
    border-top: 1px solid var(--linie);
    margin-top: .7rem;
}

/* ---------- Zeitleiste ---------- */

.zeitleiste { list-style: none; margin: 0; padding: 0; position: relative; }

.zeitleiste::before {
    content: "";
    position: absolute;
    left: 7.5rem;
    top: 0;
    bottom: 0;
    width: 14px;
    background-image:
        linear-gradient(to bottom, var(--linie) 1px, transparent 1px);
    background-size: 14px 8px;
    border-left: 2px solid var(--tief);
}

.station {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.station__jahr {
    font-family: var(--grotesk);
    font-weight: 800;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    color: var(--tief);
    letter-spacing: -.02em;
    position: relative;
    padding-top: .1rem;
}

.station__jahr::after {
    content: "";
    position: absolute;
    right: -1px;
    top: .75em;
    width: 2.2rem;
    height: 4px;
    background: var(--orange);
    transform: translateX(100%);
}

.station__inhalt { padding-left: 1.5rem; }
.station__inhalt img {
    margin-bottom: 1.2rem;
    width: 100%;
    max-height: 30rem;
    object-fit: cover;
}
.station__inhalt figcaption {
    font-family: var(--grotesk);
    font-size: .85rem;
    color: var(--schiefer);
    margin-bottom: 1.4rem;
}

@media (max-width: 46rem) {
    .zeitleiste::before { left: 0; }
    .station { grid-template-columns: 1fr; gap: .6rem; }
    .station__jahr { padding-left: 1.8rem; }
    .station__jahr::after { right: auto; left: 0; top: .6em; width: 1.1rem; transform: none; }
    .station__inhalt { padding-left: 1.8rem; }
}

/* ---------- Produkte ---------- */

.produkte {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1px;
    background: var(--linie);
    border: 1px solid var(--linie);
    list-style: none;
    margin: 0;
    padding: 0;
}

.produkt {
    background: var(--weiss);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.produkt__bild {
    background: var(--flaeche);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    padding: 1rem;
    margin-bottom: 1.25rem;
}
.produkt__bild img { max-height: 100%; width: auto; object-fit: contain; }

.produkt__nummer {
    font-family: var(--grotesk);
    font-weight: 700;
    font-size: .82rem;
    color: var(--rost);
    margin-bottom: .45rem;
}

.produkt h3 {
    margin-bottom: .5rem;
    hyphens: auto;
    overflow-wrap: break-word;
}
.produkt p { font-size: .97rem; margin-bottom: .9rem; }

.produkt__daten {
    margin: auto 0 0;
    padding-top: .9rem;
    border-top: 1px solid var(--linie);
    font-family: var(--grotesk);
    font-size: .85rem;
    color: var(--schiefer);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .25rem 1rem;
}
.produkt__daten dt { color: var(--tief); font-weight: 600; }
.produkt__daten dd { margin: 0; text-align: right; }

/* ---------- Bildreihe ---------- */

.reihe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
}
.reihe figure { margin: 0; }
.reihe img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Hinweisband ---------- */

.band {
    background: var(--orange);
    color: var(--tief);
}
.band h2 { color: var(--tief); }
.band p { color: rgba(24, 36, 49, .85); }

.knopf {
    display: inline-block;
    font-family: var(--grotesk);
    font-weight: 700;
    font-size: .98rem;
    background: var(--tief);
    color: var(--weiss);
    text-decoration: none;
    padding: .9rem 1.6rem;
    border: 2px solid var(--tief);
}
.knopf:hover { background: var(--weiss); color: var(--tief); }

.knopf--hell { background: var(--weiss); color: var(--tief); border-color: var(--weiss); }
.knopf--hell:hover { background: transparent; color: var(--weiss); }

/* ---------- Formular ---------- */

.formular { display: grid; gap: 1.2rem; max-width: 34rem; }

.feld { display: grid; gap: .4rem; }

.feld label,
fieldset legend {
    font-family: var(--grotesk);
    font-weight: 600;
    font-size: .92rem;
    color: var(--tief);
}

.feld input,
.feld select,
.feld textarea {
    font: inherit;
    font-size: 1rem;
    color: var(--tief);
    background: var(--weiss);
    border: 1px solid var(--schiefer);
    padding: .7rem .8rem;
    width: 100%;
}

.feld input:focus,
.feld select:focus,
.feld textarea:focus { border-color: var(--rost); }

.feld__hinweis { font-size: .85rem; color: var(--schiefer); }

.formular__meldung {
    font-family: var(--grotesk);
    font-weight: 600;
    border-left: 4px solid var(--orange);
    background: var(--flaeche);
    padding: .9rem 1.1rem;
}
.formular__meldung[hidden] { display: none; }

/* ---------- Fuß ---------- */

.fuss {
    background: var(--tief);
    color: rgba(255,255,255,.72);
    font-size: .95rem;
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.fuss h3 { color: var(--weiss); font-size: 1rem; margin-bottom: .8rem; }
.fuss a { color: rgba(255,255,255,.82); }
.fuss a:hover { color: var(--orange); }

.fuss__raster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 2rem;
}

.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .4rem; }

.fuss__schluss {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.18);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    font-size: .88rem;
}
