:root {
  --ink: #102033;
  --muted: #607086;
  --line: #dce5ef;
  --paper: #ffffff;
  --soft: #eef4f8;
  --mist: #f7fafc;
  --blue: #1c64f2;
  --blue-dark: #1147b5;
  --green: #18a46d;
  --amber: #f0a23a;
  --shadow: 0 24px 70px rgba(19, 36, 57, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(220, 229, 239, 0.7);
  backdrop-filter: blur(18px);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.hero-actions,
.summary-grid,
.cta-inner {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(28, 100, 242, 0.25);
}

.nav-links {
  gap: 26px;
  color: #46576d;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--blue);
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.icon-btn svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0c1726;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 23, 38, 0.94), rgba(12, 23, 38, 0.65) 48%, rgba(12, 23, 38, 0.2)),
    linear-gradient(0deg, rgba(12, 23, 38, 0.88), rgba(12, 23, 38, 0.05) 42%);
}

.hero-media {
  position: absolute;
  inset: 0;
  transform: scale(1.08);
  transform-origin: right center;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 44%;
  filter: saturate(0.95);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 0 130px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.process h2,
.cta h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(54px, 9vw, 118px);
  font-weight: 800;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(28, 100, 242, 0.28);
}

.btn.primary:hover {
  background: var(--blue-dark);
}

.btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.summary-band {
  background: var(--ink);
  color: #fff;
}

.summary-grid {
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
}

.summary-grid div {
  min-width: 0;
}

.summary-grid strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.summary-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.process h2,
.cta h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.section-heading p,
.feature-text p,
.module-card p,
.steps p {
  color: var(--muted);
  margin: 16px 0 0;
}

.module-card .card-lead {
  color: var(--ink);
  margin-top: 14px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.module-card .card-lead + p {
  margin-top: 8px;
}

.feature {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
  align-items: center;
}

.feature-text h3,
.module-card h3 {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.module-label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-frame,
.module-card figure {
  margin: 0;
  overflow: hidden;
  background: #d8e4f0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.zoomable {
  cursor: zoom-in;
}

.zoomable:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid rgba(24, 164, 109, 0.55);
  outline-offset: 4px;
}

.screen-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.module-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 42px rgba(23, 43, 66, 0.08);
}

.module-card.wide {
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
}

.module-card figure {
  box-shadow: none;
}

.module-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top left;
  transition: transform 220ms ease;
}

.module-card:hover img {
  transform: scale(1.04);
}

.module-card::after,
.screen-frame::after {
  content: "Galerie ansehen";
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(16, 32, 51, 0.86);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.screen-frame,
.module-card {
  position: relative;
}

.module-card:hover::after,
.screen-frame:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.process {
  background: var(--mist);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.steps {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--amber);
  font-weight: 800;
}

.steps strong {
  display: block;
  font-size: 22px;
}

.cta {
  padding: 92px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 32, 51, 0.96), rgba(20, 75, 125, 0.92)),
    url("leiter-Prüfung.png") center / cover;
}

.cta-inner {
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  max-width: 760px;
}

.site-footer {
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.footer-inner nav {
  display: flex;
  gap: 18px;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.footer-inner a:hover {
  color: #fff;
}

.legal-page {
  padding-top: 72px;
}

.legal-section {
  padding: 86px 0;
  background: #fff;
}

.legal-section-alt {
  background: var(--mist);
}

.legal-content {
  max-width: 920px;
}

.legal-content h2 {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.legal-block {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-block h3,
.legal-block h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
}

.legal-block h3 {
  font-size: 22px;
}

.legal-block h4 {
  margin-top: 24px;
  font-size: 18px;
}

.legal-block p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.legal-block ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
}

.legal-block li + li {
  margin-top: 8px;
}

.legal-block a {
  color: var(--blue);
  font-weight: 700;
}

.legal-block a:hover {
  color: var(--blue-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  padding: 24px;
  background: rgba(7, 14, 24, 0.88);
  backdrop-filter: blur(14px);
}

.lightbox.is-open {
  display: grid;
  place-items: center;
}

.lightbox-panel {
  width: min(1280px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.lightbox-top h2,
.lightbox-top p {
  margin: 0;
}

.lightbox-top h2 {
  font-size: 20px;
  line-height: 1.2;
}

.lightbox-top p {
  max-width: 760px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.lightbox-top span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lightbox-image-wrap {
  min-height: 0;
  overflow: auto;
  background: var(--soft);
}

.lightbox-image-wrap img {
  width: 100%;
  height: auto;
  min-width: 860px;
}

.lightbox-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.gallery-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-btn:hover {
  background: var(--soft);
}

.gallery-btn svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px;
}

.thumb-btn {
  flex: 0 0 104px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  background: var(--soft);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.thumb-btn.is-active {
  border-color: var(--blue);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.lightbox-close {
  position: fixed;
  z-index: 51;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  cursor: pointer;
}

.lightbox-close svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav-links {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }

  .hero {
    min-height: 760px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(12, 23, 38, 0.94), rgba(12, 23, 38, 0.6) 58%, rgba(12, 23, 38, 0.18)),
      linear-gradient(90deg, rgba(12, 23, 38, 0.72), rgba(12, 23, 38, 0.2));
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-content {
    padding: 132px 0 76px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .summary-grid,
  .feature,
  .card-grid,
  .module-card,
  .module-card.wide,
  .process-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .cta-inner {
    align-items: flex-start;
  }

  .summary-grid {
    display: grid;
  }

  .feature,
  .process-grid {
    gap: 30px;
  }

  .section {
    padding: 70px 0;
  }

  .module-card {
    display: grid;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-panel {
    max-height: calc(100vh - 28px);
  }

  .lightbox-top {
    display: flex;
    align-items: flex-start;
    padding-right: 58px;
  }

  .lightbox-controls {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 10px;
  }

  .gallery-btn {
    width: 40px;
    height: 40px;
  }

  .thumb-btn {
    flex-basis: 86px;
    height: 52px;
  }

  .lightbox-image-wrap img {
    min-width: 760px;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: 50px;
  }

  .module-card {
    padding: 14px;
  }
}
