/* Preise /preise/: ergänzt v3.css, nutzt dieselben Farben, Schriften und Karten (v3-advisor-option). */

.preise-hero {
  padding-bottom: var(--s4);
}

.preise-entwurf {
  display: inline-block;
  max-width: 40rem;
  margin: var(--s3) 0 0;
  padding: 10px 14px;
  border: 1px solid var(--amber);
  border-radius: 12px;
  background: var(--amber-tint);
  color: #4a3410;
  font-size: .95rem;
  line-height: 1.5;
}

.preise-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin: var(--s3) 0 0;
}

.preise-textlink,
.preise-nojs a,
.preise-tabellen a,
.preise-kontakt a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preise-nojs {
  max-width: 42rem;
  margin: 0;
}

.preise-klein {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

/* ---------- A) Preise auf einen Blick ---------- */

.preise-ansicht {
  display: grid;
  gap: var(--s2);
}

.preise-umschalter {
  display: grid;
  gap: 8px;
  justify-self: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.preise-umschalter legend {
  margin: 0 0 8px;
  padding: 0;
  color: var(--muted);
  font: 600 .7rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preise-umschalter-optionen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(27,49,84,.16);
  border-radius: 26px;
  background: #fff;
}

.preise-umschalter label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 18px;
  border-radius: 22px;
  text-align: center;
  line-height: 1.25;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.preise-umschalter input {
  position: absolute;
  opacity: 0;
}

@media (max-width: 520px) {
  .preise-umschalter { justify-self: stretch; }
  .preise-umschalter-optionen { grid-template-columns: 1fr 1fr; }
  .preise-umschalter label { padding: 6px 10px; font-size: .88rem; }
}

.preise-umschalter label:has(input:checked) {
  background: var(--navy);
  color: #fff;
}

.preise-umschalter label:has(input:focus-visible) {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.preise-liste {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.preise-zeile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: var(--s2) var(--s3);
  padding: var(--s3);
  border: 1.5px solid rgba(27,49,84,.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.preise-zeile > .preise-info,
.preise-zeile > .preise-groessen {
  grid-column: 1 / -1;
}

.preise-zeile h3 {
  margin: 0;
  font: 600 1.08rem/1.3 var(--body);
}

.preise-zeile-text p {
  margin: 2px 0 0;
  color: #3d3d39;
  font-size: .9rem;
  line-height: 1.45;
}

.preise-zeile-preis {
  display: grid;
  justify-items: end;
  margin: 0;
  text-align: right;
}

.preise-zeile-preis strong {
  color: var(--navy);
  font: 600 1.12rem/1.3 var(--body);
  white-space: nowrap;
}

.preise-zeile-preis span {
  color: #55554f;
  font-size: .84rem;
}

@media (max-width: 620px) {
  .preise-zeile {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: var(--s2) var(--s2) var(--s2) var(--s2);
  }

  .preise-zeile-preis {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-items: start;
    text-align: left;
  }

  .preise-zeile-preis strong {
    white-space: normal;
  }
}

.preise-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--navy-tint);
  color: var(--navy);
}

.preise-symbol svg {
  width: 24px;
  height: 24px;
}

/* Info-Zeichen: echter Button, mindestens 44 × 44 px Trefferfläche. */
.preise-info-knopf {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(27,49,84,.2);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.preise-info-knopf:hover {
  border-color: var(--navy);
}

.preise-info-knopf[aria-expanded="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.preise-info-knopf:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.preise-info-symbol svg {
  display: block;
  width: 22px;
  height: 22px;
}

.preise-info {
  padding: var(--s2) var(--s3);
  border-radius: 14px;
  background: var(--navy-tint);
  font-size: .92rem;
  line-height: 1.5;
}

.preise-info dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.preise-info dt {
  color: var(--navy);
  font: 600 .7rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preise-info dd {
  margin: 2px 0 0;
  color: #2a2a27;
}

.preise-info ul {
  margin: 0;
  padding-left: 1.1em;
}

.preise-vorteil {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--amber-tint);
  color: #4a3410;
  font-size: .86rem;
  line-height: 1.5;
}

.preise-groessen {
  border-top: 1px solid var(--line);
  padding-top: var(--s2);
}

.preise-groessen summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}

.preise-groessen summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 6px;
}

.preise-groessen-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--s2);
  margin: var(--s2) 0;
  padding: 0;
  list-style: none;
}

.preise-groesse {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: var(--s2);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfbfa;
}

.preise-groesse-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.preise-groesse h4 {
  margin: 0;
  font: 600 1.05rem/1.3 var(--body);
}

.preise-groesse p {
  margin: 0;
  color: #3d3d39;
  font-size: .9rem;
  line-height: 1.45;
}

.preise-groesse .preise-groesse-preise {
  display: grid;
  color: var(--navy);
  font: 600 .84rem/1.5 var(--mono);
}

.preise-bild {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy-tint);
}

/* ---------- B) Assistent ---------- */

.preise-assistent {
  display: grid;
  gap: var(--s3);
  max-width: 56rem;
  padding: var(--s4);
  border: 1.5px solid rgba(27,49,84,.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

@media (max-width: 620px) {
  .preise-assistent {
    padding: var(--s3) var(--s2);
    border-radius: 18px;
  }
}

.preise-fortschritt {
  display: grid;
  gap: 8px;
}

.preise-fortschritt-text {
  margin: 0;
  color: var(--muted);
  font: 600 .72rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preise-fortschritt-liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}

.preise-fortschritt-liste li {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .8rem;
  counter-increment: schritt;
}

.preise-fortschritt-liste li::before {
  content: "";
  height: 6px;
  border-radius: 999px;
  background: rgba(27,49,84,.12);
  transition: background .3s ease;
}

.preise-fortschritt-liste li.ist-fertig::before,
.preise-fortschritt-liste li[aria-current="step"]::before {
  background: var(--navy);
}

.preise-fortschritt-liste li[aria-current="step"] {
  color: var(--navy);
  font-weight: 600;
}

.preise-kurz {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font: 600 .86rem/1.45 var(--mono);
  font-variant-numeric: tabular-nums;
}

.preise-schritt {
  display: grid;
  gap: var(--s2);
  min-width: 0;
}

.preise-schritt h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
}

.preise-schritt h3:focus {
  outline: none;
}

.preise-schritt h3:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
  border-radius: 4px;
}

.preise-gruppe,
.preise-unter {
  display: grid;
  gap: var(--s2);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.preise-unter {
  margin-top: var(--s2);
}

.preise-unter > legend {
  margin-bottom: var(--s2);
  padding: 0;
  color: var(--ink);
  font: 600 1.05rem/1.3 var(--body);
}

.preise-gruppe > legend.preise-klein {
  margin-bottom: 4px;
  padding: 0;
}

.preise-karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--s2);
}

@media (min-width: 560px) {
  .preise-karten-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .preise-karten-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.preise-wahl {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
}

.preise-wahl > .preise-info-knopf {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Einspaltig auch unter 620 px (v3.css legt dort für Beratungskarten eine Icon-Spalte an). */
.preise-karte {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: 0;
  height: 100%;
  gap: 6px;
  padding: var(--s2) var(--s3) var(--s3);
}

.preise-wahl:has(> .preise-info-knopf) .preise-karte {
  padding-right: 64px;
}

.preise-karte .preise-symbol {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
}

.preise-karte .preise-bild {
  margin-bottom: 6px;
}

.preise-karte strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

/* Sichtbares Auswahlzeichen, damit der Zustand nicht nur an der Farbe hängt. */
.preise-karte strong::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--navy-2);
  border-radius: 50%;
  background: #fff;
}

.preise-karte:has(input[type="checkbox"]) strong::before {
  border-radius: 5px;
}

.preise-karte:has(input:checked) strong::before {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: inset 0 0 0 3px #fff;
}

/* Kurze Rückmeldung, wenn eine Karte gewählt wird. */
.preise-karte:has(input:checked) {
  animation: preise-tipp .28s ease-out;
}

.preise-karte span {
  color: #3d3d39;
  font-size: .92rem;
  line-height: 1.45;
}

.preise-karte .preise-preis,
.preise-zahlen .preise-preis {
  color: var(--navy);
  font: 600 .8rem/1.4 var(--mono);
}

.preise-zahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--s3);
}

.preise-zahlen .field {
  display: grid;
  gap: 6px;
}

.preise-zahlen label {
  font-weight: 600;
}

.preise-zahlen input {
  width: 100%;
  max-width: 10rem;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(27,49,84,.24);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--body);
}

.preise-zahlen input:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.preise-merke {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--navy-tint);
  color: var(--navy);
}

.preise-unverbindlich {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--amber);
  border-radius: 12px;
  background: var(--amber-tint);
  color: #4a3410;
  line-height: 1.5;
}

.preise-offen {
  margin: 0;
  padding: var(--s3);
  border-radius: 16px;
  background: var(--navy-tint);
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.5;
}

.preise-ergebnis {
  display: grid;
  gap: var(--s2);
}

.preise-gross {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}

.preise-gross p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: var(--s2) var(--s3);
  border-radius: 16px;
  background: var(--navy-tint);
}

.preise-gross p > span {
  color: #3d3d39;
  font-size: .86rem;
}

.preise-gross strong {
  color: var(--navy);
  font: 600 clamp(1.5rem, 5vw, 2.3rem)/1.15 var(--body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

.preise-modus {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.preise-entwurf-kurz {
  color: #7a4b05;
}

.preise-posten {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.preise-posten li {
  display: grid;
  gap: 2px;
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  line-height: 1.45;
}

.preise-einfuehrung {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--amber-tint);
  color: #4a3410;
  font-size: .85rem;
}

.preise-summen dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.preise-summen dl > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
}

.preise-summen dt {
  color: #3d3d39;
  font-size: .9rem;
}

.preise-summen dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Info-Zeichen steht neben der Frage, nicht in der legend. */
.preise-referenz {
  position: relative;
  padding: var(--s2) var(--s3);
  border: 1.5px solid rgba(27,49,84,.14);
  border-radius: 16px;
}

.preise-referenz > legend {
  float: left;
  width: 100%;
  margin-bottom: var(--s2);
  padding: 4px 56px 0 0;
}

.preise-referenz > legend ~ * {
  clear: both;
}

.preise-referenz > .preise-info-knopf {
  position: absolute;
  top: 10px;
  right: 10px;
}

.preise-gruppe[aria-invalid="true"] .preise-karte,
.preise-unter[aria-invalid="true"] .preise-karte {
  border-color: #a12a2a;
}

.preise-unter[aria-invalid="true"] .preise-zahlen input {
  border-color: #a12a2a;
}

.preise-referenz > .preise-info {
  margin-top: 4px;
}

.preise-ja-nein {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.preise-ja-nein label,
.preise-kontakt .preise-ja-nein label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid rgba(27,49,84,.2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 500 .98rem/1.3 var(--body);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.preise-ja-nein label:has(input:checked) {
  border-color: var(--navy);
  background: var(--navy-tint);
}

.preise-ja-nein input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--navy);
}

.preise-kontakt {
  align-items: start;
}

.preise-kontakt .preise-unter {
  margin: 0;
}

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

.preise-kontakt [aria-invalid="true"],
.preise-zahlen [aria-invalid="true"] {
  border-color: #a12a2a;
  box-shadow: 0 0 0 2px rgba(161,42,42,.18);
}

.preise-fehler {
  padding: 10px 14px;
  border: 1px solid #a12a2a;
  border-radius: 12px;
  background: #fdf0f0;
  color: #6e1515;
  font-size: .92rem;
  line-height: 1.5;
}

.preise-fehler ul {
  margin: 4px 0 0;
  padding-left: 1.1em;
}

.preise-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
}

.preise-nav [data-weiter],
.preise-nav [data-senden] {
  margin-left: auto;
}

.preise-nav .pill {
  min-height: 46px;
  padding: 0 20px;
  font-size: .95rem;
  cursor: pointer;
}

.preise-zurueck {
  border: 1.5px solid rgba(27,49,84,.24);
  background: #fff;
  color: var(--navy);
}

.preise-nav .pill:disabled {
  opacity: .6;
  cursor: progress;
}

.preise-assistent .form-note {
  margin: 0;
  color: #3d3d39;
  font-size: .9rem;
  line-height: 1.5;
}

.preise-assistent .form-note:empty {
  display: none;
}

.preise-erfolg {
  max-width: 56rem;
  padding: var(--s4);
  border: 1.5px solid var(--navy);
  border-radius: 24px;
  background: #fff;
}

.preise-erfolg h3 {
  margin: 0 0 var(--s1);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.preise-erfolg p {
  margin: 0;
}

.preise-erfolg .preise-buchung {
  margin-top: var(--s3);
}

.preise-erfolg .preise-buchung-hinweis {
  margin-top: var(--s1);
  color: var(--muted);
  font-size: .85rem;
}

/* ---------- Statische Preisliste (ohne JavaScript) ---------- */

.preise-tabellen {
  display: grid;
  gap: var(--s4);
}

@media (min-width: 960px) {
  .preise-tabellen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.preise-tabelle {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  font-size: .92rem;
  line-height: 1.45;
}

.preise-tabelle caption {
  padding-bottom: var(--s2);
  text-align: left;
  color: #3d3d39;
}

.preise-tabelle caption strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.preise-tabelle th,
.preise-tabelle td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.preise-tabelle thead th {
  color: var(--muted);
  font: 600 .7rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preise-tabelle tbody th {
  font-weight: 600;
}

.preise-tabelle tbody th span,
.preise-tabelle td span {
  display: block;
  color: #55554f;
  font-weight: 400;
  font-size: .84rem;
}

.preise-tabelle td strong {
  white-space: nowrap;
}

.preise-tabellen + .preise-klein {
  margin-top: var(--s3);
}

/* ---------- Bewegung (nur transform und opacity, kein Layout-Sprung) ---------- */

.preise-einblenden {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.preise-einblenden.ist-da {
  opacity: 1;
  transform: none;
}

@keyframes preise-tipp {
  0% { transform: scale(1); }
  45% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .preise-einblenden {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .preise-info,
  .preise-schritt,
  .preise-karte:has(input:checked) {
    animation: none;
  }

  .preise-karte,
  .preise-umschalter label,
  .preise-info-knopf,
  .preise-fortschritt-liste li::before {
    transition: none;
  }

  .preise-karte:hover {
    translate: none;
  }
}

/* Dekorative Illustrationen der Preisseite. */
.preise-hero-illu,
.preise-schritt-illu { display: none; }
.preise-info-illu { display: block; width: min(100%, 240px); height: auto; margin: 0 0 var(--s2); }
.preise-fortschritt-liste .preise-symbol { width: 20px; height: 20px; }
.preise-fortschritt-liste .preise-symbol svg,
.preise-ja-nein .preise-symbol svg,
.preise-referenz legend .preise-symbol svg { width: 20px; height: 20px; }
.preise-ja-nein .preise-symbol,
.preise-referenz legend .preise-symbol { display: inline-flex; width: 20px; height: 20px; vertical-align: middle; margin-inline: 6px; }
@media (min-width: 700px) {
  .preise-schritt-illu { display: block; width: 120px; height: auto; }
}
@media (min-width: 900px) {
  .preise-hero-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 38%); gap: var(--s3); align-items: center; }
  .preise-hero-illu { display: block; width: 100%; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
