/* ============================================================
   MallWall — site stylesheet
   ============================================================
   Single source of truth for the brochure. Tokens lifted from the
   MallWall Design System (colors_and_type.css). Every page links
   this file; no inline style="..." attributes anywhere.
   Fonts are loaded via <link> tags in each page's <head>, not via
   @import here (avoids serializing the CSS request waterfall).
   ============================================================ */

/* ----- Tokens ----- */
:root {
  /* Brand */
  --brand-dark:       #1A1D25;
  --brand-mid:        #2B3044;
  --brand-surface:    #353A52;

  /* Accent */
  --accent:           #E8501A;
  --accent-hover:     #C83E10;
  --accent-light:     #FF7448;
  --accent-tint:      #FFF2EE;
  --accent-tint-mid:  #FFE0D5;

  /* Neutrals */
  --gray-50:          #F6F4EF;
  --gray-100:         #EAE8E2;
  --gray-200:         #D8D4CC;
  --gray-400:         #9D9890;
  --gray-500:         #7A756C;
  --gray-600:         #5C5850;
  --gray-800:         #3A3733;
  --gray-900:         #1E1C19;

  --white:            #FFFFFF;
  --black:            #0D0D0D;

  /* Semantic */
  --color-success:    #18A86B;
  --color-success-bg: #EAF9F2;
  --color-warning:    #F5A623;
  --color-warning-bg: #FEF6E7;
  --color-error:      #D93025;
  --color-error-bg:   #FDECEA;
  --color-info:       #2B7FD4;
  --color-info-bg:    #EBF4FF;

  /* Surfaces */
  --bg-page:          var(--gray-50);
  --bg-card:          var(--white);
  --bg-dark:          var(--brand-dark);
  --bg-dark-card:     var(--brand-mid);

  /* Text */
  --text-primary:     var(--gray-900);
  --text-secondary:   var(--gray-600);
  --text-tertiary:    var(--gray-400);
  --text-on-dark:     var(--white);
  --text-on-dark-dim: rgba(255,255,255,.6);
  --text-accent:      var(--accent);
  --text-link:        var(--accent);

  /* Borders */
  --border-default:   var(--gray-200);
  --border-strong:    var(--gray-400);
  --border-on-dark:   rgba(255,255,255,.12);
  --border-focus:     var(--accent);

  /* Shadows */
  --shadow-low:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-mid:    0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-high:   0 12px 32px rgba(0,0,0,.16), 0 4px 8px rgba(0,0,0,.08);
  --shadow-focus:  0 0 0 3px rgba(232,80,26,.25);

  /* Radius */
  --radius-sm:     4px;
  --radius-md:     6px;
  --radius-lg:     12px;
  --radius-xl:     20px;
  --radius-pill:   999px;

  /* Spacing — 8px grid */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;

  /* Type */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', 'Arial', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Menlo', monospace;

  --text-d1-size:   72px;
  --text-d1-lh:     1.05;
  --text-d1-ls:     -0.02em;
  --text-d1-weight: 700;

  --text-d2-size:   52px;
  --text-d2-lh:     1.08;
  --text-d2-ls:     -0.015em;
  --text-d2-weight: 700;

  --text-d3-size:   38px;
  --text-d3-lh:     1.12;
  --text-d3-ls:     -0.01em;
  --text-d3-weight: 600;

  --text-h1-size:   30px;
  --text-h1-lh:     1.25;
  --text-h1-weight: 600;
  --text-h2-size:   24px;
  --text-h2-lh:     1.3;
  --text-h2-weight: 600;
  --text-h3-size:   20px;
  --text-h3-lh:     1.35;
  --text-h3-weight: 600;
  --text-h4-size:   17px;
  --text-h4-lh:     1.4;
  --text-h4-weight: 600;

  --text-body-lg:   17px;
  --text-body:      15px;
  --text-body-sm:   13px;
  --text-body-xs:   12px;
  --text-body-lh:   1.6;

  --text-label-size:   13px;
  --text-label-weight: 600;
  --text-label-ls:     0.04em;

  /* Motion */
  --ease-default:  cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:      cubic-bezier(0.0, 0, 0.2, 1);
  --dur-fast:      150ms;
  --dur-mid:       250ms;
  --dur-slow:      350ms;

  /* Layout */
  --container-max:    1200px;
  --container-wide:   1440px;
  --container-narrow: 760px;

  /* Sketch-Theming (used by Bauzeichnung-SVG component) */
  --sketch-stroke-width: 1.5px;
  --sketch-dim-color:    var(--accent);
  --sketch-text-color:   var(--gray-600);
}

/* On dark surfaces, the sketch component re-themes itself: */
.cockpit-sidebar,
.mobile-sheet,
.mail-on-dark {
  --sketch-dim-color:  var(--accent-light);
  --sketch-text-color: var(--gray-200);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}

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

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

p { margin: 0 0 var(--space-4); }

/* ----- Type helpers ----- */
.d1 { font-family: var(--font-display); font-size: var(--text-d1-size); line-height: var(--text-d1-lh); letter-spacing: var(--text-d1-ls); font-weight: var(--text-d1-weight); }
.d2 { font-family: var(--font-display); font-size: var(--text-d2-size); line-height: var(--text-d2-lh); letter-spacing: var(--text-d2-ls); font-weight: var(--text-d2-weight); }
.d3 { font-family: var(--font-display); font-size: var(--text-d3-size); line-height: var(--text-d3-lh); letter-spacing: var(--text-d3-ls); font-weight: var(--text-d3-weight); }

.body-lg { font-size: var(--text-body-lg); }
.body-sm { font-size: var(--text-body-sm); }

.label {
  font-family: var(--font-body);
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-ls);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.label-accent { color: var(--accent); }
.label-on-dark { color: var(--accent-light); }

.text-secondary { color: var(--text-secondary); }
.text-tertiary  { color: var(--text-tertiary); }

/* ----- Layout primitives ----- */
.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}
@media (min-width: 768px) {
  .wrap { padding-left: var(--space-10); padding-right: var(--space-10); }
}

/* ----- Header ----- */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
}
.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}
.site-header .logo svg { height: 32px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-body-sm);
  font-weight: 500;
}
.site-nav a {
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease-default);
}
.site-nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--text-primary);
}
.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.site-nav a.cta {
  background: var(--accent);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease-default);
}
.site-nav a.cta:hover {
  background: var(--accent-hover);
  color: var(--white);
  text-decoration: none;
}
.site-nav a.cta[aria-current="page"]::after { display: none; }

@media (max-width: 720px) {
  .site-nav { gap: var(--space-4); flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { font-size: var(--text-body-xs); }
  .site-nav a.cta { padding: var(--space-2) var(--space-4); }
}

/* ----- Hero ----- */
.hero {
  background: var(--brand-dark);
  color: var(--text-on-dark);
  padding: var(--space-20) 0 var(--space-24);
}
.hero .eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-4);
  color: var(--accent-light);
  font-size: var(--text-label-size);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, var(--text-d1-size));
  line-height: var(--text-d1-lh);
  letter-spacing: var(--text-d1-ls);
  font-weight: var(--text-d1-weight);
  color: var(--text-on-dark);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero .hero-slogan {
  margin: var(--space-5) 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 30px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--accent-light);
  max-width: 26ch;
  text-wrap: balance;
}
.hero .lede {
  margin: var(--space-6) 0 0;
  max-width: 56ch;
  font-size: var(--text-body-lg);
  line-height: 1.55;
  color: var(--text-on-dark-dim);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-default),
    border-color var(--dur-fast) var(--ease-default),
    color var(--dur-fast) var(--ease-default);
}
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-body-lg); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  text-decoration: none;
}

.btn-on-dark-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-on-dark-secondary:hover {
  background: rgba(255,255,255,0.16);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--brand-dark);
  border-color: var(--border-default);
}
.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--text-secondary);
  color: var(--brand-dark);
  text-decoration: none;
}

/* Linkartiger Button (z. B. „← Anderes Produkt wählen") */
.btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: var(--accent-hover); }

/* ----- Page header (compact hero for non-homepage pages) ----- */
.page-header {
  background: var(--brand-dark);
  color: var(--text-on-dark);
  padding: var(--space-12) 0 var(--space-12);
}
.page-header .eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-3);
  color: var(--accent-light);
  font-size: var(--text-label-size);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, var(--text-d2-size));
  line-height: var(--text-d2-lh);
  letter-spacing: var(--text-d2-ls);
  font-weight: var(--text-d2-weight);
  color: var(--text-on-dark);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.page-header .lede {
  margin: var(--space-5) 0 0;
  max-width: 62ch;
  font-size: var(--text-body-lg);
  line-height: 1.55;
  color: var(--text-on-dark-dim);
}

/* ----- Sections ----- */
.section {
  padding: var(--space-16) 0 var(--space-20);
}
.section--alt {
  background: var(--white);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}
.section--narrow > .wrap { max-width: var(--container-narrow); }

.section-head {
  margin-bottom: var(--space-12);
  max-width: 62ch;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-size: var(--text-label-size);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.section-head .lead {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  margin: 0;
}

/* ----- Card grid ----- */
.card-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 720px) {
  .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--dur-fast) var(--ease-default), transform var(--dur-fast) var(--ease-default);
}
.card:hover {
  box-shadow: var(--shadow-mid);
  transform: translateY(-1px);
}
.card .card-meta {
  font-family: var(--font-body);
  font-size: var(--text-label-size);
  font-weight: 600;
  letter-spacing: var(--text-label-ls);
  text-transform: uppercase;
  color: var(--accent);
}
.card h3 {
  font-family: var(--font-body);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-lh);
  font-weight: var(--text-h3-weight);
  color: var(--brand-dark);
  margin: 0;
}
.card p {
  color: var(--text-secondary);
  margin: 0;
}
.card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text-secondary);
}
.card ul li { margin-bottom: var(--space-1); }

.card-thumb {
  background: var(--gray-100);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-body-xs);
}

/* ----- Forms ----- */
fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-8);
}
legend {
  font-family: var(--font-body);
  font-size: var(--text-h4-size);
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: var(--space-4);
  padding: 0;
}
.form-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 720px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-row label {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.form-row .hint {
  font-size: var(--text-body-xs);
  color: var(--text-secondary);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color var(--dur-fast) var(--ease-default), box-shadow var(--dur-fast) var(--ease-default);
}
input:hover, textarea:hover, select:hover {
  border-color: var(--border-strong);
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
textarea {
  resize: vertical;
  min-height: 140px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-2);
}
.form-actions .small {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

/* ----- Custom-Autocomplete (Center-/Standort-Feld) -----
   Ersetzt den nativen <datalist>-Stack: kein Browser-Default-Pfeil,
   keine Vorschläge beim Klick/Focus, Vorschläge nur ab Eingabe, Fallback-
   Trigger „Center nicht dabei" als letzter Eintrag der Liste. */
.center-autocomplete {
  position: relative;
  width: 100%;
}
.center-autocomplete > input {
  width: 100%;
}
.center-autocomplete-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.center-autocomplete-item {
  appearance: none;
  background: transparent;
  border: 0;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font: inherit;
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
  transition: background var(--dur-fast) var(--ease-default);
}
.center-autocomplete-item:last-child { border-bottom: 0; }
.center-autocomplete-item:hover,
.center-autocomplete-item:focus-visible {
  background: var(--bg-hover, rgba(232,80,26,0.06));
  outline: none;
}
.center-autocomplete-add {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--accent);
  border-top: 1.5px solid var(--border-default);
}
.center-autocomplete-add .plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* ----- Inline-Kalender-Picker (Termin-Schritt) -----
   Ersetzt nativen <input type="date"> 02.05.2026 (Inhaber-Doktrin). Brand-
   Look: Warm-White-Background, Brand-Dark-Text, Accent-Orange als Selected,
   Wochenenden klickbar mit leichtem Pastell-Wash als Hinweis. */
.date-picker {
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
}
.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.date-picker-month {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.date-picker-nav {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 12px;
  font-size: 18px;
  line-height: 1;
  color: var(--text-secondary);
  border-radius: var(--radius-sm, 4px);
  transition: background var(--dur-fast) var(--ease-default), color var(--dur-fast) var(--ease-default);
}
.date-picker-nav:hover {
  background: var(--bg-hover, rgba(232,80,26,0.06));
  color: var(--text-primary);
}
.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}
.date-picker-weekdays span {
  text-align: center;
  font-size: var(--text-body-xs);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.date-picker-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: var(--text-body-sm);
  color: var(--text-primary);
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-default);
}
.date-picker-cell:hover:not(.is-past):not(.is-empty):not(.is-selected) {
  background: var(--bg-hover, rgba(232,80,26,0.08));
}
.date-picker-cell.is-weekend {
  background: var(--bg-subtle, rgba(0,0,0,0.03));
}
.date-picker-cell.is-past {
  color: var(--text-disabled, rgba(0,0,0,0.25));
  cursor: not-allowed;
}
.date-picker-cell.is-today {
  box-shadow: inset 0 0 0 1px var(--border-default);
}
.date-picker-cell.is-selected {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
}
.date-picker-cell.is-empty {
  cursor: default;
  pointer-events: none;
}
.date-picker-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.date-picker-footer .k {
  font-size: var(--text-body-xs);
  color: var(--text-secondary);
}
.date-picker-footer .v {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* ----- Prose (legal pages, long-form copy) ----- */
.prose {
  color: var(--text-primary);
  line-height: 1.7;
}
.prose > * + * { margin-top: var(--space-4); }
.prose h2 {
  font-family: var(--font-body);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
  font-weight: var(--text-h2-weight);
  color: var(--brand-dark);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-body);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-lh);
  font-weight: var(--text-h3-weight);
  color: var(--brand-dark);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.prose h4 {
  font-family: var(--font-body);
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  font-weight: var(--text-h4-weight);
  color: var(--brand-dark);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.prose p { margin: 0 0 var(--space-4); }
.prose ul, .prose ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.4em;
}
.prose li { margin-bottom: var(--space-2); }
.prose strong { color: var(--brand-dark); }
.prose hr {
  border: 0;
  border-top: 1px solid var(--border-default);
  margin: var(--space-8) 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: var(--text-body-sm);
}
.prose table th,
.prose table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-default);
  text-align: left;
  vertical-align: top;
}
.prose table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--brand-dark);
}
.prose blockquote {
  border-left: 3px solid var(--border-default);
  padding-left: var(--space-5);
  color: var(--text-secondary);
  margin: var(--space-5) 0;
}

/* ----- Note callout (Entwurf, work-in-progress, etc.) ----- */
.note {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  font-size: var(--text-body-sm);
}
.note strong { display: block; margin-bottom: var(--space-2); color: var(--brand-dark); }
.note p { margin: 0; }
.note p + p { margin-top: var(--space-2); }

/* ----- Contact info block ----- */
.contact-info {
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-body);
  margin: 0 0 var(--space-8);
}
.contact-info dt {
  font-size: var(--text-label-size);
  font-weight: 600;
  letter-spacing: var(--text-label-ls);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}
.contact-info dd {
  margin: 0;
  color: var(--text-primary);
}

/* ----- Footer (Brand-Dark per Visual-Design-Spec §Footer) ----- */
.site-footer {
  background: var(--brand-dark);
  color: var(--text-on-dark-dim);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-12) 0 var(--space-12);
  font-size: var(--text-body-sm);
}
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  margin-bottom: var(--space-5);
}
.site-footer .row + .row {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-5);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.footer-nav a { color: var(--white); }
.footer-nav a:hover { color: var(--accent-light); text-decoration: none; }

/* ============================================================
   Header — Mobile-Drawer + Lang-Toggle
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}
.lang-toggle a { color: var(--text-secondary); }
.lang-toggle a[aria-current="true"] { color: var(--text-primary); font-weight: 600; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}
.mobile-menu-toggle:hover { background: var(--gray-100); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 80vw;
  max-width: 360px;
  height: 100dvh;
  background: var(--brand-mid);
  color: var(--text-on-dark);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-high);
  transform: translateX(100%);
  transition: transform var(--dur-mid) var(--ease-default);
  z-index: 1000;
  overflow-y: auto;
}
.mobile-drawer[aria-hidden="false"] { transform: translateX(0); }
.mobile-drawer .drawer-close {
  background: none;
  border: none;
  color: var(--white);
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-10); }
.mobile-drawer nav a { color: var(--white); font-size: var(--text-body-lg); padding: var(--space-3) 0; }
.mobile-drawer nav a:hover { color: var(--accent-light); text-decoration: none; }
.mobile-drawer nav .legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-drawer nav .legal a { font-size: var(--text-body-sm); color: var(--text-on-dark-dim); }

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-default);
  z-index: 999;
}
.mobile-drawer-backdrop[aria-hidden="false"] { opacity: 1; pointer-events: auto; }

/* ============================================================
   Configurator — page layout (Desktop split + Mobile stacked)
   ============================================================ */
.config-layout {
  display: grid;
  gap: var(--space-8);
  padding-top: var(--space-10);
  padding-bottom: var(--space-20);
}
@media (min-width: 1000px) {
  .config-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }
}
.config-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-width: 0;
}
@media (max-width: 999px) {
  /* Make room for the sticky footer bar */
  .config-main { padding-bottom: var(--space-20); }
}

/* Configurator section — each step appears progressively */
.config-section {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  scroll-margin-top: var(--space-10);
}
.config-section[hidden] { display: none; }
.config-section .section-eyebrow {
  display: inline-block;
  font-size: var(--text-label-size);
  font-weight: 600;
  letter-spacing: var(--text-label-ls);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}
.config-section h2 {
  font-family: var(--font-body);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
  font-weight: var(--text-h2-weight);
  color: var(--brand-dark);
  margin: 0 0 var(--space-2);
}
.config-section .section-help {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  margin: 0 0 var(--space-6);
  max-width: 60ch;
}

/* ============================================================
   Wandtyp & Choice cards (3-column variant)
   ============================================================ */
.choice-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) { .choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.choice-card {
  background: var(--white);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease-default),
              background var(--dur-fast) var(--ease-default),
              box-shadow var(--dur-fast) var(--ease-default),
              transform var(--dur-fast) var(--ease-default);
  min-height: 140px;
}
.choice-card:hover {
  box-shadow: var(--shadow-mid);
  transform: translateY(-2px);
}
.choice-card[aria-pressed="true"],
.choice-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.choice-card[aria-pressed="true"] .choice-icon { color: var(--accent); }
.choice-card .choice-icon {
  width: 48px;
  height: 48px;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Produkt-Tile-Variante: breite Piktogramm-Szenen im v4-Wireframe-Stil
   (140×90 viewBox, illustrative Darstellung statt Icon). Wird in
   Schritt 0 des Konfigurators für die 6 Produkt-Karten verwendet. */
.choice-card--produkt {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.choice-card--produkt .choice-icon {
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 140 / 90;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-3) var(--space-4);
  color: var(--brand-dark);
  transition: background var(--dur-fast) var(--ease-default);
}
.choice-card--produkt .choice-icon svg {
  width: 100%;
  height: 100%;
  max-width: 200px;
  display: block;
}
.choice-card--produkt[aria-pressed="true"] .choice-icon,
.choice-card--produkt.is-selected .choice-icon {
  background: var(--accent-tint-mid);
  color: var(--brand-dark);
}
.choice-card--produkt .choice-title,
.choice-card--produkt .choice-sub {
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
.choice-card--produkt .choice-title { padding-top: var(--space-4); }
.choice-card--produkt .choice-sub   { padding-bottom: var(--space-5); padding-top: var(--space-2); }

/* Illustrated-Variante: kompaktere v4-Wireframe-Szenen für die geteilten
   Antwort-Karten (Aufmaß / Druckdaten / Termin). Kleiner als Produkt-Tiles,
   damit drei Karten nebeneinander noch lesbar bleiben. */
.choice-card--illustrated { padding: 0; overflow: hidden; gap: 0; }
.choice-card--illustrated .choice-icon {
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 140 / 90;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-2) var(--space-3);
  color: var(--brand-dark);
  transition: background var(--dur-fast) var(--ease-default);
}
.choice-card--illustrated .choice-icon svg {
  width: 100%;
  height: 100%;
  max-width: 180px;
  display: block;
  margin: 0 auto;
}
.choice-card--illustrated[aria-pressed="true"] .choice-icon,
.choice-card--illustrated.is-selected .choice-icon {
  background: var(--accent-tint-mid);
  color: var(--brand-dark);
}
.choice-card--illustrated .choice-title,
.choice-card--illustrated .choice-sub {
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
.choice-card--illustrated .choice-title { padding-top: var(--space-4); }
.choice-card--illustrated .choice-sub   { padding-bottom: var(--space-5); padding-top: var(--space-2); }
.choice-card .choice-title {
  font-family: var(--font-body);
  font-size: var(--text-h4-size);
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0;
}
.choice-card .choice-sub {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   Maße — input row with stepper buttons + unit toggle
   ============================================================ */
.masse-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .masse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.masse-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.masse-field label {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.masse-input-row {
  display: inline-flex;
  align-items: stretch;
  gap: var(--space-2);
}
.masse-input-row input[type="number"],
.masse-input-row input[inputmode="decimal"] {
  flex: 1;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.stepper-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background var(--dur-fast) var(--ease-default);
}
.stepper-btn:hover { background: var(--gray-100); }
.stepper-btn:active { background: var(--accent-tint); }

.unit-toggle {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2px;
  font-size: var(--text-body-sm);
  font-weight: 600;
}
.unit-toggle button {
  background: none;
  border: none;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: calc(var(--radius-md) - 2px);
  font: inherit;
  min-width: 44px;
}
.unit-toggle button[aria-pressed="true"] {
  background: var(--white);
  color: var(--brand-dark);
  box-shadow: var(--shadow-low);
}

/* Inline-Variante des Einheit-Togglers — direkt über jedem Maße-Block */
.unit-toggle-inline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.unit-toggle-inline .hint {
  margin: 0;
}

/* Maße-Input mit Einheit-Suffix (m / cm / mm) im Eingabefeld rechts */
.masse-input-with-unit {
  position: relative;
  display: block;
  width: 100%;
}
.masse-input-with-unit input {
  width: 100%;
  padding: var(--space-3) 56px var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font: inherit;
  font-variant-numeric: tabular-nums;
  background: var(--white);
}
.masse-input-with-unit input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.masse-input-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--text-body-sm);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

/* Button-Gruppen ersetzen Dropdown-Auswahlen */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.btn-group button {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-primary);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-default),
              border-color var(--dur-fast) var(--ease-default),
              color var(--dur-fast) var(--ease-default);
  min-height: 44px;
  text-align: left;
}
.btn-group button:hover {
  background: var(--gray-100);
  border-color: var(--text-secondary);
}
.btn-group button[aria-pressed="true"] {
  background: var(--brand-dark);
  color: var(--text-on-dark);
  border-color: var(--brand-dark);
}
.btn-group button[aria-pressed="true"]:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Schaufenster: Karten für mehrere Fenster */
.fenster-card {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
}
.fenster-card:first-of-type { margin-top: var(--space-2); }
.fenster-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.fenster-card-title {
  margin: 0;
  font-size: var(--text-body, 16px);
  font-weight: 600;
  color: var(--brand-dark);
}
.btn-remove {
  background: none;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font: inherit;
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  cursor: pointer;
}
.btn-remove:hover {
  border-color: var(--color-error, #c0392b);
  color: var(--color-error, #c0392b);
}

/* Multi-Fenster-Skizze (mehrere Rechtecke gestapelt) */
.multi-fenster-skizze {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.multi-fenster-skizze svg { max-width: 100%; height: auto; }
.multi-fenster-meta {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Inline-Skizze ganz unten — erst nach erfolgreichem Absenden sichtbar */
.final-sketch-container {
  margin-top: var(--space-3);
  padding: var(--space-5);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  min-height: 240px;
}
.final-sketch-container svg { max-width: 100%; height: auto; }

/* ============================================================
   Sticky-Sidebar (Brand-Dark "Cockpit") — Desktop
   ============================================================ */
.cockpit-sidebar {
  position: sticky;
  top: var(--space-6);
  background: var(--brand-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-mid);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-height: calc(100dvh - var(--space-12));
  overflow-y: auto;
}
@media (max-width: 999px) {
  .cockpit-sidebar { display: none; }
}

.cockpit-sidebar .center-input label {
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-dim);
  display: block;
  margin-bottom: var(--space-2);
}
.cockpit-sidebar .center-input input {
  width: 100%;
  background: var(--brand-mid);
  border: 1px solid var(--brand-surface);
  color: var(--white);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font: inherit;
}
.cockpit-sidebar .center-input input::placeholder { color: rgba(255,255,255,0.45); }
.cockpit-sidebar .center-input .hint {
  font-size: var(--text-body-xs);
  color: var(--text-on-dark-dim);
  margin-top: var(--space-2);
}

.cockpit-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0;
}

.cockpit-price-block .label-eyebrow {
  font-size: var(--text-label-size);
  font-weight: 600;
  letter-spacing: var(--text-label-ls);
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  display: block;
  margin-bottom: var(--space-2);
}
.cockpit-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.cockpit-price .amount {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.cockpit-price .band {
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.6);
}
.cockpit-price-note {
  font-size: var(--text-body-xs);
  color: rgba(255,255,255,0.5);
  margin: var(--space-2) 0 0;
}

.cockpit-breakdown summary {
  cursor: pointer;
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-dim);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}
.cockpit-breakdown summary::-webkit-details-marker { display: none; }
.cockpit-breakdown summary::after { content: '▾'; transition: transform var(--dur-fast) var(--ease-default); }
.cockpit-breakdown[open] summary::after { transform: rotate(180deg); }
.cockpit-breakdown summary:hover { color: var(--accent-light); }

.breakdown-list {
  list-style: none;
  padding: var(--space-3) 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
}
.breakdown-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  color: rgba(255,255,255,0.72);
}
.breakdown-list li .v { color: var(--white); font-variant-numeric: tabular-nums; }

.cockpit-sketch {
  background: var(--gray-900);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.cockpit-sketch svg { width: 100%; height: auto; color: var(--white); }
.cockpit-sketch .placeholder {
  color: rgba(255,255,255,0.4);
  font-size: var(--text-body-sm);
  text-align: center;
}

.cockpit-summary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
}
.cockpit-summary li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
  color: rgba(255,255,255,0.72);
}
.cockpit-summary li .k { color: var(--text-on-dark-dim); }
.cockpit-summary li .v { color: var(--white); }
.cockpit-summary li button {
  background: none;
  border: none;
  color: var(--accent-light);
  cursor: pointer;
  padding: var(--space-1);
  font-size: 14px;
}
.cockpit-summary li button:hover { color: var(--white); }

/* ============================================================
   Mobile Sticky-Footer-Bar + Pull-up-Sheet
   ============================================================ */
.mobile-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-dark);
  color: var(--text-on-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-3) var(--space-5);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  z-index: 900;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
}
@media (max-width: 999px) {
  .mobile-footer-bar { display: flex; }
}
.mobile-footer-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: var(--space-2);
  margin: -2px;
  text-align: left;
}
.mobile-footer-price .amount {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mobile-footer-price .band {
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.55);
}
.mobile-footer-bar .ghost-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font: inherit;
  font-weight: 600;
  font-size: var(--text-body-sm);
  cursor: pointer;
  height: 44px;
}
.mobile-footer-bar .ghost-btn:hover { background: rgba(255,255,255,0.08); }

/* When in lead-capture step, the right-side button becomes the submit */
.mobile-footer-bar .submit-btn {
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-5);
  font: inherit;
  font-weight: 600;
  font-size: var(--text-body-sm);
  cursor: pointer;
  height: 44px;
}
.mobile-footer-bar .submit-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-default);
  z-index: 950;
}
.mobile-sheet-backdrop[aria-hidden="false"] { opacity: 1; pointer-events: auto; }

.mobile-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-4) var(--space-6) var(--space-8);
  transform: translateY(100%);
  transition: transform var(--dur-mid) var(--ease-default);
  z-index: 951;
  max-height: 80vh;
  overflow-y: auto;
}
.mobile-sheet[data-snap="30"] { transform: translateY(70%); }
.mobile-sheet[data-snap="80"] { transform: translateY(20%); }
.mobile-sheet .drag-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-500);
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-5);
}
@media (min-width: 1000px) {
  .mobile-footer-bar,
  .mobile-sheet,
  .mobile-sheet-backdrop { display: none !important; }
}

/* ============================================================
   Filter chips (used on /referenzen)
   ============================================================ */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.filter-chip {
  border: 1.5px solid var(--border-default);
  background: var(--white);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: var(--text-body-sm);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-default),
              color var(--dur-fast) var(--ease-default),
              background var(--dur-fast) var(--ease-default);
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.filter-chip[aria-pressed="true"] {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: var(--white);
}

/* ============================================================
   Reference gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-tile {
  position: relative;
  display: block;
  background: var(--gray-100);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-default),
              box-shadow var(--dur-fast) var(--ease-default);
}
.gallery-tile:hover { transform: scale(1.02); box-shadow: var(--shadow-mid); }
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-tile .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: var(--white);
  font-size: var(--text-body-sm);
}
.gallery-tile .caption .center {
  display: block;
  font-weight: 600;
  font-size: var(--text-h4-size);
  line-height: 1.2;
}

.empty-state {
  background: var(--white);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  text-align: center;
}
.empty-state h3 {
  font-family: var(--font-body);
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  color: var(--brand-dark);
  margin: 0 0 var(--space-3);
}
.empty-state p { color: var(--text-secondary); margin: 0 0 var(--space-5); }

/* ============================================================
   Story sections (ueber-uns) — alternating image / text
   ============================================================ */
.story-section {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .story-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-12);
  }
  .story-section.reverse { direction: rtl; }
  .story-section.reverse > * { direction: ltr; }
}
.story-section + .story-section { margin-top: var(--space-16); }

.story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 var(--space-4);
}
.story-text p { font-size: var(--text-body-lg); color: var(--text-primary); line-height: 1.6; }
.story-image {
  background: var(--gray-100);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: var(--text-body-sm);
  font-family: var(--font-mono);
  overflow: hidden;
}
.story-image img { width: 100%; height: 100%; object-fit: cover; }

.story-closing {
  background: var(--brand-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  margin-top: var(--space-16);
}
.story-closing h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--space-4);
}
.story-closing p {
  font-size: var(--text-body-lg);
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
  margin: 0 auto var(--space-6);
  line-height: 1.55;
}

/* ============================================================
   Contact-specific layout
   ============================================================ */
.contact-layout {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-16);
  }
}
.contact-card-image {
  background: var(--gray-100);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  overflow: hidden;
}
.contact-card-image img { width: 100%; height: 100%; object-fit: cover; }

.info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-default);
}
.info-row:last-child { border-bottom: none; }
.info-row .icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-row .label-on-row { font-size: var(--text-body-sm); color: var(--text-secondary); display: block; margin-bottom: 2px; }
.info-row a { color: var(--text-primary); }
.info-row a:hover { color: var(--accent); text-decoration: none; }

/* ============================================================
   Brand list (Über uns — Marken-Auswahl)
   ============================================================ */
.brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: var(--space-8);
  font-size: var(--text-body);
  color: var(--text-primary);
}
@media (min-width: 720px)  { .brand-list { column-count: 3; } }
@media (min-width: 1000px) { .brand-list { column-count: 4; } }
.brand-list li {
  break-inside: avoid;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-default);
  font-variant-numeric: lining-nums;
}
.brand-list li:last-child { border-bottom: none; }
.brand-disclaimer {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  margin-top: var(--space-6);
  font-style: italic;
}

/* ─────────────────────────────────────────────
 * Schaufenster v2 — Reihen × Felder Editor (01.05.2026)
 * Frontstruktur: zeile-card enthält feld-cards in horizontaler Liste,
 * jede zeile-card hat eigene Höhe / Brüstung.
 * ───────────────────────────────────────────── */

/* Reihen-Liste: Form-Eingabe ist top-down. Erste Karte = "Unterste Reihe"
 * (Sichtschutz / Erdgeschoss, Default). Folgende Karten = höhere Reihen
 * (Querstreifen, Oberlicht). Skizze rendert dieselben Daten bottom-up,
 * sodass die Reihenfolge in der Front-Vorschau dem realen Aufbau entspricht. */
.zeilen-liste {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.zeile-card {
  padding: var(--space-5);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--accent);
  margin: 0;
}
.zeile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.zeile-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h4, 18px);
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: 0.3px;
}
.felder-titel {
  margin: var(--space-5) 0 var(--space-2) 0;
  font-size: var(--text-body-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
}

.feld-card {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
}
/* Validation: Karten mit fehlenden Werten nach Submit-Versuch.
 * Roter Border + sanfter Glow lenken den Blick zur Stelle, ohne aggressiv
 * zu sein. Wird gelöscht, sobald der User den Wert ergänzt (siehe
 * setFeldMass / setZeileMass in konfigurator.js). */
.zeile-card--has-issue {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-bg);
}
.feld-card--has-issue {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}
.feld-card--has-issue input[type="text"]:placeholder-shown,
.feld-card--has-issue input[type="text"]:not([value]),
.feld-card--has-issue input[type="text"][value=""] {
  border-color: var(--color-error);
}

.feld-card--wand {
  background: var(--gray-100);
  border-color: var(--gray-200);
}
.feld-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.feld-typ-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-dark);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.feld-card--wand .feld-typ-badge { background: var(--gray-500); }
.feld-card-num {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  flex: 1;
}
.btn-remove-mini {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-default);
  background: var(--white);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-remove-mini:hover {
  border-color: var(--color-error, #c0392b);
  color: var(--color-error, #c0392b);
}

.feld-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-end;
}
.masse-field--narrow { max-width: 200px; flex: 1 1 160px; }
.form-row--inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-row--inline label {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  font-weight: 500;
}
.input-narrow {
  width: 80px;
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.input-narrow:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.feld-flags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border-default);
}
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-body-sm);
  color: var(--brand-dark);
  cursor: pointer;
}
.checkbox-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.anschlag-toggle {
  display: inline-flex;
  gap: 4px;
}
.anschlag-toggle button {
  padding: 4px 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: var(--text-body-sm);
  cursor: pointer;
}
.anschlag-toggle button[aria-pressed="true"] {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}

.feld-add-row {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.btn.btn-small {
  padding: 6px 12px;
  font-size: var(--text-body-sm);
}

.front-preview-wrap {
  margin-top: var(--space-6);
}
.front-preview {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;          /* sehr breite Fronten scrollbar */
}
.front-preview svg { max-width: 100%; height: auto; display: block; }

.btn-group--stacked {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.btn-group--stacked button {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--white);
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.btn-group--stacked button strong { font-weight: 600; color: var(--brand-dark); }
.btn-group--stacked button .hint {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  font-weight: 400;
}
.btn-group--stacked button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.btn-group--stacked button[aria-pressed="true"] strong { color: var(--accent); }

/* ============================================================
   Stapel-Feld (vertikal unterteilte Spalte) — eingerückte Sub-Cards
   ============================================================ */
.feld-stack-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.btn.btn-ghost {
  background: transparent;
  border: 1px dashed var(--border-default);
  color: var(--text-secondary);
}
.btn.btn-ghost:hover {
  border-style: solid;
  color: var(--text-primary);
  background: var(--gray-50);
}

.feld-card--stapel {
  background: var(--accent-tint, #FFF1EA);
  border-color: var(--accent, #E8501A);
}
.feld-card--stapel .feld-typ-badge {
  background: var(--accent, #E8501A);
  color: var(--white);
}

.stapel-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sub-zeilen-liste {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
}

.sub-zeile-card {
  padding: var(--space-3);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
}

.sub-zeile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.sub-zeile-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 600;
}

.feld-card--sub {
  margin-top: var(--space-2);
  background: var(--white);
}
.feld-card--sub .feld-card-head {
  margin-bottom: var(--space-2);
}

/* Optionale Höhen-Eingabe: Placeholder zeigt geerbten Wert in Orange,
   damit der User sieht „leer = Reihen-Höhe übernommen". */
.input-erbt::placeholder {
  color: var(--accent, #E8501A);
  opacity: 0.85;
  font-style: italic;
}
.input-erbt::-ms-input-placeholder {  /* IE/Edge legacy */
  color: var(--accent, #E8501A);
  font-style: italic;
}

/* Höhen-Konflikt-Warnung in Stapel-Cards (Sub-Summe ≠ Reihen-Höhe) */
.stapel-warnung {
  background: var(--accent-tint, #FFF1EA);
  border-left: 3px solid var(--accent, #E8501A);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-body-sm);
  color: var(--text-primary);
  line-height: 1.4;
}
/* MW-STORY-CARD-HOVER: Ueber-uns Story-Platzhalter im Karten-Stil (Hover wie .card) */
.story-image { transition: box-shadow var(--dur-fast) var(--ease-default), transform var(--dur-fast) var(--ease-default); }
.story-image:hover { box-shadow: var(--shadow-mid); transform: translateY(-1px); }
