/* =========================================================
   Schollmayer-Holz.de – eigenständige Website
   Design-Tokens aus der Live-Website (Shopware/Theme "scomthemeschollmayer")
   ausgelesen am 17.08.2026. Werte mit "// TODO prüfen" sind Näherungswerte
   aus Screenshots, nicht aus computed styles bestätigt – bitte vor Go-Live
   gegen die Live-Seite gegenprüfen (siehe README.md).
   ========================================================= */

:root {
  /* Farben */
  --color-primary-dark: #253339;      /* Header/Footer-Hintergrund, bestätigt (--bs-primary) */
  --color-accent: #FF3300;            /* "Schollmayer Rot", Falko-Entscheidung 17.08.2026 (abweichend vom computed style #E50505) */
  --color-text: #171717;              /* Fließtext, bestätigt */
  --color-text-muted: #787378;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-border: #e8e7e8;

  /* Typografie */
  --font-body: Helvetica, "Neue Helvetica Pro", Arial, sans-serif;   /* bestätigt: NeueHelveticaPro55Roman als Webfont */
  --font-heading: "Archivo", Helvetica, Arial, sans-serif; /* Original nutzt kommerzielle Schrift "GT Flexa Bold" (Lizenz für neue Domain nicht vorhanden, Falko-Entscheidung 17.08.2026) -> freie Alternative Archivo (SIL Open Font License 1.1, lizenzfrei), selbst gehostet, siehe assets/fonts/LIZENZ.md */

  /* Layout */
  --container-width: 1400px;
  --radius: 3px;
  --header-height: 40px; /* schmaler Top-Balken mit Sprachwahl */
}

/* Archivo, selbst gehostet (kein Google-Fonts-CDN mehr, DSGVO-Entscheidung 17.08.2026).
   Google liefert für die Gewichte 700/800/900 dieselben zwei Variable-Font-Dateien
   (latin + latin-ext) mit unterschiedlichen @font-face-Deklarationen je Gewicht –
   hier 1:1 nachgebildet. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/archivo-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: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/archivo-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;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/archivo-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: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/archivo-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;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/archivo-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: 'Archivo';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/archivo-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;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}
/* object-fit: contain als Sicherheitsnetz (Session 8, 11.09.2026): Wenn
   irgendwo doch einmal Breite UND Hoehe gesetzt werden, wird das Bild
   dadurch eingepasst statt verzerrt. .timeline-thumb img setzt bewusst
   'cover' und ueberschreibt das weiter unten. */
img { max-width: 100%; height: auto; display: block; object-fit: contain; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
ul.plain { list-style: none; margin: 0; padding: 0; }

/* Skip-Link (Barrierefreiheit) */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; color: #000;
  padding: 8px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top-Bar (Sprachwahl) ---------- */
.topbar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.8rem;
}
.topbar .container { display: flex; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
.lang-switch { position: relative; }
.lang-switch button {
  background: none; border: none; color: #fff; font: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 4px; padding: 4px;
}
.lang-switch ul {
  display: none; position: absolute; right: 0; top: 100%; background: #fff; color: #171717;
  min-width: 80px; box-shadow: 0 4px 12px rgba(0,0,0,.15); border-radius: var(--radius); overflow: hidden; z-index: 50;
}
.lang-switch.open ul { display: block; }
.lang-switch li a { display: block; padding: 8px 14px; }
.lang-switch li a:hover, .lang-switch li a[aria-current="true"] { background: var(--color-bg-alt); font-weight: 700; }

/* ---------- Hauptnavigation ---------- */
.main-header { border-bottom: 1px solid var(--color-border); }
.main-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
/* max-height statt height: bei fester Hoehe UND max-width: 100 % quetscht der
   Browser das sehr breite Logo (5134x405) auf schmalen Schirmen zusammen.
   Mit zwei Maximalwerten skaliert er proportional (Session 8, 11.09.2026). */
.logo img { height: auto; width: auto; max-height: 20px; max-width: 100%; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-weight: 600; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }
.search-btn { background: none; border: none; cursor: pointer; padding: 6px; }

/* Untermenüs (Über uns / Produkte) */
.main-nav li.has-submenu { position: relative; }
.main-nav .submenu {
  display: none; position: absolute; left: 0; top: 100%; margin: 0; padding: 8px 0;
  background: #fff; min-width: 240px; box-shadow: 0 8px 20px rgba(0,0,0,.12);
  border-radius: var(--radius); z-index: 60; gap: 0; flex-direction: column;
}
.main-nav li.has-submenu:hover .submenu,
.main-nav li.has-submenu:focus-within .submenu { display: flex; }
.main-nav .submenu li { width: 100%; }
.main-nav .submenu a { display: block; padding: 10px 18px; font-weight: 500; border-bottom: none; white-space: nowrap; }
.main-nav .submenu a:hover, .main-nav .submenu a[aria-current="page"] { background: var(--color-bg-alt); color: var(--color-accent); }
.main-nav li.is-active-branch > a { border-bottom-color: var(--color-accent); }

@media (max-width: 900px) {
  .main-header .container { flex-wrap: nowrap; position: relative; }
  .logo { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logo img { max-height: 26px; flex-shrink: 0; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--color-border); z-index: 40; max-height: 80vh; overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .main-nav .submenu {
    display: flex; position: static; box-shadow: none; min-width: 0; padding: 0 0 8px 16px;
    border-radius: 0;
  }
  .main-nav .submenu a { padding: 8px 0; font-size: .92rem; }
}
@media (max-width: 420px) {
  .logo { font-size: 0; gap: 0; }
  .logo img { max-height: 30px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-badge {
  background: var(--color-accent);
  color: #fff;
  padding: 28px 32px;
  margin: 0 0 48px;
  max-width: 560px;
}
.hero-badge .kicker { font-weight: 600; display: block; margin-bottom: 6px; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.hero-badge h1 { color: #fff; margin: 0; }
.hero.hero-dark-overlay::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
}
.hero-badge { position: relative; z-index: 1; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--color-bg-alt); }
section.dark { background: var(--color-primary-dark); color: #fff; }
section.dark h2 { color: #fff; }
.kicker { color: var(--color-accent); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; display: block; margin-bottom: 8px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-5, .grid-2 { grid-template-columns: 1fr; }
}

.icon-stat { text-align: center; }
/* Die fuenf Kennzahl-Icons sind 400x192 (Querformat). Vorher stand hier ein
   56x56-Kasten, der sie quadratisch gequetscht hat. Jetzt gibt die Hoehe den
   Takt vor, die Breite folgt dem Seitenverhaeltnis (Session 8, 11.09.2026). */
.icon-stat img, .icon-stat svg { height: 56px; width: auto; margin: 0 auto 12px; }

.btn {
  display: inline-block; background: var(--color-accent); color: #fff !important; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius); border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--color-primary-dark) !important; border: 2px solid var(--color-primary-dark); }

figure { margin: 0; }
figure img { border-radius: var(--radius); }
.img-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .img-row { grid-template-columns: 1fr; } }

table.cert-logos { width: 100%; }

/* ---------- Geschichte-Zeitstrahl (1 Bild je Jahr, Session 5, 18.08.2026) ---------- */
.timeline-list { border-left: 3px solid var(--color-accent); margin-top: 32px; }
.timeline-entry {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 0 0 32px 24px; position: relative;
}
.timeline-entry::before {
  content: ""; position: absolute; left: -9px; top: 4px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--color-accent);
}
.timeline-entry .timeline-thumb {
  flex: 0 0 140px; width: 140px; height: 100px; border-radius: var(--radius);
  overflow: hidden; background: var(--color-bg-alt);
}
.timeline-entry .timeline-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.timeline-entry .timeline-body { flex: 1 1 auto; min-width: 0; }
.timeline-entry .timeline-year {
  /* font-weight: 700 haelt das Aussehen identisch, nachdem aus dem <strong>
     ein <h3> wurde (Session 8, 11.09.2026) - Ueberschriften stehen sonst auf 800. */
  font-family: var(--font-heading); font-size: 1.1rem; display: block; margin-bottom: 4px;
  font-weight: 700;
}
@media (max-width: 600px) {
  .timeline-entry { flex-direction: column; gap: 12px; }
  .timeline-entry .timeline-thumb { width: 100%; height: 160px; flex-basis: auto; }
}

/* ---------- Formular (Kontakt) ---------- */
form.contact-form { max-width: 760px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-bottom: 22px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-row, .form-row.two { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; margin-bottom: 4px; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  width: 100%; border: none; border-bottom: 1px solid var(--color-border); padding: 10px 2px; font: inherit; background: transparent;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--color-accent); }
.field textarea { min-height: 120px; resize: vertical; }
.field-checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-size: .9rem; }
.form-hint { font-size: .8rem; color: var(--color-text-muted); margin-bottom: 20px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; }
.alert-success { background: #e3f6e8; color: #1c6b34; }
.alert-error { background: #fbe6e2; color: #8a2c1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: #fff; padding: 48px 0 24px; margin-top: 64px; }
.site-footer a { opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Cookie-Consent-Banner ---------- */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--color-primary-dark); color: #fff;
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.consent-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.consent-inner p { margin: 0; font-size: .9rem; max-width: 700px; }
.consent-inner a { color: #fff; text-decoration: underline; }
.consent-actions { display: flex; gap: 12px; flex-shrink: 0; }
.consent-actions .btn-outline { color: #fff !important; border-color: #fff; }
@media (max-width: 600px) {
  .consent-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .consent-actions { justify-content: center; }
}

/* ---------- Cookie-Tabelle (Datenschutzseite) ---------- */
table.cookie-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .92rem; }
table.cookie-table th, table.cookie-table td { text-align: left; padding: 10px 12px; border: 1px solid #ddd; vertical-align: top; }
table.cookie-table th { background: #f5f3f0; }
table.cookie-table code { font-size: .85em; background: #f5f3f0; padding: 2px 6px; border-radius: 3px; }

/* ---------- Kundenlogos auf der Produktseite (Session 8, 11.09.2026) ---------- */
.kunden-logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
  margin-top: 24px;
}
.kunden-logos img {
  /* Bewusst ohne Graustufen-Filter: die Logos gehoeren fremden Unternehmen,
     ihre Markenfarben werden nicht veraendert. Auf der Live-Seite stehen sie
     ebenfalls farbig. */
  height: 52px; width: auto; max-width: 100%; object-fit: contain;
}
@media (max-width: 600px) {
  .kunden-logos { gap: 24px; justify-content: center; }
  .kunden-logos img { height: 40px; }
}

/* ---------- Startseiten-Hero als Bildmontage (Session 8, 11.09.2026) ----------
   Ersetzt das fruehere Hero mit rotem Titelkasten. Die Grafik ist 1920x700;
   width/height stehen am <img>, damit beim Laden nichts springt. */
section.hero-banner { padding: 0; }  /* buendig unter dem Header, wie live */
.hero-banner img { display: block; width: 100%; height: auto; }
.hero-split { align-items: center; }
.hero-split h1 { margin: 0; }
@media (max-width: 700px) {
  .hero-split { gap: 16px; }
}
