/* =============================================================================
   balkanhaus.de – Domain-Verkaufslandingpage (V3, Light Premium)
   Kein Framework, keine externen Fonts.
============================================================================= */

:root {
  --page-bg:          #F4F6FF;
  --gradient-start:   #EEF2FF;
  --gradient-middle:  #F3EEFF;
  --gradient-end:     #FFF1F5;
  --surface:          #FFFFFF;
  --text-primary:     #172033;
  --text-secondary:   #667085;
  --brand:            #5562D9;
  --brand-soft:       #E9EBFF;
  --input-bg:         #F8FAFF;
  --input-border:     #CBD4E6;
  --cta:              #D84300;   /* kontrastreicher (WCAG) */
  --cta-hover:        #BF3900;
  --trust:            #16835C;
  --border:           #E1E6F0;

  /* Fehler = ausschliesslich Rot (semantisch getrennt vom CTA-Orange). */
  --error:            #C6262E;
  --error-soft:       #FCEBEC;
  --error-border:     #C6262E;

  --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%; }

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;
}

/* --- Zugang / Fokus ------------------------------------------------------- */
.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;
}

/* --- Buehne / Hintergrund ------------------------------------------------- */
.stage {
  position: relative;
  flex: 1 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.15rem, 4vw, 3rem);
}
.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, Teil 1: klar erkennbarer, aber weicher diagonaler Lichtzug
   von links (Domain) nach rechts (Card). Kein Pfeil, nur Stroemung.
   Ein zarter Lavendel-Rahmen ober-/unterhalb gibt dem Lichtband Kontrast. */
.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);
  opacity: 1;
}
/* Blickfuehrung, Teil 2: heller, weicher Fokus links/hinter dem Eingabefeld
   und dem oberen Card-Bereich – zieht den Blick zum Conversion-Kern. */
.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);
  opacity: 1;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 4rem);   /* mehr Luft zwischen Kopfzeile und Domain/Card */
}

/* Dezente Kopfzeile (kein Header): Logo links, Trustpilot rechts. */
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Textlogo (kein Bild): DOMAIN in Petrol, NAME.DE in Dunkelblau. */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.logo__a { color: #0D9DB3; }
.logo__b { color: #173B57; }

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 40%);
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);   /* mehr Trennung links/rechts */
  align-items: center;
}
.hero__lead { min-width: 0; }

.domain {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.03;
  /* CSS-Fallback ohne JS: clamp haelt kurze Domains gross, lange schrumpfen;
     sehr lange Domains 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);
  /* Dezente, kontinuierliche "Breathing"-Bewegung (nur transform). */
  transform-origin: left center;
  will-change: transform;
  animation: domainBreathe 6s ease-in-out infinite;
}
/* Nur wenn JS laeuft: einzeilig halten und per fitDomain() feinjustieren. */
.has-js-fit .domain { white-space: nowrap; overflow-wrap: normal; }

@keyframes domainBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-3px) scale(1.006); }
}
@keyframes domainBreatheSm {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-2px) scale(1.003); }
}

.status {
  margin: 1.35rem 0 0;   /* mehr Luft unter dem Domainnamen */
  font-size: clamp(1.15rem, 1.9vw, 1.75rem);   /* Mobile ~18–22px, Desktop ~24–28px */
  font-weight: 500;
  color: #455066;   /* dunkles Secondary-Blau/Grau, gut lesbar */
}

/* --- Trustpilot-Chip ------------------------------------------------------ */
.trustpilot {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 0;
  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);
}
.trustpilot:hover { box-shadow: 0 8px 20px rgba(35, 45, 80, 0.12); transform: translateY(-1px); }
.trustpilot__star { width: 1.05rem; height: 1.05rem; fill: #00B67A; flex: none; }
.trustpilot__label { white-space: nowrap; }
.trustpilot__label--short { display: none; }

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

/* Kompakte obere Zeile: Text + dezenter Info-Link (kein Domainname mehr). */
.card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;   /* Einmalig verfuegbar rechtsbuendig */
  gap: .2rem .75rem;
  margin: 0 0 1.15rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.card__top-main { margin-right: auto; }
.card__unique {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}
.card__unique:hover { text-decoration: underline; text-underline-offset: 2px; }
.card__info { width: .95rem; height: .95rem; fill: currentColor; flex: none; }

/* --- Angebot (offer) ------------------------------------------------------ */
.offer { margin: 0; }
.offer__label {
  display: block;
  margin: 0 0 .5rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.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);
}
.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);
}
.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);
}
.field__input::placeholder { color: #7A8699; font-weight: 500; }
.field__input:focus { outline: none; }
.field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(85, 98, 217, 0.18);
}
/* Spinner auf Desktop entfernen */
.field__input::-webkit-outer-spin-button,
.field__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field.has-error { border-color: var(--error-border); }
.field.has-error:focus-within { box-shadow: 0 0 0 4px rgba(198, 38, 46, 0.16); }

.offer__error {
  margin: .5rem 0 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--error);
}

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

/* --- Zahlungshinweis (ruhig, sekundaer, ohne Link) ----------------------- */
.pay {
  margin: 1rem 0 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --- Sekundaerer WhatsApp-Textlink (kein zweiter CTA) -------------------- */
.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;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}
.wa:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.wa__icon { width: 1.05rem; height: 1.05rem; fill: #25D366; flex: none; }  /* nur das Icon in WhatsApp-Gruen */

/* --- Ruhiger Hero-Abschluss (Garantien) ---------------------------------- */
.guarantees {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: clamp(1.4rem, 3vw, 2.2rem) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 2rem;   /* mehr Abstand, ruhiger */
}
.guarantee {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;                /* alle drei gleich gewichtet */
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
}
/* Einheitliches, dezentes Icon fuer ALLE Punkte (gleiche visuelle Sprache). */
.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");
}
button.guarantee:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* --- Partnergrafik (dezent, im unteren Card-Abschluss) ------------------- */
.partners {
  display: block;
  max-width: 85%;
  width: auto;
  height: auto;
  margin: 1.15rem auto 0;
  opacity: .82;
}

/* --- Hero: einmalige dezente Abwicklungszeile ---------------------------- */
.hero-abw {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: .55rem auto 0;
  font-size: .82rem;
  color: var(--text-secondary);
}
.hero-abw strong { color: var(--brand); font-weight: 700; }

/* Nicht-klickbares Trust-Label (z. B. Schnelle Domainuebertragung). */

/* =============================================================================
   MODALS (natives <dialog>)
============================================================================= */
.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;
}
.modal::backdrop { background: rgba(18, 24, 45, 0.5); }

.modal__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.modal__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}
.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;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.modal__close:hover { background: #E1E6F2; color: var(--text-primary); }

.modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}
.modal__body p { margin: 0 0 .9rem; color: var(--text-primary); line-height: 1.6; }
.modal__body p:last-child { margin-bottom: 0; }
.modal__fine { font-size: .88rem; color: var(--text-secondary); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.55;
  color: var(--text-primary);
}
.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);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: .44rem; top: .34em;
  width: .35rem; height: .65rem;
  border: solid var(--trust);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

/* Hintergrundscroll blockieren, wenn ein Modal offen ist. */
body.modal-open { overflow: hidden; }

/* --- Festpreis-Variante (per JS, saleMode fixed) ------------------------- */
.price {
  margin: 0 0 .35rem;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--text-primary);
}
.price .vat {
  display: block;
  margin-top: .25rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  flex: none;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.6rem 1.15rem 1.9rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer__lead {
  max-width: 640px;
  margin: 0 auto .7rem;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.footer__ic {
  width: 1rem; height: 1rem;
  vertical-align: -2px;
  margin-right: .35rem;
  color: var(--trust);
}
.footer__lead strong { color: var(--brand); font-weight: 700; }
.footer__unique {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--input-border);
  text-underline-offset: 2px;
}
.footer__unique:hover { color: var(--brand); text-decoration-color: var(--brand); }
.footer__info {
  width: .82rem; height: .82rem;
  fill: currentColor;
  vertical-align: -1px;
  margin-left: .2rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; font-size: .84rem; color: var(--input-border); }
.footer__legal a { color: var(--text-secondary); text-decoration: none; }
.footer__legal a:hover { color: var(--brand); text-decoration: underline; }

/* =============================================================================
   RESPONSIVE – Mobile ist eigenstaendig gedacht
============================================================================= */
@media (max-width: 900px) {
  .stage { justify-content: flex-start; padding-top: clamp(1.25rem, 5vw, 2rem); }

  /* Kopfzeile bleibt eine Reihe: Logo links, Trustpilot rechts. */
  .hero-main {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 5vw, 1.9rem);
    text-align: center;
  }
  .hero__lead { display: flex; flex-direction: column; align-items: center; }
  /* Domain mittig -> Breathing von der Mitte, etwas zurueckhaltender. */
  .domain {
    font-size: clamp(2.3rem, 11vw, 3.6rem);
    transform-origin: center;
    animation-name: domainBreatheSm;
  }

  /* Trustpilot kompakt im Kopfzeilen-Fluss (kein absolutes Overlay mehr). */
  .trustpilot { padding: .4rem .7rem; font-size: .8rem; }
  .trustpilot__label--full { display: none; }
  .trustpilot__label--short { display: inline; }

  .logo { font-size: 1.1rem; }
  .card {
    width: 100%;
    text-align: left;
    padding: clamp(1.35rem, 5vw, 1.6rem);
  }
  .guarantees { justify-content: center; }
  /* Card liegt mobil unten – Lichtfuehrung zuruecknehmen, Fokus nach oben. */
  .bg::before { opacity: .45; }
  .bg::after { left: 60%; top: 30%; opacity: .5; }
}

@media (max-width: 480px) {
  .stage { padding-left: 20px; padding-right: 20px; }
  .field { height: 60px; }
  .field__input { font-size: 1.15rem; }
  .cta { height: 60px; font-size: 1.05rem; }

  .modal__title { font-size: 1.08rem; }
  .modal__head { padding: 1.15rem 1.15rem .9rem; }
  .modal__body { padding: 1.1rem 1.15rem 1.3rem; }
}

/* --- Bewegung reduzieren -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  /* Domain-Breathing vollstaendig deaktivieren, Domain bleibt sichtbar. */
  .domain { animation: none !important; transform: none !important; }
}
