/* ============================================================
   SIGAMO Designsystem (Familienableitung von marloth SIGNAL)
   Verbindliche Regeln: apps/sigamo_website/DESIGN.md
   Tokens nur hier definieren, nie hartkodiert in Templates.
   ============================================================ */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic; font-weight: 700; font-display: swap;
  src: url('/assets/sigamo_website/fonts/bc-700i.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/sigamo_website/fonts/bc-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/sigamo_website/fonts/Inter.woff2') format('woff2');
}

:root {
  /* Fundament: reine Grautöne, bewusst ohne Blaustich (Abgrenzung marloth) */
  --sg-graphit: #141414;      /* dunkle Bänder, Headlines auf Weiß */
  --sg-tiefschwarz: #0b0b0b;  /* Footer */
  --sg-orange: #b84a2f;       /* einzige Handlungsfarbe: das O im Logo (Rost-Orange) */
  --sg-orange-hover: #9c3a25;
  --sg-gruen: #6c7c59;        /* RAL 6011 Resedagrün: der Strich. Strukturiert, handelt nie */
  --sg-gruen-hell: #a9b797;   /* Kicker/Marker auf Graphit */
  --sg-text: #262626;
  --sg-text-muted: #6e6e6e;
  --sg-text-on-dark: #c9c9c9;
  --sg-hairline: #e4e4e4;
  --sg-flaeche: #f4f4f4;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: only light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--sg-text);
  background: #fff;
}

/* ---------- Typo-Rollen ---------- */
.display {
  font-family: var(--font-display);
  font-style: italic; font-weight: 700; text-transform: uppercase;
  line-height: 0.95; letter-spacing: 0.005em; text-wrap: balance;
}
.kicker {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 1rem; line-height: 1;
}
.cta-line {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.45rem; line-height: 1.1;
  letter-spacing: 0.01em; text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 0.5em;
}
.cta-line .arrow { font-style: normal; transition: transform 0.15s ease; }
.cta-line:hover .arrow { transform: translateX(0.3em); }
@media (prefers-reduced-motion: reduce) {
  .cta-line .arrow { transition: none; }
  .cta-line:hover .arrow { transform: none; }
}
.cta-line:focus-visible { outline: 3px solid var(--sg-gruen); outline-offset: 4px; }

/* ---------- Der Strich (Familiengeste, RAL 6011) ---------- */
.strich { height: 4px; background: var(--sg-gruen); border: 0; }

/* ---------- Bänder ---------- */
.band { padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 4rem); }
.band-inner { max-width: 1160px; margin: 0 auto; }
.band--dark { background: var(--sg-graphit); color: var(--sg-text-on-dark); }
.band--tint { background: var(--sg-flaeche); }
.band .kicker { display: block; margin-bottom: 1.5rem; color: var(--sg-gruen); }
.band--dark .kicker { color: var(--sg-gruen-hell); }
h1.display { font-size: clamp(2.8rem, 8vw, 5.8rem); color: #fff; }
h2.display { font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--sg-graphit); margin-bottom: 1.75rem; }
.band--dark h2.display { color: #fff; }
.copy { max-width: 46rem; }
.copy p + p { margin-top: 1.1em; }
.band .cta-line { margin-top: 2.25rem; color: var(--sg-orange); }
.band .cta-line:hover { color: var(--sg-orange-hover); }
.band--dark .cta-line { color: var(--sg-orange); }
.cta-row { display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: baseline; }
.band--dark .cta-line.zweit { color: #fff; }
.band--dark .cta-line.zweit:hover { color: var(--sg-text-on-dark); }

/* ---------- Kopfzeile (Topbar + Mega-Menü + Burger, Muster SIGNAL) ---------- */
.topbar {
  background: #fff;
  position: sticky; top: 0; z-index: 10;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  border-bottom: 4px solid var(--sg-gruen); /* der Strich */
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 2.2rem; padding: 0.9rem 0;
}
.logo { display: block; line-height: 0; }
.topbar .logo img { width: 168px; height: auto; display: block; }
.topbar .main-nav { display: flex; gap: 1.7rem; margin-left: auto; flex-wrap: wrap; align-items: center; }
.topbar .main-nav a {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; font-size: 0.98rem; text-decoration: none;
  color: var(--sg-text);
}
.topbar .main-nav > a, .topbar .has-mega > a {
  display: inline-block; padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.topbar .main-nav a:hover { color: var(--sg-orange); }
.topbar .main-nav > a.active, .topbar .has-mega > a.active {
  color: var(--sg-orange); border-bottom-color: var(--sg-orange);
}
.topbar .main-nav a:focus-visible { outline: 3px solid var(--sg-gruen); outline-offset: 3px; }
.topbar .cta-line { font-size: 1.2rem; color: var(--sg-orange); margin-left: 1rem; }
.topbar .cta-line:hover { color: var(--sg-orange-hover); }

/* Mega-Menü */
.has-mega { position: static; display: flex; align-items: center; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 4px solid var(--sg-gruen);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  visibility: hidden; opacity: 0;
  transition: opacity 0.12s ease, visibility 0s linear 0.25s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .mega:hover {
  visibility: visible; opacity: 1; transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) { .mega { transition: none; } }
.mega-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem) 2rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
@media (max-width: 1150px) { .mega-inner { grid-template-columns: repeat(3, 1fr); } }
.mega-col { display: flex; flex-direction: column; gap: 0.55rem; }
.topbar .mega-col a { font-family: var(--font-body); text-transform: none; letter-spacing: 0; color: var(--sg-text); font-size: 0.92rem; font-weight: 400; border-bottom: 0; padding-bottom: 0; }
.topbar .mega-col a:hover { color: var(--sg-orange); }
.topbar .mega-col .mega-head {
  font-weight: 700; color: var(--sg-graphit); font-size: 0.95rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--sg-gruen); margin-bottom: 0.5rem;
}
.mega-foot {
  border-top: 1px solid var(--sg-hairline);
  max-width: 1160px; margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem) 1.3rem;
  display: flex; justify-content: flex-end; align-items: baseline; gap: 1rem;
  font-size: 0.9rem; color: var(--sg-text-muted);
}
.mega-foot .cta-line { font-size: 1.25rem; color: var(--sg-orange); margin: 0; }
.mega-foot .cta-line:hover { color: var(--sg-orange-hover); }

/* Burger + Mobilmenü */
.burger { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.burger span { display: block; width: 26px; height: 3px; background: var(--sg-graphit); margin: 5px 0; }
.burger:focus-visible { outline: 3px solid var(--sg-gruen); outline-offset: 3px; }
@media (max-width: 920px) {
  .topbar .main-nav, .topbar .cta-line { display: none; }
  .burger { display: block; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 50; background: var(--sg-graphit);
  display: none; flex-direction: column; gap: 1.5rem;
  padding: 5.5rem clamp(1.5rem, 8vw, 3rem) 2rem;
  border-top: 4px solid var(--sg-gruen);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 2.1rem; line-height: 1;
  color: #fff; text-decoration: none;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--sg-orange); }
.mm-close {
  position: absolute; top: 1.4rem; right: 1.6rem; background: none; border: none;
  color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0.3rem;
}
.mm-close:focus-visible, .mobile-menu a:focus-visible { outline: 3px solid var(--sg-gruen-hell); outline-offset: 3px; }

/* Mobile Schnellkontakt: fester Anrufen-Button */
.mobile-cta { display: none; }
@media (max-width: 920px) {
  body { padding-bottom: 4.4rem; }
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr; gap: 0.6rem;
    background: var(--sg-tiefschwarz);
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-display); font-style: italic; font-weight: 700;
    text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.02em;
    text-decoration: none; padding: 0.7rem 0.4rem; color: #fff;
    white-space: nowrap;
  }
  .mobile-cta svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
  .mobile-cta .mc-call { background: var(--sg-orange); }
}

/* ---------- Hero ---------- */
.hero { background: var(--sg-graphit); color: var(--sg-text-on-dark); }
.hero .kicker { color: var(--sg-gruen-hell); }
.hero h1 .alt { color: var(--sg-orange); }
.hero .copy { margin-top: 2rem; font-size: 1.12rem; }

/* Foto-Hero: Beweisbild unter Graphit-Verlauf, Typo bleibt der Held */
.hero-foto { position: relative; overflow: hidden; }
.hero-foto .hero-bild {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,20,20,0.94) 30%, rgba(20,20,20,0.62) 100%);
}
.hero-foto .band-inner { position: relative; z-index: 2; }

/* ---------- Vollbild-Beweis (Foto in voller Breite, Caption-Leiste) ---------- */
.fullbleed { margin: 0; }
.fullbleed img { display: block; width: 100%; max-height: 72vh; object-fit: cover; }
.fullbleed figcaption {
  background: var(--sg-graphit); color: var(--sg-gruen-hell);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.9rem;
  padding: 0.7rem clamp(1.25rem, 5vw, 4rem);
}

/* Bereichs-Beweisbild (4:3 über dem Titel) */
.bereich-media { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 1rem; background: var(--sg-flaeche); }
.bereich-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.bereich:hover .bereich-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .bereich-media img { transition: none; }
  .bereich:hover .bereich-media img { transform: none; }
}

/* ---------- Leistungsbereiche (3 Spalten, Strich oben) ---------- */
.bereiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem 3rem; margin-top: 3rem; }
.bereich h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.6rem; line-height: 1;
  color: var(--sg-graphit); border-top: 4px solid var(--sg-gruen);
  padding-top: 0.9rem; margin: 0 0 0.7rem;
}
.bereich p { font-size: 0.98rem; margin: 0; }
.band--dark .bereich h3 { color: #fff; }

/* ---------- Produkt-Grid ---------- */
.produkte {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.2rem 1.6rem; margin-top: 2.5rem;
}
.produkt { text-decoration: none; display: block; color: inherit; }
.produkt-media {
  aspect-ratio: 1 / 1; overflow: hidden; background: #fff;
  border-bottom: 3px solid var(--sg-gruen);
  display: flex; align-items: center; justify-content: center;
}
.band--tint .produkt-media, .produkt-media.hell { outline: 1px solid var(--sg-hairline); outline-offset: -1px; }
.produkt-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s ease; }
.produkt:hover .produkt-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .produkt-media img { transition: none; }
  .produkt:hover .produkt-media img { transform: none; }
}
.produkt-media.leer {
  color: var(--sg-text-muted); font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem;
}
.produkt h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.3rem; line-height: 1;
  color: var(--sg-graphit); margin: 0.95rem 0 0.25rem;
}
.produkt .marke { font-size: 0.82rem; color: var(--sg-text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.produkt .preis { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1rem; display: block; margin-top: 0.2rem; }
.produkt .preis small { color: var(--sg-text-muted); font-weight: 400; }
.produkt .preis.anfrage { color: var(--sg-text-muted); font-weight: 400; }

.kategorie-kopf {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--sg-graphit); margin: 3.5rem 0 0;
  padding-top: 1rem; border-top: 4px solid var(--sg-gruen);
}
.kategorie-kopf:first-of-type { margin-top: 2rem; }
.kategorie-anker {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 1.5rem; padding: 0;
  list-style: none;
}
.kategorie-anker a {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.95rem; color: var(--sg-gruen); text-decoration: none;
}
.kategorie-anker a:hover { color: var(--sg-orange); }

/* ---------- Katalog mit Filter-Sidebar (prod-*) ---------- */
.prod-hero.band { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.prod-wrap {
  /* Die Außenbox umfasst wie .band auch den seitlichen Seitenabstand.
     So liegen Hero, Filter und Produktgrid auf demselben 1160-px-Raster. */
  max-width: calc(1160px + clamp(1.25rem, 5vw, 4rem) + clamp(1.25rem, 5vw, 4rem)); margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  display: grid; grid-template-columns: 230px 1fr; gap: 3rem; align-items: start;
}
@media (max-width: 860px) { .prod-wrap { grid-template-columns: 1fr; } }
.prod-side h2 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.9rem; color: var(--sg-gruen); margin: 1.8rem 0 0.7rem;
}
.prod-side h2:first-child { margin-top: 0; }
.prod-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.prod-filter button {
  border: 1px solid var(--sg-hairline); background: #fff; color: var(--sg-text);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  padding: 0.4rem 0.7rem; cursor: pointer; border-radius: 0;
}
.prod-filter button:hover { border-color: var(--sg-gruen); color: var(--sg-gruen); }
.prod-filter button.is-active { background: var(--sg-graphit); border-color: var(--sg-graphit); color: #fff; }
.prod-filter button:focus-visible { outline: 3px solid var(--sg-gruen); outline-offset: 2px; }
.prod-filter-count { opacity: 0.65; margin-left: 0.3rem; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2.2rem 1.6rem; }
.prod-card.is-hidden { display: none; }

/* ---------- Detailseite ---------- */
.produkt-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.produkt-detail .produkt-media { aspect-ratio: 1 / 1; }
.preis-gross {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--sg-graphit);
  font-variant-numeric: tabular-nums; text-transform: uppercase;
}
.preis-gross small { font-size: 0.45em; color: var(--sg-text-muted); font-family: var(--font-body); font-style: normal; font-weight: 400; text-transform: none; }
.datenblatt { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.95rem; }
.datenblatt th { text-align: left; font-weight: 600; color: var(--sg-graphit); padding: 0.5rem 1.2rem 0.5rem 0; border-bottom: 1px solid var(--sg-hairline); vertical-align: top; width: 42%; }
.datenblatt td { border-bottom: 1px solid var(--sg-hairline); padding: 0.5rem 0; vertical-align: top; }

/* ---------- Checkliste ---------- */
.checklist { list-style: none; display: grid; gap: 0.7rem; max-width: 46rem; margin-top: 1.5rem; padding: 0; }
.checklist li { position: relative; padding-left: 1.7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.68em; height: 0.68em; background: var(--sg-gruen);
}
.band--dark .checklist li::before { background: var(--sg-gruen-hell); }
.band--dark .checklist a { color: var(--sg-gruen-hell); }
.band--dark .checklist a:hover { color: var(--sg-orange); }

/* ---------- Formular (nur auf dunklen Bändern) ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem 2rem; margin-top: 2.5rem; max-width: 52rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--voll { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.85rem; color: var(--sg-gruen-hell);
}
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 2px solid #3a3a3a;
  color: #fff; font-family: var(--font-body); font-size: 1rem; padding: 0.45rem 0.1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sg-orange); }
.field textarea { min-height: 7rem; resize: vertical; }
.btn-orange {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--sg-orange); color: var(--sg-graphit);
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.3rem; letter-spacing: 0.02em;
  padding: 0.7rem 2.2rem; text-decoration: none;
}
.btn-orange:hover { background: var(--sg-orange-hover); color: #fff; }
.btn-orange:focus-visible { outline: 3px solid var(--sg-gruen-hell); outline-offset: 3px; }
.status { margin-top: 1.5rem; padding: 0.8rem 1.1rem; border-left: 4px solid; max-width: 46rem; display: none; }
.status.sichtbar { display: block; }
.status--ok { border-color: var(--sg-gruen); background: #1d1d1d; color: #fff; }
.status--fehler { border-color: #ff7a66; background: #1d1d1d; color: #ffb3a6; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 46rem; }
.rechtstext h2, .rechtstext h3, .rechtstext h4, .rechtstext p strong:only-child {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; line-height: 1; color: var(--sg-graphit);
}
.rechtstext h2 { font-size: 1.8rem; margin: 2.5rem 0 0.8rem; }
.rechtstext h3 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.rechtstext h4 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.rechtstext p { margin: 0.8em 0; }
.rechtstext ul, .rechtstext ol { padding-left: 1.4rem; margin: 0.8em 0; }
.rechtstext a { color: var(--sg-gruen); }
.rechtstext a:hover { color: var(--sg-orange); }

/* ---------- Footer ---------- */
.footer { background: var(--sg-tiefschwarz); color: var(--sg-text-on-dark); padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem) 2rem; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.footer .logo img { width: 190px; height: auto; }
.footer h4 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem; color: var(--sg-gruen-hell); margin-bottom: 0.9rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.footer a { color: var(--sg-text-on-dark); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .schwester { margin-top: 1.4rem; font-size: 0.88rem; color: #8a8a8a; max-width: 30rem; }
.footer .schwester a { color: var(--sg-gruen-hell); }
.footer-unten { max-width: 1160px; margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid #262626; font-size: 0.85rem; color: #8a8a8a; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Kleinkram ---------- */
.hinweis { font-size: 0.88rem; color: var(--sg-text-muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--sg-orange); color: var(--sg-graphit); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

@media (max-width: 640px) {
  .topbar .logo img { width: 138px; }
  .topnav { gap: 1.1rem; }
}
