/* ==========================================================================
   Cremer Industries – Stylesheet
   Helles Design mit Blau-Cyan-Akzent (Inspiration: jonaskeil.com, comrce.io).
   Aufbau: Schriften · Tokens · Basis · Komponenten · Sektionen · Animationen
   ========================================================================== */

/* ---------- Schriften (lokal, OFL) ---------- */

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght.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: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght.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;
}

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

:root {
  color-scheme: light;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --nav-offset: 5.5rem;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);

  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef4fd;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0a1628;
  --text-muted: #475569;
  --text-subtle: #5b6a80;

  /* Akzent Blau → Cyan. Für Text/Buttons abgedunkelte Töne (WCAG AA). */
  --blue: #157fe1;
  --cyan: #06b6d4;
  --blue-strong: #0e66cc;
  --blue-soft: #e8f1fd;
  --gradient: linear-gradient(120deg, #157fe1 0%, #06b6d4 100%);
  --gradient-text: linear-gradient(120deg, #1272d8 0%, #0891b2 100%);
  --gradient-button: linear-gradient(120deg, #0e66cc 0%, #0979ad 100%);
  --gradient-band: linear-gradient(120deg, #0b4fa8 0%, #0e66cc 45%, #0e7490 100%);
  --green: #16a34a;
  --youtube: #cc0000;

  --font-display: "Manrope Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.5rem, 5.4vw, 4.5rem);
  --fs-h2: clamp(2rem, 4vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 2.2vw, 1.75rem);
  --fs-lead: clamp(1.0625rem, 1.4vw, 1.25rem);
  --fs-small: 0.875rem;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -12px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.04), 0 28px 56px -20px rgba(0, 40, 100, 0.28);
  --shadow-hover: 0 18px 36px -16px rgba(0, 40, 100, 0.32);
  --glow: 0 0 16px rgba(21, 127, 225, 0.38), 0 10px 24px -6px rgba(21, 127, 225, 0.45);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: #cfe3fb;
  color: var(--text);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Weiche Trennstellen (&shy;) nur auf schmalen Bildschirmen nutzen */
@media (min-width: 640px) {
  h1,
  h2,
  h3 {
    hyphens: none;
  }
}

p {
  text-wrap: pretty;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--blue-strong);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--brand {
  fill: currentColor;
  stroke: none;
}

/* Akzentwörter im Farbverlauf */
.accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons, Links, Chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn .icon {
  width: 1.125em;
  height: 1.125em;
  transition: transform 0.2s;
}

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

.btn:hover .icon--move {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(14, 102, 204, 0.7);
}

.btn--primary:hover {
  box-shadow: 0 14px 28px -12px rgba(0, 40, 100, 0.55);
}

.btn--glow {
  position: relative;
  box-shadow: var(--glow);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.875rem 1.625rem;
  font-size: 1rem;
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.btn--youtube {
  border-radius: 999px;
  background: var(--youtube);
  color: #fff;
  font-weight: 700;
}

.btn--youtube:hover {
  background: #b30000;
  box-shadow: 0 8px 18px -6px rgba(204, 0, 0, 0.5);
}

.btn--white {
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px -12px rgba(2, 20, 50, 0.5);
}

.btn--white .icon {
  color: var(--blue-strong);
}

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

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.text-link .icon {
  width: 1em;
  height: 1em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.4375rem 0.9375rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.2s, box-shadow 0.2s;
}

.chip .icon {
  width: 1.0625rem;
  height: 1.0625rem;
  color: var(--text-muted);
}

a.chip:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-strong);
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--gradient);
}

.checklist {
  display: grid;
  gap: 0.625rem;
}

.checklist li {
  position: relative;
  padding-left: 1.875rem;
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.125em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--blue-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e66cc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.75rem no-repeat;
}

/* ---------- Pillen-Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 0.75rem;
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled .nav-pill {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
}

/* Wortmarke (SVG, Seitenverhältnis 1347 × 129) */
.brand__logo {
  display: block;
  width: auto;
  height: 1.125rem;
}

@media (min-width: 1024px) {
  .brand__logo {
    height: 1.25rem;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: 0.125rem;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9063rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.nav__link:hover,
.nav__link[aria-current="true"] {
  color: var(--text);
  background: var(--bg-soft);
}

.lang {
  display: flex;
  gap: 0.125rem;
  padding: 0.1875rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.lang a {
  padding: 0.25rem 0.5rem;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current="page"] {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.nav-toggle .icon--close,
.site-header.is-open .nav-toggle .icon--menu {
  display: none;
}

.site-header.is-open .nav-toggle .icon--close {
  display: block;
}

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

  /* Ausklappbares Panel unterhalb der Pille */
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }

  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .nav__list {
    flex-direction: column;
  }

  .nav__link {
    padding: 0.875rem 1rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
  }

  .lang {
    align-self: flex-start;
    margin-left: 0.25rem;
  }

  .nav .btn {
    width: 100%;
  }
}

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

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

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

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted);
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.card--lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: var(--radius);
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(14, 102, 204, 0.7);
}

.icon-badge .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-badge--youtube {
  background: var(--youtube);
  box-shadow: 0 10px 20px -10px rgba(204, 0, 0, 0.6);
}

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

.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-offset));
  padding-top: var(--nav-offset);
  background: radial-gradient(48rem 30rem at 90% 0%, rgba(6, 182, 212, 0.14), transparent 62%),
    radial-gradient(44rem 28rem at 0% 0%, rgba(21, 127, 225, 0.1), transparent 60%), var(--bg);
}

/* Feines Punktraster, zur Mitte ausgeblendet */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
}

.hero__content {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #15803d;
}

.pulse-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.hero__title .word {
  display: inline-block;
}

.hero__title .word--accent {
  display: block;
}

.hero__lead {
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.125rem;
}

.hero-stats dd {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-stats dt {
  font-size: var(--fs-small);
  color: var(--text-subtle);
}

.hero__note {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

@media (max-width: 639px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
  }

  .hero-stats dd {
    font-size: 1.1875rem;
  }

  .hero-stats dt {
    font-size: 0.75rem;
    line-height: 1.35;
  }
}

.nowrap {
  white-space: nowrap;
}

/* Foto mit schwebenden Info-Karten */
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 28rem);
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  border-radius: 40px;
  background: var(--gradient);
  opacity: 0.22;
  filter: blur(40px);
}

.hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: var(--bg-tint);
  box-shadow: var(--shadow-lg);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f1fd 0%, #dff5f9 100%);
  color: var(--blue-strong);
  font-weight: 600;
  text-align: center;
}

.photo-placeholder .icon {
  width: 2.5rem;
  height: 2.5rem;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem 0.625rem 0.625rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.45);
  line-height: 1.25;
  white-space: nowrap;
}

.float-card .icon-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
}

.float-card .icon-badge .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.float-card small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
}

.float-card--a {
  top: -3%;
  left: -8%;
  rotate: -4deg;
}

.float-card--b {
  right: -7%;
  bottom: 22%;
  rotate: 3deg;
}

.float-card--c {
  bottom: -5%;
  left: 10%;
  rotate: -2deg;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

@media (max-width: 1023px) {
  .hero__visual {
    order: -1;
    width: min(78%, 22rem);
  }

  /* Karten an die Bildränder, damit die Person im Foto sichtbar bleibt */
  .float-card--a {
    top: -6%;
    left: -12%;
  }

  .float-card--b {
    right: -12%;
    bottom: 6%;
  }

  .float-card--c {
    display: none;
  }
}

@media (max-width: 479px) {
  .float-card {
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  }

  .float-card strong {
    font-size: 0.8125rem;
  }

  .float-card .icon-badge {
    width: 2.125rem;
    height: 2.125rem;
  }

  .float-card--a {
    left: -8%;
  }

  .float-card--b {
    right: -8%;
  }
}

/* ---------- Einblicke-Leiste (Marquee) ---------- */

.gallery {
  padding-block: 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.gallery__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.gallery__track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.gallery__item {
  width: clamp(13rem, 22vw, 17.5rem);
  flex: none;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-tint);
  box-shadow: var(--shadow);
}

.gallery__item:nth-child(even) {
  margin-top: 1.5rem;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Plattform-Leiste ---------- */

.platforms__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.platforms__label {
  margin-right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.platforms__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

/* ---------- Hub / Bento ---------- */

.bento {
  display: grid;
  gap: 1.25rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.hub-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hub-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hub-card__text {
  color: var(--text-muted);
}

.hub-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: auto;
}

.hub-card--wi {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
}

.hub-card--wi .hub-card__media {
  overflow: hidden;
  margin-top: 0.5rem;
  border-radius: 18px;
}

.hub-card--wi .hub-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wi-logo {
  width: min(100%, 15rem);
  height: auto;
}

.hub-card--cc {
  background: radial-gradient(28rem 16rem at 100% 0%, rgba(6, 182, 212, 0.12), transparent 60%), var(--surface);
}

.channel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.channel-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.125rem;
}

.channel-stats dt {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.channel-stats dd {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.hub-card--small .hub-card__title {
  font-size: 1.25rem;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-card--wi {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hub-card--wi {
    grid-column: span 7;
    grid-row: span 2;
  }

  .hub-card--cc,
  .hub-card--wiyt {
    grid-column: span 5;
  }

  .hub-card--small {
    grid-column: span 4;
  }
}

.products__title {
  margin-top: clamp(3rem, 6vw, 4rem);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.product {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.375rem;
  padding: 0.75rem 0.75rem 1.25rem;
  border-radius: 20px;
}

.product__media {
  margin-bottom: 0.625rem;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.product__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.product:hover .product__media img {
  transform: scale(1.05);
}

.product__title,
.product__text {
  padding-inline: 0.5rem;
}

.product__text {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

@media (max-width: 559px) {
  .product {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 1rem;
    align-items: start;
    padding: 0.75rem;
  }

  .product__media {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .product__media img {
    aspect-ratio: 1;
  }

  .product__title,
  .product__text {
    padding-inline: 0;
  }

  .product__title {
    padding-top: 0.25rem;
  }
}

/* ---------- Ansatz: gestapelte Sticky-Karten ---------- */

.stack {
  display: grid;
  gap: 1.5rem;
}

.stack-card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.stack-card:nth-child(1) {
  background: linear-gradient(135deg, #ffffff 0%, #eef4fd 100%);
}

.stack-card:nth-child(2) {
  background: linear-gradient(135deg, #ffffff 0%, #e8f8fb 100%);
}

.stack-card:nth-child(3) {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.stack-card__body {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.stack-card__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stack-card__text {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.stack-card__example {
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.stack-card__example strong {
  color: var(--text);
}

.stack-card__media {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stack-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Vertriebskanäle als kleine Oberfläche */
.channel-ui {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.channel-ui__row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.channel-ui__row .icon-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
}

.channel-ui__row .icon-badge .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.channel-ui__name {
  font-weight: 700;
}

.channel-ui__meta {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.channel-ui__status {
  margin-left: auto;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
}

@media (min-width: 900px) {
  .stack-card {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    min-height: 26rem;
    position: sticky;
    top: var(--nav-offset);
  }

  .stack-card:nth-child(2) {
    top: calc(var(--nav-offset) + 1.25rem);
  }

  .stack-card:nth-child(3) {
    top: calc(var(--nav-offset) + 2.5rem);
  }
}

/* ---------- Kooperation ---------- */

.coop {
  display: grid;
  gap: 1.25rem;
}

.coop__card {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.coop__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.2s;
}

.coop__card:hover::before {
  opacity: 1;
}

.coop__for {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.coop__text {
  color: var(--text-muted);
}

.coop__card .checklist {
  margin-bottom: 0.5rem;
}

.coop__cta {
  margin-top: auto;
}

@media (min-width: 900px) {
  .coop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps {
  margin-top: clamp(3.5rem, 7vw, 5rem);
}

.steps__title {
  margin-bottom: 1.75rem;
  text-align: center;
}

.steps__list {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.step__num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--bg), 0 10px 20px -10px rgba(14, 102, 204, 0.8);
}

.step p {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .steps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Verbindungslinie zwischen den Schritten */
  .steps__list::before {
    content: "";
    position: absolute;
    top: 1.375rem;
    left: 1.375rem;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    opacity: 0.35;
  }
}

/* ---------- Videos ---------- */

.videos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.videos-head .section-head {
  margin-bottom: 0;
}

.videos-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.videos {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.video {
  overflow: hidden;
}

.video__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1628;
}

.video__media img,
.video__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.video:hover .video__media img {
  transform: scale(1.05);
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 22, 40, 0.45));
}

.video__play-icon {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--youtube);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}

.video__play-icon .icon {
  width: 1.625rem;
  height: 1.625rem;
  margin-left: 0.2rem;
  fill: currentColor;
}

.video__play:hover .video__play-icon,
.video__play:focus-visible .video__play-icon {
  transform: scale(1.08);
}

.video__consent {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(10, 22, 40, 0.92);
  color: #f1f5f9;
  font-size: var(--fs-small);
}

.video__consent a:not(.btn) {
  color: inherit;
  text-underline-offset: 0.2em;
}

.video__consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.video__consent .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: none;
}

.video__body {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.video__channel {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-strong);
}

.video__title {
  font-size: 1.125rem;
  line-height: 1.35;
}

.video__meta {
  font-size: var(--fs-small);
  color: var(--text-subtle);
}

.videos__note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--text-subtle);
}

.videos__note .icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* ---------- Über mich ---------- */

.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 26rem);
}

.about__photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: var(--bg-tint);
  box-shadow: var(--shadow-lg);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__visual .float-card {
  right: -6%;
  bottom: 8%;
  rotate: 3deg;
}

@media (max-width: 899px) {
  .about__visual {
    width: min(86%, 26rem);
  }
}

.about__content {
  display: grid;
  gap: 1.375rem;
}

.about__content .section-head {
  margin-bottom: 0.5rem;
}

.about__text {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 560px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.facts div {
  display: grid;
  align-content: start;
  gap: 0.125rem;
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.facts dd {
  font-weight: 600;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* ---------- Kontakt-Band ---------- */

.contact {
  padding-block: clamp(1rem, 3vw, 2rem) var(--section-pad);
}

.contact__band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: clamp(24px, 4vw, 36px);
  background: var(--gradient-band);
  color: #fff;
  box-shadow: 0 40px 80px -40px rgba(11, 79, 168, 0.8);
}

.contact__band::before,
.contact__band::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.contact__band::before {
  width: 26rem;
  height: 26rem;
  top: -10rem;
  right: -6rem;
  background: rgba(34, 211, 238, 0.45);
}

.contact__band::after {
  width: 20rem;
  height: 20rem;
  bottom: -10rem;
  left: -4rem;
  background: rgba(79, 159, 239, 0.4);
}

.contact__band > * {
  position: relative;
}

.contact .eyebrow {
  color: #fff;
}

.contact .eyebrow::before {
  background: #fff;
}

.contact__title {
  margin-top: 0.875rem;
  color: #fff;
}

.contact__lead {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.88);
}

.contact__mail {
  justify-self: start;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.contact__mail:hover {
  text-decoration-color: #fff;
}

.contact__topics-label {
  margin-bottom: 0.875rem;
  font-size: var(--fs-small);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.contact__topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact__address {
  font-size: var(--fs-small);
  font-style: normal;
  color: rgba(255, 255, 255, 0.88);
}

.contact__address strong {
  color: #fff;
}

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

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  background: #0a1628;
  color: #cbd5e1;
  font-size: var(--fs-small);
}

.site-footer .brand__logo {
  height: 1.375rem;
}

.site-footer__top {
  display: grid;
  gap: 2.5rem;
}

.site-footer__brand {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  max-width: 24rem;
}

.site-footer__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.site-footer__brands img {
  width: 10.5rem;
  height: auto;
}

.site-footer__channel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.site-footer__channel .icon {
  width: 1.375rem;
  height: 1.375rem;
  color: #ff4d4d;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 2rem;
}

.site-footer__heading {
  margin-bottom: 0.875rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.site-footer__list {
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.social-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.social-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-group__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  color: #cbd5e1;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.social-icons a:hover {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(148, 163, 184, 0.08);
  color: #fff;
}

.social-icons .icon {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

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

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  background: radial-gradient(40rem 20rem at 90% 0%, rgba(6, 182, 212, 0.12), transparent 62%), var(--bg-soft);
}

.page-head h1 {
  margin-top: 0.75rem;
  font-size: var(--fs-h2);
}

.legal {
  padding-block: clamp(2.5rem, 6vw, 4rem) var(--section-pad);
}

.prose {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  color: var(--text-muted);
}

.prose h2 {
  margin-top: 1.75rem;
  font-size: 1.1875rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.prose address {
  font-style: normal;
}

.prose a {
  color: var(--blue-strong);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.prose .note {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--bg-soft);
}

.not-found {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.not-found .brand__logo {
  height: 1.5rem;
}

.not-found__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

/* ---------- Animationen (nur ohne „Bewegung reduzieren“) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Headline Wort für Wort */
  .hero__title .word {
    animation: word-in 0.9s var(--ease-out) both;
  }

  .hero__title .word:nth-child(1) { animation-delay: 0.05s; }
  .hero__title .word:nth-child(2) { animation-delay: 0.15s; }
  .hero__title .word:nth-child(3) { animation-delay: 0.25s; }
  .hero__title .word:nth-child(4) { animation-delay: 0.35s; }
  .hero__title .word:nth-child(5) { animation-delay: 0.45s; }
  .hero__title .word:nth-child(6) { animation-delay: 0.55s; }

  .hero-in {
    animation: rise-in 0.8s var(--ease-out) both;
  }

  .hero-in--1 { animation-delay: 0.45s; }
  .hero-in--2 { animation-delay: 0.6s; }
  .hero-in--3 { animation-delay: 0.75s; }
  .hero-in--photo { animation: photo-in 1s var(--ease-out) 0.3s both; }

  .hero-photo,
  .about__photo {
    animation: float 7s ease-in-out infinite;
  }

  .float-card {
    animation: bob 6s ease-in-out infinite;
  }

  .float-card--b {
    animation-delay: -2s;
  }

  .float-card--c {
    animation-delay: -4s;
  }

  .pulse-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #22c55e;
    animation: pulse 2s ease-out infinite;
  }

  .btn--glow::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 36px rgba(110, 193, 255, 0.85), 0 16px 40px -6px rgba(21, 127, 225, 0.6);
    opacity: 0;
    animation: aura 3.5s ease-in-out infinite;
  }

  .gallery__track {
    animation: marquee 60s linear infinite;
  }

  .gallery:hover .gallery__track,
  .gallery:focus-within .gallery__track {
    animation-play-state: paused;
  }

  /* Einblenden beim Scrollen: Slide-up + Unschärfe */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(2.5rem);
    filter: blur(4px);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(0.35em);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  50% {
    translate: 0 -8px;
  }
}

@keyframes bob {
  50% {
    translate: 0 -6px;
  }
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.7;
  }

  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes aura {
  50% {
    opacity: 0.55;
  }
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

/* Ohne Bewegung: Einblicke als ruhiges Raster statt Laufband */
@media (prefers-reduced-motion: reduce) {
  .gallery__viewport {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .gallery__track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
    width: auto;
  }

  .gallery__item {
    width: auto;
  }

  .gallery__item:nth-child(even) {
    margin-top: 0;
  }

  .gallery__item:nth-child(n + 7) {
    display: none;
  }
}
