/**
 * Wunschpreisrechner 2027 (Hochzeit), Phase 1.
 *
 * Mobile First. Eigene Farbtokens im Namensraum .r27, damit der Prototyp das
 * Markengold #d4bc2a verwendet und nicht das dunklere Gold der Basis-CSS.
 * Die Buttons sind bewusst eigene Klassen (.r27-btn) statt .btn--gold, sonst
 * käme die Farbe aus der Basis-CSS und der Prototyp sähe goldbraun aus.
 */

.r27 {
  --r27-gold: #d4bc2a;
  --r27-gold-dunkel: #a8930f;
  --r27-anthrazit: #2e2e2e;
  --r27-anthrazit-dunkel: #1d1d1d;
  --r27-weiss: #ffffff;
  --r27-hellgrau: #f4f4f4;
  --r27-text: #333333;
  --r27-text-leise: #5a5a5a;
  --r27-rand: #e3e3e0;
  /* Auswahlzustand der Zusatzleistungen (Rico 20.11.2026) */
  --r27-gruen: #2e9c47;
  --r27-gruen-dunkel: #1f7a33;
  --r27-gruen-hell: rgba(46, 156, 71, .09);
}

/* ---------------------------------------------------------- Hero */

.r27-hero {
  background: var(--r27-anthrazit-dunkel);
  color: var(--r27-weiss);
  padding: 44px 0 30px;
}
.r27-hero__inner { max-width: 820px; }
.r27-hero__marke {
  display: inline-block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--r27-gold);
  border: 1px solid rgba(212, 188, 42, .45);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 1.1rem;
}
.r27-hero__titel {
  color: var(--r27-weiss);
  font-size: clamp(1.75rem, 6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 .7rem;
}
.r27-hero__text {
  color: rgba(255, 255, 255, .84);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 0 1.8rem;
}

/* ------------------------------------------------- Fortschritt */

.r27-fortschritt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.r27-fortschritt__schritt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  padding: 7px 13px 7px 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 100px;
}
.r27-fortschritt__nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
}
.r27-fortschritt__schritt.is-aktiv {
  color: var(--r27-anthrazit-dunkel);
  background: var(--r27-gold);
  border-color: var(--r27-gold);
}
.r27-fortschritt__schritt.is-aktiv .r27-fortschritt__nr {
  background: var(--r27-anthrazit-dunkel);
  color: var(--r27-gold);
}
.r27-fortschritt__schritt.is-erledigt {
  color: var(--r27-gold);
  border-color: rgba(212, 188, 42, .5);
}
.r27-fortschritt__schritt.is-erledigt .r27-fortschritt__nr {
  background: rgba(212, 188, 42, .22);
  color: var(--r27-gold);
}

/* --------------------------------------------- Heller Hauptbereich */

.r27-haupt {
  background: var(--r27-hellgrau);
  padding: 30px 0 60px;
  color: var(--r27-text);
}

.r27-entwurf {
  border-left: 4px solid var(--r27-gold);
  background: var(--r27-weiss);
  border-radius: 6px;
  padding: 15px 18px;
  margin-bottom: 1.6rem;
  font-size: .85rem;
  color: var(--r27-text);
}
.r27-entwurf p { margin: .35rem 0 .45rem; }
.r27-entwurf ul { margin: 0; padding-left: 1.1rem; list-style: disc; color: var(--r27-text-leise); }

/* Weiße Karte mit feinem Rand */
.r27-karte-gross {
  background: var(--r27-weiss);
  border: 1px solid var(--r27-rand);
  border-radius: 8px;
  padding: 24px 20px;
}

.r27-kopf { margin-bottom: 1.2rem; }

.r27-schritt__titel {
  color: var(--r27-anthrazit);
  margin: 0 0 .5rem;
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  /* 23.11.2026: Schritte sind jetzt h3 statt h2. Zeilenhoehe und Laufweite der
     bisherigen h2-Darstellung bleiben hier erhalten, damit sich optisch nichts aendert. */
  line-height: 1.12;
  letter-spacing: -.035em;
}
.r27-schritt__text {
  color: var(--r27-text-leise);
  max-width: 62ch;
  margin: 0 0 1rem;
  line-height: 1.65;
}
.r27-schritt__text--gross {
  font-size: 1.1rem;
  color: var(--r27-text);
  font-weight: 700;
}
/* Schritt 2: Texte über die volle Inhaltsbreite (Rico 21.11.2026) */
[data-schritt="2"] .r27-schritt__text { max-width: none; }

/* ------------------------------------------------- Budgeteingabe */

.r27-budget { margin: 1.4rem 0 .4rem; }
.r27-budget__label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--r27-text-leise);
  margin-bottom: 8px;
}
.r27-budget__eingabe {
  display: flex;
  align-items: stretch;
  max-width: 340px;
  border: 2px solid var(--r27-rand);
  border-radius: 6px;
  overflow: hidden;
  background: var(--r27-weiss);
}
.r27-budget__eingabe:focus-within { border-color: var(--r27-gold); }
.r27-budget__input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 18px 16px;
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
  color: var(--r27-anthrazit);
  background: transparent;
}
.r27-budget__input:focus { outline: none; }
.r27-budget__euro {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--r27-weiss);
  background: var(--r27-gold);
}

/* ------------------------------------------------- Orientierung */

.r27-orientierung {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.r27-orientierung li {
  background: var(--r27-hellgrau);
  border-radius: 6px;
  padding: 13px 15px;
}
.r27-orientierung strong {
  display: block;
  color: var(--r27-anthrazit);
  margin-bottom: 2px;
  font-size: .95rem;
}
.r27-orientierung span { color: var(--r27-text-leise); font-size: .88rem; line-height: 1.55; }

/* ------------------------------------------------------- Felder */

.r27-raster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 1rem;
}
.r27-gruppe { display: block; }
.r27-feld { display: block; }
.r27-feld__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--r27-anthrazit);
}

/* Pflichtfeld deutlich benennen, nicht nur mit einem Sternchen */
.r27-pflicht {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--r27-gold-dunkel);
  background: rgba(212, 188, 42, .16);
  border-radius: 100px;
  padding: 3px 9px;
}

/* Beispielwerte stehen unter dem Feld, nie als Platzhalter im Feld.
   Ein Platzhalter sieht aus wie ein ausgefuellter Wert und fuehrt dazu,
   dass Pflichtfelder uebersehen werden (Rico 19.11.2026). */
.r27-hilfe {
  display: block;
  font-size: .78rem;
  color: var(--r27-text-leise);
  margin-top: 5px;
  line-height: 1.45;
}
.r27-feld__input::placeholder { color: #9b9b9b; opacity: 1; }
.r27-feld__input {
  width: 100%;
  padding: 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--r27-text);
  background: var(--r27-weiss);
  border: 1px solid var(--r27-rand);
  border-radius: 5px;
}
.r27-feld__input:focus {
  outline: 2px solid var(--r27-gold);
  outline-offset: 1px;
  border-color: var(--r27-gold);
}

.r27-spielzeit {
  background: var(--r27-anthrazit-dunkel);
  color: var(--r27-gold);
  font-weight: 700;
  border-radius: 6px;
  padding: 13px 16px;
  margin: 0 0 1rem;
  min-height: 1.2em;
}
.r27-spielzeit:empty { display: none; }

/* Schritt 2: Spielzeit über Partybeginn und Partyende */
.r27-spielplan {
  margin: 1.4rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--r27-rand);
}
.r27-vorschlag {
  border: 2px solid var(--r27-gold);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 1rem;
  background: var(--r27-weiss);
}
.r27-vorschlag[hidden] { display: none; }
.r27-vorschlag__titel { margin: 0 0 2px; font-weight: 700; color: var(--r27-anthrazit); }
.r27-vorschlag__preis { margin: 0 0 6px; font-size: 1.7rem; font-weight: 700; color: var(--r27-anthrazit); }
.r27-vorschlag__text { margin: 0 0 4px; font-size: .92rem; line-height: 1.55; color: var(--r27-text); }
.r27-vorschlag__text--leise { color: var(--r27-text-leise); margin-bottom: 0; }

/* Schritt 3: Partyzeit kompakt, Felder auf Klick */
.r27-partyzeit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  background: var(--r27-hellgrau);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 0 .6rem;
}
.r27-partyzeit__text { margin: 0; font-weight: 700; color: var(--r27-anthrazit); }
.r27-partyzeit__aendern {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-weight: 700;
  color: var(--r27-anthrazit);
  text-decoration: underline;
  text-decoration-color: var(--r27-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.r27-partyzeit__aendern:hover,
.r27-partyzeit__aendern:focus-visible { color: var(--r27-gold-dunkel); }
.r27-partyzeit__felder { margin: .6rem 0 1rem; }
.r27-partyzeit__felder[hidden] { display: none; }

.r27-fehler {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #a81f1b;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 6px;
}
.r27-fehler::before {
  content: "!";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: #a81f1b;
  color: #fff;
  font-size: .7rem;
}
.r27-fehler:empty { display: none; }

/* Fehlerhaftes Feld selbst markieren, damit die Meldung zuzuordnen ist */
.r27-feld__input.is-fehler,
.r27-budget__eingabe.is-fehler {
  border-color: #a81f1b;
  background: #fdf6f6;
}
.r27-feld__input.is-fehler:focus { outline-color: #a81f1b; }
.r27-gruppe:has(.is-fehler) .r27-hilfe { color: #a81f1b; }

/* --------------------------------------------- Technikauswahl */

.r27-technik {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 1.6rem;
}
.r27-karte {
  display: flex;
  flex-direction: column;
  background: var(--r27-weiss);
  border: 2px solid var(--r27-rand);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.r27-karte:hover { border-color: rgba(212, 188, 42, .6); }
.r27-karte:focus-within { outline: 2px solid var(--r27-gold); outline-offset: 2px; }
/* Ausgewählt: grün, gleiche Logik wie bei den Zusatzleistungen (Rico 20.11.2026) */
.r27-karte.is-gewaehlt {
  border-color: var(--r27-gruen);
  background: var(--r27-gruen-hell);
  box-shadow: 0 10px 26px rgba(29, 29, 29, .16);
}
.r27-karte.is-gewaehlt .r27-karte__titel { color: var(--r27-gruen-dunkel); }
.r27-karte.is-gewaehlt:focus-within { outline-color: var(--r27-gruen); }

.r27-karte__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.r27-karte__bildrahmen { position: relative; display: block; }
.r27-karte__bild {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.r27-karte__haken {
  position: absolute;
  top: 10px;
  left: 10px;
  display: none;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--r27-gruen-dunkel);
  background: var(--r27-weiss);
  border: 2px solid var(--r27-gruen);
  border-radius: 100px;
  padding: 7px 15px;
  box-shadow: 0 3px 10px rgba(29, 29, 29, .22);
}
.r27-karte__haken::before {
  content: "✓";
  font-size: 1.05rem;
  line-height: 1;
}
.r27-karte.is-gewaehlt .r27-karte__haken { display: inline-flex; }
.r27-karte__marke {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: .62rem;
  font-weight: 700;
  color: var(--r27-weiss);
  background: rgba(29, 29, 29, .8);
  border-radius: 100px;
  padding: 4px 10px;
}

.r27-karte__body { display: block; padding: 16px 16px 18px; }
.r27-karte__titel {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--r27-anthrazit);
  margin-bottom: .35rem;
}
.r27-karte__text {
  display: block;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--r27-text-leise);
  margin-bottom: .8rem;
}
.r27-karte__listentitel {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--r27-text-leise);
  margin-bottom: 7px;
}
.r27-karte__liste { display: flex; flex-wrap: wrap; gap: 6px; }
.r27-karte__punkt {
  font-size: .74rem;
  font-weight: 700;
  color: var(--r27-text);
  background: var(--r27-hellgrau);
  border-radius: 100px;
  padding: 5px 11px;
}
.r27-karte.is-gewaehlt .r27-karte__punkt {
  background: rgba(46, 156, 71, .16);
  color: var(--r27-gruen-dunkel);
}
.r27-karte.is-gewaehlt .r27-karte__listentitel { color: var(--r27-gruen-dunkel); }

/* ------------------------------------------------------- Extras */

.r27-zwischen { color: var(--r27-anthrazit); margin: 0 0 .4rem; font-size: 1.2rem; }
.r27-extras {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: .4rem;
}

/* Zeile ohne Bild, Fallback */
.r27-extra {
  border: 2px solid var(--r27-rand);
  border-radius: 6px;
  background: var(--r27-weiss);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.r27-extra__wahl {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  cursor: pointer;
}
.r27-extra:hover { border-color: rgba(212, 188, 42, .6); }
.r27-extra:focus-within { outline: 2px solid var(--r27-gold); outline-offset: 2px; }
.r27-extra__box {
  accent-color: var(--r27-gold);
  width: 21px;
  height: 21px;
  margin-top: 1px;
  flex: 0 0 auto;
}
.r27-extra__body { display: block; }
.r27-extra__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.r27-extra__titel {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--r27-text);
  line-height: 1.45;
}
.r27-extra__preis {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--r27-anthrazit);
  white-space: nowrap;
}
.r27-extra__preiszusatz {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--r27-text-leise);
}
.r27-extra__zusatz {
  display: block;
  font-size: .8rem;
  color: var(--r27-text-leise);
  line-height: 1.5;
  margin-top: 3px;
}
.r27-extra__hinweis {
  display: block;
  font-size: .76rem;
  color: var(--r27-gold-dunkel);
  font-weight: 700;
  margin-top: 3px;
}
/* Ausgewählt: grün, damit der Zustand auf einen Blick erkennbar ist */
.r27-extra:has(input:checked) {
  border-color: var(--r27-gruen);
  background: var(--r27-gruen-hell);
  box-shadow: 0 8px 20px rgba(29, 29, 29, .12);
}
.r27-extra:has(input:checked) .r27-extra__box { accent-color: var(--r27-gruen); }
.r27-extra:has(input:checked) .r27-extra__titel { color: var(--r27-gruen-dunkel); }
.r27-extra:has(input:checked) .r27-extra__menge { border-top-color: rgba(46, 156, 71, .35); }
/* Fokusring passt sich der Auswahl an, sonst liegt Gold auf Gruen */
.r27-extra:has(input:checked):focus-within { outline-color: var(--r27-gruen); }

/* Mengenfeld, steht bewusst außerhalb des Labels, damit ein Klick
   darauf nicht die Auswahl umschaltet. */
.r27-extra__menge {
  border-top: 1px solid var(--r27-rand);
  padding: 12px 15px 14px;
  display: none;
}
.r27-extra:has(input:checked) .r27-extra__menge { display: block; }
.r27-extra__mengenlabel {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  color: var(--r27-anthrazit);
  margin-bottom: 6px;
}
.r27-extra__mengenfeld {
  width: 100%;
  padding: 11px 12px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--r27-text);
  background: var(--r27-weiss);
  border: 1px solid var(--r27-rand);
  border-radius: 5px;
}
.r27-extra__mengenfeld:focus {
  outline: 2px solid var(--r27-gold);
  outline-offset: 1px;
  border-color: var(--r27-gold);
}

/* Karte mit Bild */
.r27-extra--bild .r27-extra__wahl {
  display: block;
  position: relative;
  padding: 0;
}
.r27-extra--bild { position: relative; overflow: hidden; }
.r27-extra--bild .r27-extra__box {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
  border-radius: 3px;
}
.r27-extra__bildrahmen { position: relative; display: block; }
.r27-extra__bild {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.r27-extra__haken {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--r27-gruen-dunkel);
  background: var(--r27-weiss);
  border: 2px solid var(--r27-gruen);
  border-radius: 100px;
  padding: 7px 15px;
  box-shadow: 0 3px 10px rgba(29, 29, 29, .22);
}
.r27-extra__haken::before {
  content: "✓";
  font-size: 1.05rem;
  line-height: 1;
}
.r27-extra--bild:has(input:checked) .r27-extra__haken { display: inline-flex; }
.r27-extra--bild .r27-extra__body { padding: 13px 15px 15px; }

/* ------------------------------------------------------ Ergebnis */

.r27-ergebnis {
  background: var(--r27-anthrazit-dunkel);
  color: var(--r27-weiss);
  border-radius: 8px;
  overflow: hidden;
}
.r27-ergebnis__bild {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.r27-ergebnis__kopf { position: relative; }
.r27-ergebnis__kopfband {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(29, 29, 29, .92), rgba(29, 29, 29, 0));
}
.r27-ergebnis__variante {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--r27-gold);
}
.r27-ergebnis__daten {
  margin: .2rem 0 0;
  font-size: .86rem;
  color: rgba(255, 255, 255, .86);
}
.r27-ergebnis__body { padding: 20px; }

.r27-posten { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.r27-posten__zeile {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  font-size: .92rem;
}
.r27-posten__zeile--inklusive { color: rgba(255, 255, 255, .68); }
.r27-posten__hinweis { padding: 7px 0; font-size: .8rem; color: rgba(255, 255, 255, .6); }

.r27-ergebnis__vorgemerkt,
.r27-ergebnis__entwurf { font-size: .82rem; color: rgba(255, 255, 255, .7); line-height: 1.55; }
.r27-ergebnis__entwurf { border-top: 1px solid rgba(255, 255, 255, .13); padding-top: .8rem; margin-bottom: 0; }

.r27-summe { margin: 0 0 1.1rem; }
.r27-summe div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
}
.r27-summe dt { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.r27-summe dd { margin: 0; font-weight: 700; }
.r27-summe--gross {
  border-top: 2px solid var(--r27-gold);
  margin-top: .4rem;
  padding-top: .4rem;
}
.r27-summe--gross dt { font-size: 1.05rem; color: var(--r27-weiss); font-weight: 700; }
.r27-summe--gross dd { font-size: 1.75rem; color: var(--r27-gold); }

.r27-einordnung {
  border-left: 3px solid var(--r27-gold);
  background: rgba(255, 255, 255, .06);
  border-radius: 0 6px 6px 0;
  padding: 13px 15px;
  margin: 0 0 .7rem;
  font-size: .94rem;
  line-height: 1.6;
}
.r27-einordnung--passt { border-left-color: #5aa65d; }
.r27-einordnung--moderat { border-left-color: var(--r27-gold); }
.r27-einordnung--deutlich { border-left-color: #d98b2b; }
.r27-einordnung--hinweis { border-left-color: rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .82); }

.r27-fussnote {
  font-size: .8rem;
  color: var(--r27-text-leise);
  margin: .9rem 0 0;
}

/* ------------------------------------------------------ Buttons */

.r27-aktionen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.6rem;
}
.r27-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.r27-btn:focus-visible { outline: 3px solid var(--r27-gold); outline-offset: 2px; }
.r27-btn--gold {
  background: var(--r27-gold);
  border-color: var(--r27-gold);
  color: var(--r27-anthrazit-dunkel);
}
.r27-btn--gold:hover:not(:disabled) { background: var(--r27-gold-dunkel); border-color: var(--r27-gold-dunkel); color: var(--r27-weiss); }
.r27-btn--leer {
  background: transparent;
  border-color: var(--r27-rand);
  color: var(--r27-text);
}
.r27-btn--leer:hover { border-color: var(--r27-anthrazit); }
.r27-btn:disabled { opacity: .45; cursor: not-allowed; }

.r27-aktionen--ergebnis { margin-top: 1.2rem; }

/* ---------------------------------------------------- Breakpoints */

@media (min-width: 700px) {
  .r27-hero { padding: 60px 0 40px; }
  .r27-haupt { padding: 38px 0 80px; }
  .r27-karte-gross { padding: 32px 30px; }
  .r27-raster { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .r27-gruppe--breit { grid-column: 1 / -1; }
  .r27-extras { grid-template-columns: repeat(3, 1fr); }
  .r27-orientierung { grid-template-columns: repeat(3, 1fr); }
  .r27-aktionen { flex-direction: row; }
  .r27-btn { width: auto; }
  .r27-ergebnis__body { padding: 28px 30px; }
  .r27-fortschritt__schritt { font-size: .76rem; }
}

@media (min-width: 980px) {
  .r27-technik { grid-template-columns: repeat(3, 1fr); }
  .r27-karte__text { min-height: 86px; }
  .r27-ergebnis__bild { aspect-ratio: 21 / 9; }
  .r27-summe--gross dd { font-size: 2.1rem; }
}

@media (max-width: 420px) {
  .r27-fortschritt__wort { display: none; }
  .r27-fortschritt__schritt { padding: 6px; }
}

/* ---------------------------------------- Programmpunkte (Schritt 3) */

.r27-programm {
  margin: 1.6rem 0;
  padding: 18px;
  background: var(--r27-hellgrau);
  border-radius: 8px;
}
.r27-programm .r27-zwischen { font-size: 1.05rem; margin-bottom: .8rem; }

.r27-wahl { display: grid; gap: 9px; }
.r27-wahl__option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: var(--r27-weiss);
  border: 2px solid var(--r27-rand);
  border-radius: 6px;
  cursor: pointer;
  font-size: .94rem;
  color: var(--r27-text);
}
.r27-wahl__option input { accent-color: var(--r27-gold); width: 20px; height: 20px; }
.r27-wahl__option:has(input:checked) {
  border-color: var(--r27-gruen);
  background: var(--r27-gruen-hell);
  color: var(--r27-gruen-dunkel);
  font-weight: 700;
}
.r27-wahl__option:has(input:checked) input { accent-color: var(--r27-gruen); }

.r27-programmpunkte { display: grid; gap: 11px; margin-top: 14px; }
.r27-pp {
  background: var(--r27-weiss);
  border: 2px solid var(--r27-rand);
  border-radius: 6px;
  transition: border-color .18s ease, background-color .18s ease;
}
.r27-pp.is-gewaehlt { border-color: var(--r27-gruen); background: var(--r27-gruen-hell); }
.r27-pp__wahl { display: flex; align-items: flex-start; gap: 11px; padding: 14px 15px; cursor: pointer; }
.r27-pp__box { accent-color: var(--r27-gold); width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.r27-pp.is-gewaehlt .r27-pp__box { accent-color: var(--r27-gruen); }
.r27-pp__body { display: block; }
.r27-pp__titel { display: block; font-weight: 700; font-size: .96rem; color: var(--r27-text); }
.r27-pp.is-gewaehlt .r27-pp__titel { color: var(--r27-gruen-dunkel); }
.r27-pp__preis {
  display: inline-block;
  margin-top: 3px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--r27-gold-dunkel);
}
.r27-pp__preis--offen { color: var(--r27-text-leise); }
.r27-pp__text { display: block; margin-top: 4px; font-size: .86rem; color: var(--r27-text-leise); line-height: 1.55; }
.r27-pp__liste { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.r27-pp__punkt {
  font-size: .74rem;
  font-weight: 700;
  color: var(--r27-text);
  background: var(--r27-hellgrau);
  border-radius: 100px;
  padding: 5px 11px;
}
.r27-pp.is-gewaehlt .r27-pp__punkt { background: rgba(46, 156, 71, .16); color: var(--r27-gruen-dunkel); }

.r27-pp__zeit {
  display: none;
  gap: 12px;
  padding: 0 15px 14px 46px;
}
.r27-pp.is-gewaehlt .r27-pp__zeit { display: grid; grid-template-columns: 1fr 1fr; }

/* Preise in den Programmpunkt-Karten (Rico 21.11.2026). Gold nur als Akzent. */
.r27-pp__preis[data-pp-preis] {
  font-size: .86rem;
  color: var(--r27-anthrazit);
  background: rgba(212, 188, 42, .16);
  border: 1px solid var(--r27-gold);
  border-radius: 4px;
  padding: 2px 8px;
}
.r27-pp__betrag {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--r27-anthrazit);
  background: var(--r27-weiss);
  border-left: 4px solid var(--r27-gold);
  border-radius: 0 4px 4px 0;
}
.r27-pp__betrag:empty { display: none; }
@media (max-width: 520px) {
  .r27-pp__zeit { padding-left: 15px; }
  .r27-pp__zeit .r27-feld__input { padding-left: 10px; padding-right: 6px; font-size: .95rem; }
}

/* Zwischenstand in Schritt 3 */
.r27-stand {
  margin: 1.2rem 0 1rem;
  padding: 14px 16px;
  border: 2px solid var(--r27-gold);
  border-radius: 6px;
  background: var(--r27-weiss);
}
.r27-stand[hidden] { display: none; }
.r27-stand__werte { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 .6rem; }
.r27-stand__werte dt { margin: 0 0 2px; font-size: .8rem; font-weight: 700; color: var(--r27-text-leise); }
.r27-stand__werte dd { margin: 0; font-size: 1.45rem; font-weight: 800; color: var(--r27-anthrazit); }
.r27-stand__text { margin: 0 0 4px; font-size: .92rem; line-height: 1.55; color: var(--r27-text); }
.r27-stand__text--leise { color: var(--r27-text-leise); margin-bottom: 0; }
.r27-pp__zeitfeld { display: block; }

/* Gruppenüberschrift in der Ergebnisliste */
.r27-posten__gruppe {
  margin: 1.1rem 0 .3rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--r27-gold);
}
.r27-posten__gruppe:first-child { margin-top: 0; }

@media (min-width: 700px) {
  .r27-wahl { grid-template-columns: repeat(2, 1fr); }
  .r27-programm { padding: 24px; }
}

/* Hinweis auf zeitliche Überschneidungen, Schritt 3 */
.r27-zeitkonflikt {
  margin: 14px 0 0;
  padding: 13px 15px;
  background: var(--r27-weiss);
  border: 2px solid #d98b2b;
  border-left-width: 5px;
  border-radius: 6px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--r27-text);
}
.r27-zeitkonflikt__text { margin: 0; }
.r27-zeitkonflikt__ja { margin: 0; display: none; color: var(--r27-gruen-dunkel); font-weight: 700; }
.r27-zeitkonflikt__ok {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}
.r27-zeitkonflikt__ok input { accent-color: var(--r27-gruen); width: 18px; height: 18px; flex: 0 0 auto; }
.r27-zeitkonflikt.is-bestaetigt { border-color: var(--r27-gruen); background: var(--r27-gruen-hell); }
.r27-zeitkonflikt.is-bestaetigt .r27-zeitkonflikt__text { display: none; }
.r27-zeitkonflikt.is-bestaetigt .r27-zeitkonflikt__ja { display: block; }
.r27-zeitkonflikt.is-bestaetigt .r27-zeitkonflikt__ok { color: var(--r27-gruen-dunkel); }
.r27-feld__input.is-konflikt {
  border-color: #d98b2b;
  background: #fdf7ef;
}

/* Ergebnis: Paketpreis und Wunschbudget nebeneinander, Bewertung darunter (Rico 21.11.2026) */
.r27-vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 1.1rem; }
.r27-vergleich__feld { margin: 0; padding: 16px 16px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.r27-vergleich__feld dt { margin: 0 0 4px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .78); }
.r27-vergleich__feld dd { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.15; color: var(--r27-weiss); }
.r27-vergleich__feld--paket { border-color: rgba(212, 188, 42, .55); }
.r27-vergleich__feld--paket dd { color: var(--r27-gold); }
.r27-vergleich__feld--vorschlag { border-color: var(--r27-gold); background: rgba(212, 188, 42, .12); }
.r27-vergleich__feld--vorschlag dd { color: var(--r27-gold); }
.r27-bewertung--saison { border-left-color: var(--r27-gold); }
.r27-bewertung__text--hinweis { padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* Schritt 1: Datum über dem Budget */
.r27-budget--datum { margin-bottom: .2rem; }
.r27-budget__datum { max-width: 340px; font-size: 1.15rem; font-weight: 700; }
.r27-bewertung { margin: 0 0 1rem; padding: 14px 16px; border-left: 4px solid var(--r27-gold); border-radius: 0 10px 10px 0; background: rgba(255, 255, 255, .05); }
.r27-bewertung__titel { margin: 0 0 6px; font-weight: 800; color: var(--r27-weiss); font-size: 1.05rem; }
.r27-bewertung__text { margin: 0 0 6px; color: rgba(255, 255, 255, .86); line-height: 1.55; }
.r27-bewertung__text:last-child { margin-bottom: 0; }
.r27-bewertung--moeglich { border-left-color: #5aa65d; }
.r27-bewertung--anpassung { border-left-color: var(--r27-gold); }
.r27-bewertung--darunter { border-left-color: rgba(255, 255, 255, .55); }
@media (min-width: 760px) { .r27-vergleich__feld dd { font-size: 2rem; } }
@media (max-width: 420px) { .r27-vergleich__feld dd { font-size: 1.3rem; } }

/* Ergebnis in Abschnitten (Rico 21.11.2026) */
.r27-abschnitt { margin: 1.4rem 0 .7rem; font-size: 1.05rem; font-weight: 800; color: var(--r27-weiss); }
.r27-abschnitt:first-child { margin-top: 0; }
.r27-paketdaten { list-style: none; margin: 0 0 .5rem; padding: 0; }
.r27-paketdaten li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .86); font-size: .92rem; }
.r27-paketdaten li span:last-child { font-weight: 700; color: var(--r27-weiss); text-align: right; }
.r27-paket__enthalten { margin: 0 0 1rem; font-size: .86rem; color: rgba(255, 255, 255, .72); }
.r27-vergleich__fuer { margin: -.5rem 0 1rem; font-size: .82rem; color: rgba(255, 255, 255, .66); }
.r27-bewertung--rueckmeldung { border-left-color: var(--r27-gold); }
.r27-gesamt { margin: .4rem 0 1rem; padding: 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.r27-gesamt__titel { margin: 0 0 2px; font-size: .86rem; font-weight: 700; color: rgba(255, 255, 255, .8); }
.r27-gesamt__betrag { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; color: var(--r27-weiss); }
.r27-gesamt__text { margin: 0 0 4px; font-size: .9rem; line-height: 1.55; color: rgba(255, 255, 255, .84); }
.r27-posten__zeile span:last-child { white-space: nowrap; }

/* Schritt 2: zusätzliche Partyzeit getrennt vom Basisvorschlag */
.r27-vorschlag__zusatz { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 4px; padding-top: 8px; border-top: 1px solid var(--r27-rand); font-size: .92rem; font-weight: 700; color: var(--r27-anthrazit); }
.r27-vorschlag__zusatz span:last-child { white-space: nowrap; }
/* Ergebnis: Rechenweg im Paketblock */
.r27-gesamt__rechnung { margin: -4px 0 8px; font-size: .86rem; color: rgba(255, 255, 255, .7); }
/* Freie Trauung: genau eine Variante */
.r27-pp__varianten { display: none; margin: 0; padding: 0 15px 14px 46px; border: 0; }
.r27-pp.is-gewaehlt .r27-pp__varianten { display: block; }
.r27-pp__varianten legend { padding: 0; margin-bottom: 6px; }
.r27-pp__variante { display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; align-items: start; padding: 10px 12px; margin-bottom: 6px; background: var(--r27-weiss); border: 1px solid var(--r27-rand); border-radius: 4px; cursor: pointer; }
.r27-pp__variante input { margin: 2px 0 0; accent-color: var(--r27-gruen); }
.r27-pp__variante-titel { font-weight: 700; font-size: .92rem; color: var(--r27-text); }
.r27-pp__variante-text { display: none; grid-column: 2; font-size: .86rem; line-height: 1.5; color: var(--r27-text-leise); }
.r27-pp__variante:has(input:checked) { border-color: var(--r27-gold); }
.r27-pp__variante:has(input:checked) .r27-pp__variante-text { display: block; }
@media (max-width: 520px) { .r27-pp__varianten { padding-left: 15px; } }

/* Schritt 2: dezenter Preisausstieg als Textbutton (Rico 21.11.2026) */
.r27-ausstieg { margin: 14px 0 0; text-align: center; }
.r27-ausstieg__link { display: inline-block; padding: 8px 4px; font-size: .9rem; color: var(--r27-text-leise); text-decoration: underline; text-underline-offset: 3px; }
.r27-ausstieg__link:hover, .r27-ausstieg__link:focus-visible { color: var(--r27-anthrazit); }
.r27-ausstieg__link:focus-visible { outline: 2px solid var(--r27-gold); outline-offset: 2px; }
@media (min-width: 700px) { .r27-ausstieg { text-align: left; } }
a.r27-btn { text-decoration: none; }

/* Anfrage in Schritt 5 (Rico 21.11.2026) */
.r27-anfrage { margin-top: 1.4rem; padding: 20px; background: var(--r27-weiss); border: 1px solid var(--r27-rand); border-radius: 8px; color: var(--r27-text); }
.r27-anfrage[hidden] { display: none; }
.r27-anfrage textarea.r27-feld__input { min-height: 90px; resize: vertical; font-family: inherit; }
.r27-anfrage .r27-hilfe { display: block; margin: 0 0 8px; }
.r27-anfrage .r27-hilfe a { color: inherit; text-decoration: underline; }
.r27-honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.r27-anfrage__meldung:empty { display: none; }

/* ------------------------------------------- Variante: dunkler Kopf
   23.11.2026, Designregel Rico: Hellgold und Hellgrau dürfen nicht direkt aufeinander folgen.
   Folgt der Rechner auf einen hellgoldenen Abschnitt, setzt die Seite $r27_kopf = 'dunkel'.
   Nur Farben aus den vorhandenen Variablen, Aufbau und Abstände bleiben gleich. */
.r27--kopf-dunkel .r27-hero {
  background: var(--r27-anthrazit-dunkel);
  color: var(--r27-weiss);
}
.r27--kopf-dunkel .r27-hero__marke {
  color: var(--r27-gold);
  border-color: rgba(212, 188, 42, .45);
}
.r27--kopf-dunkel .r27-hero__titel { color: var(--r27-weiss); }
.r27--kopf-dunkel .r27-hero__text { color: rgba(255, 255, 255, .84); }
.r27--kopf-dunkel .r27-fortschritt__schritt:not(.is-aktiv):not(.is-erledigt) {
  color: rgba(255, 255, 255, .72);
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
}
.r27--kopf-dunkel .r27-fortschritt__schritt:not(.is-aktiv):not(.is-erledigt) .r27-fortschritt__nr {
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .85);
}
.r27--kopf-dunkel .r27-fortschritt__schritt.is-erledigt {
  color: var(--r27-gold);
  background: transparent;
  border-color: rgba(212, 188, 42, .5);
}
.r27--kopf-dunkel .r27-fortschritt__schritt.is-erledigt .r27-fortschritt__nr {
  background: rgba(212, 188, 42, .22);
  color: var(--r27-gold);
}

/* ------------------------------------- Variante: auf hellgoldener Flaeche
   23.11.2026 (Rico): Marktpreise und Rechner bilden auf den Ortsseiten einen gemeinsamen hellgoldenen
   Abschnitt. Die Seite setzt $r27_flaeche = 'gold'. Kein dunkler Kopf, keine hellgraue Flaeche,
   die Formularkarten bleiben weiss. Nur vorhandene Farbvariablen. */
.r27--flaeche-gold .r27-hero,
.r27--flaeche-gold .r27-haupt { background: transparent; }
.r27--flaeche-gold .r27-hero { color: var(--r27-text); padding-top: 8px; }
.r27--flaeche-gold .r27-hero__marke { color: var(--r27-gold-dunkel); border-color: rgba(168, 147, 15, .45); }
.r27--flaeche-gold .r27-hero__titel { color: var(--r27-anthrazit); }
.r27--flaeche-gold .r27-hero__text { color: var(--r27-text-leise); }
.r27--flaeche-gold .r27-fortschritt__schritt:not(.is-aktiv):not(.is-erledigt) {
  color: var(--r27-text-leise); background: var(--r27-weiss); border-color: var(--r27-rand);
}
.r27--flaeche-gold .r27-fortschritt__schritt:not(.is-aktiv):not(.is-erledigt) .r27-fortschritt__nr {
  background: rgba(0, 0, 0, .07); color: var(--r27-text-leise);
}
.r27--flaeche-gold .r27-fortschritt__schritt.is-erledigt {
  color: var(--r27-gold-dunkel); background: var(--r27-weiss); border-color: rgba(168, 147, 15, .5);
}
.r27--flaeche-gold .r27-fortschritt__schritt.is-erledigt .r27-fortschritt__nr {
  background: rgba(212, 188, 42, .34); color: var(--r27-gold-dunkel);
}
