/*
 * Werkpult – Landingpage. Portiert aus dem freigegebenen Prototyp (.superpowers/landing-proto);
 * Werte und Bewegungen bewusst unverändert. Neu sind nur: lokale Schriften, Sprachwahl,
 * sichtbarer Fokus, Rechtsseiten und 404-Seite.
 */

/* Schriften lokal statt von Google: keine Übermittlung an Dritte (Datenschutzerklärung). */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/inter-latin-opsz-normal.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;
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/inter-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/poppins-latin-500-normal.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: Poppins;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/poppins-latin-ext-500-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/poppins-latin-600-normal.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: Poppins;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/poppins-latin-ext-600-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  /* Film (Nacht) */
  --night: #050515;
  --nfg: #eef0ff;
  --nsoft: #c9cbe8;
  --nmuted: #9a9cc4;
  /* Software, heller Modus – dieselben Werte wie in src/app/globals.css (:root) */
  --bg: #f7f7f8;
  --fg: #18181b;
  --card: #ffffff;
  --border: #e4e4e7;
  --muted: #63636e;
  --accent: #ececee;
  --primary: #18181b;
  --primary-hover: #27272a;
  --gut: clamp(16px, 6vw, 96px);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--night);
}
body {
  margin: 0;
  background: var(--night);
  color: var(--nfg);
  font:
    16px/1.55 Inter,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
p {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sichtbarer Fokus: hell über dem Film, dunkel auf dem hellen Teil */
.top,
.film {
  --ring: var(--nfg);
}
.top.solid,
.land,
.light {
  --ring: var(--fg);
}
:focus-visible {
  outline: 2px solid var(--ring, currentColor);
  outline-offset: 3px;
}

/* Kopfzeile: über dem Film hell auf dunkel, danach wie die Software */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px var(--gut);
  transition:
    background 0.4s,
    border-color 0.4s,
    color 0.4s;
  border-bottom: 1px solid transparent;
  color: var(--nfg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand img {
  height: 20px;
  width: auto;
}
.brand .lt {
  display: none;
}
.nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  opacity: 0.75;
}
.nav a:hover {
  opacity: 1;
}
.top .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn .short {
  display: none;
}
.top .btn,
.film .btn {
  background: var(--nfg);
  color: #08081c;
}
.top.solid {
  background: rgba(247, 247, 248, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
  color: var(--fg);
}
.top.solid .btn {
  background: var(--primary);
  color: #fff;
}
.top.solid .brand .dk {
  display: none;
}
.top.solid .brand .lt {
  display: inline;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.link span {
  transition: transform 0.2s;
}
.link:hover span {
  transform: translateX(3px);
}

/* Sprachwahl: kompakt DE · FR · IT · EN; auf dem Handy als Menü */
.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lang a {
  opacity: 0.62;
  padding: 4px 1px;
}
.lang a:hover,
.lang a[aria-current] {
  opacity: 1;
}
.lang a[aria-current] {
  font-weight: 600;
}
.lang span {
  opacity: 0.4;
}
.lang-m {
  display: none;
  position: relative;
}
.lang-m summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 8px;
}
.lang-m summary::-webkit-details-marker {
  display: none;
}
.lang-m summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang-m[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}
.lang-m .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px -24px rgba(24, 24, 27, 0.45);
  --ring: var(--fg);
}
.lang-m .menu a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.lang-m .menu a:hover {
  background: var(--accent);
}
.lang-m .menu a[aria-current] {
  font-weight: 600;
  background: var(--accent);
}

/* Film: Einfahrt in die Garage bis in den Bildschirm */
.film {
  position: relative;
  height: 210vh;
}
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.poster {
  position: absolute;
  inset: 0;
  background: url(/frames/poster.jpg) center/cover no-repeat;
  transition: opacity 0.6s;
}
.shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 21, 0.5) 0%,
    rgba(5, 5, 21, 0) 20%,
    rgba(5, 5, 21, 0) 60%,
    rgba(5, 5, 21, 0.7) 100%
  );
}
.dim {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}
.stage {
  position: absolute;
  inset: 0;
  perspective: 1100px;
}
.kf {
  position: absolute;
  will-change: transform, opacity;
  opacity: 0;
}
.scrim {
  left: 0;
  right: 0;
  bottom: 0;
  height: 62vh;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(5, 5, 21, 0.94) 0%,
    rgba(5, 5, 21, 0.78) 40%,
    rgba(5, 5, 21, 0) 100%
  );
}
.hero {
  position: absolute;
  left: var(--gut);
  right: var(--gut);
  bottom: clamp(64px, 10vh, 120px);
  transform-style: preserve-3d;
}
.kfi {
  will-change: transform, opacity;
  transform-origin: 0 50%;
}
.hero .claim .kfi {
  display: block;
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero .eyebrow {
  color: var(--nmuted);
}
/* Die Schlagwort-Zeile ist die H1, sieht aber aus wie die kleine Zeile im Prototyp. */
h1.eyebrow {
  font-family: inherit;
  line-height: inherit;
}
/* Der grosse Claim ist ein Absatz und sieht aus wie die frühere H1. */
.hero .claim {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-size: clamp(36px, 5vw, 80px);
}
.hero .claim span {
  display: block;
  white-space: nowrap;
}
.hero .lead {
  margin: 20px 0 28px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--nsoft);
  max-width: 560px;
}
.ctas {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.load {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--nfg);
  opacity: 0.5;
  transition:
    width 0.3s,
    opacity 0.6s;
  z-index: 5;
}

/* Bildschirm: zeigt die echte Software (heller Modus) und wird zum ganzen Fenster */
.screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  padding: 22px;
  box-sizing: border-box;
  transform-origin: 0 0;
  opacity: 0;
  will-change: transform, opacity;
  overflow: hidden;
  background: #111116;
}
.screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.glass {
  position: absolute;
  inset: 22px;
  pointer-events: none;
  background:
    linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 28%,
      rgba(255, 255, 255, 0) 46%
    ),
    radial-gradient(120% 120% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.28) 100%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
}

/* Landingpage nach dem Film: heller Modus wie die Software */
.land {
  position: relative;
  z-index: 2;
  background: var(--bg);
  color: var(--fg);
}
.intro {
  padding: clamp(90px, 15vh, 170px) var(--gut) clamp(20px, 4vh, 40px);
  text-align: center;
}
.intro .eyebrow {
  color: var(--muted);
}
.intro h2 {
  font-size: clamp(40px, 6vw, 96px);
}
.intro p {
  margin: 22px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
}
.feat {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(56px, 9vh, 100px) var(--gut);
  perspective: 1400px;
  overflow: hidden;
}
.feat.rev {
  grid-template-columns: 1.25fr 1fr;
}
.feat.rev .txt {
  order: 2;
}
.txt h2 {
  font-size: clamp(32px, 3.8vw, 58px);
  margin-bottom: 18px;
}
.txt p {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
}
.txt ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.txt li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.txt li::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--fg);
  flex: none;
  transform: translateY(-4px);
}
[data-m] {
  will-change: transform, opacity;
}
.win {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(24, 24, 27, 0.05),
    0 40px 80px -30px rgba(24, 24, 27, 0.28);
}
.win img {
  display: block;
  width: 100%;
  height: auto;
}
.stack {
  position: relative;
}
.paper {
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(24, 24, 27, 0.06),
    0 40px 80px -30px rgba(24, 24, 27, 0.32);
}
.paper img {
  display: block;
  width: 100%;
  height: auto;
}
.float {
  position: absolute;
  left: -6%;
  bottom: -18%;
  width: 62%;
}

.facts {
  padding: clamp(70px, 12vh, 130px) var(--gut) 30px;
  perspective: 1200px;
}
.facts h2 {
  font-size: clamp(30px, 3.8vw, 56px);
  text-align: center;
  margin-bottom: 52px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px 30px;
}
.tile b {
  display: block;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.tile span {
  color: var(--muted);
  font-size: 15px;
}

/* Häufige Fragen: Karten im hellen Stil der Software, auf- und zuklappbar ohne JavaScript */
.faq {
  padding: clamp(70px, 12vh, 130px) var(--gut) 10px;
  perspective: 1200px;
}
.faq h2 {
  font-size: clamp(30px, 3.8vw, 56px);
  text-align: center;
  margin-bottom: 44px;
}
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.qa {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.qa summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 14px;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}
.qa[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.qa .a {
  padding: 0 24px 22px;
  max-width: 740px;
  color: var(--muted);
}
.qa .a a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.cta {
  padding: clamp(100px, 16vh, 180px) var(--gut) 90px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(40px, 6.2vw, 100px);
}
.cta p {
  margin: 22px auto 34px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}
.cta .ctas {
  justify-content: center;
}
.cta .btn {
  background: var(--primary);
  color: #fff;
}
.cta .btn:hover {
  background: var(--primary-hover);
}
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: space-between;
  padding: 32px var(--gut);
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
footer nav {
  display: flex;
  gap: 22px;
}
footer a:hover,
footer a[aria-current] {
  color: var(--fg);
}

/* Rechtsseiten und 404: heller Modus wie die Software, Kopfzeile fest */
.light,
.light body {
  background: var(--bg);
  color: var(--fg);
}
.legal {
  max-width: 760px;
  margin: 0 auto;
  min-height: 70vh;
  padding: clamp(120px, 18vh, 170px) var(--gut) 90px;
}
.legal h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin-bottom: 30px;
}
.legal h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 42px 0 12px;
}
.legal p,
.legal li,
.legal dd {
  color: var(--muted);
}
.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 12px;
}
.legal ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.legal a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 32px;
  margin: 0;
}
.legal dt {
  font-weight: 600;
}
.legal dd {
  margin: 0;
}
.legal .updated {
  margin-top: 36px;
  font-size: 14px;
}
.todo {
  background: #fff1b8;
  color: #5c4300;
  border-radius: 4px;
  padding: 0 4px;
}
.nf {
  max-width: 980px;
  margin: 0 auto;
  min-height: 100vh;
  padding: clamp(48px, 10vh, 120px) var(--gut) 80px;
}
.nf .brand {
  margin-bottom: clamp(48px, 10vh, 96px);
}
.nf h1 {
  font-size: clamp(64px, 12vw, 140px);
  margin-bottom: 40px;
}
.nf .langs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
}
.nf h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.nf p {
  color: var(--muted);
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .nav,
  .top .right .link {
    display: none;
  }
  .feat,
  .feat.rev {
    grid-template-columns: 1fr;
  }
  .feat.rev .txt {
    order: 0;
  }
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
  .hero .claim span {
    white-space: normal;
  }
  .float {
    left: 4%;
    bottom: -24%;
    width: 80%;
  }
}
@media (max-width: 560px) {
  .tiles {
    grid-template-columns: 1fr;
  }
  /* Platz für die Sprachwahl: Menü statt Liste, kurzer Knopftext */
  .top {
    gap: 16px;
  }
  .top .right {
    gap: 12px;
  }
  .lang {
    display: none;
  }
  .lang-m {
    display: block;
  }
  .btn .full {
    display: none;
  }
  .btn .short {
    display: inline;
  }
  .legal dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .legal dd + dt {
    margin-top: 14px;
  }
  .nf .langs {
    grid-template-columns: 1fr;
  }
  .qa summary {
    padding: 18px 20px;
    font-size: 17px;
  }
  .qa .a {
    padding: 0 20px 20px;
  }
}
@media (max-width: 700px) {
  .feat,
  .feat.rev {
    gap: 36px;
    padding: 56px var(--gut);
  }
  .win {
    border-radius: 10px;
  }
  .stack {
    margin-bottom: 60px;
  }
  .float {
    left: auto;
    right: -3%;
    bottom: -20%;
    width: 72%;
  }
  .intro {
    padding-top: 80px;
  }
  .txt h2 {
    font-size: clamp(30px, 8.4vw, 40px);
  }
  .txt p {
    font-size: 17px;
  }
}
@media (max-aspect-ratio: 6/5) {
  .hero {
    bottom: clamp(40px, 7vh, 80px);
  }
}

/*
 * Handy und Touch (LITE, gleiche Abfrage wie film.js): gleiches Aussehen, billigere Effekte.
 * Glas nur mit dem Lichtverlauf, Ebenen für Abschnitte setzt film.js nur während der Bewegung,
 * Kopfzeile ohne Weichzeichner (backdrop-filter), dafür fast deckend.
 */
@media (max-width: 900px), (pointer: coarse) {
  .glass {
    background: linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 28%,
      rgba(255, 255, 255, 0) 46%
    );
    box-shadow: none;
  }
  [data-m] {
    will-change: auto;
  }
  .top.solid {
    background: rgba(247, 247, 248, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Zahnräder neben dem Schraubenschlüssel, solange er auf einem Knopf oder Link steht */
.gears {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.4));
  will-change: transform;
}
.gears svg {
  display: block;
  transform: scale(0.6);
  transform-origin: 20px 15px;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1.4);
}
.gears.on {
  opacity: 1;
}
.gears.on svg {
  transform: scale(1);
}
.gears .g1 {
  animation: spin 2.4s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.gears .g2 {
  animation: spin 1.68s linear infinite reverse;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (pointer: coarse) {
  .gears {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gears .g1,
  .gears .g2 {
    animation: none;
  }
}

/* Mauszeiger als Schraubenschlüssel (nur mit Maus); über Links und Knöpfen setzt er an */
@media (pointer: fine) {
  html,
  body {
    cursor:
      url(/img/wrench.svg) 4 4,
      auto;
  }
  a,
  button,
  [role="button"],
  summary,
  label {
    cursor:
      url(/img/wrench-turn.svg) 2 9,
      pointer;
  }
}
