/* only.css */

:root {
  --clr-red: #e00015;
  --clr-red2: #c00012; /* Etwas dunkleres Rot */
  --clr-blk: #111;
  --clr-wht: #fff;
  --clr-bgw: #f7f7f7;
  --clr-bgs: #000;
}

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

:target {
  scroll-margin-top: 100px; /* Offset nach unten */
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--clr-blk);
  color: var(--clr-wht);
}

body {
  line-height: 1.6;
}

/* Layout */

.page {
  padding: 32px 24px 64px;
  max-width: 1080px;
  margin: 0 auto;
}

.section {
  margin-bottom: 64px;
}

.section:first-child {
  border-bottom: 5px solid var(--clr-red);
  padding-bottom: 1em;
  font-size: 1.5em;
}

.section-tight,
.section--tight {
  margin-bottom: 32px;
  text-align: center;
}

.strike-through {
  text-decoration: line-through;
}
.section__heading {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.5em;
  margin-bottom: 16px;
}

.section-intro,
.section-more {
  font-size: 24px;
}
.section-more {
  margin-block-start: 3em;
  border-top: 5px solid var(--clr-red);
}
.section-centered {
  text-align: center;
  justify-content: center;
}

.section__kontakt {
  font-size: 1em;
}

/* Box-Titel wie im PDF */

.box-label {
  display: inline-block;
  border: 2px solid var(--clr-bgs);
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
}

/* Hero / Home */

.hero {
  text-align: center;
  padding: 72px 16px 56px;
}

.hero.hero.section {
  border-bottom: none;
}

.hero__logo {
  display: block;
  margin: 32px auto 32px;
  width: 50vw;
  max-width: 420px;
  height: auto;
}

@media (max-width: 900px) {
  .hero__logo {
    width: 70vw;
    max-width: none;
  }
}

.hero__tagline {
  display: inline-block;
  color: var(--clr-wht);
  border: 5px solid var(--clr-red);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1em;
  font-weight: 900;
  line-height: 1.5;
  padding: 0.5em 1ex;
  vertical-align: middle;
}

/* Intro zwei Spalten */

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: .75em 0 0;
}

/* Event / Posters */

.event {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .event {
    grid-template-columns: 1fr;
  }
}

.event__poster {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.event__poster:not(:has(img)) {
  border: 2px solid black;
  background: var(--clr-bgw);
}
@media (max-width: 900px) {
  .event__poster {
    max-width: calc(100% - 24px);
  }
}

.event__img {
  max-width: 100%;
  height: auto;
  display: block;
}
.event__lineup {
  font-size: 24px;
}
.event__lineup h2 {
  margin: 0 0 8px;
  font-size: 2em;
  letter-spacing: 0.12em;
}

.event__lineup h3 {
  margin: 12px 0 4px;
  font-size: 1.25em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event__lineup h4 {
  margin: 0;
}

.event__lineup p {
  margin: 4px 0;
  font-size: 1em;
}

.previous-event {
  font-size: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}

.previous-event .event__poster {
  width: 100%;
  max-width: 600px;
  width: min(100%, 600px);
}

.previous-event .event__lineup {
  font-size: 16px;
}


.previous-event p {
  font-size: 16px;
}

/* Links / Calls-to-Action */

.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.link-pill {
  display: inline-block;
  border: 2px solid var(--clr-wht);
  padding: 1ex 2ex;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1em;
  color: var(--clr-wht);
}

.link-pill:hover,
.link-pill:active,
.link-pill.active {
  background-color: var(--clr-red);
}

.link-pill.pill-more.pill-more.pill-more {
  font-size: 0.7em;
  background-color: var(--clr-red);
  padding: 0.3ex 1ex;
}

.link-pill.link-small {
  font-size: 0.7em;
}

.link-pill--primary {
  background: var(--clr-red);
  color: var(--clr-wht);
}

a.link {
  color: var(--clr-wht);
  text-decoration: underline;
}

a.link:hover {
  text-decoration: none;
}

/* Künstler / DJ / Art Karten */

.person-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: 24px;
}

/* Grund-Grid: 2 Spalten, 2 Zeilen */
.person {
  display: grid;
  grid-template-rows: auto auto; /* Inhalt, Button */
  gap: 32px 32px;
  align-items: start;
}

/* UNGERADE Personen: [BILD] [TEXT] */
.person:nth-child(odd) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); /* SCHMAL | BREIT */
  grid-template-areas:
    "bild text"
    "more more";
}

/* GERADE Personen: [TEXT] [BILD] */
.person:nth-child(even) {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr); /* SCHMAL | BREIT */
  grid-template-areas:
    "text bild"
    "more more";
}

/* Bild - immer schmal */
.person__image {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  text-align: center;
  align-self: flex-start;
}

.person__image:has(img) {
  border: 5px solid var(--clr-red);
  background-color: var(--clr-bgw);
  background-image: url(/imgs/bg-pixel.png);
  background-repeat: repeat;
}

.person__image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text - immer breit, WICHTIG: grid-area: text */
.person__content {
  grid-area: text; /* DAS FEHLT BEI DIR! */
  align-self: flex-start;
}

.person__content h2 {
  margin: 0 0 6px;
  font-size: 1em;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.person__subtitle {
  font-size: 1.5ex;
  margin-bottom: 8px;
}

.person__links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* More Button - IMMER über beide Spalten, WICHTIG: grid-area: more */
.link-pill.pill-more {
  grid-area: more; /* DAS FEHLT AUF DESKTOP BEI DIR! */
  justify-self: center; /* Mittig */
  margin-top: 0;
  display: inline-block;
}

/* Mobile */
@media (max-width: 900px) {
  .person,
  .person:nth-child(odd),
  .person:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "bild"
      "text"
      "more";
    gap: 20px;
  }

  .link-pill.pill-more {
    justify-self: center;
  }
}

/* Kontakt-Kasten */

.contact-box {
  display: inline-block;
  border: 2px solid currentColor;
  padding: 18px 26px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.5em;
  background: var(--clr-blk);
}

/* Footer */

.site-footer {
  border-top: 2px solid var(--clr-red);
  padding: 32px 24px 40px;
  text-align: center;
  background: var(--clr-blk);
  margin-top: 40px;
}

.site-footer__logo {
  width: 160px;
  max-width: 40vw;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}

.site-footer__text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* kleine Hilfsklassen */

.text-center {
  text-align: center;
}

.text-small {
  font-size: 2ex;
}

.contact-box a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: 12px 0;
}

.contact-box a:hover {
  opacity: 0.8;
}

.email-hint {
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-top: 8px;
}

.dib {
  display: inline-block !important;
  text-align: center;
}

/* -- video -- */
.video {
  margin: 1ex 0 1em;
}

.video .section__heading {
  font-size: 1em;
  margin-bottom: 1ex;
	text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  margin: auto;
  background: var(--clr-bgs);
  overflow: hidden;
  cursor: pointer;
}

.video-container video {
  width: 100%;
  display: block;
}

.video-container .controls-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--clr-bgs);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Zeige Buttons bei Hover */
.video-container:hover .controls-overlay {
  opacity: 1;
}

.video-container .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--clr-red);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none; /* Standardmäßig versteckt, wenn Video läuft */
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-container .play-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent var(--clr-wht);
}

.video-container .mute-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--clr-bgw);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lautsprecher Symbol (sehr simpel via CSS) */
.video-container .mute-btn.muted::after {
  content: "🔇";
}

.video-container .mute-btn:not(.muted) {
  background: var(--clr-red) !important;
}
.video-container .mute-btn:not(.muted)::after {
  content: "🔊";
  filter: brightness(0) invert(1);
}

.play-btn:hover {
  background: var(--clr-bgw);
}
.play-btn:hover::before {
  border-color: transparent transparent transparent var(--clr-red2);
}
.play-btn.paused:hover::before {
  border-color: var(--clr-red2);
}
