/* =========================================================
   Recruiting-Landingpage – Styles
   Design: Weiß + Marineblau + Gold (sparsam), ProFinanz-Eleganz.
   Mobile-first. Keine externen Ressourcen (DSGVO/Speed).
   ========================================================= */

/* ---------- Selbst gehostete Serife: Playfair Display (OFL, DSGVO-konform) ---------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/playfair-display-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/playfair-display-latin-600-italic.woff2") format("woff2");
}

/* ---------- Farb- & Design-Variablen ---------- */
:root {
  --bg: #FFFFFF;            /* Seitenhintergrund, durchgehend weiß */
  --primary: #14243B;      /* Marineblau — Schrift, Buttons, Überschriften, Struktur */
  --primary-dark: #0F1B2D; /* dunkleres Blau für Hover/Tiefe */
  --accent: #C9A24B;       /* Gold — NUR sparsam: Unterstreichungen, Rahmen, Icon-Details */
  --accent-light: #D4AF37; /* helleres Gold für feine Highlights */
  --gray-box: #F2F2F2;     /* heller grauer Kasten für Quiz-Sections */
  --gray-border: #E2E2E2;  /* dezente Rahmen */
  --text: #14243B;         /* Fließtext in Marineblau statt Reinschwarz */
  --text-muted: #5A6675;   /* gedämpfter Text (Hinweise, Sublines) */

  /* Elegante High-Contrast-Serife (ProFinanz-Look). Reihenfolge bevorzugt die
     edelsten verfügbaren System-Serifen; „Playfair Display" greift, sobald sie
     selbst gehostet wird (siehe fonts.css-Hinweis). Kein externer Request. */
  --font-head: "Playfair Display", "Didot", "Bodoni 72", "Hoefler Text", "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 720px;           /* schmale, ruhige Content-Breite */
  --radius: 8px;
  --gap: 1rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* schützt vor Scroll durch full-bleed Hero-Foto (100vw) */
}

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

a { color: var(--primary); }

/* ---------- Icon-System (Sprite) ---------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  color: var(--primary);   /* currentColor der Linien-Icons = Marineblau */
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Views (Landing vs. Vollbild-Quiz) ---------- */
.view[hidden] { display: none !important; }

.view--landing {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.view--quiz {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 5rem;
}

.quiz-screen {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.quiz-screen--center { display: flex; flex-direction: column; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}
.header-icon { display: inline-flex; }

/* ---------- Sections ---------- */
.section { padding: 2.25rem 0; }
.section--hero {
  padding-top: 4rem;
  text-align: center;
  position: relative;
  isolation: isolate; /* eigener Stapelkontext für das Hintergrund-Foto */
}
.section--hero-plain { padding-top: 2.5rem; }

/* Full-bleed Team-Foto, das dezent nach Weiß ausläuft (ProFinanz-Stil) */
.hero-photo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: -1;
  background: url("assets/images/team-small.jpg") center 22% / cover no-repeat;
  filter: grayscale(70%); /* Farbe zurücknehmen – dezenter, edler Hintergrund */
}
/* kräftiger Weiß-Schleier: Bild bleibt nur zart sichtbar, Headline tritt klar hervor */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(255, 255, 255, 0.90) 45%,
    rgba(255, 255, 255, 0.98) 82%,
    #fff 100%
  );
}

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--primary);
}
/* Gold-Unterstreichung */
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  background: var(--accent);
  margin: 0.7rem auto 0;
}

.section-subline {
  text-align: center;
  color: var(--text-muted);
  margin: -0.5rem 0 1.5rem;
}

/* ---------- Hero ---------- */
.hero-headline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.7rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0.5rem 0 1.1rem;
  color: var(--primary);
}
/* Gold-Unterstreichung unter der Hero-Headline (mehr Gold, edler Akzent) */
.hero-headline::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
}
.hero-subline {
  font-size: 1.15rem;
  margin: 0 auto 1rem;
  max-width: 40ch;
}
.hero-subline strong { color: var(--primary); }
/* Kursive Serifen-Hervorhebung (ProFinanz-Stil) für einzelne Wörter im Fließtext */
.accent-italic {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--primary);
}
.hero-hint { color: var(--text-muted); font-size: 0.82rem; }
/* Sauberes Und-Zeichen in Serifen-Headlines (Playfair-& wirkt sonst verschnörkelt) */
.amp { font-family: var(--font-body); font-weight: 600; font-style: normal; }

.downsell-intro {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
/* dezente Gold-Zierlinien links/rechts (ersetzt die entfernten Hand-Emojis) */
.downsell-intro::before,
.downsell-intro::after {
  content: "";
  height: 1px;
  width: 32px;
  background: var(--accent);
  flex: none;
}

/* ---------- Quiz-Kasten (grau, auf Landing) ---------- */
.quiz-box {
  background: var(--gray-box);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent); /* Gold-Akzent */
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.quiz-box__question {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  color: var(--primary);
}
.quiz-box__answers {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 560px) {
  .quiz-box__answers { grid-template-columns: 1fr 1fr; }
}

.quiz-repeat-lead {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1rem;
}

/* ---------- Antwort-Buttons ---------- */
/* Weiße Karte mit blauem Rahmen + blauer Schrift; aktiv/hover dezenter Gold-Rand.
   Gut lesbar auf Weiß (kein Kontrastproblem). */
.answer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  background: var(--primary);
  border: 1.5px solid var(--accent); /* Gold-Rand */
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .08s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.answer-btn:hover,
.answer-btn:focus-visible {
  background: var(--primary-dark);
  border-color: var(--accent-light);
  box-shadow: 0 6px 18px rgba(20, 36, 59, 0.22);
  outline: none;
}
.answer-btn:active { transform: translateY(1px); }
.answer-btn .icon { width: 1.35em; height: 1.35em; color: #fff; } /* weißes Glyph, Gold-Ring bleibt gold */

.quiz-screen__answers { display: grid; gap: 0.85rem; margin-top: 1.5rem; }
@media (min-width: 560px) {
  .quiz-screen__answers:not(.quiz-screen__answers--stacked) {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- CTA-Buttons (blau, weiße Schrift) ---------- */
.cta-btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: 1.5px solid var(--accent); /* Gold-Rand */
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cta-btn:hover,
.cta-btn:focus-visible {
  background: var(--primary-dark);
  border-color: var(--accent-light);
  box-shadow: 0 6px 18px rgba(20, 36, 59, 0.22);
  outline: none;
}
.cta-btn--full { width: 100%; }
.cta-btn--small { padding: 0.55rem 1rem; font-size: 0.9rem; }

/* ---------- Quiz-Vollbild-Screens ---------- */
.quiz-counter {
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .02em;
  margin: 0.5rem 0 0.75rem;
}
.quiz-screen__question {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.big-icon { width: 3.25rem; height: 3.25rem; margin-bottom: 0.75rem; }

/* ---------- Video-Platzhalter (16:9) ---------- */
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
.video-placeholder__play {
  width: 64px; height: 64px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.video-placeholder__play .icon { width: 2rem; height: 2rem; }
.video-placeholder__label { font-weight: 600; max-width: 32ch; }

/* ---------- Benefit-Liste (leichtes goldenes Gitternetz, kein äußerer Rahmen) ----------
   Technik: 1px-Fugen (gap) auf goldenem Listen-Hintergrund, Zellen weiß.
   Dadurch entstehen die Gold-Linien NUR zwischen den Punkten (Mittellinie +
   Trennlinien), außen bleibt bewusst offen – kein Kasten. */
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;      /* mobile: eine Spalte */
  gap: 1px;
  background: rgba(201, 162, 75, 0.45); /* leichtes Gold in den Fugen */
}
.benefit {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--bg);           /* weiße Zellen – Gold nur in den Fugen */
  padding: 1.05rem 0.5rem;
}
.benefit__icon { width: 1.7rem; height: 1.7rem; margin-top: 0.15rem; }

@media (min-width: 560px) {
  .benefit-list { grid-template-columns: 1fr 1fr; }
  .benefit { padding: 1.25rem 1.4rem; }
  /* ungerade Anzahl: letztes Element über beide Spalten – kein Gold-Block im Leerfeld */
  .benefit:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Testimonial-Slider ---------- */
.slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.testimonial {
  scroll-snap-align: start;
  flex: 0 0 84%;
  max-width: 330px;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 10px 28px rgba(20, 36, 59, 0.12);
}
@media (min-width: 560px) { .testimonial { flex-basis: 47%; max-width: 340px; } }
/* Desktop: Slider bricht aus der schmalen Spalte aus → deutlich größere Partner-Fotos */
@media (min-width: 760px) {
  .slider {
    width: min(1140px, 100vw - 2rem);
    margin-left: 50%;
    transform: translateX(-50%);
    padding-inline: 0.25rem;
  }
  .testimonial { flex: 0 0 340px; max-width: 340px; }
}
/* großes, volles Porträt – Gesichter klar sichtbar */
.testimonial__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  background: var(--gray-box);
  border-bottom: 3px solid var(--accent); /* Gold-Akzent */
}
.testimonial__body { padding: 1rem 1.15rem 1.3rem; }
.testimonial__name { font-weight: 700; margin: 0; color: var(--primary); font-size: 1.1rem; }
.testimonial__region { color: var(--text-muted); font-size: 0.9rem; margin: 0.2rem 0 0.85rem; line-height: 1.45; }
.testimonial__badges { display: flex; gap: 0.5rem; justify-content: flex-start; flex-wrap: wrap; }
.badge {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--accent);
}

/* ---------- FAQ (Accordion) ---------- */
.faq { display: grid; gap: 0.65rem; }
.faq__item {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 0.25rem 1rem;
  background: #fff;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  padding: 0.85rem 0;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0 0 1rem; color: var(--text-muted); }

/* ---------- Team-Foto-Platzhalter ---------- */
.team-photo {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(20, 36, 59, 0.16);
}
.team-photo img { width: 100%; height: auto; display: block; }

.reassurance { text-align: center; font-weight: 600; color: var(--primary); }
.reassurance--left { text-align: left; font-weight: 400; color: var(--text-muted); margin-top: 1.5rem; }

/* ---------- Formulare ---------- */
.lead-form { display: grid; gap: 0.85rem; margin-top: 1.5rem; text-align: left; }
.lead-form__row { display: grid; gap: 0.85rem; }
@media (min-width: 480px) { .lead-form__row { grid-template-columns: 1fr 1fr; } }

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.quiz-input-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
}
.lead-form input:focus,
.quiz-input-form input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(201, 162, 75, 0.25);
}

.phone-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.phone-field:focus-within { border-color: var(--accent); outline: 2px solid rgba(201, 162, 75, 0.25); }
.phone-field__prefix {
  display: flex; align-items: center;
  padding: 0 0.85rem;
  background: var(--gray-box);
  border-right: 1px solid var(--gray-border);
  font-weight: 600;
  white-space: nowrap;
}
.phone-field input { border: none !important; outline: none !important; flex: 1; }

.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--text-muted); }
.checkbox input { margin-top: 0.3rem; flex: none; width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }

.quiz-input-form { display: grid; gap: 0.85rem; margin-top: 1.5rem; }

.form-error {
  color: var(--primary);
  background: #FDECEC;
  border: 1px solid #F3B4B4;
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  margin: 0;
  font-size: 0.95rem;
}
.form-error[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 0; text-align: center; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; align-items: center;
  color: var(--text-muted); font-size: 0.9rem;
}
.footer-links a, .footer-links__btn {
  color: var(--text-muted);
  text-decoration: underline;
  background: none; border: none; cursor: pointer;
  font: inherit;
}
.footer-links a:hover, .footer-links__btn:hover { color: var(--primary); }

/* ---------- Progress-Bar (Quiz) ---------- */
.progress-bar {
  position: fixed;
  left: 0; bottom: 0;
  width: 100%; height: 5px;
  background: var(--gray-box);
  z-index: 40;
}
.progress-bar__fill {
  height: 100%; width: 0;
  background: var(--primary);
  transition: width .35s ease;
}
.progress-bar[hidden] { display: none; }

/* ---------- Cookie-Hinweis ---------- */
.cookie-notice {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 520px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(20, 36, 59, 0.18);
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  z-index: 50;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cookie-notice p { margin: 0; }
.cookie-notice[hidden] { display: none; }
.cookie-notice__text a { color: var(--primary); }
/* Akzeptieren + Ablehnen gleichwertig nebeneinander (DSGVO: gleich einfach) */
.cookie-notice__actions { display: flex; gap: 0.6rem; }
.cookie-notice__actions .cta-btn { flex: 1; text-align: center; }
/* Ghost-Variante: weißer Button mit Gold-Rand – gleiche Größe wie „Akzeptieren" */
.cta-btn--ghost { background: #fff; color: var(--primary); }
.cta-btn--ghost:hover,
.cta-btn--ghost:focus-visible { background: var(--gray-box); color: var(--primary); }

/* ---------- Rechtstext-Seiten (Impressum / Datenschutz) ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  line-height: 1.7;
}
.legal__back {
  display: inline-block;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.legal__back:hover { color: var(--primary); }
.legal__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--primary);
  margin: 0 0 1.5rem;
}
.legal__title::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  background: var(--accent);
  margin: 0.7rem 0 0;
}
.legal__h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--primary);
  margin: 1.9rem 0 0.5rem;
}
.legal p { margin: 0 0 1rem; }
.legal a { color: var(--primary); }
.legal__source { color: var(--text-muted); font-size: 0.85rem; margin-top: 2.25rem; }

/* ---------- Größere Screens: Headlines etwas luftiger ---------- */
@media (min-width: 768px) {
  .hero-headline { font-size: 3.4rem; }
  .section-title { font-size: 2.3rem; }
  .quiz-screen__question { font-size: 2.5rem; }
}

/* ---------- Reduzierte Bewegung respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
