@import url("../fonts/fonts.css");

:root {
  --gold: #d7b777;
  --gold-dark: #a8853d;
  --gold-soft: #f3e7cc;
  --lilac: #9780be;
  --lilac-dark: #6b5296;
  --blue: #3f6f9c;
  --pink: #c77fa9;
  --ink: #2a1440;
  --ink-soft: #55456b;
  --cream: #fcf7fb;
  --white: #fff;
  --line: #e6dcea;
  --error: #a3264a;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(42, 20, 64, 0.12);
  --sans: "Alegreya Sans", system-ui, sans-serif;
  --caps: "Alegreya SC", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lilac-dark); }
h1, h2, h3 { font-family: var(--caps); font-weight: 400; line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--gold-dark); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); color: var(--lilac-dark); }
h3 { font-size: 1.35rem; color: var(--lilac-dark); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lilac-dark); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--gold); box-shadow: 0 2px 10px rgba(42, 20, 64, 0.15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo img { height: 52px; width: auto; border-radius: 0 0 26px 0; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--caps); font-size: 1.05rem; letter-spacing: 0.04em; padding: 10px 2px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav a.nav-login { border: 1.5px solid var(--ink); border-radius: 100px; padding: 6px 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--gold); flex-direction: column; gap: 0; padding: 8px 16px 18px; box-shadow: 0 10px 14px rgba(42, 20, 64, 0.15); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 4px; border-bottom: 1px solid rgba(42, 20, 64, 0.15); }
  .nav a.nav-login { margin-top: 12px; text-align: center; border-bottom: 1.5px solid var(--ink); }
}

/* Buttons */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 34px; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 1.25rem; font-weight: 500; line-height: 1.2; text-decoration: none; text-align: center;
  color: var(--ink); background: var(--gold);
  border-radius: 100px 100px 6px 100px;
  box-shadow: 0 6px 16px rgba(168, 133, 61, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(168, 133, 61, 0.45); background: #dfc38a; }
.btn:active { transform: translateY(0); }
.btn small { font-size: 0.85rem; font-weight: 400; opacity: 0.85; }
.btn-dark { background: var(--ink); color: var(--white); box-shadow: 0 6px 16px rgba(42, 20, 64, 0.3); }
.btn-dark:hover { background: #3b2058; box-shadow: 0 10px 22px rgba(42, 20, 64, 0.35); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: rgba(42, 20, 64, 0.06); box-shadow: none; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Sections */
.band { background: var(--gold); color: var(--ink); text-align: center; padding: 30px 0; }
.band p { margin: 0; font-family: var(--caps); font-size: clamp(1.2rem, 2.6vw, 1.6rem); letter-spacing: 0.03em; line-height: 1.4; text-wrap: balance; }
.band.plain p { font-family: var(--sans); letter-spacing: 0; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.card { background: var(--white); border: 1.5px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 38px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 0.55em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1440' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Hero */
.hero { background: url("../img/hero.jpg") center/cover no-repeat; padding: clamp(40px, 8vw, 96px) 0; }
.hero-card { width: min(780px, 100%); margin-inline: auto; text-align: center; background: rgba(255, 255, 255, 0.86); border: 1.5px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 48px); backdrop-filter: blur(3px); }
.hero .eyebrow { color: var(--lilac-dark); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.9em; text-wrap: balance; }
.hero .sub { font-family: var(--caps); color: var(--ink-soft); font-size: 1.2rem; margin-bottom: 1.4em; }
.hero-note { font-size: 1rem; color: var(--ink-soft); margin: 16px 0 0; }

.about { background: var(--gold-soft); border: 0; }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 1; object-fit: cover; }

.approach { background: linear-gradient(rgba(27, 2, 47, 0.35), rgba(27, 2, 47, 0.55)), url("../img/bg-bokeh.jpg") center/cover no-repeat; }
.approach .card { background: rgba(255, 255, 255, 0.94); align-self: stretch; }
.approach .grid-2 { align-items: stretch; }
.approach .quiet { font-family: var(--caps); color: var(--lilac-dark); font-size: 1.2rem; }

/* Forms */
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-weight: 500; font-size: 1.05rem; margin-bottom: 5px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #b9a9cc; border-radius: 10px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(151, 128, 190, 0.45); border-color: var(--lilac-dark); }
.field .hint { font-size: 0.95rem; color: var(--ink-soft); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; text-align: left; margin-bottom: 18px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--lilac-dark); }
.form-msg { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; text-align: left; }
.form-msg.show { display: block; }
.form-msg.error { background: #fbe9ef; color: var(--error); border: 1px solid #e8b6c6; }
.form-msg.ok { background: #eef6ee; color: #235c2c; border: 1px solid #b9d8bd; }
.form-msg.info { background: #f1ecf8; color: var(--ink); border: 1px solid #cfc1e3; }
.micro { font-size: 0.95rem; color: var(--ink-soft); text-align: center; margin-top: 12px; }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; } }
.offer { display: flex; flex-direction: column; text-align: center; }
.offer h3 { min-height: 2.4em; }
.offer .price { font-family: var(--caps); font-size: 1.9rem; color: var(--gold-dark); margin: 6px 0 14px; }
.offer .checks { text-align: left; margin-bottom: 22px; flex: 1; }

/* Contact */
.contact { background: linear-gradient(rgba(27, 2, 47, 0.45), rgba(27, 2, 47, 0.6)), url("../img/see.jpg") center/cover no-repeat; color: var(--white); text-align: center; }
.contact h2 { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { background: rgba(255, 255, 255, 0.95); color: var(--ink); border-radius: var(--radius); padding: 20px 14px; text-decoration: none; display: block; transition: transform 0.15s ease; }
.contact-item:hover { transform: translateY(-3px); }
.contact-item strong { display: block; font-family: var(--caps); font-weight: 400; font-size: 1.3rem; color: var(--lilac-dark); }
.contact-item span { overflow-wrap: anywhere; }

.site-footer { background: var(--gold); padding: 18px 0; font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--ink); }

.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(252, 247, 251, 0.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.25s ease; }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; min-height: 48px; font-size: 1.1rem; }
  body.has-sticky { padding-bottom: 76px; }
}

/* Auth, Onboarding, Mitgliederbereich */
.app-body { min-height: 100vh; background: var(--cream) url("../img/hero.jpg") center top/cover fixed no-repeat; display: flex; flex-direction: column; }
.app-header { padding: 14px 0; }
.app-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.app-header img { height: 48px; width: auto; border-radius: 12px; }
.app-header a { color: var(--ink); font-size: 1.05rem; }
.app-main { flex: 1; display: grid; place-items: start center; padding: 16px 16px 56px; }
.auth-card { width: min(480px, 100%); background: rgba(255, 255, 255, 0.95); }
.auth-card h1 { font-size: 1.9rem; text-align: center; color: var(--lilac-dark); }
.auth-card .lead-in { text-align: center; color: var(--ink-soft); }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: 1.05rem; }
.demo-note { font-size: 0.95rem; background: #f1ecf8; border: 1px dashed var(--lilac); border-radius: 10px; padding: 10px 12px; margin-top: 18px; color: var(--ink-soft); }

.progress { height: 8px; background: var(--line); border-radius: 100px; overflow: hidden; margin-bottom: 8px; }
.progress div { height: 100%; width: 0; background: var(--gold-dark); border-radius: 100px; transition: width 0.3s ease; }
.step-count { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 18px; }
.options { display: grid; gap: 10px; margin-bottom: 18px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; }
.option span { display: block; padding: 14px 16px; border: 1.5px solid #b9a9cc; border-radius: 12px; background: var(--white); transition: border-color 0.15s, background 0.15s; }
.option:hover span { border-color: var(--lilac-dark); }
.option input:checked + span { border-color: var(--gold-dark); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-dark); }
.option input:focus-visible + span { outline: 3px solid var(--lilac-dark); outline-offset: 2px; }
.ob-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ob-nav .btn { min-height: 48px; padding: 10px 26px; font-size: 1.1rem; }

.dash { width: min(860px, 100%); display: grid; gap: 22px; }
.dash .card { background: rgba(255, 255, 255, 0.96); }
.dash h1 { color: var(--lilac-dark); font-size: 2rem; margin-bottom: 0.2em; }
.dash dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.dash dt { color: var(--ink-soft); }
.dash dd { margin: 0; }
@media (max-width: 560px) { .dash dl { grid-template-columns: 1fr; } .dash dd { margin-bottom: 8px; } }
.reco { border-width: 2px; }
.reco .price { font-family: var(--caps); font-size: 1.6rem; color: var(--gold-dark); }

/* Rechtstexte */
.legal { padding: 48px 0 72px; }
.legal h1 { color: var(--lilac-dark); }
.legal h2 { margin-top: 1.6em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.3em; font-size: 1.2rem; }
.legal p, .legal li { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
