/*
 * auTark – Theme-Styles.
 *
 * Maße, Farben und Abstände sind an der gerenderten Live-Seite gemessen (getComputedStyle,
 * getBoundingClientRect bei 1440×900 und 390×844). Umbrüche wie Live:
 *   1140 px  Kopf wird 200 px hoch, Inhalt bekommt Seitenränder
 *   1024 px  Hintergrundvideo aus, nur das Deko-Bild oben
 *    767 px  Menü 280 statt 300 px breit, Footer untereinander
 */

/* ---------------------------------------------------------------- Schriften */

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/comfortaa-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/comfortaa-latin-400-normal.woff2') format('woff2');
}

/* Live lädt nur 300, 400 und 700; Angaben wie 600 (Menü) fallen deshalb wie dort auf 700. */
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/comfortaa-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Monoton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/monoton-latin-400-normal.woff2') format('woff2');
}

/* ---------------------------------------------------------------- Grundlagen */

:root {
  --autark-light: rgba(218, 222, 208, 0.88); /* Schriftzug, Hamburger-Icon */
  --autark-text: #6c6c6c;                    /* Fließtext (Booking) */
  --autark-muted: #8c8e91;                   /* Footer */
  --autark-menu: #7f7f7f;                    /* Menüpunkte */
  --autark-line: rgba(128, 128, 128, 0.2);   /* Trennlinien im Menü */
  --autark-header: 88px;
  --autark-panel: 300px;
  --autark-ease: ease-in-out;
}

html {
  background: #000;
}

body {
  margin: 0;
  background: #000;
  color: #777;
  font-family: 'Comfortaa', sans-serif;
  font-size: 14px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--autark-light);
  outline-offset: 2px;
}

[tabindex='-1']:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 8px 12px;
  background: #000;
  color: var(--autark-light);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Seite: wird beim Öffnen des Menüs nach links geschoben (Live: 300 px, 0,3 s). */
.site {
  position: relative;
  transition: transform 0.3s var(--autark-ease);
}

.menu-open .site {
  transform: translateX(calc(-1 * var(--autark-panel)));
}

/* ---------------------------------------------------------------- Kopf und Hamburger */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--autark-header);
  pointer-events: none;
}

/* Icon 18×18 bei x = 20, y = 36 (Desktop) bzw. x = 10, y = 92 (bis 1140 px); Knopf mit 10 px Rand drumherum. */
.menu-toggle {
  position: absolute;
  top: calc(var(--autark-header) / 2 - 18px);
  left: 10px;
  display: block;
  margin: 0;
  padding: 10px;
  border: 0;
  background: none;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  pointer-events: auto;
}

.menu-toggle__icon {
  display: block;
  width: 18px;
  height: 18px;
}

.menu-toggle__icon span {
  position: relative;
  top: 0;
  display: block;
  height: 3px;
  margin-bottom: 3px;
  border-radius: 3px;
  background: var(--autark-light);
  transition: all 0.2s ease;
}

.menu-toggle__icon span:nth-child(2) {
  transition: opacity 0.1s ease;
}

.menu-open .menu-toggle__icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle__icon span:nth-child(3) {
  top: -6px;
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- Menü (fährt von rechts herein) */

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  box-sizing: border-box;
  width: var(--autark-panel);
  height: 100%;
  padding-top: 80px;
  overflow: auto;
  background: #000;
  color: #eee;
  font-size: 12px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s var(--autark-ease), visibility 0s linear 0.3s;
}

.menu-open .menu-panel {
  transform: none;
  visibility: visible;
  transition: transform 0.3s var(--autark-ease), visibility 0s;
}

.admin-bar .menu-panel {
  top: var(--wp-admin--admin-bar--height, 32px);
  height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

.menu-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-panel__list {
  position: relative;
  margin: 20px 20px 40px !important;
  border-bottom: 2px solid var(--autark-line);
}

.menu-panel__list > li {
  position: relative;
  border-top: 2px solid var(--autark-line);
}

.menu-panel a {
  display: block;
  padding: 15px 20px 15px 0;
  color: var(--autark-menu);
  font-size: 13px;
  font-weight: 600;
  line-height: 23.24px;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
}

.menu-panel a:hover {
  color: #fff;
}

.menu-panel .sub-menu {
  overflow: hidden;
  border-top: 2px solid var(--autark-line);
}

.menu-panel .sub-menu a {
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
}

.menu-panel .sub-menu li:not(:last-child)::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--autark-line);
}

.menu-panel__sub-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--autark-menu);
  cursor: pointer;
  opacity: 0.7;
}

.menu-panel__sub-toggle:hover {
  opacity: 1;
}

.menu-panel__sub-toggle svg {
  fill: currentColor;
}

/* ---------------------------------------------------------------- Bühne (Deko-Hintergrund) */

/*
 * Höhe wie Live: mindestens fensterhoch (bis 1140 px ohne Kopfbereich, siehe Umbrüche) und
 * mindestens so hoch wie der Platzhalter ::before. Inhalt (Schriftzug der Startseite) senkrecht mittig.
 */
.stage {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: max(var(--stage-min, 100px), 100vh);
  overflow: hidden;
  background: #000;
}

/*
 * Platzhalter in Größe des Deko-Bilds (Live: unsichtbares Bild „mk-adaptive-image“): höchstens
 * fensterbreit, sonst Originalbreite, Höhe nach Seitenverhältnis, höchstens 600 px. Hebt die Bühne
 * nur, wenn das Fenster niedrig ist (Tablet quer: REC 575, PLAY 589 px). Die Mindesthöhe steckt
 * schon in der Bühne selbst (dort samt Rand der Startseite). Der negative Rand nimmt den
 * Platzhalter aus der Breite heraus, damit der Inhalt wie ohne ihn mittig steht.
 */
.stage::before {
  flex: none;
  align-self: flex-start;
  width: min(100%, var(--stage-image-width, 0px));
  margin-right: calc(-1 * min(100%, var(--stage-image-width, 0px)));
  aspect-ratio: var(--stage-image-ratio, auto);
  max-height: 600px;
  visibility: hidden;
  content: "";
}

/* Startseite: Live hat hier 1 px Abstand oben und einen schwarzen Rand oben und unten. */
.front {
  padding-top: 1px;
}

.stage--start {
  border-block: 1px solid #000;
}

.stage__media,
.stage__image,
.stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Deko-Bild in voller Breite oben (Live: background-size contain, center top); am Desktop sichtbar, bis das Video läuft. */
.stage__image {
  object-fit: contain;
  object-position: center top;
}

.stage__video {
  display: none;
  object-fit: cover;
}

@media (min-width: 1025px) {
  .stage__video {
    display: block;
  }
}

/* Schriftzug der Startseite: 150 px Leerraum darüber, im Raster 1140 px, senkrecht mittig. */
.stage__content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 150px;
}

.stage__column {
  display: flow-root;
  padding: 0 15px;
}

/* Pfeil „weiter“ unten mittig (Live: dunkler Kreis, 50 px). */
.stage__next {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  margin-left: -26px;
  border: 2px solid #333;
  border-radius: 50%;
  opacity: 0.9;
  transition: all 0.2s ease-out;
}

.stage__next svg {
  fill: #333;
  transform: translateY(2px);
  transition: all 0.2s ease-out;
}

.stage__next:hover {
  opacity: 1;
}

.stage__next:hover svg {
  transform: translateY(5px);
}

/* ---------------------------------------------------------------- Seiteninhalt */

/*
 * Wie Live (gemessen auf STOP und PLAY bei 1440, 1141, 1140, 1024, 961, 960, 767 und 390 px): Spalte
 * im Raster 1140 px mit 20 px links und 50 px rechts, bis 1140 px je 20 px, bis 960 px je 35 px Rand
 * (siehe Umbrüche).
 */
.page-content {
  display: flow-root;
  box-sizing: border-box;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 50px 0 20px;
}

.page-content p {
  margin: 0 0 20px;
  color: var(--autark-text);
  font-size: 15px;
  line-height: 1.66;
}

/* Textstile aus dem Block-Editor (functions.php, register_block_style). */
.is-style-autark-schriftzug {
  margin: 0 0 20px;
  color: var(--autark-light);
  font-family: 'Monoton', sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.66;
  text-align: left;
}

.is-style-autark-gross,
.is-style-autark-gross-duenn {
  margin: 0 0 20px;
  color: var(--autark-light);
  font-size: 43px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
}

.is-style-autark-gross-duenn {
  font-weight: 300;
  text-align: justify;
}

.stage .is-style-autark-schriftzug {
  font-size: 56px;
  line-height: 1;
}

.page-content .is-style-autark-gross,
.page-content .is-style-autark-gross-duenn {
  color: var(--autark-light);
  font-size: 43px;
  line-height: 1;
}

/* Einblenden wie Live (animate.css-Effekte, 1 s): Startseite beim Laden, sonst beim Hereinscrollen. */
@keyframes autark-fade-in-down {
  from { opacity: 0; transform: translate3d(0, -100%, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes autark-fade-in-up {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes autark-fade-in-left {
  from { opacity: 0; transform: translate3d(-100%, 0, 0); }
  to { opacity: 1; transform: none; }
}

.js .stage .is-style-autark-schriftzug {
  animation: autark-fade-in-down 1s both;
}

.js .stage .is-style-autark-gross,
.js .stage .is-style-autark-gross-duenn {
  animation: autark-fade-in-up 1s both;
}

.js .page-content .is-style-autark-schriftzug {
  opacity: 0;
}

.js .page-content .is-style-autark-schriftzug.is-visible {
  animation: autark-fade-in-left 1s both;
}

/* ---------------------------------------------------------------- Songlisten (REC, FEATURES) */

/*
 * Player wie Live (gemessen bei 1440, 1024, 960 und 390 px): je Song ein schwarzer Block 170 px hoch,
 * 30 px Abstand. Breite im Raster 1140 px mit 20 px links und 50 px rechts; bis 1140 px je 20 px Rand,
 * bis 960 px je 35 px.
 */
.songs-page {
  display: flow-root;
}

.songs {
  box-sizing: border-box;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 50px 0 20px;
  list-style: none;
}

/* FEATURES: auf Live über die volle Fensterbreite, bei jeder Breite. */
.songs.songs--breit {
  max-width: none;
  padding: 0;
}

.song {
  position: relative;
  height: 170px;
  margin: 0 0 30px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 23.24px;
}

.song__audio {
  display: none;
}

/* Ohne JavaScript: das native Audio-Element statt des eigenen Players. */
html:not(.js) .song {
  height: auto;
}

html:not(.js) .song__audio {
  display: block;
  width: 100%;
}

html:not(.js) .song__player {
  display: none;
}

.song__player {
  position: relative;
  height: 100%;
}

.song__time {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

/* Live: text-transform capitalize, daher „Feat.“ statt „feat.“. */
.song__title {
  position: absolute;
  top: 40px;
  left: 10px;
  text-transform: capitalize;
}

/* Fortschritt über die ganze Breite oben; auf Live schwarz auf schwarz und damit unsichtbar. */
.song__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.song__bar {
  width: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Lautstärke unten rechts: Lautsprecher und sieben Balken, die hellen zeigen den Wert (Start 80 %). */
.song__volume {
  position: absolute;
  top: 146px;
  right: 10px;
  z-index: 20;
  width: 26px;
  height: 14px;
  cursor: pointer;
}

.song__volume svg {
  display: block;
}

/* Live (jPlayer) blendet die Lautstärke auf Handy und Tablet aus; hier über die Eingabeart statt den Browsernamen. */
@media (hover: none) and (pointer: coarse) {
  .song__volume {
    display: none;
  }
}

.song__volume-icon {
  position: absolute;
  left: -12px;
  bottom: -2px;
  fill: #252525;
}

.song__volume-bars {
  fill: #0e0e0e;
}

.song__volume-value {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  overflow: hidden;
}

.song__volume-value .song__volume-bars {
  fill: #171717;
}

/* Runder Play-/Pause-Knopf, 48 px, Mitte leicht links (Live: left 50 %, margin-left -28 px). */
.song__toggle {
  position: absolute;
  top: 71px;
  left: calc(50% - 28px);
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid #252525;
  border-radius: 50px;
  background: none;
  fill: #252525;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out, fill 0.15s ease-in-out;
}

.song__toggle:hover {
  border-color: #fff;
  fill: #fff;
}

.song__icon {
  position: absolute;
  top: 13.17px;
  left: 18.72px;
}

.song__icon--pause {
  left: 16px;
  display: none;
}

.song.is-playing .song__icon--play {
  display: none;
}

.song.is-playing .song__icon--pause {
  display: block;
}

/*
 * Ladezustand (nicht auf Live, Issue #28): nur wenn der Start nach dem Klick spürbar wartet.
 * Der Rand des Knopfs pulsiert dezent zwischen seinem Grau und einem helleren Grau; ohne
 * Bewegung (prefers-reduced-motion) steht er still auf dem helleren Grau.
 */
.song.is-loading .song__toggle {
  border-color: #777;
}

@media (prefers-reduced-motion: no-preference) {
  .song.is-loading .song__toggle {
    animation: song-laedt 0.8s ease-in-out infinite alternate;
  }
}

@keyframes song-laedt {
  from {
    border-color: #252525;
  }

  to {
    border-color: #999;
  }
}

/* ---------------------------------------------------------------- Termine (PLAY) */

/*
 * Ränder wie .page-content. Abstände nach unten wie Live: Überschrift, Titel, Datum, Adresse,
 * Uhrzeit je 20 px, Flyer 35 px, Knopf 15 px.
 */
.page-content.termine {
  padding-bottom: 2px; /* Live hat unter dem Knopf noch zwei leere Zeilen à 1 px */
}

.termine .is-style-autark-schriftzug {
  font-size: 32px;
}

.termin + .termin {
  margin-top: 35px;
}

.termin__flyer {
  margin: 0 0 35px;
}

.termin__flyer-bild {
  display: block;
  width: auto;
  max-width: min(100%, 540px);
  height: auto;
  border-radius: 4px;
}

.termine .termin__titel,
.termine .termin__datum,
.termine .termin__ort,
.termine .termin__uhrzeit {
  margin: 0 0 20px;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 400;
  line-height: 1.66;
  text-align: justify;
}

.termine .termin__titel {
  color: var(--autark-light);
  font-size: 33px;
}

.termine .termin__datum {
  color: var(--autark-light);
  font-size: 22px;
}

.termine .termin__ort {
  color: var(--autark-text);
  font-size: 12px;
}

.termine .termin__uhrzeit {
  color: #777;
  font-size: 12px;
  text-align: left;
}

.termine .termin__link {
  margin: 0 0 15px;
  line-height: 0;
}

.termin__button {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid #777;
  color: var(--autark-light);
  font-size: 10px;
  font-weight: 700;
  line-height: 10px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.1s ease-in-out, background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;
}

.termin__button:hover,
.termin__button:focus-visible {
  background-color: #777;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.js .termin__titel,
.js .termin__datum {
  opacity: 0;
}

.js .termin__titel.is-visible {
  animation: autark-fade-in-down 1s both;
}

.js .termin__datum.is-visible {
  animation: autark-fade-in-up 1s both;
}

@media (max-width: 767px) {
  .termine .termin__link {
    text-align: center;
  }
}

/* ---------------------------------------------------------------- Fotoseite (PAUSE): Galerie und Lightbox */

/*
 * Galerie-Block von WordPress (core/gallery) in der Inhaltsspalte wie der Text auf STOP. Spalten
 * kommen vom Block (Standard: 3, unter 600 px 2); Abstand 20 px wie zwischen den übrigen Inhalten.
 */
.page-content .wp-block-gallery {
  /* Vorgabe für den Abstand, den WordPress je Galerie als --wp--style--unstable-gallery-gap setzt. */
  --wp--style--gallery-gap-default: 20px;
  gap: 20px;
  margin: 0 0 20px;
}

.page-content .wp-block-gallery .wp-block-image img {
  border-radius: 4px; /* wie die Flyer auf PLAY */
}

/* Bildunterschriften (falls Gordon welche einträgt) in der Textfarbe der Seite. */
.page-content .wp-element-caption,
.page-content .wp-block-gallery .wp-block-image figcaption {
  color: var(--autark-light);
  font-size: 12px;
}

/* Vergrößerung: dunkel statt weiß (ohne theme.json setzt WordPress #fff/#000 als Inline-Stil). */
.wp-lightbox-overlay .scrim {
  background-color: #000 !important;
}

.wp-lightbox-overlay .wp-lightbox-close-button,
.wp-lightbox-overlay .wp-lightbox-navigation-button {
  color: var(--autark-light);
  fill: var(--autark-light) !important;
}

/*
 * Ganzes Foto statt Kachel-Ausschnitt (Issue #21): Rahmen und Bild im Seitenverhältnis der
 * Originaldatei, Maße aus assets/js/lightbox.js. Ohne Skript gelten die Maße von WordPress.
 * WordPress setzt am Bild inline object-fit: cover; contain schneidet auch bei Rundungsresten nichts ab.
 */
.wp-lightbox-overlay .lightbox-image-container {
  width: var(--autark-lightbox-width, var(--wp--lightbox-container-width));
  height: var(--autark-lightbox-height, var(--wp--lightbox-container-height));
}

.wp-lightbox-overlay .wp-block-image img {
  width: var(--autark-lightbox-width, var(--wp--lightbox-image-width));
  height: var(--autark-lightbox-height, var(--wp--lightbox-image-height));
  min-width: var(--autark-lightbox-width, var(--wp--lightbox-image-width));
  min-height: var(--autark-lightbox-height, var(--wp--lightbox-image-height));
  object-fit: contain !important;
}

/*
 * Überblenden statt Zoom aus der Kachel: Der Zoom von WordPress skaliert den Rahmen aus Größe und
 * Lage der Kachel; mit anderem Seitenverhältnis als die Kachel würde das Bild am Ende springen.
 */
@media not (prefers-reduced-motion) {
  .wp-lightbox-overlay.zoom.active .lightbox-image-container {
    animation: autark-lightbox-ein 0.4s;
  }

  .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container {
    animation: autark-lightbox-aus 0.4s;
  }
}

@keyframes autark-lightbox-ein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Beim Schließen ist die Lightbox selbst schon unsichtbar; der Rahmen bleibt bis zum Ende sichtbar. */
@keyframes autark-lightbox-aus {
  from {
    opacity: 1;
    visibility: visible;
  }
  99% {
    opacity: 0;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 599px) {
  .page-content .wp-block-gallery {
    --wp--style--gallery-gap-default: 10px;
    gap: 10px;
  }
}

/* ---------------------------------------------------------------- Videos (VHS) */

/*
 * Wie Live (gemessen bei 1440, 1024, 768 und 390 px): Videos untereinander in der Spalte von
 * .page-content, je 16:9 über die volle Spaltenbreite (1440 px: 1070 × 602), das erste direkt unter
 * der Bühne, dann 66 und 55 px Abstand, unten 55 px. Statt des Vimeo-Players zunächst das
 * Vorschaubild mit Play-Symbol und Hinweis (Zwei-Klick-Lösung).
 */
.vhs {
  padding-bottom: 55px;
}

.vhs__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vhs__video:nth-child(2) {
  margin-top: 66px;
}

.vhs__video:nth-child(n + 3) {
  margin-top: 55px;
}

.vhs__start,
.vhs__player {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.vhs__start {
  position: relative;
  padding: 0;
  background: #000;
  color: var(--autark-light);
  font: inherit;
  cursor: pointer;
}

.vhs__bild {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play-Symbol mittig: Kreis wie der Pfeil „weiter“ der Bühne, hell auf dem Bild. */
.vhs__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0.85;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.vhs__play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  fill: currentColor;
}

.vhs__start:hover .vhs__play,
.vhs__start:focus-visible .vhs__play {
  opacity: 1;
  transform: scale(1.06);
}

.vhs__start:focus-visible {
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .vhs__play {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
  }

  .vhs__play svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
  }
}

/* Datenschutzhinweis unten, klein und gedämpft. */
.vhs__hinweis {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--autark-muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  padding-top: 81px; /* Live: 20 px + leere Footer-Spalten (61 px) */
  background: #000;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
  max-width: 1140px;
  margin: 0 auto;
}

.site-footer__copyright {
  margin: 0;
  padding: 25px 0 20px;
  color: var(--autark-muted);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 1px;
  opacity: 0.8;
}

.site-footer__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list a {
  display: block;
  margin: 25px 12px 20px;
  color: var(--autark-muted);
  font-size: 12px;
  line-height: 16px;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.15s ease-in-out;
}

.site-footer__list a:hover {
  opacity: 1;
}

/* ---------------------------------------------------------------- Pfeil „nach oben“ */

/*
 * Live (Jupiter „mk-go-top“): 45×45, Hintergrund schwarz mit 20 % Deckkraft (Hover 30 %), eckig,
 * weißer Chevron 16×16 bei 15/15. Ausgeblendet rechts außerhalb des Fensters (-60 px) und
 * durchsichtig; ab mehr als 400 px Scrollhöhe (.is-active, assets/js/theme.js) gleitet er in 0,2 s
 * auf 15 px vom rechten und unteren Rand. Über Menü und Footer (Live: z-index 300).
 * Anders als Live ist er ausgeblendet auch unsichtbar für Tastatur und Screenreader (visibility).
 */
.nach-oben {
  position: fixed;
  right: -60px;
  bottom: 15px;
  z-index: 300;
  display: block;
  width: 45px;
  height: 45px;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition:
    right 0.2s ease-in-out,
    bottom 0.2s ease-in-out,
    opacity 0.2s ease-in-out,
    background-color 0.2s ease-in-out,
    visibility 0s linear 0.2s;
}

.nach-oben.is-active {
  right: 15px;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.nach-oben:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Chevron, Strichstärke wie das Live-Icon (3,2 px), spitz oben. */
.nach-oben svg {
  position: absolute;
  top: 15px;
  left: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.23;
}

@media print {
  .nach-oben {
    display: none;
  }
}

/* ---------------------------------------------------------------- Umbrüche */

@media (max-width: 1140px) {
  :root {
    --autark-header: 200px;
  }

  .menu-toggle {
    left: 0;
  }

  .stage {
    min-height: max(var(--stage-min, 100px), calc(100vh - 200px));
  }

  /* Schriftzug als Block mittig, so breit wie seine längste Zeile (Live: Flex-Element mit Rand 20 px). */
  .stage__content {
    width: auto;
    padding-inline: 20px;
  }

  .page-content {
    padding-inline: 20px;
  }

  .songs {
    padding: 0 20px;
  }

  .site-footer__bar {
    padding: 0 20px;
  }

  /* Pfeil „nach oben“: Live blendet ihn hier an Ort und Stelle ein (22 px rechts) und schiebt ihn 57 px hoch. */
  .nach-oben,
  .nach-oben.is-active {
    right: 22px;
  }

  .nach-oben.is-active {
    bottom: 72px;
  }
}

@media (max-width: 960px) {
  .page-content {
    padding-inline: 35px;
  }

  .songs {
    padding: 0 35px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 164px; /* Live: die vier leeren Footer-Spalten stehen untereinander */
  }
}

@media (max-width: 767px) {
  :root {
    --autark-panel: 280px;
  }

  .site-footer__bar {
    display: flow-root;
    padding: 0;
  }

  .site-footer__copyright {
    padding: 10px 10px 5px;
    text-align: center;
  }

  .site-footer__list {
    display: block;
    text-align: center;
  }

  .site-footer__list a {
    margin: 5px auto;
  }
}

/* ---------------------------------------------------------------- Bewegung reduzieren */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site,
  .menu-panel,
  .menu-open .menu-panel,
  .menu-toggle__icon span,
  .stage__next,
  .stage__next svg,
  .song__toggle,
  .termin__button,
  .vhs__play,
  .nach-oben {
    transition: none;
  }

  .js .stage .is-style-autark-schriftzug,
  .js .stage .is-style-autark-gross,
  .js .stage .is-style-autark-gross-duenn,
  .js .page-content .is-style-autark-schriftzug,
  .js .page-content .is-style-autark-schriftzug.is-visible,
  .js .termin__titel,
  .js .termin__datum,
  .js .termin__titel.is-visible,
  .js .termin__datum.is-visible {
    opacity: 1;
    animation: none;
  }

  /* Kein Video, das Deko-Bild bleibt stehen. */
  .stage__video {
    display: none !important;
  }
}
