/* Unternehmen im Stil der Startseite */

/* Einstieg: dunkles Foto, ein Textblock links */
.unt-start { display: flex; align-items: flex-end; min-height: clamp(26rem, 46vw, 36rem); }
.unt-start .start__bild { object-position: 50% 55%; }
.unt-start .start__text { max-width: 40rem; }
.unt-start .pfad { margin-bottom: 1.5rem; }
.unt-start h1 { max-width: none; }

/* Was wir machen: drei Zeilen, Bild bis an den Rand, abwechselnd */
.unt-was { padding-top: clamp(3rem, 7vw, 5.5rem); }
.unt-was > h2 { padding-inline: var(--rand); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: var(--t-h2); line-height: 1.1;  font-weight: 600; }
.unt-zeilen { list-style: none; margin: 0; padding: 0; }
.unt-zeilen li { border-top: 1px solid var(--tinte); }
.unt-zeilen li:last-child { border-bottom: 1px solid var(--tinte); }
.unt-zeilen a { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); text-decoration: none; align-items: stretch; }
.unt-zeilen img { width: 100%; height: 100%; min-height: clamp(14rem, 24vw, 21rem); object-fit: cover; background: var(--grund); transition: filter .6s var(--ease); }
.unt-zeilen__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem) var(--rand) clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4.5rem); }
.unt-zeilen h3 { font-size: var(--t-h3); line-height: 1.1;  font-weight: 600; }
.unt-zeilen__text p { margin-top: 1rem; max-width: 28rem; color: var(--tinte-2); font-size: var(--t-text); }
.unt-zeilen a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.unt-zeilen a:hover img { filter: brightness(1.08); }
.unt-zeilen li:nth-child(even) img { order: 2; }
.unt-zeilen li:nth-child(even) a { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.unt-zeilen li:nth-child(even) .unt-zeilen__text { padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3rem) var(--rand); }

/* Leitsatz auf dunklem Foto */
.unt-satz { position: relative; isolation: isolate; overflow: hidden; background: var(--nacht); color: var(--tinte-2);
  padding: clamp(4rem, 10vw, 8rem) var(--rand); margin-top: clamp(3rem, 7vw, 5.5rem); }
.unt-satz__bild { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.unt-satz::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(10 11 12 / .72); }
.unt-satz blockquote { margin: 0; max-width: 56rem; }
.unt-satz p { font-size: var(--t-titel); line-height: 1.1;  font-weight: 600; }

/* Zeitachse waagerecht */
.unt-weg { background: var(--papier); padding: clamp(3rem, 7vw, 5.5rem) var(--rand); }
.unt-weg__kopf h2 { font-size: var(--t-h2); line-height: 1.1;  font-weight: 600; }
.unt-weg__kopf p { margin-top: .9rem; max-width: 40rem; color: var(--tinte-2); font-size: var(--t-text); }
.achse { margin: clamp(2.5rem, 5vw, 4rem) 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.achse > div { position: relative; display: block; padding: 1.75rem 1.25rem 0 0; border-top: 1px solid var(--tinte); }
.achse > div::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--tinte); }
.achse dt { font-size: var(--t-h3); font-weight: 600;  font-variant-numeric: tabular-nums; line-height: 1.1; }
.achse dd { margin: .75rem 0 0; font-size: var(--t-klein); line-height: 1.45; color: var(--tinte-2); font-weight: 500; }
.achse > div:last-child::before { background: var(--blau); }

@media (max-width: 960px) {
  .achse { grid-template-columns: 1fr; margin-top: 2rem; border-left: 1px solid var(--tinte); }
  .achse > div { padding: 0 0 1.75rem 1.5rem; border-top: 0; }
  .achse > div:last-child { padding-bottom: 0; }
  .achse > div::before { top: .35rem; left: -5px; }
  .achse dd { margin-top: .4rem; max-width: 34rem; }
}
@media (max-width: 720px) {
  .unt-zeilen a, .unt-zeilen li:nth-child(even) a { grid-template-columns: 1fr; }
  .unt-zeilen img, .unt-zeilen li:nth-child(even) img { order: 0; height: 13rem; min-height: 0; }
  .unt-zeilen__text, .unt-zeilen li:nth-child(even) .unt-zeilen__text { padding: 1.25rem var(--rand) 2rem; }
  .unt-start { min-height: 24rem; }
}
@media (prefers-reduced-motion: reduce) { .unt-zeilen img { transition: none; } }

/* Ruhiger: Zeilenbilder nicht höher als nötig (Mateusz: nichts „reingezoomt“) */
@media (min-width: 721px) { .unt-zeilen img { height: clamp(14rem, 22vw, 19rem); min-height: 0; } }

/* Kein weißer Streifen zwischen den Bildzeilen und dem Leitsatz (Mateusz 13.10.) */
.unt-satz { margin-top: 0; }
.unt-zeilen li:last-child { border-bottom: 0; }

/* Leitbild: ruhiger Platzhalter bis der Workshop-Text vorliegt */
.unt-leitbild { padding: clamp(3rem, 7vw, 5.5rem) var(--rand); border-top: 1px solid var(--linie); }
.unt-leitbild h2 { font-size: var(--t-h2); line-height: 1.1;  font-weight: 600; }
.unt-leitbild p { margin-top: .9rem; max-width: 36rem; color: var(--tinte-2); font-size: var(--t-text); }

/* Unternehmensseite im Aufbau großer Werkstoffhersteller (19.10.) */

/* Sprungleiste unter dem Einstieg */
.unt-sprung { position: sticky; top: var(--kopf-h); z-index: 10; display: flex; gap: .25rem 1.75rem; overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--rand); background: var(--weiss); border-bottom: 1px solid var(--linie); }
.unt-sprung::-webkit-scrollbar { display: none; }
.unt-sprung a { flex: none; padding: 1rem 0; font-size: var(--t-klein); font-weight: 500; color: var(--tinte-2); text-decoration: none; border-bottom: 2px solid transparent; }
.unt-sprung a:hover { color: var(--tinte-2); border-bottom-color: var(--tinte); }
html { scroll-padding-top: calc(var(--kopf-h) + 3.5rem); }

/* Wer wir sind: großer Satz links, Fließtext rechts, Zahlen darunter */
.unt-wer { padding: clamp(3.5rem, 8vw, 6.5rem) var(--rand); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.unt-wer__kopf h2 { letter-spacing: 0; font-size: var(--t-klein); font-weight: 500;  color: var(--tinte-2); margin-bottom: 1.25rem; }
.unt-wer__satz { font-size: var(--t-titel); line-height: 1.1;  font-weight: 600; max-width: 18ch; }
.unt-wer__text p { font-size: var(--t-text); color: var(--tinte-2); max-width: 32rem; }
.unt-wer__text p + p { margin-top: 1rem; }
.unt-zahlen { grid-column: 1 / -1; margin: clamp(1rem, 3vw, 2rem) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--tinte); }
.unt-zahlen > div { padding: 1.5rem 1.5rem 0 0; }
.unt-zahlen > div + div { padding-left: 1.5rem; border-left: 1px solid var(--linie); }
.unt-zahlen dt { font-size: var(--t-h2); font-weight: 600;  line-height: 1.1; font-variant-numeric: tabular-nums; }
.unt-zahlen dd { margin: .6rem 0 0; font-size: var(--t-klein); color: var(--tinte-2); font-weight: 500; }

/* Was wir machen: Kopf mit Unterzeile, Zeilen nummeriert */
.unt-was { border-top: 1px solid var(--linie); }
.unt-was__kopf { padding-inline: var(--rand); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.unt-was__kopf h2 { font-size: var(--t-h2); line-height: 1.1;  font-weight: 600; }
.unt-was__kopf p { margin-top: .75rem; color: var(--tinte-2); font-size: var(--t-text); }
.unt-zeilen__nr { display: block; margin-bottom: .9rem; font-size: var(--t-klein); font-weight: 500;   color: var(--tinte-2); font-variant-numeric: tabular-nums; }

/* Leitbild: Vision und Mission nebeneinander, Werte über die volle Breite */
.unt-leitbild { border-top: 0; }
.unt-leitbild__kopf p { margin-top: .9rem; }
.unt-leitbild__raster { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lb--werte { grid-column: 1 / -1; min-height: 0; }
.lb { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--papier); min-height: 15rem; display: flex; flex-direction: column; }
.lb__marke { font-size: var(--t-klein); font-weight: 500;   color: var(--tinte-2); }
.lb h3 { margin-top: 1rem; font-size: var(--t-h3); line-height: 1.1;  font-weight: 600; }
.unt-leitbild .lb__text { margin-top: .9rem; max-width: 40rem; color: var(--tinte-2); font-size: var(--t-text); line-height: 1.5; }

/* Forschung und Entwicklung: Bild links, Text rechts, dunkel */
.unt-fe { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--nacht); color: var(--tinte-2); }
.unt-fe__bild { width: 100%; height: 100%; min-height: 22rem; max-height: 36rem; object-fit: cover; }
.unt-fe__text { padding: clamp(3rem, 7vw, 5.5rem) var(--rand) clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.unt-fe h2 { font-size: var(--t-h2); line-height: 1.1;  font-weight: 600; }
.unt-fe__text > p { margin-top: 1rem; max-width: 34rem; color: var(--tinte-2); font-size: var(--t-text); }
.unt-fe__liste { list-style: none; margin: 1.75rem 0 0; padding: 0; max-width: 34rem; width: 100%; }
.unt-fe__liste li { padding: .75rem 0; border-top: 1px solid var(--nacht-linie); }
.unt-fe__liste li:last-child { border-bottom: 1px solid var(--nacht-linie); }
.unt-fe__link { margin-top: 1.75rem; color: var(--tinte-2); }
.unt-fe :focus-visible { outline-color: var(--blau); }

/* Geschichte: acht Stationen, „Heute“ blau */
.achse { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.achse > div:last-child dt { color: var(--tinte-2); }

@media (max-width: 960px) {
  .unt-wer { grid-template-columns: 1fr; align-items: start; }
  .unt-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unt-zahlen > div { padding: 1.25rem 1rem 1.25rem 0; }
  .unt-zahlen > div + div { padding-left: 0; border-left: 0; }
  .unt-zahlen > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--linie); }
  .unt-zahlen > div:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .unt-leitbild__raster { grid-template-columns: 1fr; }
  .lb { min-height: 0; }
  .unt-fe { grid-template-columns: 1fr; }
  .unt-fe__bild { min-height: 0; height: 15rem; }
  .unt-fe__text { padding: 2.5rem var(--rand) 3rem; }
  .achse { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .unt-zahlen dt { white-space: nowrap; } }

/* Karriere: schmaler Hinweis vor dem Standort */
.unt-karriere { padding: clamp(2rem, 4vw, 3rem) var(--rand); border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem clamp(1.5rem, 4vw, 3rem); }
.unt-karriere h2 { font-size: var(--t-h3); line-height: 1.1;  font-weight: 600; }
.unt-karriere p { color: var(--tinte-2); font-size: var(--t-text); }
.unt-karriere__link { margin-left: auto; }
@media (max-width: 720px) { .unt-karriere__link { margin-left: 0; flex-basis: 100%; } }

/* Werte: Anfangsbuchstaben ergeben ZEITNAH (Leitbild 20.10.) */
.zeitnah { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--tinte); }
.zeitnah li { padding: 1.1rem .75rem 0 0; min-width: 0; }
.zeitnah b { display: block; font-size: var(--t-titel); line-height: 1.1;  font-weight: 600; color: var(--tinte-2); }
.zeitnah span { display: block; margin-top: .55rem; font-size: var(--t-klein); color: var(--tinte-2); hyphens: auto; overflow-wrap: anywhere; font-weight: 500; }
.zeitnah__fuss { margin-top: 1.25rem; font-size: var(--t-klein); color: var(--tinte-2); font-weight: 500; }
@media (max-width: 720px) {
  .zeitnah { grid-template-columns: 1fr; }
  .zeitnah li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--linie); }
  .zeitnah b { }
  .zeitnah span { margin-top: 0; color: var(--tinte-2); }
}

/* Welle 5: ruhiger, kleiner, keine Halbflächen */
.unt-wer__satz { font-size: var(--t-h2); max-width: 26ch; line-height: 1.12;  }
.unt-wer { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* Was wir machen: drei gleichwertige Karten */
.unt-karten { padding-inline: var(--rand); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.unt-karten li, .unt-karten li:last-child { border: 0; background: var(--weiss); border: 1px solid var(--linie); }
.unt-karten a, .unt-karten li:nth-child(even) a { display: flex; flex-direction: column; height: 100%; }
.unt-karten img, .unt-karten li:nth-child(even) img { order: 0; width: 100%; height: clamp(11rem, 14vw, 14rem); min-height: 0; }
.unt-karten .unt-zeilen__text, .unt-karten li:nth-child(even) .unt-zeilen__text { padding: 1.25rem 1.5rem 1.75rem; justify-content: flex-start; }
.unt-karten h3 { font-size: var(--t-h3); line-height: 1.15;  font-weight: 600; }
.unt-karten .unt-zeilen__text p { font-size: var(--t-text); margin-top: .6rem; }
.unt-was { padding-bottom: clamp(3rem, 6vw, 4.5rem); background: var(--papier); border-top: 0; }
.unt-karten li { background: var(--weiss); }

/* Kernsatz: ruhiges helles Band ohne Foto */
.unt-satz { background: var(--weiss); color: var(--tinte-2); padding: clamp(2.5rem, 5vw, 4rem) var(--rand); overflow: visible; }
.unt-satz::before { content: none; }
.unt-satz blockquote { max-width: 44rem; padding-left: 1.5rem; border-left: 3px solid var(--blau); }
.unt-satz p { font-size: var(--t-h2); line-height: 1.15;  }

.unt-leitbild { background: var(--weiss); }
.unt-leitbild h2, .unt-weg__kopf h2, .unt-was__kopf h2, .unt-fe h2 { font-size: var(--t-h2); font-weight: 600; }
.zeitnah b { font-size: var(--t-h2); }

/* F&E: dunkler Abschnitt, Bild als gerahmte Karte, kein Halbflächen-Split */
.unt-fe { display: block; padding: clamp(3rem, 6vw, 4.5rem) var(--rand); }
.unt-fe .unt-fe__bild { float: none; }
.unt-fe { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.unt-fe__bild { min-height: 0; height: auto; max-height: 20rem; aspect-ratio: 1; border-radius: 4px; }
.unt-fe__text { padding: 0; }
@media (max-width: 960px) {
  .unt-karten { grid-template-columns: 1fr; }
  .unt-karten img { height: 13rem; }
  .unt-fe { grid-template-columns: 1fr; padding: 2.5rem var(--rand) 3rem; }
  .unt-fe__bild { height: 14rem; max-height: none; aspect-ratio: auto; }
  .unt-fe__text { padding: 0; }
}

/* Welle 6: Texte aus dem Kundendokument (Abschnitt 5) */
.unt-text { padding: clamp(3rem, 6vw, 4.5rem) var(--rand); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.unt-text--einzel { grid-template-columns: 1fr; border-top: 1px solid var(--linie); }
.unt-text h2 { font-size: var(--t-h2); line-height: 1.1;  font-weight: 600; }
.unt-text p { margin-top: 1rem; max-width: 40rem; color: var(--tinte-2); font-size: var(--t-text); }
.unt-text__spalte > p:first-child { margin-top: 0; }
.unt-text .knopf { margin-top: 1.75rem; display: inline-block; }
.unt-leitbild { padding-top: 0; }
.lb__h { font-size: var(--t-h3); line-height: 1.1;  font-weight: 600; }
.lb__h + .lb__text { margin-top: 1rem; }
.zeitnah--text { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2rem; }
.zeitnah--text li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--linie); }
.zeitnah--text strong { display: block; color: var(--tinte-2); }
.zeitnah--text span { margin-top: .3rem; font-size: var(--t-text); color: var(--tinte-2); overflow-wrap: normal; hyphens: manual; }
@media (max-width: 960px) { .unt-text { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .zeitnah--text li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .zeitnah--text span { color: var(--tinte-2); margin-top: .3rem; }
}
.standort h2 { font-size: var(--t-h2); line-height: 1.1;  max-width: none; font-weight: 600; }

/* Werte ZEITNAH als Zeitstrahl: quer ab 900 px, darunter senkrecht */
.zeitstrahl { --punkt: 3rem; --luecke: 1.25rem; list-style: none; margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 var(--luecke); }
.zeitstrahl li { position: relative; min-width: 0; }
.zeitstrahl li:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--punkt) / 2 - 1px); left: calc(var(--punkt) + .5rem); width: calc(100% + var(--luecke) - var(--punkt) - 1rem); height: 2px; background: var(--blau); opacity: .35; }
.zeitstrahl b { display: grid; place-items: center; width: var(--punkt); height: var(--punkt); border-radius: 50%; background: var(--blau); color: #fff; font-size: var(--t-klein); font-weight: 500; line-height: 1;  }
.zeitstrahl strong { display: block; margin-top: 1.1rem; font-size: var(--t-text); color: var(--tinte-2); }
.zeitstrahl span { display: block; margin-top: .35rem; font-size: var(--t-klein); line-height: 1.45; color: var(--tinte-2); font-weight: 500; }
@media (max-width: 900px) {
  .zeitstrahl { grid-template-columns: 1fr; gap: 0; }
  .zeitstrahl li { display: grid; grid-template-columns: var(--punkt) minmax(0, 1fr); gap: 0 1rem; padding-bottom: 1.5rem; }
  .zeitstrahl li:last-child { padding-bottom: 0; }
  .zeitstrahl li:not(:last-child)::after { top: calc(var(--punkt) + .4rem); bottom: .4rem; left: calc(var(--punkt) / 2 - 1px); width: 2px; height: auto; }
  .zeitstrahl strong { margin-top: .7rem; }
}

/* Überschrift über dem Text (Feedback 26.10.) */
.unt-wer { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.unt-text { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.unt-text__spalte { max-width: 44rem; }
.unt-text { row-gap: clamp(2rem, 4vw, 3rem); }

/* Zwei Standorte: Verwaltung und neue Produktion, dazu eine statische Karte ohne Drittanbieter */
.standort--zwei .standort__text { display: grid; gap: 1.5rem; }
.standort__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(1.5rem, 4vw, 3rem); }
.standort__liste li { padding-top: .9rem; border-top: 1px solid rgb(0 0 0 / .18); }
.standort__liste h3 { margin: 0 0 .35rem; font-size: var(--t-h3); font-weight: 600;  }
.standort--zwei address { font-size: var(--t-text); font-weight: 400; color: var(--tinte-2); line-height: 1.5; }
.standort__platzhalter { font-style: italic; color: var(--tinte-2); }
.standort__karte { margin: 0; max-width: 40rem; }
.standort__karte svg { display: block; width: 100%; height: auto; border: 1px solid rgb(0 0 0 / .18); }
.standort__karte svg text { font-family: var(--schrift); font-weight: 500; }
.standort__karte figcaption { margin-top: .5rem; font-size: var(--t-klein); color: var(--tinte-2); font-weight: 500; }
@media (max-width: 640px) { .standort__liste { grid-template-columns: minmax(0, 1fr); } }

/* V12-Stand: drei Geschäftsfelder als Karten */
.unt-leitbild__raster--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .unt-leitbild__raster--drei { grid-template-columns: 1fr; } }
