/* Lokale Schriften (SIL Open Font License) – keine Verbindung zu Google, DSGVO-konform */
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unna"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/unna-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Unna"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/unna-latin-700-normal.woff2") format("woff2"); }

/* Theme „mlb3d“ – Nachbau von mlb-3d.de (WordPress/Astra). Wird NACH themes/default/style.css geladen.
   Referenz: Orange #ff6a13 (Buttons, Icons), Fließtext #4d4f48, Überschriften #141a0f, Hintergrund hell #f4f6f3,
   Footer #141a0f. Schriften der Referenz: DM Sans (Text/Menü) und Unna (Überschriften, Serif). */
:root {
  --text: #c9ced6;
  --muted: #8b95a1;
  --bg: #14181c;
  --bg-alt: #1c2128;
  --border: #2a3038;
  --dark: #0e1114;
  --heading: #edeff2;
  --radius: 2px;
  --container: 1240px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: Unna, Georgia, "Times New Roman", serif;
  --btn-bg: #ff6a13;
  --btn-text: #fff;
}

body { font-size: 16px; line-height: 1.7; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; color: var(--heading); letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; text-transform: uppercase; }

/* Buttons: eckig-klein, orange, kleine Schrift */
.btn { border-radius: 2px; padding: .7em 1.4em; font-size: .9rem; font-weight: 500; background: #ff6a13; border-color: #ff6a13; color: #fff; }
.btn:hover { background: #e55a08; border-color: #e55a08; transform: none; box-shadow: none; }
.btn-light { background: #fff; border-color: #fff; color: #14181c; }
.btn-light:hover { background: #fff; color: #ff6a13; }

/* Kopfzeile: auf Seiten mit Titelbereich liegt sie transparent über dem Bild, sonst hell */
.site-header { background: #14181c; border-bottom: 0; backdrop-filter: none; }
.site-nav a { font-size: .9rem; font-weight: 400; border-radius: 0; }
.site-nav a:hover { background: transparent; color: #ff6a13; }
.site-nav a.active { background: transparent; color: #ff6a13; }
body:has(main > section:first-of-type.block-hero) .site-header { position: absolute; left: 0; right: 0; background: transparent; }
body:has(main > section:first-of-type.block-hero) .site-nav a { color: #fff; }
body:has(main > section:first-of-type.block-hero) .site-nav a:hover { color: #ff6a13; }

/* Titelbereich: Foto mit dunklem Schleier, Serif-Schrift in Weiß */
.block-hero { background: #3a3a3a; }
.block-hero h1 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: .02em; }
.hero-center.has-image::after { background: rgba(0, 0, 0, .35); }
.hero-sub { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.35; opacity: 1; max-width: 760px; }
.hero-large .hero-inner { min-height: min(70vh, 640px); }

/* Drei Vorteile: auf hellem Grund, ohne Kartenrahmen, Icon als orangener Kreis links */
.block-cards .card { background: transparent; border: 0; flex-direction: row; gap: 16px; align-items: flex-start; }
.block-cards .card:hover { transform: none; box-shadow: none; }
.block-cards .card-body { padding: 0; }
.block-cards .card-icon { flex: none; width: 54px; height: 54px; border-radius: 50%; background: #ff6a13; color: #fff; font-size: 1.4rem; margin: 0; }
.block-cards .card-body h3 { font-size: 1.05rem; margin: 0 0 .3em; }
.block-cards .card-body .prose { font-size: .9rem; color: #c9ced6; }

/* Footer: dunkel, Links mittig */
.site-footer { background: #0e1114; color: #fff; padding: 56px 0 40px; }
.footer-inner { flex-direction: column; justify-content: center; text-align: center; gap: 28px; }
.footer-brand { display: none; }
.footer-nav { justify-content: center; gap: 8px 36px; }
.footer-nav a { color: #fff; font-size: .85rem; }
.footer-nav a:hover { color: #ff6a13; }
.footer-copy { font-size: .85rem; color: #fff; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 28px; width: 100%; }

/* Logo der Referenz ist auf dem Foto weiß */

/* Icon steht links neben Titel und Text (Icon liegt im card-body) */
.block-cards .card-body { display: grid; grid-template-columns: 54px 1fr; column-gap: 16px; align-items: start; }
.block-cards .card-icon { grid-row: 1 / span 2; }
.block-cards .card-body h3, .block-cards .card-body .prose { grid-column: 2; }

/* Dunkles Farbschema passend zum Preisrechner (Hintergrund #14181c, Flächen #1c2128, Text #edeff2) */
html, body { background: #14181c; }
.dyn-field input[type=text], .dyn-field input[type=email], .dyn-field textarea, .dyn-field select { background: #21262e; border-color: #2a3038; color: #edeff2; }
.dyn-field input:focus, .dyn-field textarea:focus, .dyn-field select:focus { border-color: #ff6a13; }
.dyn-form a, .prose a { color: #ff6a13; }
.notice-ok { background: #16281f; color: #3ddc97; border-color: #1f4a35; }
.notice-error { background: #2a1719; color: #ff8d92; border-color: #5a2a2d; }
.nav-toggle span { background: #edeff2; }
body:has(main > section:first-of-type.block-hero) .nav-toggle span { background: #fff; }
@media (max-width: 820px) { .site-nav { background: #14181c; } .site-nav a { color: #edeff2; } }
.block-text-image img, .block-cards .card { box-shadow: none; }
.block-cards .card-body h3 { color: #edeff2; }

/* Eingebautes Kontaktformular (Baustein „Kontakt“): transparenter Hintergrund statt weißer Karte */
.contact-form-wrap { background: transparent; border-color: transparent; box-shadow: none; padding: 0; }
.contact-form input, .contact-form textarea { background: #21262e; border-color: #2a3038; color: #edeff2; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #ff6a13; }
.contact-form label { color: #c9ced6; }

/* Logo etwas tiefer, damit es oben nicht anstößt */
.header-inner { padding-top: 14px; padding-bottom: 6px; }
