:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe3ee;
  --blue: #1d4ed8;
  --navy: #0b3b8c;
  --sky: #e8f3fe;
  --cta: #f97316;
  --cta-dark: #ea580c;
  --wa: #25d366;
  --wa-ink: #04220f;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(11, 59, 140, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Thai", "Leelawadee UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; }
body:lang(th) { line-height: 1.7; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
h3[tabindex="-1"]:focus { outline: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand img { height: 44px; width: auto; }
.langs { display: flex; gap: 2px; justify-content: flex-end; }
.langs a { padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.langs a:hover { background: var(--sky); }
.langs a[aria-current="true"] { color: var(--navy); background: var(--sky); }

/* Hero mit Foto */
.hero { position: relative; overflow: hidden; color: #fff; background: #0b2a5b; }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 61, 0.78) 0%, rgba(7, 26, 61, 0.55) 45%, rgba(7, 26, 61, 0.82) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 28px; padding-bottom: 40px; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(30px, 7vw, 50px); font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(7, 26, 61, 0.45); }
.lead { font-size: clamp(16px, 2.4vw, 19px); max-width: 560px; opacity: 0.96; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.points li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.points svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); fill: var(--blue); }

/* Formular-Karte mit Schritt-Slider */
.card { scroll-margin-top: 80px; background: #fff; color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.card h2 { font-size: 21px; margin-bottom: 10px; }
.form-top { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.back { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 2px; border: 0; background: none; color: var(--blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.back svg { width: 18px; height: 18px; fill: currentColor; }
.back[hidden] { display: none; }
.step-label { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.progress { height: 6px; margin: 6px 0 16px; border-radius: 999px; background: #e7eef8; overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, var(--blue)); transition: width 0.35s ease; }
.slider { width: 100%; overflow: hidden; transition: height 0.35s ease; }
.slides { display: flex; align-items: flex-start; transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
.slide { flex: 0 0 100%; min-width: 0; display: grid; gap: 12px; padding: 2px; }
.slide h3 { font-size: 19px; margin: 0 0 4px; }
.options { display: grid; gap: 10px; }
.options-grid { grid-template-columns: 1fr 1fr; }
.option {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 700; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.option:hover { border-color: #93c5fd; background: #f5f9ff; }
.option:active { transform: scale(0.98); }
.option[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); color: var(--navy); }
.option-muted { color: var(--muted); font-weight: 600; }
.option-big { justify-content: flex-start; min-height: 76px; padding: 14px 16px; text-align: left; }
.option-big svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--sky); fill: var(--blue); }
.option-big strong { display: block; font-size: 18px; }
.option-big small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.lead-form:not([data-intent="buy"]) .budget-buy, .lead-form[data-intent="buy"] .budget-rent { display: none; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; }
input[type="text"], input[type="tel"], input:not([type]), select {
  width: 100%; height: 52px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid #c5d0de; border-radius: 12px; background: #fff;
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18); }
.phone { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.phone select { padding: 0 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 14px; font-weight: 600; }
.note { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.thanks { text-align: center; display: grid; gap: 6px; justify-items: center; padding: 10px 0; }
.thanks[hidden], form[hidden] { display: none; }
.thanks-icon svg { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: #dcfce7; fill: #15803d; }
.thanks p { color: var(--muted); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 0.12s, filter 0.12s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary { background: linear-gradient(180deg, #fb923c, var(--cta)); color: #fff; box-shadow: 0 10px 24px -10px var(--cta-dark); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-big { width: 100%; min-height: 56px; font-size: 17px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; text-align: left; }

/* WhatsApp-Knopf unten rechts */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 60px; height: 60px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 14px 30px -10px rgba(4, 34, 15, 0.6);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float span { display: none; }
.wa-float::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid rgba(37, 211, 102, 0.55); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

/* Abschnitte */
.section { padding: 56px 0; }
.section-alt { background: #f3f8fe; }
.section-title { font-size: clamp(24px, 4vw, 34px); text-align: center; margin-bottom: 28px; letter-spacing: -0.01em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%; background: linear-gradient(180deg, #38bdf8, var(--blue)); color: #fff; font-weight: 800; }
.steps h3, .why h3 { font-size: 18px; }
.steps p, .why p { margin: 0; color: var(--muted); }
.why { display: grid; gap: 16px; }
.why-item { overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: 0 8px 30px -22px rgba(11, 59, 140, 0.6); }
.why-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.why-text { padding: 16px 18px 20px; }
.areas-title { text-align: center; font-size: 18px; margin: 34px 0 14px; }
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.areas li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding-bottom: 8px; }
.final { color: #fff; text-align: center; background: linear-gradient(180deg, rgba(7, 26, 61, 0.72), rgba(7, 26, 61, 0.86)), url("/assets/media/pool-1000.webp") center / cover no-repeat; }
.final h2 { font-size: clamp(26px, 4vw, 36px); }
.final-actions { display: grid; gap: 10px; margin-top: 18px; }
.prose h1 { font-size: clamp(28px, 5vw, 40px); }
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose p { line-height: 1.7; }

/* Fußzeile */
.foot { background: #0b1730; color: #cbd5e1; padding: 36px 0 90px; font-size: 14px; }
.foot-inner { display: grid; gap: 20px; }
.brand-foot { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; }
.brand-foot img { width: 32px; height: 32px; }
.foot p { margin: 8px 0 0; }
.foot-links { display: grid; gap: 8px; }
.foot a, .foot .linklike { color: #e2e8f0; }
.copy { margin-top: 24px !important; color: #94a3b8; font-size: 13px; }

/* Cookie-Hinweis */
.cookie { position: fixed; left: 12px; right: 88px; bottom: 16px; z-index: 60; max-width: 560px; padding: 16px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 20px 60px -15px rgba(15, 23, 42, 0.5); font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cookie .btn { min-height: 42px; padding: 0 18px; }

@media (max-width: 420px) {
  .top-inner { gap: 6px; min-height: 58px; }
  .brand img { height: 38px; }
  .langs a { padding: 5px; font-size: 12px; }
  .option { font-size: 14px; padding: 10px 8px; }
}

@media (min-width: 640px) {
  .why { grid-template-columns: 1fr 1fr; }
  .final-actions { grid-template-columns: 1fr 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 48px; padding-top: 60px; padding-bottom: 72px; }
  .brand img { height: 48px; }
  .card { padding: 26px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(4, 1fr); }
  .wa-float { width: auto; height: 58px; padding: 0 20px 0 16px; right: 24px; bottom: 24px; }
  .wa-float span { display: inline; }
  .wa-float svg { width: 28px; height: 28px; }
  .foot { padding-bottom: 36px; }
  .cookie { left: 24px; right: auto; bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .option, .slides, .slider, .progress span { transition: none; }
  .wa-float::after { animation: none; }
}
