/* ==========================================================================
   ClassPilot – Landing Page Styles
   ========================================================================== */

/* --- Design Tokens ------------------------------------------------------- */
:root {
  /* Farben */
  --brand-900: #0b1f45;
  --brand-800: #122c5e;
  --brand-700: #1b3d80;
  --brand-600: #2456a8;
  --brand-500: #2f6fd4;
  --brand-400: #5a92e6;
  --brand-300: #9dc0f4;
  --brand-100: #e3edfd;
  --brand-50:  #f2f7ff;

  --accent-500: #17b3a3;
  --accent-400: #2fd0bd;
  --accent-100: #d6f6f1;

  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #667085;
  --ink-300: #98a2b3;

  --bg:        #ffffff;
  --bg-soft:   #f6f9ff;
  --bg-muted:  #eef3fb;
  --line:      #e2e8f2;
  --white:     #ffffff;

  /* Typografie */
  --font-sans: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Radius & Schatten */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 33, 69, 0.16);

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.15;
  color: var(--ink-900);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

/* --- Layout-Helfer ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--soft  { background: var(--bg-soft); }
.section--muted { background: var(--bg-muted); }
.section--dark {
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-700) 100%);
  color: #dbe6fb;
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-head p { color: var(--ink-500); font-size: 1.1rem; margin-bottom: 0; }
.section--dark .section-head p { color: #a9c0e8; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--accent-400); background: rgba(47, 208, 189, .12); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(36, 86, 168, .28);
}
.btn--primary:hover { background: var(--brand-700); }
.btn--ghost {
  background: transparent;
  border-color: var(--brand-300);
  color: var(--brand-700);
}
.btn--ghost:hover { background: var(--brand-50); }
.btn--light {
  background: #fff;
  color: var(--brand-700);
}
.btn--light:hover { background: var(--brand-50); }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }

/* --- Header / Navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-900);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand__logo svg { width: 20px; height: 20px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: .98rem;
}
.nav__links a:hover { color: var(--brand-600); text-decoration: none; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink-900);
}
.nav__toggle svg { width: 26px; height: 26px; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--brand-100), transparent 60%),
    radial-gradient(700px 400px at 0% 20%, var(--accent-100), transparent 55%),
    var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px);
}
.hero__title { margin-bottom: 20px; }
.hero__title span { color: var(--brand-600); }
.hero__lead {
  font-size: 1.2rem;
  color: var(--ink-700);
  max-width: 40ch;
  margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--ink-500);
  font-size: .95rem;
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--accent-500); flex: none; }

/* --- Screenshot / Bild-Platzhalter -------------------------------------- */
.shot {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, #eaf1fd 0%, #dfeafb 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .7);
  border-bottom: 1px solid var(--line);
}
.shot__bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #cdd7e6;
}
.shot__bar span:nth-child(1) { background: #f7a8a0; }
.shot__bar span:nth-child(2) { background: #f7d59b; }
.shot__bar span:nth-child(3) { background: #a8dfb0; }

.shot__body {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 34px 26px;
  text-align: center;
  color: var(--brand-700);
}
.shot__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--brand-500);
  box-shadow: var(--shadow-sm);
}
.shot__icon svg { width: 28px; height: 28px; }
.shot__label { font-weight: 700; color: var(--brand-800); }
.shot__desc  { font-size: .92rem; color: var(--ink-500); max-width: 42ch; margin: 0; }
.shot__tag {
  position: absolute;
  top: 14px; right: 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: rgba(255,255,255,.85);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--brand-100);
}

/* Echtes Screenshot-Bild statt Platzhalter */
.shot__img {
  display: block;
  width: 100%;
  height: auto;
  background: #1f2733;
  cursor: zoom-in;
}
.shot__img:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
}

/* Einheitliches Seitenverhältnis im 2x2-Raster (Zuschnitt oben beginnend) */
.gallery .shot__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.hero__shot { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }

/* --- "Was ist" – Intro Cards -------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.stat__k { font-size: 1.9rem; font-weight: 800; color: var(--brand-600); }
.stat__v { color: var(--ink-500); font-size: .96rem; }

/* --- Zielgruppen (Für wen) ---------------------------------------------- */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.role {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.role__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: #fff;
}
.role__icon svg { width: 28px; height: 28px; }
.role--admin   .role__icon { background: linear-gradient(150deg, #2456a8, #122c5e); }
.role--dozent  .role__icon { background: linear-gradient(150deg, #2f6fd4, #2456a8); }
.role--teiln   .role__icon { background: linear-gradient(150deg, #17b3a3, #0f8f83); }
.role h3 { margin-bottom: 10px; }
.role p { color: var(--ink-500); margin-bottom: 18px; }
.role__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--ink-700);
  font-size: .96rem;
}
.role__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 15px; height: 15px;
  background: var(--accent-100);
  border-radius: 50%;
}
.role__list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 11px;
  width: 5px; height: 8px;
  border-right: 2px solid var(--accent-500);
  border-bottom: 2px solid var(--accent-500);
  transform: rotate(40deg);
}

/* --- Funktionen ---------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-300);
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--ink-500); font-size: .97rem; margin-bottom: 0; }

/* --- Screenshot-Galerie -------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.gallery__item { display: flex; flex-direction: column; gap: 14px; }
.gallery__caption h3 { font-size: 1.15rem; margin-bottom: 4px; }
.gallery__caption p { color: var(--ink-500); font-size: .95rem; margin: 0; }

/* --- Workflow / Ablauf --------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.step__num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-400);
  color: var(--brand-900);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: #b9cbea; font-size: .95rem; margin: 0; }

/* --- Nutzen / Vorteile --------------------------------------------------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
}
.benefit {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.benefit__icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-100);
  color: var(--accent-500);
  display: grid; place-items: center;
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: 6px; }
.benefit p { color: var(--ink-500); margin: 0; font-size: .97rem; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 22px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__q svg { width: 20px; height: 20px; color: var(--brand-500); transition: transform .25s ease; flex: none; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__a-inner { padding: 0 22px 20px; color: var(--ink-500); }

/* --- Abschluss-CTA ------------------------------------------------------- */
.cta-final {
  text-align: center;
  background: linear-gradient(155deg, var(--brand-700), var(--brand-900));
  color: #dbe6fb;
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 76px) var(--gutter);
  box-shadow: var(--shadow-lg);
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #a9c0e8; max-width: 52ch; margin: 0 auto 28px; font-size: 1.12rem; }
.cta-final .hero__cta { justify-content: center; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--brand-900);
  color: #93a8cc;
  padding-block: 56px 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 42px;
}
.footer__brand .brand { color: #fff; }
.footer__brand p { color: #7f97bd; max-width: 34ch; margin-top: 14px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer__col a { color: #93a8cc; display: block; padding: 5px 0; font-size: .95rem; }
.footer__col a:hover { color: #fff; text-decoration: none; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .88rem;
  color: #7f97bd;
}

.footer__col h4 {
  color: white;
}

.footer__bottom a {
  color: #93a8cc;
}

/* --- Scroll-Reveal ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__shot { transform: none; }
  .intro-grid { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links,
  .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    padding: 14px var(--gutter) 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open a { padding: 10px 0; width: 100%; }
  .nav__links.is-open .btn { display: inline-flex; margin-top: 8px; }

  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* --- Lightbox ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(8, 18, 38, .86);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .2s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }

.lightbox__img {
  max-width: min(1200px, 100%);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  cursor: default;
}
.lightbox__caption {
  color: #dbe6fb;
  font-size: .95rem;
  text-align: center;
  max-width: 60ch;
  cursor: default;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close svg { width: 24px; height: 24px; }

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