main.probenarbeit-page {
  flex: 1 0 auto;
  padding: 0;
  background: #f2f0e8;
  color: #183b30;
}

#probenarbeit-content {
  width: 100%;
  max-width: none;
  padding: 0;
}

.rehearsal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  min-height: 610px;
  padding: 5.5rem max(5.5vw, calc((100vw - 1180px) / 2));
  overflow: hidden;
  background-color: #054117;
  background-image:
    radial-gradient(ellipse 160% 140% at 50% 130%, rgba(0, 0, 0, 0.35) 0%, transparent 75%),
    radial-gradient(ellipse 140% 120% at 50% -20%, rgba(0, 0, 0, 0.15) 0%, transparent 65%),
    linear-gradient(90deg, rgba(0, 39, 19, 0.4) 0%, rgba(0, 0, 0, 0.5) 42%, rgba(0, 20, 1, 0.4) 100%),
    linear-gradient(0deg, rgba(4, 30, 19, 0.45), transparent 45%);
  color: #f6f3e9;
}

.rehearsal-copy {
  position: relative;
  z-index: 2;
  max-width: 510px;
  animation: rehearsal-arrive 700ms ease-out both;
}

.rehearsal-kicker,
.details-label,
.gallery-heading,
.image-index {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rehearsal-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.2rem;
  color: #d5b66f;
}

.rehearsal-kicker span {
  width: 2.6rem;
  height: 1px;
  background: currentColor;
}

.rehearsal-copy h1 {
  margin: 0;
  color: #fbf8ee;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 0.88;
  text-transform: uppercase;
}

.rehearsal-copy h1 em {
  color: #d5b66f;
  font-style: normal;
}

.rehearsal-intro {
  max-width: 420px;
  margin: 1.8rem 0 1.7rem;
  color: #e2e8df;
  font-size: 1.08rem;
  line-height: 1.75;
}

.rehearsal-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: 0.8rem 0;
  border-bottom: 1px solid #d5b66f;
  color: #fffdf6;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, gap 180ms ease;
}

.rehearsal-link i {
  color: #d5b66f;
  font-size: 0.85rem;
}

.rehearsal-link:hover {
  gap: 1.35rem;
  color: #e4c87f;
}

.rehearsal-link:focus-visible {
  outline: 2px solid #e4c87f;
  outline-offset: 5px;
}

.rehearsal-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #315b4b;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 35px, rgba(242, 240, 232, 0.13) 36px, transparent 37px),
    repeating-linear-gradient(90deg, transparent 0, transparent 35px, rgba(242, 240, 232, 0.08) 36px, transparent 37px);
}

.rehearsal-image::before {
  position: absolute;
  z-index: -1;
  top: 15%;
  right: -8%;
  width: 82%;
  height: 72%;
  border: 1px solid rgba(213, 182, 111, 0.65);
  content: '';
  transform: rotate(-8deg);
}

.rehearsal-image img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rehearsal-image img[hidden] {
  display: none;
}

.rehearsal-image-main {
  height: 440px;
  margin: 0 0 0.5rem;
  background-color: #315b4b;
  animation: rehearsal-arrive 850ms 100ms ease-out both;
  clip-path: polygon(6% 0, 100% 0, 100% 91%, 90% 100%, 0 100%, 0 8%);
}

.rehearsal-image-main .image-index {
  top: 1.1rem;
  right: auto;
  bottom: auto;
  left: 1.2rem;
}

.image-fallback-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(246, 243, 233, 0.8);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 3.3rem;
  font-weight: 600;
  line-height: 0.8;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.image-index {
  position: absolute;
  z-index: 2;
  right: 1.2rem;
  bottom: 1.1rem;
  color: #f6f3e9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.rehearsal-stamp {
  position: absolute;
  z-index: 3;
  right: max(3.5vw, calc((100vw - 1280px) / 2));
  bottom: 3.3rem;
  display: grid;
  width: 104px;
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid #d5b66f;
  border-radius: 50%;
  color: #e4c87f;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 1.05rem;
  line-height: 1.05;
  text-align: center;
  transform: rotate(9deg);
}

.rehearsal-details {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr 1px 1.3fr;
  align-items: center;
  gap: 1.8rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 0;
  border-bottom: 1px solid #c9c8bc;
}

.details-label,
.details-place,
.details-invite {
  margin: 0;
}

.details-label {
  color: #527164;
}

.details-time {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  white-space: nowrap;
}

.details-time span {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.details-time strong {
  color: #1d523e;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
}

.details-place {
  font-size: 1.05rem;
}

.details-rule {
  width: 1px;
  height: 42px;
  background: #c9c8bc;
}

.details-invite {
  color: #527164;
  font-size: 0.95rem;
}

.rehearsal-gallery {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.2rem 0 5rem;
}

.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
  color: #527164;
}

.gallery-beats {
  color: #b4934d;
  font-size: 1rem;
}

.gallery-images {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  align-items: end;
  gap: 2rem;
}

.gallery-image {
  background-color: #d5d0bd;
}

.gallery-image::before {
  border-color: rgba(29, 82, 62, 0.65);
}

.gallery-image .image-fallback-mark {
  color: rgba(24, 59, 48, 0.8);
}

.gallery-image .image-index {
  color: #183b30;
  text-shadow: none;
}

.gallery-image-wide {
  height: 330px;
  clip-path: polygon(0 0, 96% 0, 100% 8%, 100% 100%, 0 100%);
}

.gallery-image-tall {
  height: 390px;
  background-color: #b6c0aa;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 0 92%);
}

.rehearsal-closer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem max(5.5vw, calc((100vw - 1180px) / 2));
  background: #e6e3d8;
}

.rehearsal-closer p {
  margin: 0;
  color: #183b30;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
}

.rehearsal-closer .rehearsal-link {
  flex: 0 0 auto;
  border-color: #1d523e;
  color: #1d523e;
}

.rehearsal-closer .rehearsal-link i {
  color: #9c782f;
}

@keyframes rehearsal-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .rehearsal-hero {
    min-height: 560px;
    gap: 2rem;
    padding-right: 4vw;
    padding-left: 6vw;
  }

  .rehearsal-copy h1 {
    font-size: 4.6rem;
  }

  .rehearsal-image-main {
    height: 390px;
  }

  .rehearsal-details,
  .rehearsal-gallery {
    margin-right: 6vw;
    margin-left: 6vw;
  }

  .rehearsal-details {
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 1rem;
  }

  .details-rule {
    display: none;
  }

  .details-invite {
    grid-column: 2 / -1;
    margin-top: -0.6rem;
  }
}

@media (max-width: 640px) {
  .rehearsal-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 0;
    padding: 5rem 1.4rem 3.4rem;
  }

  .rehearsal-copy h1 {
    font-size: 4.2rem;
  }

  .rehearsal-intro {
    max-width: 34rem;
    margin-top: 1.35rem;
    font-size: 1rem;
  }

  .rehearsal-image-main {
    width: calc(100% - 1.2rem);
    height: 300px;
    margin-left: 1.2rem;
  }

  .rehearsal-stamp {
    right: 1.3rem;
    bottom: 2.4rem;
    width: 82px;
    font-size: 0.9rem;
  }

  .rehearsal-details {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    margin: 0 1.4rem;
    padding: 1.6rem 0;
  }

  .details-label {
    grid-column: 1 / -1;
  }

  .details-time {
    gap: 0.6rem;
  }

  .details-time span {
    font-size: 0.82rem;
  }

  .details-time strong {
    font-size: 2.9rem;
  }

  .details-place {
    align-self: center;
    font-size: 0.92rem;
  }

  .details-invite {
    grid-column: 1 / -1;
    margin: 0;
  }

  .rehearsal-gallery {
    margin: 0 1.4rem;
    padding: 2.8rem 0 3rem;
  }

  .gallery-images {
    grid-template-columns: 1fr 0.68fr;
    align-items: start;
    gap: 0.8rem;
  }

  .gallery-image-wide {
    height: 230px;
  }

  .gallery-image-tall {
    height: 190px;
    margin-top: 2rem;
  }

  .image-fallback-mark {
    font-size: 2.2rem;
  }

  .rehearsal-closer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.7rem 1.4rem 2rem;
  }

  .rehearsal-closer p {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rehearsal-copy,
  .rehearsal-image-main {
    animation: none;
  }

  .rehearsal-link {
    transition: none;
  }
}