/* ==========================================================================
   DESIGN SYSTEM FOR SCHMIKON BUCHHALTUNGSSERVICE
   ========================================================================== */

/* 1. LOKALE SCHRIFTEN (100% DSGVO-konform) */
@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit-v15-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit-v15-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. DESIGN VARIABLE TOKENS */
:root {
  color-scheme: light dark;

  /* Farbpalette (Light Mode) */
  --bg-primary: #f9f7f1;       /* Warmes Creme / Off-White */
  --bg-secondary: #ffffff;     /* Reines Weiß für Karten */
  --bg-dark-section: #0b3131;  /* Tiefes Petrol / Blaugrün */
  --bg-dark-accent: #072222;   /* Noch dunkleres Petrol */
  --color-primary: #0b3131;    /* Tiefes Petrol */
  --color-accent: #c09e6c;     /* Sandgold / Bronze-Gold */
  --color-accent-hover: #ad8a57; /* Dunkleres Sandgold */
  --color-text: #2c3232;       /* Anthrazit */
  --color-text-muted: #6b7280; /* Muted Dunkelgrau */
  --color-text-light: #f9f7f1; /* Creme für dunkle Hintergründe */
  --color-border: #e2e8f0;     /* Leichter Border */
  --color-espresso: #3c2d28;   /* Dunkelbrauner Espresso-Ton */
  --color-shadow: rgba(11, 49, 49, 0.06);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout & Transitions */
  --border-radius: 12px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px var(--color-shadow), 0 2px 4px -1px var(--color-shadow);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark Mode Variables override */
[data-theme="dark"] {
  color-scheme: dark;

  --bg-primary: #061a1a;       /* Extrem dunkles Petrol */
  --bg-secondary: #0b2525;     /* Tiefes Petrol für Karten */
  --color-primary: #c09e6c;    /* Sandgold als Primärfarbe */
  --color-text: #e5e3dd;       /* Helles Grau/Creme */
  --color-text-muted: #9ca3af; /* Muted Grau */
  --color-border: #143b3b;     /* Petrol-Border */
  --color-shadow: rgba(0, 0, 0, 0.2);
  --bg-dark-section: #051414;  /* Noch schwärzeres Petrol */
  --bg-dark-accent: #020808;
}

/* 3. BASE RESET & SCROLLING */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.6;
  transition: var(--transition-smooth);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 4. UTILITIES & CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

.text-center { text-align: center; }

/* Maintenance mode */
.maintenance-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 18%, rgba(192, 158, 108, 0.16), transparent 34%),
    linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.maintenance-card {
  width: min(100%, 620px);
  padding: 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.maintenance-logo {
  width: 220px;
  max-width: 72vw;
  height: auto;
  margin: 0 auto 2rem;
}

.maintenance-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.7rem 0 1rem;
}

.maintenance-card p {
  max-width: 48ch;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.admin-maintenance-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1300;
  width: min(100% - 2rem, 900px);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(192, 158, 108, 0.45);
  border-radius: var(--border-radius);
  background: #fff8e7;
  color: #3c2d28;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}

.admin-maintenance-notice a {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  border-radius: calc(var(--border-radius) - 4px);
  background: var(--color-accent);
  color: #1a1e1e;
  font-family: var(--font-heading);
  font-weight: 700;
}

.admin-maintenance-notice a:hover {
  background: var(--color-accent-hover);
}

/* Subtle motion */
@keyframes heroIntroUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.hero-frame {
  animation: heroIntroUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-frame {
  animation-delay: 0.12s;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #1a1e1e;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 158, 108, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: rgba(192, 158, 108, 0.1);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--bg-dark-section);
  color: var(--color-text-light);
}

.btn-dark:hover {
  background-color: var(--bg-dark-accent);
  transform: translateY(-2px);
}

/* Section Title */
.section-header {
  margin-bottom: 4rem;
  max-width: 700px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
.section-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}
.section-header.center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(249, 247, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .header-nav {
  background-color: rgba(6, 26, 26, 0.85);
}

.header-nav.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-smooth);
}
.header-nav.scrolled .nav-container {
  height: 65px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  width: 205px;
  max-width: 42vw;
  position: relative;
  color-scheme: light;
  forced-color-adjust: none;
}

.logo::before {
  content: none;
}

.logo::after {
  content: none;
}

.logo-image {
  width: 100%;
  height: auto;
  color-scheme: light;
  forced-color-adjust: none;
}

.logo-image--dark {
  display: none;
}

[data-theme="dark"] .header-nav .logo-image--light {
  display: none;
}

[data-theme="dark"] .header-nav .logo-image--dark {
  display: block;
}

[data-theme="dark"] .header-nav .menu-toggle,
[data-theme="dark"] .header-nav .theme-toggle {
  color: #f9f7f1;
}

@media (prefers-color-scheme: dark) {
  .logo,
  .logo-image {
    color-scheme: light;
    forced-color-adjust: none;
  }
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.mobile-menu-cta {
  display: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after {
  width: 100%;
}

/* Theme Switcher & Menu Button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover {
  background-color: var(--color-border);
  color: var(--color-accent);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--bg-dark-section);
  color: var(--color-text-light);
  padding: 10.75rem 0 5.75rem;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 80% 20%, rgba(192, 158, 108, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr);
  gap: 5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.1rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.05rem;
  color: #d1d5db;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.hero-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-feat-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-feat-item h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.hero-feat-item p {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Portrait / Image Side */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: relative;
  width: 360px;
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--color-accent);
  padding: 1rem;
  transition: var(--transition-smooth);
  background: rgba(5, 20, 20, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-frame::after {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  border-top: 3px solid var(--color-accent);
  border-right: 3px solid var(--color-accent);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: calc(var(--border-radius-lg) - 8px);
  object-fit: cover;
  object-position: center top;
  background-color: var(--bg-secondary);
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border-radius: calc(var(--border-radius-lg) - 8px);
  color: var(--color-primary);
  text-align: center;
  padding: 2rem;
}

.hero-image-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  fill: none;
  margin-bottom: 1rem;
}

.hero-image-placeholder span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-person-meta {
  padding: 1.2rem 0.35rem 0.25rem;
}

.hero-person-meta strong {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.hero-person-meta span {
  color: #d1d5db;
  font-size: 0.9rem;
}

.hero-person-meta::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 1rem;
  background: var(--color-accent);
}

/* ==========================================================================
   SERVICES (LEISTUNGEN) SECTION
   ========================================================================== */
.services-section {
  background-color: var(--bg-primary);
}

.services-section .section-header,
.services-section .services-intro-text,
.calc-section .section-header,
.workflow-section .section-header,
.contact-section .section-header {
  display: none;
}

.services-heading,
.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.services-heading,
.section-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 4rem;
  align-items: end;
  max-width: none;
}

.section-kicker {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.services-heading h2,
.section-heading h2 {
  color: var(--color-primary);
  font-size: 2.25rem;
  margin: 0;
}

.services-heading p,
.section-heading p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin: 0.75rem 0 0;
}

.services-heading > p,
.section-heading-split > p {
  margin: 0;
}

.services-intro-text {
  font-size: 1.25rem;
  color: var(--color-text);
  max-width: 800px;
  margin: -2rem auto 4rem auto;
  text-align: center;
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: none;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(192, 158, 108, 0.45);
}

.service-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  color: var(--color-accent);
}

.service-icon-box svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.service-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.85rem;
  color: var(--color-primary);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.service-cta-card {
  justify-content: space-between;
  gap: 1.5rem;
  background:
    linear-gradient(135deg, rgba(11, 49, 49, 0.05), rgba(192, 158, 108, 0.12)),
    var(--bg-secondary);
  border-color: rgba(192, 158, 108, 0.45);
}

.service-cta-card h3 {
  margin-bottom: 0.75rem;
}

.service-cta-card .section-kicker {
  margin-bottom: 0.65rem;
}

.service-cta-card .btn {
  align-self: flex-start;
  padding: 0.75rem 1.1rem;
  min-height: 44px;
}

.service-cta-span-2 {
  grid-column: span 2;
}

.service-cta-span-3,
.service-cta-span-4 {
  grid-column: span 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.service-cta-span-3 .btn,
.service-cta-span-4 .btn {
  align-self: center;
}

/* ==========================================================================
   INTERACTIVE CALCULATOR SECTION
   ========================================================================== */
.calc-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 0;
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.calc-image-panel {
  grid-column: 1 / -1;
  border-left: 0;
  border-top: 1px solid var(--color-border);
}

.calc-image-panel .section-photo,
.calc-image-panel .section-photo-placeholder {
  min-height: 260px;
}

.calc-controls {
  padding: 4rem;
}

.calc-result-box {
  background-color: var(--bg-dark-section);
  color: var(--color-text-light);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.calc-result-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 100% 100%, rgba(192, 158, 108, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.calc-group {
  margin-bottom: 2.5rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calc-label-row label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.calc-value-badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Custom range input styling */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  transition: transform 0.1s;
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(177, 123, 47, 0.22), 0 2px 4px rgba(0,0,0,0.1);
}

.range-slider::-webkit-slider-thumb:active {
  transform: scale(1.35);
  box-shadow: 0 0 0 10px rgba(177, 123, 47, 0.35), 0 2px 4px rgba(0,0,0,0.1);
}

.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  transition: transform 0.1s;
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(177, 123, 47, 0.22), 0 2px 4px rgba(0,0,0,0.1);
}

.range-slider::-moz-range-thumb:active {
  transform: scale(1.35);
  box-shadow: 0 0 0 10px rgba(177, 123, 47, 0.35), 0 2px 4px rgba(0,0,0,0.1);
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  background-color: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.checkbox-container:hover .checkmark {
  border-color: var(--color-accent);
}

.checkbox-container input:checked + .checkmark {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.checkmark svg {
  width: 14px;
  height: 14px;
  stroke: #1a1e1e;
  stroke-width: 3;
  fill: none;
  display: none;
}

.checkbox-container input:checked + .checkmark svg {
  display: block;
}

/* Result box styles */
.calc-result-header {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.price-display {
  font-size: clamp(3rem, 4.6vw, 4rem);
  font-weight: 700;
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.price-display span {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 400;
  color: #d1d5db;
  margin-left: 0.35rem;
}

.price-note {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.calc-btn {
  width: 100%;
}

/* ==========================================================================
   WORKFLOW SECTION
   ========================================================================== */
.workflow-section {
  background-color: var(--bg-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 2px;
  background-image: linear-gradient(to right, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
  z-index: 1;
}

.step-card {
  background: transparent;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.step-card:hover .step-number {
  transform: scale(1.1);
  background-color: var(--color-accent);
  color: #1a1e1e;
  box-shadow: 0 4px 15px rgba(192, 158, 108, 0.4);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.1fr);
  gap: 3rem;
  align-items: stretch;
}

.section-image-panel {
  min-height: 100%;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--color-border);
}

.section-photo,
.section-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.section-image-panel picture {
  display: block;
  width: 100%;
  height: 100%;
}

.section-photo {
  display: block;
  object-fit: cover;
}

.section-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(11, 49, 49, 0.08), rgba(192, 158, 108, 0.14)),
    var(--bg-secondary);
  color: var(--color-primary);
  text-align: center;
}

.section-photo-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  fill: none;
}

.section-photo-placeholder span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.contact-quick-actions {
  display: none;
  gap: 0.75rem;
  margin: -1.75rem 0 2.5rem;
}

.contact-quick-actions .btn {
  flex: 1;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  min-width: 0;
  max-width: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(192, 158, 108, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.contact-info-item h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.contact-info-item p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
}

.legal-box-badge {
  background-color: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  min-width: 0;
  max-width: 100%;
}

.legal-box-badge p {
  margin-bottom: 0;
}

/* Contact Form */
.contact-form-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
}

.contact-form-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-form-intro h3 {
  color: var(--color-primary);
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.contact-form-intro p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.contact-image-panel {
  flex: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 1.5rem 0 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  min-height: 300px;
}

.contact-image-panel .section-photo,
.contact-image-panel .section-photo-placeholder {
  width: 100%;
  min-height: 0;
  max-height: none;
  max-width: 100%;
}

.contact-image-panel-old {
  display: none;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-border);
  background-color: var(--bg-secondary);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(192, 158, 108, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-privacy-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: -0.25rem 0 1.25rem;
}

.form-privacy-note a {
  color: var(--color-accent);
  font-weight: 700;
}

.form-privacy-note a:hover {
  color: var(--color-accent-hover);
}

/* Form alert feedback */
.form-alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
}

.form-alert.success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  color: #047857;
  display: block;
}

.form-alert.danger {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #b91c1c;
  display: block;
}

/* Honeypot field */
.hp-field {
  display: none !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-section {
  background-color: var(--bg-dark-section);
  color: var(--color-text-light);
  padding: 4rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2rem;
}

.footer-logo {
  width: 150px;
  padding: 0;
  color-scheme: light;
  forced-color-adjust: none;
}

.footer-logo::before {
  content: none;
}

.footer-logo .logo-image {
  width: 100%;
  height: auto;
  opacity: 1;
  filter: none;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.footer-brand p {
  max-width: 360px;
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.footer-link-btn:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* ==========================================================================
   MODAL WINDOWS (Impressum / Datenschutz)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  opacity: 0.6;
  transition: var(--transition-smooth);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.legal-text-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
  padding-right: 2.5rem;
  overflow-wrap: normal;
  word-break: normal;
}

.legal-text-content h3 {
  font-size: 1.15rem;
  margin-top: 1.4rem;
  margin-bottom: 0.65rem;
}

.legal-text-content p, .legal-text-content li {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.legal-text-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   DSGVO COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 420px;
  max-width: calc(100vw - 4rem);
  background-color: var(--bg-secondary);
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  padding: 1.75rem;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-title {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.25;
}

.cookie-title svg {
  width: 24px;
  height: 24px;
  fill: var(--color-accent);
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.cookie-text a {
  color: var(--color-accent);
  font-weight: 600;
}

.cookie-btn-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.cookie-btn-group .btn {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.cookie-btn-all {
  grid-column: auto;
  margin-top: 0;
}

/* ==========================================================================
   ADMIN COCKPIT (LOGIN & SETTINGS)
   ========================================================================== */
.cockpit-body {
  background-color: var(--bg-primary);
  min-height: 100vh;
  padding: 3rem 0;
}

.cockpit-login-card {
  max-width: 420px;
  margin: 6rem auto;
  background-color: var(--bg-secondary);
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.cockpit-login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.cockpit-login-header svg {
  width: 50px;
  height: 50px;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  fill: none;
  margin-bottom: 1rem;
}

.cockpit-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cockpit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 1rem;
}

.cockpit-header h1 {
  font-size: 2.2rem;
  color: var(--color-primary);
}

.cockpit-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cockpit-form {
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.cockpit-section {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2rem;
}

.cockpit-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cockpit-section-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cockpit-section-title svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.cockpit-toggle-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  cursor: pointer;
}

.cockpit-toggle-row input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--color-accent);
  flex: 0 0 auto;
}

.cockpit-toggle-row strong,
.cockpit-toggle-row small {
  display: block;
}

.cockpit-toggle-row small {
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cockpit-grid.full {
  grid-template-columns: 1fr;
}

.cockpit-image-upload-area {
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px dashed var(--color-accent);
}

.cockpit-preview-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  background-color: var(--bg-secondary);
}

.cockpit-btn-bar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.cockpit-service-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.cockpit-service-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cockpit-repeat-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.cockpit-repeat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cockpit-repeat-header h4 {
  color: var(--color-primary);
  margin: 0;
}

.cockpit-repeat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cockpit-repeat-actions .btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
}

.cockpit-icon-select {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.cockpit-icon-preview {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background-color: var(--bg-secondary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cockpit-icon-preview svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

/* ==========================================================================
   RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1320px) {
  .calc-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  }

  .calc-image-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .calc-image-panel .section-photo,
  .calc-image-panel .section-photo-placeholder {
    min-height: 260px;
  }

  .calc-result-box {
    padding: 3.25rem 3rem;
  }

  .price-display {
    font-size: clamp(2.8rem, 4.4vw, 3.45rem);
  }
}

@media (max-width: 1180px) {
  .hero-section {
    padding: 8.5rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-features {
    text-align: left;
  }

  .services-heading,
  .section-heading-split {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-cta-span-1,
  .service-cta-span-2,
  .service-cta-span-3,
  .service-cta-span-4 {
    grid-column: span 2;
  }

  .services-count-odd .service-cta-card {
    grid-column: span 1;
    display: flex;
  }
  
  .hero-image-wrapper {
    order: -1;
  }

  .hero-frame {
    width: 310px;
  }

  .hero-image,
  .hero-image-placeholder {
    min-height: 0;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc-image-panel {
    grid-column: auto;
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .calc-image-panel .section-photo,
  .calc-image-panel .section-photo-placeholder {
    min-height: 260px;
  }
  
  .calc-result-box {
    text-align: center;
    padding: 3.25rem 2.5rem;
  }

  .price-display {
    font-size: clamp(3rem, 6.2vw, 3.75rem);
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .steps-grid::before {
    display: none; /* remove horizontal line */
  }
  
  .contact-grid {
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1fr);
    gap: 2rem;
  }

}

@media (max-width: 980px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc-image-panel {
    grid-column: auto;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .admin-maintenance-notice {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .admin-maintenance-notice a {
    text-align: center;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero-section {
    padding: 7rem 0 3.5rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .services-section {
    padding-top: 3rem;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .nav-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .nav-actions .btn {
    display: none;
  }

  .logo {
    min-width: 0;
    width: 162px;
    max-width: 48vw;
  }

  .section-header {
    margin-bottom: 2.75rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 2.05rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-image-wrapper,
  .hero-frame {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card:not(.service-cta-card) {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.4rem;
    padding: 1.35rem;
  }

  .service-card:not(.service-cta-card) .service-icon-box {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    align-self: start;
  }

  .service-card:not(.service-cta-card) .service-icon-box svg {
    width: 30px;
    height: 30px;
  }

  .service-card:not(.service-cta-card) h3 {
    margin: 0;
  }

  .service-card:not(.service-cta-card) p {
    grid-column: 2;
  }

  .service-cta-span-1,
  .service-cta-span-2,
  .service-cta-span-3,
  .service-cta-span-4 {
    grid-column: auto;
    display: flex;
  }

  .service-cta-card {
    padding: 1.35rem;
    gap: 1rem;
  }

  .hero-frame {
    max-width: 265px;
    height: auto;
    aspect-ratio: auto;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-frame::after {
    display: none;
  }

  .hero-image,
  .hero-image-placeholder {
    min-height: 0;
  }

  .hero-person-meta {
    padding: 1rem 0 0;
    text-align: center;
  }

  .hero-person-meta::after {
    margin-left: auto;
    margin-right: auto;
  }

  .calc-grid {
    border-radius: var(--border-radius);
  }

  .calc-controls, .calc-result-box {
    padding: 2rem 1.25rem;
  }

  .calc-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .checkbox-container {
    align-items: flex-start;
  }

  .price-display {
    font-size: 2.6rem;
  }

  .price-display span {
    display: block;
    font-size: 1rem;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .contact-form-box {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 2rem 1.25rem;
  }

  .contact-quick-actions {
    display: flex;
    flex-direction: column;
    margin-top: -1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .contact-image-panel {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 1.25rem 0 2rem;
    aspect-ratio: 3 / 4;
  }

  .contact-image-panel .section-photo,
  .contact-image-panel .section-photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    max-width: 100%;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cookie-banner {
    bottom: 1rem;
    right: 1rem;
    width: calc(100vw - 2rem);
    padding: 1.4rem;
  }

  .cookie-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .cookie-text {
    margin-bottom: 1.1rem;
  }

  .cookie-btn-group {
    grid-template-columns: 1fr;
  }

  .cookie-btn-all {
    grid-column: auto;
    margin-top: 0;
  }

  .modal-content {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 2rem);
    padding: 2.25rem 1.35rem 1.75rem;
    border-radius: var(--border-radius);
  }

  .modal-close-btn {
    top: 0.7rem;
    right: 0.7rem;
  }

  .legal-text-content h2 {
    font-size: 1.28rem;
    line-height: 1.2;
    margin-bottom: 1.1rem;
    padding-right: 2.25rem;
  }

  .legal-text-content h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-top: 1.25rem;
  }

  .legal-text-content p,
  .legal-text-content li {
    font-size: 0.92rem;
    line-height: 1.6;
  }
  
  .cockpit-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-repeat-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cockpit-repeat-actions {
    justify-content: flex-start;
  }
  
  .cockpit-form {
    padding: 1.5rem;
  }
}

/* Final position for the public light refresh overrides. Kept at the end so older
   legacy section rules above cannot win the cascade. */
:root {
  color-scheme: light;
  --bg-primary: #fbfaf7;
  --bg-secondary: #ffffff;
  --bg-soft: #f4f0e9;
  --color-primary: #111111;
  --color-accent: #b17b2f;
  --color-accent-hover: #9d6921;
  --color-text: #202124;
  --color-text-muted: #62646b;
  --color-border: #e9e1d7;
  --color-shadow: rgba(39, 30, 18, 0.08);
  --font-display: 'Bodoni 72', 'Bodoni MT', Didot, 'Times New Roman', Georgia, serif;
  --shadow-sm: 0 14px 40px rgba(39, 30, 18, 0.07);
  --shadow-lg: 0 26px 70px rgba(39, 30, 18, 0.12);
}

html,
body {
  background:
    radial-gradient(circle at -8% 24%, rgba(177, 123, 47, 0.08), transparent 22rem),
    radial-gradient(circle at 98% 18%, rgba(177, 123, 47, 0.06), transparent 22rem),
    var(--bg-primary);
  color: var(--color-text);
}

.container {
  max-width: 1500px;
  padding: 0 4.5rem;
}

.section-padding {
  padding: 6.5rem 0;
}

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

h1,
.services-heading h2,
.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.section-kicker {
  font-family: var(--font-body);
  letter-spacing: 0.22em;
  color: var(--color-accent);
}

.btn {
  min-height: 52px;
  border-radius: 8px;
  border-width: 1px;
  font-family: var(--font-body);
  font-weight: 600;
  gap: 1rem;
}

.btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.btn-primary {
  background: linear-gradient(135deg, #c79747, #a86f22);
  color: #fff;
}

.btn-secondary,
.btn-nav {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(177, 123, 47, 0.7);
  color: var(--color-accent-hover);
}

.btn-with-icon {
  justify-content: space-between;
}

.btn-arrow {
  margin-left: auto;
}

.header-nav {
  position: sticky;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(233, 225, 215, 0.9);
}

.header-nav.scrolled {
  padding: 0;
  box-shadow: 0 10px 30px rgba(39, 30, 18, 0.05);
}

.nav-container {
  height: 112px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 2rem;
}

.header-nav.scrolled .nav-container {
  height: 86px;
}

.logo {
  width: 270px;
}

.logo-image--dark {
  display: none !important;
}

.nav-menu {
  gap: clamp(2.2rem, 5vw, 5rem);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: #111;
}

.nav-actions {
  justify-content: flex-end;
}

.btn-nav {
  min-height: 52px;
  padding: 0.75rem 1.6rem;
}

.menu-toggle {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(177, 123, 47, 0.65);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-hover);
}

.hero-section,
.services-section,
.workflow-section,
.calc-section,
.contact-section {
  background: transparent;
  border: 0;
}

.hero-section {
  min-height: calc(100vh - 112px);
  padding: clamp(4.5rem, 7vw, 7rem) 0 5rem;
  color: var(--color-text);
}

.hero-section::before {
  background:
    radial-gradient(circle at 0% 18%, rgba(177, 123, 47, 0.07), transparent 22rem),
    radial-gradient(circle at 100% 60%, rgba(177, 123, 47, 0.045), transparent 24rem);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(520px, 0.82fr);
  gap: clamp(4rem, 7vw, 7rem);
}

.hero-content h1 {
  max-width: 760px;
  color: var(--color-primary);
  font-size: clamp(4rem, 5.9vw, 6.8rem);
  margin-bottom: 2rem;
}

.hero-content p {
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 1.2vw, 1.28rem);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 2.75rem;
}

.hero-ctas {
  gap: 1.8rem;
  margin-bottom: 3.7rem;
}

.hero-ctas .btn {
  min-width: 270px;
  min-height: 68px;
  padding: 1rem 1.8rem;
}

.hero-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 0;
  padding-top: 0;
  max-width: 760px;
}

.hero-feat-item {
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  border-right: 1px solid var(--color-border);
}

.hero-feat-item:first-child {
  padding-left: 0;
}

.hero-feat-item:last-child {
  border-right: 0;
}

.hero-feat-item svg,
.service-icon-box,
.contact-info-icon,
.calc-group-icon,
.step-icon,
.float-icon,
.calc-result-icon,
.image-float-card span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f2ede6;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hero-feat-item svg {
  padding: 15px;
  stroke: #111;
  margin: 0;
}

.hero-feat-item h4 {
  color: var(--color-primary);
  font-family: var(--font-body);
}

.hero-feat-item p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.hero-frame {
  width: min(100%, 520px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.hero-frame::after {
  content: none;
}

.hero-image,
.hero-image-placeholder {
  aspect-ratio: 0.86 / 1;
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-lg);
}

.hero-float-card {
  position: absolute;
  right: -115px;
  width: 245px;
  min-height: 88px;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-primary);
}

.hero-float-card::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 50%;
  width: 36px;
  border-top: 1px dashed rgba(177, 123, 47, 0.7);
}

.hero-float-card-1 {
  top: 18%;
}

.hero-float-card-2 {
  top: 39%;
  right: -140px;
}

.hero-float-card-3 {
  top: 60%;
}

.float-icon svg,
.image-float-card span svg,
.service-icon-box svg,
.calc-group-icon svg,
.step-icon svg,
.contact-info-icon svg,
.calc-result-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.hero-person-meta {
  position: relative;
  z-index: 2;
  width: calc(100% + 24px);
  transform: translateX(-12px);
  padding: 1.25rem 1.7rem;
  border-radius: 0 0 18px 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.hero-person-meta::after {
  content: none;
}

.hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #c79747, #a86f22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.hero-person-meta strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 0;
}

.hero-person-meta span {
  color: var(--color-text-muted);
}

.hero-person-copy {
  display: grid;
}

.hero-signature {
  color: var(--color-accent) !important;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
}

.services-heading,
.section-heading {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  gap: 1.1rem;
  margin-bottom: 3rem;
}

.services-heading h2,
.section-heading h2 {
  color: var(--color-primary);
  font-size: clamp(3.4rem, 5.2vw, 6.2rem);
}

.services-heading p,
.section-heading p {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: 1.16rem;
  line-height: 1.65;
}

.section-heading-split {
  max-width: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
  align-items: end;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
}

.service-card,
.service-cta-span-1,
.service-cta-span-2,
.service-cta-span-3,
.service-cta-span-4 {
  min-height: 178px;
  padding: 1.7rem 1.5rem;
  border-radius: 14px;
  border-color: rgba(233, 225, 215, 0.86);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 34px rgba(39, 30, 18, 0.045);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 1.25rem;
  align-content: start;
  grid-column: auto;
}

.service-icon-box {
  grid-row: 1 / span 2;
  margin: 0;
}

.service-card h3 {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1.06rem;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.service-cta-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(253, 248, 240, 0.88));
  border-color: rgba(177, 123, 47, 0.35);
}

.service-cta-card .btn {
  grid-column: 2;
  width: 100%;
  min-height: 48px;
}

.calc-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.86fr);
  gap: clamp(3rem, 5vw, 5rem);
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.calc-card,
.contact-form-box {
  border-radius: 18px;
  border: 1px solid rgba(233, 225, 215, 0.92);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-lg);
}

.calc-card {
  padding: 2.2rem 2.2rem 1.9rem;
}

.calc-controls {
  padding: 0;
}

.calc-group {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1.3rem;
  margin: 0;
  padding: 0 0 1.8rem;
  border-bottom: 1px solid var(--color-border);
}

.calc-group + .calc-group {
  padding-top: 1.8rem;
}

.calc-group-addons {
  border-bottom: 0;
}

.calc-label-row {
  margin-bottom: 1rem;
}

.calc-label-row label {
  font-family: var(--font-body);
  color: var(--color-primary);
}

.calc-value-badge {
  min-width: 110px;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: #f8f4ef;
  color: var(--color-primary);
  text-align: center;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.checkbox-container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.calc-result-box {
  margin-top: 0.3rem;
  padding: 1.6rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(177, 123, 47, 0.08), rgba(255, 255, 255, 0.82));
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  row-gap: 0.55rem;
  column-gap: 1.4rem;
  align-items: center;
}

.calc-result-icon {
  grid-row: 1 / 3;
}

.calc-result-box::before {
  content: none;
}

.calc-result-header {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-primary);
}

.price-display {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: clamp(3rem, 4.6vw, 4.8rem);
  margin: 0;
}

.price-display span {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}

.price-note {
  color: var(--color-text-muted);
  margin: 0;
  grid-column: 2;
}

.calc-btn {
  margin: 1.4rem auto 0;
  width: min(100%, 300px);
}

.calc-image-panel {
  position: relative;
  grid-column: auto;
  border: 0;
  border-radius: 18px;
  min-height: 520px;
  overflow: visible;
  background: transparent;
}

.calc-image-panel .section-photo,
.calc-image-panel .section-photo-placeholder {
  min-height: 520px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.image-float-list {
  position: absolute;
  right: -1.5rem;
  bottom: -1.3rem;
  display: grid;
  gap: 1rem;
}

.image-float-card {
  width: 300px;
  min-height: 88px;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.image-float-card small {
  grid-column: 2;
  color: var(--color-text-muted);
}

.workflow-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.86fr);
  gap: clamp(3rem, 5vw, 5rem);
}

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

.steps-grid::before {
  display: none;
}

.step-card {
  display: grid;
  grid-template-columns: 90px 24px 70px minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  padding: 1.45rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(233, 225, 215, 0.86);
  box-shadow: 0 12px 34px rgba(39, 30, 18, 0.045);
  text-align: left;
}

.step-number {
  width: auto;
  height: auto;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-accent);
  font-size: 3.2rem;
  margin: 0;
}

.step-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
}

.step-dot::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -4rem;
  bottom: -4rem;
  border-left: 1px dashed rgba(177, 123, 47, 0.45);
  z-index: -1;
}

.step-card:first-child .step-dot::before {
  top: 50%;
}

.step-card:last-child .step-dot::before {
  bottom: 50%;
}

.step-card h3 {
  font-family: var(--font-body);
  color: var(--color-primary);
  margin: 0 0 0.4rem;
}

.step-card p {
  margin: 0;
  color: var(--color-text-muted);
}

.workflow-visual {
  position: relative;
  min-height: 520px;
}

.phone-mockup {
  position: absolute;
  left: 0;
  top: 0;
  width: 250px;
  height: 430px;
  border: 12px solid #111;
  border-radius: 36px;
  background: #151515;
  box-shadow: var(--shadow-lg);
  padding: 3rem 1rem 1rem;
}

.phone-bar {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 80px;
  height: 8px;
  border-radius: 99px;
  transform: translateX(-50%);
  background: #050505;
}

.receipt-card {
  height: 100%;
  padding: 1.2rem 0.9rem;
  background: #efe5d8;
  border: 2px solid var(--color-accent);
  display: grid;
  align-content: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.82rem;
}

.dashboard-mockup {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(88%, 520px);
  padding: 1.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.dashboard-metrics span {
  padding: 0.9rem;
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.dashboard-metrics b {
  color: var(--color-primary);
}

.dashboard-chart {
  height: 120px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, transparent 46%, rgba(177, 123, 47, 0.85) 47%, rgba(177, 123, 47, 0.85) 49%, transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(233, 225, 215, 0.7) 30px),
    #fff;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1fr);
}

.contact-info-list {
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.contact-info-item {
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(233, 225, 215, 0.86);
  box-shadow: 0 10px 28px rgba(39, 30, 18, 0.045);
}

.contact-info-item h4 {
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-primary);
}

.contact-info-item p {
  color: var(--color-text-muted);
  font-weight: 500;
}

.contact-image-panel {
  min-height: 260px;
  aspect-ratio: 16 / 10;
  margin: 1.4rem 0;
  border-radius: 14px;
}

.contact-image-panel .section-photo,
.contact-image-panel .section-photo-placeholder {
  min-height: 260px;
  border-radius: 14px;
}

.contact-quick-actions {
  display: flex;
  margin: 0;
}

.contact-form-box {
  padding: clamp(2rem, 4vw, 3.8rem);
}

.contact-form-intro {
  display: none;
}

#contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.3rem;
}

#contact-form .form-group:nth-of-type(5),
#contact-form .form-group:nth-of-type(6),
.form-privacy-note,
.form-submit-btn,
.form-alert {
  grid-column: 1 / -1;
}

.form-control {
  min-height: 56px;
  border-width: 1px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

textarea.form-control {
  min-height: 150px;
}

.form-submit-btn {
  width: 100%;
  min-height: 58px;
}

.footer-section {
  background: #111;
}

@media (max-width: 1320px) {
  .container {
    padding: 0 2.4rem;
  }

  .hero-grid,
  .calc-grid,
  .workflow-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrapper {
    order: 0;
  }

  .hero-frame {
    margin: 0 auto;
  }

  .hero-float-card {
    right: -70px;
  }

  .calc-image-panel,
  .calc-image-panel .section-photo,
  .calc-image-panel .section-photo-placeholder {
    min-height: 420px;
  }
}

@media (max-width: 980px) {
  .nav-container {
    grid-template-columns: minmax(0, 1fr) auto;
    height: 92px;
  }

  .nav-menu {
    top: 92px;
    background: rgba(255, 255, 255, 0.96);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-section {
    min-height: 0;
    padding-top: 4rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-float-card {
    right: -38px;
    width: 210px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.45rem;
  }

  .section-padding {
    padding: 4.7rem 0;
  }

  .logo {
    width: 172px;
    max-width: 42vw;
  }

  .nav-container {
    height: 86px;
    gap: 0.75rem;
  }

  .nav-actions .btn {
    display: inline-flex;
  }

  .btn-nav {
    min-height: 48px;
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
    gap: 0.55rem;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
  }

  .hero-content h1,
  .services-heading h2,
  .section-heading h2 {
    font-size: clamp(3.05rem, 13vw, 4.15rem);
  }

  .hero-content p,
  .services-heading p,
  .section-heading p {
    font-size: 1.05rem;
    line-height: 1.72;
  }

  .hero-ctas {
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  .hero-ctas .btn {
    min-width: 0;
    min-height: 58px;
  }

  .hero-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 2.25rem;
  }

  .hero-feat-item {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 0 0.65rem;
  }

  .hero-feat-item svg {
    width: 54px;
    height: 54px;
  }

  .hero-feat-item h4 {
    font-size: 0.9rem;
  }

  .hero-feat-item p {
    font-size: 0.75rem;
  }

  .hero-frame {
    width: min(100%, 560px);
    max-width: none;
  }

  .hero-image {
    aspect-ratio: 0.92 / 1;
  }

  .hero-float-card {
    right: -0.25rem;
    width: min(45vw, 210px);
    min-height: 74px;
    padding: 0.75rem;
    gap: 0.6rem;
    font-size: 0.78rem;
  }

  .hero-float-card::before,
  .hero-signature {
    display: none;
  }

  .hero-float-card-1 {
    top: 15%;
  }

  .hero-float-card-2 {
    top: 39%;
  }

  .hero-float-card-3 {
    top: 63%;
  }

  .float-icon {
    width: 46px;
    height: 46px;
  }

  .hero-person-meta {
    width: 100%;
    transform: none;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1rem;
  }

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

  .service-card,
  .service-cta-span-1,
  .service-cta-span-2,
  .service-cta-span-3,
  .service-cta-span-4 {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 1.25rem;
  }

  .section-heading-split {
    grid-template-columns: 1fr;
  }

  .calc-card {
    padding: 1.1rem;
  }

  .calc-group {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.9rem;
  }

  .calc-group-icon,
  .calc-result-icon,
  .step-icon,
  .contact-info-icon {
    width: 48px;
    height: 48px;
  }

  .calc-label-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .calc-value-badge {
    min-width: 88px;
  }

  .calc-result-box {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .price-note {
    grid-column: 1 / -1;
  }

  .price-display span {
    display: inline;
  }

  .calc-image-panel,
  .calc-image-panel .section-photo,
  .calc-image-panel .section-photo-placeholder {
    min-height: 300px;
  }

  .image-float-list {
    display: none;
  }

  .workflow-visual {
    order: -1;
    min-height: 360px;
  }

  .phone-mockup {
    width: 165px;
    height: 290px;
    border-width: 8px;
  }

  .dashboard-mockup {
    width: 70%;
    padding: 1rem;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics span:nth-child(n+3) {
    display: none;
  }

  .step-card {
    grid-template-columns: 62px 14px 48px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1.05rem;
  }

  .step-number {
    font-size: 2.5rem;
  }

  .contact-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-form-box {
    margin: 0;
    padding: 1.25rem;
    border-radius: 14px;
  }

  #contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .container {
    padding: 0 1.1rem;
  }

  .btn-nav span {
    display: none;
  }

  .hero-content h1,
  .services-heading h2,
  .section-heading h2 {
    font-size: clamp(2.75rem, 14vw, 3.5rem);
  }

  .hero-float-card {
    width: 48vw;
    font-size: 0.72rem;
  }

  .service-card,
  .service-cta-span-1,
  .service-cta-span-2,
  .service-cta-span-3,
  .service-cta-span-4 {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .service-icon-box {
    width: 50px;
    height: 50px;
  }

  .calc-group {
    grid-template-columns: 1fr;
  }

  .calc-group-icon {
    display: none;
  }

  .step-card {
    grid-template-columns: 52px 12px minmax(0, 1fr);
  }

.step-icon {
  display: none;
  }
}

/* Hero proportion refinement against the supplied design reference. */
.container {
  max-width: 1580px;
  padding-left: 5rem;
  padding-right: 5rem;
}

.header-nav {
  background: rgba(255, 255, 255, 0.9);
}

.nav-container {
  height: 104px;
}

.header-nav.scrolled .nav-container {
  height: 82px;
}

.logo {
  width: 260px;
}

.btn-nav {
  min-width: 196px;
  min-height: 56px;
  padding: 0.8rem 1.45rem;
  font-size: 1rem;
}

.hero-section {
  min-height: calc(100vh - 104px);
  padding: 1.65rem 0 4.2rem;
}

.hero-grid {
  grid-template-columns: minmax(680px, 0.98fr) minmax(520px, 0.78fr);
  gap: clamp(4.5rem, 6.2vw, 6.6rem);
  align-items: start;
}

.hero-content {
  padding-top: clamp(5rem, 7.2vw, 8.2rem);
}

.hero-content h1 {
  max-width: 820px;
  font-size: clamp(4.35rem, 4.3vw, 5.1rem);
  line-height: 1.08;
  margin-bottom: 2.25rem;
  color: #111;
}

.hero-content p {
  max-width: 700px;
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 2.75rem;
}

.hero-image-wrapper {
  justify-content: flex-start;
  padding-top: 1.65rem;
}

.hero-frame {
  width: 505px;
}

.hero-image,
.hero-image-placeholder {
  aspect-ratio: 0.92 / 1;
}

.hero-ctas {
  gap: 1.6rem;
  margin-bottom: 3.9rem;
}

.hero-ctas .btn {
  min-width: 285px;
  min-height: 74px;
  padding: 1rem 1.9rem;
}

.hero-features {
  max-width: 730px;
}

.hero-feat-item svg,
.float-icon,
.hero-avatar {
  width: 52px;
  height: 52px;
}

.hero-feat-item svg {
  padding: 13px;
}

.hero-float-card {
  right: -118px;
  width: 260px;
  min-height: 96px;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
}

.hero-float-card-1 {
  top: 17%;
}

.hero-float-card-2 {
  top: 38.5%;
  right: -140px;
}

.hero-float-card-3 {
  top: 60%;
}

.hero-person-meta {
  width: calc(100% + 28px);
  transform: translateX(-14px);
  min-height: 104px;
  padding: 1rem 1.75rem;
}

.hero-person-meta strong {
  font-size: 1.35rem;
}

.hero-signature {
  font-size: 1.25rem;
}

@media (max-width: 1320px) {
  .container {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content {
    padding-top: 2.5rem;
  }

  .hero-content h1 {
    max-width: 760px;
    font-size: clamp(3.9rem, 7vw, 4.9rem);
  }

  .hero-image-wrapper {
    padding-top: 0;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .nav-container {
    height: 84px;
  }

  .logo {
    width: 170px;
  }

  .btn-nav {
    min-width: 0;
    min-height: 46px;
    padding: 0.6rem 0.75rem;
  }

  .hero-section {
    padding-top: 2.3rem;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-content h1 {
    font-size: clamp(3.05rem, 11vw, 4rem);
    line-height: 1.04;
    margin-bottom: 1.6rem;
  }

  .hero-content p {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .hero-frame {
    width: min(100%, 620px);
  }

  .hero-float-card {
    right: -0.1rem;
    width: min(43vw, 205px);
  }
}

@media (max-width: 440px) {
  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 11.4vw, 3.35rem);
  }
}

.hero-content,
.hero-frame {
  opacity: 1;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

@media (min-width: 1321px) {
  .container {
    max-width: none;
    padding-left: 5.5rem;
    padding-right: 5.5rem;
  }

  .hero-grid {
    grid-template-columns: 760px 505px;
    gap: 7.2rem;
    justify-content: start;
  }

  .hero-content {
    padding-top: 7.35rem;
  }

  .hero-content h1 {
    max-width: 840px;
    font-size: clamp(4.75rem, 4.65vw, 5.35rem);
  }

  .hero-content p {
    max-width: 690px;
  }
}

@media (max-width: 900px) {
  .hero-title-line {
    white-space: normal;
  }
}

/* Keep the exact two-line headline only on wide screens; mobile must wrap freely. */
.hero-title-line {
  white-space: normal;
}

@media (min-width: 1321px) {
  .hero-title-line {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .hero-grid,
  .hero-content {
    text-align: left;
  }

  .hero-content p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-ctas {
    align-items: stretch;
  }

  .hero-features {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .btn-nav {
    min-width: 48px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .btn-nav span {
    display: none;
  }
}

/* Final viewport containment pass: match the supplied mobile hero and prevent
   oversized desktop spreading on ultra-wide monitors. */
@media (min-width: 1321px) {
  .container {
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 780px) minmax(0, 505px);
    gap: clamp(4.5rem, 6vw, 6.6rem);
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .hero-content,
  .hero-grid,
  .hero-frame,
  .hero-image-wrapper {
    max-width: 100%;
    min-width: 0;
  }

  .nav-container {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-menu {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

  .menu-toggle {
    display: inline-flex !important;
  }

  .hero-section {
    padding-top: 2.6rem;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(3.25rem, 13.2vw, 4.55rem);
    line-height: 1.12;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-title-line {
    display: block;
    white-space: normal;
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-features {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-feat-item {
    min-width: 0;
  }

  .hero-feat-item h4,
  .hero-feat-item p {
    overflow-wrap: break-word;
  }

  .hero-float-card {
    right: -0.2rem;
    max-width: calc(50vw - 0.7rem);
  }
}

@media (max-width: 440px) {
  .hero-content h1 {
    font-size: clamp(3rem, 12.4vw, 3.55rem);
  }

  .hero-content p {
    font-size: 1.02rem;
  }

  .hero-float-card {
    max-width: 48vw;
  }
}

/* Mobile precision pass: keep the homepage inside the phone viewport and
   closer to the supplied reference proportions. */
@media (max-width: 768px) {
  .header-nav .container.nav-container {
    display: flex !important;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    height: 86px;
    padding-left: 1.45rem;
    padding-right: 1.45rem;
    gap: 1rem;
  }

  .header-nav .logo {
    flex: 0 1 176px;
    width: 176px;
    max-width: calc(100vw - 6.8rem);
  }

  .header-nav .nav-actions {
    position: absolute;
    top: 50%;
    right: 1.45rem;
    flex: 0 0 auto;
    margin-left: 0;
    transform: translateY(-50%);
  }

  .header-nav .nav-actions .btn-nav {
    display: none !important;
  }

  .header-nav .menu-toggle {
    display: inline-flex !important;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
  }

  .header-nav .nav-menu {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    grid-column: auto;
    grid-row: auto;
  }

  .header-nav .nav-menu.active {
    padding-left: 1.45rem;
    padding-right: 1.45rem;
  }

  .mobile-menu-cta {
    display: block;
    width: min(100%, 360px);
    margin-top: 0.25rem;
  }

  .mobile-menu-cta .btn-nav {
    display: inline-flex !important;
    width: 100%;
    min-height: 56px;
    justify-content: space-between;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .mobile-menu-cta .btn-nav span {
    display: inline;
  }

  .hero-section {
    padding-top: 2.25rem;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .hero-content h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.55rem, 9.8vw, 3.25rem);
    line-height: 1.16;
    margin-bottom: 1.6rem;
  }

  .hero-title-line {
    display: block;
    max-width: 100%;
  }

  .hero-content p {
    width: 100%;
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.62;
    margin-bottom: 1.9rem;
  }

  .hero-ctas {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 64px;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-feat-item {
    min-width: 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

@media (max-width: 520px) {
  .hero-content h1 {
    font-size: clamp(2.35rem, 9.55vw, 2.7rem);
  }

  .hero-content p {
    font-size: 0.98rem;
  }
}

/* Reference alignment pass: bounded wide layouts, cleaner wordmark, and a
   tighter mobile first viewport. */
.logo-image {
  display: none !important;
}

.logo-wordmark {
  display: block;
  color: #111;
  font-family: var(--font-body);
  font-size: clamp(2rem, 2.35vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 1321px) {
  .container {
    max-width: 1680px;
    padding-left: 3.75rem;
    padding-right: 3.75rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 780px) minmax(0, 505px);
    gap: clamp(4.8rem, 5vw, 5.6rem);
    justify-content: start;
  }

  .hero-content {
    padding-top: 5.7rem;
  }
}

@media (max-width: 768px) {
  .logo-wordmark {
    font-size: clamp(1.75rem, 7.4vw, 2rem);
    letter-spacing: 0.16em;
  }

  .header-nav .logo {
    width: auto;
    max-width: calc(100vw - 7.2rem);
  }

  .hero-grid {
    gap: 1.45rem;
  }

  .hero-content h1 {
    font-size: clamp(2.65rem, 10.45vw, 3.15rem);
    line-height: 1.12;
    margin-bottom: 1.35rem;
  }

  .hero-content p {
    line-height: 1.55;
    margin-bottom: 1.55rem;
  }

  .hero-ctas {
    gap: 0.7rem;
    margin-bottom: 1.55rem;
  }

  .hero-ctas .btn {
    min-height: 58px;
  }

  .hero-features {
    align-items: start;
  }

  .hero-feat-item {
    gap: 0.7rem;
  }

  .hero-feat-item svg {
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .hero-feat-item h4 {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .hero-feat-item p {
    font-size: 0.82rem;
    line-height: 1.35;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: clamp(2.35rem, 9.75vw, 2.8rem);
  }
}

/* On narrow phones the portrait crop is too tight for floating cards. Keep the
   cards, but place them below the image so they never cover the face. */
@media (max-width: 640px) {
  .hero-frame {
    display: grid;
    gap: 0.75rem;
    overflow: visible;
  }

  .hero-image,
  .hero-image-placeholder {
    width: 100%;
    object-position: center top;
  }

  .hero-float-card,
  .hero-float-card-1,
  .hero-float-card-2,
  .hero-float-card-3 {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    min-height: 68px;
    padding: 0.8rem 1rem;
    transform: none;
  }

  .hero-float-card {
    justify-self: stretch;
    grid-template-columns: auto minmax(0, 1fr);
    box-shadow: 0 14px 30px rgba(39, 30, 18, 0.08);
  }

  .hero-float-card::before {
    display: none;
  }

  .hero-float-card strong {
    line-height: 1.25;
  }

  .hero-person-meta {
    margin-top: 0.15rem;
  }
}

/* Desktop reference polish: keep the headline clear of the image and make the
   benefit row read as one-line items like the design mockup. */
@media (min-width: 769px) {
  .hero-content h1 {
    max-width: 760px;
    font-size: clamp(4.25rem, 4.15vw, 4.75rem);
    line-height: 1.1;
  }

  .hero-content p {
    max-width: 690px;
  }

  .hero-ctas {
    margin-bottom: 3.15rem;
  }

  .hero-features {
    max-width: 680px;
    grid-template-columns: 1.05fr 1.1fr 1fr;
  }

  .hero-feat-item {
    display: grid;
    justify-items: center;
    align-content: start;
    text-align: center;
    gap: 0.55rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .hero-feat-item:first-child {
    padding-left: 0;
  }

  .hero-feat-item h4 {
    font-size: 0.94rem;
    line-height: 1.2;
    margin-bottom: 0.15rem;
    white-space: nowrap;
  }

  .hero-feat-item p {
    font-size: 0.82rem;
    line-height: 1.35;
    white-space: nowrap;
  }

  .hero-person-meta {
    width: 100%;
    transform: none;
  }
}

/* Page harmony pass: shared card rhythm and stable icon columns, especially for
   the contact area where mixed flex/grid rules made icons look jumpy. */
.service-card,
.calc-card,
.step-card,
.contact-info-item,
.legal-box-badge,
.contact-form-box {
  border-radius: 12px;
}

.service-icon-box,
.contact-info-icon,
.calc-group-icon,
.calc-result-icon,
.step-icon,
.image-float-card span,
.float-icon {
  width: 56px;
  height: 56px;
}

.contact-grid {
  align-items: start;
}

.contact-info-panel {
  display: grid;
  gap: 1.2rem;
}

.contact-info-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 0;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  column-gap: 1.2rem;
  min-height: 96px;
  padding: 1.15rem 1.25rem;
}

.contact-info-icon {
  align-self: center;
  justify-self: center;
}

.contact-info-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  line-height: 1.25;
}

.contact-info-item p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
}

.legal-box-badge {
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(233, 225, 215, 0.86);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(39, 30, 18, 0.035);
}

.legal-box-badge p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal-box-badge strong {
  color: var(--color-primary);
}

.contact-image-panel {
  margin: 0;
}

.contact-quick-actions {
  gap: 1rem;
}

.contact-form-box {
  padding: clamp(2.2rem, 3.4vw, 3.35rem);
}

#contact-form {
  row-gap: 1.2rem;
  column-gap: 1.25rem;
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--color-primary);
  font-size: 0.95rem;
  line-height: 1.25;
}

.form-control {
  width: 100%;
}

#home,
#leistungen,
#rechner,
#ablauf,
#kontakt {
  scroll-margin-top: 118px;
}

@media (min-width: 769px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .services-heading,
  .section-heading {
    margin-bottom: 3.1rem;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(560px, 0.98fr);
    gap: clamp(3.5rem, 5vw, 5.1rem);
  }
}

@media (max-width: 768px) {
  .hero-section .container,
  .hero-content,
  .hero-ctas,
  .hero-features {
    width: 100% !important;
    max-width: calc(100vw - 2.2rem) !important;
  }

  #home,
  #leistungen,
  #rechner,
  #ablauf,
  #kontakt {
    scroll-margin-top: 92px;
  }

  .service-icon-box,
  .contact-info-icon,
  .calc-group-icon,
  .calc-result-icon,
  .step-icon,
  .image-float-card span,
  .float-icon {
    width: 48px;
    height: 48px;
  }

  .contact-info-panel {
    gap: 1rem;
  }

  .contact-info-item {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 88px;
    padding: 1rem 1.15rem;
    column-gap: 1rem;
  }

  .contact-info-item h4 {
    font-size: 0.92rem;
  }

  .contact-info-item p {
    font-size: 0.98rem;
  }

  .legal-box-badge {
    padding: 1rem 1.15rem;
  }

  .contact-image-panel {
    margin-top: 0.25rem;
  }

  .contact-form-box {
    padding: 1.2rem;
  }

  #contact-form {
    row-gap: 1rem;
  }
}

/* Calculator section match pass: heading and calculator layout closer to the
   supplied desktop/mobile reference without disturbing other sections. */
.calc-section .section-heading-split {
  display: block;
  max-width: 900px;
  margin-bottom: 2.2rem;
}

.calc-section .section-heading h2 {
  max-width: none;
  font-size: clamp(3.6rem, 4.8vw, 5.35rem);
  line-height: 1.02;
  white-space: nowrap;
}

.calc-section .section-heading p {
  max-width: 680px;
  margin-top: 1rem;
}

.calc-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.86fr);
  gap: clamp(3.2rem, 4.8vw, 4.7rem);
  align-items: stretch;
}

.calc-card {
  padding: 1.8rem 2rem 1.6rem;
}

.calc-group {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1.2rem;
  padding-bottom: 1.4rem;
}

.calc-group + .calc-group {
  padding-top: 1.4rem;
}

.calc-group-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.8rem;
  align-items: center;
}

.calc-label-row {
  grid-column: 1;
  margin-bottom: 0.4rem;
}

.calc-label-row label {
  font-size: 1.05rem;
  line-height: 1.3;
}

.range-slider {
  grid-column: 1;
}

.range-labels {
  grid-column: 1;
  padding-right: 0.15rem;
  margin-top: 0.5rem;
}

.calc-value-badge {
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fcfbfa;
  color: var(--color-primary);
  min-width: 104px;
  height: 104px;
  box-shadow: var(--shadow-sm);
  padding: 0.5rem;
  align-self: center;
}

.calc-value-badge .value-number {
  font-size: 2.1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1.1;
  color: var(--color-accent);
}

.calc-value-badge .value-unit {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  font-weight: 700;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calc-group-addons .calc-label-row,
.calc-group-addons .checkbox-group {
  grid-column: 1 / -1;
}

.checkbox-container {
  min-height: 44px;
  padding: 0.62rem 0.85rem;
}

.calc-result-box {
  grid-template-columns: 72px minmax(0, 0.95fr) minmax(220px, 1fr);
  gap: 1.35rem;
  padding: 1.35rem 1.45rem;
}

.calc-result-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #c79747, #a86f22);
  color: #fff;
}

.price-display {
  font-size: clamp(3rem, 4vw, 4.1rem);
  line-height: 1;
}

.calc-btn {
  width: min(100%, 290px);
  min-height: 56px;
  margin-top: 1.45rem;
}

.calc-image-panel,
.calc-image-panel .section-photo,
.calc-image-panel .section-photo-placeholder {
  min-height: 450px;
}

.calc-image-panel {
  position: relative;
}

.calc-connector-lines {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.image-float-list {
  position: absolute;
  right: -1.8rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 1rem;
  z-index: 5;
}

.image-float-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.35rem;
  box-shadow: var(--shadow-sm);
  width: 300px;
  min-height: 86px;
  transition: var(--transition-smooth);
}

.image-float-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(177, 123, 47, 0.35);
}

.float-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(192, 158, 108, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.float-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.float-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.float-card-content strong {
  font-size: 0.96rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

.float-card-content p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .calc-section .section-heading-split {
    margin-bottom: 1.9rem;
  }

  .calc-section .section-heading h2 {
    font-size: clamp(2.6rem, 10.2vw, 3.15rem);
    line-height: 1.12;
    white-space: normal;
  }

  .calc-section .section-heading p {
    margin-top: 1rem;
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .calc-card {
    width: 100%;
    order: 1;
    padding: 1.35rem 1.1rem 1.2rem;
  }

  .calc-image-panel {
    order: 2;
    width: 100%;
  }

  .calc-group {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: 1.45rem;
  }

  .calc-group + .calc-group {
    padding-top: 1.45rem;
  }

  .calc-group-icon {
    display: inline-flex;
  }

  .calc-group-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    align-items: center;
  }

  .calc-label-row {
    grid-column: 1;
    margin-bottom: 0.3rem;
  }

  .calc-label-row label {
    font-size: 1.05rem;
  }

  .range-slider {
    grid-column: 1;
  }

  .range-labels {
    grid-column: 1;
    font-size: 0.86rem;
    margin-top: 0.4rem;
  }

  .calc-value-badge {
    grid-column: 2;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fcfbfa;
    min-width: 78px;
    height: 78px;
    padding: 0.25rem;
    align-self: center;
  }

  .calc-value-badge .value-number {
    font-size: 1.55rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1.1;
    color: var(--color-accent);
  }

  .calc-value-badge .value-unit {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 700;
  }

  .calc-connector-lines {
    display: none;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .checkbox-container {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 48px;
  }

  .calc-result-box {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem;
  }

  .calc-result-icon {
    width: 72px;
    height: 72px;
    grid-row: span 2;
  }

  .price-note {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
  }

  .price-display {
    font-size: clamp(3.1rem, 14vw, 4.2rem);
  }

  .calc-btn {
    width: 100%;
    min-height: 62px;
  }

  .calc-image-panel,
  .calc-image-panel .section-photo,
  .calc-image-panel .section-photo-placeholder {
    min-height: 320px;
  }
}

@media (max-width: 440px) {
  .calc-group {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .calc-group-icon {
    display: inline-flex;
  }

  .calc-section .section-heading h2 {
    font-size: clamp(2.35rem, 10.6vw, 2.75rem);
  }

  .range-labels span:nth-child(2),
  .range-labels span:nth-child(4) {
    display: none;
  }
}

/* Workflow heading: match the supplied "So einfach..." reference. */
.workflow-heading {
  max-width: 980px;
  margin-bottom: 3rem;
}

.workflow-heading h2 {
    max-width: 960px;
    font-size: clamp(3.45rem, 4.15vw, 4.6rem);
    line-height: 1.1;
}

.workflow-title-line {
    display: block;
}

.workflow-heading p {
    max-width: 600px;
    margin-top: 1.1rem;
}

@media (max-width: 768px) {
  .workflow-heading {
    margin-bottom: 2.2rem;
  }

  .workflow-heading h2 {
    font-size: clamp(2.55rem, 10.2vw, 3.25rem);
    line-height: 1.12;
  }

  .workflow-heading p {
    font-size: 1rem;
    line-height: 1.58;
  }
}

@media (max-width: 440px) {
  .workflow-heading h2 {
    font-size: clamp(2.4rem, 11.1vw, 2.95rem);
  }
}

/* Unified heading system: all major section titles now share one rhythm. */
.services-heading,
.section-heading,
.calc-section .section-heading-split,
.workflow-heading {
  max-width: 980px;
  margin-bottom: clamp(2.2rem, 3.2vw, 3.2rem);
}

.services-heading,
.section-heading-split,
.calc-section .section-heading-split {
  display: block;
}

.services-heading h2,
.section-heading h2,
.calc-section .section-heading h2,
.workflow-heading h2 {
  max-width: 980px;
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(3.05rem, 3.55vw, 4.05rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: normal;
}

.section-kicker {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.services-heading p,
.section-heading p,
.calc-section .section-heading p,
.workflow-heading p {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.58;
}

@media (max-width: 768px) {
  .services-heading,
  .section-heading,
  .calc-section .section-heading-split,
  .workflow-heading {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .services-heading h2,
  .section-heading h2,
  .calc-section .section-heading h2,
  .workflow-heading h2 {
    max-width: 100%;
    font-size: clamp(2.2rem, 8.8vw, 2.78rem);
    line-height: 1.12;
  }

  .section-kicker {
    margin-bottom: 0.72rem;
    font-size: 0.76rem;
  }

  .services-heading p,
  .section-heading p,
  .calc-section .section-heading p,
  .workflow-heading p {
    max-width: 100%;
    margin-top: 0.9rem;
    font-size: 1rem;
    line-height: 1.56;
  }
}

@media (max-width: 440px) {
  .services-heading h2,
  .section-heading h2,
  .calc-section .section-heading h2,
  .workflow-heading h2 {
    font-size: clamp(2.08rem, 8.9vw, 2.48rem);
  }
}

/* Service CTA card: same grid rhythm as the service cards, with a subtle
   consultation emphasis instead of a visually separate block. */
.services-grid {
  align-items: stretch;
}

.service-cta-card {
  display: grid;
  min-height: 198px;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(252, 247, 239, 0.94)),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(177, 123, 47, 0.42);
  box-shadow: 0 14px 36px rgba(39, 30, 18, 0.055);
}

.service-cta-card .service-icon-box {
  grid-row: 1;
}

.service-cta-content {
  grid-column: 2;
  min-width: 0;
}

.service-cta-card h3 {
  margin-bottom: 0.7rem;
}

.service-cta-card p {
  max-width: 100%;
}

.service-cta-card .btn {
  grid-column: 1 / -1;
  width: 100%;
  align-self: end;
  margin-top: 0.7rem;
}

@media (max-width: 768px) {
  .services-count-odd .service-cta-card,
  .service-cta-card {
    display: grid;
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 0.9rem;
  }

  .service-cta-card .service-icon-box {
    grid-row: 1;
  }

  .service-cta-content {
    grid-column: 2;
  }

  .service-cta-card .btn {
    grid-column: 2;
    width: min(100%, 320px);
    min-height: 50px !important;
    height: 50px;
    padding: 0 1rem;
    margin-top: 0;
    justify-self: start;
    align-self: start;
  }

  .service-cta-card .btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Workflow section composition: heading, process cards and mockups now follow
   the supplied desktop/mobile references more closely. */
.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1fr);
  grid-template-areas:
    "heading visual"
    "steps visual";
  column-gap: clamp(3.5rem, 6vw, 6rem);
  row-gap: 1.8rem;
  align-items: start;
}

.workflow-heading {
  grid-area: heading;
  margin-bottom: 0;
}

.workflow-layout .steps-grid {
  grid-area: steps;
}

.workflow-layout .workflow-visual {
  grid-area: visual;
}

.workflow-layout .workflow-heading h2 {
  max-width: 850px;
}

.workflow-layout .workflow-heading p {
  max-width: 660px;
}

.workflow-layout .steps-grid {
  gap: 1rem;
}

.workflow-layout .step-card {
  min-height: 112px;
  grid-template-columns: 74px 18px 58px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(39, 30, 18, 0.05);
}

.workflow-layout .step-number {
  font-size: 2.9rem;
  line-height: 1;
}

.workflow-layout .step-icon {
  width: 56px;
  height: 56px;
}

.workflow-layout .step-card h3 {
  font-size: 0.98rem;
  line-height: 1.25;
}

.workflow-layout .step-card p {
  font-size: 0.86rem;
  line-height: 1.45;
}

.workflow-layout .workflow-visual {
  min-height: 610px;
}

.workflow-layout .phone-mockup {
  left: 5%;
  top: 1rem;
  width: 230px;
  height: 410px;
  z-index: 2;
}

.workflow-status-list {
  position: absolute;
  top: 2.1rem;
  right: 0;
  z-index: 3;
  display: grid;
  width: min(320px, 48%);
  gap: 1rem;
}

.workflow-status-list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 52px;
  bottom: 52px;
  border-left: 1px dashed rgba(177, 123, 47, 0.42);
  transform: translateX(-50%);
  z-index: -1;
}

.workflow-status-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 0.85rem;
  min-height: 78px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(233, 225, 215, 0.86);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(39, 30, 18, 0.07);
}

.workflow-status-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(244, 239, 232, 0.95);
  color: var(--color-accent);
}

.workflow-status-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.workflow-status-card strong,
.workflow-status-card small {
  display: block;
}

.workflow-status-card strong {
  color: var(--color-primary);
  font-size: 0.84rem;
  line-height: 1.2;
}

.workflow-status-card small {
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.workflow-status-card b {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.workflow-layout .dashboard-mockup {
  right: 0;
  bottom: 0;
  width: min(78%, 520px);
  z-index: 4;
}

@media (max-width: 1320px) {
  .workflow-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "visual"
      "steps";
  }

  .workflow-layout .workflow-visual {
    order: 0;
  }
}

@media (max-width: 768px) {
  .workflow-layout {
    row-gap: 1.55rem;
  }

  .workflow-layout .workflow-visual {
    min-height: 430px;
    margin-bottom: 0.3rem;
  }

  .workflow-status-list {
    display: none;
  }

  .workflow-layout .phone-mockup {
    left: 0.25rem;
    top: 1.1rem;
    width: 150px;
    height: 288px;
    border-width: 8px;
    border-radius: 28px;
    transform: rotate(-5deg);
  }

  .workflow-layout .dashboard-mockup {
    right: 0;
    top: 6.6rem;
    bottom: auto;
    width: 65%;
    min-width: 222px;
    padding: 0.85rem;
    border-radius: 12px;
  }

  .workflow-layout .dashboard-mockup > strong {
    font-size: 0.86rem;
  }

  .workflow-layout .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
    margin: 0.7rem 0;
  }

  .workflow-layout .dashboard-metrics span {
    display: block !important;
    padding: 0.52rem;
    font-size: 0.58rem;
    line-height: 1.25;
  }

  .workflow-layout .dashboard-metrics b {
    font-size: 0.68rem;
  }

  .workflow-layout .dashboard-chart {
    height: 92px;
  }

  .workflow-layout .step-card {
    min-height: 118px;
    grid-template-columns: 56px 14px 50px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 12px;
  }

  .workflow-layout .step-number {
    font-size: 2.55rem;
  }

  .workflow-layout .step-icon {
    width: 50px;
    height: 50px;
  }

  .workflow-layout .step-card h3 {
    font-size: 0.98rem;
  }

  .workflow-layout .step-card p {
    font-size: 0.84rem;
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .workflow-layout .workflow-visual {
    min-height: 400px;
  }

  .workflow-layout .phone-mockup {
    width: 142px;
    height: 274px;
  }

  .workflow-layout .dashboard-mockup {
    width: 64%;
    min-width: 218px;
  }

  .workflow-layout .step-card {
    position: relative;
    grid-template-columns: 52px 14px minmax(0, 1fr);
    align-items: start;
  }

  .workflow-layout .step-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    opacity: 0.95;
  }

  .workflow-layout .step-card > div:last-child {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    padding-right: 3.25rem;
  }
}

/* Workflow visual asset pass: use real image assets instead of assembled CSS
   mockups, and calm down the timeline dots. */
.workflow-layout .workflow-visual {
  min-height: 560px;
}

.workflow-phone-image,
.workflow-info-image {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.workflow-phone-image {
  left: 5%;
  top: 1.2rem;
  width: min(28vw, 250px);
  aspect-ratio: 260 / 460;
  z-index: 2;
}

.workflow-info-image {
  right: 0;
  top: 1.2rem;
  width: min(58vw, 560px);
  aspect-ratio: 560 / 420;
  z-index: 3;
}

.workflow-layout .phone-mockup,
.workflow-layout .workflow-status-list,
.workflow-layout .dashboard-mockup {
  display: none !important;
}

.workflow-layout .step-dot {
  width: 9px;
  height: 9px;
  justify-self: center;
  box-shadow: 0 0 0 5px rgba(177, 123, 47, 0.08);
}

.workflow-layout .step-dot::before {
  top: -3.4rem;
  bottom: -3.4rem;
  border-left-color: rgba(177, 123, 47, 0.26);
}

.workflow-layout .step-number {
  text-shadow: none;
}

@media (max-width: 768px) {
  .workflow-layout .workflow-visual {
    min-height: 345px;
    overflow: visible;
  }

  .workflow-phone-image {
    left: 0.15rem;
    top: 0.3rem;
    width: 160px;
    transform: rotate(-5deg);
  }

  .workflow-info-image {
    right: 0.15rem;
    top: 4.6rem;
    width: 262px;
  }

  .workflow-layout .step-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 4px rgba(177, 123, 47, 0.08);
  }

  .workflow-layout .step-dot::before {
    top: -3.2rem;
    bottom: -3.2rem;
  }
}

@media (max-width: 420px) {
  .workflow-layout .workflow-visual {
    min-height: 320px;
  }

  .workflow-phone-image {
    width: 150px;
  }

  .workflow-info-image {
    top: 4.8rem;
    width: 252px;
  }
}

/* Mobile button alignment: keep icon and label visually grouped instead of
   stretching them to opposite edges on full-width buttons. */
@media (max-width: 768px) {
  .btn,
  .btn-with-icon,
  .calc-btn,
  .contact-quick-actions .btn,
  .mobile-menu-cta .btn-nav,
  .form-submit-btn {
    justify-content: center !important;
    text-align: center;
  }

  .btn-with-icon:not(:has(.btn-arrow)),
  .contact-quick-actions .btn,
  .form-submit-btn {
    gap: 0.75rem;
  }

  .btn-with-icon .btn-arrow {
    margin-left: 0.55rem;
  }

  .hero-ctas .btn-with-icon,
  .service-cta-card .btn-with-icon,
  .calc-btn.btn-with-icon {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: center !important;
    justify-items: center;
    column-gap: 0.9rem;
  }

  .hero-ctas .btn-with-icon .btn-arrow,
  .service-cta-card .btn-with-icon .btn-arrow,
  .calc-btn.btn-with-icon .btn-arrow {
    margin-left: 0;
  }

  .calc-btn.btn-with-icon:not(:has(.btn-arrow)) {
    display: inline-flex;
    justify-content: center !important;
    gap: 0.8rem;
  }
}

/* Tablet consistency pass: switch dense desktop compositions to the calmer
   mobile rhythm before cards, result boxes, and button contents get squeezed. */
@media (max-width: 1320px) {
  .calc-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem;
  }

  .calc-card,
  .calc-image-panel,
  .contact-info-panel,
  .contact-form-box {
    width: 100%;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }

  .calc-card {
    order: 1;
  }

  .calc-image-panel {
    order: 2;
  }

  .calc-result-box {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    align-items: center;
    row-gap: 0.55rem;
  }

  .calc-result-icon {
    grid-row: 1 / 3;
  }

  .calc-result-main {
    min-width: 0;
  }

  .price-note {
    grid-column: 2;
    border-left: 0;
    padding-left: 0;
    max-width: 34rem;
  }

  .btn,
  .btn-with-icon,
  .calc-btn,
  .contact-quick-actions .btn,
  .mobile-menu-cta .btn-nav,
  .form-submit-btn {
    justify-content: center !important;
    text-align: center;
  }

  .btn-with-icon:not(:has(.btn-arrow)),
  .contact-quick-actions .btn,
  .form-submit-btn {
    gap: 0.75rem;
  }

  .btn-with-icon .btn-arrow {
    margin-left: 0.55rem;
  }

  .hero-ctas .btn-with-icon,
  .service-cta-card .btn-with-icon,
  .calc-btn.btn-with-icon {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: center !important;
    justify-items: center;
    column-gap: 0.9rem;
  }

  .hero-ctas .btn-with-icon .btn-arrow,
  .service-cta-card .btn-with-icon .btn-arrow,
  .calc-btn.btn-with-icon .btn-arrow {
    margin-left: 0;
  }

  .calc-btn,
  .form-submit-btn {
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
  }

  .contact-quick-actions {
    justify-content: center;
  }

  .contact-section.section-padding {
    padding-top: clamp(3.4rem, 4.5vw, 4.6rem);
  }
}

@media (max-width: 640px) {
  .calc-result-box {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
  }

  .calc-result-icon,
  .price-note {
    grid-column: 1;
    grid-row: auto;
  }

  .price-note {
    max-width: 100%;
  }
}

.calc-btn,
.contact-quick-actions .btn,
.form-submit-btn {
  justify-content: center;
  gap: 0.75rem;
}

.calc-btn.btn-with-icon {
  display: inline-flex;
}

.calc-btn svg,
.contact-quick-actions .btn svg,
.form-submit-btn svg,
.service-cta-card .btn svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 641px) {
  .calc-result-box {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    align-items: center;
    row-gap: 0.55rem;
  }

  .calc-result-icon {
    grid-row: 1 / 3;
  }

  .calc-result-main {
    min-width: 0;
  }

  .price-note {
    grid-column: 2;
    border-left: 0;
    padding-left: 0;
    max-width: 34rem;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .service-cta-card .btn {
    min-width: 220px;
    justify-content: center;
    gap: 0.75rem;
  }
}

/* Responsive QA pass: smooth the awkward middle widths without changing the
   light reference look or adding another broad layout system. */
@media (min-width: 1321px) and (max-width: 1440px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 720px) minmax(0, 470px);
    gap: clamp(3rem, 4vw, 4rem);
  }

  .hero-content h1 {
    max-width: 720px;
    font-size: clamp(4.05rem, 4.7vw, 4.55rem);
  }

  .hero-frame {
    width: min(100%, 470px);
  }

  .hero-float-card {
    right: -64px;
    width: 222px;
    min-height: 82px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }

  .hero-float-card-2 {
    right: -76px;
  }

  .hero-float-card::before {
    left: -28px;
    width: 26px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(500px, 0.96fr);
    gap: clamp(2.4rem, 3vw, 3.2rem);
  }
}

@media (max-width: 1366px) {
  .calc-section .section-heading-split {
    width: 100%;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }

  .calc-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem;
  }

  .calc-card,
  .calc-image-panel {
    width: 100%;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }

  .calc-result-box {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    row-gap: 0.55rem;
  }

  .calc-result-icon {
    grid-row: 1 / 3;
  }

  .price-note {
    grid-column: 2;
    border-left: 0;
    padding-left: 0;
    max-width: 34rem;
  }

  .image-float-list {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1320px) {
  .contact-section .section-heading {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-section.section-padding {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

  .contact-grid {
    gap: 1.4rem;
  }

  .contact-info-panel,
  .contact-form-box {
    max-width: 760px;
  }
}

#home,
#leistungen,
#rechner,
#ablauf,
#kontakt {
  scroll-margin-top: 96px;
}

@media (max-width: 768px) {
  #home,
  #leistungen,
  #rechner,
  #ablauf,
  #kontakt {
    scroll-margin-top: 84px;
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 9.2vw, 2.85rem);
    line-height: 1.14;
  }

  .hero-content p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-features {
    overflow: visible;
  }

  .hero-feat-item {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .hero-feat-item h4 {
    white-space: normal;
  }

  .hero-feat-item p {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .contact-section.section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.8rem;
  }

  .contact-grid {
    gap: 1.1rem;
  }

  .image-float-list {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .image-float-card {
    width: min(280px, calc(100vw - 3.5rem));
  }
}

@media (max-width: 420px) {
  .hero-ctas .btn,
  .hero-ctas .btn-with-icon {
    display: inline-flex;
    justify-content: center !important;
    gap: 0.85rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-ctas .btn-arrow {
    margin-left: 0;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .hero-feat-item {
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    border-right: 0;
    padding: 0;
  }

  .hero-content h1 {
    font-size: clamp(2.08rem, 8.7vw, 2.42rem);
  }

  .hero-ctas .btn {
    min-height: 56px;
  }

  .hero-feat-item svg {
    width: 44px;
    height: 44px;
    padding: 11px;
  }

  .hero-feat-item h4 {
    font-size: 0.84rem;
  }

  .hero-feat-item p {
    font-size: 0.78rem;
  }

  .workflow-layout .workflow-visual {
    min-height: 300px;
  }

  .workflow-phone-image {
    width: 136px;
  }

  .workflow-info-image {
    top: 4.9rem;
    width: 222px;
  }
}

/* Workflow simplification: one phone image plus plain process cards, without
   dashboard graphics, checkmarks, or repeated icons. */
.workflow-layout {
  grid-template-columns: 1fr;
  grid-template-areas:
    "heading"
    "visual";
  row-gap: clamp(2.2rem, 4vw, 3.4rem);
}

.workflow-layout .workflow-visual {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
  min-height: 0;
  max-width: 1180px;
  margin: 0 auto;
  overflow: visible;
}

.workflow-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.workflow-phone-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 320px;
  width: 100%;
}

.workflow-phone-image {
  position: static;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.workflow-info-image,
.workflow-layout .phone-mockup,
.workflow-layout .workflow-status-list,
.workflow-layout .dashboard-mockup,
.workflow-layout .step-dot,
.workflow-layout .step-icon {
  display: none !important;
}

.workflow-option-list {
  display: grid;
  gap: 1rem;
}

.workflow-option-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 1.3rem;
  min-height: 100px;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(233, 225, 215, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(39, 30, 18, 0.045);
  position: relative;
  transition: var(--transition-smooth);
}

.workflow-option-card:hover {
  transform: translateY(-2px);
  border-color: rgba(177, 123, 47, 0.35);
  box-shadow: 0 16px 36px rgba(39, 30, 18, 0.08);
}

.workflow-option-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 57px; /* Aligned with the center of the number */
  bottom: -1.1rem; /* Spans the gap between cards */
  height: 1.2rem;
  border-left: 2px dashed var(--color-accent);
  opacity: 0.38;
}

.workflow-option-number {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  line-height: 1;
}

.workflow-option-copy {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.workflow-option-copy strong {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-primary);
  font-size: 1.02rem;
  line-height: 1.25;
}

.step-title-icon {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.workflow-option-copy small {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .workflow-layout .workflow-visual {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    max-width: 680px;
  }

  .workflow-phone-wrap {
    order: 2;
  }

  .workflow-option-list {
    order: 1;
  }

  .workflow-phone-card {
    max-width: 280px;
    padding: 1rem;
  }
}

@media (max-width: 520px) {
  .workflow-layout .workflow-visual {
    gap: 1.6rem;
  }

  .workflow-phone-card {
    max-width: 240px;
    padding: 0.85rem;
    border-radius: 14px;
  }

  .workflow-option-list {
    gap: 0.85rem;
  }

  .workflow-option-card {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 92px;
    gap: 0.9rem;
    padding: 1rem;
  }

  .workflow-option-number {
    font-size: 2.15rem;
  }

  .workflow-option-copy strong {
    font-size: 0.96rem;
  }

  .workflow-option-copy small {
    font-size: 0.86rem;
  }
}

@media (max-width: 520px) {
  .hero-section .container {
    max-width: 390px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
  }

  .hero-content,
  .hero-ctas,
  .hero-features {
    max-width: 100% !important;
  }

  .hero-ctas .btn,
  .hero-ctas .btn-with-icon {
    display: inline-flex;
    justify-content: center !important;
    gap: 0.85rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-ctas .btn-arrow {
    margin-left: 0;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .hero-feat-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    border-right: 0;
    padding: 0;
  }

  .hero-content h1 {
    font-size: clamp(2.08rem, 8.7vw, 2.42rem);
  }

  .hero-feat-item svg {
    width: 44px;
    height: 44px;
    padding: 11px;
  }

  .workflow-layout .workflow-visual {
    min-height: 300px;
  }

  .workflow-phone-image {
    width: 136px;
  }

  .workflow-info-image {
    top: 4.9rem;
    width: 222px;
  }
}

/* Services cleanup: quieter cards and a muted consultation card, matching the
   cleaner reference while keeping service icons above the card copy. */
.services-grid {
  align-items: stretch;
}

.service-card,
.service-card:not(.service-cta-card),
.service-cta-card {
  display: flex;
  min-height: 242px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: clamp(1.55rem, 2.1vw, 2rem);
  border: 1px solid rgba(222, 214, 203, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  text-align: left;
}

.service-card:not(.service-cta-card) .service-icon-box {
  display: inline-flex !important;
  width: 38px;
  height: 38px;
  margin: 0 0 1.35rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-accent);
  box-shadow: none;
}

.service-card:not(.service-cta-card) .service-icon-box svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.service-cta-card .service-icon-box {
  display: none !important;
}

.service-card h3 {
  max-width: 13rem;
  margin: 0 0 0.9rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.22;
}

.service-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.service-cta-card {
  min-height: 242px;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(245, 241, 235, 0.76)),
    rgba(246, 242, 235, 0.82);
  border-color: rgba(177, 123, 47, 0.34);
}

.service-cta-content {
  display: block;
  grid-column: auto;
}

.service-cta-card .section-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.service-cta-card h3 {
  max-width: 15rem;
  margin-bottom: 0.95rem;
}

.service-cta-card p {
  max-width: 15rem;
}

.service-cta-card .btn {
  display: inline-flex;
  width: auto;
  min-height: 54px;
  grid-column: auto;
  align-self: flex-start;
  margin-top: 1.4rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(177, 123, 47, 0.72);
  color: var(--color-accent-hover);
  box-shadow: none;
}

@media (max-width: 980px) {
  .service-card,
  .service-card:not(.service-cta-card),
  .service-cta-card {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .service-card,
  .service-card:not(.service-cta-card),
  .service-cta-card {
    display: flex;
    padding: 1.35rem;
  }

  .service-card h3 {
    max-width: none;
  }

  .service-cta-card .btn {
    width: min(100%, 260px);
    margin-top: 1.15rem;
  }
}

/* Services reference styling: softer cards, round icon chips, and quiet dotted
   background details like the supplied mockup. */
.logo-wordmark {
  font-size: clamp(1.95rem, 2.2vw, 2.35rem);
  font-weight: 450;
  letter-spacing: 0.21em;
  transform: translateY(1px);
}

.services-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 18%, rgba(242, 238, 230, 0.78) 0 16rem, transparent 16.2rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 247, 243, 0.96));
}

.services-section::before,
.services-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 330px;
  height: 210px;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(177, 123, 47, 0.28) 1px, transparent 1.6px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse at center, #000 0 46%, transparent 72%);
}

.services-section::before {
  top: 5.5rem;
  right: -5rem;
}

.services-section::after {
  left: -7rem;
  bottom: -2.4rem;
}

.services-section > .container {
  position: relative;
  z-index: 1;
}

.service-card:not(.service-cta-card) {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 166px;
  padding: clamp(1.35rem, 1.85vw, 1.65rem);
  border-color: rgba(228, 222, 213, 0.76);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(43, 35, 24, 0.055);
}

.service-card:not(.service-cta-card)::before {
  display: none;
}

.service-card:not(.service-cta-card) .service-icon-box {
  width: 54px;
  height: 54px;
  margin: 0 0 1.15rem;
  border-radius: 999px;
  background: rgba(242, 239, 233, 0.92);
  color: var(--color-accent-hover);
}

.service-card:not(.service-cta-card) .service-icon-box svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card:not(.service-cta-card) h3 {
  max-width: none;
  margin: 0;
  font-size: 1rem;
  line-height: 1.32;
}

.service-card:not(.service-cta-card) p {
  font-size: 0.91rem;
  line-height: 1.55;
}

.service-cta-card {
  border-radius: 12px;
}

@media (max-width: 980px) {
  .service-card:not(.service-cta-card) {
    min-height: 0;
  }
}

@media (min-width: 769px) and (max-width: 1260px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card:not(.service-cta-card) {
    min-height: 150px;
  }
}

@media (max-width: 768px) {
  .logo-wordmark {
    font-size: clamp(1.7rem, 7vw, 1.95rem);
    letter-spacing: 0.17em;
  }

  .services-section {
    background:
      radial-gradient(circle at 105% 10%, rgba(242, 238, 230, 0.62) 0 9rem, transparent 9.2rem),
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 247, 243, 0.98));
  }

  .services-section::before {
    top: 4rem;
    right: -11rem;
  }

  .services-section::after {
    left: -13rem;
    bottom: 2rem;
  }

  .service-card:not(.service-cta-card) {
    padding: 1.15rem;
  }

  .service-card:not(.service-cta-card) .service-icon-box {
    width: 50px;
    height: 50px;
  }
}
