/* Oeffentliche Landing unter der Apex-Domain und www. (Masterplan Kap. 1).
   ---------------------------------------------------------------------------
   EIGENES STYLESHEET, KEIN FRAMEWORK - UND DAS IST DER PUNKT.

   Kein Bootstrap, kein Font Awesome, kein Skript von einem CDN: `platform-web`
   liefert diese Seite unter `public-csp@file` aus, und die erlaubt

       default-src 'self'; script-src 'none'; style-src 'self'

   Jede fremde Herkunft waere hier eine Entscheidung mit Begruendung, keine
   stille Ergaenzung (dieselbe Regel wie fuer admin-csp). Deshalb:
   Farben und Raster von Hand, Icons als Inline-SVG-Sprite im Dokument, und
   kein einziges <script>. Was hier nicht noetig ist, soll auch nicht erlaubt
   sein.

   Die Palette ist die der Vorlage (Industrie/Holzwerkstoff), nicht die der
   Admin-UI: das ist die Produktseite, nicht die Verwaltung. */

:root {
  --ink: #212529;
  --ink-soft: #495057;
  --muted: #6b7280;
  --line: #dee2e6;
  --paper: #ffffff;
  --paper-alt: #f8f9fa;
  --wood: #a9743f;
  --wood-light: #c98f55;
  --wood-pale: #e0b184;
  --blue: #0d6efd;
  --green: #198754;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); }

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.sub  { color: var(--muted); }

/* Das Icon-Sprite steht als <svg> im Dokument und darf nichts einnehmen.
   KEIN `style="position:absolute"` am Element: `style-src 'self'` ohne
   'unsafe-inline' verbietet nach CSP Level 3 auch das style-ATTRIBUT, nicht
   nur <style>-Bloecke. Genau daran scheitert eine Seite, die "eigentlich
   keine Skripte und keine Styles von aussen" laedt - unbemerkt, weil das
   Sprite dann einfach Platz belegt. */
.sprite { position: absolute; }

/* --- Kopfzeile ---------------------------------------------------------- */
.site-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1e22;
}
.site-head .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 60px;
}
.site-head .logo {
  display: flex; align-items: center; gap: 0.55rem;
  color: #fff; text-decoration: none; font-weight: 600; letter-spacing: -0.01em;
}
.site-head .logo svg { color: var(--wood-pale); }
.site-head nav { margin-left: auto; display: flex; gap: 1.25rem; font-size: 0.94rem; }
.site-head nav a { color: #ced4da; text-decoration: none; }
.site-head nav a:hover { color: #fff; text-decoration: underline; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  color: #fff;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(201, 143, 85, 0.28), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(25, 135, 84, 0.18), transparent 55%),
    #212529;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center;
  padding-top: 4rem; padding-bottom: 4rem;
}
.hero .lead { color: #dee2e6; }
.hero strong { color: #fff; }
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-bottom: 1.25rem; padding: 0.3rem 0.7rem;
  border: 1px solid rgba(201, 143, 85, 0.45); border-radius: 999px;
  background: rgba(201, 143, 85, 0.18); color: var(--wood-pale);
  font-size: 0.85rem;
}
.hero-art { max-width: 100%; height: auto; }

/* --- Knoepfe ------------------------------------------------------------ */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.actions-center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem; border-radius: 6px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 500; text-decoration: none;
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #0b5ed7; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* --- Abschnitte --------------------------------------------------------- */
section { padding: 4rem 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { margin-bottom: 0; }

.grid { display: grid; gap: 1rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card p:last-child { margin-bottom: 0; }
.card .small { font-size: 0.9rem; color: var(--muted); }

.step { border-top: 3px solid var(--blue); }
.step-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.step-head .icon { color: var(--blue); }

.icon { width: 22px; height: 22px; flex: none; }
.card > .icon { color: var(--blue); margin-bottom: 0.6rem; display: block; }

/* --- Branchenfokus ------------------------------------------------------ */
.industry {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(90deg, var(--wood-light) 0 14px, #b97f45 14px 28px);
}
.industry .split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.tag {
  display: inline-block; margin-bottom: 0.6rem; padding: 0.25rem 0.6rem;
  border-radius: 4px; background: var(--ink); color: #fff; font-size: 0.8rem;
}
.checks { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.checks li { display: flex; gap: 0.6rem; margin-bottom: 0.65rem; color: var(--ink-soft); }
.checks .icon { color: var(--green); margin-top: 0.2rem; }
.industry .card > .icon { color: var(--wood); }

/* --- Abschluss ---------------------------------------------------------- */
.cta {
  color: #fff; text-align: center;
  background:
    radial-gradient(900px 400px at 15% 120%, rgba(201, 143, 85, 0.25), transparent 60%),
    #212529;
}
.cta .lead { color: #dee2e6; max-width: 42rem; margin-left: auto; margin-right: auto; }

.site-foot {
  padding: 2rem 0; border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.site-foot .spacer { margin-left: auto; }
.site-foot a { color: var(--muted); }

/* --- Schmale Fenster ---------------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .industry .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-head nav { display: none; }
  section { padding: 2.5rem 0; }
}
