/* =====================================================
   HochzeitsDJ24 — Formular- und Bereichs-Styles
   Ergänzt style.css
   ===================================================== */

/* ---------- Ruhiger, warmer Untergrund statt grellem Weiß ---------- */
:root {
  --papier: #f4f0e9;          /* Seitenhintergrund */
  --flaeche: #fbf9f5;         /* Karten und Formulare */
  --weich: 0 1px 2px rgba(43, 36, 24, 0.04),
           0 8px 28px rgba(43, 36, 24, 0.055);
  --weich-tief: 0 2px 4px rgba(43, 36, 24, 0.05),
                0 18px 50px rgba(43, 36, 24, 0.08);
  --rund: 10px;
}

body { background: var(--papier); }

/* Weichere Linien auf den Unterseiten */
body { --line: rgba(43, 36, 24, 0.14); }

.page-head {
  padding: 190px 0 70px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 18ch; margin-bottom: 1.6rem; }
.page-head p { color: var(--grey); max-width: 56ch; font-size: 1.08rem; }

/* Header auf hellen Unterseiten immer dunkel */
.header--solid {
  background: rgba(244, 240, 233, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header--solid .wordmark { color: var(--ink); }

/* ---------- Fortschritt ---------- */
.progress { padding: 44px 0 0; }
.progress__bar { height: 1px; background: var(--line); position: relative; }
.progress__fill {
  position: absolute; left: 0; top: 0; height: 1px;
  background: var(--gold);
  width: 0;
  transition: width 0.6s var(--ease);
}
.progress__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Schritte ---------- */
.wizard { padding: 48px 0 120px; }
.wizard > .shell > form,
.wizard > .shell > .done {
  background: var(--flaeche);
  border-radius: var(--rund);
  box-shadow: var(--weich);
  padding: clamp(32px, 5vw, 64px);
}
.step { display: none; }
.step.is-active { display: block; animation: stepIn 0.6s var(--ease); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.step__head { margin-bottom: 42px; max-width: 640px; }
.step__head h2 { margin-bottom: 1rem; }
.step__head p { color: var(--grey); font-size: 1.05rem; }

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

/* ---------- Felder hell ---------- */
.f { margin-bottom: 30px; }
.f label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}
.f input, .f select, .f textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  font-family: var(--font-text);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.4s var(--ease);
}
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 144, 31, 0.13);
}
.f textarea { resize: vertical; }
.f__hint { font-size: 0.92rem; color: var(--grey); margin-top: 8px; }
.f--invalid input, .f--invalid select { border-color: #b23a3a; }

/* ---------- Auswahlkacheln ---------- */
.opts { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 16px; margin-bottom: 34px; }
.opt {
  border: 1px solid var(--line);
  border-radius: var(--rund);
  background: var(--white);
  padding: 26px 28px;
  cursor: pointer;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease),
              box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  position: relative;
}
.opt:hover { border-color: rgba(180,144,31,0.5); box-shadow: var(--weich); transform: translateY(-2px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
/* Das Eingabeelement ist unsichtbar (opacity:0) — ohne diese Regel hätten
   Tastaturnutzer beim Durchtabben keinerlei sichtbaren Fokus. */
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt__title { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 6px; }
.opt__desc { font-size: 0.93rem; color: var(--grey); line-height: 1.6; }
.opt:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); }
.opt__bilder { display: flex; gap: 8px; margin-top: 14px; }
.opt__bilder img {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  box-shadow: var(--weich);
}
.opt__mark {
  position: absolute; top: 22px; right: 24px;
  width: 16px; height: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all 0.3s;
}
.opt:has(input:checked) .opt__mark { border-color: var(--gold); background: var(--gold); }

/* Zusätzliche Details je Kachel — klappen beim Überfahren mit der Maus auf.
   Auf Touch-Geräten (kein Hover) sind sie dauerhaft sichtbar. */
.opt__more {
  interpolate-size: allow-keywords;
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
  height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.45s var(--ease), opacity 0.35s var(--ease), margin 0.45s var(--ease);
}
.opt:hover .opt__more, .opt:focus-within .opt__more {
  height: auto;
  margin-top: 10px;
  opacity: 1;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
@media (hover: none) {
  .opt__more { height: auto; margin-top: 10px; opacity: 1; padding-top: 10px; border-top: 1px dashed var(--line); }
}

/* ---------- Navigation ---------- */
.wizard__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.wizard__nav .btn { min-width: 160px; }
.btn--ghost { background: none; border: 0; color: var(--grey); padding-left: 0; }
.btn--ghost:hover { color: var(--ink); }

/* ---------- Zusammenfassung ---------- */
.summary { border-top: 1px solid var(--line); }
.summary__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.summary__row dt { color: var(--grey); font-size: 0.89rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.summary__row dd { margin: 0; }

/* ---------- Gruppierte Zusammenfassung (Angebots-Übersicht) ----------
   Statt einer einzigen, sehr langen Zeilenliste wird die Übersicht in
   thematische Blöcke mit eigener Überschrift gegliedert — besser lesbar
   und man erkennt auf einen Blick, worum es in welchem Abschnitt geht. */
.summary-gruppe + .summary-gruppe { margin-top: 40px; }
.summary-gruppe__titel {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 6px;
}
.summary-gruppe__titel::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(180, 144, 31, 0.35), transparent);
}
.summary-gruppe .summary { border-top: 0; }
.summary-gruppe .summary__row:first-child { border-top: 1px solid var(--line); }

/* Gebuchtes Paket als eigene, hervorgehobene Karte statt einer Zeile —
   damit auf einen Blick klar ist, dass hier ein Pauschalpreis gilt. */
.summary-paket {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--gold-tint);
  border: 1px solid rgba(180, 144, 31, 0.3);
  border-radius: var(--rund);
  padding: 20px 26px;
  margin-bottom: 34px;
}
.summary-paket__name { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 2px; }
.summary-paket__hinweis { margin: 0; font-size: 0.88rem; color: var(--ink-80); }
.summary-paket__preis { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-deep); white-space: nowrap; }

/* ---------- Hinweisbox ---------- */
/* ---------- Feedback-Chat Kunde <-> DJ ---------- */
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 2px;
  margin-bottom: 16px;
}
.chat__leer { font-size: 0.92rem; color: var(--grey); }
.chat__nachricht {
  max-width: 85%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 16px;
  align-self: flex-start;
}
.chat__nachricht--ich {
  align-self: flex-end;
  background: var(--gold-tint, #faf5e6);
  border-color: rgba(180, 144, 31, 0.35);
  border-radius: 12px 12px 4px 12px;
}
.chat__nachricht p { font-size: 0.95rem; margin: 2px 0 0; line-height: 1.55; word-break: break-word; }
.chat__von { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep, #8a6d14); }
.chat__zeit { display: block; font-size: 0.72rem; color: var(--grey); margin-top: 6px; }
.chat__eingabe { display: flex; gap: 10px; align-items: flex-end; }
.chat__eingabe textarea { flex: 1; resize: vertical; min-height: 52px; }

.notice {
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--rund) var(--rund) 0;
  background: rgba(180, 144, 31, 0.07);
  padding: 28px 32px;
  margin: 38px 0;
  position: relative;
}
.notice h4 { margin-bottom: 10px; }
.notice p { font-size: 0.98rem; color: var(--ink-80); margin: 0; }
.notice--fehler { border-left-color: #b23a3a; background: rgba(178, 58, 58, 0.07); }
/* Preis in der Live-Empfehlung ("voraussichtlicher Preis") betont, statt im
   Fließtext unterzugehen. */
.preis-hervorgehoben { color: var(--gold-deep); font-weight: 700; }
.notice--fehler h4 { color: #b23a3a; }
/* Je nachdem, wo ein Hinweiskasten im Dokument auftaucht, muss sein Titel
   auf h1, h2 oder h3 stehen, damit keine Überschriftenebene übersprungen
   wird (z.B. direkt nach einem h1 auf Datenschutz/Impressum oder im
   Kundenbereich, je nach Anfragestatus) — optisch immer wie .notice h4. */
.notice h1, .notice h2, .notice h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-family: var(--font-text);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.notice--fehler h1, .notice--fehler h2, .notice--fehler h3 { color: #b23a3a; }

/* Rechtstexte (Impressum/Datenschutz): Abschnitte sind semantisch h2
   (folgen direkt auf das h1), sollen optisch aber die kompaktere Größe der
   übrigen h3-Unterüberschriften im Fließtext behalten. */
.rechts-titel { font-size: clamp(1.35rem, 1.9vw, 1.75rem); }

/* ---------- Kundenbereich: Fortschrittsanzeige ---------- */
.kb-steps {
  display: flex;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  counter-reset: none;
}
.kb-steps__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--grey);
  position: relative;
}
.kb-steps__item::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  margin: 0 4px;
}
.kb-steps__item:last-child::after { display: none; }
.kb-steps__punkt {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey);
  background: var(--flaeche);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.kb-steps__text { white-space: nowrap; }
.kb-steps__item.is-done .kb-steps__punkt {
  background: var(--gold); border-color: var(--gold); color: var(--white);
}
.kb-steps__item.is-done { color: var(--ink); }
.kb-steps__item.is-done::after { background: var(--gold); }
.kb-steps__item.is-aktiv .kb-steps__punkt {
  border-color: var(--gold); color: var(--gold-deep);
  animation: kbStepPuls 1.8s ease-in-out infinite;
}
.kb-steps__item.is-aktiv { color: var(--ink); font-weight: 500; }
@keyframes kbStepPuls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 144, 31, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(180, 144, 31, 0); }
}
@media (max-width: 640px) {
  .kb-steps { flex-wrap: wrap; row-gap: 14px; }
  .kb-steps__item { flex: 1 1 45%; }
  .kb-steps__item::after { display: none; }
}

/* Kleine Equalizer-Deko in der "wird geprüft"-Karte — signalisiert
   spielerisch, dass hier gerade etwas in Arbeit ist. */
.notice--wartet { padding-top: 24px; }
.notice__eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 15px; margin-bottom: 12px; }
.notice__eq i { width: 3px; background: var(--gold); display: block; border-radius: 1px; animation: eqTanzHell 1.2s ease-in-out infinite; }
.notice__eq i:nth-child(1) { height: 45%; }
.notice__eq i:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.notice__eq i:nth-child(3) { height: 65%; animation-delay: 0.3s; }
@keyframes eqTanzHell {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 34px 0;
  font-size: 0.95rem;
  color: var(--ink-80);
}
.consent input { margin-top: 5px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.consent.f--invalid { outline: 1px solid #b23a3a; outline-offset: 8px; border-radius: 2px; }

/* ---------- Erfolgsmeldung ---------- */
.done { text-align: center; padding: 80px 0; display: none; }
.done.is-active { display: block; }
.done__mark {
  width: 64px; height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin: 0 auto 32px;
  display: grid; place-items: center;
  color: var(--gold);
  font-size: 1.4rem;
}
.done h1 { margin-bottom: 1.4rem; font-size: clamp(1.9rem, 3.7vw, 3.1rem); }
.done p { color: var(--grey); max-width: 52ch; margin-inline: auto; font-size: 1.05rem; }

/* ---------- Profil ---------- */
.profil__bildzeile { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profil__avatar {
  width: 88px; height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 1.9rem;
}
.profil__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profil__bildAktionen { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Login-Karte ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 140px 0 80px; }
.auth__card {
  width: 100%; max-width: 440px;
  background: var(--flaeche);
  border: 1px solid var(--line);
  border-radius: var(--rund);
  box-shadow: var(--weich-tief);
  padding: 52px 44px;
}
.auth__card h1 { margin-bottom: 0.6rem; font-size: clamp(1.9rem, 3.7vw, 3.1rem); }
.auth__card > p { color: var(--grey); font-size: 1rem; margin-bottom: 2.4rem; }
.auth__error { color: #a52f2f; font-size: 0.92rem; min-height: 1.3em; margin-top: 12px; }

/* ---------- Umschalter Anmelden / Registrieren ---------- */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.tab {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: 14px 4px;
  font-family: var(--font-text);
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--gold); }

.tabpane { display: none; }
.tabpane.is-active { display: block; animation: stepIn 0.4s var(--ease); }

/* ---------- Admin-Tabelle ---------- */
.admin { padding: 150px 0 100px; }
.admin__bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 44px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.admin__list { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.admin__list th {
  text-align: left;
  font-size: 0.83rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey); font-weight: 600;
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--line);
}
.admin__list td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin__list tr { cursor: pointer; transition: background 0.3s; }
.admin__list tbody tr:hover { background: rgba(180, 144, 31, 0.06); }

.tag {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.81rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 13px; border: 1px solid var(--line); color: var(--grey);
}
.tag--neu { border-color: var(--gold); color: var(--gold-deep); }
.tag--frei { border-color: #4a7c59; color: #4a7c59; }

/* ---------- Detail / Preisrechner ---------- */
.detail { display: none; }
.detail.is-active { display: block; }
.detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.calc {
  background: var(--flaeche);
  border: 1px solid var(--line);
  border-radius: var(--rund);
  box-shadow: var(--weich);
  padding: 36px 32px;
  position: sticky; top: 110px;
}
.calc h3 { margin-bottom: 1.6rem; }
.calc__line { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.96rem; }
.calc__line--total { font-family: var(--font-display); font-size: 1.5rem; padding-top: 18px; }
.calc__line span:last-child { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .opts, .detail__grid { grid-template-columns: 1fr; }
  .summary__row { grid-template-columns: 1fr; gap: 4px; }
  .page-head { padding: 140px 0 50px; }
  .calc { position: static; }
  .admin__list thead { display: none; }
  .admin__list td {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; padding: 8px 0; border: 0; text-align: right;
  }
  .admin__list td::before {
    content: attr(data-label);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--grey); text-align: left;
  }
  .admin__list tr {
    display: block; padding: 16px 18px; margin-bottom: 12px;
    border-bottom: 0; border: 1px solid var(--line); border-radius: var(--rund);
    background: var(--flaeche);
  }
}

/* ---------- Sehr kleine Handys (≤ 360 px) ---------- */
@media (max-width: 360px) {
  .wizard__nav { gap: 10px; }
  .wizard__nav .btn { min-width: 0; flex: 1 1 auto; padding-left: 14px; padding-right: 14px; }
  .auth__card { padding: 36px 20px; }
}
