/* =============================================================================
   DC-Verkaufsseite — Design "wien" (WEBDOM-7705)

   Oberer Seitenteil nach dem Vorbild balkanhaus.de (Hero: Domainname links,
   Conversion-Card rechts, Garantiezeile darunter), der Unterbau nach
   preview-expert.de (Kaufablauf in vier Schritten, Vorteilskarten, FAQ).

   Bewusst KEIN Framework und keine externen Fonts: die Verkaufsseite laeuft auf
   einem eigenen Host und laedt sonst nichts. Der Grid-/Formular-Anteil ab
   "FORMULAR" bildet genau die Klassen nach, die
   modules/domainsale/views/index/_form_buyer.php mitbringt (Bootstrap-Namen) —
   dieser Partial ist designunabhaengig und darf nicht angefasst werden.
============================================================================= */

:root {
  --page-bg:          #F4F6FF;
  --surface:          #FFFFFF;
  --surface-alt:      #F8FAFF;
  --text-primary:     #172033;
  --text-secondary:   #667085;
  --text-muted:       #7A8699;
  --brand:            #5562D9;
  --brand-soft:       #E9EBFF;
  --input-bg:         #F8FAFF;
  --input-border:     #CBD4E6;
  --cta:              #D84300;
  --cta-hover:        #BF3900;
  --trust:            #16835C;
  --border:           #E1E6F0;

  /* Fehler ausschliesslich Rot — semantisch getrennt vom CTA-Orange. */
  --error:            #C6262E;
  --error-soft:       #FCEBEC;

  --radius:     20px;
  --radius-btn: 12px;
  --maxw:       1280px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--page-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

.ds-page { flex: 1 0 auto; }

.ds-shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 3rem);
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =============================================================================
   HERO (Vorbild balkanhaus.de)
============================================================================= */
.ds-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3.25rem) 0 clamp(1.4rem, 3vw, 2.4rem);
}
.ds-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 46vw at 82% 8%,  #FFE7EE 0%, transparent 60%),
    radial-gradient(58vw 50vw at 6% 96%,  #DFE4FF 0%, transparent 62%),
    linear-gradient(155deg, #E7ECFF 0%, var(--page-bg) 52%, #FFEDF3 100%);
}
/* Blickfuehrung: weicher diagonaler Lichtzug von links (Domainname) nach rechts
   (Card) — kein Pfeil, nur Stroemung. */
.ds-bg::before {
  content: "";
  position: absolute;
  left: -8%;
  top: 33%;
  width: 100vw;
  height: 34vw;
  transform: translateY(-50%) rotate(-8deg);
  background:
    linear-gradient(93deg,
      rgba(255,255,255,0) 4%,
      rgba(255,255,255,0.7) 26%,
      rgba(255,255,255,1) 54%,
      rgba(255,255,255,0.92) 66%,
      rgba(236,239,255,0.5) 78%,
      rgba(255,255,255,0) 90%);
  filter: blur(22px);
}
.ds-bg::after {
  content: "";
  position: absolute;
  left: 58%;
  top: 36%;
  width: 54vw;
  height: 46vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.92) 24%,
    rgba(231,236,255,0.6) 46%,
    rgba(255,240,246,0.22) 66%,
    rgba(255,255,255,0) 80%);
  filter: blur(16px);
}

.ds-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 4vw, 3rem);
}

/* Kopfzeile OHNE Logo (kein Header, kein Menue): nur der Trustpilot-Chip
   rechts. Das Logo steht bewusst unter der Card ("verifiziert durch"). */
.ds-hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 2.25rem;
}

.ds-trustpilot {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(35, 45, 80, 0.06);
  transition: box-shadow .15s var(--ease), transform .12s var(--ease);
}
.ds-trustpilot:hover { box-shadow: 0 8px 20px rgba(35, 45, 80, 0.12); transform: translateY(-1px); }
.ds-trustpilot__short { display: none; }

/* Sternleiste: fuenf graue Sterne, darueber dieselben fuenf in Trustpilot-Gruen
   auf exakt die Bewertung beschnitten. So ist auch 4,3 von 5 ablesbar, ohne
   Halbstern-Grafik. Die Breite setzt das Template per inline-width. */
.ds-stars {
  position: relative;
  display: inline-block;
  flex: none;
  line-height: 0;
}
.ds-stars__row { display: flex; gap: .1rem; }
.ds-stars__row svg { width: 1rem; height: 1rem; flex: none; }
.ds-stars__base svg { fill: #DFE3EC; }
.ds-stars__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
}
.ds-stars__fill svg { fill: #00B67A; }
.ds-trustpilot__score { font-weight: 800; color: var(--text-primary); }
.ds-trustpilot__count { font-weight: 500; color: var(--text-secondary); }

.ds-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 40%);
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
/* Steht das Formular an der Stelle der Card, braucht es mehr Breite — der
   Wizard in Sidebar-Breite sah gequetscht aus (der Grund, aus dem "tokyo"
   ihn ueberhaupt auf eine eigene Seite ausgelagert hatte). */
.ds-hero-main.is-form-open {
  grid-template-columns: minmax(0, 36%) minmax(0, 58%);
  align-items: start;
}
.ds-hero__lead { min-width: 0; }

.ds-domain {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.03;
  /* Kurze Domains bleiben gross, lange schrumpfen; sehr lange brechen
     kontrolliert um, statt aus dem Viewport zu laufen. */
  font-size: clamp(2.2rem, 8.5vw, 5.25rem);
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  transform-origin: left center;
  animation: dsBreathe 6s ease-in-out infinite;
}
@keyframes dsBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-3px) scale(1.006); }
}
@keyframes dsBreatheSm {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-2px) scale(1.003); }
}

.ds-status {
  margin: 1.35rem 0 0;
  font-size: clamp(1.15rem, 1.9vw, 1.75rem);
  font-weight: 500;
  color: #455066;
}

/* Kaufgruende unter der Statuszeile — fuellt die linke Hero-Haelfte mit
   Argumenten statt leerer Flaeche. */
.ds-usps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: clamp(.98rem, 1.3vw, 1.1rem);
  color: #455066;
}
.ds-usps li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  text-align: left;
}
.ds-usps svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  margin-top: .18rem;
  color: var(--trust);
}

/* --- Conversion-Card ------------------------------------------------------ */
.ds-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.2vw, 2.2rem);
  box-shadow: 0 18px 50px rgba(35, 45, 80, 0.10);
}

.ds-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .2rem .75rem;
  margin: 0 0 1.15rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.ds-card__top-main { margin-right: auto; }
.ds-info-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}
.ds-info-btn:hover { text-decoration: underline; text-underline-offset: 2px; }
.ds-info-btn svg { width: .95rem; height: .95rem; fill: currentColor; flex: none; }

/* Fixpreis-Anzeige */
.ds-price {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}
.ds-price .ds-vat {
  display: block;
  margin-top: .3rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
}
/* Nimmt "was kommt danach?" vorweg, direkt unter dem Preis. */
.ds-price__note {
  margin: -.35rem 0 1rem;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Gebotsfeld (Verhandlung) */
.ds-offer__label {
  display: block;
  margin: 0 0 .5rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ds-field {
  display: flex;
  align-items: stretch;
  height: 62px;
  border: 1.5px solid var(--input-border);
  border-radius: 14px;
  background: var(--input-bg);
  overflow: hidden;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.ds-field__cur {
  display: grid;
  place-items: center;
  width: 54px;
  flex: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: #EEF2FC;
  border-right: 1.5px solid var(--input-border);
}
.ds-field__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 1rem;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ds-field__input::placeholder { color: var(--text-muted); font-weight: 500; }
.ds-field__input:focus { outline: none; }
.ds-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(85, 98, 217, 0.18);
}

/* --- CTA: der einzige starke Farbpunkt der Seite -------------------------- */
.ds-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 60px;
  margin-top: .85rem;
  padding: .6rem 1.25rem;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 1.075rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  background: var(--cta);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px -6px rgba(216, 67, 0, 0.45);
  transition: background .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease);
}
.ds-cta::after { content: "→"; font-weight: 700; transition: transform .18s var(--ease); }
.ds-cta:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(216, 67, 0, 0.5); }
.ds-cta:hover::after { transform: translateX(4px); }
.ds-cta:active { transform: translateY(0); }
.ds-cta[disabled] {
  background: var(--input-border);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.ds-cta[disabled]::after { content: none; }

/* Social Proof am Entscheidungspunkt, direkt unter dem CTA. */
.ds-trustline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .5rem;
  margin: .9rem 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.ds-trustline__star svg {
  display: block;
  width: .95rem;
  height: .95rem;
  fill: #00B67A;                 /* Trustpilot-Gruen wie im Chip oben */
}
.ds-trustline__sep { color: var(--input-border); }

/* Zahlarten als scanbare Chips statt Fliesstext. */
.ds-paychips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}
.ds-paychips li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.ds-paychips svg {
  width: .95rem;
  height: .95rem;
  flex: none;
  color: var(--brand);
}

.ds-pay {
  margin: .8rem 0 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --- Sekundaerer WhatsApp-Textlink (kein zweiter CTA) -------------------- */
.ds-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  min-height: 44px;              /* ausreichende Touchflaeche */
  margin-top: .9rem;
  padding: .5rem .25rem;
  color: var(--text-secondary);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}
.ds-wa:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.ds-wa svg { width: 1.05rem; height: 1.05rem; fill: #25D366; flex: none; }  /* nur das Icon in WhatsApp-Gruen */
/* Erwartung an den Zweitkanal — direkt unter dem Link, bewusst leise. */
.ds-wa-hint {
  margin: -.15rem 0 0;
  text-align: center;
  font-size: .76rem;
  color: var(--text-muted);
}

.ds-partners {
  display: block;
  max-width: 85%;
  margin: 1.15rem auto 0;
  opacity: .82;
}

/* --- Absender unter der Card (Vorbild preview-expert: "Verifiziert durch …")
   Der Name steht als SCHRIFT, nicht als Bild: das Wortmarken-PNG wirkte auf dem
   hellen Verlauf wie ein Fremdkoerper und skaliert schlecht. */
.ds-verified {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.1rem 0 0;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.ds-verified > svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--trust); }
.ds-verified a {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.ds-verified a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ds-wordmark__a { color: #0D9DB3; }
.ds-wordmark__b { color: #173B57; }

/* --- Garantiezeile als Hero-Abschluss -------------------------------------
   Frei im Verlauf schwebend hatte die Zeile keinen Bezugspunkt. Sie sitzt
   deshalb jetzt auf einem eigenen hellen Band mit Trennlinie nach oben — der
   sichtbare Abschluss des Hero und die Kante zum Inhaltsteil. */
.ds-guarantees {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 2rem;
  margin-top: clamp(1.6rem, 3.5vw, 2.6rem);
  padding: 1rem clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 20px rgba(35, 45, 80, 0.06);
  backdrop-filter: blur(4px);
}
.ds-guarantee {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
}
.ds-guarantee::before {
  content: "";
  flex: none;
  width: 1.05rem; height: 1.05rem;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2316835C' fill-opacity='0.12'/%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%2316835C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ds-guarantee:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================================
   INHALTSABSCHNITTE
============================================================================= */
.ds-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.ds-section--tint { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* Trennlinie zwischen zwei weissen Abschnitten (dieselbe Linie, die
   .ds-section--tint als border traegt). */
.ds-hr { margin: 0; border: 0; border-top: 1px solid var(--border); }
/* [hidden] muss die display-Regeln dieser Datei schlagen — sonst blieben leere
   Bloecke (Inhaber-Karte ohne Inhalt, zugeklapptes Formular) sichtbar. */
[hidden] { display: none !important; }

.ds-h2 {
  margin: 0 0 1.6rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
}
.ds-lead {
  margin: -.9rem 0 1.8rem;
  max-width: 62ch;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* --- Verkaufstext + Kontaktblock des Inhabers ----------------------------- */
.ds-notes {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
/* Banner des Inhabers. Das Default-Bild kommt aus dem CSS; laedt der Inhaber ein
   eigenes hoch, ueberschreibt der Editor bzw. _page.php das style-Attribut —
   deshalb hier KEIN background-shorthand mit !important. */
.ds-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(180px, 26vw, 300px);
  margin-bottom: 1.6rem;
  border-radius: 16px;
  background: url("/app/img/tokyo/banner.png");
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}
.ds-banner .custDomain {
  margin: 0;
  padding: 0 1rem;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  overflow-wrap: anywhere;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.ds-notes #sell-text { color: var(--text-primary); }
.ds-notes #sell-text p:first-child { margin-top: 0; }
.ds-notes #sell-text p:last-child { margin-bottom: 0; }

.ds-contact { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.ds-contact h4 { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 700; }
.ds-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem 1.5rem;
}
.ds-contact-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 1.6rem;
  color: var(--text-secondary);
  font-size: .95rem;
}
.ds-contact-item svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--brand); }
.ds-contact-item p { margin: 0; }

/* --- Softfacts (GEO-Domains) ---------------------------------------------- */
.ds-facts-geo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.ds-fact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.ds-fact-box h3 {
  margin: 0 0 .9rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.ds-fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem 0;
  border-top: 1px solid var(--border);
  font-size: .92rem;
  color: var(--text-secondary);
}
.ds-fact-row strong { color: var(--text-primary); font-weight: 700; white-space: nowrap; }
.ds-fact-note { margin: .9rem 0 0; font-size: .84rem; line-height: 1.5; color: var(--text-muted); }

/* --- Kaufablauf in vier Schritten (Vorbild preview-expert) ----------------
   Bild links, Schritte untereinander rechts. Nebeneinander gesetzt brachen die
   vier Schritte in ein 3+1-Raster um — die Reihenfolge war dann nicht mehr
   ablesbar. */
.ds-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.ds-steps__figure { min-width: 0; }
.ds-steps__figure img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}
.ds-steps__body { min-width: 0; }

.ds-steps-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
}
.ds-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ds-step-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 800;
}
.ds-step h3 { margin: .2rem 0 .25rem; font-size: 1.05rem; font-weight: 700; }
.ds-step p { margin: 0; color: var(--text-secondary); font-size: .95rem; }

/* --- Vorteilskarten (Vorbild preview-expert) ------------------------------ */
.ds-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.ds-benefit {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.ds-benefit svg { width: 2rem; height: 2rem; color: var(--brand); }
.ds-benefit h3 { margin: .9rem 0 .5rem; font-size: 1.1rem; font-weight: 700; }
.ds-benefit p { margin: 0; color: var(--text-secondary); font-size: .95rem; }

/* --- FAQ-Akkordeon (Vorbild preview-expert) ------------------------------- */
.ds-faq { display: grid; gap: .75rem; max-width: 900px; }
.ds-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.ds-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after {
  content: "";
  flex: none;
  width: .6rem; height: .6rem;
  border: solid var(--text-secondary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s var(--ease);
}
.ds-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ds-faq summary:hover { color: var(--brand); }
.ds-faq-answer { padding: 0 1.25rem 1.25rem; color: var(--text-secondary); }
.ds-faq-answer p { margin: 0 0 .8rem; }
.ds-faq-answer p:last-child { margin-bottom: 0; }
.ds-faq-answer ul { margin: 0; padding-left: 1.2rem; }
.ds-faq-answer li { margin-bottom: .4rem; }

/* =============================================================================
   FORMULAR — auf DERSELBEN Seite (Vorbild preview-expert)

   Ab hier werden die Klassen nachgebildet, die _form_buyer.php mitbringt.
   Der Partial ist designunabhaengig; das Design stylt ihn nur.
============================================================================= */
/* Das Formular sitzt an der Stelle der Angebots-Card und teilt deren Optik
   (.ds-card); .ds-form-panel traegt nur die Feld-Styles darunter. */
.ds-form-panel { scroll-margin-top: 1.5rem; }

.ds-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ds-checklist li {
  position: relative;
  padding-left: 1.9rem;
  font-size: .94rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.ds-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .1em;
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  background: rgba(22, 131, 92, 0.12);
}
.ds-checklist li::after {
  content: "";
  position: absolute;
  left: .44rem; top: .3em;
  width: .35rem; height: .65rem;
  border: solid var(--trust);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- Grid-/Abstands-Hilfsklassen, die _form_buyer.php verwendet ----------- */
.ds-form-panel .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -.5rem;
  margin-right: -.5rem;
}
.ds-form-panel [class*="col-"] {
  position: relative;
  width: 100%;
  padding-left: .5rem;
  padding-right: .5rem;
}
.ds-form-panel .col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.ds-form-panel .col-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.ds-form-panel .col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 576px) {
  .ds-form-panel .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

.ds-form-panel .form-group { margin-bottom: .9rem; }
.ds-form-panel .form-group.row { margin-bottom: .9rem; }
.ds-form-panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ds-form-panel .form-card { margin: 0; padding: 0; }
.ds-form-panel h4 { font-size: 1.25rem; font-weight: 800; }
.ds-form-panel h4 + p { color: var(--text-secondary); }

.ds-form-panel .text-center { text-align: center; }
.ds-form-panel .text-left   { text-align: left; }
.ds-form-panel .text-muted  { color: var(--text-secondary); }
.ds-form-panel .d-block     { display: block; }
.ds-form-panel .mb-0 { margin-bottom: 0 !important; }
.ds-form-panel .mt-0 { margin-top: 0 !important; }
.ds-form-panel .mb-4 { margin-bottom: 1.5rem; }
.ds-form-panel .mt-3 { margin-top: 1rem; }
.ds-form-panel .mt-4 { margin-top: 1.5rem; }
.ds-form-panel .pt-0 { padding-top: 0 !important; }
.ds-form-panel .pb-0 { padding-bottom: 0 !important; }
.ds-form-panel .pb-2 { padding-bottom: .5rem; }
.ds-form-panel .px-0 { padding-left: 0 !important; padding-right: 0 !important; }
@media (min-width: 992px) {
  .ds-form-panel .mt-lg-4 { margin-top: 1.5rem; }
  .ds-form-panel .pt-md-4 { padding-top: 1.5rem; }
}

/* --- Eingabefelder -------------------------------------------------------- */
.ds-form-panel .form-control {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 1rem;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-btn);
  background: var(--input-bg);
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.ds-form-panel textarea.form-control { height: auto; padding: .75rem 1rem; line-height: 1.5; }
.ds-form-panel select.form-control { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 1.15rem;
  padding-right: 2.6rem;
}
.ds-form-panel .form-control::placeholder { color: var(--text-muted); }
.ds-form-panel .form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(85, 98, 217, 0.18);
}
.ds-form-panel .form-control.is-invalid {
  border-color: var(--error);
  background: var(--error-soft);
}
.ds-form-panel .form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(198, 38, 46, 0.16); }

.ds-form-panel .invalid-feedback {
  display: none;
  margin-top: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--error);
}
.ds-form-panel .invalid-feedback.d-block,
.ds-form-panel .is-invalid ~ .invalid-feedback { display: block; }

.ds-form-panel .alert {
  margin: 0 0 1.25rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
}
.ds-form-panel .alert-danger {
  background: var(--error-soft);
  border: 1px solid var(--error);
  color: var(--error);
}

.ds-form-panel .text-privacy {
  margin: 1rem 0 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --- Buttons des Wizards -------------------------------------------------- */
.ds-form-panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 56px;
  padding: .6rem 1.5rem;
  border: 0;
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease);
}
.ds-form-panel .btn-block { display: flex; width: 100%; }
.ds-form-panel .btn-primary {
  color: #fff;
  background: var(--cta);
  box-shadow: 0 8px 20px -6px rgba(216, 67, 0, 0.45);
}
.ds-form-panel .btn-primary:hover { background: var(--cta-hover); transform: translateY(-1px); }
.ds-form-panel .btn-primary:active { transform: translateY(0); }

/* --- Fortschrittsanzeige (bs-wizard) ------------------------------------- */
.ds-form-panel .bs-wizard {
  display: flex;
  flex-wrap: nowrap;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.ds-form-panel .bs-wizard-step {
  position: relative;
  flex: 1 1 0;
  max-width: none;
  padding: 0;
  text-align: center;
}
.ds-form-panel .bs-wizard-stepnum p {
  margin: 0 0 .55rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
}
.ds-form-panel .bs-wizard-step.active .bs-wizard-stepnum p,
.ds-form-panel .bs-wizard-step.complete .bs-wizard-stepnum p { color: var(--brand); }

.ds-form-panel .bs-wizard-step .progress {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.ds-form-panel .bs-wizard-step .progress-bar {
  width: 0;
  height: 100%;
  background: var(--brand);
  transition: width .25s var(--ease);
}
.ds-form-panel .bs-wizard-step.complete .progress-bar { width: 100%; }
.ds-form-panel .bs-wizard-step.active .progress-bar { width: 50%; }
.ds-form-panel .bs-wizard-step.last .progress { background: transparent; }

.ds-form-panel .bs-wizard-dot {
  position: absolute;
  left: 50%;
  top: calc(100% - 4px);
  width: 16px; height: 16px;
  margin-top: -6px;
  margin-left: -8px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--border);
  box-shadow: 0 0 0 1px var(--border);
}
.ds-form-panel .bs-wizard-step.active .bs-wizard-dot,
.ds-form-panel .bs-wizard-step.complete .bs-wizard-dot {
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

/* =============================================================================
   MODALS (natives <dialog>)
============================================================================= */
.ds-modal {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 30px 80px rgba(20, 28, 55, 0.35);
  overflow: hidden;
}
.ds-modal::backdrop { background: rgba(18, 24, 45, 0.5); }
.ds-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.ds-modal__title { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.ds-modal__close {
  flex: none;
  margin-left: auto;
  width: 2.1rem; height: 2.1rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #EEF1F8;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.ds-modal__close:hover { background: #E1E6F2; color: var(--text-primary); }
.ds-modal__body { padding: 1.25rem 1.5rem 1.5rem; overflow-y: auto; max-height: calc(100vh - 180px); }
.ds-modal__body p { margin: 0 0 .9rem; line-height: 1.6; }
.ds-modal__body p:last-child { margin-bottom: 0; }
.ds-modal__fine { font-size: .88rem; color: var(--text-secondary); }
.ds-modal__body .ds-checklist li { color: var(--text-primary); }

@media (prefers-reduced-motion: no-preference) {
  .ds-modal[open] { animation: dsModalIn .18s var(--ease); }
}
@keyframes dsModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
body.ds-modal-open { overflow: hidden; }

/* =============================================================================
   FOOTER (Vorbild preview-expert: ruhig, textlich, Impressum rechts)
============================================================================= */
.ds-footer {
  flex: none;
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
/* Ueber die volle Breite — der Text ist Fliesstext des Betreibers, keine
   schmale Lead-Spalte. */
.ds-footer__lead {
  margin: 0 0 1.4rem;
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.ds-footer__lead strong { color: var(--brand); font-weight: 700; }
.ds-footer__ic { width: 1rem; height: 1rem; vertical-align: -2px; margin-right: .35rem; color: var(--trust); }
.ds-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--text-muted);
}
.ds-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.ds-footer__legal a { color: var(--text-secondary); text-decoration: none; }
.ds-footer__legal a:hover { color: var(--brand); text-decoration: underline; }

/* =============================================================================
   STATUSSEITEN (done / unavailable / error)

   Diese Views liegen im MODUL, nicht im Design-Ordner — sie bringen die
   Bootstrap-Namen .container/.row/.col-12 mit. Das Design darf sie nicht
   umschreiben, also bekommen sie hier eine schlanke Entsprechung. Kollisionen
   mit dem Seitendesign gibt es nicht: dessen Markup nutzt ausschliesslich
   ds-*-Klassen.
============================================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 3rem);
}
.container .row { display: flex; flex-wrap: wrap; }
.container .col-12 { flex: 0 0 100%; max-width: 100%; }
.container h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  /* Lange Domainnamen duerfen auf schmalen Screens umbrechen statt zu
     ueberlaufen — Domains haben keine natuerlichen Umbruchstellen. */
  overflow-wrap: anywhere;
}
.container .header-span { color: var(--brand); }
.container p { color: var(--text-secondary); }
.container a { color: var(--brand); }

/* Der Statusblock ist nur ein Absatz, .ds-page waechst aber auf die volle
   Resthoehe (body ist min-height:100vh). Ohne Zentrierung klebt der Text oben
   und darunter steht eine leere Flaeche bis zum Footer. */
.ds-page--status {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Nicht ".ds-status" — der Name gehoert schon der Statuszeile im Hero. */
.ds-statuspage {
  padding-top: clamp(2rem, 5vh, 3.5rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}
/* Optischer Mittelpunkt liegt etwas ueber der geometrischen Mitte. */
.ds-statuspage .col-12 { margin-bottom: clamp(0rem, 4vh, 3rem); }
.text-center { text-align: center; }
.text-decoration-none { text-decoration: none; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: .5rem; }

/* =============================================================================
   NEUE KOMPONENTEN (Conversion-Ausbau)
============================================================================= */

/* Zusammenfassung im Formular-Panel: haelt beim Fixpreis sichtbar, WAS gerade
   gekauft wird, wenn das Formular die Card ersetzt hat. */
.ds-form-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
  margin: 0 0 1.1rem;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
  font-size: .95rem;
}
.ds-form-summary strong { overflow-wrap: anywhere; }
.ds-form-summary small { font-weight: 500; color: var(--text-secondary); }

/* E-Mail-Tippfehler-Vorschlag ("Meinten Sie …?") im Kaeufer-Formular. */
.ds-mailhint {
  display: block;
  margin: .4rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Kennzahlen-Reihe der Domainmarkt-Sektion. */
.ds-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 0 0 1.75rem;
}
.ds-stat {
  flex: 1 1 220px;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(35, 45, 80, 0.05);
}
.ds-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.ds-stat span { font-size: .87rem; color: var(--text-secondary); }

/* Vorteilskarten-Raster ohne Icons (Markt-Sektion). */
.ds-benefits--plain .ds-benefit h3 { margin-top: 0; }

/* Abschluss-CTA nach dem FAQ: der zweite Absprungpunkt in den Kaufweg.
   Traegt denselben Farbverlauf wie der Hero (.ds-bg) — Anfang und Ende der
   Seite rahmen den weissen Mittelteil ein. */
.ds-final {
  text-align: center;
  background:
    radial-gradient(52vw 40vw at 84% 10%, #FFE7EE 0%, transparent 60%),
    radial-gradient(50vw 44vw at 8% 92%,  #DFE4FF 0%, transparent 62%),
    linear-gradient(155deg, #E7ECFF 0%, var(--page-bg) 52%, #FFEDF3 100%);
}
.ds-final .ds-h2 { margin-bottom: .5rem; }
.ds-final__sub { margin: 0 0 1.5rem; color: var(--text-secondary); }
.ds-final__cta { max-width: 420px; margin: 0 auto; }
.ds-final__cta .ds-cta { margin-top: 0; }
.ds-final__trust { margin: 1rem 0 0; font-size: .85rem; color: var(--text-secondary); }

/* Mobile Sticky-Bar: existiert nur unterhalb von 900px (siehe RESPONSIVE). */
.ds-sticky { display: none; }

/* =============================================================================
   RESPONSIVE
============================================================================= */
@media (min-width: 768px) {
  /* Bild schmaler als der Textteil — die Schritte tragen den Abschnitt. */
  .ds-steps { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

@media (max-width: 900px) {
  .ds-hero-main,
  .ds-hero-main.is-form-open {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 5vw, 1.9rem);
    text-align: center;
  }
  /* Garantien untereinander statt auseinandergezogen. */
  .ds-guarantees { justify-content: flex-start; gap: .6rem 1.5rem; }
  .ds-hero__lead { display: flex; flex-direction: column; align-items: center; }
  .ds-domain {
    font-size: clamp(2.3rem, 11vw, 3.6rem);
    transform-origin: center;
    animation-name: dsBreatheSm;
  }
  .ds-card { text-align: left; padding: clamp(1.35rem, 5vw, 1.6rem); }
  .ds-trustpilot { padding: .4rem .7rem; font-size: .8rem; }
  .ds-trustpilot__full { display: none; }
  .ds-trustpilot__short { display: inline; }
  /* Card liegt mobil unten — Lichtfuehrung zuruecknehmen. */
  .ds-bg::before { opacity: .45; }
  .ds-bg::after { left: 60%; top: 30%; opacity: .5; }

  /* USP-Liste: Block zentriert (hero__lead ist Flex-Column), Zeilen linksbuendig. */
  .ds-usps { align-items: center; }

  /* Sticky-Bar mit dem Kaufweg, sobald die Card aus dem Viewport ist. */
  .ds-sticky {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .65rem clamp(1rem, 4vw, 1.5rem);
    padding-bottom: calc(.65rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 30px rgba(35, 45, 80, 0.12);
  }
  .ds-sticky[hidden] { display: none; }
  .ds-sticky__info {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  .ds-sticky__domain {
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ds-sticky__price { font-size: .8rem; color: var(--text-secondary); }
  .ds-sticky .ds-cta {
    width: auto;
    min-height: 48px;
    margin-top: 0;
    flex: none;
    padding: .5rem 1.1rem;
    font-size: .95rem;
  }

  /* Platz, damit die Sticky-Bar die Footer-Links nicht dauerhaft verdeckt. */
  .ds-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 480px) {
  .ds-field { height: 60px; }
  .ds-field__input { font-size: 1.15rem; }
  .ds-modal__head { padding: 1.15rem 1.15rem .9rem; }
  .ds-modal__body { padding: 1.1rem 1.15rem 1.3rem; }
  .ds-form-panel .col-4,
  .ds-form-panel .col-8 { flex: 0 0 100%; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .ds-domain { animation: none !important; transform: none !important; }
}
