@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #080808;
  --fg: #f2f2f0;
  --muted: #7d7d7a;
  --line: #222221;
  --accent: #8fd0ff;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, Menlo, monospace;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  color-scheme: dark;
}

@view-transition {
  navigation: auto;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: var(--accent);
  color: #000;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Pfeil als Maske, damit er die Textfarbe übernimmt */
.arr {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M3.5 2H10v6.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M3.5 2H10v6.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.5s var(--ease);
}

/* Scroll-Fortschritt */

.progress {
  display: none;
}

@supports (animation-timeline: scroll()) {
  .progress {
    display: block;
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--accent);
    transform-origin: 0 50%;
    animation: grow linear both;
    animation-timeline: scroll(root);
    z-index: 10;
  }
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Kopfzeile */

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 30px 0;
  animation: fade 1s var(--ease) both;
}

.top .home {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top nav {
  display: flex;
  align-items: baseline;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.top nav a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.top nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease);
}

.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--fg);
}

.top nav a:hover::after,
.top nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* Zeilen, die von unten ins Bild fahren */

.line {
  display: block;
  overflow: hidden;
  padding-top: 0.06em;
}

.line > span {
  display: inline-block;
  animation: rise 1.2s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Startseite */

.home-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.home-page main {
  flex: 1;
}

.hero {
  padding: 11vh 0 6vh;
}

.hero .label {
  display: block;
  margin-bottom: 28px;
  animation: fade 1.2s var(--ease) 0.5s both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(72px, 16vw, 184px);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.06em;
}

.hero h1 i {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.04em;
  background: var(--accent);
  animation: pop 0.7s var(--ease) 1s both;
}

.hero p {
  margin: 36px 0 0;
  max-width: 30ch;
  font-size: 19px;
  color: var(--muted);
  animation: fade-up 1.2s var(--ease) 0.6s both;
}

.index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  animation: fade-up 1.2s var(--ease) 0.75s both;
}

.index a {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s;
}

.index a::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.7s var(--ease);
}

.index .title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: transform 0.6s var(--ease), color 0.3s;
}

.index .path {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.3s;
}

.index a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.index a:hover .title {
  transform: translateX(14px);
}

.index a:hover .path {
  color: var(--accent);
}

.index a:hover .arr {
  transform: translate(3px, -3px);
}

.index:hover a:not(:hover) {
  opacity: 0.35;
}

/* Laufband */

.ticker {
  overflow: hidden;
  margin-top: 9vh;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  animation: fade 1.5s var(--ease) 1s both;
}

.ticker div {
  display: inline-flex;
  animation: slide 48s linear infinite;
}

.ticker:hover div {
  animation-play-state: paused;
}

.ticker span {
  padding-right: 56px;
}

.ticker b {
  font-weight: 400;
  color: var(--accent);
}

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

/* Unterseiten */

.page-head {
  padding: 72px 0 64px;
}

.page-head .label {
  display: block;
  animation: fade 1.2s var(--ease) 0.3s both;
}

.page-head h1 {
  margin: 14px 0 0;
  font-size: clamp(46px, 10vw, 116px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.page-head p {
  margin: 26px 0 0;
  max-width: 42ch;
  font-size: 19px;
  color: var(--muted);
  animation: fade-up 1.2s var(--ease) 0.35s both;
}

/* Einblenden beim Scrollen (nur mit JS aktiv) */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Moped-Ranking */

.ranking {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 380px) 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.entry .pos {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 6px;
}

.shot {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
}

.js [data-reveal] .shot {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease);
}

.js [data-reveal] .shot img {
  transform: scale(1.2);
}

.js [data-reveal].in .shot {
  clip-path: inset(0);
}

.js [data-reveal].in .shot img {
  transform: none;
}

.entry .shot:hover img,
.js [data-reveal].in .shot:hover img {
  transform: scale(1.05);
}

.entry h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.score {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

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

.bar {
  width: min(240px, 100%);
  height: 1px;
  margin-top: 18px;
  background: var(--line);
}

.bar i {
  display: block;
  height: 3px;
  margin-top: -1px;
  background: var(--accent);
  transform: scaleX(var(--v));
  transform-origin: 0 50%;
}

.js [data-reveal] .bar i {
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) 0.3s;
}

.js [data-reveal].in .bar i {
  transform: scaleX(var(--v));
}

.note {
  margin: 20px 0 0;
  max-width: 36ch;
  color: var(--muted);
}

/* Platz 1 bekommt die große Bühne */

.entry.first {
  grid-template-columns: 64px 1fr;
  row-gap: 28px;
  border-top: 0;
  padding-top: 0;
}

.entry.first .shot {
  grid-column: 1 / -1;
  grid-row: 1;
  aspect-ratio: 16 / 9;
}

.entry.first .pos,
.entry.first .body {
  grid-row: 2;
}

.entry.first .body {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 32px;
  align-items: end;
}

.entry.first h2 {
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.entry.first .score {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
}

.entry.first .score small {
  font-size: 0.4em;
}

.entry.first .note {
  grid-column: 1 / -1;
}

/* Letzter Platz */

.entry.last .shot img {
  filter: grayscale(1) contrast(0.9) brightness(0.75);
}

.entry.last .shot:hover img {
  filter: none;
}

.entry.last h2 {
  position: relative;
  display: inline-block;
  color: var(--muted);
}

.entry.last h2::after {
  content: "";
  position: absolute;
  inset: 52% -6px auto -6px;
  height: 2px;
  background: var(--fg);
  transform-origin: 0 50%;
}

.js [data-reveal].last h2::after {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease) 0.7s;
}

.js [data-reveal].last.in h2::after {
  transform: scaleX(1);
}

.entry.last .score {
  color: var(--fg);
}

/* Links */

.group {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 0 0 72px;
}

.group h2 {
  position: sticky;
  top: 28px;
  align-self: start;
  margin: 0;
  padding-top: 30px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.group h2 em {
  font-style: normal;
  color: var(--accent);
  margin-right: 10px;
}

.group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.group li:nth-child(2) { --d: 0.08s; }
.group li:nth-child(3) { --d: 0.16s; }

.group a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s;
}

.group a::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.7s var(--ease);
}

.group .name {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  transition: transform 0.6s var(--ease);
}

.group .host {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.3s;
}

.group .desc {
  grid-column: 1;
  margin-top: 8px;
  max-width: 50ch;
  color: var(--muted);
  transition: transform 0.6s var(--ease) 0.03s;
}

.group a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.group a:hover .name,
.group a:hover .desc {
  transform: translateX(12px);
}

.group a:hover .host {
  color: var(--accent);
}

.group a:hover .arr {
  transform: translate(3px, -3px);
}

.groups:hover a:not(:hover) {
  opacity: 0.4;
}

/* Fußzeile */

.foot {
  display: flex;
  justify-content: space-between;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.home-page .foot {
  border-top: 0;
}

.foot a {
  transition: color 0.3s;
}

.foot a:hover {
  color: var(--accent);
}

@media (max-width: 700px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 14vh 0 8vh;
  }

  .index a {
    grid-template-columns: 36px 1fr auto;
  }

  .index .path span {
    display: none;
  }

  .entry {
    grid-template-columns: 36px 1fr;
    gap: 18px;
  }

  .entry .shot,
  .entry .body {
    grid-column: 2;
  }

  .entry.first {
    grid-template-columns: 36px 1fr;
  }

  .entry.first .shot {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .entry.first .body {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .group {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 48px;
  }

  .group h2 {
    position: static;
    padding: 0 0 16px;
  }

  .group .host span {
    display: none;
  }
}

@media (hover: none) {
  .index:hover a:not(:hover),
  .groups:hover a:not(:hover) {
    opacity: 1;
  }
}


/* Spiele-Dialog */

.group li:nth-child(4) { --d: 0.06s; }
.group li:nth-child(5) { --d: 0.12s; }
.group li:nth-child(6) { --d: 0.18s; }

.player {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
}

.player[open] {
  display: flex;
  flex-direction: column;
  animation: fade-up 0.6s var(--ease) both;
}

.player::backdrop {
  background: #000;
}

.player-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}

.player-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.player-bar button {
  margin-left: 24px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}

.player-bar button:hover {
  color: var(--accent);
}

.player iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #000;
}

/* Suche */

[hidden] {
  display: none !important;
}

.search {
  display: none;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
  animation: fade-up 1.2s var(--ease) 0.45s both;
}

.js .search {
  display: flex;
}

.search:focus-within {
  border-color: var(--accent);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 19px;
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.empty {
  margin: 0;
  padding: 8px 0 96px;
  color: var(--muted);
}

.keys {
  display: block;
  margin-top: 22px;
  animation: fade 1.2s var(--ease) 0.5s both;
}

.keys kbd {
  font: inherit;
  color: var(--fg);
  padding: 2px 6px;
  border: 1px solid var(--line);
}

.player-bar .player-panic {
  color: var(--accent);
}

/* Garage: Zeitstrahl zum Ziehen */

.garage-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 48px;
  padding: 20px 0 32px;
}

.garage-head .label:first-child {
  grid-column: 1 / -1;
}

.garage-head h1 {
  font-size: clamp(44px, 7vw, 88px);
}

.garage-side {
  max-width: 38ch;
  padding-bottom: 6px;
}

.garage-head .garage-side p {
  margin: 0;
  font-size: 17px;
  animation-delay: 0.35s;
}

/* backwards statt both: sonst hält die Animation die Deckkraft fest und .gone greift nicht */
.garage-head .tl-hint {
  display: block;
  margin-top: 16px;
  transition: opacity 0.6s;
  animation: fade 1.2s var(--ease) 0.9s backwards;
}

.garage-head .tl-hint.gone {
  opacity: 0;
}

/* Bildhöhe so, dass Kopf, Zeitstrahl und Anzeige auf einen Bildschirm passen */
.tl {
  --h: clamp(260px, calc(100vh - 480px), 540px);
  --gap: 96px;
}

.tl-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px max(28px, calc((100% - 1040px) / 2 + 28px)) 12px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.tl-scroll::-webkit-scrollbar {
  display: none;
}

.tl-scroll:focus-visible {
  outline-offset: -1px;
}

.tl-scroll.dragging {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

.tl-track {
  display: flex;
  width: max-content;
  -webkit-user-select: none;
  user-select: none;
}

.stop {
  flex: none;
  display: flex;
  flex-direction: column;
  margin-right: var(--gap);
}

/* Achse: jede Station zeichnet ihr Stück Linie bis zur nächsten */

.rail {
  position: relative;
  height: 60px;
  margin-right: calc(var(--gap) * -1);
  border-top: 1px solid var(--line);
}

.rail::after {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.9s var(--ease);
}

.stop.passed .rail::after {
  transform: scaleX(1);
}

.rail .dot {
  position: absolute;
  top: -5px;
  left: 0;
  z-index: 1;
  width: 9px;
  height: 9px;
  background: var(--muted);
  transition: background 0.4s, transform 0.6s var(--ease);
}

.stop.passed .dot {
  background: var(--fg);
}

.stop.active .dot {
  background: var(--accent);
  transform: scale(1.7);
}

.rail time {
  position: absolute;
  top: 18px;
  left: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.4s;
}

.stop.active .rail time {
  color: var(--fg);
}

.stop-body {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.pics {
  display: flex;
  gap: 10px;
  height: var(--h);
}

.pic {
  position: relative;
  flex: none;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #111;
}

/* Bild ist breiter als der Rahmen und wandert beim Scrollen leicht mit */
.pic img {
  position: absolute;
  top: 0;
  left: -7%;
  width: 114%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(calc(var(--p, 0) * 5%), 0, 0);
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.pic figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(8, 8, 8, 0.82);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info {
  width: 300px;
}

.stop-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.info h2 {
  margin: 10px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.info p {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.info dt {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.info dd {
  margin: 0;
}

.info dd small {
  color: var(--muted);
  font-size: inherit;
}

/* Pause und Ende */

.pause .rail {
  border-top-style: dashed;
}

.pause-text,
.end-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: var(--h);
}

.pause-text {
  padding: 0 24px;
}

.pause-text b {
  font-size: clamp(72px, 12vh, 132px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px #3a3a38;
}

.pause-text span,
.end-text span {
  margin-top: 18px;
  color: var(--muted);
}

.end {
  width: min(78vw, 620px);
  margin-right: 0;
}

.end .rail {
  margin-right: 0;
}

.end-text b {
  font-size: clamp(40px, 7vh, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.end-text b i {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.05em;
  background: var(--accent);
}

/* Einblenden, sobald eine Station ins Bild fährt */

.js .stop[data-reveal] {
  opacity: 1;
  transform: none;
}

.js .stop[data-reveal] .pic {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.3s var(--ease);
}

.js .stop[data-reveal] .pic:nth-child(2) { transition-delay: 0.12s; }
.js .stop[data-reveal] .pic:nth-child(3) { transition-delay: 0.24s; }

.js .stop[data-reveal].in .pic {
  clip-path: inset(0);
}

.js .stop[data-reveal] .info > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .stop[data-reveal] .info > :nth-child(1) { transition-delay: 0.2s; }
.js .stop[data-reveal] .info > :nth-child(2) { transition-delay: 0.27s; }
.js .stop[data-reveal] .info > :nth-child(3) { transition-delay: 0.34s; }
.js .stop[data-reveal] .info > :nth-child(4) { transition-delay: 0.41s; }

.js .stop[data-reveal].in .info > * {
  opacity: 1;
  transform: none;
}

/* Anzeige unter dem Zeitstrahl */

.hud {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 36px;
  padding: 28px 0 64px;
  animation: fade-up 1.2s var(--ease) 0.6s both;
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-item b {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hud-item small {
  font-size: 14px;
  color: var(--muted);
}

.hud-cost b {
  color: var(--accent);
}

.hud-cost {
  min-width: 96px;
}

.hud-bar {
  height: 1px;
  background: var(--line);
}

.hud-bar i {
  display: block;
  height: 3px;
  margin-top: -1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.hud-nav {
  display: flex;
  gap: 8px;
}

.hud-nav button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.hud-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hud-nav button:disabled {
  color: #3a3a38;
  border-color: var(--line);
  cursor: default;
}

.hud-next .arr {
  transform: rotate(45deg);
}

.hud-prev .arr {
  transform: rotate(225deg);
}

@media (max-width: 700px) {
  .top nav {
    gap: 16px;
  }

  .garage-head {
    grid-template-columns: 1fr;
    padding: 28px 0 28px;
  }

  .garage-side {
    margin-top: 18px;
    padding-bottom: 0;
  }

  .tl {
    --h: clamp(240px, 40vh, 340px);
    --gap: 40px;
  }

  .tl-scroll {
    padding-left: 20px;
    padding-right: 20px;
  }

  .stop-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .info {
    width: min(78vw, 320px);
  }

  .pause-text {
    padding: 0;
  }

  .hud {
    grid-template-columns: 1fr auto auto;
    gap: 20px 24px;
    padding: 24px 0 48px;
  }

  .hud-bar {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* Favoriten und zuletzt gespielt */

.pinned h2 em {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.pinned li.fresh {
  animation: fade-up 0.9s var(--ease) both;
}

.pinned li.fresh:nth-child(2) { animation-delay: 0.06s; }
.pinned li.fresh:nth-child(3) { animation-delay: 0.12s; }
.pinned li.fresh:nth-child(4) { animation-delay: 0.18s; }

.group li {
  position: relative;
}

/* Merken-Knopf: leeres Quadrat, gemerkt ist es blau gefüllt */
.fav {
  position: absolute;
  right: 0;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 6px 10px;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, color 0.3s;
}

.fav::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transition: background 0.3s, transform 0.5s var(--ease);
}

.fav::after {
  content: "Merken";
}

.fav[aria-pressed="true"] {
  color: var(--accent);
  opacity: 1;
}

.fav[aria-pressed="true"]::before {
  background: currentColor;
  transform: rotate(90deg);
}

.fav[aria-pressed="true"]::after {
  content: "Gemerkt";
}

.group li:hover .fav,
.fav:focus-visible {
  opacity: 1;
}

.fav:hover {
  color: var(--fg);
}

.fav:focus-visible {
  outline-offset: 2px;
}

/* über dem Merken-Knopf soll das eigene Spiel nicht mit abdunkeln */
.groups li:hover a:not(:hover) {
  opacity: 1;
}

.dice {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.3s;
}

.dice:hover {
  color: var(--accent);
}

@media (hover: none) {
  .fav {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .fav {
    opacity: 1;
    bottom: 20px;
    padding: 8px 0 8px 14px;
  }

  .fav::after,
  .fav[aria-pressed="true"]::after {
    content: none;
  }

  .fav::before {
    width: 9px;
    height: 9px;
  }
}

.recent-clear {
  display: block;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}

.recent-clear:hover {
  color: var(--accent);
}

/* Garage: Foto in groß */

.js .pic {
  cursor: zoom-in;
}

.tl-scroll.dragging .pic {
  cursor: grabbing;
}

.pic:focus-visible {
  outline-offset: -1px;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 8, 8, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--fg);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  animation: fade 0.5s var(--ease) both;
}

.lightbox::backdrop {
  background: none;
}

.lb-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 24px 28px;
  cursor: zoom-out;
  touch-action: pinch-zoom;
}

.lb-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  cursor: default;
  -webkit-user-drag: none;
  user-select: none;
  animation: lb-in 0.7s var(--ease) both;
}

@keyframes lb-in {
  from { opacity: 0; transform: translateX(calc(var(--dir, 0) * 48px)) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.lb-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--line);
}

.lb-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}

.lb-cap b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

@media (max-width: 700px) {
  .lb-stage {
    padding: 16px 20px;
  }

  .lb-foot {
    padding: 14px 20px 20px;
  }

  .lb-cap b {
    flex-basis: 100%;
    order: 1;
    font-size: 18px;
  }
}

/* Garage: Vorher/Nachher und Kostenaufteilung */

@property --x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.recap {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  align-items: center;
  gap: 72px;
  padding: 72px 0 104px;
  border-top: 1px solid var(--line);
}

.recap h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.recap p {
  margin: 18px 0 0;
  max-width: 40ch;
  color: var(--muted);
}

.recap-sub {
  display: block;
  margin-top: 48px;
}

.split {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  max-width: 440px;
}

.split li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0 16px;
  padding-top: 14px;
}

.split b {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.split .bar {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 10px;
}

.ba {
  --x: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #111;
  transition: --x 1.6s var(--ease) 0.35s;
}

/* fährt beim Einblenden einmal von ganz rechts in die Mitte */
.js [data-reveal]:not(.in) .ba {
  --x: 100%;
}

.ba.live {
  transition: none;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

/* das Nachher-Foto ist weiter weg aufgenommen, deshalb aufs Moped gezoomt */
.ba-after {
  transform: scale(1.9);
  transform-origin: 46% 82%;
}

.ba-before {
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}

.ba-tag {
  position: absolute;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(8, 8, 8, 0.82);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ba-tag-l {
  left: 10px;
}

.ba-tag-r {
  right: 10px;
}

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 1px;
  background: var(--accent);
}

.ba-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  background: var(--accent);
  transition: transform 0.5s var(--ease);
}

.ba:hover .ba-line::after {
  transform: scale(1.35) rotate(45deg);
}

.ba input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.ba input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2px;
  height: 100%;
}

.ba input::-moz-range-thumb {
  width: 2px;
  border: 0;
}

.ba:has(input:focus-visible) {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

@media (max-width: 700px) {
  .recap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 72px;
  }

  .ba {
    order: -1;
  }
}

/* Vault Run */

.game {
  margin-bottom: 7vh;
  animation: fade-up 1.2s var(--ease) 0.7s both;
}

.game-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.game-score,
.game-best {
  color: var(--fg);
}

.game-stage {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.game canvas {
  display: block;
  width: 100%;
  height: 230px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.game-msg {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  margin: 0;
  color: var(--fg);
  pointer-events: none;
}

.run-page .page-head {
  padding-bottom: 48px;
}

.run-page .game canvas {
  height: 300px;
}

/* im Spiele-Player eingebettet: nur das Spiel, mittig */
.embedded .top,
.embedded .foot,
.embedded .page-head {
  display: none;
}

.embedded .run-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.embedded .game {
  margin: 0;
}

/* Suche über alles (Strg+K) */

.cmd {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: min(560px, calc(100vh - 120px));
  margin: 12vh auto auto;
  padding: 0;
  border: 1px solid #2e2e2c;
  background: #0c0c0c;
  color: var(--fg);
  overflow: hidden;
}

.cmd[open] {
  display: flex;
  flex-direction: column;
  animation: cmd-in 0.45s var(--ease) both;
}

.cmd::backdrop {
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade 0.3s both;
}

@keyframes cmd-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.cmd kbd,
.cmd-open kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.cmd-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.cmd-head input {
  flex: 1;
  min-width: 0;
  padding: 19px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 19px;
}

.cmd-head input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.cmd-list {
  flex: 1;
  min-height: 0;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2e2e2c transparent;
}

.cmd-list li {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 12px;
  padding: 11px 20px;
  cursor: pointer;
}

.cmd-list li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}

.cmd-list li[aria-selected="true"] {
  background: #151514;
}

.cmd-list li[aria-selected="true"]::before {
  transform: scaleY(1);
}

.cmd-kind {
  font-size: 11px;
}

.cmd-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cmd-desc {
  grid-column: 2;
  overflow: hidden;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cmd-list .arr {
  grid-column: 3;
  grid-row: 1;
  color: var(--muted);
}

.cmd-list li[aria-selected="true"] .arr {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.cmd-list li[aria-selected="true"] .cmd-kind {
  color: var(--accent);
}

.cmd-empty {
  margin: 0;
  padding: 22px 20px;
  color: var(--muted);
}

.cmd-foot {
  display: flex;
  gap: 24px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.cmd-foot kbd {
  margin-right: 4px;
}

.cmd-open {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.3s;
}

.cmd-open:hover {
  color: var(--fg);
}

.cmd-open kbd {
  margin-left: 3px;
}

.cmd-open-nav kbd:first-of-type {
  margin-left: 8px;
}

.cmd-open-hero {
  display: block;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fade 1.2s var(--ease) 0.9s both;
}

.cmd-open-hero kbd {
  margin: 0 5px 0 0;
  color: var(--fg);
}

.cmd-open-hero kbd:last-of-type {
  margin-right: 10px;
}

.cmd-open-foot:hover {
  color: var(--accent);
}

/* ohne Tastatur bringt der Strg+K-Hinweis nichts, da reicht der Knopf in der Fußzeile */
@media (max-width: 860px), (hover: none) {
  .cmd-open-nav,
  .hero .cmd-open-hero {
    display: none;
  }

  .cmd-foot {
    display: none;
  }
}

@media (max-width: 700px) {
  .cmd {
    margin-top: 8vh;
    max-height: calc(100vh - 16vh);
    max-height: calc(100dvh - 16vh);
  }

  .cmd-list li {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    padding: 11px 16px;
  }

  .cmd-head {
    padding: 0 16px;
  }
}

/* Easter Egg: Drehzahlmesser */

.revving > :not(.rev) {
  transform: translate(var(--sx, 0), var(--sy, 0));
}

.rev {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  width: min(380px, calc(100vw - 40px));
  margin-left: calc(min(380px, 100vw - 40px) / -2);
  padding: 16px 20px 20px;
  border: 1px solid #2e2e2c;
  background: #0c0c0c;
  animation: fade-up 0.5s var(--ease) both;
  transition: opacity 0.6s, transform 0.6s var(--ease);
}

.rev.out {
  animation: none;
  opacity: 0;
  transform: translateY(16px);
}

.rev b {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

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

.rev .bar {
  width: 100%;
}

/* Socials */

.socials {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.socials a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.socials a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease);
}

.socials a:hover {
  color: var(--fg);
}

.socials a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.hero {
  position: relative;
}

/* gleiche Höhe wie das Label "bene.email" links */
.socials-top {
  position: absolute;
  top: 11vh;
  right: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: fade 1.2s var(--ease) 0.5s both;
}

.foot-mid {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

@media (max-width: 700px) {
  .socials-top {
    top: 14vh;
    gap: 16px;
  }

  /* in der Fußzeile rutschen Suche und Socials in eine eigene Zeile */
  .foot {
    flex-wrap: wrap;
    row-gap: 18px;
  }

  .foot-mid {
    order: 3;
    width: 100%;
  }
}

/* KI: Übersicht */

.hub {
  margin-bottom: 96px;
}

/* KI: Prompt-Sammlung */

.prompt {
  border-bottom: 1px solid var(--line);
  interpolate-size: allow-keywords;
}

.prompt summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
  transition: opacity 0.4s;
}

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

.prompt summary::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.7s var(--ease);
}

.prompt summary:hover::after,
.prompt[open] summary::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.prompt summary:hover .name,
.prompt summary:hover .desc {
  transform: translateX(12px);
}

.prompt summary:hover .host,
.prompt[open] .host {
  color: var(--accent);
}

/* Text kommt aus dem CSS, damit die Suche ihn nicht mitliest */
.prompt .host span::after {
  content: "Anzeigen";
}

.prompt[open] .host span::after {
  content: "Zuklappen";
}

.prompt[open] .arr {
  transform: rotate(90deg);
}

.groups:hover .prompt summary:not(:hover) {
  opacity: 0.4;
}

.groups .prompt[open] summary:not(:hover) {
  opacity: 1;
}

.prompt::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.7s var(--ease), content-visibility 0.7s allow-discrete;
}

.prompt[open]::details-content {
  height: auto;
}

.prompt-body {
  padding: 28px 0 30px;
}

.prompt pre {
  max-width: 68ch;
  margin: 0;
  padding: 2px 0 2px 22px;
  border-left: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prompt pre b {
  font-weight: 400;
  color: var(--accent);
}

/* Kopieren-Knopf: wie der Merken-Knopf bei den Spielen */
.copy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0 22px;
  padding: 6px 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}

.copy::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transition: background 0.3s, transform 0.5s var(--ease);
}

.copy::after {
  content: "Kopieren";
}

.copy:hover {
  color: var(--fg);
}

.copy.done {
  color: var(--accent);
}

.copy.done::before {
  background: currentColor;
  transform: rotate(90deg);
}

.copy.done::after {
  content: "Kopiert";
}

.copy.failed::after {
  content: "Ging nicht, bitte markieren";
}

.copy:focus-visible {
  outline-offset: 2px;
}

/* KI: Tool-Rating */

.tools {
  list-style: none;
  margin: 0 0 72px;
  padding: 0;
}

.tool {
  display: grid;
  grid-template-columns: 64px 1fr 250px;
  gap: 32px;
  align-items: start;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.tool .pos {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 2px;
}

.tool h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.tool h2 a {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  transition: color 0.3s;
}

.tool h2 .arr {
  font-size: 0.55em;
  color: var(--muted);
  transition: transform 0.5s var(--ease), color 0.3s;
}

.tool h2 a:hover,
.tool h2 a:hover .arr {
  color: var(--accent);
}

.tool h2 a:hover .arr {
  transform: translate(3px, -3px);
}

.tool .note {
  margin-top: 14px;
  max-width: 46ch;
}

.tool .score {
  margin: 0;
}

.tool .price {
  display: block;
  margin: 18px 0 0;
  line-height: 1.8;
}

.tool .price b {
  font-weight: 400;
  color: var(--fg);
}

@media (max-width: 700px) {
  /* fünf Links: enger setzen, auf ganz schmalen Handys rutscht die Navigation in die zweite Zeile */
  .top {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .top nav {
    gap: 14px;
    font-size: 12px;
  }

  .prompt .host span {
    display: none;
  }

  .tool {
    grid-template-columns: 36px 1fr;
    gap: 18px;
  }

  .tool .facts {
    grid-column: 2;
  }
}

@media (hover: none) {
  .groups:hover .prompt summary:not(:hover) {
    opacity: 1;
  }
}

/* KI: Making-of */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 32px;
  margin-bottom: 96px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stats .label {
  display: block;
  margin-top: 14px;
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.turn {
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line);
}

.turn blockquote {
  max-width: 30em;
  margin: 0;
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.turn h3 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.turn p {
  max-width: 54ch;
  margin: 10px 0 0;
  color: var(--muted);
}

/* Antwort der KI: blaues Quadrat davor */
.turn .reply {
  position: relative;
  margin-top: 18px;
  padding-left: 21px;
  color: var(--fg);
}

.turn .reply::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.js [data-reveal] .reply::before {
  transform: scale(0);
}

.js [data-reveal].in .reply::before {
  animation: pop 0.7s var(--ease) 0.5s both;
}

.turn .ver {
  display: block;
  margin: 14px 0 0 21px;
  color: var(--accent);
}

.duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.duel p {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.duel .label {
  display: block;
  margin-bottom: 10px;
}

.duel .won {
  font-weight: 600;
  letter-spacing: -0.015em;
}

.duel .won .label {
  font-weight: 400;
  color: var(--accent);
}

/* der Vorschlag der KI wird beim Einblenden durchgestrichen, wie die Beta im Ranking */
.duel .lost {
  color: var(--muted);
}

.duel .lost span:last-child {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--fg);
}

.js [data-reveal].duel .lost span:last-child {
  text-decoration-color: transparent;
  transition: text-decoration-color 0.9s var(--ease) 0.7s;
}

.js [data-reveal].duel.in .lost span:last-child {
  text-decoration-color: var(--fg);
}

.duel.draw .lost span:last-child {
  text-decoration: none;
}

.final {
  grid-column: 2;
  margin: 4px 0 0;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.final b {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent);
}

@media (max-width: 700px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 64px;
  }

  .duel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .final {
    grid-column: 1;
    margin-top: 24px;
  }
}

/* Unterlängen (g, p) in den großen Überschriften nicht abschneiden */
.page-head .line {
  margin-bottom: -0.14em;
  padding-bottom: 0.14em;
}

/* Schule: Tools */

.pane {
  /* sonst drückt die breite Stundenplan-Tabelle die ganze Seite auf */
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.now-state {
  display: block;
  color: var(--fg);
}

.now-time {
  margin: 16px 0 0;
  font-family: var(--mono);
  line-height: 1;
}

.now-time b {
  font-size: clamp(54px, 11vw, 124px);
  font-weight: 400;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.now-time small {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.now .bar {
  width: 100%;
  margin-top: 26px;
}

.now-next {
  max-width: none;
}

.fine {
  display: block;
  margin: 18px 0 0;
}

/* Zeilen mit Name links und Wert rechts: freie Tage, Punktebereiche, Schnitt */
.group .rows {
  margin-top: 44px;
}

.rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s;
}

.rows b {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.rows span,
.rows em {
  font-family: var(--mono);
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

.rows em {
  min-width: 12ch;
  text-align: right;
  color: var(--fg);
}

.rows .on b,
.rows .on em {
  color: var(--accent);
}

.ranges li,
.avg-next li {
  grid-template-columns: 2ch minmax(0, 1fr) auto;
}

/* Eingabefelder */

.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 9ch;
}

.field.wide {
  flex: 1;
  width: auto;
  max-width: 320px;
}

.field input {
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 24px;
  transition: border-color 0.3s;
}

.field input:focus {
  border-color: var(--accent);
}

.field input::placeholder {
  color: #3a3a38;
  opacity: 1;
}

.calc-key {
  margin-top: 40px;
}

.calc-key .field {
  width: 7ch;
}

.calc-key .field input {
  font-size: 17px;
}

.avg-box {
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.grade {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin: 36px 0 0;
}

.grade b {
  font-family: var(--mono);
  font-size: clamp(64px, 12vw, 124px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.grade > span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.grade small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}

/* Stundenplan */

.plan-intro {
  max-width: 54ch;
  margin: 0 0 30px;
}

.plan-scroll {
  overflow-x: auto;
}

.plan {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.plan th {
  padding: 13px 16px 13px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: pre;
  color: var(--muted);
}

.plan tbody th,
.plan td {
  border-top: 1px solid var(--line);
}

.plan td {
  padding: 0 12px 0 0;
}

.plan td input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: box-shadow 0.3s;
}

.plan td input:focus {
  box-shadow: inset 0 -1px var(--accent);
}

.plan td input::placeholder {
  color: #3a3a38;
  opacity: 1;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  margin-top: 24px;
  padding-bottom: 72px;
}

.plan-note {
  color: var(--accent);
}

.text-btn {
  padding: 6px 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}

.text-btn:hover {
  color: var(--accent);
}

.text-btn:focus-visible {
  outline-offset: 2px;
}

.plan-text {
  margin-top: -44px;
  padding-bottom: 72px;
}

.plan-text textarea {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.3s;
}

.plan-text textarea:focus {
  border-color: var(--accent);
}

.plan-text .text-btn {
  margin-top: 14px;
  color: var(--accent);
}

@media (max-width: 700px) {
  .rows li {
    gap: 14px;
  }

  .until li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .until span {
    grid-column: 1;
    grid-row: 2;
  }

  .until em {
    grid-row: 1 / 3;
    align-self: center;
  }

  .grade {
    gap: 16px;
  }
}

/* Tresor */

.safe {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
  margin-bottom: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  animation: fade-up 1.2s var(--ease) 0.45s both;
}

.safe-slots {
  display: flex;
  gap: 14px;
}

.safe-slots span {
  flex: 1;
  display: grid;
  place-items: center;
  height: clamp(84px, 16vw, 120px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: clamp(48px, 9vw, 80px);
  line-height: 1;
  transition: border-color 0.3s, color 0.3s;
}

.safe-slots .set {
  border-color: var(--fg);
}

.safe.wrong .safe-slots {
  animation: shake 0.5s var(--ease);
}

.safe.wrong .safe-slots span {
  color: var(--muted);
}

.safe.open .safe-slots span {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes shake {
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.safe-msg {
  display: block;
  margin: 22px 0 28px;
}

.safe.wrong .safe-msg {
  color: var(--fg);
}

.safe.open .safe-msg {
  color: var(--accent);
}

.safe-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transition: opacity 0.6s;
}

.safe-keys > * {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.safe-keys button {
  padding: 20px 0;
  border-top: 0;
  border-left: 0;
  border-radius: 0;
  background: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.safe-keys button:hover {
  color: var(--accent);
}

.safe-keys button:active {
  background: #141414;
}

.safe-keys button:focus-visible {
  outline-offset: -4px;
}

.safe.open .safe-keys {
  opacity: 0.25;
  pointer-events: none;
}

.safe-side .rows {
  margin-top: 18px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.safe-clues li {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.safe-clues em {
  min-width: 0;
  font-size: 21px;
}

.safe-inside {
  margin: -24px 0 96px;
  padding-top: 30px;
  border-top: 1px solid var(--accent);
  animation: fade-up 1s var(--ease) both;
}

.safe-inside h2 {
  margin: 14px 0 0;
  font-size: clamp(36px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.safe-inside p {
  max-width: 42ch;
  margin: 22px 0 22px;
  font-size: 19px;
  color: var(--muted);
}

/* Hinweis-Quadrat: blinkt alle paar Sekunden kurz auf, damit man es finden kann */
.clue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 4px;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  vertical-align: middle;
}

.clue::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transition: background 0.3s, transform 0.5s var(--ease);
  animation: clue 7s infinite;
}

.clue.found::before {
  background: var(--accent);
  transform: rotate(90deg);
  animation: none;
}

.clue:focus-visible {
  outline-offset: 2px;
}

@keyframes clue {
  0%, 88%, 100% { opacity: 0.3; }
  94% { opacity: 1; }
}

@media (max-width: 700px) {
  .safe {
    grid-template-columns: 1fr;
    gap: 56px;
    margin-bottom: 72px;
  }
}

/* Abzeichen */

.toasts {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 21;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  padding: 14px 18px 16px;
  border: 1px solid #2e2e2c;
  background: #0c0c0c;
  animation: fade-up 0.5s var(--ease) both;
  transition: opacity 0.6s, transform 0.6s var(--ease);
}

.toast.out {
  opacity: 0;
  transform: translateY(12px);
}

.toast .label {
  display: block;
}

.toast b {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.toast b::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  animation: pop 0.7s var(--ease) 0.2s both;
}

.badges .rows {
  margin-top: 18px;
}

.badge-list em {
  min-width: 6ch;
}

/* Tresor: Akzentfarben */

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.swatches button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.5s var(--ease), outline-color 0.3s;
  outline: 1px solid transparent;
  outline-offset: 5px;
}

.swatches button:hover {
  transform: rotate(90deg);
}

.swatches button[aria-pressed="true"] {
  outline-color: var(--fg);
}

.swatch-name {
  display: block;
  margin: 18px 0 30px;
  color: var(--accent);
}

/* Tuning-Shop */

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin: 0 0 72px;
  padding: 0;
  list-style: none;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 20px;
  align-items: baseline;
  padding: 30px 0 26px;
  border-top: 1px solid var(--line);
}

.product:nth-child(even) { --d: 0.08s; }

.product h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.product .price {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--accent);
  white-space: nowrap;
}

.product p {
  grid-column: 1 / -1;
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
}

.product .add {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 6px;
}

.product .in-cart {
  color: var(--accent);
}

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 20px;
  border: 1px solid #2e2e2c;
  background: #0c0c0c;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: fade 0.5s var(--ease) both;
}

.cart-bar .label {
  color: var(--fg);
}

.cart-bar .text-btn {
  color: var(--accent);
}

.checkout {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid #2e2e2c;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

.checkout[open] {
  display: flex;
  flex-direction: column;
  animation: fade-up 0.6s var(--ease) both;
}

.checkout::backdrop,
.pop::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.checkout-body {
  overflow-y: auto;
  padding: 30px 28px 0;
}

.checkout .group {
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 44px;
}

.checkout .group h2 {
  position: static;
  padding: 0 0 14px;
}

.cart-payer {
  min-height: 1.5em;
  margin-top: 6px;
  text-align: right;
  color: var(--accent);
}

/* kleines Popup, zum Beispiel für den Gutschein von Oli */
.pop {
  width: min(460px, calc(100vw - 40px));
  padding: 28px 28px 30px;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
}

.pop[open] {
  animation: fade-up 0.5s var(--ease) both;
}

.pop h3 {
  margin: 10px 0 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.pop p {
  margin: 16px 0 0;
  color: var(--muted);
}

.product .shot {
  grid-column: 1 / -1;
  margin-bottom: 14px;
}

@media (max-width: 700px) {
  .checkout-body {
    padding: 24px 20px 0;
  }

  .checkout .player-bar {
    padding: 14px 20px;
  }
}

.checkout .pane > .rows:first-child {
  margin-top: -30px;
}

.cart-lines li {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.cart-lines em {
  min-width: 9ch;
}

/* lange Teilenamen dürfen am Handy umbrechen */
.cart-lines b,
.product h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.coupon {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-top: 30px;
}

.coupon .field input {
  font-size: 17px;
  text-transform: uppercase;
}

.coupon-note {
  min-height: 1.5em;
  color: var(--accent);
}

.options {
  padding-top: 0;
}

.option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Auswahl als Quadrat, gewählt ist es gefüllt */
.option i {
  width: 11px;
  height: 11px;
  margin-top: 8px;
  border: 1px solid var(--muted);
  transition: background 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}

.option input:checked + i {
  border-color: var(--accent);
  background: var(--accent);
  transform: rotate(90deg);
}

.option input:focus-visible + i {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.option input:disabled + i {
  opacity: 0.5;
}

.option b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.option small {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

.option em {
  font-family: var(--mono);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  padding-top: 5px;
}

.cart-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
}

.cart-sum b {
  font-family: var(--mono);
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.order {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #000;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, opacity 0.3s;
}

.order:hover {
  background: none;
  color: var(--accent);
}

.order:disabled {
  opacity: 0.4;
  cursor: default;
}

.order-result {
  margin-top: 28px;
}

.order-result .step {
  display: block;
  margin: 0 0 10px;
  color: var(--fg);
  animation: fade-up 0.5s var(--ease) both;
}

.order-result .step.done {
  color: var(--muted);
}

.order-result.failed {
  padding: 24px 26px 26px;
  border: 1px solid var(--fg);
  animation: shake 0.5s var(--ease);
}

.order-result h3 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.order-result p {
  max-width: 46ch;
  margin: 14px 0 0;
  color: var(--muted);
}

.shop-note {
  display: block;
  margin: 0 0 120px;
}

@media (max-width: 700px) {
  .toasts {
    right: 20px;
    bottom: 20px;
  }

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

  .cart-bar {
    gap: 18px;
  }

  .option {
    gap: 14px;
  }
}

/* Tuning-Shop: Fotos */

.product .shot {
  background: #000;
}

.cart-lines .with-thumb {
  grid-template-columns: 60px minmax(0, 1fr) auto auto;
  align-items: center;
}

.cart-lines img {
  display: block;
  width: 60px;
  height: 45px;
  object-fit: cover;
  background: #000;
}

@media (max-width: 700px) {
  .cart-lines .with-thumb {
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
  }

  .cart-lines img {
    width: 48px;
    height: 36px;
  }
}

/* am Handy steht der Preis unter dem Namen, damit lange Namen nicht umbrechen */
@media (max-width: 700px) {
  .product {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product .shot {
    margin-bottom: 12px;
  }

  .product .add {
    margin-top: 8px;
  }
}

/* Impressum und Datenschutz */

.legal p {
  max-width: 62ch;
  margin: 0 0 22px;
  color: var(--muted);
}

.legal b {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* Textlinks, nicht die großen Zeilen der Link-Listen */
.group .legal a {
  display: inline;
  position: static;
  padding: 0;
  border: 0;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.3s;
}

.group .legal a::after {
  content: none;
}

.group .legal a:hover {
  color: var(--accent);
}

.third-party {
  margin-top: 12px;
}
