/* ============================================================
   CASAIA — Ratgeber-Landingpage
   Design-System übernommen von casaia.de
   Navy #0F1A2A · Gold #D4AF6A · Montserrat / system-ui
   ============================================================ */

:root {
  --navy: #0f1a2a;
  --navy-soft: #16233a;
  --gold: #d4af6a;
  --gold-dark: #b8945a;
  --white: #ffffff;
  --grey-bg: #f7f7f7;
  --text: #0f1a2a;
  --text-muted: #5e6266;
  --text-on-navy: rgba(255, 255, 255, 0.72);
  --border: rgba(15, 26, 42, 0.12);
  --border-on-navy: rgba(255, 255, 255, 0.1);

  --font-head: Montserrat, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --radius-card: 16px;
  --radius-input: 8px;
  --container: 1280px;
  --section-pad: 112px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.14;
  overflow-wrap: break-word;
}
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: var(--section-pad) 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--grey { background: var(--grey-bg); }

/* ---------- Typo-Bausteine ---------- */

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
}

.section--navy .lead { color: var(--text-on-navy); }

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head .lead { margin-top: 20px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--gold { background: var(--gold); color: #000; }
.btn--gold:hover { background: var(--gold-dark); }

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost-light:hover { border-color: var(--white); }

.btn--ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: rgba(15, 26, 42, 0.25);
}
.btn--ghost-dark:hover { border-color: var(--navy); }

.btn--block { width: 100%; padding: 16px 28px; font-size: 16px; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(15, 26, 42, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-on-navy);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand__logo {
  height: 50px;
  width: auto;
  display: block;
}

.header__right { display: flex; align-items: center; gap: 20px; }

.header__note {
  font-size: 14px;
  color: var(--text-on-navy);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 178px 0 100px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 106, 0.16), transparent 65%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  /* wächst erst mit, wenn genug Platz da ist – schmale Desktops bleiben unverändert */
  grid-template-columns: 1fr clamp(452px, 34vw, 500px);
  gap: clamp(56px, 5vw, 72px);
  align-items: center;
}

.hero__sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-on-navy);
  max-width: 560px;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trustline {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.trustline span { display: inline-flex; align-items: center; gap: 8px; }
.trustline svg { color: var(--gold); flex: none; }

/* ---------- Formular-Card ---------- */

.formcard {
  background: var(--white);
  color: var(--text);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

/* Kopf mit PDF-Cover */

.formcard__head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.cover {
  position: relative;
  flex: none;
  width: 86px;
  height: 118px;
  border-radius: 5px;
  background: linear-gradient(150deg, #1b2b44 0%, var(--navy) 62%);
  color: var(--white);
  padding: 12px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 26px rgba(15, 26, 42, 0.32);
  transform: rotate(-2.5deg);
  transition: transform 0.3s ease;
}

.formcard:hover .cover { transform: rotate(-4deg) translateY(-2px); }

.cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 5px 0 0 5px;
  background: var(--gold);
  opacity: 0.85;
}

.cover__top { display: grid; gap: 7px; }

/* nur das Signet aus dem Lockup freistellen */
.cover__signet {
  display: block;
  position: relative;
  width: 16px;
  height: 23px;
  overflow: hidden;
}

.cover__signet img {
  position: absolute;
  width: 57.6px;
  height: auto;
  left: -19.6px;
  top: -2.1px;
  max-width: none;
}

.cover__rule { display: block; height: 1px; width: 22px; background: var(--gold); }

.cover__num {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 5px;
}

.cover__txt {
  font-size: 7px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  padding-bottom: 2px;
}

.cover__badge {
  position: absolute;
  right: -10px;
  top: 12px;
  background: var(--gold);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(15, 26, 42, 0.25);
}

.formcard__headtext { padding-top: 2px; }

.formcard__title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.formcard__meta { margin-top: 6px; font-size: 14px; color: var(--text-muted); }

.formcard__ticks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.formcard__ticks li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.formcard__ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: rotate(-45deg);
}

/* Felder */

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.field__wrap { position: relative; }

.field__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15, 26, 42, 0.35);
  pointer-events: none;
  transition: color 0.15s ease;
}

.field input {
  width: 100%;
  border: 1px solid rgba(15, 26, 42, 0.18);
  border-radius: 10px;
  background: #fbfbfc;
  padding: 14px 16px 14px 44px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.field input::placeholder { color: rgba(15, 26, 42, 0.32); }

.field input:hover { border-color: rgba(15, 26, 42, 0.32); }

.field input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.22);
}

.field__wrap:focus-within .field__icon { color: var(--gold-dark); }

.field__hint { margin-top: 7px; font-size: 12.5px; color: var(--text-muted); }

.field__error {
  display: none;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #b3261e;
}

.field.has-error input { border-color: #b3261e; background: #fff7f6; }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18); }
.field.has-error .field__icon { color: #b3261e; }
.field.has-error .field__hint { display: none; }
.field.has-error .field__error { display: block; }

/* Hinweis „PDF kommt per E-Mail" */

.formcard__notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(212, 175, 106, 0.12);
  font-size: 13px;
  line-height: 1.5;
  color: #6b5a38;
}

.formcard__notice svg { flex: none; margin-top: 1px; color: var(--gold-dark); }
.formcard__notice strong { color: var(--navy); font-weight: 600; }

/* Honeypot gegen Bots – für Menschen unsichtbar */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formcard__failed {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7f6;
  border: 1px solid rgba(179, 38, 30, 0.3);
  font-size: 13px;
  line-height: 1.5;
  color: #b3261e;
}

.formcard__failed a { color: #b3261e; }

/* Einwilligung */

.field--consent { margin-bottom: 20px; }

.field label.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 0;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}

.consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent__box {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid rgba(15, 26, 42, 0.3);
  border-radius: 5px;
  background: #fbfbfc;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.consent:hover .consent__box { border-color: rgba(15, 26, 42, 0.5); }

.consent input:checked + .consent__box {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.consent input:focus-visible + .consent__box {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.28);
}

.consent__text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.consent__text a { color: var(--gold-dark); }

.field--consent.has-error .consent__box {
  border-color: #b3261e;
  background: #fff7f6;
}

/* Button-States */

.btn__arrow { transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn.is-loading { pointer-events: none; opacity: 0.9; }
.btn.is-loading .btn__arrow { display: none; }
.btn.is-loading .btn__spinner { display: block; }

.formcard__legal {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}

.formcard__legal svg { flex: none; margin-top: 2px; color: var(--gold-dark); }
.formcard__legal a { color: var(--text-muted); }

/* Danke-State */

.formcard__success {
  display: none;
  text-align: center;
  padding: 14px 4px 8px;
}

.success__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgba(212, 175, 106, 0.22);
  box-shadow: 0 0 0 8px rgba(212, 175, 106, 0.1);
}

.success__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.success__text strong { color: var(--navy); font-weight: 600; }

.success__hint {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.success__hint a { color: var(--gold-dark); }

.formcard__confirmed,
.formcard__unsubscribed,
.formcard__expired {
  display: none;
  text-align: center;
  padding: 14px 4px 8px;
}

.formcard__expired .btn { margin-top: 24px; }

.formcard.is-done .formcard__form { display: none; }
.formcard.is-done .formcard__success { display: block; }

.formcard.is-confirmed .formcard__form { display: none; }
.formcard.is-confirmed .formcard__confirmed { display: block; }

.formcard.is-expired .formcard__form { display: none; }
.formcard.is-expired .formcard__expired { display: block; }

.formcard.is-unsubscribed .formcard__form { display: none; }
.formcard.is-unsubscribed .formcard__unsubscribed { display: block; }

.formcard.is-done .formcard__head,
.formcard.is-confirmed .formcard__head,
.formcard.is-unsubscribed .formcard__head,
.formcard.is-expired .formcard__head {
  border-bottom: 0;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

/* ---------- Karten-Raster ---------- */

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

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: rgba(15, 26, 42, 0.28); transform: translateY(-2px); }

.section--navy .card {
  background: transparent;
  border-color: var(--border-on-navy);
}
.section--navy .card:hover { border-color: rgba(212, 175, 106, 0.5); }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(15, 26, 42, 0.06);
  color: var(--navy);
  margin-bottom: 20px;
}

.section--navy .card__icon {
  background: rgba(212, 175, 106, 0.12);
  color: var(--gold);
}

/* Stolperfallen: rotes Warnsignal */
.card__icon--warn {
  background: rgba(200, 42, 33, 0.1);
  color: #c82a21;
}

.card--warn { border-color: rgba(200, 42, 33, 0.22); }
.card--warn:hover { border-color: rgba(200, 42, 33, 0.45); }
.card--warn h3 { color: var(--navy); }

/* Warum CASAIA: goldenes Plussignal */
.card__icon--good {
  background: rgba(212, 175, 106, 0.18);
  color: var(--gold-dark);
}

.card h3 { margin-bottom: 10px; }

.card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.section--navy .card p { color: var(--text-on-navy); }

.transition-line {
  margin-top: 56px;
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
}

.transition-line strong { color: var(--navy); font-weight: 600; }

/* ---------- Inhalts-Liste ---------- */

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
  max-width: 1000px;
  margin: 0 auto;
}

.content-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-on-navy);
}

.content-item__num {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  padding-top: 2px;
  flex: none;
  width: 28px;
}

.content-item__txt { font-size: 16.5px; line-height: 1.55; }

.center-cta { margin-top: 56px; text-align: center; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.faq__icon { flex: none; color: var(--gold); transition: transform 0.25s ease; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__a p {
  padding: 0 26px 24px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Finale CTA ---------- */

.final {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.final .lead { margin-top: 20px; }
.final .btn { margin-top: 36px; }

.final__trust {
  margin-top: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border-on-navy);
  padding: 32px 0;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.footer a:hover { color: var(--gold); }

.footer__links { display: flex; gap: 24px; }

/* ---------- Scroll-Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  :root { --section-pad: 80px; }
  .hero { padding: 140px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .formcard { max-width: 520px; }
  .grid-3 { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  :root { --section-pad: 64px; }
  .header__note { display: none; }
  .hero { padding: 122px 0 64px; }
  .formcard { padding: 24px; }
  .card { padding: 26px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn,
  .center-cta .btn,
  .final .btn { width: 100%; }
  .header__inner { height: 68px; }
  .brand__logo { height: 40px; }
  .header__right .btn { padding: 12px 18px; font-size: 14px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
