/*
 * style.css — Produkt-Landingpage Nordwerk GmbH
 * Version: 2.8.0
 *
 * Look & Feel an nordwerk.de angelehnt:
 *   Schrift  THICCCBOI (400/500/700) von nordwerk.de, System-Sans als Fallback
 *   Farben   Text #60697B · Ueberschrift #343F52 · Markenblau #1D71B8
 *            Flaechenblau #E5F4FD / #F3FAFE · Footer #343F52
 *   Formen   8-12px Radien fuer Karten, Pill-Buttons wie im Shop-Button
 * Mobile-first, ohne Framework, ohne unnoetige Animation.
 *
 * Changelog:
 *   2.8.0  Typseite /typ/{typ}: .typ__label, .typ__code, .typ__adresse,
 *          .typ__kontakt, .typ__hinweis, .typ__en (14.10.2026).
 *   2.5.4  Hero-Grafik (.hero) und Footer-Logo (.siteftr__logo) unterhalb
 *          480px (Handy) ausgeblendet - die Schrift in der Hero-SVG war
 *          dort unleserlich klein; Footer-Logo dort verzichtbar.
 *   2.5.3  Groesserer Abstand oberhalb von Compliance-Informationen
 *          (.section--compliance, 54px statt 30px) - stand zu dicht am
 *          Block darueber.
 *   2.5.2  Bugfix: max-width auf .card__contact-img entfernt, die den
 *          "Noch Fragen?"-Text ungewollt verkleinert hatte (jetzt wieder
 *          volle Kartenbreite wie urspruenglich).
 *   2.5.1  Footer-Logo auf helle Bildvariante umgestellt (keine weisse
 *          Flaeche mehr noetig); Telefontext im Karten-Kontaktbereich
 *          entfernt (.card__contact-phone entfallen).
 *   2.5.0  Logo klein im Footer (.siteftr__logo), rechts neben den
 *          Impressumangaben, auf heller Flaeche fuer Lesbarkeit.
 *   2.4.1  Kontaktbereich "Noch Fragen?" (.card__contact) in die Karte
 *          integriert statt als separat gerundete Box darunter.
 *   2.4.0  Closing-Hero "Noch Fragen?" (.closing-hero) am Seitenende.
 *   2.3.0  Charge/Los-Zeile (.batch) im Abschnitt Compliance-Informationen.
 *   2.2.0  Hero-Grafik (.hero) oberhalb der Produktkarte.
 *   2.1.0  Echte Nordwerk-Logos: Kopfzeile mit logo-nordwerk.png,
 *          Favicon/og:image aus nordwerk-verpackungen-kachel.png.
 *   2.0.0  Optische Angleichung an nordwerk.de (Schrift, Farben, Footer).
 *   1.0.0  Erste Fassung.
 */

/* ---------- Schrift (dieselben Dateien wie nordwerk.de) --------- *
 * Die Seite laeuft unter id.nordwerk.de, die Schrift liegt auf der
 * Hauptdomain -> absolute URLs. Cross-Origin-Fonts brauchen auf
 * nordwerk.de den Header  Access-Control-Allow-Origin: *  (oder die
 * id.-Subdomain). Fehlt er / sind die Dateien nicht da, greift der
 * System-Sans-Fallback aus --font. Alternativ /assets lokal mitliefern
 * und hier den Origin entfernen.
 * ------------------------------------------------------------------ */

@font-face {
  font-family: "THICCCBOI";
  src: url("https://nordwerk.de/assets/fonts/thicccboi/THICCCBOI-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "THICCCBOI";
  src: url("https://nordwerk.de/assets/fonts/thicccboi/THICCCBOI-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "THICCCBOI";
  src: url("https://nordwerk.de/assets/fonts/thicccboi/THICCCBOI-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ------------------------------------- */

:root {
  --font: "THICCCBOI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --text: #60697b;
  --heading: #343f52;
  --muted: #8a93a3;

  --accent: #1d71b8;
  --accent-dark: #185f9c;

  --page: #e5f4fd;        /* Nordwerk-Flaechenblau */
  --surface: #ffffff;
  --surface-alt: #f3fafe;
  --line: rgba(164, 174, 198, 0.28);

  --radius: 8px;
  --radius-lg: 12px;
  --maxw: 660px;
  --shadow: 0 0.25rem 1.75rem rgba(30, 34, 40, 0.08);
  --card-pad: 22px;
}
@media (min-width: 480px) {
  :root { --card-pad: 30px; }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

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

/* ---------- Kopfzeile mit Nordwerk-Logo -------------------- *
 * logo-nordwerk.png hat einen weissen Hintergrund, deshalb sitzt
 * die Kopfzeile – wie auf nordwerk.de – auf einer weissen Flaeche.
 * ---------------------------------------------------------------- */

.siteheader {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.siteheader__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand:hover { text-decoration: none; }
.brand img {
  display: block;
  width: auto;
  height: 26px;
}

/* ---------- Layout ----------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 44px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
  /* Damit der Kontaktbereich (.card__contact) am Kartenende exakt in der
     unteren Kartenrundung verschwindet, statt eine eigene, zweite Rundung
     danebenzusetzen. */
  overflow: hidden;
}

/* ---------- Hero-Grafik ------------------------------------ */

/* Auf sehr kleinen Bildschirmen (Handy) ausgeblendet: die Schrift in der
   SVG-Grafik wird dort unleserlich klein. */
.hero {
  display: none;
  margin-bottom: 18px;
}
@media (min-width: 480px) {
  .hero { display: block; }
}
.hero__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* ---------- Produktkopf ---------------------------------- */

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.product__name {
  margin: 0 0 12px;
  font-size: 1.55rem;
}
@media (min-width: 480px) {
  .product__name { font-size: 1.8rem; }
}

.product__lead {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
}

.product__figure {
  margin: 20px 0 0;
  text-align: center;
}
.product__figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Ist eine Artikelnummer bekannt, fuehrt das Bild in die Shop-Suche
   (index.php, shop_such_url()) - beim Ueberfahren leicht hervorheben. */
.product__figure a {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border-radius: var(--radius);
}
.product__figure a:hover img,
.product__figure a:focus-visible img {
  border-color: var(--accent);
}
.product__figure a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Abschnitte --------------------------------- */

.section { margin-top: 30px; }

/* Mehr Luft vor Compliance-Informationen, damit es sich vom Block darueber
   (ESG-Produktdaten bzw. Produktkopf) deutlicher absetzt. */
.section--compliance { margin-top: 54px; }

.section h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}
.section h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Startseite: Ablauf in drei Schritten ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: schritt;
}
.steps li {
  position: relative;
  padding-left: 44px;
  min-height: 30px;
}
.steps li + li {
  margin-top: 20px;
}
/* Die Ziffer sitzt auf Hoehe der ERSTEN Textzeile - nicht mittig zum ganzen
   Schritt, sonst rutscht sie bei mehrzeiligen Texten nach unten weg. */
.steps li::before {
  counter-increment: schritt;
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--page);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps strong {
  display: block;
  color: var(--heading);
  line-height: 1.45;
}
.steps span {
  display: block;
  margin-top: 2px;
}

/* ---------- Charge / Los (aus der GS1-URL) ---------------- */

.batch {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.batch__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.batch__value {
  font-weight: 700;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}

/* ---------- Technische Daten -------------------------- */

.specs {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}
.specs th,
.specs td {
  text-align: left;
  vertical-align: top;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.specs th {
  width: 42%;
  padding-right: 14px;
  font-weight: 600;
  color: var(--heading);
}

/* ---------- Dokumentenliste --------------------------- */

.docs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc + .doc { margin-top: 10px; }

.doc__link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--heading);
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.doc__link:hover {
  text-decoration: none;
  background: var(--surface-alt);
  border-color: var(--accent);
}
.doc__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doc__text {
  display: flex;
  flex-direction: column;
}
.doc__title { font-weight: 700; }
.doc__type {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted { color: var(--muted); }

/* ---------- Buttons (Pill, wie der Shop-Button) ------- */

.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 26px;
  border: 2px solid var(--accent);
  border-radius: 1000px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
}
.btn:hover {
  text-decoration: none;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- Kontaktbereich in der Karte ("Noch Fragen?") ---- *
 * Sitzt als durchgehende Flaeche am Kartenende, statt als eigene,
 * separat gerundete Box darunter (das sah an den Kanten unschoen
 * aus, wo zwei Rundungen aufeinandertrafen). Bleeded per negativem
 * Margin bis an die Kartenkante, die Kartenrundung (.card mit
 * overflow: hidden) uebernimmt die untere Eckenrundung automatisch. *
 * --------------------------------------------------------------- */

.card__contact {
  margin: 26px calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad));
  padding: 20px var(--card-pad) 26px;
  background: var(--surface-alt);
  text-align: center;
}
.card__contact-link {
  display: block;
  transition: opacity 0.12s ease;
}
.card__contact-link:hover { opacity: 0.85; }
.card__contact-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ---------- 404 -------------------------------------- */

.card--404 h1 {
  margin: 4px 0 12px;
  font-size: 1.5rem;
}

/* ---------- Footer (dunkel, wie nordwerk.de) --------- */

.siteftr {
  background: var(--heading);
  color: #cacaca;
}
.siteftr__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 20px 34px;
  font-size: 0.9rem;
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 20px;
}
.siteftr__text { min-width: 0; }
.siteftr__name {
  margin: 0 0 4px;
  font-weight: 700;
  color: #fff;
}
.siteftr address { font-style: normal; }
.siteftr a {
  color: #cacaca;
  text-decoration: underline;
}
.siteftr a:hover { color: #fff; }

/* Logo rechts neben den Impressumangaben, bewusst klein gehalten. Eigene
   helle Bildvariante (nordwerk-logo-white-footer.png) fuer den dunklen
   Footer-Hintergrund - keine zusaetzliche helle Flaeche noetig. Auf dem
   Handy weggelassen (spart Platz, das Impressum reicht dort). */
.siteftr__logo {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  line-height: 0;
}
@media (min-width: 480px) {
  .siteftr__logo { display: inline-flex; }
}
.siteftr__logo:hover { text-decoration: none; }
.siteftr__logo img {
  display: block;
  width: auto;
  height: 40px;
}
.siteftr__legal {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: rgba(202, 202, 202, 0.6);
}

/* ---------- Typseite /typ/{typ} (Angaben nach Art. 15 PPWR) ---- *
 * Fuer Verpackungstypen ohne GTIN (bedruckte Ausfuehrungen). Bewusst
 * schlicht: die Verpackung traegt die Marke des Auftraggebers.
 * ------------------------------------------------------------------ */

.typ__label {
  margin: 0 0 2px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.typ__code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.typ__adresse {
  font-style: normal;
  line-height: 1.65;
  color: var(--heading);
}
.typ__kontakt { margin: 10px 0 0; }
.typ__hinweis {
  margin: 26px 0 0;
  padding: 14px 16px;
  border: 1px solid #ebcf9a;
  border-radius: var(--radius);
  background: #fff7e8;
  color: #4a3a12;
}
.typ__en {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
