/* Hell in Elfenbein (Wunsch Thomas 01.12.2026: auf dem Handy besser lesbar). */
:root {
  --grund: #f4eee2;
  --karte: #fffcf5;
  --linie: #e2d8c5;
  --text: #1f1a14;
  --leise: #6b6053;
  --gold: #e3ad5f;
  --akzent: #8a5a17;
  --feld: #ffffff;
  --feldrand: #cfc3ad;
  --ja: #1f8a4c;
  --nein: #b3261e;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.ts {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 17px/1.5 Manrope, system-ui, sans-serif;
}

.ts-vorhang {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #fff;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html:has(.ts-vorhang),
body:has(.ts-vorhang) {
  background: #fff;
  overflow: hidden;
}

.ts-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--linie);
}

.ts-kopf img {
  height: 40px;
  width: auto;
  /* Das Logo gibt es nur weiß; auf Elfenbein dunkel einfärben. */
  filter: brightness(0);
}

.ts-kopf span {
  color: var(--leise);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.ts-haupt {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 64px;
  display: grid;
  gap: 18px;
}

.ts-karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 18px;
  padding: 22px 20px;
}

.ts-schmal {
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

h1,
h2 {
  font-family: 'Space Grotesk', Manrope, sans-serif;
  line-height: 1.15;
  margin: 0 0 14px;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--akzent);
}

.ts-form {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  [data-ts-neu].ts-form {
    grid-template-columns: 1fr 160px auto;
    align-items: end;
  }
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--leise);
}

input,
textarea,
select {
  width: 100%;
  font: 500 18px/1.4 Manrope, system-ui, sans-serif;
  color: var(--text);
  background: var(--feld);
  border: 1px solid var(--feldrand);
  border-radius: 12px;
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
summary:focus-visible,
.ts-datei:focus-within {
  outline: 3px solid var(--akzent);
  outline-offset: 2px;
}

.ts-knopf {
  font: 700 17px/1 Manrope, system-ui, sans-serif;
  color: #1a1206;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  min-height: 50px;
  cursor: pointer;
}

.ts-knopf:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ts-knopf--zweit {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--feldrand);
}

.ts-knopf--klein {
  padding: 10px 16px;
  min-height: 42px;
  font-size: 15px;
}

.ts-knopf--gross {
  width: 100%;
  font-size: 22px;
  min-height: 68px;
  margin: 8px 0 14px;
}

.ts-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ts-meldung {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--leise);
}

.ts-meldung--fehler {
  color: var(--nein);
}

.ts-vorschau {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.ts-vorschau[hidden] {
  display: none;
}

.ts-vorschau canvas,
.tk-ticketbild {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.ts-summe {
  color: var(--leise);
}

.ts-liste {
  display: grid;
  gap: 10px;
}

.ts-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--linie);
}

.ts-zeile strong,
.ts-zeile span {
  display: block;
  overflow-wrap: anywhere;
}

.ts-zeile span {
  color: var(--leise);
  font-size: 15px;
}

.ts-zeile--storniert strong {
  text-decoration: line-through;
  color: var(--leise);
}

.ts-einstellungen summary {
  cursor: pointer;
  font-family: 'Space Grotesk', Manrope, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.ts-einstellungen[open] summary {
  margin-bottom: 16px;
}

.ts-datei {
  display: block;
  margin-top: 8px;
}

.ts-datei span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1206;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}

.ts-datei input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ts-stand {
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  color: #fff;
}

.ts-stand h1 {
  margin: 0;
  font-size: 34px;
}

.ts-stand p {
  margin: 6px 0 0;
}

.ts-stand--ja {
  background: var(--ja);
}

.ts-stand--nein {
  background: var(--nein);
}

.ts-gross {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.ts-reiter {
  display: flex;
  margin-bottom: 18px;
  border: 1px solid var(--linie);
  background: var(--karte);
}

.ts-reiter button {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 12px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--leise);
  font: 600 12px/1.2 Manrope, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.ts-reiter button + button {
  border-left: 1px solid var(--linie);
}

.ts-reiter button[aria-selected='true'] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--gold);
}

@media (hover: hover) {
  .ts-reiter button:hover {
    color: var(--text);
  }
}

.ts-tafel {
  display: grid;
  gap: 18px;
}

.ts-tafel[hidden] {
  display: none;
}

.ts-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

.ts-tabelle th,
.ts-tabelle td {
  text-align: left;
  padding: 10px 8px;
  border-top: 1px solid var(--linie);
}

.ts-tabelle th {
  border-top: 0;
  color: var(--leise);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ts-tabelle th:not(:first-child),
.ts-tabelle td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ts-tabelle tfoot td {
  font-weight: 800;
}

.ts-tabelle .ts-leer td {
  color: var(--leise);
}

.ts-nummer {
  margin: 4px 0 10px;
  font: 800 64px/1 'Space Grotesk', Manrope, sans-serif;
  color: var(--text);
}

.ts-dialog {
  max-width: min(420px, calc(100vw - 32px));
  padding: 24px 22px;
  border: 1px solid var(--linie);
  border-radius: 18px;
  background: var(--karte);
  color: var(--text);
}

.ts-dialog::backdrop {
  background: rgba(31, 26, 20, 0.55);
}

.ts-dialog p {
  font-size: 20px;
}

.ts-dialog .ts-knopf {
  width: 100%;
}

/* Online-Kauf (/tickets) */
.tk-augenbraue {
  margin: 0 0 6px;
  color: var(--akzent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tk-abend h1 {
  font-size: 40px;
}

.tk-fakten {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.tk-leistungen {
  margin: 0;
  padding-left: 20px;
  color: var(--leise);
}

.tk-summe {
  margin: 16px 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.tk-hinweis {
  color: var(--leise);
  font-size: 14px;
}

.tk-zahlung {
  margin-top: 16px;
  max-width: 520px;
}

.tk-testzahlung {
  width: 100%;
}

.tk-recht {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
}

.tk-bereich {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.tk-bereich legend {
  margin-bottom: 6px;
  padding: 0;
  color: var(--leise);
  font-weight: 600;
  font-size: 15px;
}

.tk-bereich label {
  display: grid;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tk-bereich input {
  position: absolute;
  opacity: 0;
}

/* Lounge und Terrasse gleich groß, auch wenn eine Beschriftung umbricht (Thomas 02.12.2026). */
.tk-bereich span {
  display: grid;
  align-content: start;
  height: 100%;
  box-sizing: border-box;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--feldrand);
  border-radius: 12px;
  background: var(--feld);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.tk-bereich small {
  color: var(--leise);
  font-size: 14px;
  font-weight: 500;
}

.tk-bereich .tk-frei {
  color: var(--akzent);
  font-weight: 600;
}

.tk-bereich input:disabled + span {
  opacity: 0.5;
  cursor: not-allowed;
}

.tk-bereich input:checked + span {
  border-color: var(--akzent);
  box-shadow: inset 0 0 0 1px var(--akzent);
}

.tk-bereich input:focus-visible + span {
  outline: 3px solid var(--akzent);
  outline-offset: 2px;
}

.tk-preise {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 28px;
  margin: 8px 0 14px;
}

.tk-preise p {
  display: grid;
  margin: 0;
}

.tk-preise span {
  color: var(--leise);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tk-preise strong {
  font: 800 34px/1.1 'Space Grotesk', Manrope, sans-serif;
}

.tk-preise__hinweis {
  color: var(--leise);
  font-size: 15px;
}

.tk-fertig h2 {
  color: var(--ja);
}

.tk-fertig p {
  font-size: 18px;
}

/* Kaufseite im Kinolook (Wunsch Thomas 02.12.2026): Nachthimmel über Berlin
   mit Feuerwerk (feuerwerk.js), die Silvester-Kachel liegt als Glas davor. */
body.tk-kino {
  background: #05040a;
}

.tk-himmel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  object-fit: cover;
  pointer-events: none;
}

body.tk-kino::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 38%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
}

.tk-kino .ts-kopf,
.tk-kino .ts-haupt {
  position: relative;
  z-index: 1;
}

.tk-kino .ts-kopf {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(rgba(5, 4, 10, 0.7), rgba(5, 4, 10, 0));
}

.tk-kino .ts-kopf img {
  filter: none;
}

.tk-kino .ts-kopf span {
  color: rgba(251, 243, 228, 0.72);
}

.tk-kino .ts-haupt {
  padding-top: clamp(28px, 10vh, 110px);
}

.tk-kino .ts-karte:not(.tk-abend) {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Kaufkachel dunkel und durchsichtig wie Glas (Wunsch Thomas 02.12.2026):
   die Farbvariablen gelten nur hier, Felder, Bereichswahl und Bestätigung folgen. */
.tk-kino .ts-karte:not(.tk-abend) {
  --karte: transparent;
  --linie: rgba(255, 255, 255, 0.14);
  --text: #fbf3e4;
  --leise: rgba(251, 243, 228, 0.75);
  --akzent: #ecc173;
  --feld: rgba(255, 255, 255, 0.07);
  --feldrand: rgba(255, 255, 255, 0.24);
  --ja: #7fd8a0;
  --nein: #ff958c;
  color-scheme: dark;
  color: var(--text);
  border-color: rgba(236, 193, 115, 0.3);
  background: linear-gradient(160deg, rgba(22, 13, 34, 0.6), rgba(8, 5, 14, 0.42));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Bei dunklem Farbschema hinterlegt der Browser das helle PayPal-iframe deckend weiß. */
.tk-kino .tk-zahlung {
  color-scheme: light;
}

.tk-kino .ts-karte:not(.tk-abend) input::placeholder {
  color: rgba(251, 243, 228, 0.45);
}

.tk-kino .ts-karte:not(.tk-abend) .tk-bereich input:checked + span {
  background: rgba(236, 193, 115, 0.12);
}

.tk-kino .tk-recht,
.tk-kino .tk-recht a {
  color: rgba(251, 243, 228, 0.75);
}

.tk-abend {
  --text: #fbf3e4;
  --leise: rgba(251, 243, 228, 0.8);
  --akzent: #ecc173;
  color: var(--text);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(236, 193, 115, 0.3);
  background: linear-gradient(160deg, rgba(22, 13, 34, 0.62), rgba(8, 5, 14, 0.4));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.tk-abend h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #f6d9a0;
  background: linear-gradient(180deg, #fff7e6 0%, #f4d08c 55%, #c98a3c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 26px rgba(240, 180, 90, 0.35));
}

.tk-abend .tk-preise strong {
  font-size: clamp(34px, 5vw, 50px);
}

.tk-abend .tk-leistungen li::marker {
  color: var(--akzent);
}

/* Schlicht statt Gold (Wunsch Thomas 02.12.2026): beim Ticketkauf keine goldenen Ränder. */
.tk-kino .tk-abend,
.tk-kino .ts-karte:not(.tk-abend) {
  border-color: rgba(255, 255, 255, 0.12);
}

.tk-kino .ts-karte:not(.tk-abend) .tk-bereich input:checked + span {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
}

.tk-kino input:focus-visible,
.tk-kino button:focus-visible,
.tk-kino .tk-bereich input:focus-visible + span {
  outline: 2px solid rgba(255, 255, 255, 0.85);
}

/* Bereichskacheln mit kleinem Bild (Wunsch Thomas 03.12.2026): Lounge innen, Terrasse mit Feuertisch,
   beide vom Instagram-Konto der White Lounge. Gedrückt halten: die Kachel gibt weich nach, ein Balken
   läuft voll, dann ploppt das Bild groß auf (ticketstelle.js); loslassen schließt es. */
.tk-bereich label {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.tk-bereich span {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.38s ease;
}

.tk-bereich__bild {
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  height: 104px;
  margin: -14px -16px 8px;
  object-fit: cover;
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.38s ease;
}

.tk-bereich__lounge .tk-bereich__bild {
  object-position: 50% 64%;
}

.tk-bereich__terrasse .tk-bereich__bild {
  object-position: 55% 47%;
}

.tk-bereich span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: left;
}

.tk-bereich .ist-gedrueckt span {
  transform: scale(0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.tk-bereich .ist-gedrueckt .tk-bereich__bild {
  transform: scale(1.12);
  filter: brightness(1.15);
}

.tk-bereich .ist-gedrueckt span::after {
  transform: scaleX(1);
  transition: transform var(--halten, 420ms) linear;
}

.tk-gross {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 4, 10, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.tk-gross.ist-offen {
  opacity: 1;
}

.tk-gross figure {
  margin: 0;
  width: min(86vw, 420px);
  opacity: 0;
  transform: scale(0.5);
  transform-origin: var(--von-x, 50%) var(--von-y, 50%);
  transition:
    transform 0.46s cubic-bezier(0.18, 1.35, 0.4, 1),
    opacity 0.18s ease;
}

.tk-gross.ist-offen figure {
  opacity: 1;
  transform: none;
}

.tk-gross img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74vh;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.tk-gross figcaption {
  margin-top: 12px;
  color: #fbf3e4;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .tk-bereich span,
  .tk-bereich__bild,
  .tk-gross figure {
    transition: none;
  }

  .tk-bereich .ist-gedrueckt span,
  .tk-bereich .ist-gedrueckt .tk-bereich__bild {
    transform: none;
  }
}

@media (max-width: 719px) {
  .tk-kino .ts-haupt {
    padding-top: 14px;
  }

  /* Handy: kein Weichzeichner über dem laufenden Video (ruckelte beim Öffnen der Tastatur). */
  .tk-kino .ts-karte:not(.tk-abend) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(160deg, rgba(18, 11, 28, 0.86), rgba(8, 5, 14, 0.78));
  }
}

.tk-gruss {
  font-weight: 700;
}

/* Kopf der Kaufseite im Aussehen des Tickets (Gestaltung „Muster“, Wunsch Thomas 02.12.2026).
   Auf jeder Breite das ganze Ticket im Querformat, am Handy schmal und klein, das Kaufformular
   direkt darunter. Maße in cqw aus dem Ticket (2400 x 998 px, Muster-Maß 1,23). */
.tk-abend.tk-tk {
  padding: 0;
  overflow: hidden;
  background: #07050c;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-shadow: 0 0 1.2cqw rgba(0, 0, 0, 0.8);
}

.tk-tk__rahmen {
  container-type: inline-size;
}

.tk-tk__flaeche {
  position: relative;
  aspect-ratio: 2400 / 998;
}

.tk-abend .tk-tk__bild {
  position: absolute;
  inset: 0;
  margin: 0;
  background: url(ticket-kopf.webp) 0 0 / 100% 100% no-repeat;
  filter: none;
}

.tk-tk__bild span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tk-tk__links,
.tk-tk__rechts,
.tk-tk__preise {
  position: absolute;
  margin: 0;
  padding: 0;
  text-align: center;
}

.tk-tk__links {
  top: 27cqw;
  left: 4.42cqw;
  width: 35cqw;
  text-align: left;
}

.tk-tk__datum {
  margin: 0 0 2.1cqw;
  color: #eadbe6;
  font: 800 2.36cqw/1 Manrope, sans-serif;
  letter-spacing: 0.1cqw;
}

.tk-tk__reihe {
  display: flex;
  gap: 1.67cqw;
}

.tk-tk__kasten {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.75cqw;
  margin: 0;
  padding: 0 0.8cqw;
  border: max(1px, 0.154cqw) solid rgba(255, 255, 255, 0.92);
  background: rgba(8, 6, 14, 0.45);
  color: #fff;
  font: 600 1.33cqw/1.3 Manrope, sans-serif;
  letter-spacing: 0.154cqw;
  text-align: center;
}

.tk-tk__reihe .tk-tk__kasten:first-child {
  width: 18.46cqw;
}

.tk-tk__einlass {
  width: 14.88cqw;
  font-size: 1.64cqw;
}

.tk-tk__klein {
  margin: 1.1cqw 0 0;
  color: #e6dce4;
  font: 500 1.07cqw/1.4 Manrope, sans-serif;
  text-align: center;
}

.tk-tk__rechts {
  top: 5.3cqw;
  left: 75cqw;
  width: 25cqw;
}

.tk-tk__musik {
  margin: 0;
  color: #ead2df;
  font: 600 1.74cqw/1.24 Manrope, sans-serif;
  letter-spacing: 0.154cqw;
}

.tk-tk__leistungen {
  margin: 13.2cqw 0 0;
  padding: 0;
  list-style: none;
  color: #fff;
  font: 700 1.63cqw/1.38 Manrope, sans-serif;
}

.tk-tk__preise {
  top: 31.5cqw;
  left: 49cqw;
  display: flex;
  flex-wrap: wrap;
  gap: 0 5.58cqw;
  width: 47.6cqw;
}

.tk-tk__preis {
  justify-content: space-around;
  width: 21cqw;
  padding: 0 0.6cqw;
  gap: 0.6cqw;
}

.tk-tk__preis span {
  display: grid;
  font-size: 1.64cqw;
  line-height: 1.2;
}

.tk-tk__preis small {
  font-size: 1.23cqw;
  font-weight: 500;
}

.tk-tk__preis strong {
  font: 800 3.38cqw/1 Manrope, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.tk-tk__preise .tk-tk__klein {
  width: 100%;
}

.tk-ticket {
  margin-top: 18px;
}
