/* Oskar Maus Festival — refreshed layout & styles */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --night: #12081f;
  --night-soft: #1e1230;
  --panel: rgba(18, 8, 31, 0.82);
  --white: #faf7f2;
  --muted: #c4b8d4;
  --fire: #e85d04;
  --gold: #f4a261;
  --emerald: #2a9d8f;
  --violet: #7b5ea7;
  --rainbow: linear-gradient(
    90deg,
    #e63946 0%,
    #f4a261 18%,
    #e9c46a 36%,
    #2a9d8f 54%,
    #457b9d 72%,
    #7b5ea7 100%
  );
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --max-width: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(232, 93, 4, 0.18), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(123, 94, 167, 0.22), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(42, 157, 143, 0.16), transparent 45%),
    var(--night);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--white);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(18, 8, 31, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
}

.brand:hover {
  color: var(--white);
}

.brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rainbow);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--night);
  box-shadow: var(--shadow);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.brand__tagline {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--gold);
}

/* ── Hero carousel ── */

.hero {
  padding: 2rem 0 1rem;
}

.carousel {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide {
  flex: 0 0 100%;
  min-height: clamp(420px, 62vh, 560px);
  position: relative;
  display: grid;
  align-items: end;
}

.carousel__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(18, 8, 31, 0.2), rgba(18, 8, 31, 0.78));
  pointer-events: none;
}

.carousel__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 520px);
  margin: 0 0 2.5rem auto;
  padding: 1.75rem 2rem;
  background: var(--panel);
  border-left: 4px solid var(--slide-accent, var(--gold));
  border-radius: var(--radius) 0 0 var(--radius);
  backdrop-filter: blur(8px);
}

.carousel__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  line-height: 1;
}

.carousel__content p {
  margin: 0;
  color: #ece4f7;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(18, 8, 31, 0.72);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__btn:hover {
  background: rgba(232, 93, 4, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.carousel__btn--prev {
  left: 1rem;
}

.carousel__btn--next {
  right: 1rem;
}

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  z-index: 2;
}

.carousel__dot {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel__dot.is-active {
  background: var(--gold);
  transform: scale(1.15);
}

/* slide accent colors */
.slide--konzerte { --slide-accent: #2a9d8f; }
.slide--performance { --slide-accent: #e63946; }
.slide--workshops { --slide-accent: #f4a261; }
.slide--juggling { --slide-accent: #e85d04; }
.slide--interaktiv { --slide-accent: #457b9d; }
.slide--kunst { --slide-accent: #7b5ea7; }
.slide--markt { --slide-accent: #e9c46a; }
.slide--gelaende { --slide-accent: #a3b18a; }
.slide--trailer { --slide-accent: #a8dadc; }

/* ── Intro ── */

.intro {
  padding: 3.5rem 0 2rem;
}

.intro__card {
  padding: 2.25rem 2.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(123, 94, 167, 0.18), rgba(232, 93, 4, 0.12)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.intro__card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro__card p {
  margin: 0;
  color: #ddd3ea;
  max-width: 72ch;
}

/* ── Artists ── */

.section {
  padding: 3rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.03);
}

.section__lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 2rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: 0.08em;
  margin: 0 0 1.5rem;
  color: var(--gold);
}

.artist-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  min-height: 180px;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(244, 162, 97, 0.35);
}

.artist-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(18, 8, 31, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.artist-tag:hover {
  color: var(--white);
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(232, 93, 4, 0.25);
}

.artist-tag--lg { font-size: 1.15rem; }
.artist-tag--md { font-size: 1rem; }
.artist-tag--sm { font-size: 0.9rem; opacity: 0.92; }

/* ── Gallery grid ── */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  margin: 0;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item--wide {
  grid-column: span 6;
  aspect-ratio: 16 / 10;
}

.gallery__item--square {
  grid-column: span 4;
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.75rem;
  background: linear-gradient(transparent, rgba(18, 8, 31, 0.9));
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── Gallery CTA ── */

.gallery-cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.gallery-cta__panel {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: center / cover no-repeat;
}

.gallery-cta__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 8, 31, 0.9), transparent 55%);
}

.gallery-cta__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 1.75rem;
}

.gallery-cta__body h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.gallery-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--fire);
  color: var(--white);
}

.btn--primary:hover {
  background: #d45103;
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--night);
}

/* ── News cards ── */

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.news-card {
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  background: rgba(250, 247, 242, 0.96);
  color: #241634;
  box-shadow: var(--shadow);
}

.news-card h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  color: var(--fire);
}

.news-card p {
  margin: 0;
}

.news-card a {
  color: #7b5ea7;
  font-weight: 700;
}

.news-card a:hover {
  color: var(--fire);
}

/* ── Footer ── */

.footer {
  margin-top: 2rem;
  padding: 3.5rem 0 2rem;
  background: rgba(0, 0, 0, 0.35);
  border-top: 3px solid transparent;
  border-image: var(--rainbow) 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 2rem;
}

.footer__brand-box {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #333;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.footer__brand-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.footer__brand-box span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.footer__nav h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
}

.footer__nav h3 a {
  color: var(--white);
}

.footer__nav h3 a:hover {
  color: var(--gold);
}

.footer__divider {
  height: 3px;
  margin: 0.35rem 0 0.85rem;
  background: var(--rainbow);
  opacity: 0.55;
  border-radius: 999px;
}

.footer__contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer__contact strong {
  color: var(--white);
}

.footer__copy {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #8a7a9e;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 1rem 1rem 1.25rem;
    background: rgba(18, 8, 31, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .carousel__content {
    width: calc(100% - 2rem);
    margin-inline: 1rem;
  }

  .gallery__item--wide,
  .gallery__item--square {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
  }

  .gallery-cta {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item--wide,
  .gallery__item--square {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .gallery__item--wide:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }

  .carousel__btn {
    display: none;
  }

  .intro__card,
  .news-card {
    padding: 1.35rem 1.25rem;
  }

  .carousel__content {
    margin-bottom: 3rem;
    padding: 1.25rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel__track {
    transition: none;
  }
}
