/* =========================
   VARIABLES
========================= */

:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-red: #d0021b;
  --color-primary: #d0021b;
  --color-gold: #f2c94c;
  --color-border: #d9d9d9;
  --color-divider: #e6e6e6;
  --color-shadow: rgba(0, 0, 0, 0.09);
  --color-background-soft: #f5f5f5;
  --color-text-muted: #555555;
  --color-card-shadow: rgba(0, 0, 0, 0.08);

  --layout-max-width: 1200px;
  --mobile-breakpoint: 768px;
}

/* =========================
   BASE
========================= */

.news-page {
  width: 100%;
  background-color: var(--color-white);
}

.content-container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

/* =========================
   PAGE HERO
========================= */

.page-hero {
  padding: 80px 24px 72px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.page-hero-container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

.page-hero-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: rgba(208, 2, 27, 0.1);
  color: var(--color-red);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.page-hero-title {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  line-height: 1.02;
  color: var(--color-black);
}

.page-hero-text {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #444444;
}

.termine-page-hero,
.news-page-hero {
  position: relative;
  min-height: clamp(520px, 68vh, 760px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: #111111;
  padding-bottom: 68px;
}

.termine-page-hero::before,
.news-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.42) 48%,
      rgba(0, 0, 0, 0.16) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0.5) 68%,
      rgba(255, 255, 255, 0.38) 94%,
      rgba(255, 255, 255, 0.58) 100%
    );
}

.news-page-hero::before {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.56) 0%,
      rgba(0, 0, 0, 0.32) 48%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.36) 68%,
      rgba(255, 255, 255, 0.34) 94%,
      rgba(255, 255, 255, 0.54) 100%
    );
}

.termine-page-hero::after,
.news-page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: -1;
  height: 68px;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 100%,
      rgba(242, 201, 76, 0.045) 0%,
      rgba(242, 201, 76, 0.018) 34%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.42) 68%,
      var(--color-white) 100%
    );
}

.termine-page-hero-image,
.news-page-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-page-hero-image {
  object-position: center 42%;
}

.termine-page-hero .page-hero-container,
.news-page-hero .page-hero-container {
  position: relative;
  z-index: 1;
  transform: translateY(-44px);
}

.termine-page-hero .page-hero-label {
  background-color: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
}

.termine-page-hero .page-hero-title,
.termine-page-hero .page-hero-text,
.news-page-hero .page-hero-title,
.news-page-hero .page-hero-text {
  color: var(--color-white);
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.news-page-hero .page-hero-title {
  margin-bottom: 0;
}

.termine-next-appointment {
  font-weight: 700;
}

.termine-next-appointment span {
  color: var(--color-gold);
}

.termine-next-appointment-button {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 7px 13px;
  border: 1px solid rgba(242, 201, 76, 0.46);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 224, 138, 0.92);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.termine-next-appointment-button:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(242, 201, 76, 0.66);
  transform: translateY(-1px);
}

.back-to-top-button {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-black);
  font-size: 0.92rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-button:hover {
  background-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

@media (min-width: 1360px) {
  .back-to-top-button {
    right: calc((100vw - var(--layout-max-width)) / 2 - 82px);
  }
}

.appointments-page .content-section {
  position: relative;
  margin-top: -18px;
  padding-top: 72px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      var(--color-white) 28px
    );
}

@media (max-width: 768px) {
  .page-hero.termine-page-hero,
  .page-hero.news-page-hero {
    min-height: 560px;
    padding: 140px 20px 70px 20px;
  }

  .termine-page-hero .page-hero-container,
  .news-page-hero .page-hero-container {
    transform: translateY(-24px);
  }

  .termine-next-appointment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .termine-next-appointment-button {
    margin-left: 0;
    align-self: flex-start;
  }

  .termine-page-hero::after,
  .news-page-hero::after {
    height: 58px;
  }

  .appointments-page .content-section {
    margin-top: -14px;
    padding-top: 52px;
  }
}

/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
  margin-bottom: 36px;
}

.section-title {
  margin-bottom: 12px;
  font-size: 2.1rem;
  line-height: 1.15;
  color: var(--color-black);
}

.section-description {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.article-meta {
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================
   ARTICLE SECTIONS
========================= */

.articles-section {
  padding: 0 24px 56px 24px;
  background-color: var(--color-background-soft);
}

.news-page-hero + .articles-section {
  padding-top: 48px;
}

.articles-section-more {
  padding: 56px 24px 96px 24px;
  background-color: var(--color-white);
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* =========================
   ARTICLE ENTRY
========================= */

.article-entry {
  padding: 40px;
  border-radius: 28px;
  background-color: var(--color-white);
  box-shadow: 0 18px 40px var(--color-card-shadow);
}

.article-entry-header {
  margin-bottom: 28px;
}

.article-entry-title {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.06;
  color: var(--color-black);
}

.article-subtitle {
  margin-bottom: 16px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  font-style: italic;
}

.article-summary {
  max-width: 900px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333333;
}

.article-entry-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================
   GENERIC BLOCKS
========================= */

.article-block-paragraph p,
.article-block-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333333;
}

.article-block-wp-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-block-wp-content p,
.article-block-wp-content li {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333333;
}

.article-block-wp-content h2,
.article-block-wp-content h3,
.article-block-wp-content h4 {
  margin-top: 10px;
  line-height: 1.22;
  color: var(--color-black);
}

.article-block-wp-content h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.article-block-wp-content h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.article-block-wp-content h4 {
  font-size: 1.35rem;
}

.article-block-wp-content ul,
.article-block-wp-content ol {
  padding-left: 1.35rem;
}

.article-block-wp-content figure {
  margin: 10px 0;
}

.article-block-wp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.article-block-wp-content .wp-caption,
.article-block-wp-content .wp-block-image,
.article-block-wp-content .wp-block-gallery {
  max-width: 100%;
}

.article-block-wp-content figcaption,
.article-block-wp-content .wp-caption-text {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-block-wp-content .aligncenter {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.article-block-wp-content .alignright {
  float: right;
  margin: 0 0 18px 24px;
}

.article-block-wp-content .alignleft {
  float: left;
  margin: 0 24px 18px 0;
}

.article-block-wp-content::after {
  content: "";
  display: block;
  clear: both;
}

/* =========================
   IMAGE BLOCK
========================= */

.article-block-image {
  overflow: hidden;
  border-radius: 22px;
  background-color: transparent;
}

.article-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.article-block-image-wide {
  width: 100%;
}

.article-block-image-standard {
  max-width: 760px;
}

/* =========================
   MEDIA + TEXT BLOCK
========================= */

.article-block-media-text {
  display: grid;
  gap: 28px;
  align-items: start;
}

.article-block-media-text.media-text-left {
  grid-template-columns: minmax(280px, 420px) 1fr;
}

.article-block-media-text.media-text-right {
  grid-template-columns: 1fr minmax(280px, 420px);
}

.media-text-left .article-block-media {
  order: 1;
}

.media-text-left .article-block-text {
  order: 2;
}

.media-text-right .article-block-media {
  order: 2;
}

.media-text-right .article-block-text {
  order: 1;
}

.article-block-media {
  overflow: hidden;
  border-radius: 22px;
  background-color: transparent;
}

.article-block-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.article-block-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================
   GALLERY
========================= */

.article-block-gallery {
  display: grid;
  gap: 20px;
}

.article-block-gallery.gallery-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-block-gallery.gallery-standard {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  overflow: hidden;
  border-radius: 22px;
  background-color: transparent;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

/* =========================
   INFO BOX
========================= */

.article-info-box {
  max-width: 760px;
  padding: 24px 26px;
  border-left: 4px solid var(--color-gold);
  border-radius: 20px;
  background-color: #fffdf7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.article-info-box-title {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--color-black);
}

.article-info-box-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-info-box-list li {
  line-height: 1.7;
  color: #333333;
}

/* =========================
   IMAGE FORMATS
========================= */

.image-format-landscape {
  aspect-ratio: 16 / 10;
}

.image-format-portrait {
  aspect-ratio: 3 / 4;
}

.image-format-poster {
  aspect-ratio: 0.707 / 1;
}

.article-block-media.image-format-portrait img,
.article-block-media.image-format-poster img,
.gallery-item.image-format-portrait img,
.gallery-item.image-format-poster img {
  object-fit: contain;
  background-color: transparent;
}

.article-block-image.image-format-poster img,
.article-block-image.image-format-portrait img {
  object-fit: contain;
  background-color: transparent;
}

/* =========================
   READ MORE
========================= */

.article-hidden-text {
  display: none;
}

.article-hidden-text.open {
  display: block;
  margin-top: 12px;
}

.read-more-button {
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--color-red);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.read-more-button:hover {
  opacity: 0.7;
}

/* =========================
   LOAD MORE
========================= */

.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  background-color: transparent;
  color: var(--color-black);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.load-more-button:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .article-block-media-text.media-text-left,
  .article-block-media-text.media-text-right {
    grid-template-columns: 1fr;
  }

  .media-text-left .article-block-media,
  .media-text-right .article-block-media {
    order: 1;
  }

  .media-text-left .article-block-text,
  .media-text-right .article-block-text {
    order: 2;
  }

  .article-block-gallery.gallery-two-column,
  .article-block-gallery.gallery-standard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 130px 20px 56px 20px;
  }

  .page-hero-title {
    font-size: 2.4rem;
  }

  .articles-section {
    padding: 0 16px 40px 16px;
  }

  .news-page-hero + .articles-section {
    padding-top: 36px;
  }

  .articles-section-more {
    padding: 40px 16px 72px 16px;
  }

  .article-entry {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .article-entry-title {
    font-size: 1.9rem;
  }

  .article-block-paragraph p,
  .article-block-text p,
  .article-summary {
    font-size: 1rem;
    line-height: 1.75;
  }

  .article-block-heading h4,
  .article-block-text h4 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

}
/* =========================
   TERMINE MUSICAL PATH
========================= */

.termine-page {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.termine-hero {
  max-width: 760px;
  margin-bottom: 64px;
}

.termine-hero h1 {
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 16px;
}

.termine-hero p {
  line-height: 1.6;
}

.termine-status {
  margin-bottom: 40px;
  font-weight: 700;
}

/* Der komplette Pfad */
.termine-roadmap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 24px 0 40px;
}

/* Notenlinien in der Mitte */
.termine-roadmap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 92px;
  transform: translateX(-50%);
  pointer-events: none;

  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.34)) 18px 0 / 1px 100% no-repeat,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.34)) 32px 0 / 1px 100% no-repeat,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.44)) 46px 0 / 2px 100% no-repeat,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.34)) 61px 0 / 1px 100% no-repeat,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.34)) 75px 0 / 1px 100% no-repeat;
}

/* Einzelne Station */
.termin-station {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.termin-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Karte rechts */
.termin-station-right .termin-card {
  grid-column: 3;
}

.termin-station-right .termin-note {
  grid-column: 2;
  grid-row: 1;
}

/* Karte links */
.termin-station-left .termin-card {
  grid-column: 1;
}

.termin-station-left .termin-note {
  grid-column: 2;
  grid-row: 1;
}

/* Die Note auf dem Pfad */
.termin-note {
  position: relative;
  z-index: 2;

  width: 56px;
  height: 56px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid currentColor;
  box-shadow: 0 8px 22px var(--color-shadow);

  color: var(--color-primary);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

/* Termin-Karte */
.termin-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: stretch;
  gap: 24px;
  min-height: var(--termin-card-min-height, 0);

  width: 100%;
  padding: 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.termin-card:focus-visible {
  outline: 3px solid rgba(201, 162, 39, 0.72);
  outline-offset: 5px;
}

.termin-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.termin-note {
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.termin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.11);
}

/* Aktueller Termin */
.termin-card-current .termin-card {
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.10),
    0 0 0 1px rgba(201, 162, 39, 0.16);
}

.termin-card-current .termin-note {
  background-color: rgba(255, 255, 255, 0.96);
  color: rgba(201, 162, 39, 1);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.12),
    0 0 0 6px rgba(201, 162, 39, 0.12);
}

/* Kommende Termine */
.termin-card-upcoming:not(.termin-card-current) .termin-card {
  border-color: rgba(208, 2, 27, 0.45);
}

/* Vergangene Termine */
.termin-card-past {
  opacity: 0.55;
}

.termin-card-past .termin-card {
  border-color: #cfcfcf;
}

.termin-card-past .termin-note {
  color: #555555;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.termin-card-past .termin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.termin-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 110px;
  border-radius: 20px;
  background-color: #f5f5f5;
}

.termin-day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.termin-month {
  margin-top: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.termin-year {
  margin-top: 4px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.termin-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.termin-current-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.termin-current-label {
  background-color: rgba(201, 162, 39, 0.18);
}

.termin-title {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.termin-meta,
.termin-location,
.termin-note-text {
  line-height: 1.6;
}

.termin-location {
  font-weight: 700;
}

.termin-note-text {
  margin-top: 10px;
}

.termin-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  border: none;
  border-radius: 18px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.12), transparent 34%),
    #fffdf7;
  color: var(--color-black);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(201, 162, 39, 0.22);
  transform: translate(-50%, -50%);
}

.termin-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 28%, rgba(201, 162, 39, 0.12), transparent 34%),
    rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(3px);
}

.termin-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.72);
  color: var(--color-black);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.termin-dialog-close:hover,
.termin-dialog-close:focus-visible {
  background-color: rgba(208, 2, 27, 0.1);
  border-color: rgba(208, 2, 27, 0.32);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.termin-dialog-content {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(28px, 4.5vw, 40px);
}

.termin-dialog-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.65 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.termin-dialog-head,
.termin-dialog-details,
.termin-dialog-note,
.termin-dialog-link {
  position: relative;
}

.termin-dialog-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-right: 36px;
  margin-bottom: 26px;
}

.termin-dialog-date-badge {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 118px;
  padding: 15px 12px;
  border: 1px solid rgba(201, 162, 39, 0.36);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    rgba(201, 162, 39, 0.08);
  box-shadow: 0 10px 26px rgba(201, 162, 39, 0.08);
}

.termin-dialog-day {
  color: var(--color-primary);
  font-size: clamp(2.5rem, 7vw, 3.7rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.termin-dialog-month,
.termin-dialog-year {
  font-family: "Courier New", Courier, monospace;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.termin-dialog-month {
  color: var(--color-black);
  font-size: 0.86rem;
}

.termin-dialog-year {
  color: rgba(0, 0, 0, 0.52);
  font-size: 0.72rem;
}

.termin-dialog-kicker {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.termin-dialog-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  line-height: 1.08;
  color: var(--color-black);
}

.termin-dialog-details {
  display: grid;
  gap: 0;
  margin: 0 0 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.termin-dialog-detail {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.termin-dialog-detail dt {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.termin-dialog-detail dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.82);
}

.termin-dialog-note {
  margin: 0 0 24px 0;
  padding: 16px 18px;
  border-left: 3px solid rgba(201, 162, 39, 0.72);
  border-radius: 0 12px 12px 0;
  background-color: rgba(201, 162, 39, 0.08);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.68);
}

.termin-dialog-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid rgba(208, 2, 27, 0.2);
  border-radius: 999px;
  background-color: rgba(208, 2, 27, 0.06);
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.termin-dialog-link::after {
  content: "↗";
  color: currentColor;
}

.termin-dialog-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}


/* Termine: optionaler Flyer */
.termin-dialog-flyer,
.mvo-single-flyer {
  position: relative;
  margin: 0 0 24px;
}

.termin-dialog-flyer summary,
.mvo-single-flyer summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(208, 2, 27, 0.22);
  border-radius: 999px;
  background: rgba(208, 2, 27, 0.06);
  color: var(--color-primary);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.termin-dialog-flyer summary::-webkit-details-marker,
.mvo-single-flyer summary::-webkit-details-marker {
  display: none;
}

.termin-dialog-flyer summary::after,
.mvo-single-flyer summary::after {
  content: "↧";
  font-size: 0.9em;
}

.termin-dialog-flyer[open] summary::after,
.mvo-single-flyer[open] summary::after {
  content: "↥";
}

.termin-dialog-flyer summary:hover,
.termin-dialog-flyer summary:focus-visible,
.mvo-single-flyer summary:hover,
.mvo-single-flyer summary:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
  outline: none;
}

.termin-dialog-flyer-frame,
.mvo-single-flyer-frame {
  margin-top: 16px;
  padding: clamp(12px, 3vw, 18px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: #f7f7f7;
}

.termin-dialog-flyer-frame img,
.mvo-single-flyer-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 860px);
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

/* Mobile: Pfad links, Karten rechts */
@media (max-width: 768px) {
  .termine-page {
    padding: 48px 16px;
  }

  .termine-hero h1 {
    font-size: 2.2rem;
  }

  .termine-roadmap {
    gap: 30px;
    padding-left: 0;
  }

  .termine-roadmap::before {
    left: 4px;
    width: 56px;
    transform: none;

    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.32)) 8px 0 / 1px 100% no-repeat,
      linear-gradient(to bottom, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.32)) 16px 0 / 1px 100% no-repeat,
      linear-gradient(to bottom, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.42)) 24px 0 / 2px 100% no-repeat,
      linear-gradient(to bottom, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.32)) 33px 0 / 1px 100% no-repeat,
      linear-gradient(to bottom, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.32)) 41px 0 / 1px 100% no-repeat;
  }

  .termin-station {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .termin-station-left .termin-card,
  .termin-station-right .termin-card {
    grid-column: 2;
  }

  .termin-station-left .termin-note,
  .termin-station-right .termin-note {
    grid-column: 1;
  }

  .termin-note {
    width: 38px;
    height: 38px;
    font-size: 1.16rem;
  }

  .termin-gap-notes {
    position: absolute;
    left: 2px;
    bottom: -27px;
    z-index: 2;
    display: block;
    width: 48px;
    height: 26px;
    pointer-events: none;
  }

  .termin-gap-notes span {
    position: absolute;
    display: inline-flex;
    color: rgba(201, 162, 39, 0.5);
    font-size: 0.92rem;
    line-height: 1;
    opacity: 0.62;
    text-shadow: 0 4px 12px rgba(201, 162, 39, 0.14);
    animation: termineMobileGapNoteFloat 4.8s ease-in-out infinite;
  }

  .termin-gap-notes span:nth-child(1) {
    left: 7px;
    top: 7px;
    transform: rotate(-10deg);
  }

  .termin-gap-notes span:nth-child(2) {
    left: 22px;
    top: 0;
    font-size: 1.02rem;
    animation-delay: 0.55s;
    transform: rotate(8deg);
  }

  .termin-gap-notes span:nth-child(3) {
    left: 32px;
    top: 12px;
    font-size: 0.82rem;
    animation-delay: 1.05s;
    transform: rotate(-4deg);
  }

  .termin-card {
    width: min(100%, 292px);
    min-height: auto;
    justify-self: start;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .termin-date-box {
    align-items: flex-start;
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 13px;
  }

  .termin-day {
    font-size: 1.38rem;
  }

  .termin-month {
    margin-top: 3px;
    font-size: 0.78rem;
  }

  .termin-year {
    margin-top: 1px;
    font-size: 0.72rem;
  }

  .termin-title {
    font-size: 1.08rem;
    margin-bottom: 4px;
  }

  .termin-meta,
  .termin-location,
  .termin-note-text {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .termin-note-text {
    margin-top: 6px;
  }

  .termin-dialog-content {
    padding: 28px 22px 24px;
  }

  .termin-dialog-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-right: 38px;
    margin-bottom: 24px;
  }

  .termin-dialog-date-badge {
    width: 104px;
    min-height: 110px;
    padding: 14px 12px;
    justify-items: start;
  }

  .termin-dialog-title {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .termin-dialog-detail {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* =========================
   TERMINE PATH ENHANCEMENTS
========================= */

.termine-roadmap {
  --termin-path-progress: 0%;
}

/* Grundlinie etwas nach hinten legen */
.termine-roadmap::before {
  z-index: 0;
}

/* Goldener Fortschritt auf den Notenlinien */
.termine-roadmap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 92px;
  height: var(--termin-path-progress);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;

  background:
    linear-gradient(to bottom, rgba(201, 162, 39, 0.65), rgba(201, 162, 39, 0.18)) 18px 0 / 1px 100% no-repeat,
    linear-gradient(to bottom, rgba(201, 162, 39, 0.65), rgba(201, 162, 39, 0.18)) 32px 0 / 1px 100% no-repeat,
    linear-gradient(to bottom, rgba(201, 162, 39, 0.9), rgba(201, 162, 39, 0.25)) 46px 0 / 2px 100% no-repeat,
    linear-gradient(to bottom, rgba(201, 162, 39, 0.65), rgba(201, 162, 39, 0.18)) 61px 0 / 1px 100% no-repeat,
    linear-gradient(to bottom, rgba(201, 162, 39, 0.65), rgba(201, 162, 39, 0.18)) 75px 0 / 1px 100% no-repeat;
}

/* Stationen bekommen Scroll-Reveal */
.termin-station {
  z-index: 2;
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.termin-station-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Links/rechts leicht unterschiedlich einfliegen */
.termin-station-enter-down.termin-station-left:not(.termin-station-visible) {
  transform: translateX(-28px) translateY(36px) scale(0.98);
}

.termin-station-enter-down.termin-station-right:not(.termin-station-visible) {
  transform: translateX(28px) translateY(36px) scale(0.98);
}

.termin-station-enter-up.termin-station-left:not(.termin-station-visible) {
  transform: translateX(-28px) translateY(-30px) scale(0.98);
}

.termin-station-enter-up.termin-station-right:not(.termin-station-visible) {
  transform: translateX(28px) translateY(-30px) scale(0.98);
}

/* Karten etwas lebendiger */
.termin-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.termin-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at top right,
      rgba(201, 162, 39, 0.12),
      transparent 34%
    );

  opacity: 0;
  transition: opacity 0.25s ease;
}

.termin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.1);
}

.termin-card:hover::before {
  opacity: 1;
}

/* Die Hauptnote auf dem Pfad */
.termin-note {
  z-index: 3;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.termin-station:has(.termin-card:hover) .termin-note {
  transform: scale(1.08) rotate(-4deg);
}

/* Schwebende kleine Noten */
.termin-floating-note {
  position: absolute;
  z-index: 1;

  color: rgba(201, 162, 39, 0.28);
  font-size: 2.2rem;
  line-height: 1;

  pointer-events: none;
  user-select: none;

  animation: floatingTerminNote 5.5s ease-in-out infinite;
}

.termin-station-right .termin-floating-note {
  left: calc(50% + 82px);
  top: -18px;
}

.termin-station-left .termin-floating-note {
  right: calc(50% + 82px);
  top: -18px;
  animation-delay: 1.2s;
}

.termin-gap-notes {
  display: none;
}

@media (max-width: 768px) {
  .termin-gap-notes {
    display: block;
  }
}

/* Aktueller Termin pulsiert leicht */
.termin-card-current .termin-note {
  position: relative;
}

.termin-card-current .termin-note::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.42);
  animation: currentTerminPulse 2.2s ease-out infinite;
}

/* Mehr Leben fuer den aktuellen Termin */
.termin-card-current .termin-card {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 1),
      rgba(255, 250, 235, 0.92)
    );
}

/* Animationen */
@keyframes floatingTerminNote {
  0% {
    transform: translateY(0) rotate(-6deg);
    opacity: 0.18;
  }

  50% {
    transform: translateY(-12px) rotate(6deg);
    opacity: 0.42;
  }

  100% {
    transform: translateY(0) rotate(-6deg);
    opacity: 0.18;
  }
}

@keyframes currentTerminPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.55;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes termineMobileGapNoteFloat {
  0% {
    translate: 0 0;
    opacity: 0.34;
  }

  50% {
    translate: 0 -5px;
    opacity: 0.78;
  }

  100% {
    translate: 0 0;
    opacity: 0.34;
  }
}

/* Mobile Anpassung */
@media (max-width: 768px) {
  .termine-roadmap::after {
    left: 4px;
    width: 56px;
    transform: none;

    background:
      linear-gradient(to bottom, rgba(201, 162, 39, 0.55), rgba(201, 162, 39, 0.15)) 8px 0 / 1px 100% no-repeat,
      linear-gradient(to bottom, rgba(201, 162, 39, 0.55), rgba(201, 162, 39, 0.15)) 16px 0 / 1px 100% no-repeat,
      linear-gradient(to bottom, rgba(201, 162, 39, 0.85), rgba(201, 162, 39, 0.2)) 24px 0 / 2px 100% no-repeat,
      linear-gradient(to bottom, rgba(201, 162, 39, 0.55), rgba(201, 162, 39, 0.15)) 33px 0 / 1px 100% no-repeat,
      linear-gradient(to bottom, rgba(201, 162, 39, 0.55), rgba(201, 162, 39, 0.15)) 41px 0 / 1px 100% no-repeat;
  }

  .termin-floating-note {
    display: none;
  }

  .termin-station-enter-down.termin-station-left:not(.termin-station-visible),
  .termin-station-enter-down.termin-station-right:not(.termin-station-visible) {
    transform: translateY(28px) scale(0.98);
  }

  .termin-station-enter-up.termin-station-left:not(.termin-station-visible),
  .termin-station-enter-up.termin-station-right:not(.termin-station-visible) {
    transform: translateY(-24px) scale(0.98);
  }
}

/* =========================
   TERMINE MUSICAL DETAILS
========================= */

/* Seite als Bühne für dezente Deko */
.termine-page,
.appointments-page {
  position: relative;
  overflow: hidden;
}

/* Hintergrund-Deko über der Roadmap */
.termine-background-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.termine-background-decor span {
  position: absolute;
  color: rgba(201, 162, 39, 0.13);
  font-size: clamp(2rem, 4vw, 5.5rem);
  line-height: 1;
  filter: blur(0.1px);
  user-select: none;
  animation: termineBackgroundFloat 9s ease-in-out infinite;
}

.termine-background-decor span:nth-child(1) {
  top: 3%;
  left: 5%;
  transform: rotate(-12deg);
}

.termine-background-decor span:nth-child(2) {
  top: 14%;
  right: 8%;
  animation-delay: 1.2s;
  transform: rotate(10deg);
}

.termine-background-decor span:nth-child(3) {
  top: 31%;
  left: 12%;
  animation-delay: 2.1s;
  transform: rotate(18deg);
}

.termine-background-decor span:nth-child(4) {
  top: 43%;
  right: 4%;
  animation-delay: 0.8s;
  transform: rotate(-9deg);
}

.termine-background-decor span:nth-child(5) {
  top: 58%;
  left: 6%;
  animation-delay: 2.8s;
  transform: rotate(7deg);
}

.termine-background-decor span:nth-child(6) {
  top: 72%;
  right: 13%;
  animation-delay: 1.7s;
  transform: rotate(-18deg);
}

.termine-background-decor span:nth-child(7) {
  top: 84%;
  left: 17%;
  animation-delay: 3.4s;
  transform: rotate(15deg);
}

.termine-background-decor span:nth-child(8) {
  bottom: 2%;
  right: 6%;
  animation-delay: 2.5s;
  transform: rotate(-6deg);
}

/* Hover-Noten liegen über der jeweiligen Termin-Kachel */
.termin-hover-notes {
  position: relative;
  grid-row: 1;
  align-self: stretch;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.termin-station-right .termin-hover-notes {
  grid-column: 3;
}

.termin-station-left .termin-hover-notes {
  grid-column: 1;
}

.termin-hover-notes span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(201, 162, 39, 0.72);
  font-size: 1.45rem;
  line-height: 1;

  opacity: 0;
  transform: translateY(10px) scale(0.7) rotate(0deg);
  transition:
    opacity 0.25s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);

  text-shadow: 0 6px 18px rgba(201, 162, 39, 0.22);
}

/* Positionen der Hover-Noten rund um die Karte */
.termin-hover-notes span:nth-child(1) {
  top: -18px;
  left: 10%;
}

.termin-hover-notes span:nth-child(2) {
  top: -26px;
  left: 45%;
  font-size: 1.8rem;
}

.termin-hover-notes span:nth-child(3) {
  top: -12px;
  right: 12%;
}

.termin-hover-notes span:nth-child(4) {
  top: 24%;
  left: -22px;
  font-size: 1.8rem;
}

.termin-hover-notes span:nth-child(5) {
  top: 46%;
  right: -24px;
}

.termin-hover-notes span:nth-child(6) {
  bottom: 18%;
  left: -14px;
  font-size: 1.35rem;
}

.termin-hover-notes span:nth-child(7) {
  bottom: -16px;
  left: 18%;
}

.termin-hover-notes span:nth-child(8) {
  bottom: -24px;
  left: 52%;
  font-size: 2rem;
}

.termin-hover-notes span:nth-child(9) {
  bottom: -10px;
  right: 14%;
}

.termin-hover-notes span:nth-child(10) {
  top: 38%;
  right: -36px;
  font-size: 1.7rem;
}

/* Beim Hover: Noten fliegen fein raus */
.termin-station:hover .termin-hover-notes span {
  opacity: 1;
}

.termin-station:hover .termin-hover-notes span:nth-child(1) {
  transform: translate(-8px, -16px) scale(1) rotate(-14deg);
}

.termin-station:hover .termin-hover-notes span:nth-child(2) {
  transform: translate(0, -22px) scale(1.08) rotate(10deg);
  transition-delay: 0.03s;
}

.termin-station:hover .termin-hover-notes span:nth-child(3) {
  transform: translate(12px, -14px) scale(1) rotate(18deg);
  transition-delay: 0.06s;
}

.termin-station:hover .termin-hover-notes span:nth-child(4) {
  transform: translate(-18px, -4px) scale(1.05) rotate(-8deg);
  transition-delay: 0.08s;
}

.termin-station:hover .termin-hover-notes span:nth-child(5) {
  transform: translate(20px, -6px) scale(1.04) rotate(12deg);
  transition-delay: 0.1s;
}

.termin-station:hover .termin-hover-notes span:nth-child(6) {
  transform: translate(-16px, 12px) scale(1) rotate(16deg);
  transition-delay: 0.12s;
}

.termin-station:hover .termin-hover-notes span:nth-child(7) {
  transform: translate(-8px, 18px) scale(1.02) rotate(-18deg);
  transition-delay: 0.14s;
}

.termin-station:hover .termin-hover-notes span:nth-child(8) {
  transform: translate(0, 24px) scale(1.1) rotate(9deg);
  transition-delay: 0.16s;
}

.termin-station:hover .termin-hover-notes span:nth-child(9) {
  transform: translate(12px, 16px) scale(1) rotate(-12deg);
  transition-delay: 0.18s;
}

.termin-station:hover .termin-hover-notes span:nth-child(10) {
  transform: translate(24px, 0) scale(1.05) rotate(14deg);
  transition-delay: 0.2s;
}

/* Extra: Kachel wirkt beim Hover musikalischer */
.termin-station:hover .termin-card {
  border-color: rgba(201, 162, 39, 0.45);
}

.termin-station:hover .termin-card::after {
  opacity: 1;
}

.termin-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.25s ease;

  background:
    linear-gradient(
      135deg,
      transparent 0%,
      rgba(201, 162, 39, 0.08) 42%,
      transparent 70%
    );
}

/* Animation für Hintergrund-Noten */
@keyframes termineBackgroundFloat {
  0% {
    translate: 0 0;
    opacity: 0.45;
  }

  50% {
    translate: 0 -14px;
    opacity: 0.85;
  }

  100% {
    translate: 0 0;
    opacity: 0.45;
  }
}

/* Mobile: Details dezenter halten */
@media (max-width: 768px) {
  .termine-background-decor span {
    opacity: 0.45;
    font-size: 2.5rem;
  }

  .termine-background-decor span:nth-child(n + 5) {
    display: none;
  }

  .termin-station-left .termin-hover-notes,
  .termin-station-right .termin-hover-notes {
    grid-column: 2;
  }

  .termin-hover-notes span {
    font-size: 1.15rem;
  }

  .termin-hover-notes span:nth-child(4),
  .termin-hover-notes span:nth-child(5),
  .termin-hover-notes span:nth-child(6),
  .termin-hover-notes span:nth-child(10) {
    display: none;
  }
}

/* Minimalere Variante: Noten nur dezent am Rand der Kachel */
.termine-background-decor {
  display: none;
}

.termin-card {
  z-index: 1;
}

.termin-card,
.termin-card * {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.termin-card {
  appearance: none;
  -webkit-appearance: none;
}

.termin-hover-notes {
  z-index: 0;
}

.termin-hover-notes span {
  color: rgba(201, 162, 39, 0.34);
  font-size: 1rem;
  text-shadow: none;
  transform: translateY(2px) scale(0.9) rotate(0deg);
  transition:
    opacity 0.18s ease,
    transform 0.28s ease;
}

.termin-hover-notes span:nth-child(n + 5) {
  display: none;
}

.termin-hover-notes span:nth-child(1) {
  top: -10px;
  left: 14%;
}

.termin-hover-notes span:nth-child(2) {
  top: -12px;
  left: auto;
  right: 18%;
  font-size: 1.08rem;
}

.termin-hover-notes span:nth-child(3) {
  top: auto;
  right: 16%;
  bottom: -10px;
}

.termin-hover-notes span:nth-child(4) {
  top: auto;
  left: 18%;
  bottom: -12px;
  font-size: 1rem;
}

.termin-station:hover .termin-hover-notes span {
  opacity: 0.75;
}

.termin-station:hover .termin-hover-notes span:nth-child(1) {
  transform: translate(-2px, -3px) scale(1) rotate(-8deg);
}

.termin-station:hover .termin-hover-notes span:nth-child(2) {
  transform: translate(2px, -4px) scale(1) rotate(7deg);
  transition-delay: 0.02s;
}

.termin-station:hover .termin-hover-notes span:nth-child(3) {
  transform: translate(2px, 3px) scale(1) rotate(-6deg);
  transition-delay: 0.04s;
}

.termin-station:hover .termin-hover-notes span:nth-child(4) {
  transform: translate(-2px, 4px) scale(1) rotate(6deg);
  transition-delay: 0.06s;
}

.termin-station:hover .termin-card {
  border-color: rgba(201, 162, 39, 0.28);
}

.termin-station:hover .termin-card::after {
  opacity: 0.25;
}

.termin-card::after {
  background:
    linear-gradient(
      135deg,
      transparent 0%,
      rgba(201, 162, 39, 0.035) 44%,
      transparent 68%
    );
}

@media (max-width: 768px) {
  .termin-hover-notes span {
    font-size: 0.95rem;
  }

  .termin-hover-notes span:nth-child(2),
  .termin-hover-notes span:nth-child(4) {
    display: none;
  }
}

/* =========================
   TERMINE BACKGROUND NOTES
========================= */

.termine-background-decor {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.termine-background-decor span {
  position: absolute;
  color: rgba(201, 162, 39, 0.085);
  font-size: clamp(1.35rem, 2.3vw, 3.2rem);
  line-height: 1;
  user-select: none;
  filter: none;
  animation: termineBackgroundNoteDrift 13s ease-in-out infinite;
}

.termine-background-decor span:nth-child(1) {
  top: 1%;
  left: 4%;
  transform: rotate(-10deg);
}

.termine-background-decor span:nth-child(2) {
  top: 6%;
  left: 38%;
  animation-delay: 1.4s;
  transform: rotate(8deg);
}

.termine-background-decor span:nth-child(3) {
  top: 11%;
  right: 7%;
  animation-delay: 2.2s;
  transform: rotate(-6deg);
}

.termine-background-decor span:nth-child(4) {
  top: 19%;
  left: 18%;
  animation-delay: 0.7s;
  transform: rotate(12deg);
}

.termine-background-decor span:nth-child(5) {
  top: 25%;
  right: 20%;
  animation-delay: 3.1s;
  transform: rotate(-12deg);
}

.termine-background-decor span:nth-child(6) {
  top: 34%;
  left: 6%;
  animation-delay: 1.8s;
  transform: rotate(7deg);
}

.termine-background-decor span:nth-child(7) {
  top: 40%;
  right: 6%;
  animation-delay: 4s;
  transform: rotate(14deg);
}

.termine-background-decor span:nth-child(8) {
  top: 47%;
  left: 33%;
  animation-delay: 2.8s;
  transform: rotate(-8deg);
}

.termine-background-decor span:nth-child(9) {
  top: 55%;
  left: 11%;
  animation-delay: 0.9s;
  transform: rotate(-14deg);
}

.termine-background-decor span:nth-child(10) {
  top: 61%;
  right: 17%;
  animation-delay: 3.7s;
  transform: rotate(9deg);
}

.termine-background-decor span:nth-child(11) {
  top: 68%;
  left: 44%;
  animation-delay: 1.1s;
  transform: rotate(5deg);
}

.termine-background-decor span:nth-child(12) {
  top: 75%;
  left: 5%;
  animation-delay: 2.5s;
  transform: rotate(13deg);
}

.termine-background-decor span:nth-child(13) {
  top: 81%;
  right: 8%;
  animation-delay: 4.4s;
  transform: rotate(-9deg);
}

.termine-background-decor span:nth-child(14) {
  top: 88%;
  left: 26%;
  animation-delay: 1.9s;
  transform: rotate(-5deg);
}

.termine-background-decor span:nth-child(15) {
  bottom: 2%;
  right: 32%;
  animation-delay: 3.3s;
  transform: rotate(11deg);
}

.termine-background-decor span:nth-child(16) {
  bottom: 0;
  right: 4%;
  animation-delay: 0.4s;
  transform: rotate(-7deg);
}

.termin-hover-notes {
  display: none;
}

.termin-card::after {
  display: none;
}

.termin-station:hover .termin-card {
  border-color: var(--color-border);
}

.termin-card-upcoming:not(.termin-card-current):hover .termin-card,
.termin-card-upcoming:not(.termin-card-current) .termin-card:hover,
.termin-card-upcoming:not(.termin-card-current).termin-station:hover .termin-card {
  border-color: rgba(208, 2, 27, 0.45);
}

.termin-card-current:hover .termin-card,
.termin-card-current .termin-card:hover,
.termin-card-current.termin-station:hover .termin-card {
  border-color: rgba(201, 162, 39, 0.65);
}

.termin-card-past:hover .termin-card,
.termin-card-past .termin-card:hover,
.termin-card-past.termin-station:hover .termin-card {
  border-color: #cfcfcf;
}

@keyframes termineBackgroundNoteDrift {
  0% {
    translate: 0 0;
    opacity: 0.38;
  }

  50% {
    translate: 0 -8px;
    opacity: 0.68;
  }

  100% {
    translate: 0 0;
    opacity: 0.38;
  }
}

@media (max-width: 768px) {
  .termine-background-decor span {
    color: rgba(201, 162, 39, 0.07);
    font-size: 1.45rem;
  }

  .termine-background-decor span:nth-child(n + 11) {
    display: none;
  }
}

/* Freie Hintergrundverteilung statt fester Kachel-Akzente */
.termine-background-decor span {
  display: inline-flex;
  top: var(--note-top);
  left: var(--note-left);
  right: auto;
  bottom: auto;
  color: rgba(201, 162, 39, 0.18);
  font-size: clamp(1.25rem, var(--note-size), 3rem);
  opacity: var(--note-opacity-low);
  text-shadow: 0 8px 24px rgba(201, 162, 39, 0.14);
  transform: rotate(var(--note-rotation)) scale(var(--note-scale));
  animation: termineBackgroundNoteFreeFloat var(--note-duration) cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: var(--note-delay);
  will-change: translate, opacity, transform;
}

.termine-background-decor span:nth-child(n) {
  right: auto;
  bottom: auto;
  transform: rotate(var(--note-rotation)) scale(var(--note-scale));
  animation-delay: var(--note-delay);
}

@keyframes termineBackgroundNoteFreeFloat {
  0% {
    translate: 0 0;
    opacity: var(--note-opacity-low);
  }

  50% {
    translate: var(--note-active-drift-x) var(--note-active-drift-y);
    opacity: var(--note-opacity-high);
  }

  100% {
    translate: 0 0;
    opacity: var(--note-opacity-low);
  }
}

@media (max-width: 768px) {
  .termine-background-decor span {
    display: inline-flex;
    color: rgba(201, 162, 39, 0.12);
    font-size: clamp(0.95rem, var(--note-size), 1.65rem);
    text-shadow: 0 5px 14px rgba(201, 162, 39, 0.08);
  }

  .termine-background-decor span:nth-child(n + 11) {
    display: inline-flex;
  }

  .termine-background-decor span:nth-child(n + 361) {
    display: none;
  }
}

/* =========================
   TERMINE PATH HERO FADE
========================= */

.appointments-page .content-section {
  overflow: visible;
}

.appointments-page .content-container {
  position: relative;
}

.termine-transition-clef {
  position: absolute;
  top: -106px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%) rotate(-5deg);
  pointer-events: auto;
  color: rgba(201, 162, 39, 0.98);
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  text-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(201, 162, 39, 0.24);
  user-select: none;
  -webkit-user-select: none;
  transition:
    color 0.24s ease,
    text-shadow 0.24s ease,
    transform 0.24s ease;
}

.termine-transition-clef:hover,
.termine-transition-clef:focus-visible {
  color: rgba(242, 201, 76, 1);
  transform: translateX(-50%) rotate(-2deg) scale(1.08);
  text-shadow:
    0 14px 32px rgba(0, 0, 0, 0.26),
    0 0 30px rgba(242, 201, 76, 0.42);
}

.termine-transition-notes {
  position: absolute;
  top: -104px;
  right: 0;
  left: 0;
  height: 128px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 0.42) 28px,
    #000000 72px,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 0.42) 28px,
    #000000 72px,
    transparent 100%
  );
}

.termine-transition-notes span {
  position: absolute;
  color: rgba(201, 162, 39, 0.34);
  font-size: clamp(1.1rem, 2vw, 2.15rem);
  line-height: 1;
  text-shadow: 0 8px 24px rgba(201, 162, 39, 0.16);
  animation: termineTransitionNoteFloat 7.5s ease-in-out infinite;
}

.termine-transition-notes span:nth-child(1) {
  top: 8px;
  left: 18%;
  transform: rotate(-10deg);
}

.termine-transition-notes span:nth-child(2) {
  top: 70px;
  left: 31%;
  animation-delay: 1.2s;
  transform: rotate(8deg);
}

.termine-transition-notes span:nth-child(3) {
  top: -4px;
  left: 46%;
  animation-delay: 0.7s;
  transform: rotate(-5deg);
}

.termine-transition-notes span:nth-child(4) {
  top: 84px;
  left: 56%;
  animation-delay: 2s;
  transform: rotate(12deg);
}

.termine-transition-notes span:nth-child(5) {
  top: 38px;
  right: 29%;
  animation-delay: 1.6s;
  transform: rotate(-8deg);
}

.termine-transition-notes span:nth-child(6) {
  top: 76px;
  right: 17%;
  animation-delay: 2.4s;
  transform: rotate(10deg);
}

.termine-transition-notes span:nth-child(7) {
  top: 24px;
  right: 8%;
  animation-delay: 3s;
  transform: rotate(-12deg);
}

.termine-roadmap {
  overflow: visible;
  padding-bottom: 132px;
}

.termine-ending-clef {
  position: absolute;
  right: auto;
  bottom: 18px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%) rotate(4deg);
  pointer-events: auto;
  color: rgba(201, 162, 39, 0.98);
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  text-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(201, 162, 39, 0.24);
  user-select: none;
  -webkit-user-select: none;
  transition:
    color 0.24s ease,
    text-shadow 0.24s ease,
    transform 0.24s ease;
}

.termine-ending-clef:hover,
.termine-ending-clef:focus-visible {
  color: rgba(242, 201, 76, 1);
  transform: translateX(-50%) rotate(1deg) scale(1.08);
  text-shadow:
    0 14px 32px rgba(0, 0, 0, 0.26),
    0 0 30px rgba(242, 201, 76, 0.42);
}

.termine-roadmap::before {
  top: -104px;
  bottom: 0;
  height: auto;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 0.18) 26px,
    rgba(0, 0, 0, 0.72) 74px,
    #000000 124px
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 0.18) 26px,
    rgba(0, 0, 0, 0.72) 74px,
    #000000 124px
  );
}

.termine-roadmap::after {
  top: -104px;
  height: calc(var(--termin-path-progress) + 104px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 0.1) 34px,
    rgba(0, 0, 0, 0.65) 86px,
    #000000 132px
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 0.1) 34px,
    rgba(0, 0, 0, 0.65) 86px,
    #000000 132px
  );
}

@media (max-width: 768px) {
  .termine-roadmap::before {
    top: -72px;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0,
      rgba(0, 0, 0, 0.24) 22px,
      rgba(0, 0, 0, 0.78) 54px,
      #000000 88px
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0,
      rgba(0, 0, 0, 0.24) 22px,
      rgba(0, 0, 0, 0.78) 54px,
      #000000 88px
    );
  }

  .termine-roadmap::after {
    top: -72px;
    height: calc(var(--termin-path-progress) + 72px);
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0,
      rgba(0, 0, 0, 0.14) 24px,
      rgba(0, 0, 0, 0.68) 58px,
      #000000 92px
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0,
      rgba(0, 0, 0, 0.14) 24px,
      rgba(0, 0, 0, 0.68) 58px,
      #000000 92px
    );
  }

  .termine-transition-notes {
    top: -74px;
    height: 98px;
  }

  .termine-transition-clef {
    top: -76px;
    left: 28px;
    transform: translateX(-50%) rotate(-5deg);
    font-size: 3rem;
  }

  .termine-roadmap {
    padding-bottom: 104px;
  }

  .termine-ending-clef {
    bottom: 18px;
    left: 28px;
    transform: translateX(-50%) rotate(4deg);
    font-size: 3rem;
  }

  .termine-transition-notes span {
    font-size: 1.15rem;
  }

  .termine-transition-notes span:nth-child(n + 5) {
    display: none;
  }
}

@keyframes termineTransitionNoteFloat {
  0% {
    translate: 0 0;
    opacity: 0.34;
  }

  50% {
    translate: 0 -8px;
    opacity: 0.68;
  }

  100% {
    translate: 0 0;
    opacity: 0.34;
  }
}
/* =========================
   TERMINE SMART LAYER
========================= */

/* Kacheln, die wahrscheinlich gleich relevant werden */
.termin-smart-warm .termin-card,
.termin-smart-active .termin-card,
.termin-smart-target-warm .termin-card {
  will-change: transform, box-shadow, border-color;
}

.termin-smart-warm .termin-note,
.termin-smart-active .termin-note,
.termin-smart-target-warm .termin-note {
  will-change: transform, box-shadow;
}

.termin-smart-warm .termin-hover-notes span,
.termin-smart-active .termin-hover-notes span,
.termin-smart-target-warm .termin-hover-notes span {
  will-change: transform, opacity;
}

/* Wenn der nächste Termin wahrscheinlich gleich angesprungen wird */
.termine-smart-current-warm #aktueller-termin .termin-card {
  will-change: transform, box-shadow, border-color;
}

/* Wenn ein Sprung nach oben wahrscheinlich ist */
.termine-smart-top-warm .site-header,
.termine-smart-top-warm .header-container,
.termine-smart-top-warm .termine-page-hero-image,
.termine-smart-top-warm .page-hero-container {
  will-change: transform, opacity, background-color, box-shadow;
}

/* Kalte Kacheln bleiben sichtbar, aber ohne Vorbereitung */
.termin-smart-cold .termin-card,
.termin-smart-cold .termin-note,
.termin-smart-cold .termin-hover-notes span {
  will-change: auto;
}

/* =========================
   HISTORIE PAGE
========================= */

.historie-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(201, 162, 39, 0.1), transparent 34%),
    linear-gradient(180deg, #f7f3eb 0%, #f5f5f5 44%, #ffffff 100%);
  overflow-x: hidden;
}

/* =========================
   HISTORIE HERO
========================= */

.historie-page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48)),
    url("../png/MVO_Gruppenbild_alt.webp") center / cover no-repeat;
}

.historie-page-hero::after {
  content: "♪ ♬ ♫";
  position: absolute;
  right: 8%;
  bottom: 12%;
  color: rgba(255, 255, 255, 0.12);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 700;
  pointer-events: none;
  transform: rotate(-8deg);
}

.historie-page-hero .page-hero-container {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  padding: 120px 24px 90px;
  color: var(--color-white);
}

.historie-page-hero .section-kicker {
  margin-bottom: 14px;
  color: rgba(201, 162, 39, 0.95);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.historie-page-hero .page-hero-title {
  max-width: 800px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin-bottom: 22px;
  color: var(--color-white);
}

.historie-page-hero .page-hero-text {
  max-width: 680px;
  font-size: 1.16rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

/* =========================
   HISTORIE STICKY SCROLL STAGE
========================= */

.historie-scroll-stage {
  position: relative;
  min-height: 100vh;
}

.historie-sticky-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 0;
}

.historie-scene-header {
  width: min(var(--layout-max-width), calc(100% - 48px));
  margin: 0 auto 26px;
}

.historie-scene-header .section-kicker {
  margin-bottom: 10px;
  color: rgba(201, 162, 39, 0.95);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.historie-scene-header h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.historie-scene-header p {
  max-width: 720px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.72);
}

/* =========================
   HISTORIE CLOTHESLINE SCENE
========================= */

.historie-clothesline-stage {
  position: relative;
  width: 100vw;
  height: 660px;
  min-height: 660px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.historie-rope-svg {
  position: absolute;
  top: 0;
  left: -4vw;
  width: 108vw;
  height: 180px;
  z-index: 3;
  pointer-events: none;
}

.historie-rope-shadow,
.historie-rope-main {
  fill: none;
  stroke-linecap: round;
}

.historie-rope-shadow {
  stroke: rgba(0, 0, 0, 0.24);
  stroke-width: 8;
  transform: translateY(5px);
  opacity: 0.28;
}

.historie-rope-main {
  stroke: #8c6131;
  stroke-width: 5;
  filter: drop-shadow(0 2px 1px rgba(255, 255, 255, 0.4));
}

.historie-polaroid-slots {
  --historie-slot-shift: 0;
  --historie-slot-distance: clamp(245px, 25vw, 360px);

  position: absolute;
  top: 42px;
  left: 50%;
  z-index: 4;

  display: flex;
  align-items: flex-start;
  gap: clamp(26px, 3vw, 50px);

  width: max-content;

  transform:
    translateX(
      calc(
        -50% -
        (var(--historie-slot-shift) * var(--historie-slot-distance))
      )
    );

  will-change: transform;
}

/* =========================
   HISTORIE POLAROID SLOT
========================= */

.historie-polaroid-slot {
  position: relative;
  flex: 0 0 clamp(220px, 22vw, 300px);

  margin-top: var(--slot-drop);
  transform:
    rotate(var(--slot-rotate))
    scale(var(--slot-scale));

  transform-origin: top center;

  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.historie-polaroid-slot:hover {
  z-index: 20;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.18));
  transform:
    translateY(-8px)
    rotate(0deg)
    scale(calc(var(--slot-scale) + 0.035));
}

.historie-polaroid-string {
  position: absolute;
  left: 50%;
  top: -58px;
  width: 2px;
  height: 66px;
  transform: translateX(-50%);
  background:
    linear-gradient(
      to bottom,
      rgba(110, 74, 34, 0.55),
      rgba(110, 74, 34, 0.12)
    );
  z-index: 1;
}

.historie-clothespin {
  position: absolute;
  top: -34px;
  left: 50%;
  z-index: 5;

  width: 28px;
  height: 54px;
  transform: translateX(-50%) rotate(2deg);

  border-radius: 7px;
  background:
    linear-gradient(
      90deg,
      #9b6b36 0%,
      #d0a15d 42%,
      #8a5728 100%
    );
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.historie-clothespin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 2px;
  transform: translateX(-50%);
  background-color: rgba(80, 48, 20, 0.55);
}

.historie-clothespin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 23px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border: 2px solid rgba(80, 48, 20, 0.55);
  border-radius: 50%;
}

.historie-polaroid-card {
  width: 100%;
  min-height: 390px;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  border: none;
  border-radius: 4px;
  padding: 14px 14px 22px;

  background-color: #fffdf7;
  color: var(--color-black);
  text-align: left;
  font: inherit;
  cursor: pointer;

  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);

  transition:
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.historie-polaroid-card:hover {
  background-color: #ffffff;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.historie-polaroid-card:focus-visible {
  outline: 3px solid rgba(201, 162, 39, 0.72);
  outline-offset: 4px;
}

.historie-polaroid-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  border-radius: 2px;
  background-color: #eee7da;
}

.historie-polaroid-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}

.historie-polaroid-image-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(201, 162, 39, 0.55);
  font-size: 4rem;
  background:
    radial-gradient(circle at center, rgba(201, 162, 39, 0.16), transparent 58%),
    linear-gradient(135deg, #f1eadc, #e4d7c1);
}

.historie-polaroid-content {
  padding-top: 16px;
}

.historie-polaroid-year {
  margin-bottom: 7px;
  color: rgba(201, 162, 39, 0.95);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.historie-polaroid-title {
  font-size: 1.28rem;
  line-height: 1.14;
  margin-bottom: 9px;
}

.historie-polaroid-text {
  font-size: 0.94rem;
  line-height: 1.52;
  color: rgba(0, 0, 0, 0.72);
}

/* =========================
   HISTORIE EMPTY
========================= */

.historie-empty-message {
  width: min(720px, calc(100vw - 48px));
  padding: 32px;
  border: 1px dashed rgba(201, 162, 39, 0.45);
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

/* =========================
   HISTORIE DIALOG
========================= */

.historie-dialog {
  width: min(720px, calc(100% - 32px));
  border: none;
  border-radius: 28px;
  padding: 0;
  background-color: #fffdf7;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.historie-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.historie-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.06);
  color: var(--color-black);
  font-size: 1.7rem;
  cursor: pointer;
}

.historie-dialog-close:hover {
  background-color: rgba(201, 162, 39, 0.18);
}

.historie-dialog-content {
  padding: 44px;
}

.historie-dialog-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 28px;
}

.historie-dialog-year {
  margin-bottom: 10px;
  color: rgba(201, 162, 39, 0.95);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.historie-dialog-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.historie-dialog-text {
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.74);
}

/* =========================
   HISTORIE RESPONSIVE
========================= */

@media (max-width: 768px) {
  .historie-page-hero {
    min-height: 420px;
  }

  .historie-page-hero .page-hero-container {
    padding: 110px 16px 70px;
  }

  .historie-sticky-scene {
    padding: 0;
  }

  .historie-scene-header {
    width: calc(100% - 32px);
    margin-bottom: 20px;
  }

  .historie-clothesline-stage {
    height: 540px;
    min-height: 540px;
  }

  .historie-rope-svg {
    height: 150px;
  }

  .historie-polaroid-slots {
    --historie-slot-distance: 250px;

    top: 44px;
    gap: 24px;
  }

  .historie-polaroid-slot {
    flex-basis: 220px;
    margin-top: calc(var(--slot-drop) * 0.72);
  }

  .historie-polaroid-card {
    min-height: 350px;
  }

  .historie-polaroid-string {
    top: -48px;
    height: 56px;
  }

  .historie-clothespin {
    top: -28px;
    width: 24px;
    height: 46px;
  }

  .historie-dialog-content {
    padding: 38px 24px 30px;
  }
}

/* =========================
   SINGLE NEWS / TERMIN
========================= */

.mvo-single-page {
  background: var(--color-background-soft);
}

.mvo-single-hero {
  position: relative;
  min-height: clamp(420px, 58vh, 680px);
  display: flex;
  align-items: flex-end;
  padding: 96px 24px 72px;
  overflow: hidden;
  isolation: isolate;
  background: #111111;
}

.mvo-single-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.34) 58%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.45) 72%, rgba(245, 245, 245, 0.92) 100%);
}

.mvo-single-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mvo-single-hero-container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  color: var(--color-white);
}

.mvo-single-back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.mvo-single-kicker {
  margin-bottom: 14px;
  color: var(--color-gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mvo-single-title {
  max-width: 940px;
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  color: var(--color-white);
}

.mvo-single-meta {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
}

.mvo-single-content-section {
  padding: 0 24px 96px;
  background: var(--color-background-soft);
}

.mvo-single-card {
  margin-top: -54px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background: var(--color-white);
  box-shadow: 0 18px 46px var(--color-card-shadow);
}

.mvo-single-lead {
  max-width: 920px;
  margin: 0 0 28px;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.65;
  color: #222222;
  font-weight: 650;
}

.mvo-single-content {
  max-width: 920px;
}

.mvo-single-content > * + * {
  margin-top: 1.2em;
}

.mvo-single-content p,
.mvo-single-content li {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #333333;
}

.mvo-single-content h2,
.mvo-single-content h3,
.mvo-single-content h4 {
  margin-top: 1.6em;
  line-height: 1.2;
  color: var(--color-black);
}

.mvo-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.mvo-single-content .wp-block-image,
.mvo-single-content figure {
  margin-left: 0;
  margin-right: 0;
}

.mvo-termin-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.mvo-termin-detail-item {
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fffdfd;
}

.mvo-termin-detail-item dt {
  margin-bottom: 6px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mvo-termin-detail-item dd {
  margin: 0;
  color: var(--color-black);
  font-size: 1.08rem;
  font-weight: 750;
}

.mvo-single-action-wrap {
  margin-top: 32px;
}

.mvo-single-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 768px) {
  .mvo-single-hero {
    min-height: 380px;
    padding: 72px 20px 56px;
  }

  .mvo-single-content-section {
    padding: 0 20px 72px;
  }

  .mvo-single-card {
    margin-top: -36px;
  }

  .mvo-termin-detail-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
   SINGLE NEWS: Artikelkarte statt Hero
========================= */

.mvo-single-news-page {
  background: var(--color-background-soft);
}

.mvo-single-news-section {
  padding-top: 56px;
  padding-bottom: 96px;
}

.mvo-single-news-list {
  gap: 0;
}

.mvo-article-back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-black);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.mvo-article-back-link:hover {
  color: var(--color-red);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.mvo-article-entry-single {
  margin-bottom: 0;
}

.mvo-article-entry-single .article-entry-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

@media (max-width: 768px) {
  .mvo-single-news-section {
    padding-top: 36px;
    padding-bottom: 72px;
  }
}

/* =========================
   EDITIERBARE SEITENINHALTE
========================= */

.mvo-page-intro-section {
  padding: 42px 24px 38px;
  background: var(--color-background-soft);
}

.mvo-page-intro-section + .articles-section,
.mvo-page-intro-section + .content-section {
  padding-top: 24px;
}

.mvo-page-editor-content {
  max-width: 940px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: #333333;
}

.mvo-page-editor-content-narrow {
  margin-right: auto;
  margin-left: auto;
  padding: 28px 32px;
  border-radius: 28px;
  background: var(--color-white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.07);
}

.mvo-page-editor-content h1,
.mvo-page-editor-content h2,
.mvo-page-editor-content h3,
.mvo-page-editor-content h4 {
  margin: 0 0 14px;
  color: var(--color-black);
  line-height: 1.18;
}

.mvo-page-editor-content h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.mvo-page-editor-content p,
.mvo-page-editor-content ul,
.mvo-page-editor-content ol {
  margin: 0 0 16px;
}

.mvo-page-editor-content > *:last-child {
  margin-bottom: 0;
}

.mvo-page-editor-content img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.mvo-home-editor-content {
  max-width: 760px;
}

.mvo-home-editor-content h1,
.mvo-home-editor-content h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: var(--color-black);
}

.mvo-home-editor-content p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #333333;
}

.mvo-historie-editor-content {
  max-width: 960px;
}

.mvo-historie-editor-content h1,
.mvo-historie-editor-content h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--color-black);
}

.mvo-historie-editor-content p {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: #333333;
}

/* =========================
   ARTIKEL: RUNDE BILDER & MEHR-LESEN-FLUSS
========================= */

.article-entry img,
.mvo-article-entry img,
.article-block-wp-content img,
.article-block-wp-content .wp-block-image img,
.article-block-wp-content .wp-block-gallery img {
  border-radius: 22px;
}

.article-entry figure,
.article-block-wp-content .wp-block-image,
.article-block-wp-content .wp-block-gallery,
.article-block-media,
.article-block-image,
.gallery-item {
  overflow: hidden;
  border-radius: 22px;
}

.article-block-media-text .article-hidden-text-below,
.article-block-media-text .read-more-button-below,
.article-block-media-text .article-block-text-below {
  grid-column: 1 / -1;
}

.article-block-media-text .article-block-text-below {
  margin-top: 4px;
}

.article-hidden-text.open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-hidden-text-below p,
.article-block-text-below p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333333;
}

@media (max-width: 768px) {
  .mvo-page-intro-section {
    padding: 30px 16px;
  }

  .mvo-page-editor-content-narrow {
    padding: 24px 22px;
    border-radius: 22px;
  }

  .mvo-home-editor-content h1,
  .mvo-home-editor-content h2 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }
}


/* =========================
   EINHEITLICHE HEROS: AKTUELLES & TERMINE
   Referenz: Historie-Hero
========================= */

.news-page-hero.mvo-page-image-hero,
.termine-page-hero.mvo-page-image-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #111111;
  padding: 0;
  color: var(--color-white);
}

.news-page-hero.mvo-page-image-hero::before,
.termine-page-hero.mvo-page-image-hero::before {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48));
}

.news-page-hero.mvo-page-image-hero::after,
.termine-page-hero.mvo-page-image-hero::after {
  content: "♪ ♬ ♫";
  position: absolute;
  right: 8%;
  bottom: 12%;
  left: auto;
  z-index: -1;
  width: auto;
  height: auto;
  pointer-events: none;
  background: none;
  color: rgba(255, 255, 255, 0.12);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 1;
  transform: rotate(-8deg);
}

.mvo-page-hero-image {
  filter: grayscale(0.08) contrast(1.05) brightness(0.86);
  transform: scale(1.04);
  animation: mvoPageHeroZoom 15s cubic-bezier(.16, 1, .3, 1) forwards;
}

.mvo-page-hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.news-page-hero .mvo-page-hero-content,
.termine-page-hero .mvo-page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 120px 24px 90px;
  color: var(--color-white);
  text-align: left;
  transform: none;
}

.mvo-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(201, 162, 39, 0.95);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
  animation: mvoPageHeroFadeUp 0.95s cubic-bezier(.16, 1, .3, 1) 0.14s both;
}

.mvo-page-hero-eyebrow-dot {
  display: none;
}

.news-page-hero .mvo-page-hero-title,
.termine-page-hero .mvo-page-hero-title {
  max-width: 800px;
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--color-white);
  text-shadow: 0 12px 44px rgba(0, 0, 0, 0.44);
  animation: mvoPageHeroFadeUp 0.95s cubic-bezier(.16, 1, .3, 1) 0.28s both;
}

.news-page-hero .mvo-page-hero-text,
.termine-page-hero .mvo-page-hero-text {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
  line-height: 1.7;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  animation: mvoPageHeroFadeUp 0.95s cubic-bezier(.16, 1, .3, 1) 0.42s both;
}

.termine-page-hero .termine-next-appointment {
  justify-content: flex-start;
  text-align: left;
}

@keyframes mvoPageHeroZoom {
  to { transform: scale(1); }
}

@keyframes mvoPageHeroFadeUp {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mvoPageHeroPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(208, 2, 27, 0.22); }
  50% { box-shadow: 0 0 0 9px rgba(208, 2, 27, 0); }
}

@media (max-width: 768px) {
  .news-page-hero.mvo-page-image-hero,
  .termine-page-hero.mvo-page-image-hero {
    min-height: 430px;
  }

  .news-page-hero .mvo-page-hero-content,
  .termine-page-hero .mvo-page-hero-content {
    padding: 106px 20px 74px;
  }

  .news-page-hero .mvo-page-hero-title,
  .termine-page-hero .mvo-page-hero-title {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .mvo-page-hero-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .termine-next-appointment {
    align-items: flex-start;
    text-align: left;
  }

  .termine-next-appointment-button {
    align-self: flex-start;
    margin-left: 0;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mvo-page-hero-image,
  .mvo-page-hero-eyebrow,
  .news-page-hero .mvo-page-hero-title,
  .termine-page-hero .mvo-page-hero-title,
  .news-page-hero .mvo-page-hero-text,
  .termine-page-hero .mvo-page-hero-text,
  .mvo-page-hero-eyebrow-dot {
    animation: none;
    transform: none;
  }
}

/* =========================
   UPDATE 1.5: GALERIE & KORREKTER MEHR-LESEN-FLUSS
========================= */

.article-block-media-text .article-hidden-text-below,
.article-block-media-text .article-block-text-below {
  order: 3;
  grid-column: 1 / -1;
}

.article-block-media-text .read-more-button-below {
  order: 4;
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 8px;
}

.article-extra-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.article-gallery-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(208, 2, 27, 0.26);
  border-radius: 999px;
  background: rgba(208, 2, 27, 0.06);
  color: var(--color-red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.article-gallery-toggle:hover {
  background: rgba(208, 2, 27, 0.1);
  border-color: rgba(208, 2, 27, 0.42);
  transform: translateY(-1px);
}

.article-gallery-panel {
  width: 100%;
}

.article-extra-gallery .article-block-gallery {
  width: 100%;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, 24vw);
}

.article-extra-gallery-count-2 .article-block-gallery,
.article-extra-gallery-count-4 .article-block-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-extra-gallery-count-3 .gallery-item:first-child,
.article-extra-gallery-count-5 .gallery-item:first-child {
  grid-row: span 2;
}

.article-extra-gallery-count-5 .article-block-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-extra-gallery-count-5 .gallery-item:first-child {
  grid-column: span 2;
}

.article-extra-gallery .gallery-item {
  min-height: 190px;
  aspect-ratio: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.article-extra-gallery .gallery-item img,
.article-extra-gallery .gallery-item.image-format-portrait img,
.article-extra-gallery .gallery-item.image-format-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f3f3f3;
}

@media (max-width: 900px) {
  .article-extra-gallery .article-block-gallery,
  .article-extra-gallery-count-5 .article-block-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(170px, 30vw);
  }

  .article-extra-gallery-count-5 .gallery-item:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .article-extra-gallery .article-block-gallery,
  .article-extra-gallery-count-2 .article-block-gallery,
  .article-extra-gallery-count-4 .article-block-gallery,
  .article-extra-gallery-count-5 .article-block-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .article-extra-gallery-count-3 .gallery-item:first-child,
  .article-extra-gallery-count-5 .gallery-item:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .article-extra-gallery .gallery-item {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}


/* Update 1.6: Weitere Bilder sind immer eine bewusst geöffnete Galerie */
.article-extra-gallery-count-1 .article-block-gallery {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(240px, 34vw);
}

.article-extra-gallery-count-1 .gallery-item {
  max-width: 760px;
  width: 100%;
  margin-inline: auto;
}

.article-extra-gallery-count-1 .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-block-wp-content .wp-block-image,
.article-block-wp-content .wp-block-gallery {
  display: none;
}

.article-block-wp-content:empty {
  display: none;
}

/* =========================
   UPDATE 1.7: Einheitliche Hero-Positionen
   Aktuelles & Termine orientieren sich an Startseite/Historie: unten links.
========================= */

.news-page-hero.mvo-page-image-hero,
.termine-page-hero.mvo-page-image-hero {
  min-height: 100vh;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
}

.news-page-hero .mvo-page-hero-content,
.termine-page-hero .mvo-page-hero-content {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 32px 108px 32px;
  align-items: flex-start;
  text-align: left;
}

.news-page-hero .mvo-page-hero-eyebrow,
.termine-page-hero .mvo-page-hero-eyebrow {
  margin-bottom: 26px;
}

.news-page-hero .mvo-page-hero-title,
.termine-page-hero .mvo-page-hero-title {
  max-width: 920px;
  margin: 0 0 22px 0;
  font-size: clamp(2.8rem, 7.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.news-page-hero .mvo-page-hero-text,
.termine-page-hero .mvo-page-hero-text {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.6;
}

.termine-page-hero .termine-next-appointment {
  justify-content: flex-start;
  text-align: left;
}

@media (max-width: 768px) {
  .news-page-hero.mvo-page-image-hero,
  .termine-page-hero.mvo-page-image-hero {
    min-height: 680px;
    padding: 0;
  }

  .news-page-hero .mvo-page-hero-content,
  .termine-page-hero .mvo-page-hero-content {
    padding: 0 22px 82px 22px;
  }

  .news-page-hero .mvo-page-hero-title,
  .termine-page-hero .mvo-page-hero-title {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .termine-page-hero .termine-next-appointment,
  .termine-next-appointment {
    align-items: flex-start;
    text-align: left;
  }

  .termine-next-appointment-button {
    align-self: flex-start;
  }
}

/* =========================
   UPDATE 1.8: Hero-Feinschliff & dezente Bildgalerie
========================= */

.news-page-hero.mvo-page-image-hero,
.termine-page-hero.mvo-page-image-hero {
  height: 100vh;
  min-height: 640px;
}

.news-page-hero .mvo-page-hero-content,
.termine-page-hero .mvo-page-hero-content {
  padding: 0 32px 120px 32px;
}

.article-block-media {
  display: flex;
  flex-direction: column;
}

.article-main-image-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.article-gallery-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 2px solid rgba(208, 2, 27, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--color-red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.article-gallery-toggle::after {
  content: "↘";
  font-size: 0.9em;
  line-height: 1;
  transform: translateY(1px);
  transition: transform 0.2s ease;
}

.article-gallery-toggle[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(180deg);
}

.article-gallery-toggle:hover {
  background: transparent;
  border-color: rgba(208, 2, 27, 0.62);
  color: #ad0016;
  transform: translateY(-1px);
}

.article-gallery-toggle-under-image {
  align-self: flex-start;
}

.article-inline-gallery {
  order: 5;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 18px;
}

.article-inline-gallery .article-gallery-panel,
.article-extra-gallery .article-gallery-panel {
  width: 100%;
}

.article-inline-gallery .article-block-gallery,
.article-extra-gallery .article-block-gallery {
  width: 100%;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.article-inline-gallery .gallery-item,
.article-extra-gallery .gallery-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: #f6f1eb;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.article-inline-gallery .gallery-item img,
.article-extra-gallery .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-inline-gallery .gallery-item.image-format-portrait img,
.article-inline-gallery .gallery-item.image-format-poster img,
.article-extra-gallery .gallery-item.image-format-portrait img,
.article-extra-gallery .gallery-item.image-format-poster img {
  box-sizing: border-box;
  padding: 10px;
  object-fit: contain;
}

.article-inline-gallery.article-extra-gallery-count-1 .article-block-gallery,
.article-extra-gallery-count-1 .article-block-gallery {
  grid-template-columns: minmax(0, 1fr);
}

.article-inline-gallery.article-extra-gallery-count-1 .gallery-item,
.article-extra-gallery-count-1 .gallery-item {
  max-width: 760px;
  width: 100%;
  margin-inline: auto;
}

.article-inline-gallery.article-extra-gallery-count-3 .gallery-item:first-child,
.article-inline-gallery.article-extra-gallery-count-5 .gallery-item:first-child,
.article-extra-gallery-count-3 .gallery-item:first-child,
.article-extra-gallery-count-5 .gallery-item:first-child {
  grid-row: auto;
  grid-column: auto;
}

.article-inline-gallery.article-extra-gallery-count-5 .article-block-gallery,
.article-extra-gallery-count-5 .article-block-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .news-page-hero.mvo-page-image-hero,
  .termine-page-hero.mvo-page-image-hero {
    min-height: 640px;
  }

  .news-page-hero .mvo-page-hero-content,
  .termine-page-hero .mvo-page-hero-content {
    padding: 0 22px 92px 22px;
  }
}

@media (max-width: 640px) {
  .article-inline-gallery .article-block-gallery,
  .article-extra-gallery .article-block-gallery,
  .article-extra-gallery-count-5 .article-block-gallery {
    grid-template-columns: 1fr;
  }

  .article-inline-gallery .gallery-item,
  .article-extra-gallery .gallery-item {
    aspect-ratio: 4 / 3;
  }

  .article-main-image-actions {
    margin-top: 10px;
  }
}

/* UPDATE 1.8: Zielmarkierung bei Sprung aus dem Startseiten-Slider */
.article-entry {
  scroll-margin-top: 120px;
}

.article-entry-highlight {
  animation: mvoArticleHighlight 2.2s ease both;
}

@keyframes mvoArticleHighlight {
  0% { box-shadow: 0 0 0 0 rgba(208, 2, 27, 0.0); }
  18% { box-shadow: 0 0 0 8px rgba(208, 2, 27, 0.18); }
  100% { box-shadow: inherit; }
}
