@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans.ttf") format("truetype");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #fff;
  --muted: #e6e6e6;
  --container: 1645px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header__inner {
  display: flex;
  align-items: center;
  height: 72px;
}
.logo img { display: block; height: 30px; width: auto; }

/* Hero */
.hero {
  position: relative;
  height: 180px;
  background: #000 url("../img/header.avif") left center / auto 100% no-repeat;
}
.hero__title {
  position: absolute;
  left: 680px; /* Text endet vor dem letzten farbigen Streifen des Bildes (ca. 1370 px) */
  top: 34px;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .06em;
}

/* Inhalt */
.content {
  max-width: 772px;
  margin: 0 auto;
  padding: 50px 16px 60px;
  font-size: 17px;
  line-height: 1.42;
  color: var(--muted);
}
.content p { margin: 0 0 1em; }

/* Bestellformular */
.material-liste {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid #2a2a2a;
}
.material {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #2a2a2a;
}
/* Gleiche Bildspalte für alle, damit der Text überall an derselben Stelle beginnt */
.material__bild {
  display: block;
  width: 140px;
  height: auto;
  justify-self: center; /* Hochformat mittig in der Bildspalte */
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,.6);
}
.material--quer .material__bild { width: 100%; }
.material--mockup .material__bild { border-radius: 0; box-shadow: none; }
.material__text h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.material__text p { margin: 0 0 6px; }
.material__max { font-size: 14px; color: #2bb5b1; }
.material__menge { display: flex; flex-direction: column; gap: 6px; }
.material__menge label { font-size: 14px; }
.material__menge select {
  min-width: 90px;
  padding: 10px 36px 10px 14px;
  font: inherit;
  color: var(--text);
  background: #141414 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") right 14px center no-repeat;
  border: 1px solid #444;
  border-radius: 6px;
  appearance: none;
  cursor: pointer;
}
.material__menge select:focus { outline: 2px solid #2bb5b1; outline-offset: 2px; }

/* Hinweis auf digitale Materialien */
.digital-hinweis {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 4px solid #2bb5b1;
  border-radius: 6px;
  background: rgba(43,181,177,.10);
}
.digital-hinweis h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--text); }
.digital-hinweis p { margin: 0 0 12px; }
.digital-hinweis__link { font-weight: 700; color: #2bb5b1; }
.digital-hinweis__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Abschnitte, Lieferdaten */
.abschnitt {
  margin: 48px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.material-liste.ist-fehler { border-top-color: #e62929; }
.felder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-top: 20px;
}
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld--breit { grid-column: 1 / -1; }
.feld label { font-size: 14px; }
.feld input,
.feld select,
.feld textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #141414;
  border: 1px solid #444;
  border-radius: 6px;
}
.feld select {
  padding-right: 36px;
  background: #141414 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") right 14px center no-repeat;
  appearance: none;
  cursor: pointer;
}
.feld textarea { resize: vertical; min-height: 120px; }
.feld input:focus,
.feld select:focus,
.feld textarea:focus { outline: 2px solid #2bb5b1; outline-offset: 2px; border-color: transparent; }
.feld.ist-fehler input,
.feld.ist-fehler select { border-color: #e62929; }
.feld.ist-fehler label { color: #ff6b6b; }

.hinweis { margin: 16px 0 24px; font-size: 14px; }

/* ALTCHA-Spamschutz im dunklen Look */
.spamschutz {
  display: block;
  margin-bottom: 24px;
  --altcha-color-base: #141414;
  --altcha-color-base-content: #fff;
  --altcha-color-primary: #2bb5b1;
  --altcha-color-success: #2bb5b1;
  --altcha-color-error: #e62929;
  --altcha-border-color: #444;
  --altcha-border-radius: 6px;
  --altcha-max-width: 340px;
}
.spamschutz.ist-fehler { --altcha-border-color: #e62929; }
.button {
  padding: 14px 32px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: #e62929;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.button:hover { background: #c81f1f; }
.button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Rechtstexte (Impressum, Datenschutz) */
.rechtstext h2 { margin: 36px 0 12px; font-size: 20px; font-weight: 700; color: var(--text); }
.rechtstext h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 700; color: var(--text); }
.rechtstext ul { margin: 0 0 1em; padding-left: 22px; }
.rechtstext li { margin-bottom: 6px; }
.rechtstext a { color: #2bb5b1; }
.rechtstext a:hover { text-decoration: underline; }
.zurueck { margin-top: 40px; }

/* Footer */
.site-footer { border-top: 1px solid #2a2a2a; }
.site-footer__inner {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 24px 16px 32px;
  font-size: 14px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Meldungen */
.meldung {
  margin: 32px 0;
  padding: 18px 22px;
  border-radius: 8px;
  border: 1px solid;
}
.meldung h2 { margin: 0 0 10px; font-size: 22px; color: var(--text); }
.meldung p { margin: 0 0 8px; }
.meldung ul { margin: 0 0 8px; padding-left: 20px; }
.meldung--fehler { border-color: #e62929; background: rgba(230,41,41,.12); }
.meldung--erfolg { border-color: #2bb5b1; background: rgba(43,181,177,.12); }

/* Schmalere Bildschirme */
@media (max-width: 1451px) {
  /* Bild rechtsbündig, damit die farbigen Streifen rechts hinter dem Text liegen */
  .hero { background-position: right center; }
  .hero__title { left: auto; right: 100px; }
}
@media (max-width: 1100px) {
  .hero { background-position: 30% center; }
  .hero__title { font-size: 24px; left: auto; right: 40px; max-width: 46%; }
}
@media (max-width: 720px) {
  .site-header__inner { justify-content: center; height: 64px; }
  .hero { height: auto; padding-top: 120px; background-position: 30% center; }
  .hero__title {
    position: static;
    max-width: none;
    padding: 14px 16px;
    font-size: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.85) 35%);
  }
  .hero__title br { display: none; }
  .material { grid-template-columns: 96px 1fr; gap: 16px; }
  .material__bild { width: 100%; }
  .material__menge { grid-column: 2; flex-direction: row; align-items: center; gap: 12px; }
  .material--quer { grid-template-columns: 1fr; }
  .material--quer .material__menge { grid-column: 1; }
  .felder { grid-template-columns: 1fr; }
  .button { width: 100%; }
}
