/* Hausschrift Poppins (CI 2024, C:/SoraAssets/sora-brand-definition.html), selbst gehostet (SIL Open Font License),
   nur fuer Wortmarke und Tagline im Kopf; Latin-Teilmenge, je 8 KB. Kein Aufruf von Google-Servern. (16.09.2026) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/poppins-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/poppins-500-latin.woff2') format('woff2'); }
:root {
  color-scheme: light;
  --green: #28cf00;
  --green-dark: #158300;
  --ink: #151a20;
  --muted: #68727f;
  --line: #d9e1ea;
  --soft: #f5f7f9;
  --panel: #ffffff;
  --danger: #a81414;
  --danger-bg: #fff1f0;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef2f5;
}

/* Seitliches Verschieben auf dem Handy unterbinden: zu breite Inhalte werden
   abgeschnitten statt die Seite horizontal scrollbar zu machen.
   `clip` statt `hidden`, damit der sticky-Header weiter funktioniert. */
html, body { overflow-x: clip; }

/* iOS-Safari zoomt beim Fokussieren von Eingabefeldern mit Schrift < 16px
   automatisch in die Seite hinein (wirkt wie „Seite verrutscht nach unten").
   Auf Touch-Geräten deshalb alle Formularfelder mindestens 16px. */
@media (pointer: coarse), (max-width: 720px) {
  /* !important, damit spätere Regeln (font: inherit, klassenspezifische
     Schriftgrößen) die Zoom-Bremse nicht wieder aushebeln. */
  input, select, textarea { font-size: 16px !important; }
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 42px);
  background: #fff;
  border-bottom: 2px solid var(--green);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  font-family: 'Poppins', Arial, Helvetica, sans-serif; /* Hausschrift wie die Shop-Wortmarke (16.09.2026) */
  color: #00bf00;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.brand span:last-child {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.status-pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 6px;
  font-weight: 700;
}

.herkunftsleiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 10px clamp(18px, 4vw, 42px);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.herkunftsleiste__back:empty,
.herkunftsleiste__cross:empty {
  display: none;
}

.herkunftsleiste a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.herkunftsleiste__cross a {
  color: var(--muted);
  font-weight: 600;
}

.herkunftsleiste a:hover,
.herkunftsleiste a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .herkunftsleiste {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* CTA-Box am Ende des "Wichtige Hinweise"-Panels: Produkt-Ratgeber (auffälliger
   Button) + Ersatzteil-Querlink. Bewusst im Hinweis-Block statt oben unter dem
   Header — dort wird sie beim gezielten Konfigurieren übersehen, hier liest sie
   mit, wer sich orientieren will. Zurückhaltender als "In den Warenkorb": der
   Klick führt weg vom Bestellformular. */
.hinweis-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 18px;
  padding: 14px 18px;
  background: #eafbe6;
  border: 1px solid var(--green);
  border-radius: 8px;
}

.hinweis-cta__info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--green-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.hinweis-cta__info:hover,
.hinweis-cta__info:focus-visible {
  background: var(--green);
  text-decoration: none;
}

.hinweis-cta__cross {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.hinweis-cta__cross:hover,
.hinweis-cta__cross:focus-visible {
  text-decoration: underline;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 22px;
  width: min(1220px, calc(100% - 36px));
  margin: 34px auto;
}

.configurator,
.summary,
.result-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(23, 34, 45, 0.08);
}

.configurator,
.summary {
  padding: clamp(20px, 3vw, 30px);
}

.section-head {
  margin-bottom: 24px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
}

h2 {
  font-size: 24px;
}

.items-form,
.items-list {
  display: grid;
  gap: 16px;
}

.hood-card {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hood-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

legend {
  padding: 0;
  font-size: 18px;
  font-weight: 800;
}

.hood-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* 10.09.2026: display:grid schlug das hidden-Attribut; die Boden-Auswahl der Standardartikel-Seite war deshalb
   bei jedem Artikel sichtbar. Ausgeblendete Labels bleiben ausgeblendet. */
label[hidden] {
  display: none;
}

.wide {
  grid-column: 1 / -1;
}

.input-unit {
  display: flex;
  align-items: center;
  min-height: 46px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.input-unit input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
}

.input-unit span {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 58px;
  padding: 0 12px;
  background: var(--soft);
  border-left: 1px solid var(--line);
  color: var(--muted);
}

select,
.service-panel input,
.service-panel textarea {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.service-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-panel textarea {
  min-height: 86px;
  resize: vertical;
}

.address-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.address-block h3 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: 0;
}

.checkbox-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

/* Info-Icon (i) mit Tooltip — erklärt Fachbegriffe direkt am Feld (z. B. die
   Bodenarten "standard" vs. "bündig"). Button statt Span, damit ein Klick/Tap im
   <label> NICHT das zugehörige Formularfeld aktiviert (interaktive Elemente sind
   von der Label-Aktivierung ausgenommen) und die Tastatur-Bedienung mitkommt. */
.info-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  cursor: help;
  vertical-align: text-bottom;
}

.info-tip__text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  z-index: 30;
  width: min(340px, 82vw);
  padding: 11px 13px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.12s;
  pointer-events: none;
}

.info-tip__text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--ink);
}

.info-tip:hover .info-tip__text,
.info-tip:focus .info-tip__text,
.info-tip:focus-visible .info-tip__text {
  visibility: visible;
  opacity: 1;
}

/* mm-Felder: der Wechsel zwischen cm- und mm-Feldern auf einer Seite ist eine
   typische Fehlerquelle — mm-Felder bekommen deshalb eine dezente gelbe
   Markierung (Klasse setzt app.js anhand der Einheiten-Beschriftung). */
.input-unit.unit-mm {
  border-color: #e0b64b;
}

.input-unit.unit-mm span {
  background: #fdf3d7;
  border-left-color: #e0b64b;
  color: #7c5e10;
  font-weight: 800;
}

/* Feld-Markierung im Fehlerfall: app.js ordnet den Fehlercode des Servers dem
   betroffenen Eingabefeld zu (roter Rahmen zusätzlich zur roten Notice). */
.input-unit.field-error,
select.field-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(168, 20, 20, 0.14);
}

.input-unit.field-error span {
  background: var(--danger-bg);
  border-left-color: var(--danger);
  color: var(--danger);
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #eefaf0;
  border: 1px solid #b7e5bf;
  color: #145d1e;
  font-weight: 700;
}

.notice.error {
  background: var(--danger-bg);
  border-color: #ffc8c2;
  color: var(--danger);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 18px;
  background: #f0f9ef;
  border: 1px solid #bfeabd;
  border-radius: 6px;
}

.price-row span {
  color: var(--green-dark);
  font-weight: 800;
}

.price-row strong {
  font-size: 34px;
  color: var(--green-dark);
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.summary-metrics div,
.result-grid div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.summary-metrics span,
.muted {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.rounding-note {
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #34513a;
  background: #f2fbf1;
  border: 1px solid #cbecc8;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

/* Schematische Haubenvorschau: zeichnet Breite/Tiefe/Höhe als isometrische
   Acryl-Skizze (app.js -> renderPreview). Nur sichtbar, wenn app.js das SVG
   befüllt hat (Container startet mit [hidden]). */
.preview {
  margin: 0 0 18px;
  padding: 14px 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

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

/* WICHTIG: hidden muss die display-Regeln in diesem Block schlagen. Skizze,
   Fehlerfeld und Bilder setzen display explizit (block/grid) — ohne diese Regel
   ignorieren ausgeblendete Elemente ihr hidden-Attribut und bleiben sichtbar
   (z. B. das leere rote Fehlerfeld neben dem Infofeld oder ein kaputtes Bild
   hinter dem "Foto folgt"-Platzhalter). */
.preview [hidden] {
  display: none !important;
}

.preview-caption {
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* Fehlerfall in der Bildfläche: ersetzt die Skizze durch die Meldung (app.js ->
   setPreviewError). Grün = freundliche Weiterleitung, rot (.error) = echter Fehler.
   min-height ~ Skizzenhöhe, damit der Kasten beim Umschalten nicht springt. */
.preview-error {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 20px 22px;
  border-radius: 6px;
  background: #eefaf0;
  border: 1px solid #b7e5bf;
  color: #145d1e;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.preview-error.error {
  background: var(--danger-bg);
  border-color: #ffc8c2;
  color: var(--danger);
}

.preview-error a {
  display: block;
  margin-top: 10px;
  color: inherit;
  font-weight: 800;
}

/* Infofeld unter der Skizze (app.js -> renderPreviewInfo): Zusatzinfos
   (Außenmaße, nutzbare Innenhöhe usw.) + zwei Variantenkacheln (Boden, Rückwand).
   Grüner Info-Ton wie die übrigen Hinweise der Seite; wird bei Fehler ausgeblendet
   (dann erscheint stattdessen .preview-error). */
.preview-info {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid #cbecc8;
  background: #f2fbf1;
  border-radius: 6px;
}

.preview-info-text .position-meta {
  display: block;
  color: #34513a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.preview-info-text .position-meta + .position-meta {
  margin-top: 2px;
}

.preview-variants {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  max-width: 300px;
}

.preview-variants:first-child {
  margin-top: 0;
}

.variant {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.variant[hidden] {
  display: none;
}

.variant img,
.variant-ph {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  display: block;
}

.variant img {
  object-fit: cover;
  border: 1px solid #cbecc8;
  background: #fff;
}

.variant-ph {
  display: grid;
  place-items: center;
  border: 1px dashed #9db4c9;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.variant figcaption {
  margin-top: 5px;
  color: #5f5e5a;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.positions {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.position-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.position-item p {
  margin: 9px 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.position-topline,
.position-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.position-topline span {
  color: var(--green-dark);
  font-weight: 800;
}

.position-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.actions.inline {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
}

button,
.as-link {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary {
  background: var(--green);
  color: #fff;
}

.secondary {
  background: #111820;
  color: #fff;
}

.text-button {
  min-height: 34px;
  padding: 7px 10px;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.text-button.danger {
  color: var(--danger);
}

.add-hood {
  justify-self: start;
}

.workflow-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.workflow-note.is-active {
  color: var(--green-dark);
}

.workflow-result {
  overflow-wrap: anywhere;
}

.result-panel {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto 34px;
  padding: 22px;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

#close-result {
  width: 38px;
  min-height: 38px;
  padding: 0;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  margin-bottom: 14px;
}

.result-grid a {
  display: block;
  margin-top: 6px;
  color: var(--green-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

textarea,
pre {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: #fbfcfd;
  color: var(--ink);
  resize: vertical;
}

pre {
  overflow: auto;
  min-height: 160px;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .topbar,
  .brand {
    align-items: flex-start;
  }

  .topbar,
  .brand,
  .hood-card-head {
    flex-direction: column;
  }

  .shell,
  .form-grid,
  .service-grid,
  .summary-metrics,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .brand span:last-child {
    white-space: normal;
  }

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

/* "Wichtige Hinweise" unter dem Konfigurator: produktspezifische Infos
   (Innen-/Außenmaße, Einheiten, Besonderheiten) — volle Breite unter der
   zweispaltigen Shell, gleiche Breite wie .shell. */
.hinweis-panel {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto 34px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(23, 34, 45, 0.08);
}

.hinweis-panel ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 9px;
  font-size: 15px;
  line-height: 1.55;
}

.hinweis-panel li::marker {
  color: var(--green-dark);
}

.customer-check {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.customer-check h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.customer-check-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.customer-check-action {
  display: flex;
  align-items: flex-end;
}

.customer-check-action button {
  width: 100%;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.check-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 700;
}

.check-result.ok {
  background: #eefaf0;
  border: 1px solid #b7e5bf;
  color: #145d1e;
}

.check-result.neutral {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.check-result .text-button {
  margin-top: 10px;
}

.shop-route {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #bfeabd;
  border-radius: 8px;
  background: #f0f9ef;
}

.shop-order-link {
  display: block;
}

.route-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.route-note--offer {
  margin-top: 10px;
}

.confirm-mode .shell,
.confirm-mode #result-panel {
  display: none !important;
}

.confirm-view {
  width: min(720px, calc(100% - 36px));
  margin: 34px auto;
  padding: clamp(20px, 3vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(23, 34, 45, 0.08);
}

.confirm-for {
  margin: -8px 0 18px;
}

.confirm-positions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.confirm-total-row {
  margin-bottom: 18px;
}

.confirm-address {
  margin-bottom: 18px;
}

.confirm-known {
  padding: 14px 16px;
  border-radius: 6px;
  background: #eefaf0;
  border: 1px solid #b7e5bf;
  color: #145d1e;
  font-weight: 700;
}

.confirm-address .text-button {
  margin-top: 10px;
}

.confirm-address-fields {
  margin-top: 16px;
}

.confirm-address-fields h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.confirm-view input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.confirm-view .actions {
  grid-template-columns: 1fr;
}

.confirm-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 6px;
  background: #eefaf0;
  border: 1px solid #b7e5bf;
  color: #145d1e;
  font-weight: 700;
}

/* Übersicht „Bildende Ersatzteile" — Kachelraster mit Produkt-Links. */
.et-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.et-tile {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.et-tile:hover {
  border-color: var(--green);
  box-shadow: 0 10px 26px rgba(23, 34, 45, 0.1);
  transform: translateY(-2px);
}

.et-tile-title {
  font-size: 18px;
  font-weight: 800;
}

.et-tile-sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* ============================================================
   Shop-Header (.topbar--shop) — von topbar.js aus der schlichten
   .topbar aufgebaut, Optik 1:1 wie der Header der Shop-Startseite
   (shop/css/shop.css). Die Farben kommen aus dem Shop-Design-System
   (#43a047 / #2e7d32), nicht aus dem helleren Konfigurator-Grün.
   Steht bewusst am Dateiende, damit die Regeln die generischen
   .topbar-Regeln (inkl. deren 900px-Media-Query) überschreiben.
   ============================================================ */
.topbar--shop {
  --shop-green: #43a047;
  --shop-green-dark: #2e7d32;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 8px;
  padding: 14px clamp(18px, 4vw, 42px);
  background: var(--shop-green);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.topbar--shop .logo {
  flex: 0 0 auto;
  display: block;
  color: #fff;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-decoration: none;
}

.topbar--shop .logo small {
  display: block;
  margin: 3px 0 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sora-search {
  flex: 1 1 auto;
  max-width: 520px;
  margin: 0 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #fff;
  border-radius: 999px;
  padding: 10px 8px 10px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.sora-search:focus-within {
  border-color: var(--shop-green);
  box-shadow: 0 3px 12px rgba(67, 160, 71, 0.18);
}

.sora-search__icon {
  color: var(--shop-green);
  display: flex;
  flex: 0 0 auto;
  position: relative;
}

.sora-search__dot {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--shop-green);
  border: 1.5px solid #fff;
}

.sora-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
}

.sora-search__input::placeholder {
  color: #8a929c;
}

.sora-search__submit {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background: #12233f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.sora-search__submit:hover {
  background: #1d3760;
}

.shop-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: var(--shop-green-dark);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.shop-btn:hover {
  background: #256b2a;
  border-color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.shop-btn svg {
  flex: 0 0 auto;
  stroke: #fff;
}

/* Warenkorb-Badge: Markup und Optik wie im Shop-Header (shop.css) — den
   Zählerstand liefert das Cookie "soraCartCount", das cart.js im Shop auf
   die gemeinsame Parent-Domain spiegelt (siehe topbar.js). */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #d97706;
  color: #fff;
  border-radius: 999px;
  border: 2px solid var(--shop-green-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none;
}

.cart-badge.is--visible {
  display: block;
}

/* Status-Pille ("Bereit"/"Berechne...") wandert mit in den grünen Header. */
.topbar--shop .status-pill {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
}

@media (max-width: 900px) {
  .topbar--shop {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 12px;
  }

  .topbar--shop .sora-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 560px) {
  .topbar--shop .logo {
    font-size: 26px;
  }

  .topbar--shop .logo small {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-left: 6px;
  }

  .topbar--shop .shop-btn span {
    display: none;
  }

  .topbar--shop .shop-btn {
    padding: 8px 10px;
  }
}

/* Schlanke Shop-Linkzeile unter dem grünen Header (topbar.js) — Gegenstück
   zur Hauptnavigation des Shops, bewusst ohne Dropdowns. */
.topbar-links {
  background: #2e7d32;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
}
.topbar-links a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
}
.topbar-links a:hover { text-decoration: underline; }

/* ============================================================
   Shop-Footer (aus topbar.js auf jeder Seite angehängt) —
   Optik wie der kleine Footer der Shop-Seiten (kasse/danke)
   ============================================================ */
.site-footer {
  margin-top: 48px;
  padding: 26px clamp(18px, 4vw, 42px) 30px;
  background: #2c2c2c;
  color: #aab0b8;
  font-size: 14px;
  line-height: 1.7;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #cfd5dd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__copyright { font-size: 12px; color: #8a929c; }
