/* ==========================================================================
   EHS Rhein-Main — Redesign Design System (OKLch Token Contract)
   Elektro Hausgeräte Service e.K. · Hasslocher Straße 53 · 65428 Rüsselsheim
   ========================================================================== */

:root {
  /* Core 6 OKLch Tokens from brand-spec.md */
  --bg: oklch(0.985 0.003 255);
  --surface: oklch(1 0 0);
  --fg: oklch(0.21 0.015 255);
  --muted: oklch(0.43 0.015 255);
  --border: oklch(0.89 0.008 255);
  --accent: oklch(0.54 0.22 27.5);

  /* Derived OKLch Interaction & Surface Tokens */
  --accent-hover: oklch(0.45 0.19 27.5);
  --accent-active: oklch(0.39 0.17 27.5);
  --accent-soft: oklch(0.96 0.022 27.5);
  --accent-border: oklch(0.84 0.08 27.5);

  --navy: oklch(0.29 0.075 258);
  --navy-hover: oklch(0.23 0.065 258);
  --navy-soft: oklch(0.955 0.014 258);
  --navy-fg: oklch(0.99 0.002 255);

  --surface-subtle: oklch(0.962 0.006 255);
  --surface-hover: oklch(0.935 0.008 255);
  --border-strong: oklch(0.78 0.012 255);

  --success: oklch(0.48 0.14 150);
  --success-soft: oklch(0.95 0.03 150);

  /* Schriftfamilie (Montserrat, @font-face in theme.css) */
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Layout & Spacing */
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px oklch(0.21 0.015 255 / 0.05);
  --shadow-md: 0 4px 12px -2px oklch(0.21 0.015 255 / 0.07);
  --shadow-lg: 0 12px 28px -8px oklch(0.21 0.015 255 / 0.12);
}

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

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

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Focus Ring Contract */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  /* lange deutsche Komposita auf schmalen Handys trennen statt überlaufen */
  hyphens: auto;
  overflow-wrap: anywhere;
}

p, li {
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

/* ==========================================================================
   Top Utility Bar (Meisterbetrieb & Live Öffnungszeiten)
   ========================================================================== */
.utility-bar {
  background-color: var(--navy);
  color: var(--navy-fg);
  font-size: 0.8125rem;
  border-bottom: 1px solid oklch(0.38 0.07 258);
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-block: 0.55rem; /* nur vertikal, sonst entfällt der seitliche Rand von .container */
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy-fg);
  font-weight: 500;
}

.utility-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: oklch(0.86 0.04 255);
}

a.utility-link {
  color: var(--navy-fg);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background-color: oklch(0.35 0.075 258);
}

a.utility-link:hover {
  background-color: oklch(0.42 0.08 258);
  color: var(--surface);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background-color: oklch(0.23 0.05 258);
  color: var(--navy-fg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid oklch(0.40 0.07 258);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: oklch(0.74 0.18 150);
}

.status-dot.closed {
  background-color: oklch(0.75 0.15 65);
}

/* ==========================================================================
   Site Header & Primary Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 2px solid var(--navy);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 84px;
  padding-block: 0.6rem; /* nur vertikal, sonst entfällt der seitliche Rand von .container */
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand-lockup:hover {
  background-color: var(--surface-subtle);
}

.brand-logo-img {
  display: block;
  height: 68px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  background-color: transparent;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 oklch(0.38 0.18 27.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.02em;
}

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

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  background-color: transparent;
  border: 1px solid transparent;
}

.nav-link:hover {
  background-color: var(--surface-hover);
  color: var(--fg);
}

.nav-link.active {
  background-color: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
}

.nav-link.active:hover {
  background-color: var(--navy-hover);
  color: var(--surface);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

.phone-chip:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--fg);
}

.phone-chip svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--fg);
  cursor: pointer;
}

.mobile-menu-btn:hover {
  background-color: var(--surface-hover);
}

/* ==========================================================================
   Buttons & Action Economy (Strict Contrast Pairing)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Primary Solid CTA (Max 1 per viewport) */
.btn-primary {
  background-color: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

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

.btn-primary:active {
  background-color: var(--accent-active);
  color: var(--surface);
}

/* Secondary / Outline Button */
.btn-secondary,
.btn-outline {
  background-color: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn-secondary:hover,
.btn-outline:hover {
  background-color: var(--surface-hover);
  color: var(--fg);
  border-color: var(--fg);
}

/* Navy Technical Button */
.btn-navy {
  background-color: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
}

.btn-navy:hover {
  background-color: var(--navy-hover);
  color: var(--surface);
  border-color: var(--navy-hover);
}

/* Ghost Text Link Action */
.link-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  background-color: transparent;
}

.link-action:hover {
  background-color: var(--navy-soft);
  color: var(--navy-hover);
}

/* ==========================================================================
   Hero Section & Technical Spec Banner
   ========================================================================== */
.hero-section {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background-color: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 1.1rem;
}

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

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.hero-usp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-bottom: 1.75rem;
  list-style: none;
}

.hero-usp-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--fg);
  padding: 0.45rem 0.65rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.hero-usp-item svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Right Hero Visual Showcase */
.hero-showcase {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-banner-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--surface-subtle);
}

.hero-banner-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-photo-pair {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0.85rem;
  align-items: stretch;
}

.hero-photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-photo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.photo-caption-bar {
  padding: 0.55rem 0.75rem;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
}

.photo-caption-bar span.mono {
  color: var(--muted);
  font-size: 0.72rem;
}

/* ==========================================================================
   Key Metrics & Trust Strip
   ========================================================================== */
.metrics-strip {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

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

.metric-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
}

.metric-value.is-accent {
  color: var(--accent);
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ==========================================================================
   Section Headers & Layout Blocks
   ========================================================================== */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background-color: var(--surface);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2.25rem;
}

.section-header-text {
  max-width: 660px;
}

.section-title {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
}

/* ==========================================================================
   Brand Logos Bar (Authentic `logos.jpg` + Brand Tags)
   ========================================================================== */
.brands-bar {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.brands-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand-tag {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}

/* ==========================================================================
   Service & Pillar Cards
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.pillar-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.pillar-top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pillar-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--navy-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  border: 1px solid oklch(0.86 0.03 258);
}

.icon-box svg {
  width: 20px;
  height: 20px;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background-color: var(--surface-subtle);
  color: var(--navy);
  border: 1px solid var(--border-strong);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.pillar-desc {
  color: var(--muted);
  font-size: 0.9375rem;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Block statt Flex: bei gemischtem Inhalt (<strong> + Text) würde jedes Stück
   sonst zur eigenen Flex-Spalte */
.pillar-list li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.875rem;
  color: var(--fg);
}

.pillar-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ==========================================================================
   Appliance & Offer Cards (Technical Data Sheet Style)
   ========================================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: var(--surface-hover);
  color: var(--fg);
}

.filter-btn.active {
  background-color: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.product-media {
  position: relative;
  background-color: var(--surface);
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.product-media img {
  max-height: 210px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--navy);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.product-badge.badge-sale {
  background-color: var(--accent);
  color: var(--surface);
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.product-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--fg);
}

.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.spec-list li > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.spec-list li strong {
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-old {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
}

/* ==========================================================================
   Interactive Repair & Service Calculator Module
   ========================================================================== */
.calculator-panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.calc-form-grid,
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.form-grid-2 + .form-grid-2,
.form-grid-2 + .form-group,
.form-group + .form-grid-2,
.form-group + .form-group {
  margin-top: 0.9rem;
}

.calc-form-grid .form-group + .form-group,
.form-grid-2 .form-group + .form-group {
  margin-top: 0;
}

.calc-form-grid {
  margin-top: 1.25rem;
}

/* Datenschutz-Hinweis direkt am Absende-Button */
.form-privacy {
  margin: 0.6rem 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

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

.form-privacy--inline {
  flex: 1 1 16rem;
  margin: 0;
}

.split-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.form-card,
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--fg);
}

.card-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--fg);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
}

.form-control,
.form-select,
.form-input,
.form-textarea {
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg);
  color: var(--fg);
  font-size: 0.9375rem;
  width: 100%;
}

.form-textarea {
  resize: vertical;
  min-height: 92px;
}

.form-control:hover,
.form-select:hover,
.form-input:hover,
.form-textarea:hover {
  border-color: var(--fg);
}

.calc-result-card {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calc-price-highlight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.calc-guarantee-box {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--success-soft);
  border: 1px solid oklch(0.82 0.08 150);
  color: var(--fg);
  font-size: 0.85rem;
}

/* ==========================================================================
   Typenschild Upload Dropzone & Rating Plate Guide
   ========================================================================== */
.upload-dropzone {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background-color: var(--bg);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  background-color: var(--navy-soft);
  border-color: var(--navy);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
  display: grid;
  place-items: center;
}

.upload-icon-circle svg {
  width: 22px;
  height: 22px;
}

.upload-preview-card {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid oklch(0.82 0.08 150);
  margin-top: 0.65rem;
}

.upload-preview-card.is-visible {
  display: flex;
}

.upload-preview-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.upload-thumb {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
  background-color: var(--surface-subtle);
  flex-shrink: 0;
}

.upload-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.upload-filename {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-filesize {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--success);
}

.rating-plate-schematic {
  background-color: var(--surface);
  border: 1.5px solid var(--fg);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rating-plate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--border-strong);
}

.rating-plate-highlight {
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--fg);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
}

/* ==========================================================================
   Interactive Error Code Quick-Help (Fehlercode-Schnellhilfe)
   ========================================================================== */
.errorcode-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.errorcode-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.errorcode-chip {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.errorcode-chip:hover {
  border-color: var(--navy);
  background-color: var(--navy-soft);
}

.errorcode-chip.is-active {
  background-color: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
}

.errorcode-search-wrap {
  flex: 1 1 240px;
  max-width: 340px;
}

.errorcode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 980px) {
  .errorcode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .errorcode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.errorcode-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  box-shadow: var(--shadow-xs);
}

.errorcode-card.is-hidden {
  display: none;
}

.errorcode-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.errorcode-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.errorcode-brands {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

.errorcode-step-box {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fg);
}

.errorcode-step-box strong {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   Repair Worthiness Calculator & Appliance Advisor
   ========================================================================== */
.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.range-value-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  background-color: var(--navy-soft);
  border: 1px solid oklch(0.84 0.03 255);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
}

.range-slider {
  width: 100%;
  accent-color: var(--navy);
  cursor: pointer;
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.verdict-badge.is-good {
  background-color: var(--success-soft);
  color: var(--success);
  border: 1px solid oklch(0.82 0.08 150);
}

.verdict-badge.is-check {
  background-color: var(--navy-soft);
  color: var(--navy);
  border: 1px solid oklch(0.82 0.04 255);
}

.verdict-badge.is-replace {
  background-color: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.verdict-meter {
  width: 100%;
  height: 8px;
  background-color: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0.5rem 0;
}

.verdict-meter-fill {
  height: 100%;
  background-color: var(--success);
  border-radius: var(--radius-sm);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.quick-entry-strip {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: center;
}

@media (max-width: 900px) {
  .quick-entry-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.advisor-option-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.advisor-choice-btn {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg);
  color: var(--fg);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.advisor-choice-btn:hover {
  border-color: var(--navy);
  background-color: var(--navy-soft);
}

.advisor-choice-btn.is-selected {
  border-color: var(--navy);
  background-color: var(--navy);
  color: var(--surface);
}

.advisor-result-media {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.advisor-result-media img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Niche Dimension Checklist (service.html) & Reservation (zweite_wahl.html)
   ========================================================================== */
.checklist-item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.checklist-item-row:hover {
  border-color: var(--navy);
  background-color: var(--navy-soft);
}

.checklist-item-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--navy);
  flex-shrink: 0;
  cursor: pointer;
}

.dimension-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .dimension-inputs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Gallery Grid & Lightbox Trigger
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.gallery-item:hover {
  border-color: var(--fg);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background-color: var(--surface-subtle);
}

.gallery-caption {
  padding: 0.5rem 0.35rem 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

/* Newspaper & Press Story Split */
.press-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.press-image-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface-subtle);
}

/* Hiring Callout Banner */
.hiring-banner {
  background-color: var(--navy);
  color: var(--navy-fg);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hiring-banner h3 {
  color: var(--navy-fg);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.hiring-banner p {
  color: oklch(0.90 0.02 255);
  font-size: 0.95rem;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: oklch(0.18 0.015 255);
  color: oklch(0.94 0.005 255);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid oklch(0.28 0.02 255);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid oklch(0.28 0.02 255);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--surface);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.footer-brand-logo {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.footer-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-list a {
  color: oklch(0.86 0.01 255);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.35rem;
  margin-left: -0.35rem;
  border-radius: var(--radius-sm);
}

.footer-list a:hover {
  background-color: oklch(0.27 0.02 255);
  color: var(--surface);
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background-color: oklch(0.25 0.02 255);
  border: 1px solid oklch(0.34 0.02 255);
  color: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
}

.social-btn:hover {
  background-color: oklch(0.32 0.03 255);
  color: var(--surface);
}

.social-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: oklch(0.75 0.01 255);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: oklch(0.14 0.015 255 / 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-backdrop.is-open {
  display: flex;
}

.lightbox-dialog {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 920px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.lightbox-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}

.lightbox-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--surface-subtle);
  color: var(--fg);
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:hover {
  background-color: var(--surface-hover);
}

.lightbox-body {
  padding: 1.25rem;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 75vh;
}

.lightbox-body img {
  max-height: 68vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Google-Maps-Platzhalter (Karte erst nach Einwilligung laden)
   ========================================================================== */
.map-consent {
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface-subtle);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
}

.map-consent-inner {
  max-width: 30rem;
  margin: 1.5rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.map-consent-icon {
  color: var(--accent);
}

.map-consent-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.map-consent-text {
  font-size: 0.875rem;
  color: var(--muted);
}

.map-consent-text a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

.map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.map-consent.is-loaded {
  display: block;
  background-image: none;
}

.map-consent.is-loaded iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

/* ==========================================================================
   Rechtstexte (Datenschutzerklärung)
   ========================================================================== */
.legal-meta {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.legal-doc {
  justify-content: flex-start;
  gap: 0;
}

.legal-toc {
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.legal-toc ol {
  margin: 0.5rem 0 0;
  padding-left: 1.4rem;
  columns: 2 16rem;
  column-gap: 2rem;
}

.legal-toc li {
  padding: 0.12rem 0;
  break-inside: avoid;
}

.legal-section {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 6rem;
}

.legal-toc + .legal-section {
  border-top: 0;
}

.legal-section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.legal-section p,
.legal-section .pillar-list {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.legal-section > :last-child {
  margin-bottom: 0;
}

.legal-section .pillar-list {
  border-top: 0;
  padding-top: 0;
}

.legal-section a,
.legal-toc a {
  color: var(--navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.legal-callout {
  margin-bottom: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  background-color: var(--navy-soft);
  font-size: 0.9rem;
}

/* Sichtbarer Platzhalter für Angaben, die der Kunde noch liefern muss */
.legal-todo {
  display: inline-block;
  padding: 0 0.4rem;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 700;
}

.legal-todo::before {
  content: "Offen: ";
}

/* ==========================================================================
   Leistungs-Raster (Icon + Titel + Kurztext)
   ========================================================================== */
.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.75rem 2.5rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.service-item svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.service-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.service-item p {
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.service-grid-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 3rem;
}

/* Foto-Kacheln (Startseite: Balkonkraftwerk / Wallbox) */
.promo-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3.5rem;
}

.promo-tile {
  position: relative;
  isolation: isolate;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 2.5rem;
  background: rgb(20 6 9) center / cover no-repeat;
  color: #FFFFFF;
}

.promo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgb(20 6 9 / 0.62);
}

.promo-tile:nth-child(2)::before {
  background-color: var(--accent);
  opacity: 0.85;
}

.promo-tile .eyebrow,
.promo-tile h3,
.promo-tile p {
  color: #FFFFFF;
}

.promo-tile h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.promo-tile .btn {
  margin-top: 0.5rem;
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--accent);
}

.promo-tile .btn:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

/* Bild-/Text-Zeilen (Service-Seite: Details zu einzelnen Leistungen) */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-top: 4.5rem;
  scroll-margin-top: 7rem;
}

.feature-row.is-reversed .feature-media {
  order: 2;
}

.feature-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature-media > a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--surface);
}

.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-media img.is-contain {
  object-fit: contain;
}

.feature-media--trio > a:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.feature-media--trio > a:not(:first-child) {
  aspect-ratio: 4 / 3;
}

.feature-media--duo > a {
  aspect-ratio: 3 / 4;
}

.feature-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0.25rem 0 0.75rem;
}

.feature-copy > p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.feature-copy .pillar-list {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 1.5rem;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-tiles,
  .feature-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-row {
    gap: 1.75rem;
  }

  .feature-row.is-reversed .feature-media {
    order: 0;
  }
}

@media (max-width: 560px) {
  .promo-tile {
    min-height: 280px;
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

/* ==========================================================================
   Responsive Design (No Horizontal Overflow on Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .calculator-panel,
  .split-2col,
  .press-split {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

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

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

@media (max-width: 760px) {
  .utility-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .brand-logo-img {
    height: 46px;
    max-width: 195px;
  }

  .hero-usp-grid,
  .hero-photo-pair,
  .metrics-grid,
  .pillars-grid,
  .products-grid,
  .calc-form-grid,
  .form-grid-2,
  .brands-bar,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  /* Lange Button-Beschriftungen umbrechen statt seitlich überzulaufen */
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
}

/* ==========================================================================
   Küchen-Aufmaßblatt (Screen & Print Datasheet)
   ========================================================================== */
.aufmassblatt-sheet {
  margin-top: 1.5rem;
  background-color: var(--surface);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.aufmassblatt-sheet.is-collapsed {
  display: none;
}

.aufmassblatt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.aufmassblatt-stamp {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  border: 1px dashed var(--navy);
  border-radius: var(--radius-sm);
  background-color: var(--navy-soft);
  color: var(--navy);
  font-size: 0.76rem;
  line-height: 1.45;
  flex-shrink: 0;
}

.aufmassblatt-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: start;
}

.aufmassblatt-diagram-box {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

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

.aufmassblatt-fields {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.aufmassblatt-summary-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  padding: 0.85rem 1rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.aufmassblatt-summary-table > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed var(--border);
}

.aufmassblatt-summary-table strong {
  color: var(--navy);
}

.aufmassblatt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

/* Muss nach den Aufmaßblatt-Grundregeln stehen, sonst wird es überschrieben */
@media (max-width: 760px) {
  .aufmassblatt-body-grid,
  .aufmassblatt-summary-table {
    grid-template-columns: minmax(0, 1fr);
  }

  .aufmassblatt-stamp {
    flex-shrink: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media print {
  .utility-bar,
  .site-header,
  .site-footer,
  .lightbox-backdrop,
  .no-print,
  main > section:not(#nischenmass-checkliste) {
    display: none !important;
  }

  body,
  .section.section-alt {
    background: #ffffff !important;
    color: #000000 !important;
  }

  #nischenmass-checkliste {
    padding: 0 !important;
    border: none !important;
  }

  .calculator-panel,
  .aufmassblatt-sheet {
    box-shadow: none !important;
    border-color: #222222 !important;
    break-inside: avoid;
  }

  .aufmassblatt-sheet.is-collapsed {
    display: block !important;
  }
}

/* ===== Redesign v2: Logo, WhatsApp, Schwerpunkte, Hersteller ===== */
:root{--wa:#1faa52;--wa-dark:#168a41;}
.brand-logo-img{height:64px;max-width:140px}
.footer-logo-img{height:64px;max-width:140px}
.hero-banner-frame{background:#fff}
a.utility-wa{color:var(--wa-dark)}
.wa-chip{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.45rem .9rem;border-radius:var(--radius-sm);background:var(--wa);color:#fff;font-weight:700;font-size:.9rem}
.wa-chip:hover{background:var(--wa-dark);color:#fff}
.wa-hero{display:flex;align-items:center;gap:1rem;margin:1.25rem 0 1rem;padding:1rem 1.25rem;border-radius:14px;background:linear-gradient(135deg,#25c161,#128a3f);color:#fff;box-shadow:0 10px 26px -8px rgba(18,138,63,.55);text-decoration:none;transition:transform .15s,box-shadow .15s}
.wa-hero:hover{transform:translateY(-2px);color:#fff;box-shadow:0 14px 30px -8px rgba(18,138,63,.65)}
.wa-hero-icon{display:flex;flex:none;background:rgba(255,255,255,.18);border-radius:50%;padding:.55rem;animation:wa-pulse 2.4s infinite}
.wa-hero-text{display:flex;flex-direction:column;line-height:1.25}
.wa-hero-text small{font-size:.85rem;opacity:.95}
.wa-hero-text strong{font-size:clamp(1.6rem,4vw,2.2rem);font-weight:800;letter-spacing:.01em}
.wa-hero-text em{font-style:normal;font-size:.85rem;opacity:.95}
@keyframes wa-pulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.55)}70%{box-shadow:0 0 0 14px rgba(255,255,255,0)}100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}}
.wa-float{position:fixed;right:16px;bottom:16px;z-index:90;display:flex;align-items:center;gap:.6rem;padding:.7rem 1.1rem .7rem .85rem;border-radius:999px;background:var(--wa);color:#fff;box-shadow:0 10px 24px -6px rgba(0,0,0,.4);text-decoration:none}
.wa-float:hover{background:var(--wa-dark);color:#fff}
.wa-float-text{display:flex;flex-direction:column;line-height:1.1}
.wa-float-text small{font-size:.68rem;opacity:.9}
.wa-float-text strong{font-size:1rem}
.btn-wa{background:var(--wa);border-color:var(--wa);color:#fff;display:inline-flex;align-items:center;gap:.45rem}
.btn-wa:hover{background:var(--wa-dark);border-color:var(--wa-dark);color:#fff}
.btn-wa svg{width:20px;height:20px}
.hero-photo-pair--even{grid-template-columns:1fr 1fr}
.hero-photo-pair--even img{width:100%;height:190px;object-fit:cover}
.hero-photo-pair--even img.is-illu{object-fit:contain;background:#eef4fb}
.cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.cat-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md);transition:transform .15s,box-shadow .15s}
.cat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.cat-media img{display:block;width:100%;height:auto}
.cat-body{padding:1.1rem 1.25rem;flex:1}
.cat-body h3{font-size:1.4rem;margin:.6rem 0 .4rem}
.cat-actions{display:flex;flex-wrap:wrap;gap:.6rem;padding:0 1.25rem 1.25rem}
.brand-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem}
.brand-group h3{font-size:1.05rem;margin-bottom:.8rem}
.brand-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
.brand-chip{display:flex;align-items:center;justify-content:center;min-height:64px;padding:.5rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);font-weight:800;font-size:1.05rem;letter-spacing:.02em;color:var(--navy);text-align:center}
.brand-note{margin-top:1.25rem;font-size:.8rem;color:var(--muted)}
.feature-brands{margin:1rem 0}.feature-brands>span{display:block;font-size:.78rem;font-weight:700;text-transform:uppercase;color:var(--muted);margin-bottom:.4rem}
.feature-media img.is-illu{width:100%;height:auto;border-radius:var(--radius-md)}
.product-media--illu{background:#f3f6fa}.product-media--illu img{width:100%;height:auto;object-fit:contain}
@media (max-width:1024px){.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.cat-grid,.brand-groups{grid-template-columns:minmax(0,1fr)}.wa-chip span{display:none}.wa-hero{padding:.85rem 1rem}.wa-float-text small{display:none}.brand-logo-img{height:52px}}
.feature-media>a{display:block;width:100%}

.fee-band{background:var(--navy-soft);border-top:1px solid var(--border);padding:1rem 0;font-size:.88rem;color:var(--fg)}
.fee-note-inline{margin-top:.75rem;font-size:.8rem;color:var(--muted);line-height:1.5}

.form-mail-note{margin-top:.8rem;font-size:.8rem;color:var(--muted);line-height:1.5;max-width:68ch}
.form-success{display:none;margin-top:.8rem;padding:.75rem 1rem;border-radius:var(--radius-sm);background:var(--success-soft);border:1px solid oklch(0.82 0.08 150);font-weight:600;font-size:.9rem;max-width:68ch}
.form-success.is-visible{display:block}
.section-subtitle,.hero-lead,.feature-copy p,.pillar-desc{max-width:68ch}

.map-consent{min-height:620px;align-items:flex-end;justify-content:flex-start;position:relative;background-image:url(../img/anfahrt-vorschau.svg);background-size:cover;background-position:center}
.map-consent-inner{margin:1rem;max-width:26rem;padding:1.1rem 1.25rem;background-color:rgba(255,255,255,.95)}
.map-consent .map-attrib{position:absolute;top:.6rem;right:.6rem;z-index:1;font-size:.7rem;background:rgba(255,255,255,.88);color:var(--fg);padding:.2rem .5rem;border-radius:3px}
.map-consent.is-loaded{background-image:none}.map-consent.is-loaded .map-attrib{display:none}
@media (max-width:760px){.map-consent{min-height:560px;justify-content:center}}

.faq-list{display:grid;gap:.6rem;max-width:68ch}
.faq-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:.8rem 1rem}
.faq-item summary{cursor:pointer;font-weight:700}
.faq-item p{margin-top:.6rem;color:var(--muted)}
.product-media--foto{background:#fff;display:flex;align-items:center;justify-content:center;min-height:300px;padding:1rem}
.product-media--foto a{display:flex;align-items:center;justify-content:center}
.product-media--foto img{width:auto;max-width:100%;max-height:280px;height:auto;object-fit:contain}
