/* ==========================================================================
   ALUPREM – Metallbau-Stil (12/2026)
   --------------------------------------------------------------------------
   Wird in util/header.html direkt nach design.css geladen und liegt über
   design.css, leistung.css, blog.css und legal.css (Selektoren mit
   "html body" bzw. ":root:root", damit sie unabhängig von der Ladereihenfolge
   gewinnen).

   Ziel: kein "Website-Baukasten"-Look, sondern das Erscheinungsbild eines
   Metallbau-Fachbetriebs – Anthrazit (RAL 7016), klare Linien, fast eckige
   Kanten, keine weichen Schatten, keine Icon-Reihen, keine Häkchenlisten,
   keine Pillen, keine Pfeil-Kreise, keine Großbuchstaben-Vorzeilen.

   Zurück zum alten Stil: Link auf stil.css in util/header.html (und die
   Schrift-Vorladung in index.php) entfernen.
   ========================================================================== */

/* 1. Schrift: Archivo (Omnibus-Type, OFL, selbst gehostet) --------------- */
@font-face {
    font-family: 'Archivo';
    src: url('fonts/archivo-var.woff2') format('woff2-variations'), url('fonts/archivo-var.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}

/* 2. Farben, Kanten, Schatten ------------------------------------------- */
:root:root {
    /* Die Variablennamen heißen historisch "green" – Werte sind jetzt Anthrazit/Stahl */
    --ds-green-900: #1d2124;
    --ds-green-800: #2a2f33;
    --ds-green-700: #383e42;   /* RAL 7016 Anthrazitgrau */
    --ds-green-600: #4d555b;
    --ds-green-100: #e3e6e8;
    --ds-green-50:  #f1f2f3;
    --ds-ink:   #1b1e21;
    --ds-text:  #33393e;
    --ds-muted: #5b636a;       /* 5,3:1 auf #f1f2f3 */
    --ds-line:  #d3d7da;
    --ds-soft:  #f1f2f3;
    --ds-r-sm: 2px;
    --ds-r:    2px;
    --ds-r-lg: 3px;
    --ds-sh-1: none;
    --ds-sh-2: 0 6px 18px rgba(0,0,0,.12);
    --ds-font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

    --primary-color: #2a2f33;
    --secondary-color: #4d555b;
    --text-dark: #1b1e21;
    --bg-light: #f1f2f3;
    --bg-dark: #1d2124;
    --shadow: none;
    --shadow-lg: 0 6px 18px rgba(0,0,0,.12);
}

/* 3. Typografie ---------------------------------------------------------- */
html body { font-family: var(--ds-font); font-weight: 400; }
html body :is(h1, h2, h3, h4, h5) {
    font-family: var(--ds-font);
    font-stretch: 88%;
    font-weight: 700;
    letter-spacing: 0;
}
html body strong, html body b { font-weight: 650; }
html body .hm-hero h1 .hm-h1-main { font-weight: 700; letter-spacing: 0; line-height: 1.08; font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
html body .hm-hero h1 .hm-h1-sub { display: block; margin-top: 14px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; font-stretch: 100%; color: var(--ds-muted); }

/* 4. Vorzeilen, Deko-Badges, Pfeile, Icon-Schmuck weg -------------------- */
html body .eyebrow,
html body .lp-badge,
html body .circle-arrow,
html body .lp-feat-ico,
html body .avatar,
html body .lp-price::after { display: none; }

html body :is(.btn, .ds-link, .lp-price-pill a, .lp-promo, .bi-more) .ico-arrow,
html body :is(.btn, .lp-promo) .ico-sparkle,
html body :is(.btn, .lp-promo) .ico-calendar,
html body :is(.hm-trust, .hm-why-item, .hm-steps-row, .lp-facts, .ds-cta-checks, .lp-quick-tag) > :is(li > .ico, .ico),
html body .hm-trust li > .ico,
html body .lp-facts li > .ico,
html body .hm-steps-row li > .ico { display: none; }

/* 5. Häkchen-Listen → schlichte Spiegelstriche --------------------------- */
html body li > .ico-check { display: none; }
html body li:has(> .ico-check) { position: relative; padding-left: 18px; }
html body li:has(> .ico-check)::before {
    content: ""; position: absolute; left: 0; top: .72em;
    width: 9px; height: 2px; background: var(--ds-green-700);
}
html body .ds-cta-band li:has(> .ico-check)::before,
html body .lp-price li:has(> .ico-check)::before { background: rgba(255,255,255,.8); }

/* Aufzählungen in Ratgeber und Rechtstexten: Strich statt Punkt */
html body :is(.bp-key, .bp-body ul, .lg-body) li::before { border-radius: 0; width: 8px; height: 2px; top: .78em; }

/* 6. Buttons und Links --------------------------------------------------- */
html body .btn { border-radius: var(--ds-r-sm); font-weight: 600; letter-spacing: .01em; box-shadow: none; }
html body .btn:hover { transform: none; box-shadow: none; }
html body .ds-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
html body .ds-link:hover { color: var(--ds-ink); text-decoration-thickness: 2px; }

/* Weitere Leistungen: Textlinks statt Pillen */
html body .chip {
    padding: 0; border: 0; border-radius: 0; background: none;
    font-weight: 600; color: var(--ds-ink);
    text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
html body .chip:hover { background: none; text-decoration-thickness: 2px; }
html body .hm-more-services { gap: 8px 20px; }

/* 7. Karten: Linie statt Schatten, kein "Anheben" beim Überfahren -------- */
html body :is(.ds-card, .prod-card, .proj-card, .price-card, .lp-type, .lp-feat, .lp-ref, .bi-card, .review, .hm-book, .lp-quick) {
    box-shadow: none;
    border-radius: var(--ds-r);
}
html body :is(.prod-card, .proj-card, .price-card, .bi-card, .lp-type, .lp-ref):hover { transform: none; box-shadow: none; border-color: var(--ds-green-700); }
html body :is(.prod-card, .proj-card) img { transform: none !important; }
html body .hm-book { border: 1px solid var(--ds-line); box-shadow: 0 2px 0 rgba(0,0,0,.04); }
html body .lp-intro-media img { box-shadow: none; border-radius: var(--ds-r); }

/* Pillen und Kreise → kleine eckige Schilder */
html body :is(.lp-tags li, .lp-price-tags li, .lp-type-num, .lp-vs-card.is-best::before, .filter-btn) { border-radius: var(--ds-r-sm); }
html body :is(.lp-step-num, .hm-steps-row .num, .hm-steps b) { border-radius: var(--ds-r-sm); }
html body .hm-swatches span { border-radius: var(--ds-r-sm); width: 40px; height: 26px; } /* wie RAL-Farbkarten */

/* 8. Hero-Leiste mit Fakten statt Icon-Reihe ----------------------------- */
html body .hm-trust {
    gap: 0;
    border-top: 1px solid var(--ds-line);
    border-bottom: 1px solid var(--ds-line);
}
html body .hm-trust li { padding: 12px 16px 12px 0; gap: 0; }
html body .hm-trust li + li { padding-left: 16px; border-left: 1px solid var(--ds-line); }
html body .hm-trust strong { font-size: .92rem; }
html body .hm-trust small { color: var(--ds-muted); }
html body .hm-book-facts { margin: 14px 0 0; font-size: .86rem; line-height: 1.55; color: var(--ds-text); }
html body .hm-konf-text { margin: 0 0 24px; color: var(--ds-text); line-height: 1.7; max-width: 460px; }

/* "Der Betrieb": Fakten in Spalten mit Linie oben */
html body .hm-why { gap: 0; border-top: 2px solid var(--ds-green-700); }
html body .hm-why-item { padding: 16px 20px 0 0; }
html body .hm-why-item + .hm-why-item { padding-left: 20px; border-left: 1px solid var(--ds-line); }

/* Ablauf: nummerierte Schritte ohne Symbole */
html body .hm-steps-row .num { background: var(--ds-green-700); border-color: var(--ds-green-700); color: #fff; }

/* 9. Flächen: Grau statt Pastellgrün, Verläufe raus ---------------------- */
html body .lp-hero--plain { background: var(--ds-soft); }
html body .lp-hero--plain::before { display: none; }
html body .ds-cta-band::before { background: linear-gradient(90deg, rgba(29,33,36,.95) 0%, rgba(29,33,36,.9) 50%, rgba(29,33,36,.72) 100%); }

/* 10. Leistungsseiten ---------------------------------------------------- */
/* Hero-Häkchen: grüne Kreise weg */
html body .lp-hero-checks li { font-weight: 600; }
/* Merkmale: technische Liste statt Icon-Kacheln */
html body .lp-feats { gap: 0 32px; }
html body .lp-feat { padding: 18px 0 22px; border: 0; border-top: 2px solid var(--ds-green-700); border-radius: 0; background: none; }
html body .lp-feat h3 { font-size: 1rem; }
/* Fakten unter dem Einleitungsbild: Tabelle statt Kacheln */
html body .lp-facts { gap: 0; border-top: 1px solid var(--ds-line); }
html body .lp-facts li { padding: 10px 0; border: 0; border-bottom: 1px solid var(--ds-line); border-radius: 0; background: none; }
html body .lp-facts small { text-transform: none; letter-spacing: 0; font-weight: 600; }
/* Hinweis-Kästchen über dem Schnellformular */
html body .lp-quick-tag { background: none; border: 0; padding: 0; text-transform: none; letter-spacing: 0; color: var(--ds-muted); }
html body .lp-price-pill small { text-transform: none; letter-spacing: 0; }
/* Winteraktion: schlichter Kasten */
html body .lp-promo { border-radius: var(--ds-r-sm); box-shadow: none; }
html body .lp-promo:hover { transform: none; box-shadow: none; background: var(--ds-green-900); }
html body .lp-promo .ico { display: none; }

/* Navigation: kein farbiges Pillen-Highlight */
html body .nav-links a.active, html body .nav-links a[aria-current="page"] { background: none; box-shadow: inset 0 -2px 0 var(--ds-green-700); border-radius: 0; }

/* 11. Tablet und Handy: Trennlinien an die Spaltenzahl anpassen ---------- */
@media (max-width: 1280px) {
    /* Faktenleiste im Hero: 2 Spalten */
    html body .hm-trust { border-bottom: 0; }
    html body .hm-trust li { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ds-line); }
    html body .hm-trust li + li { padding-left: 0; border-left: 0; }
    html body .hm-trust li:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--ds-line); }
}
@media (max-width: 1100px) {
    /* "Der Betrieb": 2 Spalten */
    html body .hm-why-item { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--ds-line); }
    html body .hm-why-item + .hm-why-item { padding-left: 0; border-left: 0; }
    html body .hm-why-item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ds-line); }
}
@media (max-width: 700px) {
    /* "Der Betrieb": 1 Spalte */
    html body .hm-why-item:nth-child(even) { padding-left: 0; border-left: 0; }
    html body .hm-hero h1 .hm-h1-sub { margin-top: 10px; }
}

/* 12. Merkmale ohne Icon-Spalte (auch mobil), Symbole statt Emojis ------- */
html body .lp-feat { display: block; }
html body .lp-feat h3 { margin: 0 0 6px; }
html body .mobile-actionbar a .i { display: inline-flex; align-items: center; justify-content: center; color: var(--ds-ink); }
html body .alu-fab-callback .ico { color: currentColor; }
html body .alu-check { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--ds-green-700); color: #fff; border-radius: var(--ds-r-sm); }
