/* ============================================================
   Emil Kammerer GmbH – One Pager
   Markenfarbe #1F2972 stammt aus dem Kammerer-Logo.
   ============================================================ */

:root {
  --brand: #1f2972;
  --brand-600: #2b3a9e;
  --brand-400: #4a5fc4;
  --brand-100: #e8ebf7;

  --ink: #10131c;
  --ink-2: #363c50;
  --ink-3: #6a7288;

  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #e7ebf4;
  --line: #dde2ee;

  --dark: #0e1226;
  --dark-2: #171d3a;

  --steel: #8a93ab;
  --signal: #d4761a;

  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(16 19 28 / 0.06), 0 8px 28px rgb(16 19 28 / 0.06);
  --shadow-lg: 0 2px 4px rgb(16 19 28 / 0.06), 0 20px 60px rgb(16 19 28 / 0.12);

  --nav-h: 72px;
  --ticker-h: 40px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anker landen unter Ticker + Nav */
  scroll-padding-top: calc(var(--nav-h) + var(--ticker-h) + 12px);
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  /* Kein overflow-x hier: der Wert propagiert zum Viewport und würde
     Ankersprünge blockieren. Breite Inhalte kapseln sich selbst
     (.ticker, .tbl-scroll). */
}

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

a {
  color: var(--brand-600);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}
h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}
h4 {
  font-size: 1.02rem;
}

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-600);
}

.btn--ghost {
  border-color: currentColor;
  color: var(--brand);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}
.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- Ticker ---------- */
.ticker {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--ticker-h);
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 0.86rem;
}
/* Der Track enthält jeden Eintrag zweimal – bei -50 % beginnt die Kopie
   exakt dort, wo das Original stand, die Schleife wirkt nahtlos. */
.ticker__track {
  display: flex;
  flex: 0 0 auto;
  gap: 4rem;
  padding-right: 4rem;
  white-space: nowrap;
  animation: ticker 34s linear infinite;
}
.ticker:hover .ticker__track,
.ticker.is-paused .ticker__track {
  animation-play-state: paused;
}
/* Tastatur- und Touch-Nutzer haben kein :hover – WCAG 2.2.2 braucht einen
   echten Schalter. */
.ticker__pause {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 0.9rem;
  border: 0;
  background: var(--brand-600);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
/* .ticker clippt – der Fokusring muss nach innen zeichnen */
.ticker__pause:focus-visible {
  outline-offset: -3px;
}
.ticker__item b {
  font-weight: 700;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgb(16 19 28 / 0.07);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__logo img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}
.nav__links a:hover {
  color: var(--brand);
  text-decoration: none;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__links a.is-current {
  color: var(--brand);
  font-weight: 600;
}
.nav__links a.is-current::after {
  transform: scaleX(1);
}

.nav__side {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang {
  display: flex;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
}
.lang a {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  color: var(--ink-3);
}
.lang a:hover {
  text-decoration: none;
  color: var(--brand);
}
.lang a.is-active {
  background: var(--brand);
  color: #fff;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--ticker-h) + 5rem) 0 5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcfe 0%, var(--surface-2) 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      42rem 30rem at 78% 12%,
      rgb(31 41 114 / 0.1),
      transparent 62%
    ),
    radial-gradient(
      30rem 24rem at 8% 85%,
      rgb(74 95 196 / 0.09),
      transparent 60%
    );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  /* "Spezialarmaturen" ist breiter als der Viewport unter ~343 px */
  hyphens: auto;
  overflow-wrap: anywhere;
}
.hero h1 .accent {
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.14em;
  background: var(--brand-400);
  opacity: 0.28;
  border-radius: 2px;
}

.lead {
  font-size: 1.13rem;
  max-width: 46ch;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2.2rem 0 2rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  list-style: none;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-3);
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero__badges li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
}

.hero__media {
  position: relative;
}
.hero__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero__media figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--dark);
  color: #fff;
  padding: 3.2rem 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  border-left: 2px solid rgb(255 255 255 / 0.16);
  padding-left: 1.4rem;
}
.stat__num {
  display: block;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: rgb(255 255 255 / 0.62);
  line-height: 1.45;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section--alt {
  background: var(--surface-2);
}
.section--dark {
  background: var(--dark);
  color: rgb(255 255 255 / 0.76);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}
.section--dark .eyebrow {
  color: var(--brand-100);
}
.section--dark .section__intro {
  color: rgb(255 255 255 / 0.68);
}

.section__head {
  max-width: 62ch;
  margin-bottom: 3rem;
}
.section__intro {
  margin-top: 1rem;
  font-size: 1.06rem;
  color: var(--ink-2);
}

/* ---------- Split (Text/Media) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}
.split--reverse .split__text {
  order: 1;
}
.split__text > h3 {
  margin: 2rem 0 0.8rem;
}
.split__text > h3:first-child {
  margin-top: 0;
}
.split__text p + p {
  margin-top: 0.9rem;
}
.split__text .btn {
  margin-top: 1.8rem;
}

.split__media {
  position: relative;
}
.seal {
  width: 110px;
  height: auto;
  margin-bottom: 1.5rem;
}

.framed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.framed img {
  width: 100%;
}
.framed figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

/* Prozesskette */
.chain {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 1.6rem 0 0.5rem;
  counter-reset: step;
}
.chain li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.96rem;
}
.chain span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
}

.ticks {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.ticks--two {
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.5rem;
}
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.98rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- Tabs ---------- */
.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  margin-bottom: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.tabs__btn {
  padding: 0.6rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tabs__btn:hover {
  color: var(--brand);
}
.tabs__btn.is-active {
  background: var(--brand);
  color: #fff;
}

.tabs__panel[hidden] {
  display: none;
}
.tabs__panel.is-active {
  animation: fadeUp 0.4s var(--ease);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- Produkte ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 1.6rem;
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.product:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product--wide {
  grid-column: 1 / -1;
}

/* Feste Höhe statt aspect-ratio: die Produktfotos haben sehr
   unterschiedliche Seitenverhältnisse, das Raster soll trotzdem ruhig bleiben. */
.product__img {
  height: 230px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}
.product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product--wide .product__img {
  height: 320px;
}

.product__body {
  padding: 1.6rem;
}
.product__type {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.4rem;
}
.product__body h3 {
  margin-bottom: 0.35rem;
}
.product__drive {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-bottom: 1.2rem;
}
.product--wide .product__body > p {
  max-width: 70ch;
  margin-bottom: 1.5rem;
}

/* Gestapelt statt zweispaltig: die Werte sind lange Normbezeichnungen,
   in einer schmalen Wertespalte würden sie zu Buchstabentürmen brechen. */
.specs {
  border-top: 1px solid var(--line);
  font-size: 0.89rem;
}
.specs > div {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.15rem;
}
.specs dd {
  color: var(--ink);
}

/* Auf voller Breite ist genug Platz für zwei Spalten. */
.product--wide .specs > div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.product--wide .specs dt {
  margin-bottom: 0;
}

.tbl__title {
  margin: 2rem 0 0.8rem;
}
.tbl-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.tbl {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  min-width: 640px;
}
.tbl th,
.tbl td {
  padding: 0.6rem 0.8rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl thead th {
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
}
.tbl tbody th {
  text-align: left;
  color: var(--ink);
  font-weight: 700;
}
.tbl tbody tr:last-child th,
.tbl tbody tr:last-child td {
  border-bottom: 0;
}

.note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* ---------- Antriebe ---------- */
.drives {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.drives__title {
  margin-bottom: 1.8rem;
}
.drives__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.drive {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.drive__imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.drive__imgs img {
  background: #fff;
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 0.9rem;
}
.drive figcaption {
  padding: 1.2rem 1.4rem;
  border-top: 1px solid var(--line);
}
.drive figcaption b {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.drive figcaption span {
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* ---------- Abdichtsysteme ---------- */
.seals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 1.2rem;
}
.seal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.seal-card:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow);
}
.seal-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  margin-bottom: 1.2rem;
}
.seal-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
}
.seal-card h3 span {
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.5rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.seal-card p {
  font-size: 0.92rem;
}

/* ---------- Anwendungen ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}
.app {
  background: var(--dark-2);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.app:hover {
  border-color: rgb(255 255 255 / 0.22);
  transform: translateY(-3px);
}
.app > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: saturate(0.85);
}
.app__body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
.app__body p {
  font-size: 0.94rem;
  color: rgb(255 255 255 / 0.72);
}
/* Selektor mit .app__body, damit er `.app__body p` ohne !important schlägt */
.app__body .app__note {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.86rem;
  color: rgb(255 255 255 / 0.55);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chips li {
  padding: 0.28rem 0.75rem;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  font-size: 0.79rem;
  color: rgb(255 255 255 / 0.82);
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 2.5rem;
  max-width: 74ch;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(var(--brand), var(--surface-3));
}
.timeline li {
  position: relative;
  padding-bottom: 2.4rem;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 0.55rem;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--surface);
  border: 3px solid var(--brand);
  border-radius: 50%;
}
.timeline__year {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.3rem;
}
.timeline h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}
.timeline p {
  font-size: 0.96rem;
}

/* ---------- Logos ---------- */
/* Weißer Grund statt Rasterlinien – die letzte Reihe geht selten auf,
   leere Zellen mit Rahmen sähen nach fehlenden Logos aus. */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0.5rem;
}
.logos img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  padding: 1.4rem;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}
.logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- Zertifikate ---------- */
.certs {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: start;
}
.certs__list {
  display: grid;
  gap: 0.7rem;
}
.cert {
  display: block;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cert:hover {
  text-decoration: none;
  border-color: var(--brand-400);
  background: var(--brand-100);
}
.cert b {
  display: block;
  color: var(--ink);
  font-size: 0.99rem;
}
.cert span {
  font-size: 0.87rem;
  color: var(--ink-3);
}

.ecovadis {
  text-align: center;
  padding: 2rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ecovadis img {
  width: 130px;
  margin: 0 auto 1rem;
}
.ecovadis h3 {
  margin-bottom: 0.5rem;
}
.ecovadis p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pubs {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.pubs h3 {
  margin-bottom: 0.5rem;
}
.pubs > p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.pubs__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 0.5rem 2rem;
}
.pubs__list a {
  display: block;
  padding: 0.5rem 0 0.5rem 1.6rem;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pubs__list a::before {
  content: "↓";
  position: absolute;
  left: 0;
  color: var(--brand-400);
  font-weight: 700;
}

/* ---------- Service ---------- */
.service {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.service__list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.service__list li {
  padding: 0.8rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.96rem;
}

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.person {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.person img {
  width: 92px;
  height: 118px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.person h3 {
  font-size: 1.08rem;
}
.person__role {
  font-size: 0.85rem;
  color: var(--brand-600);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.person__contact {
  font-size: 0.86rem;
  line-height: 1.8;
  word-break: break-word;
}
.person__contact a {
  color: var(--ink-2);
}
.person__contact a:hover {
  color: var(--brand);
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact__info address {
  font-style: normal;
  margin: 0.6rem 0 1.8rem;
  color: rgb(255 255 255 / 0.76);
}
.contact__dl > div {
  padding: 0.85rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.contact__dl dt {
  font-size: 0.79rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.5);
  margin-bottom: 0.2rem;
}
.contact__dl dd {
  font-size: 0.98rem;
  color: #fff;
  word-break: break-word;
}
.contact__dl a {
  color: #fff;
}
.contact__dl a:hover {
  color: var(--brand-100);
}
.contact__info h4 {
  margin: 2rem 0 0.5rem;
}
.contact__partners {
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.6);
}

.form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-lg);
}
.form h3 {
  margin-bottom: 1.4rem;
}
.field {
  margin-bottom: 1rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field label span {
  color: #c0392b;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface-2);
  /* --line (1,3:1 auf Weiß) reicht für Bedienelement-Grenzen nicht, WCAG 1.4.11 */
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--brand-400);
}
.field input:user-invalid,
.field select:user-invalid {
  border-color: #c0392b;
}
.form .btn {
  margin-top: 0.6rem;
}
.form__hint {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-3);
  text-align: center;
}
.form__hint.is-error {
  color: #c0392b;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-2);
  color: rgb(255 255 255 / 0.62);
  padding: 3.5rem 0 0;
  font-size: 0.92rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__brand img {
  height: 30px;
  width: auto;
  background: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.footer__brand p {
  max-width: 30ch;
  font-size: 0.88rem;
}
.footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.footer a {
  color: rgb(255 255 255 / 0.62);
}
.footer a:hover {
  color: #fff;
}
.footer__contact address {
  font-style: normal;
  margin-bottom: 0.7rem;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.4rem;
  /* Platz für den fixierten Nach-oben-Button in der rechten Ecke. */
  padding-bottom: 4.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.84rem;
}
.footer__bar nav {
  display: flex;
  gap: 1.5rem;
}

/* ---------- To-Top ---------- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.to-top:hover {
  background: var(--brand-600);
  text-decoration: none;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Rechtsseiten (Impressum, Datenschutz) ----------
   Kein Ticker auf diesen Seiten – .nav hängt an --ticker-h, das
   Überschreiben auf <body> reicht, weil .nav den Wert erbt. */
.legal-page {
  --ticker-h: 0px;
}

.legal {
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
}
.legal__head {
  margin-bottom: 3rem;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0.6rem;
}
.legal section {
  max-width: 74ch;
}
.legal section + section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.legal h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 1.2rem;
}
.legal h3 {
  margin: 2rem 0 0.6rem;
}
.legal h2 + h3 {
  margin-top: 0;
}
.legal p + p,
.legal address + p,
.legal p + address,
.legal ul + p {
  margin-top: 1rem;
}
.legal address {
  font-style: normal;
  color: var(--ink);
}
.legal ul {
  margin: 1rem 0 0 1.3rem;
}
.legal li + li {
  margin-top: 0.5rem;
}

.legal__dl > div {
  display: flex;
  gap: 0.75rem;
}
.legal__dl dt {
  min-width: 6rem;
  font-weight: 600;
  color: var(--ink);
}

.legal__credits {
  list-style: none;
  margin-left: 0;
  columns: 3;
  column-gap: 1.5rem;
}
.legal__credits li + li {
  margin-top: 0.35rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__media {
    max-width: 380px;
  }
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }
  .split,
  .service,
  .contact,
  .certs {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .split--reverse .split__text {
    order: 0;
  }
  .split__media {
    max-width: 520px;
  }
  .drives__grid,
  .people {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Sieben Hauptpunkte plus Sprache und CTA brauchen ~1080 px –
   darunter wandert die Navigation ins Burger-Menü. */
@media (max-width: 1080px) {
  .nav__links {
    position: fixed;
    inset: calc(var(--nav-h) + var(--ticker-h)) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 1.25rem 1.25rem;
    /* Im Querformat ist das Panel höher als der Viewport */
    max-height: calc(100dvh - var(--nav-h) - var(--ticker-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s;
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__links a::after {
    display: none;
  }
  .nav__side {
    margin-left: auto;
  }
  .nav__burger {
    display: flex;
  }
  .nav__cta {
    display: none;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .stats__grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .product--wide .specs > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .ticks--two {
    grid-template-columns: 1fr;
  }
  .tabs__bar {
    width: 100%;
    border-radius: var(--radius);
  }
  .tabs__btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .drive__imgs {
    grid-template-columns: 1fr;
  }
  .person {
    flex-direction: column;
  }
  .person img {
    width: 100%;
    height: 220px;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form,
  .pubs {
    padding: 1.5rem;
  }
  .to-top {
    right: 1rem;
    bottom: 1rem;
  }
  .legal__credits {
    columns: 2;
  }
}

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

@media print {
  .ticker,
  .nav,
  .to-top,
  .form {
    display: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .tabs__panel[hidden] {
    display: block !important;
  }
  .section--dark,
  .stats {
    background: #fff !important;
    color: #000 !important;
  }
}
