/* ==========================================================================
   HB NODES - DESIGN SYSTEM & STYLES
   Farbschema: Olivgrün & Senfgelb
   Erdig, seriös, vertrauenswürdig für Handwerksmeister
   ========================================================================== */

:root {
  /* Farbpalette (Erdig & Cremig) */
  --bg-page: #F6F3EB;
  /* Cremiges, warmes helles Beige */
  --bg-alt: #EBE6D9;
  /* Zweite Fläche etwas satter */
  --bg-surface: #FFFFFF;
  /* Weiß für Karten */
  --bg-card: #FFFFFF;
  --bg-dark-section: #282522;
  /* Dunkler Block (Edles warmes Dunkelbraun/Anthrazit) */
  --bg-dark-section-alt: #1F1D1B;
  --bg-dark: #282522;
  /* Footer */

  --text-main: #282522;
  /* Text Hauptfarbe (sehr dunkles Braun/Grau) */
  --text-muted: #6B635B;
  /* Text sekundär */
  --text-light: #948A80;
  /* Helles Grau-Braun */
  --text-inverse: #F4F1E8;
  /* Schrift auf Dunkel */
  --text-inverse-muted: #B8B0A5;
  /* Gedämpfter Text auf Dunkel */

  --color-accent: #8C6239;
  /* Akzent: Edles warmes Braun / Cognac */
  --color-accent-hover: #6B4A2A;
  /* Akzent hover, dunkler */
  --color-accent-soft: rgba(140, 98, 57, 0.08);
  --color-accent-border: rgba(140, 98, 57, 0.25);

  --color-dark-accent: #D4A373;
  /* Akzent auf Dunkel: Warmes Sandgold */
  --color-highlight: #8C6239;
  --color-highlight-soft: rgba(140, 98, 57, 0.12);

  --border-color: #DCD4C4;
  /* Linien / Rahmen */
  --border-focus: #8C6239;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Typografie */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Weiche Schatten */
  --shadow-sm: 0 1px 3px rgba(40, 37, 34, 0.04);
  --shadow-md: 0 6px 16px rgba(40, 37, 34, 0.06);
  --shadow-lg: 0 14px 28px -4px rgba(40, 37, 34, 0.08);
  --shadow-dark: 0 12px 30px rgba(0, 0, 0, 0.35);

  /* Radien & Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --container-max: 1120px;
  --header-height: 72px;
  --ease: cubic-bezier(.22, .68, .32, 1);
  --transition-fast: 0.2s var(--ease);
  --transition-card: 0.28s var(--ease);
  --transition-normal: 0.3s var(--ease);

  /* Logo-Hintergrund auf dunklen Flächen */
  .site-header .brand-logo svg,
  .site-footer .brand-logo svg {
    background-color: #FFFFFF;
    padding: 4px;
    border-radius: 6px;
  }

}



/* ==========================================================================
   RESET & BASICS
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* Feine Körnung über allen Hintergrundflächen */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONEN (DAUERHAFT SICHTBAR NACH EINTRITT)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.stagger-1 {
  transition-delay: 0.08s;
}

.stagger-2 {
  transition-delay: 0.16s;
}

.stagger-3 {
  transition-delay: 0.24s;
}

.stagger-4 {
  transition-delay: 0.32s;
}

.stagger-5 {
  transition-delay: 0.40s;
}

/* ==========================================================================
   INTERAKTIVE KARTEN MIT DEZENTEM ZOOM & HOVER-LIFT (PUNKT 7)
   ========================================================================== */

.interactive-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease);
  overflow: hidden;
}

.interactive-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.interactive-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(150, 90, 0, 0.08), transparent 75%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.interactive-card:hover::after {
  opacity: 1;
}

.interactive-card>* {
  position: relative;
  z-index: 2;
}

/* Dunkle Karten Variante */
.interactive-card-dark {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--border-dark);
}

.interactive-card-dark:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-dark);
  border-color: rgba(240, 169, 59, 0.35);
}

.interactive-card-dark::after {
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(240, 169, 59, 0.12), transparent 75%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .interactive-card:hover,
  .btn:hover,
  .demo-opt-btn:hover,
  .step-card-item.active-step,
  .problem-img-wrap:hover img,
  .fit-img-card:hover img {
    transform: none !important;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   HEADER & MITLAUFENDE NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(247, 246, 244, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background-color: rgba(247, 246, 244, 0.98);
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background-color: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo .logo-accent {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin-left: 3rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link.active {
  color: var(--color-accent);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
}

/* Animiertes Burger-Menü (Punkt 8b) */
.mobile-menu-btn {
  display: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

.mobile-menu-btn svg line {
  transition: transform 300ms var(--ease), opacity 200ms ease;
  transform-origin: center;
}

.mobile-menu-btn[aria-expanded="true"] svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] svg line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn[aria-expanded="true"] svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 1.25rem;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
  pointer-events: none;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  display: flex;
}

.mobile-nav-drawer .nav-link {
  font-size: 1.05rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   BUTTONS & MAGNETISCHER EFFEKT (PUNKT 7)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: scale(1.03);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-primary:active {
  transform: scale(0.99) translateY(1px);
}

/* Helles Senfgelb auf dunklem Hintergrund (Konditionen) */
.btn-sand {
  background-color: var(--color-dark-accent);
  color: #1E2124;
  border: 1px solid var(--color-dark-accent);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-sand:hover {
  background-color: #df992e;
  border-color: #df992e;
  color: #16181A;
}

.btn-large {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-compact {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-magnetic {
  display: inline-flex;
  transition: transform 0.2s var(--ease), background-color 200ms var(--ease);
  will-change: transform;
}

/* ==========================================================================
   SEKTIONEN & WEICHE ÜBERGÄNGE
   ========================================================================== */

section {
  padding: 6.5rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-alt) 120px, var(--bg-alt) calc(100% - 120px), var(--bg-page) 100%);
}

.section-dark {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-dark-section) 140px, var(--bg-dark-section) calc(100% - 140px), var(--bg-page) 100%);
  color: var(--text-inverse);
}

.section-dark .section-title {
  color: var(--text-inverse);
}

.section-dark .section-desc {
  color: var(--text-inverse-muted);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   1. HERO BEREICH & ERGEBNIS-VORSCHAU-KARTE (PUNKT 5)
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--header-height) + 4.5rem);
  padding-bottom: 5.5rem;
  background-color: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 420px;
  background: radial-gradient(circle, rgba(240, 169, 59, 0.08) 0%, rgba(150, 90, 0, 0.02) 50%, transparent 70%);
  filter: blur(55px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: heroGlowBreathe 7s ease-in-out infinite alternate;
}

@keyframes heroGlowBreathe {
  0% {
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0.65;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-title .highlight-word {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.hero-reassurance {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-reassurance svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero-scope-note {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-scope-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

/* Neu gestaltete Hero-Ergebnis-Karte (Punkt 5) */
.hero-preview-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: heroCardFadeIn 0.8s var(--ease) both;
}

.hero-preview-top-caption {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-preview-top-caption::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.hero-preview-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.65rem;
  box-shadow: 0 10px 30px rgba(22, 24, 26, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

@keyframes heroCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-letterhead-company strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 800;
}

.hero-letterhead-company span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.hero-letterhead-logo-placeholder {
  width: 52px;
  height: 32px;
  background-color: var(--bg-alt);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
}

.hero-doc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-recipient {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-subject {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
}

.hero-preview-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-preview-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: var(--bg-alt);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  box-sizing: border-box;
}

.hero-preview-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  min-width: 0;
}

.hero-preview-pos {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-accent);
  background-color: #FFFFFF;
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.hero-preview-item-name {
  color: var(--text-main);
  font-weight: 600;
  word-break: normal;
}

.hero-preview-price-box {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-preview-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.25rem 0;
}

.hero-preview-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.hero-total-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.hero-total-price {
  background-color: var(--bg-alt);
  border-color: var(--color-accent-border);
}

.hero-preview-footer {
  font-size: 0.76rem;
  color: var(--text-muted);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* ==========================================================================
   2. DAS PROBLEM (KONTRAST-GEGENÜBERSTELLUNG & BILDZOOM)
   ========================================================================== */

.contrast-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contrast-col {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

/* Links: Heute Abend */
.contrast-col.old {
  background-color: #EAE7E1;
  border: 1px solid #D6D2CA;
}

.contrast-col.old .contrast-header h3 {
  color: #383C42;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.contrast-col.old .contrast-header p {
  font-size: 0.88rem;
  color: #636A73;
  margin-bottom: 1.25rem;
}

/* Bild-Container mit dezenter Zoom-Animation (Punkt 7) */
.problem-img-wrap {
  position: relative;
  margin-bottom: 1.35rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 155px;
  background: linear-gradient(135deg, #d8d2c7, #c5bdb0);
}

.problem-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) contrast(1.05);
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 100%);
  transition: transform 500ms var(--ease);
}

.problem-img-wrap:hover img {
  transform: scale(1.06);
}

.contrast-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contrast-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contrast-col.old .contrast-item {
  color: #4A5057;
}

.contrast-col.old .icon-indicator {
  color: #8C929A;
  margin-top: 2px;
  flex-shrink: 0;
  font-weight: 700;
}

/* Rechts: Mit HB Nodes */
.contrast-col.new {
  background-color: var(--bg-surface);
  border: 1px solid var(--color-accent-border);
  box-shadow: var(--shadow-sm);
}

.contrast-col.new .contrast-header h3 {
  color: var(--color-accent);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.contrast-col.new .contrast-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.contrast-col.new .contrast-item {
  color: var(--text-main);
  font-weight: 500;
}

.contrast-col.new .icon-indicator {
  color: var(--color-accent);
  margin-top: 2px;
  flex-shrink: 0;
  font-weight: 700;
}

/* ==========================================================================
   SATZ-SEKTION (DUNKLER BLOCK FÄHRT BEIM SCROLLEN VON UNTEN EIN)
   ========================================================================== */

.satz-sektion {
  position: relative;
  background: #F7F6F4;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
  overflow: hidden;
}

.satz-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg,
      #F7F6F4 0,
      #1E2124 110px,
      #1E2124 calc(100% - 110px),
      #F7F6F4 100%);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 950ms cubic-bezier(.22, .68, .32, 1);
  will-change: clip-path;
}

.satz-sektion.sichtbar .satz-bg {
  clip-path: inset(0 0 0 0);
}

.satz-inhalt {
  position: relative;
  z-index: 1;
  max-width: min(70ch, 1150px);
  margin: 0 auto;
  text-align: center;
}

.satz-text {
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 3.2rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #F2F1EE;
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease 500ms, transform 600ms ease 500ms;
}

.satz-schluss {
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 3.2rem);
  color: var(--color-dark-accent);
  margin: 0.6rem 0 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease 750ms, transform 600ms ease 750ms;
}

.satz-sektion.sichtbar .satz-text,
.satz-sektion.sichtbar .satz-schluss {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .satz-bg {
    clip-path: inset(0 0 0 0) !important;
    transition: none !important;
  }

  .satz-text,
  .satz-schluss {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   RECHNER SEKTION
   ========================================================================== */

.calc-section {
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

.calc-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.calc-intro h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.calc-intro p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.slider-group {
  margin-bottom: 1.35rem;
}

.slider-group:last-child {
  margin-bottom: 0;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.slider-val-badge {
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.95rem;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s var(--ease);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-result-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}

.calc-result-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.calc-result-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.calc-result-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.calc-experience-note {
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ==========================================================================
   3. SO FUNKTIONIERT'S (INTERAKTIVE DEMO & SCHRITTE-KOPPLUNG)
   ========================================================================== */

.sticky-steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.sticky-preview-col {
  position: sticky;
  top: 100px;
}

.demo-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.demo-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-accent);
  background-color: var(--color-accent-soft);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.demo-status-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.demo-control-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-control-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 65px;
  flex-shrink: 0;
}

.demo-btn-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  flex: 1;
}

.demo-opt-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background-color: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.demo-opt-btn:hover {
  transform: scale(1.04);
  border-color: var(--color-accent);
}

.demo-opt-btn.active {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(150, 90, 0, 0.25);
}

.btn-demo-action {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

.demo-output-wrapper {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 180px;
  justify-content: center;
}

.demo-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.demo-doc-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
}

.demo-doc-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background-color: #FFFFFF;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.demo-empty-placeholder {
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
  padding: 2.2rem 1rem;
  font-style: italic;
}

.demo-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-accent);
  padding: 2rem 1rem;
}

.demo-pulse-dots .p-dot {
  display: inline-block;
  animation: dotPulse 1.2s infinite;
}

.demo-pulse-dots .p-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.demo-pulse-dots .p-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.demo-positions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.demo-pos-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
  border-left: 3px solid var(--color-accent);
  opacity: 0;
  transform: translateY(8px);
  animation: posFadeIn 0.35s var(--ease) forwards;
}

@keyframes posFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-pos-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-weight: 600;
}

.demo-pos-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-accent);
  background-color: var(--bg-alt);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.demo-price-box {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}

.demo-finish-note {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #2E7D32;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  animation: posFadeIn 0.35s var(--ease) forwards;
}

.demo-finish-note svg {
  flex-shrink: 0;
}

.demo-footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* Schritte mit weicher Kopplung (Punkt 6 & 8a) */
.steps-scroll-col {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.step-card-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: opacity 400ms var(--ease), border-color 400ms var(--ease), transform 400ms var(--ease), box-shadow 400ms var(--ease), background-color 400ms var(--ease);
  cursor: pointer;
}

.step-card-item.active-step {
  border-color: var(--color-accent) !important;
  box-shadow: var(--shadow-md) !important;
  opacity: 1 !important;
  transform: scale(1.02);
}

.step-card-item.dimmed-step {
  border-color: var(--border-color);
  box-shadow: none;
  opacity: 0.65;
  transform: scale(1);
}

.step-number {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.step-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.protocol-note-row {
  margin-top: 3.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.protocol-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.protocol-note-text {
  font-size: 0.92rem;
  color: var(--text-main);
}

/* ==========================================================================
   4. FÜR WEN DAS PASST (CHECKLISTE & BILDZOOM)
   ========================================================================== */

.fit-grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

.fit-main-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.fit-main-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.fit-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.fit-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.fit-check-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.fit-side-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fit-img-card {
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #d8d2c7, #c5bdb0);
  border: 1px solid var(--border-color);
}

.fit-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%);
  transition: transform 500ms var(--ease);
}

.fit-img-card:hover img {
  transform: scale(1.06);
}

.fit-side-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fit-side-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.fit-side-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   5. ABLAUF & KONDITIONEN (DUNKLER ANTHRAZIT-ABSCHNITT #1E2124)
   ========================================================================== */

.section-conditions {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-dark-section) 130px, var(--bg-dark-section) calc(100% - 130px), var(--bg-page) 100%);
  color: var(--text-inverse);
}

.section-conditions .section-title {
  color: var(--text-inverse);
}

.section-conditions .section-desc {
  color: var(--text-inverse-muted);
}

.conditions-card-dark {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(10px);
}

.conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.trial-core-box-dark {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trial-tag-sand {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-dark-accent);
  background-color: rgba(240, 169, 59, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.trial-title-dark {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-inverse);
  line-height: 1.25;
}

.trial-text-dark {
  font-size: 0.95rem;
  color: var(--text-inverse-muted);
  line-height: 1.55;
}

.trial-guarantee-badge-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-dark-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trial-guarantee-badge-dark svg {
  color: var(--color-dark-accent);
  flex-shrink: 0;
}

.included-package-col-dark h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-inverse);
  margin-bottom: 1.25rem;
}

.package-list-dark {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.package-item-dark {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-inverse);
}

.package-item-dark svg {
  color: var(--color-dark-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.terms-summary-row-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-inverse-muted);
}

/* ==========================================================================
   WEITERE ABLÄUFE AUTOMATISIEREN
   ========================================================================== */

.section-automations {
  background-color: var(--bg-page);
}

.automations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.automation-card {
  padding: 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.automation-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.automation-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.automation-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.automation-concluding-note {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   6. HÄUFIGE FRAGEN (FAQ AKKORDEON & PFEILRICHTUNG - PUNKT 1 & 2)
   ========================================================================== */

.faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  gap: 1rem;
  transition: color 200ms ease;
}

.faq-question-btn:hover {
  color: var(--color-accent);
}

/* Pfeil: Im geschlossenen Zustand zeigt er nach unten (0deg), beim Öffnen dreht er nach oben (180deg) */
.faq-icon-arrow {
  color: var(--color-accent);
  transform: rotate(0deg);
  transition: transform 200ms var(--ease);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-arrow,
.faq-question-btn[aria-expanded="true"] .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer-content {
  height: 0;
  overflow: hidden;
  transition: height 300ms var(--ease);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.35rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   7. KONTAKTBEREICH (MIT PORTRAIT / INITIALEN)
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-direct-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-person-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.portrait-container {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  position: relative;
  background-color: var(--color-accent);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.contact-person-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.contact-person-caption {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.contact-person-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-card-entry {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  transition: border-color var(--transition-fast), transform 200ms var(--ease);
}

.contact-card-entry:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.contact-entry-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-entry-text label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-entry-text a,
.contact-entry-text span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-entry-text a:hover {
  color: var(--color-accent);
}

.contact-location-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Formular */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #D32F2F !important;
  background-color: #FFF9F9 !important;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15) !important;
}

.field-error-msg {
  font-size: 0.76rem;
  color: #D32F2F;
  margin-top: 0.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.form-privacy-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.4;
}

.form-privacy-hint a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
}

.form-privacy-hint a:hover {
  color: var(--color-accent-hover);
}

.form-error-banner {
  background-color: #FFEBEE;
  border: 1px solid #FFCDD2;
  color: #C62828;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 1rem;
  line-height: 1.5;
  text-align: left;
}

.form-error-banner a {
  color: #B71C1C;
  font-weight: 700;
  text-decoration: underline;
}

.form-success-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  animation: formFadeIn 0.45s var(--ease) forwards;
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.form-success-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.form-success-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.6;
}

/* ==========================================================================
   FUSSZEILE (FLACH & BREIT IM QUERFORMAT, 4 SPALTEN)
   ========================================================================== */

.site-footer {
  background-color: var(--bg-dark);
  color: #8E959E;
  padding: 1.75rem 0 1.25rem 0;
  font-size: 0.88rem;
}

.footer-row-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
}

.footer-row-horizontal .footer-logo {
  color: var(--text-inverse);
  margin-bottom: 0;
  white-space: nowrap;
}

.footer-links-group,
.footer-contact-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.footer-links-group a,
.footer-contact-group a {
  color: #8E959E;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.footer-links-group a:hover,
.footer-contact-group a:hover {
  color: var(--color-dark-accent);
}

.footer-sep {
  color: #555c65;
  user-select: none;
  font-weight: 700;
}

.footer-bottom-slim {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7A8089;
  font-size: 0.8rem;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .automations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-text-col {
    align-items: center;
    text-align: center;
  }

  .hero-actions {
    align-items: center;
  }

  .hero-preview-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .contrast-container,
  .calc-grid,
  .sticky-steps-layout,
  .fit-grid-2,
  .conditions-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sticky-preview-col {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  section {
    padding: 3.75rem 0;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3.25rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: normal;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-scope-note {
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
    text-align: center;
    line-height: 1.45;
  }

  .scroll-highlight-text {
    font-size: 1.65rem;
    line-height: 1.35;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.28;
  }

  .section-desc {
    font-size: 0.92rem;
  }

  .automations-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .calc-wrapper,
  .conditions-card-dark,
  .contact-layout,
  .contrast-col,
  .fit-main-box,
  .fit-side-box,
  .demo-card {
    padding: 1.5rem 1.15rem;
  }

  .calc-result-number {
    font-size: 2.5rem;
  }

  .step-card-item {
    padding: 1.5rem 1.15rem;
  }

  .contact-person-header {
    flex-direction: column;
    text-align: center;
  }

  .demo-control-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .hero-preview-card {
    padding: 1.25rem 1rem;
  }

  .hero-preview-line,
  .demo-pos-item {
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
  }

  .hero-preview-info,
  .demo-pos-info {
    font-size: 0.82rem;
    gap: 0.4rem;
  }

  .hero-preview-price-box,
  .demo-price-box {
    font-size: 0.75rem;
    padding: 0.2rem 0.45rem;
  }
}

@media (max-width: 700px) {
  .footer-row-horizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .footer-links-group,
  .footer-contact-group {
    flex-wrap: wrap;
    justify-content: center;
  }
}