/* Schriften – selbst gehostet (SIL OFL), keine Anfrage an Google */
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("/fonts/saira-black-it.woff2") format("woff2");
  font-weight: 800 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("/fonts/saira-black.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("/fonts/syne.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shrikhand";
  src: url("/fonts/shrikhand.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("/fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --ink-soft: rgba(10, 10, 10, 0.55);
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --serif: Georgia, "Times New Roman", serif;
  --impact: Impact, "Anton", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Design 2 */
  --qt-yellow: #fff200;
  --qt-black: #231f20;
  --qt-red: #ed1c24;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow-x: clip; }
/* Die Startseite passt immer auf einen Bildschirm – kein Scrollen */
html[data-theme], html[data-theme] body { overflow: hidden; overscroll-behavior: none; }
.design { height: 100svh; height: 100dvh; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Weißer Klavierlack: helle Grundfläche, weiche Lichtkante, tiefer Glanz */
body {
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  background-color: #f7f7f5;
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #fdfdfc 0%, #f4f4f1 55%, #ecebe7 100%);
  background-attachment: fixed;
}
[data-theme="qt"] body { background: var(--qt-yellow); }

/* Jedes Design hat seine eigene Seite */
.design { display: none; }
[data-theme="lack"] .design-lack { display: block; }
[data-theme="qt"] .design-qt { display: block; }
[data-theme="tennis"] .design-tennis { display: block; }
[data-theme="tennis"] body { background: #9a86de; }
[data-theme="f1"] body { background: #9cd0ec; color: #0f2240; }

/* =====================================================================
   01 · ORIGINAL (Lack)
   ===================================================================== */

/* Lichtreflex, der einmal langsam über den Lack zieht */
.sheen {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
  background-size: 300% 100%;
  background-position: 120% 0;
  mix-blend-mode: soft-light;
}
.play .sheen { animation: sheen 3.2s var(--ease) 1.4s forwards; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -40% 0; } }

.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
}

.name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
}

.rule {
  width: min(62vw, 520px);
  height: 1px;
  margin: clamp(1.4rem, 3.4vw, 2.4rem) 0;
  background: var(--ink);
  transform: scaleX(0);
}

.claim {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  letter-spacing: 0.01em;
  opacity: 0;
}

.phone {
  margin-top: clamp(2.2rem, 6vw, 4rem);
  font-family: var(--serif);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  letter-spacing: 0.28em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
}
.phone:hover { opacity: 0.6; }

.legal-links {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
}
.legal-links a { color: var(--ink-soft); text-decoration: none; }
.legal-links a:hover { color: var(--ink); }
.legal-links span { margin: 0 0.9em; color: var(--ink-soft); }

.play .name { animation: appear 2.2s var(--ease) 0.2s forwards; }
.play .rule { animation: draw 1.6s var(--ease) 1.3s forwards; }
.play .claim { animation: fade 1.4s var(--ease) 2s forwards; }
.play .phone { animation: fade 1.4s var(--ease) 2.5s forwards; }
.play .design-lack .legal-links { animation: fade 1.4s var(--ease) 3s forwards; }

@keyframes appear {
  from { opacity: 0; filter: blur(14px); transform: translateY(12px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes draw { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }

/* =====================================================================
   02 · TARANTINO  –  Plakat: Gelb, Schwarz, Rot, Impact, riesig
   ===================================================================== */
.design-qt {
  --g: min(24vw, 31vh);             /* Größe der Riesenzeilen */
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--qt-black);
  font-family: var(--impact);
  text-transform: uppercase;
}

/* Zielscheibe als Mauszeiger */
[data-theme="qt"],
[data-theme="qt"] a,
[data-theme="qt"] button {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23ed1c24' stroke-width='2.5'%3E%3Ccircle cx='20' cy='20' r='15'/%3E%3Ccircle cx='20' cy='20' r='7'/%3E%3Cpath d='M20 0v10M20 30v10M0 20h10M30 20h10'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='2' fill='%23231f20'/%3E%3C/svg%3E") 20 20, crosshair;
}

.poster {
  position: relative;
  z-index: 2;
  padding: max(7vh, 40px) 0 0 6vw;
  width: 76vw;
}

.qt-presents {
  color: var(--qt-red);
  font-size: calc(var(--g) * 0.135);
  line-height: 1;
  letter-spacing: 0.005em;
  margin-bottom: calc(var(--g) * 0.04);
}

.qt-giant {
  font-size: var(--g);
  line-height: 0.86;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.qt-giant .line { display: block; white-space: nowrap; }
.qt-giant .ch { display: inline-block; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.qt-giant .ch.hit { animation: hit 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes hit {
  0% { transform: none; }
  25% { transform: translate(0.03em, -0.02em) rotate(-6deg); }
  60% { transform: translate(-0.01em, 0) rotate(3deg); }
  100% { transform: none; }
}

.qt-volume {
  color: var(--qt-red);
  font-size: calc(var(--g) * 0.36);
  line-height: 1;
  margin-top: calc(var(--g) * 0.06);
}

.qt-tag {
  margin-top: calc(var(--g) * 0.12);
  font-size: calc(var(--g) * 0.09);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* Der schwarze Balken – mit der Nummer darin */
.qt-bar {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 78vw;
  width: 12vw;
  background: var(--qt-black);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6vh;
  transform-origin: top;
}
.qt-phone {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--qt-yellow);
  text-decoration: none;
  font-size: clamp(1.2rem, min(4.2vw, 6vh), 4.4rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.qt-phone:hover { color: var(--qt-red); }

.qt-legal {
  position: absolute;
  z-index: 2;
  left: 6vw;
  bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.qt-legal a { color: var(--qt-black); text-decoration: none; }
.qt-legal a:hover { color: var(--qt-red); }
.qt-legal span { margin: 0 0.7em; }

.qt-hint {
  position: absolute;
  z-index: 2;
  left: 6vw;
  bottom: 42px;
  color: var(--qt-red);
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* Einschusslöcher */
.holes { position: fixed; inset: 0; z-index: 4; pointer-events: none; display: none; }
[data-theme="qt"] .holes { display: block; }
.hole {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle, #0d0b0b 0 28%, #3a3030 34%, rgba(35, 31, 32, 0.35) 46%, transparent 62%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
  animation: hole-out 4s ease-in forwards;
}
.hole::before, .hole::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 1.5px;
  margin: -0.75px 0 0 -22px;
  background: linear-gradient(90deg, transparent, rgba(35, 31, 32, 0.7) 30%, rgba(35, 31, 32, 0.7) 70%, transparent);
  transform: rotate(var(--r1, 25deg));
}
.hole::after { transform: rotate(var(--r2, -40deg)); width: 34px; margin-left: -17px; }
@keyframes hole-out { 0% { transform: scale(1.5); opacity: 1; } 8% { transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.recoil { animation: recoil 0.18s ease-out; }
@keyframes recoil { 30% { transform: translate(2px, -3px); } 100% { transform: none; } }

/* Auftritt wie ein Titel im Kino: der Balken fällt, die Zeilen knallen rein */
.design-qt .qt-presents,
.design-qt .qt-giant .line,
.design-qt .qt-volume,
.design-qt .qt-tag,
.design-qt .qt-hint,
.design-qt .qt-legal { opacity: 0; }
.design-qt .qt-bar { transform: scaleY(0); }
.play .design-qt .qt-bar { animation: bar 0.7s cubic-bezier(0.7, 0, 0.2, 1) 0.1s forwards; }
.play .design-qt .qt-presents { animation: slam 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.55s forwards; }
.play .design-qt .qt-giant .line:nth-child(1) { animation: slam 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.8s forwards; }
.play .design-qt .qt-giant .line:nth-child(2) { animation: slam 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.1s forwards; }
.play .design-qt .qt-volume { animation: slam 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.45s forwards; }
.play .design-qt .qt-tag,
.play .design-qt .qt-hint,
.play .design-qt .qt-legal { animation: fade 0.8s ease 1.9s forwards; }
.play .design-qt .poster { animation: shake 0.35s linear 1.15s; }

@keyframes bar { to { transform: scaleY(1); } }
@keyframes slam {
  from { opacity: 0; transform: scale(1.35); }
  to { opacity: 1; transform: none; }
}
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translate(-6px, 3px); }
  40% { transform: translate(5px, -4px); }
  60% { transform: translate(-3px, 2px); }
  80% { transform: translate(2px, -1px); }
}

@media (max-aspect-ratio: 4/5) {
  .design-qt { --g: 29vw; }
  .poster { padding-top: 15vh; width: 80vw; }
  .qt-bar { left: 82vw; width: 11vw; }
  .qt-phone { font-size: 7vw; }
  .qt-bar { padding-bottom: 104px; }
}


/* =====================================================================
   03 · LE MANS  –  Hellblau, Orange, Marineblau, Startnummer, Zielflagge
   ===================================================================== */
.design-f1 {
  --navy: #0f2240;
  --orange: #f47b20;
  --race: "Saira", "Helvetica Neue", Arial, sans-serif;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--navy);
  background: linear-gradient(180deg, #a9d7f0 0%, #92c7e6 100%);
}
[data-theme="f1"] .design-f1 { display: block; }
.lm-stage { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px 96px; text-align: center; }
.lm-kicker { margin-bottom: clamp(1rem, 2.4vw, 1.8rem); font-family: var(--race); font-weight: 900; font-style: italic; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(15, 34, 64, 0.6); }
.lm-name {
  position: relative;
  z-index: 0;
  padding: 0.08em 0.3em 0.12em;
  font-family: "Shrikhand", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 10vw, 9rem);
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
}
.lm-name::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -50vw; right: -50vw; background: var(--orange); border-top: 6px solid var(--navy); border-bottom: 6px solid var(--navy); }
.lm-rule { width: min(62vw, 520px); height: 4px; margin: clamp(1.4rem, 3.4vw, 2.4rem) 0; background: var(--navy); transform-origin: left; transform: scaleX(0); }
.lm-claim { font-family: var(--race); font-weight: 900; font-style: italic; font-size: clamp(1.1rem, 3vw, 2.4rem); letter-spacing: 0.18em; text-transform: uppercase; }
.lm-phone { margin-top: clamp(2.2rem, 6vw, 4rem); font-family: var(--race); font-weight: 900; font-style: italic; font-size: clamp(0.85rem, 1.4vw, 1rem); letter-spacing: 0.3em; color: var(--navy); text-decoration: none; }
.lm-phone:hover { opacity: 0.6; }
.lm-roundel {
  position: absolute;
  top: clamp(16px, 4vw, 48px);
  right: clamp(16px, 4vw, 56px);
  width: clamp(72px, 11vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--race);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
}
.lm-checker { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: repeating-conic-gradient(var(--navy) 0 25%, transparent 0 50%) 0 0 / 16px 16px; opacity: 0.9; }
.lm-legal { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; }
.lm-legal a { color: rgba(15, 34, 64, 0.6); text-decoration: none; }
.lm-legal a:hover { color: var(--navy); }
.lm-legal span { margin: 0 0.9em; color: rgba(15, 34, 64, 0.6); }

/* Startampel */
.lm-lights { position: absolute; z-index: 5; top: clamp(16px, 3vw, 32px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--race); font-style: italic; font-weight: 900; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(15, 34, 64, 0.6); }
.lm-bulbs { display: flex; gap: 8px; padding: 8px 10px; background: #050505; border-radius: 6px; }
.lm-bulbs .bulb { width: 18px; height: 18px; border-radius: 50%; background: #2a0606; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.6); transition: background 0.08s, box-shadow 0.08s; }
.lm-bulbs .bulb.on { background: #ff2a1a; box-shadow: 0 0 14px 3px rgba(255, 42, 26, 0.7); }
.lm-msg { min-height: 1.2em; color: var(--navy); }
.lm-msg strong { font-size: 1.6em; letter-spacing: 0.05em; }

/* Bestenliste: Versuch 1, 2, 3 … – nur für diesen Besuch */
.lm-board { list-style: none; display: grid; gap: 3px; min-width: 250px; }
.lm-board:empty { display: none; }
.lm-board li {
  display: grid;
  grid-template-columns: 34px 1fr 74px;
  align-items: stretch;
  height: 24px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px rgba(15, 34, 64, 0.15);
}
.lm-board span { display: flex; align-items: center; justify-content: center; }
.lm-board .p { background: var(--navy); color: #fff; }
.lm-board .n { justify-content: flex-start; padding-left: 10px; background: #fff; color: var(--navy); }
.lm-board .t { background: var(--orange); color: #fff; letter-spacing: 0.04em; font-size: 12px; }
.lm-board li:first-child .t { background: var(--navy); color: #f47b20; }
.lm-board li.fresh .n { animation: lm-fresh 1.2s ease; }
@keyframes lm-fresh { 0%, 40% { background: #ffe1c7; } }

/* Auftritt */
.design-f1 .lm-name, .design-f1 .lm-claim, .design-f1 .lm-phone, .design-f1 .lm-kicker { opacity: 0; }
.play .design-f1 .lm-kicker { animation: fade 1.2s var(--ease) 0.2s forwards; }
.play .design-f1 .lm-name { animation: appear 1.4s var(--ease) 0.1s forwards; }
.play .design-f1 .lm-rule { animation: draw 1.6s var(--ease) 0.6s forwards; }
.play .design-f1 .lm-claim { animation: fade 1.4s var(--ease) 0.9s forwards; }
.play .design-f1 .lm-phone { animation: fade 1.4s var(--ease) 1.2s forwards; }

@media (max-width: 640px) {
  .lm-roundel { width: 60px; font-size: 1.6rem; border-width: 3px; }
  .lm-lights { top: 14px; left: 16px; transform: none; align-items: flex-start; max-width: calc(100% - 100px); }
  .lm-msg { font-size: 9px; letter-spacing: 0.2em; }
  .lm-board { min-width: 0; width: 100%; }
  .lm-stage { padding-top: 110px; padding-bottom: 70px; }
}

/* Übergang Le Mans: die Zielflagge weht von unten über den Bildschirm nach oben */
.fx-flag { overflow: hidden; perspective: 900px; }
.fx-flag .flag {
  position: absolute;
  left: -12vw;
  right: -12vw;
  top: -18vh;
  height: 136vh;
  transform-origin: 50% 50%;
  transform: translateZ(-3200px) rotateY(28deg) rotateZ(-10deg);
  opacity: 0;
}
.fx-flag .cloth {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(100deg, rgba(0, 0, 0, 0.32) 0, rgba(0, 0, 0, 0) 7vw, rgba(255, 255, 255, 0.18) 13vw, rgba(0, 0, 0, 0) 19vw, rgba(0, 0, 0, 0.32) 26vw),
    repeating-conic-gradient(#111 0 25%, #f4f4f4 0 50%) 0 0 / 14vmax 14vmax;
  background-size: 52vw 100%, 14vmax 14vmax;
  -webkit-mask: radial-gradient(9vw 4vh at 50% 0, transparent 98%, #000) 0 0 / 18vw 51% repeat-x, radial-gradient(9vw 4vh at 50% 100%, transparent 98%, #000) 0 100% / 18vw 51% repeat-x;
  mask: radial-gradient(9vw 4vh at 50% 0, transparent 98%, #000) 0 0 / 18vw 51% repeat-x, radial-gradient(9vw 4vh at 50% 100%, transparent 98%, #000) 0 100% / 18vw 51% repeat-x;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
/* Von hinten nach vorn: weht aus der Ferne heran, deckt alles ab, fliegt an uns vorbei */
.fx-flag.on .flag { animation: flag-fly 1.9s cubic-bezier(0.5, 0, 0.3, 1) forwards; }
.fx-flag.on .cloth { animation: flag-wave 0.5s linear infinite; }
@keyframes flag-fly {
  0% { transform: translateZ(-3200px) rotateY(28deg) rotateZ(-10deg); opacity: 0; }
  10% { opacity: 1; }
  25% { transform: translateZ(-1800px) rotateY(-18deg) rotateZ(6deg); }
  40% { transform: translateZ(-700px) rotateY(12deg) rotateZ(-4deg); }
  52%, 62% { transform: translateZ(0) rotateY(0deg) rotateZ(0deg) scale(1.05); opacity: 1; }
  100% { transform: translateZ(700px) rotateY(-6deg) scale(1.3); opacity: 0; }
}
@keyframes flag-wave { to { background-position: -52vw 0, 0 0; } }

/* =====================================================================
   04 · TENNIS (Court)  –  der erste Entwurf: Lila Umrandung, dunkelgrünes Feld, Lime-Ball
   ===================================================================== */
.design-tennis {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  font-family: var(--serif);
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #a08ce2 0%, #8c77d4 100%);
}
.design-tennis .court {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.design-tennis .court::before {
  content: "";
  grid-area: 1 / 1;
  width: min(90vw, 1280px);
  height: min(70vh, 590px);
  background: linear-gradient(180deg, #11402d 0%, #0d3324 100%);
  box-shadow: 0 30px 80px rgba(40, 20, 90, 0.35);
}
.design-tennis .court svg { grid-area: 1 / 1; width: min(90vw, 1280px); height: min(70vh, 590px); }
.design-tennis .court line, .design-tennis .court rect { stroke: rgba(255, 255, 255, 0.9); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.design-tennis .court .net { stroke-width: 4; stroke: rgba(255, 255, 255, 0.55); stroke-dasharray: 3 5; }
.design-tennis .court .portrait { display: none; }

.tn-stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
}
.tn-name {
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 6.6vw, 6.6rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #d4ff4a;
  white-space: nowrap;
}
.tn-rule { width: min(60vw, 560px); height: 2px; margin: clamp(1.4rem, 3.4vw, 2.4rem) 0; background: #d4ff4a; transform: scaleX(0); }
.tn-claim {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #f4f0ff;
}
.tn-phone {
  margin-top: clamp(2.2rem, 6vw, 4rem);
  font-family: var(--serif);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  letter-spacing: 0.28em;
  color: #f4f0ff;
  text-decoration: none;
}
.tn-phone:hover { opacity: 0.6; }
.tn-legal { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; }
.tn-legal a { color: rgba(244, 240, 255, 0.75); text-decoration: none; }
.tn-legal a:hover { color: #fff; }
.tn-legal span { margin: 0 0.9em; color: rgba(244, 240, 255, 0.75); }

/* Auftritt wie im Original */
.design-tennis .tn-name, .design-tennis .tn-claim, .design-tennis .tn-phone, .design-tennis .tn-legal { opacity: 0; }
.play .design-tennis .tn-name { animation: appear 2.2s var(--ease) 0.2s forwards; }
.play .design-tennis .tn-rule { animation: draw 1.6s var(--ease) 1.3s forwards; }
.play .design-tennis .tn-claim { animation: fade 1.4s var(--ease) 2s forwards; }
.play .design-tennis .tn-phone { animation: fade 1.4s var(--ease) 2.5s forwards; }
.play .design-tennis .tn-legal { animation: fade 1.4s var(--ease) 3s forwards; }

/* Tennisball: antippen = Aufschlag */
.design-tennis .ball {
  position: fixed;
  z-index: 4;
  left: 12vw;
  bottom: 22vh;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f2ff9a 0%, #d4ff4a 45%, #a9d12a 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.design-tennis .ball::before, .design-tennis .ball::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 22px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}
.design-tennis .ball::before { left: -12px; border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.design-tennis .ball::after { right: -12px; border-right-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.design-tennis .ball.serve { animation: serve 1.1s cubic-bezier(0.3, 0.6, 0.4, 1) forwards; }
.design-tennis .ball.back { animation: serve-back 1.1s cubic-bezier(0.3, 0.6, 0.4, 1) forwards; }
@keyframes serve {
  0% { transform: translate(0, 0) rotate(0); }
  45% { transform: translate(38vw, -34vh) rotate(380deg); }
  70% { transform: translate(58vw, -6vh) rotate(600deg); }
  100% { transform: translate(74vw, -20vh) rotate(800deg); }
}
@keyframes serve-back {
  0% { transform: translate(74vw, -20vh) rotate(800deg); }
  45% { transform: translate(36vw, -40vh) rotate(420deg); }
  70% { transform: translate(14vw, -4vh) rotate(160deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
.design-tennis .rally {
  position: fixed;
  z-index: 4;
  right: clamp(16px, 3vw, 40px);
  top: clamp(16px, 3vw, 32px);
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f4f0ff;
}

@media (max-aspect-ratio: 1/1) {
  .design-tennis .court::before, .design-tennis .court svg { width: 84vw; height: 70vh; }
  .design-tennis .court { padding-bottom: 60px; }
  .design-tennis .tn-name { font-size: 5.6vw; letter-spacing: -0.05em; }
  .design-tennis .court .landscape { display: none; }
  .design-tennis .court .portrait { display: block; }
}

/* =====================================================================
   Designwahl: Schieberegler unten rechts, passt sich dem Design an
   ===================================================================== */
.switch { position: fixed; z-index: 30; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.6vh, 30px); }
.sl {
  --line: rgba(10, 10, 10, 0.35);
  --dot: #0a0a0a;
  --knob: #0a0a0a;
  --ring: #fff;
  --x: 0;
  position: relative;
  width: 150px;
  height: 36px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.sl:focus-visible { outline: 2px solid var(--dot); outline-offset: 6px; border-radius: 18px; }
.sl-line { position: absolute; left: 9px; right: 9px; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.sl-stop { position: absolute; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--dot); }
.sl-stop:nth-of-type(2) { left: 9px; }
.sl-stop:nth-of-type(3) { left: calc(9px + (100% - 18px) / 3); }
.sl-stop:nth-of-type(4) { left: calc(9px + (100% - 18px) * 2 / 3); }
.sl-stop:nth-of-type(5) { left: calc(100% - 9px); }
.sl-knob {
  position: absolute;
  top: 50%;
  left: calc(9px + (100% - 18px) * var(--x));
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--knob);
  box-shadow: 0 0 0 3px var(--ring), 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: left 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s;
}
.sl.dragging .sl-knob { transition: none; transform: scale(1.15); }
.sl:hover .sl-knob { transform: scale(1.1); }

[data-theme="lack"] .sl { --line: rgba(10, 10, 10, 0.3); --dot: #0a0a0a; --knob: #0a0a0a; --ring: #f7f7f5; }
[data-theme="qt"] .sl { --line: #231f20; --dot: #231f20; --knob: #ed1c24; --ring: #fff200; }
[data-theme="qt"] .sl-line { height: 4px; margin-top: -2px; }
[data-theme="qt"] .sl { background: #fff200; border: 2px solid #231f20; border-radius: 20px; width: 164px; padding: 0 7px; }
[data-theme="qt"] .sl-line { left: 16px; right: 16px; }
[data-theme="f1"] .sl { --line: #0f2240; --dot: #0f2240; --knob: #f47b20; --ring: #fff; }
[data-theme="f1"] .sl-line { height: 3px; background: repeating-linear-gradient(90deg, #0f2240 0 6px, #fff 6px 12px); }
[data-theme="tennis"] .sl { --line: rgba(244, 240, 255, 0.7); --dot: #f4f0ff; --knob: #d4ff4a; --ring: rgba(255, 255, 255, 0); }
[data-theme="tennis"] .sl-knob {
  background:
    radial-gradient(circle at -22% 50%, transparent 52%, #fff 53% 60%, transparent 61%),
    radial-gradient(circle at 122% 50%, transparent 52%, #fff 53% 60%, transparent 61%),
    radial-gradient(circle at 32% 30%, #f2ff9a, #d4ff4a 45%, #a9d12a);
}

@media (max-width: 640px) {
  .switch { right: 50%; transform: translateX(50%); bottom: 44px; }
  [data-theme="qt"] .switch { bottom: 78px; }
}

/* Übergang Tennis: der Ball fliegt klein ins Bild, wird riesig, schrumpft wieder
   und fällt auf den Platz – genau dorthin, wo man ihn antippen kann */
.fx-court .roll {
  position: absolute;
  left: 88vw;
  top: 12vh;
  width: 2vmax;
  height: 2vmax;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at -22% 50%, transparent 52%, rgba(255, 255, 255, 0.95) 53% 59%, transparent 60%),
    radial-gradient(circle at 122% 50%, transparent 52%, rgba(255, 255, 255, 0.95) 53% 59%, transparent 60%),
    radial-gradient(circle at 34% 30%, #f4ff9f 0%, #d4ff4a 42%, #a9cf22 100%);
  box-shadow: inset -0.08em -0.08em 0.2em rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.25);
}
.fx-court.on .roll { animation: court-fx 2.3s cubic-bezier(0.45, 0, 0.35, 1) forwards; }
@keyframes court-fx {
  0% { left: 88vw; top: 12vh; width: 2vmax; height: 2vmax; transform: translate(-50%, -50%) rotate(0deg); }
  38%, 46% { left: 50vw; top: 50vh; width: 170vmax; height: 170vmax; transform: translate(-50%, -50%) rotate(160deg); }
  70% { left: calc(12vw + 17px); top: 40vh; width: 34px; height: 34px; transform: translate(-50%, -50%) rotate(320deg); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  82% { left: calc(12vw + 17px); top: calc(78vh - 17px); width: 34px; height: 34px; transform: translate(-50%, -50%) rotate(380deg); animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  91% { left: calc(12vw + 17px); top: calc(78vh - 70px); width: 34px; height: 34px; transform: translate(-50%, -50%) rotate(400deg); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  100% { left: calc(12vw + 17px); top: calc(78vh - 17px); width: 34px; height: 34px; transform: translate(-50%, -50%) rotate(420deg); }
}
/* Solange der Ball fliegt, liegt der echte Ball noch nicht da */
.fx-court.on ~ * .design-tennis .ball, body:has(.fx-court.on) .design-tennis .ball { opacity: 0; }

/* =====================================================================
   Übergänge: Glastür bzw. Saloon-Tür über die ganze Seite
   ===================================================================== */
.fx { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: none; perspective: 1400px; }
.fx.on { display: block; }
.panel { position: absolute; top: 0; bottom: 0; width: 50.2%; }
.panel-l { left: 0; }
.panel-r { right: 0; }

/* Glas: schiebt sich zu, Milchglas verdeckt den Wechsel, schiebt sich auf */
.fx-glass .panel {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.7), rgba(236, 241, 244, 0.55) 40%, rgba(255, 255, 255, 0.75));
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 40px rgba(0, 0, 0, 0.08);
}
.fx-glass .panel::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 22vh;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, #8d9196, #e9ecef 50%, #8d9196);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.fx-glass .panel-l::after { right: 22px; }
.fx-glass .panel-r::after { left: 22px; }
.fx-glass.on .panel-l { animation: glass-l 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.fx-glass.on .panel-r { animation: glass-r 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes glass-l { 0% { transform: translateX(-101%); } 38%, 58% { transform: none; } 100% { transform: translateX(-101%); } }
@keyframes glass-r { 0% { transform: translateX(101%); } 38%, 58% { transform: none; } 100% { transform: translateX(101%); } }

/* Saloon: Flügel schwingen rein, knallen zu, schwingen durch und wackeln aus */
.fx-saloon .panel {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0 3px, transparent 3px 46px),
    linear-gradient(180deg, #7a4520, #5a3115);
  box-shadow: inset 0 0 0 12px #3d200c;
}
.fx-saloon .panel-l { transform-origin: left center; clip-path: polygon(0 7%, 55% 0, 100% 9%, 100% 100%, 0 100%); }
.fx-saloon .panel-r { transform-origin: right center; clip-path: polygon(0 9%, 45% 0, 100% 7%, 100% 100%, 0 100%); }
.fx-saloon.on .panel-l { animation: saloon-l 1.9s cubic-bezier(0.4, 0, 0.3, 1) forwards; }
.fx-saloon.on .panel-r { animation: saloon-r 1.9s cubic-bezier(0.4, 0, 0.3, 1) forwards; }
@keyframes saloon-l {
  0% { transform: rotateY(-92deg); }
  28% { transform: rotateY(0); }
  33% { transform: rotateY(-10deg); }
  38%, 46% { transform: rotateY(0); }
  62% { transform: rotateY(92deg); }
  74% { transform: rotateY(40deg); }
  84% { transform: rotateY(80deg); }
  92% { transform: rotateY(62deg); }
  100% { transform: rotateY(92deg); }
}
@keyframes saloon-r {
  0% { transform: rotateY(92deg); }
  28% { transform: rotateY(0); }
  33% { transform: rotateY(10deg); }
  38%, 46% { transform: rotateY(0); }
  62% { transform: rotateY(-92deg); }
  74% { transform: rotateY(-40deg); }
  84% { transform: rotateY(-80deg); }
  92% { transform: rotateY(-62deg); }
  100% { transform: rotateY(-92deg); }
}

@media (prefers-reduced-motion: reduce) {
  .name, .claim, .phone, .legal-links,
  .design-qt .qt-presents, .design-qt .qt-giant .line, .design-qt .qt-volume,
  .design-qt .qt-tag, .design-qt .qt-hint, .design-qt .qt-legal { animation: none !important; opacity: 1; filter: none; transform: none; }
  .rule, .design-qt .qt-bar { animation: none !important; transform: none; }
  .design-f1 .lm-name, .design-f1 .lm-claim, .design-f1 .lm-phone, .design-f1 .lm-kicker { animation: none !important; opacity: 1; filter: none; transform: none; }
  .design-f1 .lm-rule { animation: none !important; transform: none; }
  .sheen, .fx { display: none !important; }
    .design-tennis .tn-name, .design-tennis .tn-claim, .design-tennis .tn-phone, .design-tennis .tn-legal { animation: none !important; opacity: 1; filter: none; }
  .design-tennis .tn-rule { animation: none !important; transform: none; }
}

/* =====================================================================
   Impressum / Datenschutz
   ===================================================================== */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 16px 96px;
  line-height: 1.7;
  font-size: 1rem;
}
.legal .back {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.legal h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1;
  margin: 48px 0 40px;
}
.legal h2 {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 36px 0 10px;
}
.legal p, .legal ul { margin-bottom: 14px; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--ink); }

