:root {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #0b0b10;
  background-color: #0b0b10;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

html {
  background: #0b0b10;
}

body {
  margin: 0;
  background: #0b0b10;
  color: #16171b;
}

a {
  color: inherit;
}

.hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 20% 20%, #6c3a1c, #3b1d0c 65%, #1d0b04 100%);
  padding: 3rem 1.5rem 4rem;
  color: #f8e9d3;
  position: relative;
}

.hero__brand {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
}

.hero__brand img {
  width: clamp(120px, 18vw, 200px);
  height: auto;
  display: block;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero .lead {
  color: rgba(248, 233, 211, 0.92);
}

.hero h1 {
  color: #fff7ec;
}

.hero .cta {
  background: #111118;
  color: #fff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.hero .cta:hover {
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
}

h1 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  margin-bottom: 0.4rem;
}

.lead {
  font-size: 1.1rem;
  color: #3b3c40;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: #111118;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 15, 20, 0.15);
}

.section {
  padding: 4rem 1.5rem;
}

.section--alt {
  background: #111118;
  color: #f5f4f1;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.carousel__track {
  overflow: hidden;
  width: 100%;
}

.carousel__slides {
  display: flex;
  gap: 0;
  transition: transform 0.4s ease;
}

.carousel__slides img {
  width: 100%;
  height: clamp(260px, 65vh, 640px);
  object-fit: cover;
  border-radius: 0;
  flex: 0 0 100%;
}

.carousel__slides img.carousel__image-contain {
  object-fit: contain;
  background-color: #111118;
}

.carousel__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #f6e7d0;
  font-size: 2rem;
  line-height: 1;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.carousel__control.prev {
  left: 1rem;
}

.carousel__control.next {
  right: 1rem;
}

.carousel__control:hover {
  background: rgba(0, 0, 0, 0.65);
}

.carousel__control:focus-visible {
  outline: 2px solid #f6e7d0;
}

#bildkarussell {
  padding-top: 8.5rem;
  background: #111118;
}

#bildkarussell .section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

#nextshow {
  padding-top: 4rem;
  padding-bottom: 10rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

#nextshow .section__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

#ensemble,
#uns,
#oldproductions {
  background-color: #3b1d0c;
  background-image: url('../source/Background-tvt.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
  background-attachment: scroll;
  color: #f8e9d3;
}

#ensemble h2,
#uns h2,
#oldproductions h2 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

#ensemble p,
#uns p,
#oldproductions p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#ensemble h3,
#uns h3,
#oldproductions h3 {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

#uns {
  padding-bottom: 7rem;
}

.about-card {
  width: 100%;
  padding: 2.5rem;
  border-radius: 1rem;
  background: rgba(17, 17, 24, 0.75);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-card h2 {
  margin-top: 0;
  color: #f8e9d3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.about-card p {
  color: rgba(248, 233, 211, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card strong {
  color: #f8e9d3;
  font-weight: 600;
}

#ensemble {
  padding-top: 5rem;
}

.members-title {
  text-align: center;
  margin-bottom: 3rem;
  color: #f8e9d3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.members-subtitle {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: rgba(248, 233, 211, 0.95);
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8);
}


.members-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.member-card {
  text-align: center;
  padding: 1.875rem;
  border-radius: 1rem;
  background: rgba(17, 17, 24, 0.75);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 248px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  will-change: transform;
  transform: translateZ(0);
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.member-portrait {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(248, 233, 211, 0.3);
}

.member-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-size: 1.25rem;
  margin: 0 0 0.3rem;
  color: #f8e9d3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  font-weight: 600;
}

.member-role {
  font-size: 1rem;
  color: rgba(248, 233, 211, 0.9);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

#kontakt .contact-list li {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f4f1;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

#kontakt .contact-list li a,
#kontakt .contact-list li span,
#kontakt .contact-list li strong {
  color: #f5f4f1;
}

#kontakt .contact-list a {
  text-decoration: none;
}

.grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

#kontakt .grid {
  align-items: center;
}

#kontakt .grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shows {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.shows article {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.shows article > div {
  flex: 1;
}

.shows .meta {
  color: rgba(245, 244, 241, 0.7);
  font-size: 0.9rem;
}

.shows article .cta {
  flex-shrink: 0;
  margin-top: 0;
  display: inline-block;
}

.old-shows {
  display: grid;
  gap: 1.5rem;
}

.old-shows article {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(17, 17, 24, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  will-change: transform;
  transform: translateZ(0);
}

.old-shows article:nth-child(n+4) {
  display: none;
}

.old-shows.expanded {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
}


.old-shows.expanded article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 150px;
}

.old-shows.expanded article .cta {
  margin-top: auto;
}

.toggle-button-container {
  text-align: center;
  margin-top: 2rem;
}

#toggleOldShows {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

.old-shows article > div {
  flex: 1;
}

.old-shows .meta {
  color: rgba(245, 244, 241, 0.9);
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.old-shows article .cta {
  flex-shrink: 0;
  margin-top: 0;
  display: inline-block;
}

.old-shows article h3,
.old-shows article p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.footer {
  padding: 2.5rem 1.5rem;
  background: #0b0b10;
  color: #b5b5b9;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.footer__center {
  flex: 1;
  text-align: center;
}

.footer__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer__digital-apes {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__digital-apes:hover {
  opacity: 0.8;
}

.footer__logo {
  height: 30px;
  width: auto;
  display: block;
}

.footer__text {
  color: #b5b5b9;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer a {
  color: #b5b5b9;
  text-decoration: none;
}

.footer a:hover {
  color: #f5f4f1;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer__center {
    order: 2;
  }
  
  .footer__right {
    order: 3;
    justify-content: center;
    width: 100%;
  }
  
  .footer__text {
    font-size: 0.85rem;
  }
}

.impressum-content {
  display: grid;
  gap: 2rem;
}

.impressum-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #f5f4f1;
}

.impressum-block p {
  color: rgba(245, 244, 241, 0.85);
  line-height: 1.7;
}

.impressum-block a {
  color: #f5f4f1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.impressum-block a:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 8rem;
    flex-direction: column;
  }

  .hero__brand {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero__brand img {
    width: 100px;
  }

  .hero__inner {
    padding-top: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .shows article,
  .old-shows article,
  .contact-list li {
    padding: 1.25rem;
  }

  .shows article {
    flex-direction: column;
    align-items: flex-start;
  }

  .shows article .cta {
    margin-top: 0.5rem;
    align-self: flex-end;
  }

  #bildkarussell {
    padding-left: 0;
    padding-right: 0;
  }

  #bildkarussell .section__inner {
    max-width: none;
    margin: 0;
  }

  .carousel__slides img {
    border-radius: 0;
  }

  .members-grid {
    gap: 1rem;
  }

  .member-card {
    width: calc(50% - 0.5rem);
    padding: 1rem;
  }

  .member-portrait {
    width: 100px;
    height: 100px;
  }

  .member-name {
    font-size: 0.95rem;
  }

  .member-role {
    font-size: 0.8rem;
  }

  .old-shows.expanded {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .old-shows.expanded article {
    min-height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .old-shows.expanded article .cta {
    margin-top: 0;
    align-self: center;
  }

  .about-card {
    padding: 1.5rem;
  }

  .about-card h2 {
    font-size: 1.5rem;
  }

  #nextshow {
    min-height: auto;
    justify-content: flex-start;
    padding-bottom: 4rem;
  }

  #ensemble,
  #uns,
  #oldproductions {
    background-attachment: scroll;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y;
  }

  .about-card,
  .member-card,
  .old-shows article {
    backdrop-filter: none;
    background: rgba(17, 17, 24, 0.85);
  }
}
