/* =====================================================================
   Otto Schmidt GmbH – Import-Export
   Entwurf 2026 „modern“: redaktioneller Stil, Papierton, Haarlinien-Raster
   (ohne Framework, ohne Build-Schritt)

   Inhalt
   1.  Schrift (lokal gehostet – keine Verbindung zu Google)
   2.  Design-Variablen
   3.  Basis
   4.  Helfer: Container, Beschriftung, Buttons
   5.  Kopfbereich und Navigation
   6.  Startseite: Titelblatt, Register, Eckdaten
   7.  Seitenkopf der Unterseiten
   8.  Unternehmen (about/)
   9.  Produkte (Katalog mit Reitern)
   10. Kontakt
   11. Fußbereich
   12. Rechtstexte, Nachhaltigkeit, Dateitypen, Fehlerseite
   13. Lightbox (Produktbilder vergrößern)
   14. Bewegung, Barrierefreiheit, Druck
   ===================================================================== */

/* 1. Schrift -----------------------------------------------------------
   Inter 4.001 – Copyright 2016 The Inter Project Authors
   SIL Open Font License 1.1, Lizenztext: assets/fonts/OFL-Inter.txt */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Design-Variablen -------------------------------------------------- */
:root {
  color-scheme: light;

  /* Papier und Tinte; Blau aus dem Logo nur als Akzent */
  --paper: #f4f2ec;
  --paper-2: #ebe7dd;
  --card: #fbfaf7;
  --ink: #0b1530;
  --text: #2e364b;
  --muted: #5f6678;
  --line: #d6d1c4;
  --blue: #0017e8;
  --blue-hover: #0012b5;
  --navy: #081432;
  --navy-line: rgb(255 255 255 / .14);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --max-w: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --tabs-h: 0px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 960px) {
  :root { --header-h: 76px; }
}

/* 3. Basis ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--tabs-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 .5em;
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.5rem); letter-spacing: -.045em; line-height: 1; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
h4 { font-size: 1.0625rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .2s var(--ease);
}
a:hover { color: var(--blue-hover); }

strong { font-weight: 650; color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* 4. Helfer ------------------------------------------------------------- */
.container {
  width: min(var(--max-w), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Kleine Beschriftung in Schreibmaschinenschrift mit blauem Quadrat */
.label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before,
.eyebrow::before {
  content: "";
  width: .55rem;
  height: .55rem;
  flex: none;
  background: var(--blue);
}

.lead {
  font-size: clamp(1.075rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 50px;
  padding: .8rem 1.15rem .8rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font: 500 .95rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn--ghost,
.btn--light { background: transparent; color: var(--ink); }
.btn--ghost:hover,
.btn--light:hover { background: var(--ink); color: var(--paper); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.icon { width: 22px; height: 22px; flex: none; }

/* Abschnittskopf im Register-Stil: Beschriftung | Titel | Text */
.section-bar {
  display: grid;
  gap: .25rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink);
}
.section-bar .label { margin: .35rem 0 .75rem; }
.section-bar h2 { margin: 0; }
.section-bar p { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
  .section-bar { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); align-items: start; }
}

/* 5. Kopfbereich ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(244 242 236 / .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
/* offizielles Logo „Otto Schmidt Import-Export“ (SVG, Seitenverhältnis ca. 6 : 1) */
.brand__logo { width: auto; height: 28px; }
@media (min-width: 960px) {
  .brand__logo { height: 34px; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 44px;
  padding: 0 .9rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: 500 .9rem/1 var(--font);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 399px) {
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  .nav-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Navigation: unter 960 px als Popover-Menü (ohne JavaScript bedienbar), darüber als Leiste */
.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  width: auto;
  max-height: calc(100dvh - var(--header-h));
  margin: 0;
  padding: .5rem var(--gutter) 1.75rem;
  overflow: auto;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.nav::backdrop { background: rgb(11 21 48 / .35); }
.nav__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 520;
  letter-spacing: -.025em;
  text-decoration: none;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--blue); }
.nav__contact {
  display: grid;
  gap: .35rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
}
.nav__contact a {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  text-decoration: none;
}
.nav__contact svg { width: 17px; height: 17px; color: var(--blue); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav,
  .nav[popover] {
    position: static;
    display: block;
    inset: auto;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
  }
  .nav__list { display: flex; align-items: center; gap: 2.25rem; }
  .nav__link {
    padding: .5rem 0;
    border: 0;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: -.005em;
  }
  .nav__link:hover,
  .nav__link[aria-current="page"] { color: var(--ink); }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after { transform: none; }
  .nav__link--cta {
    margin-left: .25rem;
    padding: .65rem 1.1rem;
    background: var(--ink);
    color: var(--paper);
  }
  .nav__link--cta:hover,
  .nav__link--cta[aria-current="page"] { background: var(--blue); color: #fff; }
  .nav__link--cta::after { display: none; }
  .nav__contact { display: none; }
}

/* 6. Startseite ----------------------------------------------------------
   Titelblatt: passt ab ca. 900 px Fensterhöhe in eine Bildschirmhöhe */
.cover {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1.5rem, 3.5vw, 2.75rem);
}
.cover__main {
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) {
  .cover__main { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); }
}
.cover__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.cover__title {
  margin: 0;
  font-size: clamp(2.75rem, .6rem + 4.4vw, 5.25rem);
  font-weight: 560;
  line-height: .96;
  letter-spacing: -.05em;
}
.cover__title > span { color: var(--blue); }
.nowrap { white-space: nowrap; }
.cover__text .lead { max-width: 34ch; margin-bottom: 1.5rem; }

/* Bild immer im Seitenverhältnis des Fotos: nichts wird abgeschnitten, das Schild bleibt ganz sichtbar */
.cover__media {
  position: relative;
  align-self: end;
  margin: 0;
  background: var(--paper-2);
}
.cover__media img {
  width: 100%;
  aspect-ratio: 1320 / 1000;
  object-fit: cover;
}
/* Register der Produktbereiche */
.index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}
@media (min-width: 760px) {
  .index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .index { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* eigener Hintergrund nötig, damit mix-blend-mode in der animierten Zelle wirkt */
.index li { border-bottom: 1px solid var(--line); background: var(--paper); }
.index li:nth-child(odd) { border-right: 1px solid var(--line); }
@media (min-width: 760px) {
  .index li,
  .index li:nth-child(odd) { border-right: 1px solid var(--line); }
  .index li:nth-child(3n) { border-right: 0; }
}
@media (min-width: 1100px) {
  .index li { border-bottom: 0; }
  .index li:nth-child(3n) { border-right: 1px solid var(--line); }
  .index li:last-child { border-right: 0; }
}
.index__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: .4rem .75rem;
  height: 100%;
  min-height: 108px;
  padding: .9rem .9rem 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .25s var(--ease);
}
.index__item:hover { background: var(--card); color: var(--ink); }
.index__num {
  font: 500 .72rem/1.4 var(--mono);
  letter-spacing: .05em;
  color: var(--muted);
}
.index__name {
  align-self: end;
  font-size: 1.05rem;
  font-weight: 540;
  line-height: 1.2;
  letter-spacing: -.02em;
  transition: color .25s var(--ease);
}
.index__item:hover .index__name { color: var(--blue); }
.index__img {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 64px;
}
.index__img img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .45s var(--ease);
}
.index__item:hover .index__img img { transform: scale(1.1) rotate(-3deg); }
@media (max-width: 759px) {
  /* schmale Spalten: Bild klein oben rechts, Name in voller Breite darunter */
  .index__item { min-height: 0; gap: .5rem; }
  .index__name { grid-column: 1 / -1; }
  .index__img { grid-row: 1; align-self: start; width: 44px; }
  .index__img img { width: 44px; height: 44px; }
}

/* Eckdaten unter dem Titelblatt */
.facts { padding-block: clamp(3rem, 7vw, 5.5rem); }
.facts__list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}
.facts__list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.facts__list strong {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 3rem);
  font-weight: 520;
  line-height: 1;
  letter-spacing: -.045em;
}
.facts__list span { color: var(--muted); }
.facts__more { margin-top: 1.75rem; }
@media (min-width: 760px) {
  .facts__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts__list li {
    grid-template-columns: none;
    gap: .75rem;
    padding: 1.4rem 1.5rem 0;
    border-bottom: 0;
  }
  .facts__list li:first-child { padding-left: 0; }
  .facts__list li + li { border-left: 1px solid var(--line); }
}

/* 7. Seitenkopf der Unterseiten ----------------------------------------- */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.page-hero h1 { max-width: 18ch; margin: 0; }
.page-hero p:not(.eyebrow) {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.075rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
}
.page-hero__grid { display: grid; gap: 1.25rem 3rem; }
@media (min-width: 960px) {
  .page-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .page-hero__grid p:not(.eyebrow) { margin: 0; }
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
  font: 500 .75rem/1.4 var(--mono);
  letter-spacing: .04em;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

.page-body { padding-block: 0 clamp(4rem, 8vw, 6.5rem); }
.page-body > .container { padding-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--ink); }

/* 8. Unternehmen -------------------------------------------------------- */
.about { padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.years {
  display: grid;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}
.years li {
  position: relative;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.years strong {
  font-size: clamp(2rem, 1.2rem + 3vw, 4.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
}
.years li:last-child strong { color: var(--blue); }
.years span { color: var(--muted); }
@media (min-width: 760px) {
  /* Zeitstrahl: Linie mit Markierungen über den Jahreszahlen */
  .years {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 2.25rem;
  }
  .years li {
    grid-template-columns: none;
    gap: .75rem;
    padding: 0 2rem 0 0;
    border: 0;
  }
  .years li::before {
    content: "";
    position: absolute;
    top: calc(-2.25rem - 6px);
    left: 0;
    width: 11px;
    height: 11px;
    border: 1px solid var(--ink);
    background: var(--paper);
  }
  .years li:last-child::before { border-color: var(--blue); background: var(--blue); }
}

.wide-media { margin: 0 0 clamp(3rem, 7vw, 5.5rem); }
.wide-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
}
@media (min-width: 760px) {
  .wide-media img { aspect-ratio: 21 / 8; }
}

.principles {
  display: grid;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}
.principles li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: principle;
}
.principles li::before {
  content: counter(principle, decimal-leading-zero);
  font: 500 .75rem/1.9 var(--mono);
  color: var(--muted);
}
.principles p { margin: 0; font-size: 1.075rem; color: var(--ink); }
.principles .features__icon { margin-bottom: 1rem; }
@media (min-width: 960px) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .principles li {
    grid-template-columns: none;
    align-content: start;
    gap: 1rem;
    padding: 1.5rem 2rem 2rem 0;
    border: 0;
  }
  .principles li + li { padding-left: 2rem; border-left: 1px solid var(--line); }
}

.features__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  color: var(--blue);
}
.features__icon svg { width: 22px; height: 22px; }

/* 9. Produkte ------------------------------------------------------------ */
.catalogue {
  display: grid;
  gap: 0 clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid var(--ink);
}
@media (min-width: 960px) {
  .catalogue { grid-template-columns: 250px minmax(0, 1fr); }
}

/* Register der Bereiche: mobil eine waagerechte Leiste, ab 960 px senkrecht neben dem Raster */
.catalogue__nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.catalogue__nav ol {
  display: flex;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.catalogue__nav ol::-webkit-scrollbar { display: none; }
.catalogue__nav a {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  margin-bottom: -1px;
  padding: .95rem 1rem .9rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.catalogue__nav a span { font: 500 .7rem/1 var(--mono); }
.catalogue__nav a:hover { color: var(--ink); }
.catalogue__nav a[aria-selected="true"] { border-bottom-color: var(--blue); color: var(--ink); }
@media (max-width: 959px) {
  :root { --tabs-h: 52px; }
}
@media (min-width: 960px) {
  .catalogue__nav {
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }
  .catalogue__nav ol { display: grid; overflow: visible; }
  .catalogue__nav li { border-bottom: 1px solid var(--line); }
  .catalogue__nav a {
    position: relative;
    margin: 0;
    padding: .95rem 0 .95rem 1.5rem;
    border: 0;
    font-size: 1.05rem;
    white-space: normal;
  }
  .catalogue__nav a span { position: absolute; left: 0; top: 1.25rem; }
  .catalogue__nav a[aria-selected="true"] { color: var(--blue); }
  .catalogue__nav a[aria-selected="true"]::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: .55rem;
    height: .55rem;
    margin-top: -.275rem;
    background: var(--blue);
  }
}

.panel { padding-top: clamp(1.75rem, 3vw, 2rem); }
.panel + .panel { margin-top: 2.5rem; border-top: 1px solid var(--line); } /* nur ohne JavaScript sichtbar */
.panel__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.panel__head h2 { margin: 0; }
.panel__num { font: 500 .8rem/1 var(--mono); color: var(--blue); }

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
}
@media (min-width: 1200px) {
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.product {
  display: block;
  color: var(--ink);
  text-decoration: none;
  cursor: zoom-in;
}
.product:hover { color: var(--ink); }
.product__img {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color .3s var(--ease);
}
.product__img picture { width: 100%; height: 100%; }
.product__img img {
  width: 100%;
  height: 100%;
  padding: 9%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .45s var(--ease);
}
.product:hover .product__img { border-color: var(--ink); }
.product:hover .product__img img { transform: scale(1.05); }
.product__img::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.product:hover .product__img::after,
.product:focus-visible .product__img::after { opacity: 1; }
.product__name {
  display: block;
  margin-top: .65rem;
  font-size: .95rem;
  line-height: 1.4;
}

/* 10. Kontakt ------------------------------------------------------------ */
.contact {
  display: grid;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--ink);
}
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .2rem 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.contact-list li:first-child .contact-item { padding-top: 0; }
.contact-item small {
  grid-column: 1;
  font: 500 .72rem/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item__value {
  grid-column: 1;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem);
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  transition: color .2s var(--ease);
}
.contact-item svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
a.contact-item:hover { color: var(--ink); }
a.contact-item:hover .contact-item__value { color: var(--blue); }
a.contact-item:hover svg { color: var(--blue); transform: translate(2px, -2px); }

.contact__media { margin: 0; }
.contact__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 80% 55%;
}
@media (min-width: 960px) {
  .contact__media img { aspect-ratio: 16 / 10; }
}

/* 11. Fußbereich --------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #b7bfd2;
  font-size: .95rem;
}
.site-footer a { color: #e4e8f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__inner {
  display: grid;
  gap: 2.25rem 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .site-footer__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); }
}
.site-footer .brand__logo { height: 30px; filter: brightness(0) invert(1); } /* Logo weiß auf Navy */
.footer-title {
  margin: 0 0 .9rem;
  font: 500 .72rem/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8f9ab3;
}
.footer-links {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line);
  font-size: .85rem;
  color: #8f9ab3;
}

/* 12. Rechtstexte und weitere Unterseiten ---------------------------------- */
.prose { max-width: 72ch; }
/* Datenschutz: Linie über volle Breite, Text linksbündig mit lesbarer Zeilenlänge */
.container.prose { max-width: none; }
.container.prose > * { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.75rem 0 1rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.prose h3 { margin: 2.5rem 0 .85rem; font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); letter-spacing: -.015em; }
.prose h4 { margin: 1.75rem 0 .6rem; }
.prose ul,
.prose ol { margin: 0 0 1.2em; padding-left: 1.3rem; }
.prose li { margin: .4rem 0; padding-left: .25rem; }
.prose li::marker { color: var(--blue); }
.prose a { overflow-wrap: anywhere; }
.prose .source { color: var(--muted); font-size: .95rem; }

.lang-switch {
  display: inline-flex;
  margin: 0 0 2.5rem;
  padding: 0;
  border: 1px solid var(--ink);
  list-style: none;
}
.lang-switch li + li { border-left: 1px solid var(--ink); }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1rem;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
}
.lang-switch a:hover { background: var(--ink); color: var(--paper); }

.flag {
  width: 22px;
  height: 15px;
  flex: none;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(11 21 48 / .15);
}

.lang-block + .lang-block {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--ink);
}
.prose .lang-block__label + h2 { margin-top: 0; }
.lang-block__label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  font: 500 .75rem/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc {
  margin: 1.5rem 0 2.25rem;
  border: 1px solid var(--line);
  background: var(--card);
}
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-weight: 560;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .25s var(--ease);
}
.toc[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.toc ol {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  columns: 2 280px;
  column-gap: 2rem;
  font-size: .95rem;
  list-style: none; /* Nummern stehen bereits in den Überschriften */
}
.toc li { margin: .3rem 0; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

/* Lange deutsche Wörter (z. B. „Umsatzsteuer-Identifikationsnummer“) sauber umbrechen */
.imprint-grid > *,
.sustain-grid > *,
.ft-grid > *,
.catalogue > *,
.contact > * { min-width: 0; }
.info-card,
.sustain-card,
.prose,
.page-hero h1 {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Impressum */
.imprint-grid { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
@media (min-width: 760px) {
  .imprint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.info-card { padding: clamp(1.4rem, 3vw, 2rem); background: var(--card); }
.info-card h2 {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1rem;
  font-size: 1.2rem;
  letter-spacing: -.015em;
}
.info-card h2 .features__icon { width: 38px; height: 38px; }
.info-card h2 .features__icon svg { width: 19px; height: 19px; }
.info-card h2 > span:last-child { min-width: 0; }
.info-card p:last-child { margin-bottom: 0; }
.info-card--wide { grid-column: 1 / -1; }
.imprint-source { margin: 1.75rem 0 0; font-size: .95rem; color: var(--muted); }

/* Nachhaltigkeit */
.sustain-grid { display: grid; gap: 1px; align-items: stretch; border: 1px solid var(--line); background: var(--line); }
@media (min-width: 960px) {
  .sustain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sustain-card { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--card); }
.sustain-card h2 { margin-bottom: .4rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.sustain-card .subtitle { margin: 0 0 1.5rem; font-size: 1.1rem; font-weight: 500; color: var(--blue); }
.sustain-card .note { margin-top: 1.5rem; font-style: italic; color: var(--ink); }
.pillars {
  display: grid;
  gap: .75rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.pillars li { padding: 1rem 1.15rem; border-left: 2px solid var(--blue); background: var(--paper); }
.pillars strong { display: block; margin-bottom: .2rem; }

/* Blockierte Dateitypen */
.ft-section + .ft-section { margin-top: clamp(3rem, 6vw, 4.5rem); }
.ft-section > h2 {
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: 34ch;
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.9rem);
}
.ft-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
}
.ft-badge svg { width: 22px; height: 22px; }
.ft-badge--ok { background: #e3f3e9; color: #12793f; }
.ft-badge--no { background: #fbe9e7; color: #b42318; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--mono);
  font-size: .88rem;
  line-height: 1.4;
  color: var(--ink);
}
.chips--ok .chip {
  padding: .5rem 1rem;
  border-color: #b9e0c8;
  background: #eef8f1;
  color: #0f5f33;
  font-size: 1.05rem;
  font-weight: 600;
}
.ft-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ft-card { padding: 1.35rem 1.4rem 1.5rem; border: 1px solid var(--line); background: var(--card); }
.ft-card h3 { margin: 0 0 .9rem; font-size: 1.1rem; letter-spacing: -.01em; }
.ft-card .chip { border-color: #efd2cd; background: #fdf6f5; color: #7a1d14; }
.ft-card .ft-note { margin: 0 0 .75rem; font-weight: 650; font-style: italic; color: var(--ink); }

/* Fehlerseite */
.error-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-top: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.error-page .code {
  margin: 0;
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--blue);
}
.error-page .actions { justify-content: center; margin-top: 2rem; }

/* 13. Lightbox ------------------------------------------------------------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.lightbox::backdrop { background: rgb(8 20 50 / .92); }
.lightbox__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 72px 16px 88px;
}
.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: .9rem;
  margin: 0;
}
.lightbox__img {
  width: auto;
  max-width: min(92vw, 760px);
  max-height: calc(100dvh - 190px);
  background: #fff;
}
.lightbox__caption {
  font-size: .95rem;
  color: rgb(255 255 255 / .85);
  text-align: center;
}
.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .3);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__btn:hover { border-color: #fff; background: rgb(255 255 255 / .12); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -24px; }
.lightbox__counter {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font: 500 .8rem/1 var(--mono);
  letter-spacing: .08em;
  color: rgb(255 255 255 / .7);
}
@media (max-width: 599px) {
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 20px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* 14. Bewegung, Barrierefreiheit, Druck -------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .cover__text > *,
  .cover__media,
  .index li {
    animation: rise .8s var(--ease) both;
  }
  .cover__media { animation-delay: .1s; }
  .index li:nth-child(1) { animation-delay: .2s; }
  .index li:nth-child(2) { animation-delay: .25s; }
  .index li:nth-child(3) { animation-delay: .3s; }
  .index li:nth-child(4) { animation-delay: .35s; }
  .index li:nth-child(5) { animation-delay: .4s; }
  .index li:nth-child(6) { animation-delay: .45s; }
  .panel { animation: fade .45s var(--ease) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media print {
  .site-header,
  .catalogue__nav,
  .lang-switch,
  .site-footer { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .panel[hidden] { display: block; }
}
