/* Shared original artwork, with no cropping or distortion. */
.hero-visual .hero-photo { aspect-ratio:4/5; max-width:440px; margin-inline:auto; }
.hero-visual .hero-photo img { object-fit:contain; }
.delivery-highlight { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:18px; margin:0 0 28px; padding:22px 24px; border:1px solid #d6bd91; border-left:3px solid var(--gold); border-radius:12px; background:linear-gradient(110deg,#fffaf0,#f1e7d5); box-shadow:0 10px 28px #44321b08; color:#211c14; }
.delivery-highlight__icon { display:grid; place-items:center; width:48px; height:48px; border:1px solid #d6bd91; border-radius:50%; color:#76551e; }
.delivery-highlight__icon svg { width:27px; height:27px; }
.delivery-highlight__copy h3 { margin:0 0 5px; font-family:var(--pv-font-body,'Manrope',Arial,sans-serif); font-size:19px; line-height:1.3; font-weight:700; letter-spacing:-.025em; }
.delivery-highlight__copy p { margin:0; max-width:75ch; color:#5b5145; font-size:13px; line-height:1.6; }
.delivery-highlight__threshold { margin:0; padding:10px 16px; border-radius:6px; background:#211c14; color:#eed7ac; font-size:14px; line-height:1.45; font-weight:700; white-space:nowrap; }
@media screen and (max-width:680px) {
  .delivery-highlight { grid-template-columns:38px minmax(0,1fr); align-items:start; gap:12px; padding:18px 16px; margin-bottom:22px; }
  .delivery-highlight__icon { width:38px; height:38px; }
  .delivery-highlight__icon svg { width:23px; height:23px; }
  .delivery-highlight__copy h3 { font-size:18px; }
  .delivery-highlight__threshold { grid-column:2; justify-self:start; white-space:normal; padding:8px 12px; font-size:13px; }
}
@media print { .delivery-highlight { display:none!important; } }
@media screen and (min-width:821px) {
  .config .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .config .product-card.selected { grid-column:span 2; }
  .config .product-card:not(.selected) .product-title-row { flex-direction:column; gap:10px; }
  .config .product-card:not(.selected) .from-price { text-align:left; }
  .config .product-card:not(.selected) .product-title { font-size:25px; }
}

#consultationTimeField[hidden], #consultationLocationField[hidden], #consultationNotice[hidden], #consultationError[hidden] { display: none !important; }
.consultation-notice, .consultation-review { font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.consultation-notice { margin: 0; color: #4f5558; }
.gallery .eyebrow { color: #d6b276; }
.consultation-error { margin: 0; color: #9b3025; font-size: 13px; }
.consultation-review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.net-price-note { margin:8px 0 0; font-size:12px; line-height:1.5; font-weight:600; }
#summary .net-price-note,#reviewTotals .net-price-note { color:#d4cdc2; }
.review-net-total { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; border-top:1px solid #444; padding-top:10px; margin-top:3px; font-size:20px; }
.review-net-total b { color:var(--gold); white-space:nowrap; }
@media print { #reviewTotals .net-price-note { color:#111; } }

@media screen and (min-width:1280px) {
  .workspace { grid-template-columns:minmax(0,1fr) 320px; gap:24px; }
  .config .product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
.config .product-media { aspect-ratio:4/5; }
.config .product-media img { object-fit:contain; }
.config .product-card.selected .product-media { aspect-ratio:1.6; }
.config .product-card--seasonal { border-color:var(--pv-color-season-800); }
.config .product-card--seasonal .product-category { color:var(--pv-color-season-800); }
.config .product-card--seasonal .product-badge { background:var(--pv-color-season-950); color:var(--pv-color-season-100); }
.product-moq { margin:12px 0 0; font-size:13px; font-weight:600; }
.product-example-note { padding:12px; background:#eee8de; color:#403a31; border-left:3px solid #785d30; font-size:13px; line-height:1.6; }
@media print { .product-example-note { color:#111; background:#fff; border-color:#111; } }
:root { --layer-header:100; --ease:cubic-bezier(.2,.8,.2,1); --gold-light:#e7d2ab; --ink:#080806; }
html { scroll-padding-top:calc(96px + env(safe-area-inset-top,0px)); }
body { font-family:var(--pv-font-body, 'Manrope', Arial, sans-serif); padding-top:calc(72px + env(safe-area-inset-top,0px)); }
body.menu-open { overflow:hidden; }
body.menu-open .mobile-cart { visibility:hidden; }
button,input,select,textarea { font-family:inherit; }
.header .brand { min-width:0; gap:0; }
.header a { color:inherit; text-decoration:none; }
.header .button--gold { color:var(--ink); }
.header .brand img { width:190px; height:48px; }
h1,h2.section-title { font-family:'Instrument Serif',serif; font-weight:400; }
.field .option-card { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:start; justify-content:normal; gap:12px; margin:0; text-transform:none; letter-spacing:normal; font-weight:400; line-height:1.5; }
.field .option-card input,.consent input { width:20px; height:20px; min-width:20px; padding:0; margin:2px 0 0; flex-shrink:0; }
.option-card div,.review-item > div,.field { min-width:0; }
.option-card span { display:block; margin-top:4px; }
.review-item b,.review-item span,.consent span { overflow-wrap:anywhere; }
.review-price span { display:block; }
#reviewTotals > div > div { gap:16px; }
#reviewTotals b { white-space:nowrap; }
.stage-panel { scroll-margin-top:100px; }
@media(max-width:1100px) { body { padding-top:calc(76px + env(safe-area-inset-top,0px)); } }
@media(max-width:480px) {
 .review-item { grid-template-columns:56px minmax(0,1fr); gap:10px; }
 .review-item img { width:56px; height:56px; }
 .review-price { grid-column:2; text-align:left; }
 .stage-panel { padding:18px; }
 #reviewTotals { padding:14px!important; }
 #reviewTotals > div > div:last-child { font-size:17px!important; }
}
#configRequestStatus { min-height:1.5em; margin:12px 0 0; color:#4f5558; font-size:13px; line-height:1.55; }
#configRequestStatus[data-state="success"] { color:#246840; }
#configRequestStatus[data-state="validation"],#configRequestStatus[data-state="server-error"],#configRequestStatus[data-state="network-error"],#configRequestStatus[data-state="timeout"] { color:#9b3025; }
#configRequestStatus[data-state="loading"] { color:#76551f; }
@media print {
 @page { size:A4; margin:15mm; }
 body { padding:0!important; color:#111; background:white; }
 .header,.summary,.language-switch,.contact-inquiry,.pv-config-privacy,#saveProject,#stage3 .form-grid,#stage3 .consent,#requestBtn,#printBtn { display:none!important; }
 .container { width:100%!important; max-width:none!important; }
 .config,.stage-panel { padding:0!important; }
 #reviewTotals,#reviewTotals * { color:#111!important; background:white!important; }
 #reviewTotals { border:1px solid #aaa; break-inside:avoid; }
 .review-item { grid-template-columns:56px minmax(0,1fr) auto; break-inside:avoid; }
 .review-price { grid-column:auto; text-align:right; }
 .print-project-details { display:block!important; margin:20px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
}
.footer .footer-original-logo { display:block; width:220px; height:58px; max-width:100%; object-fit:contain; object-position:left center; transform:none; filter:brightness(1.15); }
button { -webkit-appearance:none; appearance:none; }
.pv-arrow { display:inline-block; width:20px; height:20px; flex-shrink:0; vertical-align:middle; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.summary-line { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.summary-line > div { min-width:0; }
.summary-quantity { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:12px; color:#e7dfd3; font-size:12px; }
.summary-quantity input { width:130px; min-height:44px; border:1px solid #797063; border-radius:8px; padding:8px 12px; font:inherit; font-size:16px; color:#fff; background:#24211d; }
.summary-close { display:none; }
.summary-quantity { flex-wrap:wrap; }
.quantity-apply { min-height:44px; border:1px solid #c9a56a; border-radius:8px; padding:8px 10px; background:#c9a56a; color:#111; }
.gallery-label { right:12px; overflow-wrap:anywhere; }
button, a { -webkit-tap-highlight-color:transparent; }
@media screen and (max-width:1100px) {
  .workspace { display:block; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .product-card.selected { grid-column:1 / -1; }
  .summary { position:fixed; top:auto; left:max(12px,env(safe-area-inset-left)); right:max(12px,env(safe-area-inset-right)); z-index:150; overflow-y:auto; overscroll-behavior:contain; max-height:calc(var(--pv-visual-height,100dvh) - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom))); bottom:calc(var(--pv-keyboard-offset,0px) + max(12px,env(safe-area-inset-bottom))); transform:translateY(calc(100% + 100px)); visibility:hidden; transition:transform .25s ease,visibility .25s; }
  .summary.open { transform:translateY(0); visibility:visible; }
  .summary-lines { max-height:none; overflow:visible; }
  .summary-close { display:block; margin-left:auto; min-height:44px; border:1px solid #797063; border-radius:8px; background:transparent; color:#fff; padding:8px 12px; }
  .mobile-cart { display:flex; left:max(12px,env(safe-area-inset-left)); right:max(12px,env(safe-area-inset-right)); bottom:max(12px,env(safe-area-inset-bottom)); }
  body.pv-editing-field .mobile-cart,body.summary-open .mobile-cart { visibility:hidden; }
  .footer { padding-bottom:calc(110px + env(safe-area-inset-bottom)); }
  .config { padding-bottom:120px; }
  .selection-state { flex-wrap:wrap; }
  .selection-copy { flex:1; min-width:140px; }
  .stage-nav { flex-wrap:wrap; }
}
.filter-chip, .step, .remove-product { color:var(--ink); }
.choice-arrow { width:18px; height:18px; flex-shrink:0; font-size:0; position:relative; }
.choice-arrow::before { content:''; position:absolute; width:15px; height:1.5px; background:currentColor; left:0; top:8px; }
.choice-arrow::after { content:''; position:absolute; width:7px; height:7px; border-top:1.5px solid currentColor; border-right:1.5px solid currentColor; transform:rotate(45deg); right:1px; top:5px; }
@media(max-width:820px) {
  .gallery-head { display:flex; flex-direction:column; align-items:flex-start; gap:16px; }
  .gallery-head > * { min-width:0; max-width:100%; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:stretch; }
  .product-card { min-width:0; }
  .product-card.selected { grid-column:1 / -1; }
  .product-card:not(.selected) .product-media { aspect-ratio:1; }
  .product-card:not(.selected) .product-body { padding:12px; }
  .product-card:not(.selected) .product-title-row { flex-direction:column; gap:9px; }
  .product-card:not(.selected) .product-title { font-size:clamp(16px,4.3vw,22px); hyphens:auto; overflow-wrap:anywhere; line-height:1.15; }
  .product-card:not(.selected) .product-category { font-size:12px; letter-spacing:.03em; overflow-wrap:anywhere; }
  .product-card:not(.selected) .product-sub { font-size:12px; }
  .product-card:not(.selected) .from-price { text-align:left; display:flex; flex-wrap:wrap; gap:4px; align-items:baseline; }
  .product-card:not(.selected) .feature-row { gap:4px; }
  .product-card:not(.selected) .feature-row span { padding:4px 6px; font-size:12px; }
  .product-card:not(.selected) .product-badge { top:8px; left:8px; max-width:calc(100% - 16px); padding:5px 8px; font-size:12px; }
  .product-card:not(.selected) .product-select { min-height:48px; padding:10px 8px; gap:5px; border-radius:10px; }
  .product-card:not(.selected) .choice-box, .product-card:not(.selected) .choice-copy small { display:none; }
  .product-card:not(.selected) .choice-copy b { font-size:13px; line-height:1.25; white-space:normal; }
  .product-card:not(.selected) .zoom-hint { font-size:12px; padding:5px 9px; }
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .field input,.field select,.field textarea { font-size:16px; }
}

/* Fluid safeguards for small phones, landscape phones and tablet split views. */
@media screen {
  .workspace > div,.form-grid > *,.dual > *,.hero-grid > *,.benefit > div,.config-head > div { min-width:0; }
  .field input,.field select,.field textarea { min-width:0; max-width:100%; }
  .field input[type=date] { display:block; min-height:46px; -webkit-appearance:none; appearance:none; }
  .field input[type=date]::-webkit-date-and-time-value { text-align:left; min-height:1.5em; }
  .field textarea { resize:vertical; }
  .field label { flex-wrap:wrap; }
  .configure-head { flex-wrap:wrap; }
  .product-title,.product-sub,.configure-head b,.step,.hero-copy h1,.section-title { overflow-wrap:anywhere; }
  .step-num,.benefit-icon { flex-shrink:0; }
  .line-total { flex-wrap:wrap; gap:8px 16px; }
  /* Label über dem Preis statt inline daneben; die Lieferzeit rutscht bei Platzmangel linksbündig darunter. */
  .line-total > div { display:flex; flex-direction:column; gap:3px; min-width:0; }
  .line-total > div > small { line-height:1.35; }
  .line-total > div > b { line-height:1.15; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .line-total > span { line-height:1.4; }
  .price-row > span,.summary-line b,.summary-line span { min-width:0; overflow-wrap:anywhere; }
  .price-row strong { flex-shrink:0; }
  .filter-chip,.preset,.remove-product { min-height:44px; }
  .modal { padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  .modal-box { max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom))); overflow-y:auto; overscroll-behavior:contain; }
  .modal-box img { max-height:calc(100dvh - 48px); }
  .modal-close { width:44px; height:44px; }
}
@media screen and (max-width:1100px) {
  .container { width:calc(100% - max(14px,env(safe-area-inset-left)) - max(14px,env(safe-area-inset-right))); }
  .field input,.field select,.field textarea { font-size:16px; }
  .summary { width:min(560px,calc(100% - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right)))); margin-inline:auto; }
}
@media screen and (max-width:520px) {
  .stage-nav > button { flex:1 1 100%; width:100%; }
  .stage-nav > span:empty { display:none; }
  .product-card.selected .product-title-row { flex-wrap:wrap; }
  .product-card.selected .from-price { text-align:left; }
  .product-status { top:auto; bottom:12px; left:12px; right:auto; }
  .product-card.selected .zoom-hint { display:none; }
  .summary-top,.summary-pricing,.summary-lines,.summary-actions { padding-inline:16px; }
  .summary-quantity { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .summary-quantity input { width:100%; grid-column:1; }
  .summary-quantity button { grid-column:2; grid-row:2; }
  .mobile-cart { flex-wrap:wrap; gap:8px; }
  .mobile-cart > div { flex:1; min-width:90px; }
  .mobile-cart button { min-height:44px; padding-inline:10px; }
  .gallery-label { left:10px; right:10px; bottom:10px; font-size:13px; line-height:1.3; }
  .success-modal .modal-box { padding:54px 20px 24px; }
}
@media screen and (max-width:360px) {
  .product-grid { gap:8px; }
  .product-card:not(.selected) .product-body { padding:10px; }
  .product-card:not(.selected) .choice-arrow { display:none; }
  .product-card:not(.selected) .choice-copy b { font-size:13px; }
  .summary-line { grid-template-columns:minmax(0,1fr); }
  .price-row.total { flex-wrap:wrap; }
}
@media screen and (max-height:500px) and (max-width:1100px) {
  .summary-top { padding-top:12px; padding-bottom:12px; }
  .summary-close { float:right; margin-left:12px; }
  .summary-top h3 { font-size:21px; }
  .summary-pricing { padding-block:12px; }
  .mobile-cart { padding-block:6px; }
}
@media screen and (hover:none) {
  .product-card:hover,.product-card:hover .product-media img,.gallery-card:hover img { transform:none; }
}
@media screen and (prefers-reduced-motion:reduce) {
  .summary { transition:none; }
}

/* Bottom bar appears with the first selection; footer headings keep their previous visual size. */
body:not(.pv-has-selection) .mobile-cart { display:none; }
/* Im letzten Schritt steht die vollständige Übersicht schon im Inhalt; die Leiste würde sie nur verdecken. */
body:has(#stage3.active) .mobile-cart { display:none; }
.footer .footer-heading { font-family:var(--pv-body,'Manrope',Arial,sans-serif); font-size:14px; font-weight:700; line-height:1.6; letter-spacing:normal; text-transform:none; color:#fff; margin:0 0 12px; }

/* Wide selected cards would otherwise leave empty grid cells. */
.config .product-grid { grid-auto-flow:row dense; }

/* Desktop summary stays within the viewport: the line list shrinks first, totals and CTAs stay visible. */
@media screen and (min-width:1101px) {
  .summary { display:flex; flex-direction:column; max-height:calc(100vh - 124px); max-height:calc(100dvh - 124px); overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
  .summary-top, .summary-pricing, .summary-actions { flex:none; }
  .summary-lines { flex:0 1 auto; min-height:0; }
  .summary-lines:has(.summary-line) { min-height:120px; }
  .summary-lines:not(:has(.summary-line)) { flex-shrink:0; }
}
@media screen and (min-width:1101px) and (max-height:860px) {
  .summary-top { padding-top:16px; padding-bottom:12px; }
  .summary-top h3 { font-size:21px; margin-top:4px; }
  .summary-pricing { padding-block:12px; }
}

/* Lesbarkeit (11/2026): Mindestgrößen für die Inline-Styles des Konfigurators.
   Nur am Bildschirm; Druck/Angebots-PDF bleiben unverändert. */
@media screen {
  .trust, .hero-badge span, .benefit span, .filter-chip, .consent, .empty-summary,
  .summary-line b, .summary-line strong, .price-row, .footer p, .footer a,
  .delivery-highlight__copy p, .delivery-highlight__threshold, .consultation-notice,
  .consultation-review, .consultation-error, .product-moq, .product-example-note,
  #configRequestStatus { font-size:14px; }
  .from-price small, .preset, .line-total span, .option-card span, .review-item span,
  .summary-top p, .summary-line span, .saving, .gallery-label span, .footer-bottom,
  .choice-copy small, .selection-copy small, .remove-product, .net-price-note,
  .summary-quantity, .configure-head small, .micro, .step-sub { font-size:13px; }
  .hero-badge small, .live-total small, .selected-count > span, .summary-top small,
  .product-badge, .zoom-hint, .feature-row span, .product-status,
  .configure-step, .timeline div { font-size:12px; }
  .selected-count > strong { font-size:13px; }
  .micro, .step-sub { line-height:1.4; }
  .footer-links a { padding-block:4px; margin-block:-4px; }
}
@media screen and (min-width:1101px) and (max-width:1340px) {
  /* Schmale Desktop-Karten: dekoratives Kästchen weglassen, sonst läuft „auswählen“ in den Pfeil */
  .product-card:not(.selected) .choice-box { display:none; }
}
@media screen and (max-width:520px) {
  /* Pfeil weglassen, damit „Produkt auswählen“ in der schmalen Karte größer stehen kann */
  .product-card:not(.selected) .choice-arrow { display:none; }
}
