/* ============================================================
   Pavora Capture – Funnel Version 2 (konto2.html, bestaetigung-gesendet2.html,
   konto-bestaetigt2.html, thanks2.html)
   Design der neuen Website (pavora.de): Plus Jakarta Sans, Navy #0E2A4D,
   Grün #30A688 / #1F7F67, helles Grün #E3F1EC. Die bisherigen Funnel-Seiten
   nutzen weiter styles.css und bleiben unverändert.
   Klassen, die main.js setzt oder sucht (.field, .has-error, .video-facade …),
   sind hier mit gestaltet.
   ============================================================ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0E2A4D;
  --navy-hover: #173A63;
  --teal: #30A688;
  --teal-dark: #1F7F67;
  --mint: #E3F1EC;
  --mint-soft: #F1F8F5;
  --ink: #16202B;
  --text: #34414F;
  --muted: #56616E;
  --line: #DDE4EA;
  --line-soft: #EEF2F5;
  --field: #C9D3DD;
  --surface: #F5F7FA;
  --error: #B42318;
  --shadow-card: 0 24px 50px -28px rgba(14, 42, 77, .45), 0 0 0 1px rgba(14, 42, 77, .07);
  --focus: 3px solid var(--teal);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* Column layout + footer margin-top:auto: the footer sits at the bottom of the
     window even when the page content is shorter than the window. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.wrap--narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.f2-header { border-bottom: 1px solid var(--line-soft); background: #fff; }
.f2-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.f2-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy); text-decoration: none;
  font-size: 19px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.f2-brand img { height: 30px; width: auto; }
.f2-help { font-size: 14px; color: var(--muted); }
.f2-help a { font-weight: 600; }
@media (max-width: 560px) { .f2-help { display: none; } }

/* ---------- Kopfbereich mit Fortschritt ---------- */
.f2-hero { background: var(--mint); padding: 40px 0 36px; }
@media (min-width: 700px) { .f2-hero { padding: 56px 0 48px; } }
.f2-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; margin-bottom: 22px; }
.f2-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.f2-steps li + li::before {
  content: ''; width: 28px; height: 1px; background: #9FB0C1; margin-right: 4px;
}
.f2-step-n {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  border: 1px solid #9FB0C1; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.f2-steps .is-done .f2-step-n { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.f2-steps .is-current { color: var(--navy); font-weight: 600; }
.f2-steps .is-current .f2-step-n { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 560px) {
  .f2-steps { gap: 8px 16px; }
  .f2-steps li + li::before { display: none; }
}

.f2-title {
  font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.15;
  letter-spacing: -.03em; color: var(--navy); text-wrap: balance;
}
.f2-lead { margin-top: 14px; max-width: 60ch; font-size: 18px; color: var(--muted); }
.f2-lead strong { color: var(--ink); }

/* ---------- Inhalt ---------- */
.f2-main { padding: 40px 0 64px; }
@media (min-width: 700px) { .f2-main { padding: 48px 0 88px; } }
.f2-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .f2-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }

.f2-card {
  background: #fff; border-radius: 14px; padding: 22px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 520px) { .f2-card { padding: 30px; } }
.f2-card + .f2-card { margin-top: 24px; }
.f2-card h2, .f2-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); line-height: 1.3; }
.f2-card-lead { margin-top: 6px; font-size: 15px; color: var(--muted); }

.f2-aside { background: var(--surface); border-radius: 14px; padding: 24px; }
@media (min-width: 900px) { .f2-aside { position: sticky; top: 24px; } }
.f2-aside h2 { font-size: 17px; font-weight: 700; color: var(--navy); }
.f2-aside ol { margin-top: 16px; display: grid; gap: 16px; }
.f2-aside li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.f2-aside .n {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
  background: var(--mint); color: var(--navy); font-size: 13px; font-weight: 700;
}
.f2-aside b { display: block; font-size: 15px; color: var(--ink); }
.f2-aside span.d { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.f2-note {
  margin-top: 24px; border-radius: 12px; background: var(--mint-soft);
  padding: 16px 18px; font-size: 15px; color: var(--text);
}
.f2-small { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 8px; padding: 13px 20px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.4;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-google { background: #fff; color: var(--ink); border-color: var(--field); }
.btn-google:hover { border-color: var(--navy); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-text {
  background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 15px;
  font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: underline;
}

/* ---------- Formulare (main.js: .field / .has-error) ---------- */
.f2-or {
  display: flex; align-items: center; gap: 12px; margin: 22px 0;
  font-size: 13.5px; color: var(--muted);
}
.f2-or::before, .f2-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field input {
  width: 100%; border: 1px solid var(--field); border-radius: 12px; background: #fff;
  padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(48, 166, 136, .25); }
.field-hint { font-size: 13px; color: var(--muted); }
.field-error { display: none; font-size: 13px; font-weight: 600; color: var(--error); }
.field.has-error input { border-color: var(--error); }
.field.has-error .field-error { display: block; }
.field.has-error .field-hint { display: none; }
.consent { display: flex; gap: 12px; margin-bottom: 20px; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal-dark); cursor: pointer; }
.consent label { font-size: 14.5px; line-height: 1.55; color: var(--text); cursor: pointer; }
.form-error { margin-bottom: 14px; font-size: 14.5px; font-weight: 600; color: var(--error); }
.f2-ok { margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--teal-dark); }
.f2-after { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Video (main.js: .video-facade) ---------- */
.video-facade {
  position: relative; overflow: hidden; border-radius: 14px; background: var(--navy);
  aspect-ratio: 1280 / 832; box-shadow: var(--shadow-card);
}
.video-facade .video-poster, .video-facade video { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14, 42, 77, .18); border: 0; cursor: pointer;
}
.play-disc {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px;
  background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); transition: transform .15s;
}
.video-play:hover .play-disc { transform: scale(1.06); }
.video-runtime {
  position: absolute; right: 12px; bottom: 12px; border-radius: 6px;
  background: rgba(14, 42, 77, .85); color: #fff; padding: 2px 8px; font-size: 13px; font-weight: 600;
}

/* ---------- Downloads ---------- */
.dl-grid { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 520px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
.dl-option { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; justify-items: start; }
.dl-note { font-size: 13.5px; color: var(--muted); }
.f2-toggle { margin-top: 16px; font-size: 14.5px; }
.f2-toggle a { font-weight: 600; }

/* ---------- SmartScreen-Anleitung ---------- */
.ss-steps { margin-top: 18px; display: grid; gap: 12px; }
@media (min-width: 760px) { .ss-steps { grid-template-columns: repeat(3, 1fr); } }
.ss-steps li { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.ss-head { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.ss-n {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; flex: none;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
}
.ss-desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.ss-visual { margin-top: 4px; border-radius: 10px; background: var(--surface); padding: 12px; font-size: 12.5px; color: var(--text); }
.ss-row { display: flex; align-items: center; gap: 8px; }
.ss-file { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-dots { font-weight: 700; padding: 0 4px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ss-menu { display: grid; gap: 2px; background: #fff; border-radius: 8px; padding: 6px; box-shadow: 0 0 0 1px var(--line); }
.ss-menu span { padding: 4px 8px; border-radius: 6px; }
.ss-sep { height: 1px; padding: 0 !important; background: var(--line); }
.ss-active { background: var(--mint); color: var(--navy); font-weight: 700; }
.ss-dialog { display: grid; gap: 8px; justify-items: end; }
.ss-btns { display: flex; gap: 6px; }
.ss-btn { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; background: #fff; padding: 4px 10px; box-shadow: 0 0 0 1px var(--line); }
.ss-btn--dark { background: var(--navy); color: #fff; box-shadow: none; }
.ss-float { border-radius: 6px; padding: 4px 10px; box-shadow: 0 6px 16px -8px rgba(14, 42, 77, .4); }

/* ---------- Name-Abfrage (Modal) ---------- */
.name-modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(14, 42, 77, .55);
}
.name-modal {
  position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 16px;
  padding: 28px 24px 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.name-modal h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); padding-right: 32px; }
.name-modal > p { margin: 6px 0 20px; font-size: 14.5px; color: var(--muted); }
.name-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 8px;
  border: 0; background: var(--surface); font-size: 22px; line-height: 1; color: var(--navy); cursor: pointer;
}
.name-modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.optional { font-weight: 400; color: var(--muted); }

/* ---------- Installationsvideo (Modal, konto-bestaetigt2.html) ---------- */
.video-modal { max-width: 920px; max-height: calc(100vh - 32px); overflow-y: auto; padding-bottom: 20px; }
.video-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.video-tab {
  border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 6px 14px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer;
}
.video-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.video-tab:focus-visible { outline: var(--focus); outline-offset: 2px; }
.video-frame { margin-top: 16px; border-radius: 12px; overflow: hidden; background: var(--navy); aspect-ratio: 1280 / 832; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------- Footer ---------- */
.f2-footer { margin-top: auto; background: var(--navy); color: #C7D3E0; padding: 32px 0; font-size: 13.5px; }
.f2-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.f2-footer .f2-brand { color: #fff; font-size: 16px; }
.f2-footer .f2-brand img { height: 24px; filter: brightness(0) invert(1); }
.f2-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.f2-footer a { color: #DDE6EF; text-decoration: none; }
.f2-footer a:hover { color: #fff; text-decoration: underline; }
.f2-footer .copy { width: 100%; color: #91A4BA; font-size: 12.5px; }

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