/* ==========================================================================
   Makua – Website
   Weiss, helles Grau, dunkle Schrift, Makua-Blau als Akzent.
   Schriften lokal: Plus Jakarta Sans (Überschriften), Inter (Text/UI).
   ========================================================================== */

/* Schriften --------------------------------------------------------------- */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef4ff;
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #5d6b82;
  --line: #e5eaf2;
  --line-2: #d6deea;

  /* aus dem Makua-Logo abgeleitet */
  --blue: #0b6cff;
  --blue-600: #0a5ce6;
  --blue-700: #0849c2;
  --blue-deep: #0646f2;
  --cyan: #4fcbfa;
  --grad: linear-gradient(135deg, #2fb4fa 0%, #0b6cff 52%, #0646f2 100%);
  --grad-text: linear-gradient(100deg, #0b6cff 10%, #0646f2 60%, #1a9ff8 100%);

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 68px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -12px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.05), 0 30px 70px -28px rgba(8, 48, 130, 0.38);
}

/* Basis ------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.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;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Typografie -------------------------------------------------------------- */

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

.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  color: var(--ink);
}

.h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.text-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.text-link:hover {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Logo -------------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.logo img {
  height: 26px;
  width: auto;
}

/* Buttons & Pills --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.btn--primary {
  background: linear-gradient(180deg, #1a79ff 0%, var(--blue) 55%, var(--blue-600) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 108, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-600) 60%, var(--blue-700) 100%);
  box-shadow: 0 4px 14px -4px rgba(11, 108, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--secondary {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: #b9c5d8;
  background: var(--bg-soft);
}

.btn--white {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.35);
}

.btn--white:hover {
  background: #f2f7ff;
}

.btn--lg {
  min-height: 52px;
  padding: 13px 24px;
  font-size: 16px;
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid #d6e4ff;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 108, 255, 0.18);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.25);
}

.chip--blue {
  background: var(--blue);
  color: #fff;
}

.chip__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.chip:not(.chip--blue) .chip__live {
  background: var(--blue);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(15, 23, 42, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__list {
  display: flex;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__link:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.nav__link[aria-current="page"] {
  color: var(--blue-700);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 20px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle__bars::before {
  top: 0;
}

.nav-toggle__bars span {
  top: 5px;
}

.nav-toggle__bars::after {
  top: 10px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span {
  opacity: 0;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* backdrop-filter macht den Header zum Bezugsrahmen für position: fixed */
  .nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 16px var(--gutter) 32px;
    background: #fff;
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
  }

  .nav__link:hover {
    background: none;
  }

  .nav .btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    background: #fff;
    border-bottom-color: var(--line);
  }
}

/* Medien ------------------------------------------------------------------ */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe6f1;
  aspect-ratio: 16 / 9;
}

.media--4x5 {
  aspect-ratio: 4 / 5;
}

.media--9x16 {
  aspect-ratio: 9 / 16;
}

.media--1x1 {
  aspect-ratio: 1 / 1;
}

.media video,
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media .chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 88px);
  overflow: hidden;
}

/* dezenter Hintergrund: weicher Blauschimmer + feines Raster */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(11, 108, 255, 0.11), transparent 70%),
    radial-gradient(700px 420px at 8% 0%, rgba(79, 203, 250, 0.1), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(11, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 18, 32, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 20%, transparent 75%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__copy .lead {
  max-width: 34em;
}

.hero__note {
  font-size: 14px;
  color: var(--muted);
}

.hero__note strong {
  color: var(--ink-2);
  font-weight: 600;
}

.hero__values {
  margin-top: clamp(40px, 6vw, 72px);
}

/* Bühne: KI-Video + Ausgangsfoto + Reel */
.stage {
  position: relative;
  padding: 0 0 36px 28px;
}

.stage__main {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stage__photo {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 36%;
  margin: 0;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stage__photo .media {
  aspect-ratio: 4 / 3;
  border-radius: 11px;
}

.stage__photo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.stage__photo figcaption span:last-child {
  color: var(--blue);
}

.stage__reel {
  position: absolute;
  right: -14px;
  top: -22px;
  z-index: 3;
  width: 25%;
  margin: 0;
  padding: 5px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stage__reel .media {
  border-radius: 13px;
}

@media (prefers-reduced-motion: no-preference) {
  .stage__main,
  .stage__photo,
  .stage__reel {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .stage__photo {
    animation-delay: 0.15s;
  }

  .stage__reel {
    animation-delay: 0.25s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 720px;
  }

  .stage {
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
  }

  .stage__reel {
    right: 0;
  }
}

@media (max-width: 640px) {
  .hero__copy .actions {
    width: 100%;
    flex-direction: column;
  }

  .hero__copy .btn {
    width: 100%;
  }

  .stage {
    padding: 0 0 28px 10px;
  }

  .stage__main {
    aspect-ratio: 4 / 5;
  }

  .stage__photo {
    width: 46%;
  }

  .stage__reel {
    display: none;
  }
}

/* Kernvorteile direkt unter dem Hero -------------------------------------- */

.valuebar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.valuebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.valuebar__item + .valuebar__item {
  border-left: 1px solid var(--line);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--blue);
}

.icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1080px) {
  .valuebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .valuebar__item:nth-child(3) {
    border-left: 0;
  }

  .valuebar__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .valuebar {
    grid-template-columns: 1fr;
  }

  .valuebar__item + .valuebar__item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Sektionen --------------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head--center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.section-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.section-note--center {
  text-align: center;
}

/* Produkt ----------------------------------------------------------------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.product__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.product__intro p {
  color: var(--ink-2);
  font-size: 17px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.feature p {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 1080px) {
  .product {
    grid-template-columns: 1fr;
  }

  .product__intro {
    position: static;
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Ablauf ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 6px 16px -6px rgba(11, 108, 255, 0.6);
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Vorher / Nachher -------------------------------------------------------- */

.compare {
  max-width: 900px;
  margin-inline: auto;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.tabs__list {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.tabs__tab {
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tabs__tab:hover {
  color: var(--ink);
}

.tabs__tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
}

.compare__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.compare__panel[hidden] {
  display: none;
}

.compare__item {
  margin: 0;
}

.compare__item .media {
  box-shadow: var(--shadow);
}

.compare__item figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.compare__item figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.compare__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(11, 108, 255, 0.7);
}

.compare__arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .compare__panel {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .compare__item {
    width: 100%;
  }

  .compare__arrow {
    transform: rotate(90deg);
  }

  .tabs__list {
    width: 100%;
  }

  .tabs__tab {
    flex: 1;
    padding-inline: 8px;
  }
}

/* Beispiele --------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery__item {
  margin: 0;
}

.gallery__item .media {
  box-shadow: var(--shadow-sm);
}

.gallery__item .chip {
  top: auto;
  bottom: 12px;
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Formate ----------------------------------------------------------------- */

.formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.format {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 20px 24px;
}

.format__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--bg-soft), #eaf0fa);
}

.format__frame .media {
  height: 100%;
  width: auto;
  max-width: 100%;
  box-shadow: var(--shadow);
}

.format__frame .media--16x9 {
  height: auto;
  width: 100%;
}

.format__ratio {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.format__ratio strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.format__ratio span {
  color: var(--muted);
  font-size: 14px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 15px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%230b6cff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

@media (max-width: 960px) {
  .formats {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .format__frame {
    height: 300px;
  }
}

/* Vorteile ---------------------------------------------------------------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.benefit p {
  color: var(--muted);
  font-size: 15px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid #d6e4ff;
  border-radius: var(--radius);
  background: var(--bg-tint);
  color: var(--ink-2);
  font-size: 15px;
}

.notice strong {
  color: var(--ink);
}

@media (max-width: 960px) {
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .benefits {
    grid-template-columns: 1fr;
  }

  .notice {
    align-items: flex-start;
  }
}

/* Zielgruppe -------------------------------------------------------------- */

.audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.audience__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.audience__copy > p {
  color: var(--ink-2);
  font-size: 17px;
}

.flow {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.flow__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
}

.flow__row + .flow__row {
  border-top: 1px dashed var(--line-2);
}

.flow__row p {
  font-size: 15px;
  color: var(--muted);
}

.flow__row strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.flow__row--result .icon {
  background: var(--grad);
  color: #fff;
}

@media (max-width: 960px) {
  .audience {
    grid-template-columns: 1fr;
  }
}

/* Wissen-Karten ----------------------------------------------------------- */

.articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.article-card:hover {
  border-color: #c7d7f5;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-card p {
  color: var(--muted);
  font-size: 15px;
}

.article-card .text-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 15px;
}

@media (max-width: 960px) {
  .articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .articles {
    grid-template-columns: 1fr;
  }
}

/* FAQ --------------------------------------------------------------------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  position: relative;
  display: block;
  padding: 22px 44px 22px 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--bg-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' fill='none' stroke='%230b6cff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 44px 24px 0;
  color: var(--ink-2);
}

.faq__answer p + p {
  margin-top: 10px;
}

.faq__answer a {
  color: var(--blue);
  font-weight: 600;
}

/* Abschluss-CTA ----------------------------------------------------------- */

.cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0646f2 0%, #0b6cff 55%, #2a9ff9 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}

.cta-card > * {
  position: relative;
}

.cta-card .h2 {
  color: #fff;
}

.cta-card p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  max-width: 34em;
}

.cta-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  justify-self: end;
}

.cta-card__note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-card__note a {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 860px) {
  .cta-card {
    grid-template-columns: 1fr;
  }

  .cta-card__actions {
    justify-self: start;
  }
}

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

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding-block: 56px 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-footer__brand p {
  margin-top: 14px;
  max-width: 22em;
  color: var(--muted);
}

.site-footer__title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* Wissen: Übersicht & Artikel --------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 44px);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(800px 360px at 70% 0%, rgba(11, 108, 255, 0.09), transparent 70%);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 800px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-2);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--ink-2);
}

.article-meta {
  font-size: 14px;
  color: var(--muted);
}

.article {
  max-width: 760px;
  padding-bottom: var(--section-y);
}

.answer {
  margin-bottom: 40px;
  padding: 22px 24px;
  border: 1px solid #d6e4ff;
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: var(--bg-tint);
}

.answer p {
  margin-top: 6px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.answer .eyebrow {
  font-size: 12px;
}

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose h3 {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 22px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li::marker {
  color: var(--blue);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--blue);
  font-weight: 500;
  text-underline-offset: 3px;
}

.prose figure {
  margin-top: 32px;
}

.prose figure .media {
  box-shadow: var(--shadow);
}

.prose figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-soft);
}

.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.callout {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 16px;
}

.callout strong:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.article-cta {
  margin-top: 56px;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0646f2 0%, #0b6cff 60%, #2a9ff9 100%);
  color: #fff;
}

.article-cta h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-cta p {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, 0.9);
}

.related {
  margin-top: 48px;
}

.related h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.related ul {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.related li {
  border-bottom: 1px solid var(--line);
}

.related a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

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

/* Rechtliche Seiten & 404 ------------------------------------------------- */

.legal {
  padding-block: clamp(48px, 8vw, 96px) var(--section-y);
  min-height: 60vh;
}

.legal__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 720px;
}

/* Bewegung reduzieren ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
