@font-face {
  font-family: "Gliker";
  src: local("Gliker");
  font-display: swap;
}

:root {
  --blue: #004aad;
  --blue-dark: #002557;
  --yellow: #ffce01;
  --green: #45a102;
  --green-dark: #1a6100;
  --red: #fc0000;
  --yellow-light: #f9e58f;
  --orange: #f79d25;
  --white: #fff;
  --black: #000;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --display: "Gliker", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--blue-dark);
  background: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
video:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
}

::selection {
  background: var(--yellow);
  color: var(--blue-dark);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.05;
}

h1,
h2 {
  letter-spacing: -0.055em;
}

section[id] {
  scroll-margin-top: 6rem;
}

.shell {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: -5rem;
  left: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--space-2);
}

.top-strip {
  padding: 0.35rem var(--space-2);
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.top-strip span {
  color: var(--yellow);
  padding-inline: var(--space-1);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: var(--white);
  border-bottom: 2px solid var(--blue-dark);
}

.header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.brand-dot {
  color: var(--green);
}

.desktop-nav {
  display: none;
}

.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border: 2px solid var(--blue-dark);
  background: var(--yellow);
  font-family: var(--display);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

.mobile-menu summary:hover,
.mobile-menu[open] summary {
  background: var(--yellow-light);
}

.menu-symbol {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  min-width: min(17rem, calc(100vw - 3rem));
  padding: var(--space-1);
  border: 2px solid var(--blue-dark);
  background: var(--white);
  box-shadow: 0.5rem 0.5rem 0 var(--blue-dark);
}

.mobile-menu nav a {
  padding: var(--space-1) var(--space-2);
  font-weight: 800;
  text-decoration: none;
}

.mobile-menu nav a:hover {
  background: var(--yellow-light);
}

.hero {
  overflow: hidden;
  background: var(--yellow-light);
}

.hero-grid {
  display: grid;
  min-height: 37rem;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.eyebrow,
.section-kicker {
  margin-bottom: var(--space-2);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.eyebrow-line {
  width: 2rem;
  height: 0.25rem;
  background: var(--green);
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: var(--space-3);
  color: var(--blue-dark);
  font-size: clamp(3.25rem, 8vw, 6.25rem);
}

.hero h1 span,
.section-intro h2 span,
.faq-heading h2 span,
.contact-section h2 span {
  color: var(--blue);
}

.hero h1 .heading-period {
  color: var(--green);
}

.hero-lead {
  max-width: 35rem;
  margin-bottom: var(--space-4);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}

.button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 2px solid var(--blue-dark);
  font-family: var(--display);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, translate 200ms ease-out;
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0.4rem 0.4rem 0 var(--blue-dark);
}

.button-primary:hover {
  transform: translate(-0.2rem, -0.2rem);
  box-shadow: 0.6rem 0.6rem 0 var(--blue-dark);
  background: var(--blue-dark);
}

.button-primary:active {
  transform: translate(0.2rem, 0.2rem);
  box-shadow: 0.2rem 0.2rem 0 var(--blue-dark);
}

.text-link,
.inline-link {
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.text-link:hover,
.inline-link:hover {
  color: var(--green-dark);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-5);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.3;
}

.note-star {
  color: var(--green-dark);
  font-size: 2.5rem;
  line-height: 1;
}

.hero-art {
  position: relative;
  min-width: 0;
  padding: var(--space-3);
}

.hero-art::before {
  position: absolute;
  inset: 6% 2% 2% 3%;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.hero-art::after {
  position: absolute;
  z-index: 0;
  right: 2%;
  bottom: 1%;
  width: 35%;
  aspect-ratio: 1;
  border: 0.75rem solid var(--green);
  border-radius: 50%;
  content: "";
}

.box-figure {
  position: relative;
  z-index: 1;
  transform: rotate(-4deg);
}

.box-figure img {
  width: 100%;
  border: 3px solid var(--blue-dark);
  box-shadow: 1rem 1rem 0 var(--blue-dark);
}

.box-figure figcaption {
  margin-top: var(--space-4);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-spark {
  position: absolute;
  z-index: 2;
  color: var(--green);
  line-height: 1;
}

.hero-spark-one {
  top: -4%;
  right: 3%;
  font-size: 4rem;
}

.hero-spark-two {
  bottom: 0;
  left: -2%;
  color: var(--orange);
  font-size: 4rem;
}

.hero-trail {
  display: flex;
  overflow: hidden;
  padding: var(--space-1) 0;
  border-top: 2px solid var(--blue-dark);
  border-bottom: 2px solid var(--blue-dark);
  background: var(--yellow);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero-trail span:nth-child(even) {
  color: var(--green-dark);
}

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

.section-intro {
  display: grid;
  gap: var(--space-2) var(--space-5);
  align-items: end;
  margin-bottom: var(--space-5);
}

.section-intro h2,
.faq-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
}

.section-intro > p {
  max-width: 34rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.product-section {
  background: var(--white);
}

.product-feature {
  display: grid;
  border: 2px solid var(--blue-dark);
}

.product-visual {
  display: grid;
  align-items: center;
  padding: var(--space-3);
  background: var(--orange);
}

.product-visual img {
  width: 100%;
  border: 2px solid var(--blue-dark);
}

.product-aside {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: var(--space-4);
  background: var(--yellow-light);
}

.aside-mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
}

.product-aside h3 {
  max-width: 12ch;
  margin-bottom: var(--space-2);
  font-size: clamp(2rem, 4vw, 3rem);
}

.product-aside p {
  max-width: 28rem;
}

.inline-link {
  margin-top: var(--space-2);
}

.media-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.media-intro .section-kicker {
  margin-bottom: 0.4rem;
}

.media-intro h3 {
  margin-bottom: 0;
  font-size: 1.75rem;
}

.gallery-grid {
  display: grid;
  gap: var(--space-2);
  grid-auto-rows: clamp(12rem, 42vw, 18rem);
}

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--blue-dark);
  background: var(--blue-dark);
}

.gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
}

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

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2) var(--space-2);
  background: linear-gradient(transparent, rgb(0 37 87 / 88%));
  color: var(--white);
  font-weight: 800;
}

.gallery-item figcaption span:last-child {
  color: var(--yellow);
  white-space: nowrap;
}

.gallery-dialog {
  position: fixed;
  width: min(92vw, 76rem);
  max-width: none;
  max-height: 92dvh;
  padding: var(--space-5) var(--space-2) var(--space-2);
  overflow: auto;
  border: 2px solid var(--blue-dark);
  background: var(--white);
  color: var(--blue-dark);
}

.gallery-dialog::backdrop {
  background: rgb(0 20 48 / 86%);
}

.gallery-dialog figure {
  margin: 0;
}

.gallery-dialog-image {
  width: 100%;
  max-height: calc(92dvh - 7rem);
  object-fit: contain;
}

.gallery-dialog-caption {
  padding-top: var(--space-2);
  font-weight: 800;
}

.gallery-close {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--blue-dark);
  background: var(--yellow);
  color: var(--blue-dark);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-trigger img {
    transition: transform 300ms ease;
  }

  .gallery-trigger:hover img {
    transform: scale(1.04);
  }
}

.benefits-section {
  background: var(--blue-dark);
  color: var(--white);
}

.benefits-intro h2 span {
  color: var(--yellow);
}

.benefit-grid {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--yellow);
  border-left: 2px solid var(--yellow);
}

.benefit {
  min-height: 16rem;
  padding: var(--space-3);
  border-right: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
}

.benefit-number {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-dark);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 900;
}

.benefit h3 {
  margin-bottom: var(--space-1);
  font-size: 1.6rem;
}

.benefit p {
  max-width: 18rem;
  margin-bottom: 0;
}

.use-section {
  background: var(--yellow-light);
}

.use-grid {
  display: grid;
  gap: var(--space-2);
}

.use-block {
  min-height: 22rem;
  padding: var(--space-4);
  border: 2px solid var(--blue-dark);
  background: var(--blue);
  color: var(--white);
}

.use-block-green {
  background: var(--green-dark);
}

.use-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: 2.25rem;
  font-weight: 900;
}

.use-label {
  margin-bottom: var(--space-1);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.use-block h3 {
  margin-bottom: var(--space-2);
  font-size: clamp(2rem, 4vw, 3rem);
}

.use-block > p:last-child {
  max-width: 30rem;
  margin-bottom: 0;
}

.use-footnote {
  margin: var(--space-3) 0 0;
  font-weight: 800;
  text-align: center;
}

.experiments-section {
  background: var(--orange);
}

.experiment-list {
  display: grid;
  border-top: 3px solid var(--blue-dark);
}

.experiment-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: var(--space-1) var(--space-2);
  align-items: center;
  padding-block: var(--space-3);
  border-bottom: 3px solid var(--blue-dark);
}

.experiment-index {
  align-self: start;
  font-family: var(--display);
  font-weight: 900;
}

.experiment-item h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.experiment-item p {
  grid-column: 2;
  margin-bottom: 0;
  font-weight: 700;
}

.experiment-symbol {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--blue);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
}

.placeholder-note {
  margin: var(--space-3) 0 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.faq-section {
  background: var(--white);
}

.faq-grid {
  display: grid;
  gap: var(--space-5);
}

.faq-heading h2 {
  margin-bottom: var(--space-2);
}

.faq-heading > p:last-child {
  max-width: 20rem;
  font-size: 1.1rem;
}

.faq-list {
  border-top: 2px solid var(--blue-dark);
}

.faq-list details {
  border-bottom: 2px solid var(--blue-dark);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-3);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary:hover {
  color: var(--blue);
}

.faq-list summary span {
  flex: 0 0 auto;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 1.5rem;
  line-height: 1;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 38rem;
  margin: 0;
  padding: 0 var(--space-4) var(--space-3) 0;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-6);
  background: var(--yellow);
}

.contact-grid {
  position: relative;
  display: grid;
  gap: var(--space-4);
  align-items: end;
}

.contact-section h2 span {
  color: var(--green-dark);
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--blue-dark);
  background: var(--blue);
  color: var(--white);
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.contact-email:hover {
  background: var(--blue-dark);
}

.contact-email:active {
  background: var(--green-dark);
}

.contact-decoration {
  position: absolute;
  right: -2rem;
  bottom: -6rem;
  color: var(--orange);
  font-size: 22rem;
  line-height: 1;
  pointer-events: none;
}

.site-footer {
  padding-block: var(--space-4) var(--space-2);
  background: var(--blue-dark);
  color: var(--white);
}

.footer-main {
  display: grid;
  gap: var(--space-2);
  align-items: center;
  padding-bottom: var(--space-4);
}

.footer-brand img {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--white);
}

.footer-main p {
  margin: 0;
}

.footer-main a {
  font-weight: 900;
  text-underline-offset: 0.3em;
}

.footer-main a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--white);
  font-size: 0.8rem;
}

.footer-bottom a:hover {
  color: var(--yellow);
}

.legal-back {
  padding: var(--space-1) var(--space-2);
  border: 2px solid var(--blue-dark);
  background: var(--yellow);
  font-family: var(--display);
  font-weight: 900;
  text-decoration: none;
}

.legal-back:hover {
  background: var(--yellow-light);
}

.legal-hero {
  padding-block: var(--space-6);
  background: var(--yellow-light);
}

.legal-hero h1 {
  margin-bottom: var(--space-3);
  font-size: clamp(3rem, 8vw, 6rem);
  overflow-wrap: anywhere;
}

.legal-hero h1 span {
  color: var(--green);
}

.legal-hero p:not(.section-kicker) {
  max-width: 45rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.legal-hero .legal-date {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.legal-content {
  max-width: 52rem;
  padding-block: var(--space-6);
}

.legal-content section {
  padding-block: var(--space-3);
  border-bottom: 2px solid var(--blue-dark);
}

.legal-content section:first-child {
  padding-top: 0;
}

.legal-content h2 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.legal-content p {
  margin-bottom: var(--space-2);
}

.legal-content a {
  font-weight: 700;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

.legal-content a:hover {
  color: var(--green-dark);
}

.legal-content address {
  font-style: normal;
}

.legal-placeholder {
  padding: var(--space-2);
  border: 2px dashed var(--blue-dark);
  background: var(--yellow-light);
  font-weight: 700;
}

/* ==============================
   Animationen
   Einblenden nutzt `translate`/`scale`, Hover-Effekte nutzen `transform`,
   damit sich beide nicht gegenseitig überschreiben.
   ============================== */
main {
  overflow-x: hidden;
  overflow-x: clip;
}

.scroll-progress {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  height: 0.3rem;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.site-header {
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 0.35rem 0 var(--yellow);
}

.brand img {
  transition: transform 400ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.brand:hover img {
  transform: rotate(-12deg) scale(1.08);
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-visible),
  .js [data-reveal-group] > :not(.is-visible):not([aria-hidden="true"]) {
    opacity: 0;
  }
}

[data-reveal="left"],
[data-reveal-group="left"] > * {
  --reveal-x: -2.5rem;
  --reveal-y: 0;
}

[data-reveal="right"] {
  --reveal-x: 2.5rem;
  --reveal-y: 0;
}

[data-reveal="zoom"] {
  --reveal-y: 0;
  --reveal-scale: 0.9;
}

.is-visible {
  animation: reveal 800ms cubic-bezier(0.2, 0.75, 0.2, 1) var(--reveal-delay, 0ms) both;
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: var(--reveal-x, 0) var(--reveal-y, 2rem);
    scale: var(--reveal-scale, 1);
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

.hero h1 > span {
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 92% / 0 0.14em;
  animation: underline 900ms 900ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

@keyframes underline {
  to {
    background-size: 100% 0.14em;
  }
}

/* Hero erscheint per CSS, damit es nicht auf JavaScript warten muss. */
.hero-copy > *,
.hero-art {
  animation: hero-in 800ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

/* Wie `reveal`, aber ohne Opacity: Überschrift und Bild zählen sofort als sichtbar (LCP). */
@keyframes hero-in {
  from {
    translate: var(--reveal-x, 0) var(--reveal-y, 1rem);
    scale: var(--reveal-scale, 1);
  }
}

.hero h1 > .h1-kicker {
  display: block;
  margin-bottom: var(--space-2);
  background: none;
  color: var(--green-dark);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: 0;
  animation: none;
}

.hero-copy > :nth-child(2) { animation-delay: 90ms; }
.hero-copy > :nth-child(3) { animation-delay: 180ms; }
.hero-copy > :nth-child(4) { animation-delay: 270ms; }
.hero-copy > :nth-child(5) { animation-delay: 360ms; }
.hero-copy > :nth-child(6) { animation-delay: 450ms; }

.hero-art {
  --reveal-y: 0;
  --reveal-scale: 0.9;
  animation-delay: 200ms;
}

.hero-art::before {
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  animation: spin 24s linear infinite;
}

.hero-art::after {
  animation: breathe 6s ease-in-out infinite;
}

.box-figure {
  translate: var(--px, 0px) var(--py, 0px);
  transition: translate 300ms ease-out;
  animation: sway 7s ease-in-out infinite;
}

.hero-spark {
  translate: calc(var(--px, 0px) * -1.6) calc(var(--py, 0px) * -1.6);
  transition: translate 300ms ease-out;
  animation: float 5s ease-in-out infinite;
}

.hero-spark-two {
  animation-duration: 6s;
  animation-delay: -2.5s;
}

.note-star {
  display: inline-block;
  animation: spin 10s linear infinite;
}

.hero-trail-track {
  display: flex;
  flex: 0 0 auto;
}

.hero-trail-track span {
  padding-inline: var(--space-2);
}

.hero-trail.is-looping .hero-trail-track {
  animation: marquee 35s linear infinite;
}

.hero-trail:hover .hero-trail-track {
  animation-play-state: paused;
}

.product-visual {
  overflow: hidden;
}

.product-visual img {
  transition: transform 500ms ease;
}

.product-feature:hover .product-visual img {
  transform: scale(1.03) rotate(-1deg);
}

.aside-mark {
  animation: float 4s ease-in-out infinite;
}

.benefit {
  transition: background-color 250ms ease;
}

.benefit:hover {
  background: var(--blue);
}

.benefit-number {
  transition: transform 500ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.benefit:hover .benefit-number {
  transform: rotate(360deg) scale(1.15);
}

.use-block {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.use-block:hover {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate(-0.35rem, -0.35rem);
  box-shadow: 0.7rem 0.7rem 0 var(--blue-dark);
}

.use-icon {
  transition: transform 600ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.use-block:hover .use-icon {
  transform: rotate(-20deg) scale(1.1);
}

.experiment-item {
  transition: background-color 250ms ease, padding-inline 250ms ease;
}

.experiment-item:hover {
  padding-inline: var(--space-2);
  background: var(--yellow-light);
}

.experiment-symbol {
  transition: transform 400ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.experiment-item:hover .experiment-symbol {
  transform: translateX(-0.4rem) rotate(-15deg) scale(1.2);
}

.faq-list summary span {
  transition: transform 250ms ease, background-color 250ms ease;
}

.faq-list details[open] summary span {
  background: var(--green);
  color: var(--white);
}

.faq-list details[open] p {
  animation: faq-open 350ms ease both;
}

.contact-email {
  transition: transform 200ms ease, background-color 200ms ease;
}

.contact-email:hover {
  transform: translateY(-0.2rem);
}

.contact-decoration {
  animation: spin 40s linear infinite;
}

@keyframes float {
  50% {
    transform: translateY(-0.9rem) rotate(18deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sway {
  50% {
    transform: rotate(-1.5deg);
  }
}

@keyframes breathe {
  50% {
    scale: 1.08;
  }
}

.top-strip .motion-toggle {
  margin-left: var(--space-2);
  padding: 0.1rem var(--space-1);
  border: 1px solid var(--yellow);
  background: transparent;
  color: var(--white);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.top-strip .motion-toggle:hover {
  background: var(--yellow);
  color: var(--blue-dark);
}

.motion-paused .hero-trail.is-looping .hero-trail-track,
.motion-paused .trace-pulses path,
.motion-paused .bg-float span,
.motion-paused .bg-dots::before,
.motion-paused :is(.box-figure, .hero-spark, .note-star, .aside-mark, .contact-decoration),
.motion-paused .hero-art::before,
.motion-paused .hero-art::after {
  animation-play-state: paused;
}

@media print {
  .js [data-reveal],
  .js [data-reveal-group] > * {
    opacity: 1 !important;
    animation: none !important;
  }

  .scroll-progress,
  .motion-toggle {
    display: none;
  }
}

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

@keyframes faq-open {
  from {
    opacity: 0;
    translate: 0 -0.5rem;
  }
}

/* ==============================
   Interaktiv: Hero-Ideen, Magnet-Button, Neigen, Leiterbahnen
   ============================== */
.hero-ticker {
  min-height: 2.4em;
  margin: var(--space-3) 0 0;
  font-weight: 800;
}

.hero-ticker-word {
  white-space: nowrap;
}

.motion-toggle[data-pending] {
  visibility: hidden;
}

.hero-ticker-word {
  display: inline-block;
  padding: 0 0.4rem;
  background: var(--yellow);
  font-family: var(--display);
}

.hero-ticker-word.is-swapping {
  animation: ticker-in 450ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.button-primary {
  translate: var(--mx, 0px) var(--my, 0px);
}

.benefit {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: background-color 250ms ease, transform 200ms ease-out;
}

.benefits-section {
  position: relative;
  overflow: hidden;
}

.benefits-section > .shell {
  position: relative;
  z-index: 1;
}

.trace-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.trace-lines path,
.trace-pulses path {
  fill: none;
  stroke: var(--yellow);
}

.trace-lines path {
  stroke-width: 2;
  opacity: 0.12;
}

.trace-pulses path {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 4 96;
  opacity: 0.7;
  animation: pulse-run 6s linear infinite;
}

.trace-pulses path:nth-child(2) {
  animation-duration: 8s;
  animation-delay: -3s;
}

.trace-pulses path:nth-child(3) {
  animation-duration: 7s;
  animation-delay: -5s;
}

@keyframes ticker-in {
  from {
    opacity: 0;
    translate: 0 0.6em;
  }
}

@keyframes pulse-run {
  from {
    stroke-dashoffset: 100;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* ==============================
   Frei schalten (LEGO-Vergleich)
   ============================== */
.freedom-section {
  background: var(--blue);
  color: var(--white);
}

.freedom-grid {
  display: grid;
  gap: var(--space-3) var(--space-5);
  align-items: center;
}

.freedom-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
}

.freedom-section h2 span {
  color: var(--yellow);
}

sup {
  font-size: 0.45em;
  line-height: 0;
  vertical-align: super;
}

.freedom-content {
  max-width: 36rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.freedom-points {
  display: grid;
  gap: var(--space-1);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.freedom-points li {
  padding: var(--space-1) var(--space-2);
  border: 2px solid var(--yellow);
  background: var(--blue-dark);
}

.freedom-points li::before {
  margin-right: var(--space-1);
  color: var(--yellow);
  font-weight: 900;
  content: "✦";
}

.freedom-points strong {
  color: var(--yellow);
}

.footer-note {
  flex-basis: 100%;
  opacity: 0.8;
}

/* ==============================
   Über uns, Stromkreis-Erklärung
   ============================== */
.about-section {
  background: var(--yellow-light);
}

.about-grid {
  display: grid;
  gap: var(--space-3) var(--space-5);
  align-items: start;
}

.about-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
}

.about-section h2 span {
  color: var(--blue);
}

.about-content {
  max-width: 36rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.experiments-explain {
  max-width: 48rem;
  margin-top: var(--space-4);
  padding: var(--space-3);
  border: 2px solid var(--blue-dark);
  background: var(--yellow-light);
  box-shadow: 0.5rem 0.5rem 0 var(--blue-dark);
}

.experiments-explain h3 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.experiments-explain p {
  margin: 0;
}

.experiments-explain p + p {
  margin-top: var(--space-2);
}

.contact-options {
  display: grid;
  gap: var(--space-1);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.contact-options a {
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.contact-options a:hover {
  color: var(--green-dark);
}

.contact-formal {
  margin: var(--space-3) 0 0;
  font-size: 0.95rem;
}

/* ==============================
   Bewegte Hintergründe
   ============================== */
.has-bg {
  position: relative;
  overflow: hidden;
}

.has-bg > .shell,
.has-bg > .hero-trail {
  position: relative;
  z-index: 1;
}

/* Langsam treibende Punkte und Ringe */
.bg-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-float span {
  position: absolute;
  width: var(--size, 1rem);
  height: var(--size, 1rem);
  border-radius: 50%;
  background: var(--float-color, var(--blue));
  opacity: 0.18;
  animation: drift var(--dur, 18s) ease-in-out infinite alternate;
}

.bg-float span:nth-child(3n) {
  background: transparent;
  border: 3px solid var(--float-color, var(--blue));
}

.bg-float span:nth-child(1) { --size: 1.2rem; top: 12%; left: 6%; --dur: 16s; }
.bg-float span:nth-child(2) { --size: 0.7rem; top: 68%; left: 12%; --dur: 21s; animation-delay: -4s; }
.bg-float span:nth-child(3) { --size: 2.6rem; top: 30%; left: 44%; --dur: 24s; animation-delay: -9s; }
.bg-float span:nth-child(4) { --size: 0.9rem; top: 82%; left: 38%; --dur: 19s; animation-delay: -2s; }
.bg-float span:nth-child(5) { --size: 1.5rem; top: 8%; left: 72%; --dur: 22s; animation-delay: -12s; }
.bg-float span:nth-child(6) { --size: 3.4rem; top: 58%; left: 86%; --dur: 27s; animation-delay: -6s; }
.bg-float span:nth-child(7) { --size: 0.6rem; top: 46%; left: 24%; --dur: 15s; animation-delay: -7s; }
.bg-float span:nth-child(8) { --size: 1.1rem; top: 90%; left: 66%; --dur: 20s; animation-delay: -10s; }

.bg-float--light span {
  --float-color: var(--white);
  opacity: 0.35;
}

.bg-float--green span {
  --float-color: var(--green-dark);
}

/* Wanderndes Punkteraster */
.bg-dots::before {
  position: absolute;
  inset: -2rem;
  background-image: radial-gradient(var(--blue) 1.5px, transparent 1.6px);
  background-size: 2rem 2rem;
  opacity: 0.09;
  content: "";
  pointer-events: none;
  animation: dots-pan 24s linear infinite;
}

/* Leiterbahnen in dunkler Variante für helle Abschnitte */
.trace-bg--dark .trace-lines path,
.trace-bg--dark .trace-pulses path {
  stroke: var(--blue);
}

.trace-bg--dark .trace-lines path {
  opacity: 0.14;
}

.trace-bg--dark .trace-pulses path {
  opacity: 0.45;
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(2.5rem, -1.5rem);
  }

  100% {
    transform: translate(-1.5rem, 2rem);
  }
}

@keyframes dots-pan {
  to {
    transform: translate(2rem, 2rem);
  }
}

@media (min-width: 640px) {
  .shell {
    width: min(100% - 4rem, 76rem);
  }

  .gallery-grid,
  .use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item:first-child {
    grid-column: span 2;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1fr 1fr auto;
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(12rem, 19vw, 18rem);
  }

  .gallery-item:first-child {
    grid-column: span 2;
  }

  .mobile-menu {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.65rem, 1.4vw, 1.5rem);
  }

  .desktop-nav a {
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  .desktop-nav a:not(.nav-contact):hover,
  .desktop-nav a.is-active:not(.nav-contact) {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
  }

  .desktop-nav .nav-contact {
    padding: var(--space-1) var(--space-2);
    background: var(--yellow);
    border: 2px solid var(--blue-dark);
  }

  .desktop-nav .nav-contact:hover {
    background: var(--yellow-light);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .section-intro {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .product-feature {
    grid-template-columns: 1.55fr 0.85fr;
  }

  .benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .about-grid,
  .freedom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .shell {
    width: min(100% - 2rem, 76rem);
  }

  .top-strip {
    font-size: 0.75rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 2.75rem;
    height: 2.75rem;
  }

  .hero-grid {
    gap: var(--space-2);
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-art {
    padding: var(--space-2);
  }

  .box-figure img {
    box-shadow: 0.5rem 0.5rem 0 var(--blue-dark);
  }

  .box-figure figcaption {
    margin-top: var(--space-2);
  }

  .hero-spark-one,
  .hero-spark-two {
    font-size: 2.5rem;
  }

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

  .section-intro {
    margin-bottom: var(--space-4);
  }

  .product-aside,
  .use-block {
    padding: var(--space-3);
  }

  .experiment-item {
    grid-template-columns: 2rem 1fr auto;
  }

  .experiment-symbol {
    font-size: 2rem;
  }

  .contact-section {
    padding-block: var(--space-5);
  }

  .contact-decoration {
    right: -3rem;
    bottom: -3rem;
    font-size: 12rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
