/* ==========================================================================
   MKSM Social Media Ausbildung – Landing Page
   Mobile-first. Breakpoints: 640px (Tablet), 960px (Desktop)
   ========================================================================== */

/* ---------- Schriften: lokal ausgeliefert (keine Verbindung zu Google, DSGVO) ----------
   Variable Fonts von Google Fonts (SIL Open Font License), je Latein + Latein-Erweitert */
@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/epilogue-latin.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;
}
@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/epilogue-latin-ext.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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.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;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-ext.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;
}

:root {
  --black: #0A0A0A;
  --black-2: #141414;
  --black-3: #1E1E1E;
  --white: #FFFFFF;
  --grey: #A3A3A3;
  --line: rgba(255, 255, 255, 0.1);
  --red: #FF0000;
  --red-hover: #D90000;
  --red-soft: #FF6B6B; /* Fehlermeldungen auf dunklem Grund */

  --font-head: "Epilogue", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 12px;
  --gutter: 16px;
  --section-y: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* Platz für Sticky-CTA auf Mobile */
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.center { text-align: center; }
.accent { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  text-align: center;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn--ghost { background: transparent; border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn--lg { min-height: 60px; padding: 18px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.01em; }
.logo__hash { color: var(--red); }

.nav { display: none; }
.nav a { text-decoration: none; font-weight: 500; color: var(--white); opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

/* ---------- Eyebrow & Section ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
  margin-bottom: 12px;
}

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--black-2); }
.section__title { font-size: clamp(1.75rem, 6vw, 2.75rem); font-weight: 700; margin-bottom: 16px; max-width: 22ch; }
.section .center { margin-top: 40px; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 0, 0, 0.18), transparent 70%),
    var(--black);
}
.hero__inner { text-align: center; }
.hero__title {
  font-size: clamp(2.25rem, 10vw, 4.5rem);
  font-weight: 800;
  max-width: 18ch;
  margin: 0 auto 20px;
}
.hero__sub { color: var(--grey); font-size: 1.05rem; max-width: 60ch; margin: 0 auto 32px; }
.hero .btn { width: 100%; }
.hero__trust {
  list-style: none;
  padding: 0;
  margin: 32px auto 0;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  color: var(--grey);
  font-size: .9rem;
}
.hero__trust strong { color: var(--white); font-family: var(--font-head); }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 16px; margin-top: 32px; }

.card {
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--grey); }

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.12);
  color: var(--red);
  font-weight: 700;
}

.callout {
  margin: 32px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--red);
  background: rgba(255, 0, 0, 0.06);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  line-height: 1.3;
}

/* ---------- Prozess: 3 Monate ---------- */
.months { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.month {
  background: var(--black-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.month__label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--red);
  margin-bottom: 8px;
}
.month h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.month p { color: var(--grey); }
.note { margin-top: 24px; color: var(--grey); font-style: italic; }

/* ---------- Ergebnisse ---------- */
.result {
  margin-top: 32px;
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: linear-gradient(160deg, rgba(255,0,0,.16), var(--black-3) 60%);
}
.result { display: grid; gap: 24px; align-items: center; }
.result__proof { width: 100%; height: auto; border-radius: var(--radius-lg); }
.result__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.25rem, 10vw, 3.25rem); line-height: 1; margin-bottom: 12px; color: var(--red); }
.result h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.result p { color: var(--grey); }

/* Kundenvideos: Mobile wischbar, ab Desktop 4er-Grid */
.cases__title { font-size: 1.3rem; font-weight: 700; margin-top: 48px; }
.cases {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 44%;
  gap: 12px;
  margin: 20px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.cases::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; }
.case__media {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black-3);
}
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__media--empty {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 0, 0, 0.22), transparent 65%), var(--black-3);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 6vw, 2rem);
}
.case--top .case__media { border: 2px solid var(--red); }
.case p { margin-top: 10px; font-size: .85rem; color: var(--grey); line-height: 1.4; }
.case strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1rem; }

/* Video-Testimonials (Hochformat): Mobile wischbar, ab Desktop 3er-Grid */
.testimonials {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 16px;
  margin: 20px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.testimonials::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: start; }
.testimonial blockquote { margin: 16px 0 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.testimonial p { font-size: .9rem; color: var(--grey); }
.testimonial strong { display: block; color: var(--white); }
.video__facade,
.testimonial iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black-3);
}
.video__facade { position: relative; cursor: pointer; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--red);
  transition: transform .2s;
}
.video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--white);
}
.video__facade:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.fineprint { margin-top: 32px; font-size: .8rem; color: var(--grey); }

/* ---------- Bewertungen ---------- */
.rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 8px;
  padding: 12px 18px;
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color .2s;
}
.rating:hover { border-color: var(--red); }
.rating__g, .review__g {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
}
.rating__score { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.rating__stars, .review__stars { color: var(--red); letter-spacing: 2px; }
.rating__count { color: var(--grey); font-size: .9rem; }

/* Mobile: horizontal wischbar, ab Desktop als Grid */
.reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 16px;
  margin: 32px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  margin: 0;
  scroll-snap-align: start;
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review__head { display: flex; justify-content: space-between; align-items: center; }
.review__g { width: 24px; height: 24px; font-size: .8rem; }
.review blockquote { margin: 0; flex: 1; line-height: 1.65; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.review figcaption > span:last-child { display: flex; flex-direction: column; }
.review small { color: var(--grey); font-size: .85rem; }
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
}
.reviews__more { margin-top: 24px; }
.reviews__more a { color: var(--grey); text-decoration: none; font-weight: 500; }
.reviews__more a:hover { color: var(--white); }

/* ---------- Abschluss-CTA ---------- */
.final-cta {
  padding: 88px 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(255, 0, 0, 0.22), transparent 70%),
    var(--black);
  border-top: 1px solid var(--line);
}
.final-cta__title { font-size: clamp(1.9rem, 8vw, 3.25rem); font-weight: 800; margin-bottom: 16px; }
.final-cta__sub { color: var(--grey); font-size: 1.05rem; max-width: 52ch; margin: 0 auto 32px; }
.final-cta .btn { width: 100%; }

/* ---------- Unterseiten (Impressum, AGB, Datenschutz, Linktree, 404) ---------- */
.page { padding-bottom: 0; } /* kein Sticky-CTA auf Unterseiten */

.legal { padding-top: 48px; padding-bottom: 80px; overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; margin-bottom: 24px; }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin: 40px 0 12px; scroll-margin-top: 88px; }
.legal h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--grey); }
.legal p { margin-bottom: 14px; }
.legal strong, .legal b { color: var(--white); }
.legal a { color: var(--white); }
.legal ul, .legal ol { padding-left: 20px; margin: 0 0 16px; }
.legal__small { font-size: .85rem; }
.legal__table { overflow-x: auto; margin: 0 0 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal td, .legal th { padding: 10px 12px; border: 1px solid var(--line); color: var(--grey); text-align: left; vertical-align: top; }

.links-page {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 0, 0, 0.18), transparent 70%), var(--black);
}
.links { min-height: calc(100vh - 64px - 140px); display: grid; align-content: center; padding-top: 56px; padding-bottom: 72px; text-align: center; }
.links h1 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; max-width: 16ch; margin: 0 auto 12px; }
.links p { color: var(--grey); margin-bottom: 32px; }
.links__list { list-style: none; display: grid; gap: 12px; width: 100%; max-width: 420px; margin: 0 auto; padding: 0; }
.links__list .btn { width: 100%; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--grey); font-size: .875rem; }
.footer__inner { display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; }
.footer .logo { color: var(--white); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__links { display: flex; gap: 20px; }

/* ---------- Sticky CTA (Mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  /* komplett unter den Bildschirmrand (inkl. 12px Abstand + Schatten), sonst blitzt ein Streifen durch */
  transform: translateY(calc(100% + 40px));
  visibility: hidden;
  transition: transform .3s, visibility .3s;
}
.sticky-cta.is-visible { transform: translateY(0); visibility: visible; }

/* ---------- Cookie-Hinweis (Meta Pixel) ---------- */
.consent {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 12px;
  z-index: 70;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px;
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .6);
  font-size: .9rem;
  color: var(--grey);
}
.consent[hidden] { display: none; }
.consent a { color: var(--white); }
.consent__actions { display: flex; gap: 12px; margin-top: 16px; }
.consent__actions .btn { flex: 1; }

/* ---------- Anfrage-Quiz (Mobile: Vollbild, ab Tablet: zentriertes Fenster) ---------- */
html.is-locked { overflow: hidden; }
.quiz {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--black);
  color: var(--white);
}
.quiz::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.quiz__form { min-height: 100%; display: flex; flex-direction: column; padding: 16px var(--gutter) 24px; }
.quiz__top { display: flex; align-items: center; gap: 12px; }
.quiz__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
}
.quiz__icon:hover { border-color: var(--white); }
.quiz__progress { flex: 1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.quiz__progress span { display: block; width: 0; height: 100%; background: var(--red); transition: width .3s; }
.quiz__count {
  margin: 28px 0 8px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
}
.quiz__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__step legend { padding: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 6vw, 1.9rem); line-height: 1.2; }
.quiz__hint { margin-top: 6px; color: var(--grey); font-size: .95rem; }
.quiz__options { display: grid; gap: 10px; margin-top: 20px; }

.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.option span::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--grey);
  border-radius: 50%;
}
.option input[type="checkbox"] + span::before { border-radius: 4px; }
.option:hover span { border-color: var(--grey); }
.option input:checked + span { border-color: var(--red); background: rgba(255, 0, 0, .1); }
.option input:checked + span::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px var(--black-3); }
.option input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; }

.quiz__fields { display: grid; gap: 14px; margin-top: 20px; }
.field span { display: block; margin-bottom: 6px; font-size: .85rem; color: var(--grey); }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font: inherit;
  font-size: 1rem; /* verhindert Auto-Zoom auf iOS */
}
.field input:focus { outline: none; border-color: var(--red); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--grey); cursor: pointer; }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.check a { color: var(--white); }

.quiz__error { margin-top: 16px; color: var(--red-soft); font-size: .9rem; }
.quiz__error a { color: var(--white); }
.quiz__nav { margin-top: auto; padding-top: 28px; }
.quiz__nav .btn { width: 100%; }
.quiz__nav .btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }

.quiz__done { margin: auto 0; padding: 32px 0; text-align: center; }
.quiz__check {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--red);
  font-size: 1.8rem;
  font-weight: 800;
}
.quiz__done h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.quiz__done p { color: var(--grey); margin-bottom: 28px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ==========================================================================
   Tablet ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 24px; --section-y: 96px; }
  .hero { padding: 96px 0 104px; }
  .hero .btn, .final-cta .btn { width: auto; }
  .cases { grid-auto-columns: 30%; }
  .testimonials { grid-auto-columns: 42%; }
  .reviews { grid-auto-columns: 46%; }
  .quiz {
    width: min(600px, calc(100% - 48px));
    height: fit-content; /* auto würde das Modal wegen inset: 0 auf volle Höhe ziehen */
    max-height: calc(100% - 48px);
    margin: auto;
    background: var(--black-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }
  .quiz__form { min-height: 0; padding: 24px 32px 32px; }
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================================
   Desktop ≥ 960px
   ========================================================================== */
@media (min-width: 960px) {
  :root { --section-y: 120px; }
  body { padding-bottom: 0; }
  .nav { display: flex; gap: 32px; }
  .header__inner { height: 76px; }
  .grid--3, .months { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card, .month, .result { padding: 36px 32px; }
  .result { grid-template-columns: 1fr 1.2fr; gap: 40px; }
  .cases { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; margin: 20px 0 0; padding: 0; overflow: visible; gap: 20px; }
  .testimonials { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; margin: 20px 0 0; padding: 0; overflow: visible; gap: 24px; }
  .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; margin: 32px 0 0; padding: 0; overflow: visible; gap: 24px; }
  .sticky-cta { display: none; }
}

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