/* Zaunkonzept Konfigurator – Frontend-Styles.
   Uebernommen aus dem freigegebenen Prototyp (prototyp/css/konfigurator.css). */

/* Montserrat, selbst gehostet, variable Schrift mit den Schnitten 300 bis 800. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --zk-dunkelgruen: #133130;
  --zk-lime: #D4FD70;
  --zk-offweiss: #F6F7F7;
  --zk-textgruen: #495B55;
  --zk-grau10: #DCE0DE;
  --zk-grau40: #9AA5A0;
  --zk-grau60: #6B7A75;
  --zk-rot: #B42318;
  --zk-weiss: #FFFFFF;

  --zk-schrift: "Montserrat", Arial, sans-serif;

  --zk-dauer-zustand: 180ms;
  --zk-dauer-blende: 320ms;
  --zk-kurve: cubic-bezier(0, 0, 0.2, 1);
}

/* ============ Reset und Theme-Schutz ============
   Astra, Elementor und andere Themes bringen eigene Styles fuer Buttons,
   Listen und Formularfelder mit. Alles im Konfigurator wird deshalb
   zurueckgesetzt und danach bewusst neu gesetzt. Dieser Block muss vor
   allen Komponenten stehen, sonst ueberschreibt er ihre Abstaende. */

.zkk-wrap,
.zkk-wrap * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
  float: none;
}

.zkk-wrap *::before,
.zkk-wrap *::after { box-sizing: border-box; }

.zkk-wrap {
  font-family: var(--zk-schrift);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--zk-textgruen);
  background: var(--zk-weiss);
  text-align: left;
}

.zkk-wrap button,
.zkk-wrap input,
.zkk-wrap select,
.zkk-wrap textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
  background: none;
  border: none;
  min-height: 0;
  width: auto;
}

.zkk-wrap button {
  cursor: pointer;
  text-align: left;
}

.zkk-wrap h2,
.zkk-wrap h3 {
  text-transform: none;
  letter-spacing: normal;
  clear: none;
}

.zkk-wrap dl,
.zkk-wrap dt,
.zkk-wrap dd,
.zkk-wrap p { list-style: none; }

.zkk-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  vertical-align: middle;
}

.zkk-wrap svg { vertical-align: middle; }

.zkk-wrap a { box-shadow: none; }

.zkk-wrap [hidden], .zkk-wrap[hidden] { display: none !important; }

/* ============ Grundraster ============ */

.zkk-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 64px 96px;
}

/* ============ Kopf ============ */

.zkk-wrap .zkk-headline {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--zk-dunkelgruen);
}

.zkk-wrap .zkk-intro {
  font-size: 21px;
  font-weight: 300;
  line-height: 1.45;
  margin-top: 16px;
  max-width: 680px;
}

/* ============ Aktion ============ */

.zkk-wrap .zkk-aktion {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: var(--zk-dunkelgruen);
  padding: 14px 24px;
  margin-top: 32px;
}

.zkk-wrap .zkk-aktion-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zk-lime);
  white-space: nowrap;
}

.zkk-wrap .zkk-aktion-text {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--zk-weiss);
}

/* ============ Schrittanzeige ============ */

.zkk-wrap .zkk-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.zkk-wrap .zkk-stepper-schritt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  cursor: default;
}

.zkk-wrap .zkk-stepper-schritt[data-erreichbar="1"] { cursor: pointer; }

.zkk-wrap .zkk-stepper-nr {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--zk-offweiss);
  color: var(--zk-grau60);
  transition: background var(--zk-dauer-zustand) var(--zk-kurve), color var(--zk-dauer-zustand) var(--zk-kurve);
  flex: none;
}

.zkk-wrap .zkk-stepper-schritt.ist-fertig .zkk-stepper-nr {
  background: var(--zk-dunkelgruen);
  color: var(--zk-weiss);
}

.zkk-wrap .zkk-stepper-schritt.ist-aktiv .zkk-stepper-nr {
  background: var(--zk-lime);
  color: var(--zk-dunkelgruen);
}

.zkk-wrap .zkk-stepper-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--zk-textgruen);
  white-space: nowrap;
}

.zkk-wrap .zkk-stepper-schritt.ist-aktiv .zkk-stepper-name {
  font-weight: 700;
  color: var(--zk-dunkelgruen);
}

.zkk-wrap .zkk-stepper-schritt[data-erreichbar="1"]:hover .zkk-stepper-nr { background: #dcf5a3; color: var(--zk-dunkelgruen); }
.zkk-wrap .zkk-stepper-schritt.ist-fertig[data-erreichbar="1"]:hover .zkk-stepper-nr { background: #0f2827; color: var(--zk-weiss); }

.zkk-wrap .zkk-stepper-linie {
  flex: 1;
  height: 1px;
  background: var(--zk-grau10);
  min-width: 8px;
}

.zkk-wrap .zkk-stepper-meta {
  font-size: 14px;
  color: var(--zk-grau60);
  margin-top: 12px;
  display: none;
}

/* ============ Hauptbereich ============ */

.zkk-wrap .zkk-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.zkk-wrap .zkk-step-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--zk-dunkelgruen);
}

.zkk-wrap .zkk-step-intro {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}

.zkk-wrap .zkk-step > * + * { margin-top: 20px; }

/* Einblendung der Schritte */
.zkk-wrap .zkk-step {
  animation: zkk-ein var(--zk-dauer-blende) var(--zk-kurve);
}

@keyframes zkk-ein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============ Karten ============ */

.zkk-wrap .zkk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* Modellkarten wachsen nicht über 250 px, egal wie breit das Fenster ist */
.zkk-wrap .zkk-cards--modelle {
  grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
}

.zkk-wrap .zkk-card {
  background: var(--zk-weiss);
  border: 1px solid var(--zk-grau10);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  padding: 0;
  transition: border-color var(--zk-dauer-zustand) var(--zk-kurve), background var(--zk-dauer-zustand) var(--zk-kurve), box-shadow var(--zk-dauer-zustand) var(--zk-kurve);
  position: relative;
}

.zkk-wrap .zkk-card:hover { background: var(--zk-offweiss); }

.zkk-wrap .zkk-card:focus-visible,
.zkk-wrap .zkk-chip:focus-visible,
.zkk-wrap .zkk-farbe:focus-visible,
.zkk-wrap .zkk-extra:focus-visible,
.zkk-wrap .zkk-check-box:focus-visible,
.zkk-wrap .zkk-btn:focus-visible,
.zkk-wrap .zkk-stepper-schritt:focus-visible,
.zkk-wrap .zkk-mobilbar-toggle:focus-visible {
  outline: 2px solid var(--zk-dunkelgruen);
  outline-offset: 4px;
}

.zkk-wrap .zkk-card.ist-gewaehlt {
  border-color: var(--zk-dunkelgruen);
  box-shadow: inset 0 0 0 1px var(--zk-dunkelgruen), 0 0 0 2px var(--zk-lime);
}

.zkk-wrap .zkk-card-bild {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--zk-offweiss);
  transition: opacity 160ms var(--zk-kurve);
}

.zkk-wrap .zkk-card-body { padding: 10px 14px 14px; line-height: 1.4; }

.zkk-wrap .zkk-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--zk-dunkelgruen);
}

.zkk-wrap .zkk-card-check {
  display: none;
  color: var(--zk-dunkelgruen);
  flex: none;
}

.zkk-wrap .zkk-card.ist-gewaehlt .zkk-card-check { display: inline-flex; }

.zkk-wrap .zkk-card-desc {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}

.zkk-wrap .zkk-card-preis {
  font-size: 13px;
  font-weight: 700;
  color: var(--zk-dunkelgruen);
  margin-top: 6px;
}

.zkk-wrap .zkk-card-aktion {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--zk-dunkelgruen);
  color: var(--zk-lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
}

/* Nicht verfügbare Karten (z. B. Sichtschutzgrad beim gewählten Modell) */
.zkk-wrap .zkk-card.ist-inaktiv {
  background: var(--zk-offweiss);
  cursor: not-allowed;
}

.zkk-wrap .zkk-card.ist-inaktiv .zkk-card-name,
.zkk-wrap .zkk-card.ist-inaktiv .zkk-card-desc {
  color: var(--zk-grau40);
}

.zkk-wrap .zkk-card.ist-inaktiv .zkk-grad-icon span { background: var(--zk-grau40); }

.zkk-wrap .zkk-card-inaktiv-hinweis {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--zk-grau60);
  margin-top: 6px;
}

/* Sichtschutz-Icon (Lamellenbalken) */
.zkk-wrap .zkk-grad-icon {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 36px;
  margin: 14px 14px 0;
}

.zkk-wrap .zkk-grad-icon span {
  height: 4px;
  background: var(--zk-dunkelgruen);
}

.zkk-wrap .zkk-cards--grade .zkk-card-body,
.zkk-wrap .zkk-cards--pfosten .zkk-card-body { padding-top: 8px; }

.zkk-wrap .zkk-pfosten-icon {
  margin: 14px 14px 0;
  color: var(--zk-dunkelgruen);
}

/* ============ Chips (kompakte Auswahl) ============ */

.zkk-wrap .zkk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.zkk-wrap .zkk-chip {
  min-width: 88px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--zk-weiss);
  border: 1px solid var(--zk-grau10);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--zk-dunkelgruen);
  cursor: pointer;
  transition: border-color var(--zk-dauer-zustand) var(--zk-kurve), background var(--zk-dauer-zustand) var(--zk-kurve), box-shadow var(--zk-dauer-zustand) var(--zk-kurve);
}

.zkk-wrap .zkk-chip:hover { background: var(--zk-offweiss); }

.zkk-wrap .zkk-chip:disabled {
  background: var(--zk-grau10);
  border-color: var(--zk-grau10);
  color: var(--zk-grau40);
  cursor: not-allowed;
}

.zkk-wrap .zkk-chip:disabled:hover { background: var(--zk-grau10); }

.zkk-wrap .zkk-chip.ist-gewaehlt {
  border-color: var(--zk-dunkelgruen);
  box-shadow: inset 0 0 0 1px var(--zk-dunkelgruen), 0 0 0 2px var(--zk-lime);
}

.zkk-wrap .zkk-chip-check { display: none; color: var(--zk-dunkelgruen); }
.zkk-wrap .zkk-chip.ist-gewaehlt .zkk-chip-check { display: inline-flex; }

/* Kacheln mit zweiter Zeile, zum Beispiel Torbreite mit Preis */
.zkk-wrap .zkk-chip--zweizeilig {
  flex-direction: column;
  gap: 2px;
  min-width: 112px;
  min-height: 58px;
  padding: 8px 18px;
  line-height: 1.2;
}

.zkk-wrap .zkk-chip-zeile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zkk-wrap .zkk-chip-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--zk-grau60);
}

.zkk-wrap .zkk-chip:disabled .zkk-chip-sub { color: var(--zk-grau40); }

/* Hinweis zur Tor-Füllung mit Bild des gewählten Modells */
.zkk-wrap .zkk-tor-hinweis {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--zk-offweiss);
}

.zkk-wrap .zkk-tor-hinweis-bild {
  flex: none;
  display: block;
  width: 96px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--zk-weiss);
}

.zkk-wrap .zkk-tor-hinweis-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--zk-textgruen);
}

.zkk-wrap .zkk-tor-hinweis-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--zk-dunkelgruen);
}

.zkk-wrap .zkk-tor-hinweis-text p { margin: 0; }

.zkk-wrap .zkk-tor-hinweis-details {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--zk-grau60);
}

/* Schmale Bildschirme: Bild und Überschrift nebeneinander, der Text darunter in voller Breite */
@media (max-width: 479px) {
  .zkk-wrap .zkk-tor-hinweis {
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: center;
    gap: 10px 14px;
    padding: 14px 16px;
  }
  .zkk-wrap .zkk-tor-hinweis-bild { width: 84px; }
  .zkk-wrap .zkk-tor-hinweis-text { display: contents; }
  .zkk-wrap .zkk-tor-hinweis-text strong { margin-bottom: 0; }
  .zkk-wrap .zkk-tor-hinweis-text p,
  .zkk-wrap .zkk-tor-hinweis-details { grid-column: 1 / -1; }
  .zkk-wrap .zkk-tor-hinweis-details { margin-top: 0; }
}

/* ============ Felder und Eingaben ============ */

.zkk-wrap .zkk-feld { margin-top: 20px; }
.zkk-wrap .zkk-feld:first-of-type { margin-top: 0; }

.zkk-wrap .zkk-feld-label,
.zkk-wrap .zkk-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--zk-dunkelgruen);
  margin-bottom: 8px;
}

.zkk-wrap .zkk-optional {
  font-weight: 500;
  color: var(--zk-grau60);
}

.zkk-wrap .zkk-required {
  color: var(--zk-rot);
  font-weight: 700;
}

.zkk-wrap .zkk-pflicht-legende {
  font-size: 13px;
  line-height: 1.45;
  color: var(--zk-grau60);
  margin-bottom: 16px;
}

.zkk-wrap .zkk-input {
  width: 100%;
  max-width: 360px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--zk-grau10);
  border-radius: 0;
  background: var(--zk-weiss);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--zk-dunkelgruen);
  transition: border-color var(--zk-dauer-zustand) var(--zk-kurve), box-shadow var(--zk-dauer-zustand) var(--zk-kurve);
}

.zkk-wrap .zkk-input::placeholder { color: var(--zk-grau40); }

.zkk-wrap .zkk-input:focus {
  outline: none;
  border-color: var(--zk-dunkelgruen);
  box-shadow: 0 0 0 2px var(--zk-lime);
}

.zkk-wrap .zkk-input.hat-fehler { border-color: var(--zk-rot); }

.zkk-wrap .zkk-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath stroke='%23133130' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.zkk-wrap .zkk-textarea {
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.zkk-wrap .zkk-hint {
  font-size: 13px;
  line-height: 1.45;
  color: var(--zk-grau60);
  margin-top: 6px;
}

.zkk-wrap .zkk-meter {
  color: var(--zk-dunkelgruen);
  font-weight: 700;
}

.zkk-wrap .zkk-error {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--zk-rot);
  margin-top: 6px;
}

/* ============ Farben (Schritt 4) ============ */

.zkk-wrap .zkk-farben {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.zkk-wrap .zkk-farbe {
  background: var(--zk-weiss);
  border: 1px solid var(--zk-grau10);
  padding: 10px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--zk-dauer-zustand) var(--zk-kurve), background var(--zk-dauer-zustand) var(--zk-kurve), box-shadow var(--zk-dauer-zustand) var(--zk-kurve);
}

.zkk-wrap .zkk-farbe:hover { background: var(--zk-offweiss); }

.zkk-wrap .zkk-farbe.ist-gewaehlt {
  border-color: var(--zk-dunkelgruen);
  box-shadow: inset 0 0 0 1px var(--zk-dunkelgruen), 0 0 0 2px var(--zk-lime);
}

.zkk-wrap .zkk-farbe-flaeche {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--zk-grau10);
}

.zkk-wrap .zkk-farbe-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--zk-dunkelgruen);
  margin-top: 8px;
}

.zkk-wrap .zkk-farbe-ral {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--zk-grau60);
  margin-top: 2px;
}

.zkk-wrap .zkk-farbe-check { display: none; color: var(--zk-dunkelgruen); }
.zkk-wrap .zkk-farbe.ist-gewaehlt .zkk-farbe-check { display: inline-flex; }

/* ============ Zusatzleistungen (Schritt 7) ============ */

.zkk-wrap .zkk-extras {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zkk-wrap .zkk-extra {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--zk-weiss);
  border: 1px solid var(--zk-grau10);
  padding: 14px 16px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--zk-dauer-zustand) var(--zk-kurve), background var(--zk-dauer-zustand) var(--zk-kurve), box-shadow var(--zk-dauer-zustand) var(--zk-kurve);
}

.zkk-wrap .zkk-extra:hover { background: var(--zk-offweiss); }

.zkk-wrap .zkk-extra.ist-gewaehlt {
  border-color: var(--zk-dunkelgruen);
  box-shadow: inset 0 0 0 1px var(--zk-dunkelgruen), 0 0 0 2px var(--zk-lime);
}

.zkk-wrap .zkk-extra-titel {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--zk-dunkelgruen);
  display: block;
}

.zkk-wrap .zkk-extra-desc {
  font-size: 13px;
  line-height: 1.45;
  margin-top: 2px;
  display: block;
}

/* Muster-Ablauf in der Extra-Karte */
.zkk-wrap .zkk-extra-text { flex: 1; }

.zkk-wrap .zkk-muster-ablauf {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--zk-grau10);
}

.zkk-wrap .zkk-muster-schritt {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--zk-dunkelgruen);
  opacity: 0;
  transform: translateY(6px);
  animation: zkk-muster-ein var(--zk-dauer-blende) var(--zk-kurve) forwards;
}

.zkk-wrap .zkk-muster-schritt:nth-child(3) { animation-delay: 120ms; }
.zkk-wrap .zkk-muster-schritt:nth-child(5) { animation-delay: 240ms; }

.zkk-wrap .zkk-muster-schritt svg { flex: none; margin-top: 2px; }

.zkk-wrap .zkk-muster-schritt strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--zk-dunkelgruen);
}

.zkk-wrap .zkk-muster-schritt span span,
.zkk-wrap .zkk-muster-schritt > span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--zk-textgruen);
  font-weight: 500;
}

.zkk-wrap .zkk-muster-pfeil {
  flex: none;
  color: var(--zk-grau40);
  margin-top: 12px;
  opacity: 0;
  animation: zkk-muster-ein var(--zk-dauer-blende) var(--zk-kurve) forwards;
}

.zkk-wrap .zkk-muster-pfeil:nth-child(2) { animation-delay: 100ms; }
.zkk-wrap .zkk-muster-pfeil:nth-child(4) { animation-delay: 220ms; }

@keyframes zkk-muster-ein {
  to { opacity: 1; transform: none; }
}

/* Eckige Checkbox */
.zkk-wrap .zkk-check-box {
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--zk-grau40);
  background: var(--zk-weiss);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 2px;
  transition: background var(--zk-dauer-zustand) var(--zk-kurve), border-color var(--zk-dauer-zustand) var(--zk-kurve);
}

.zkk-wrap .zkk-check-box.ist-an,
.zkk-wrap .zkk-extra.ist-gewaehlt .zkk-check-box {
  background: var(--zk-dunkelgruen);
  border-color: var(--zk-dunkelgruen);
}

.zkk-wrap .zkk-check-box::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--zk-weiss);
  border-bottom: 2px solid var(--zk-weiss);
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}

.zkk-wrap .zkk-check-box.ist-an::after,
.zkk-wrap .zkk-extra.ist-gewaehlt .zkk-check-box::after { opacity: 1; }

/* ============ Zusammenfassung (Schritt 8) ============ */

.zkk-wrap .zkk-summary {
  background: var(--zk-offweiss);
  border: 1px solid var(--zk-grau10);
}

.zkk-wrap .zkk-summary-bild {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.zkk-wrap .zkk-summary dl { padding: 8px 24px 16px; }

.zkk-wrap .zkk-summary-zeile {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  border-bottom: 1px solid var(--zk-grau10);
  font-size: 13px;
  line-height: 1.4;
}

.zkk-wrap .zkk-summary-zeile:last-child { border-bottom: none; }

.zkk-wrap .zkk-summary-zeile dt { color: var(--zk-textgruen); }

.zkk-wrap .zkk-summary-zeile dd {
  font-weight: 700;
  color: var(--zk-dunkelgruen);
  text-align: right;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.zkk-wrap .zkk-aendern {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--zk-dunkelgruen);
  background: none;
  border: none;
  border-bottom: 2px solid var(--zk-lime);
  padding: 0;
  cursor: pointer;
}

.zkk-wrap .zkk-aendern:hover { border-bottom-color: var(--zk-dunkelgruen); }

.zkk-wrap .zkk-aendern:focus-visible {
  outline: 2px solid var(--zk-dunkelgruen);
  outline-offset: 2px;
}

.zkk-wrap .zkk-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--zk-offweiss);
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--zk-textgruen);
}

.zkk-wrap .zkk-note svg { flex: none; margin-top: 3px; color: var(--zk-dunkelgruen); }

/* ============ Formular ============ */

.zkk-wrap .zkk-form { margin-top: 32px; }

.zkk-wrap .zkk-gruppe-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zk-dunkelgruen);
  margin: 32px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--zk-grau10);
}

.zkk-wrap .zkk-form .zkk-gruppe-label:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.zkk-wrap .zkk-form-row { display: grid; gap: 16px; }
.zkk-wrap .zkk-form-row--2 { grid-template-columns: 1fr 1fr; }
.zkk-wrap .zkk-form-row--plz { grid-template-columns: 140px 1fr; }

.zkk-wrap .zkk-form-feld { margin-bottom: 12px; }
.zkk-wrap .zkk-form .zkk-input { max-width: none; }
.zkk-wrap .zkk-form .zkk-label { margin-bottom: 8px; }

.zkk-wrap .zkk-dsgvo {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
}

.zkk-wrap .zkk-dsgvo-label {
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.zkk-wrap .zkk-link {
  color: var(--zk-dunkelgruen);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--zk-lime);
}

.zkk-wrap .zkk-submit-row { margin-top: 32px; }

.zkk-wrap .zkk-spam-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--zk-grau60);
  margin-top: 12px;
}

/* ============ Erfolg ============ */

.zkk-wrap .zkk-erfolg {
  background:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.05) 0 6px,
      transparent 6px 14px),
    var(--zk-dunkelgruen);
  color: var(--zk-weiss);
  padding: 48px 40px;
  margin-top: 32px;
}

.zkk-wrap .zkk-erfolg svg { color: var(--zk-lime); }

.zkk-wrap .zkk-erfolg strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-top: 16px;
}

.zkk-wrap .zkk-erfolg p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  margin-top: 8px;
  max-width: 560px;
}

/* ============ Buttons ============ */

.zkk-wrap .zkk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--zk-dauer-zustand) var(--zk-kurve), color var(--zk-dauer-zustand) var(--zk-kurve), border-color var(--zk-dauer-zustand) var(--zk-kurve);
}

.zkk-wrap .zkk-btn--primaer {
  background: var(--zk-lime);
  color: var(--zk-dunkelgruen);
  border: none;
}

.zkk-wrap .zkk-btn--primaer:hover { background: #c3ea63; }

.zkk-wrap .zkk-btn--primaer:disabled {
  background: var(--zk-grau10);
  color: var(--zk-grau40);
  cursor: not-allowed;
}

.zkk-wrap .zkk-btn--primaer.ist-inaktiv {
  background: var(--zk-grau10);
  color: var(--zk-grau60);
}

.zkk-wrap .zkk-btn--primaer.ist-inaktiv:hover { background: var(--zk-grau10); }

.zkk-wrap .zkk-btn--sekundaer {
  background: transparent;
  color: var(--zk-dunkelgruen);
  border: 1px solid var(--zk-grau40);
}

.zkk-wrap .zkk-btn--sekundaer:hover { background: var(--zk-offweiss); }

.zkk-wrap .zkk-btn--breit { width: 100%; }

/* ============ Auswahl-Übersicht ============ */

.zkk-wrap .zkk-sidebar {
  position: sticky;
  top: 24px;
}

.zkk-wrap .zkk-sidebar-box {
  background: var(--zk-offweiss);
  padding: 20px;
}

.zkk-wrap .zkk-sidebar-titel {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zk-dunkelgruen);
}

.zkk-wrap .zkk-auswahl { margin-top: 8px; }

.zkk-wrap .zkk-auswahl-zeile {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--zk-grau10);
  font-size: 13px;
  line-height: 1.4;
}

.zkk-wrap .zkk-auswahl-zeile:last-child { border-bottom: none; }

.zkk-wrap .zkk-auswahl-zeile dt { color: var(--zk-textgruen); }

.zkk-wrap .zkk-auswahl-zeile dd {
  font-weight: 700;
  color: var(--zk-dunkelgruen);
  text-align: right;
}

.zkk-wrap .zkk-auswahl-zeile dd.ist-offen {
  font-weight: 500;
  color: var(--zk-grau60);
}

.zkk-wrap .zkk-sidebar .zkk-btn { margin-top: 16px; }
.zkk-wrap .zkk-sidebar .zkk-btn--sekundaer { margin-top: 8px; }

.zkk-wrap .zkk-sidebar-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--zk-grau60);
  margin-top: 12px;
}

/* ============ Mobile Leiste ============ */

.zkk-wrap .zkk-mobilbar, .zkk-wrap .zkk-mobil-panel { display: none; }

/* ============ Bild-Karussell auf der Karte ============ */

.zkk-wrap .zkk-karussell { position: relative; }

.zkk-wrap .zkk-kar-pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zk-weiss);
  border: 1px solid var(--zk-grau10);
  color: var(--zk-dunkelgruen);
  cursor: pointer;
  transition: background var(--zk-dauer-zustand) var(--zk-kurve);
}

.zkk-wrap .zkk-kar-pfeil:hover { background: var(--zk-offweiss); }

.zkk-wrap .zkk-kar-pfeil--links { left: 8px; }
.zkk-wrap .zkk-kar-pfeil--rechts { right: 8px; }

.zkk-wrap .zkk-kar-punkte {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 8px;
}

.zkk-wrap .zkk-kar-punkt {
  width: 7px;
  height: 7px;
  background: var(--zk-grau10);
  transition: background var(--zk-dauer-zustand) var(--zk-kurve);
}

.zkk-wrap .zkk-kar-punkt.ist-aktiv { background: var(--zk-dunkelgruen); }

.zkk-wrap .zkk-farbe-flaeche--wunsch {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zk-dunkelgruen);
}

/* ============ Tablet und Smartphone ============ */

@media (max-width: 1023px) {

  .zkk-wrap { padding: 48px 32px 140px; }

  .zkk-wrap .zkk-stepper .zkk-stepper-name { display: none; }
  .zkk-wrap .zkk-stepper { gap: 8px; }
  .zkk-wrap .zkk-stepper-meta { display: block; }

  .zkk-wrap .zkk-main {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }

  .zkk-wrap .zkk-sidebar { display: none; }

  .zkk-wrap .zkk-mobilbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--zk-weiss);
    border-top: 1px solid var(--zk-grau10);
    padding: 8px 16px 16px;
  }

  .zkk-wrap .zkk-mobilbar-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zk-dunkelgruen);
    padding: 8px 4px;
    cursor: pointer;
  }

  .zkk-wrap .zkk-mobilbar-toggle svg { transition: transform var(--zk-dauer-zustand) var(--zk-kurve); }
  .zkk-wrap .zkk-mobilbar-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .zkk-wrap .zkk-mobilbar-buttons {
    display: flex;
    gap: 8px;
    margin-top: 4px;
  }

  .zkk-wrap .zkk-mobilbar-buttons .zkk-btn--primaer { flex: 1; }
  .zkk-wrap .zkk-mobilbar-buttons .zkk-btn--sekundaer { padding-left: 24px; padding-right: 24px; }

  .zkk-wrap .zkk-mobil-panel {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 49;
    background: var(--zk-offweiss);
    border-top: 1px solid var(--zk-grau10);
    padding: 20px 24px 140px;
    max-height: 60vh;
    overflow-y: auto;
  }

  .zkk-wrap .zkk-mobil-panel[hidden] { display: none; }
}

@media (max-width: 767px) {

  .zkk-wrap { padding: 40px 20px 140px; }

  .zkk-wrap .zkk-headline { font-size: 28px; }

  .zkk-wrap .zkk-intro { font-size: 18px; }

  .zkk-wrap .zkk-aktion { flex-direction: column; gap: 2px; padding: 12px 20px; }

  .zkk-wrap .zkk-stepper { margin-top: 32px; gap: 4px; }

  .zkk-wrap .zkk-stepper-nr { width: 26px; height: 26px; font-size: 12px; }

  .zkk-wrap .zkk-stepper-linie { min-width: 4px; }
}

@media (max-width: 419px) {
  .zkk-wrap .zkk-stepper { gap: 2px; }
  .zkk-wrap .zkk-stepper-nr { width: 24px; height: 24px; font-size: 11px; }
  .zkk-wrap .zkk-stepper-linie { min-width: 2px; }

  .zkk-wrap .zkk-cards { grid-template-columns: 1fr; }

  .zkk-wrap .zkk-farben { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }

  .zkk-wrap .zkk-form-row--2 { grid-template-columns: 1fr; gap: 0; }

  .zkk-wrap .zkk-form-row--plz { grid-template-columns: 120px 1fr; }

  .zkk-wrap .zkk-btn { padding: 14px 24px; font-size: 14px; }

  .zkk-wrap .zkk-summary dl { padding: 4px 16px 12px; }

}

/* ============ Reduzierte Bewegung ============ */

@media (max-width: 599px) {
  .zkk-wrap .zkk-muster-ablauf { flex-direction: column; gap: 10px; }
  .zkk-wrap .zkk-muster-pfeil { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .zkk-wrap .zkk-step { animation: none; }
  .zkk-wrap .zkk-muster-schritt,
  .zkk-wrap .zkk-muster-pfeil { animation: none; opacity: 1; transform: none; }
  .zkk-wrap * { transition-duration: 0ms !important; }
}

/* ============ Ergaenzungen fuer den WordPress-Einsatz ============ */

/* Honeypot: unsichtbar fuer Menschen, sichtbar fuer Bots */
.zkk-wrap .zkk-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Platzhalter, solange ein Modell noch kein Bild hat */
.zkk-wrap .zkk-card-bild--leer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: repeating-linear-gradient(180deg, var(--zk-offweiss) 0 10px, #ECEFEC 10px 13px);
  color: var(--zk-grau40);
  font-size: 12px;
  font-weight: 700;
}
