/* =========================================================================
   MZInternet — Design System
   Ton: warm, redaktionell, zurückhaltend, "weniger ist mehr".
   Signatur: fließende Amber-Gradient-Ribbons über einem feinen Punktraster
   (Verweis auf das Gestaltungsraster jedes Designprozesses) + weicher,
   warmgetönter Schattenwurf statt neutralem Schwarz.
   ========================================================================= */

/* ---------- 1. Design Tokens ------------------------------------------- */
:root {
  /* Markenfarben (fix vorgegeben) */
  --brand-primary: #e5702a;
  --brand-primary-600: #c85d1e;
  --brand-primary-700: #a94b18;
  --brand-primary-100: #fbe2cf;
  --brand-primary-50: #fdf1e7;

  --brand-secondary: #f3b229;
  --brand-secondary-600: #d89a1b;
  --brand-secondary-100: #fcebc4;

  --brand-accent: #3d3531;

  /* Neutrale Skala (warm, vom Akzent abgeleitet) */
  --ink-900: #241d19;
  --ink-700: #3d3531;
  --ink-500: #6e6259;
  --ink-300: #a79c8e;
  --ink-150: #ded2c2;
  --ink-100: #e6dccf;
  --ink-50: #f4ede4;
  --paper: #fbf8f4;
  --white: #ffffff;

  --success: #3f8a5e;
  --danger: #c0432f;

  /* Rollen (hell) */
  --color-bg: var(--paper);
  --color-surface: var(--white);
  --color-surface-alt: var(--ink-50);
  --color-text: var(--ink-700);
  --color-heading: var(--ink-900);
  --color-muted: var(--ink-500);
  --color-border: var(--ink-100);
  --color-shadow: 61, 53, 49;

  /* Typografie */
  --font-display: "Fjalla One", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Merriweather Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.75rem, 2rem + 3.3vw, 5.25rem);
  --fs-h1: clamp(2.25rem, 1.85rem + 1.8vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.75rem);
  --fs-h4: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.7;

  /* Abstände */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --section-pad: clamp(4rem, 6vw + 1rem, 8.5rem);

  /* Form */
  /* Einheitlicher Eckenradius für alle Flächen/Container (Karten, Inputs,
     Modal, CTA, Bild-Rahmen …) — bewusst ein einziger Wert statt einer
     gestaffelten Skala. --radius-full bleibt separat für echte Pillen/Kreise
     (Buttons, Filter-Chips, Avatare, Theme-Toggle). */
  --radius: 12px;
  --radius-full: 999px;

  /* Schatten (warmgetönt statt neutral schwarz) */
  --shadow-sm: 0 2px 8px -2px rgba(var(--color-shadow), 0.12);
  --shadow-md: 0 16px 32px -12px rgba(var(--color-shadow), 0.18);
  --shadow-lg: 0 28px 60px -18px rgba(var(--color-shadow), 0.28);

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 620ms;

  color-scheme: light;
}

[data-bs-theme="dark"] {
  --brand-primary: #f0863f;
  --brand-primary-600: #f5a063;
  --brand-primary-700: #f8bd8f;
  --brand-primary-100: #4a2f1c;
  --brand-primary-50: #3a2717;

  --brand-secondary: #f5c04a;
  --brand-secondary-600: #f8d274;
  --brand-secondary-100: #4a3a17;

  --brand-accent: #f0e6da;

  --color-bg: #1c1613;
  --color-surface: #241d19;
  --color-surface-alt: #2b231e;
  --color-text: #e4d9cc;
  --color-heading: #f7f0e8;
  --color-muted: #b4a79a;
  --color-border: #3a322b;
  --color-shadow: 0, 0, 0;

  color-scheme: dark;
}

/* ---------- 2. Bootstrap-Variablen an Markenwelt koppeln ---------------- */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  --bs-body-font-family: var(--font-body);
  --bs-body-bg: var(--color-bg);
  --bs-body-color: var(--color-text);
  --bs-heading-color: var(--color-heading);
  --bs-link-color: var(--brand-primary);
  --bs-link-hover-color: var(--brand-primary-600);
  --bs-link-color-rgb: var(--brand-primary);
  --bs-border-color: var(--color-border);
  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: 229, 112, 42;
  --bs-secondary: var(--brand-secondary);
  --bs-focus-ring-color: rgba(229, 112, 42, 0.35);
}

/* ---------- 3. Basis / Reset -------------------------------------------- */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur-base) var(--ease-editorial), color var(--dur-base) var(--ease-editorial);
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4,
.display-font {
  /* Fjalla One ist einschnittig (nur 400) und von Haus aus kondensiert/kräftig
     — Font-Gewicht bleibt konstant 400, Tracking leicht positiv statt negativ
     (ein enges Display-Font zusätzlich zu verengen schadet der Lesbarkeit). */
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: var(--lh-heading);
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }

p { color: var(--color-text); }

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text);
  line-height: 1.6;
}

.text-muted-brand { color: var(--color-muted) !important; }

a { text-decoration: none; }

::selection {
  background: var(--brand-secondary-100);
  color: var(--ink-900);
}

/* Sichtbarer Fokusring (Accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 2000;
  background: var(--color-heading);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: top var(--dur-fast) var(--ease-editorial);
}
.skip-link:focus {
  top: 1rem;
  color: var(--color-bg);
}

/* ---------- 4. Layout-Hilfsklassen -------------------------------------- */
.section {
  padding-block: var(--section-pad);
  position: relative;
}
.section-sm { padding-block: clamp(2.5rem, 4vw, 4.5rem); }
.section-tight-top { padding-top: clamp(2rem, 4vw, 4rem); }

.bg-surface { background-color: var(--color-surface); }
.bg-surface-alt { background-color: var(--color-surface-alt); }
.bg-ink { background-color: var(--ink-900); color: var(--paper); }
[data-bs-theme="dark"] .bg-ink { background-color: #14100d; }

.container-wide {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary-600);
  margin-bottom: var(--space-4);
}
[data-bs-theme="dark"] .eyebrow { color: var(--brand-primary); }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 2px;
}

.section-head { max-width: 46rem; margin-bottom: var(--space-10); margin-inline: auto; text-align: center; }

/* Signatur: feines Punktraster (Layout-Grid-Motiv) */
.grid-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-border) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 55% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 55% 30%, #000 0%, transparent 75%);
  pointer-events: none;
  opacity: 0.9;
}

.ribbon-svg { display: block; width: 100%; height: auto; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-brand {
  /* Text ist dunkle Tinte statt Weiß: Weiß auf #E5702A liegt nur bei 3.14:1
     (WCAG-AA verlangt 4.5:1 für Fließtextgröße); Tinte auf Primärfarbe
     erreicht 5.28:1. Hover/Active kehren die Farben um (dunkle Füllung,
     helle Schrift = 15.68:1), statt eine mittlere Orange-Stufe zu suchen,
     die mit keiner Textfarbe zuverlässig besteht. */
  --bs-btn-color: var(--ink-900);
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-color: var(--paper);
  --bs-btn-hover-bg: var(--ink-900);
  --bs-btn-hover-border-color: var(--ink-900);
  --bs-btn-active-color: var(--paper);
  --bs-btn-active-bg: var(--ink-900);
  --bs-btn-active-border-color: var(--ink-900);
  --bs-btn-focus-shadow-rgb: 229, 112, 42;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.9rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-editorial), box-shadow var(--dur-fast) var(--ease-editorial), background-color var(--dur-fast) var(--ease-editorial), color var(--dur-fast) var(--ease-editorial);
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-brand:active { transform: translateY(0); }

.btn-outline-brand {
  --bs-btn-color: var(--color-heading);
  --bs-btn-border-color: var(--color-border);
  --bs-btn-hover-color: var(--ink-900);
  --bs-btn-hover-bg: var(--brand-secondary-100);
  --bs-btn-hover-border-color: var(--brand-secondary);
  --bs-btn-active-bg: var(--brand-secondary-100);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.9rem;
  border-width: 1.5px;
  transition: transform var(--dur-fast) var(--ease-editorial), background-color var(--dur-fast) var(--ease-editorial);
}
[data-bs-theme="dark"] .btn-outline-brand { --bs-btn-hover-color: var(--ink-900); }
.btn-outline-brand:hover { transform: translateY(-2px); }

.btn-ghost-light {
  /* Für den Primär-CTA auf dem Amber-Verlauf: Weißer Text ohne Füllung fiel
     am Gold-Ende des Verlaufs auf 1.87:1. Volle Tinte-Füllung + helle
     Schrift hält 15.68:1 an jeder Stelle des Verlaufs; Hover kehrt um. */
  --bs-btn-color: var(--paper);
  --bs-btn-bg: var(--ink-900);
  --bs-btn-border-color: var(--ink-900);
  --bs-btn-hover-color: var(--ink-900);
  --bs-btn-hover-bg: var(--paper);
  --bs-btn-hover-border-color: var(--paper);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.9rem;
  border-width: 1.5px;
  box-shadow: var(--shadow-md);
}

.btn-outline-ink {
  /* Sekundärer Button auf dem Amber-Verlauf (z. B. Telefonnummer in der
     CTA-Sektion): der Standard-Rahmen (--color-border) fiel auf 1.38–2.32:1
     gegen den Verlauf, unter dem non-text-Minimum von 3:1. */
  --bs-btn-color: var(--ink-900);
  --bs-btn-border-color: var(--ink-900);
  --bs-btn-hover-color: var(--paper);
  --bs-btn-hover-bg: var(--ink-900);
  --bs-btn-hover-border-color: var(--ink-900);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.9rem;
  border-width: 1.5px;
  transition: transform var(--dur-fast) var(--ease-editorial), background-color var(--dur-fast) var(--ease-editorial), color var(--dur-fast) var(--ease-editorial);
}
.btn-outline-ink:hover { transform: translateY(-2px); }

.btn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--brand-primary-600);
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
}
[data-bs-theme="dark"] .btn-link-arrow { color: var(--brand-primary); }
.btn-link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-editorial); }
.btn-link-arrow:hover { border-bottom-color: currentColor; }
.btn-link-arrow:hover svg { transform: translateX(4px); }

.btn-lg { font-size: 1.05rem; padding: 1rem 2.25rem; }

/* ---------- 6. Navigation -------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1040;
  padding-block: var(--space-4);
  transition: background-color var(--dur-base) var(--ease-editorial), box-shadow var(--dur-base) var(--ease-editorial);
}
.site-header.is-scrolled {
  background-color: rgba(251, 248, 244, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-border);
}
[data-bs-theme="dark"] .site-header.is-scrolled {
  background-color: rgba(28, 22, 19, 0.88);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--color-heading) !important;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.brand-logo-dark { display: none; }
[data-bs-theme="dark"] .brand-logo-dark { display: block; }
[data-bs-theme="dark"] .brand-logo-light { display: none; }

.nav-link-main {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-text) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}
.nav-link-main::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.25rem;
  height: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-editorial);
}
.nav-link-main:hover::after,
.nav-link-main.active::after { transform: scaleX(1); }
.nav-link-main.active { color: var(--brand-primary-600) !important; }

.theme-toggle {
  width: 42px; height: 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-heading);
  display: grid;
  place-items: center;
  transition: background-color var(--dur-fast), transform var(--dur-fast);
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-bs-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Persistenter CTA für Mobile: der volle "Projekt anfragen"-Button
   verschwindet unter 768px (d-none d-md-inline-flex) — ohne Ersatz bliebe
   während des Scrollens keine sichtbare Kontaktaktion außer dem Menü. */
.mobile-cta-button {
  width: 42px; height: 42px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--brand-primary);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.mobile-cta-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.mobile-cta-button svg { width: 19px; height: 19px; }

.navbar-toggler-brand {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  width: 46px; height: 42px;
  display: grid; place-items: center;
  background: var(--color-surface);
}
.navbar-toggler-brand span {
  display: block; width: 20px; height: 2px; background: var(--color-heading);
  position: relative;
  transition: transform var(--dur-fast) var(--ease-editorial), opacity var(--dur-fast);
}
.navbar-toggler-brand span::before,
.navbar-toggler-brand span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--color-heading);
  transition: transform var(--dur-fast) var(--ease-editorial);
}
.navbar-toggler-brand span::before { top: -6px; }
.navbar-toggler-brand span::after { top: 6px; }
.navbar-toggler-brand[aria-expanded="true"] span { background: transparent; }
.navbar-toggler-brand[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.navbar-toggler-brand[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav-panel {
  position: fixed;
  inset: 0;
  z-index: 1039;
  background: var(--color-bg);
  padding: 6.5rem var(--space-5) var(--space-8);
  overflow-y: auto;
  display: none;
  flex-direction: column;
}
.mobile-nav-panel.is-open { display: flex; }
.mobile-nav-panel .nav-link-main { font-size: 1.3rem; padding: 0.75rem 0 !important; }
.mobile-nav-panel .nav-link-main::after { display: none; }
body.nav-open { overflow: hidden; }

/* ---------- 7. Hero -------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 12vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: var(--color-bg);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}
.hero-kicker .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  flex: none;
}
.hero h1 { font-size: var(--fs-display); line-height: var(--lh-tight); }
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-primary-600);
}
[data-bs-theme="dark"] .hero h1 em { color: var(--brand-primary); }
.hero-lead { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.hero-proof-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary-100), var(--brand-secondary-100));
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 400; color: var(--brand-primary-700);
  border: 2px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
  flex: none;
}
.hero-visual { position: relative; }
.hero-visual-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--brand-primary-50), var(--color-surface) 55%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
[data-bs-theme="dark"] .hero-visual-frame {
  background: linear-gradient(160deg, var(--brand-primary-50), var(--color-surface) 60%);
}
.hero-visual-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-badge-float {
  position: absolute;
  bottom: -1.25rem; left: -1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  max-width: 15rem;
}
@media (max-width: 767.98px) {
  .hero-badge-float { position: static; margin-top: var(--space-5); max-width: none; }
}
.hero-badge-float .value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--color-heading); }

/* ---------- 8. Problem / Lösung -------------------------------------------- */
.split-card {
  border-radius: var(--radius);
  padding: var(--space-8);
  height: 100%;
  border: 1px solid var(--color-border);
}
.split-card--problem {
  background: var(--color-surface-alt);
}
.split-card--solution {
  background: linear-gradient(160deg, var(--ink-900), #171210 120%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
[data-bs-theme="dark"] .split-card--solution {
  background: linear-gradient(160deg, #2c2117, #171210 120%);
}
.split-card--solution .eyebrow { color: var(--brand-secondary); }
.split-card--solution h3 { color: #fff; }
.split-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.split-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.split-list .icon-bullet {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 0.15rem;
}
.split-card--problem .icon-bullet { background: var(--brand-primary-100); color: var(--brand-primary-700); }
.split-card--solution .icon-bullet { background: rgba(255,255,255,0.12); color: var(--brand-secondary); }
.split-list svg { width: 14px; height: 14px; }

/* ---------- 9. Benefits ----------------------------------------------------- */
.benefit-card {
  height: 100%;
  padding: var(--space-6);
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform var(--dur-base) var(--ease-editorial), box-shadow var(--dur-base) var(--ease-editorial), border-color var(--dur-base);
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.benefit-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-primary-100), var(--brand-secondary-100));
  color: var(--brand-primary-700);
  margin-bottom: var(--space-5);
}
[data-bs-theme="dark"] .benefit-icon { color: var(--brand-primary); }
.benefit-icon svg { width: 26px; height: 26px; }

/* ---------- 10. Testimonials ------------------------------------------------ */
.testimonial-card {
  height: 100%;
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  position: relative;
}
.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--brand-secondary);
  display: block;
  margin-bottom: var(--space-2);
}
.testimonial-text {
  /* Zitat-Text bleibt bewusst in Merriweather Sans (kursiv) statt Fjalla One:
     ein kondensiertes Display-Sans wirkt als Blockzitat unruhig, während der
     Fließtext-Italic hier ruhig und lesbar bleibt. */
  font-family: var(--font-body); font-size: 1.2rem; font-weight: 500; font-style: italic; color: var(--color-heading); line-height: 1.55;
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 400;
}
.testimonial-placeholder-flag {
  position: absolute; top: var(--space-5); right: var(--space-5);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-muted);
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

/* ---------- 11. Features ----------------------------------------------------- */
.feature-row {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 992px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
  .feature-row.is-reverse .feature-visual { order: 2; }
}
.feature-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 12;
  background: var(--color-surface-alt);
  position: relative;
  box-shadow: var(--shadow-md);
}
.feature-visual svg { width: 100%; height: 100%; }
.feature-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-3); }
.feature-list li { display: flex; gap: 0.7rem; align-items: baseline; }
.feature-list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-primary); flex: none; margin-top: 0.55rem;
}

/* ---------- 12. Portfolio ----------------------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: var(--space-10);
}
.filter-btn {
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--dur-fast) var(--ease-editorial);
}
.filter-btn:hover { border-color: var(--brand-primary); }
.filter-btn.is-active {
  background: var(--color-heading);
  border-color: var(--color-heading);
  color: var(--color-bg);
}

.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--dur-base) var(--ease-editorial), box-shadow var(--dur-base) var(--ease-editorial);
}
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.portfolio-thumb { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.portfolio-thumb svg { width: 100%; height: 100%; transition: transform var(--dur-slow) var(--ease-editorial); }
.portfolio-card:hover .portfolio-thumb svg { transform: scale(1.06); }
.portfolio-body { padding: var(--space-5); }
.portfolio-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand-primary-600);
}
[data-bs-theme="dark"] .portfolio-tag { color: var(--brand-primary); }
.portfolio-title { font-family: var(--font-display); font-size: 1.1rem; margin-top: 0.25rem; color: var(--color-heading); }
.portfolio-placeholder-note {
  font-size: 0.72rem; color: var(--color-muted); margin-top: 0.35rem;
}

/* ---------- 13. CTA ------------------------------------------------------------ */
.cta-section {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  padding: clamp(3rem, 7vw, 6rem);
  text-align: center;
  color: var(--ink-900);
  isolation: isolate;
}
/* Dunkle Tinte statt Weiß: Weißer Text fiel am Gold-Ende des Verlaufs auf
   1.87:1. Tinte hält 5.28–8.86:1 über den gesamten Verlauf hinweg. */
.cta-section h2 { color: var(--ink-900); }
.cta-section .lead { color: rgba(36, 29, 25, 0.82); }
.cta-section .grid-texture { mix-blend-mode: overlay; opacity: 0.35; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-top: var(--space-8); }
.cta-note { margin-top: var(--space-5); font-size: var(--fs-small); color: rgba(36, 29, 25, 0.72); }

/* ---------- 14. Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-150);
  padding-top: var(--space-12);
}
[data-bs-theme="dark"] .site-footer { background: #14100d; }
.site-footer a { color: var(--ink-150); }
.site-footer a:hover { color: var(--brand-secondary); }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin-bottom: var(--space-4);
}
.footer-brand-mark { font-size: 1.5rem; }

/* Zweifarbige Wortmarke: "MZ" in Bungee/Primärfarbe, "Internet" in
   Merriweather Sans/Weiß. Genutzt im Footer-Markenschriftzug und in der
   Copyright-Zeile — überall sonst bleibt "MZInternet" schlichter Fließtext. */
.brand-wordmark { display: inline-flex; align-items: baseline; gap: 0.05em; }
.brand-wordmark-mz {
  font-family: "Bungee", var(--font-display), sans-serif;
  color: var(--brand-primary);
  letter-spacing: 0.01em;
}
.brand-wordmark-internet {
  font-family: var(--font-body);
  font-weight: 700;
  color: #fff;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.footer-links a { font-size: 0.95rem; }
.social-links { display: flex; gap: 0.6rem; margin-top: var(--space-5); }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center;
  transition: background-color var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
}
.social-links a:hover { background: var(--brand-primary); border-color: var(--brand-primary); transform: translateY(-2px); color: #fff; }
.social-links svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-10);
  padding-block: var(--space-5);
  font-size: 0.85rem;
  color: var(--ink-300);
}
.footer-bottom a { color: var(--ink-300); }
.footer-legal-links { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-hosting-note { font-size: 0.8rem; color: var(--ink-300); margin-top: var(--space-3); }

/* ---------- 15. Kontaktformular / Modal ------------------------------------------ */
.contact-modal .modal-content {
  border-radius: var(--radius);
  border: none;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}
.contact-modal .modal-header { border-bottom: none; padding: var(--space-6) var(--space-6) 0; }
.contact-modal .modal-body { padding: var(--space-4) var(--space-6) var(--space-6); }
.contact-modal .btn-close { box-shadow: none; }

.form-floating-brand label { color: var(--color-muted); }
.form-control-brand,
.form-select-brand {
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-surface-alt);
  color: var(--color-text);
  padding: 0.9rem 1rem;
  font-size: 0.98rem;
}
.form-control-brand:focus,
.form-select-brand:focus {
  border-color: var(--brand-primary);
  background-color: var(--color-surface);
  box-shadow: 0 0 0 4px rgba(229, 112, 42, 0.16);
}
.form-control-brand.is-invalid { border-color: var(--danger); }
.form-control-brand.is-valid { border-color: var(--success); }
textarea.form-control-brand { min-height: 130px; resize: vertical; }
.field-error {
  color: var(--danger);
  font-size: var(--fs-small);
  margin-top: 0.35rem;
  display: none;
}
.was-validated-field.is-invalid .field-error,
.field-error.is-shown { display: block; }
.field-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
  display: block;
}
.field-optional { color: var(--color-muted); font-weight: 400; }

/* Honeypot — für Menschen unsichtbar, für Bots erreichbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  border-radius: var(--radius);
  padding: var(--space-4);
  font-size: 0.92rem;
  display: none;
  margin-top: var(--space-4);
}
.form-status.is-success { display: block; background: #e6f3ea; color: var(--success); }
.form-status.is-error { display: block; background: #fbe6e1; color: var(--danger); }
[data-bs-theme="dark"] .form-status.is-success { background: rgba(63,138,94,0.18); }
[data-bs-theme="dark"] .form-status.is-error { background: rgba(192,67,47,0.18); }

/* ---------- 16. Sub-Seiten: Service-Hero + Übersicht ------------------------------ */
.service-hero { padding-top: clamp(7.5rem, 11vw, 10.5rem); padding-bottom: var(--space-10); }
.service-hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
}
.service-hero-visual svg { width: 100%; height: 100%; }

.leistung-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.leistung-item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.leistung-num {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-primary);
  flex: none; width: 2.6rem;
}

/* Illustrierter Ablauf (Webdesign: Original-Illustrationen der Live-Seite;
   Grafikdesign/3D Design: optisch angepasste, selbst erstellte Pendants). */
.process-illustrated { display: flex; flex-direction: column; gap: var(--space-12); }
.process-illustrated-row { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 992px) {
  .process-illustrated-row { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
  .process-illustrated-row.is-reverse .process-illustrated-visual { order: 2; }
}
.process-illustrated-visual {
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}
.process-illustrated-visual img,
.process-illustrated-visual svg { width: 100%; height: auto; max-width: 440px; display: block; }
.process-illustrated-num {
  font-family: var(--font-display); font-size: 2.5rem; color: var(--brand-primary-700);
  display: block; margin-bottom: var(--space-2);
}
[data-bs-theme="dark"] .process-illustrated-num { color: var(--brand-primary); }
[data-bs-theme="dark"] .process-step .step-number { color: var(--brand-secondary); }

/* ---------- 17. Rechtsseiten (Impressum / Datenschutz) --------------------------- */
.legal-content { max-width: 46rem; margin-inline: auto; }
.legal-content h2 { font-size: 1.4rem; margin-top: var(--space-10); margin-bottom: var(--space-3); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--color-text); }
.legal-content a { color: var(--brand-primary-600); text-decoration: underline; text-underline-offset: 2px; }
.legal-content .placeholder-hint {
  display: inline-block;
  background: var(--brand-secondary-100);
  color: var(--ink-900);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.85em;
}

/* ---------- 18. Animation-Hooks (GSAP) -------------------------------------------- */
[data-reveal] { opacity: 0; }
.gsap-ready [data-reveal] { will-change: transform, opacity; }
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- 19. Utilities ---------------------------------------------------------- */
.divider-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  border: none;
}
.rounded-brand { border-radius: var(--radius) !important; }

@media (max-width: 575.98px) {
  :root { --section-pad: clamp(3.25rem, 10vw, 5rem); }
}
