/* ============================================================
   MusterCV — goldwynacademy.com/lebenslauf
   Design-Richtung 6: Gutachten
   Libre Baskerville 400 (Überschriften) · DM Sans 400/600/700
============================================================ */

/* --- Tokens --- */
:root {
  --navy:      #030C4B;
  --gold:      #BDA006;
  --gold-txt:  #7A6804;   /* Gold für Text auf hellem Grund (Kontrast ≥ 4.5:1) */
  --bg:        #FAFAF8;
  --bg-warm:   #F0EDE8;
  --bg-dark:   #030C4B;
  --fg:        #1C2033;
  --fg2:       #6B6B6B;
  --border:    rgba(3,12,75,.12);

  --f-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --f-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* Typoskala */
  --t-xs:   11px;
  --t-sm:   13px;
  --t-base: 16px;
  --t-lg:   19px;
  --t-xl:   clamp(26px, 3.5vw, 38px);
  --t-2xl:  clamp(36px, 5vw, 56px);
  --t-hero: clamp(36px, 6vw, 68px);

  /* Abstände */
  --gap-sm:  clamp(32px, 4vw, 48px);
  --gap-md:  clamp(56px, 7vw, 96px);
  --gap-lg:  clamp(80px, 10vw, 140px);
  --container: 880px;
  --radius: 4px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* --- Container --- */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px))
                  max(20px, env(safe-area-inset-right, 0px));
}

/* --- Kopfleiste (Navy, 52px) --- */
.site-bar {
  background: var(--navy);
  height: 52px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-bar__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px))
                  max(20px, env(safe-area-inset-right, 0px));
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-bar__brand {
  font-family: var(--f-serif);
  font-size: 14px;
  color: rgba(255,255,255,.85);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.site-bar__brand span { color: var(--gold); }
.site-bar__nav {
  display: flex;
  gap: 24px;
  list-style: none;
}
.site-bar__nav a {
  font-size: var(--t-sm);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}
.site-bar__nav a:hover { color: #fff; }
.site-bar__cta {
  font-size: var(--t-sm);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 16px;
  border-radius: 3px;
  white-space: nowrap;
  transition: border-color .15s;
}
.site-bar__cta:hover { border-color: rgba(255,255,255,.7); }

@media (max-width: 600px) {
  .site-bar__nav { display: none; }
  .site-bar__cta { display: none; }
  .site-bar__brand { font-size: 13px; }
}

/* --- Hero --- */
.hero {
  background: var(--bg);
  padding-block: clamp(72px, 11vw, 120px) clamp(64px, 9vw, 104px);
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr min(320px, 36%);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__brand-line {
  font-family: var(--f-sans);
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--fg2);
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.hero__h1 {
  font-family: var(--f-serif);
  font-size: var(--t-hero);
  font-weight: 400;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero__sub {
  font-size: var(--t-lg);
  color: var(--fg2);
  line-height: 1.5;
  max-width: 42ch;
  margin-bottom: 40px;
  font-weight: 400;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
}
.btn-text-gold {
  font-family: var(--f-sans);
  font-size: var(--t-base);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--gold);
  transition: border-width .12s, color .12s;
  line-height: 1.4;
}
.btn-text-gold:hover { border-bottom-width: 3px; }

.btn-text-plain {
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--fg2);
  text-decoration: none;
  transition: color .15s;
}
.btn-text-plain:hover { color: var(--navy); }

/* Hero Kennzahlen-Box rechts */
.hero__stat-box {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__stat-num {
  font-family: var(--f-serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
}
.hero__stat-num--gold { color: var(--gold-txt); }
.hero__stat-label {
  font-size: var(--t-sm);
  color: var(--fg2);
  letter-spacing: .01em;
}
.hero__stat-divider {
  height: 1px;
  background: var(--border);
}

@media (max-width: 700px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stat-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 20px 16px;
    border-left: 3px solid var(--gold);
  }
  .hero__stat {
    text-align: center;
    padding: 8px 10px;
  }
  .hero__stat:not(:last-child) {
    border-right: 1px solid var(--border);
  }
  .hero__stat-divider { display: none; }
  .hero__stat-num { font-size: 28px; }
  .hero__stat-label { font-size: 10px; }
}

/* --- Trennlinie --- */
.rule {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* --- Abschnitt: helle Fläche --- */
.section {
  padding-block: var(--gap-md);
}
.section--warm { background: var(--bg-warm); }
.section--dark {
  background: var(--bg-warm);
}

/* --- Abschnitts-Typografie --- */
.section__h2 {
  font-family: var(--f-serif);
  font-size: var(--t-xl);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: clamp(20px, 3vw, 32px);
  text-wrap: balance;
}

.section__lead {
  font-size: var(--t-lg);
  color: var(--fg2);
  line-height: 1.55;
  max-width: 58ch;
  margin-bottom: 24px;
}

.section__text {
  color: var(--fg2);
  line-height: 1.7;
  max-width: 62ch;
}

/* --- Vertrauen (Stats) --- */
.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: var(--gap-sm);
  overflow: hidden;
}
.trust__stat {
  padding: 32px 28px;
  background: var(--bg);
}
.trust__divider {
  background: var(--border);
  width: 1px;
  min-height: 80px;
  flex-shrink: 0;
}
.trust__num {
  font-family: var(--f-serif);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.trust__label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.trust__sub {
  font-size: var(--t-xs);
  color: var(--fg2);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .trust__grid {
    grid-template-columns: 1fr;
    border: none;
    gap: 1px;
    background: var(--border);
  }
  .trust__divider { display: none; }
  .trust__stat { background: var(--bg); }
}

/* --- Vorlagen-Karten --- */
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: var(--gap-sm);
}
.template-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.template-card--featured {
  border-color: var(--gold);
  position: relative;
}
.template-card__badge {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-txt);
  background: #FBF6DC;
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  align-self: flex-start;
}
.template-card__title {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}
.template-card__desc {
  font-size: var(--t-sm);
  color: var(--fg2);
  line-height: 1.6;
  flex: 1;
}
.template-card__price {
  font-family: var(--f-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
}
.template-card__price-note {
  font-size: var(--t-sm);
  color: var(--fg2);
  margin-left: 6px;
}
.btn-solid {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: var(--f-sans);
  font-size: var(--t-sm);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity .15s;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}
.btn-solid:hover { opacity: .85; }
.btn-solid--gold {
  background: var(--gold);
  color: #fff;
}
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--f-sans);
  font-size: var(--t-sm);
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .12s, color .12s;
  align-self: flex-start;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

@media (max-width: 620px) {
  .template-grid { grid-template-columns: 1fr; }
}

/* --- Check-Sektion (dunkel) --- */
.check-inner {
  display: grid;
  grid-template-columns: 1fr min(340px, 42%);
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.check-criteria {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-criteria__group {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 12px;
  align-items: start;
}
.check-criteria__cat {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  padding-top: 1px;
}
.check-criteria__items {
  font-size: var(--t-sm);
  color: var(--fg2);
  line-height: 1.55;
}
.check-box {
  background: #fff;
  border: 1px solid rgba(3,12,75,.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.check-box__price {
  font-family: var(--f-serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.check-box__price-sub {
  font-size: var(--t-sm);
  color: var(--fg2);
  margin-top: 4px;
}
.check-box__compare {
  font-size: var(--t-sm);
  color: var(--fg2);
  line-height: 1.55;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
}
.check-box__note {
  font-size: var(--t-xs);
  color: #9E9E9E;
}

/* --- Upload-Formular im Check-Box --- */
.check-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.check-form__label {
  font-size: var(--t-sm);
  color: var(--fg);
  font-weight: 600;
}
.check-form__hint {
  font-weight: 400;
  color: var(--fg2);
}
.check-form__input {
  background: #fff;
  border: 1px solid rgba(3,12,75,.18);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--f-sans);
  font-size: var(--t-base);
  color: #fff;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.check-form__input::placeholder { color: #BDBDBD; }
.check-form__input:focus { border-color: var(--navy); }
.check-form__file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px dashed rgba(255,255,255,.3);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.check-form__file-label:hover { border-color: var(--navy); background: rgba(3,12,75,.04); }
.check-form__file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check-form__file-text {
  font-size: var(--t-sm);
  color: var(--fg2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.check-form__err {
  font-size: var(--t-xs);
  color: #FF8080;
  min-height: 16px;
}
.check-form__submit {
  width: 100%;
  justify-content: center;
  font-size: var(--t-sm);
}
.check-form__submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.check-form__status {
  font-size: var(--t-sm);
  color: var(--fg2);
  text-align: center;
  margin-top: 4px;
}
.check-score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.check-score__bar {
  flex: 1;
  height: 3px;
  background: rgba(3,12,75,.12);
  border-radius: 2px;
  overflow: hidden;
}
.check-score__fill {
  width: 78%;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}
.check-score__label {
  font-size: var(--t-xs);
  color: var(--fg2);
  white-space: nowrap;
}
.btn-solid--light {
  background: var(--navy);
  color: #fff;
}
.btn-solid--light:hover { opacity: .88; }

@media (max-width: 700px) {
  .check-inner { grid-template-columns: 1fr; }
}

/* --- Ablauf --- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--gap-sm);
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 26px; /* Kreismitte: 52px/2 */
  left: calc(100% / 6);
  width: calc(100% * 2 / 3);
  height: 1px;
  background: var(--gold);
  opacity: .4;
}
.process__step {
  padding: 0 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.process__title {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
}
.process__desc {
  font-size: var(--t-sm);
  color: var(--fg2);
  line-height: 1.6;
}
.process__ko-note {
  margin-top: var(--gap-sm);
  padding: 20px 24px;
  background: var(--bg-warm);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--t-sm);
  color: var(--fg2);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .process { grid-template-columns: 1fr; }
  .process::before { display: none; }
  .process__step { flex-direction: row; align-items: flex-start; padding: 0 0 24px; gap: 16px; }
  .process__content { flex: 1; }
}

/* --- Persönlicher Check --- */
.personal-check {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 620px) {
  .personal-check { grid-template-columns: 1fr; }
}

/* --- Consultants --- */
.consultants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: var(--gap-sm);
}
.consultant-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.consultant-card__photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.consultant-card__placeholder {
  color: var(--border);
  font-size: 40px;
}
.consultant-card__name {
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
}
.consultant-card__role {
  font-size: var(--t-xs);
  color: var(--fg2);
}

@media (max-width: 680px) {
  .consultants-grid { grid-template-columns: 1fr 1fr; }
}

/* --- FAQ --- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--gap-sm);
  border-top: 1px solid var(--border);
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__q {
  all: unset;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--f-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.35;
}
.faq__q:hover { color: var(--navy); }
.faq__arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg2);
  font-size: 16px;
  transition: transform .2s;
}
.faq__item.open .faq__arrow { transform: rotate(45deg); }
.faq__a {
  display: none;
  padding: 0 0 24px;
  font-size: var(--t-sm);
  color: var(--fg2);
  line-height: 1.7;
  max-width: 62ch;
}
.faq__item.open .faq__a { display: block; }

/* --- Abschluss-CTA --- */
.final-cta {
  background: var(--bg-dark);
  padding-block: var(--gap-md);
  text-align: center;
}
.final-cta__h2 {
  font-family: var(--f-serif);
  font-size: var(--t-xl);
  font-weight: 400;
  color: #fff;
  margin-bottom: 16px;
  text-wrap: balance;
}
.final-cta__text {
  color: rgba(255,255,255,.6);
  font-size: var(--t-base);
  margin-bottom: 40px;
  max-width: 48ch;
  margin-inline: auto;
}
.final-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* --- Footer --- */
.site-footer {
  background: #020A3E;
  padding-block: 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__brand {
  font-family: var(--f-serif);
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.site-footer__links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.site-footer__links a {
  font-size: var(--t-xs);
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.site-footer__links a:hover { color: rgba(255,255,255,.85); }

/* --- Animationen --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
}

/* Dark-Mode: Gutachten ist eine bewusst helle Seite.
   Wir liefern ein sanftes Dunkel-Äquivalent. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:     #12131A;
    --bg-warm:#1A1B25;
    --bg-dark:#020A3E;
    --fg:     #E4E7F4;
    --fg2:    #7A80A0;
    --border: rgba(180,185,220,.12);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .section__h2 { color: #E4E7F4; }
  :root:not([data-theme="light"]) .hero__h1 { color: #E4E7F4; }
  :root:not([data-theme="light"]) .trust__num { color: #E4E7F4; }
  :root:not([data-theme="light"]) .template-card { background: var(--bg-warm); }
  :root:not([data-theme="light"]) .trust__stat { background: var(--bg-warm); }
}
:root[data-theme="dark"] {
  --bg:     #12131A;
  --bg-warm:#1A1B25;
  --bg-dark:#020A3E;
  --fg:     #E4E7F4;
  --fg2:    #7A80A0;
  --border: rgba(180,185,220,.12);
  color-scheme: dark;
}
:root[data-theme="dark"] .section__h2 { color: #E4E7F4; }
:root[data-theme="dark"] .hero__h1 { color: #E4E7F4; }
:root[data-theme="dark"] .trust__num { color: #E4E7F4; }
:root[data-theme="dark"] .template-card { background: var(--bg-warm); }
:root[data-theme="dark"] .trust__stat { background: var(--bg-warm); }

/* --- Tweaks (Phase 6 Regler-Panel) --- */
/* leer — wird in Phase 6 befüllt */
