/* design-final.css · Leistungsseiten (/hochzeit/, /geburtstag/, /firmenfeier/)
   Wird als letztes Stylesheet geladen und ersetzt die gewachsenen Einzelregeln
   für Raster, Schriftgrößen und Abstände. Drei Abschnittstypen:
   Zeile (Überschrift links, Inhalt rechts), Band (dunkel, volle Breite),
   Vollbreite (Überschrift oben, Inhalt mehrspaltig). */

:root {
  --page: 75rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --row-gap: clamp(2rem, 5vw, 4.5rem);
  --section-space: clamp(2.25rem, 4vw, 3.5rem);
  --text: 1.125rem;
  --h2-section: clamp(1.5rem, 1.15rem + 1.75vw, 2.5rem);
  --h2-row: clamp(1.375rem, 1.2rem + .85vw, 1.875rem);
  --row-cols: minmax(0, 5fr) minmax(0, 7fr);
  --row-offset: calc((100% - var(--row-gap)) * 5 / 12 + var(--row-gap));
}
@media (min-width: 80rem) {
  :root {
    --row-cols: minmax(0, 4fr) minmax(0, 8fr);
    --row-offset: calc((100% - var(--row-gap)) / 3 + var(--row-gap));
  }
}

/* Ab 48rem liegen die schwebenden Schaltflächen rechts. Der Rand ist so breit,
   dass sie nie über dem Inhalt stehen. */
@media (min-width: 48rem) {
  :root { --gutter: 4.5rem; }
}

/* ---------- Alle Seiten: feste Schriftstufen ---------- */
#inhalt { font-size: var(--text); }
#inhalt h1 { font-size: clamp(1.875rem, 1.1rem + 4vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
#inhalt h2 { font-size: var(--h2-section); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
#inhalt h3 { font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem); line-height: 1.3; letter-spacing: -.01em; }
#inhalt :is(h1, h2, h3),
#inhalt .source-content,
.site-footer .footer-column { overflow-wrap: break-word; word-break: normal; hyphens: manual; }

/* ---------- Seitenrahmen: eine Inhaltsbreite, eine linke Kante ----------
   Jeder Container reicht über die volle Fensterbreite, der Inhalt sitzt über
   den Innenabstand immer in derselben 75rem breiten Spalte. */
body { max-width: none; }
.header-inner,
#inhalt .wrap,
.site-footer .footer-layout,
.site-footer .footer-bottom-inner {
  box-sizing: border-box;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2)) !important;
}
#inhalt .wrap .wrap { padding-inline: 0 !important; }
@media (min-width: 48rem) {
  .site-footer .footer-column { padding-inline-start: 0; }
}

/* ---------- Schrift: feste Stufen statt vw-Sprünge ---------- */
#inhalt :is(.event-section, .event-body, .event-assurance, .event-preamble) :is(p, li, dd) {
  font-size: var(--text);
  line-height: 1.7;
  max-width: none;
  max-inline-size: none;
}
#inhalt :is(h1, h2, h3),
#inhalt .source-content {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
#inhalt :is(.event-section, .event-body, .event-assurance, .event-request) h2 {
  font-size: var(--h2-row);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
  max-width: none;
  max-inline-size: none;
  margin: 0;
}
#inhalt .event-hero h1 {
  font-size: clamp(1.875rem, 1.1rem + 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
#inhalt .event-hero-intro p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }

/* ---------- Vorspann ---------- */
#inhalt .event-preamble { padding-block: clamp(2rem, 4vw, 3.25rem) 0; text-align: left; display: block; }
#inhalt .event-preamble p {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  line-height: 1.5;
  max-inline-size: 52rem;
  margin: 0;
  text-align: left;
}

/* ---------- Vollbreite: Einstiegsabschnitt mit Abendkurve ---------- */
#inhalt .event-section-tracks {
  padding-block: var(--section-space);
  row-gap: 1.25rem;
}
#inhalt .event-section-tracks > h2 { font-size: var(--h2-section); line-height: 1.12; letter-spacing: -.03em; }

/* ---------- Zeile: Überschrift links, Inhalt rechts ---------- */
#inhalt .event-body { padding-block: 0; }
#inhalt .event-body > .event-details { display: contents; }
#inhalt .event-body > .event-extra,
#inhalt .event-body > .event-details > div,
#inhalt .event-assurance {
  display: block;
  max-width: none;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
#inhalt .event-assurance { border-top: 0; position: relative; }
#inhalt .event-assurance::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: max(var(--gutter), calc((100% - var(--page)) / 2));
  border-top: 1px solid var(--line);
}
#inhalt .event-assurance > div { display: contents; border: 0; padding: 0; }
#inhalt :is(.event-body > .event-extra, .event-body > .event-details > div, .event-assurance) :is(p, ul, ol, div) + :is(p, ul, ol, div),
#inhalt :is(.event-body > .event-extra, .event-body > .event-details > div) h2 + * { margin-top: 1rem; }
#inhalt .event-assurance p { margin-top: 0; }
#inhalt .event-assurance :is(p, div) { margin-bottom: 1rem; }
#inhalt .event-assurance [data-supplement] { margin-top: 0; }
#inhalt .event-assurance [data-supplement] p:last-child { margin-bottom: 0; }

@media (min-width: 64rem) {
  #inhalt .event-body > .event-extra,
  #inhalt .event-body > .event-details > div,
  #inhalt .event-assurance {
    display: grid;
    grid-template-columns: var(--row-cols);
    column-gap: var(--row-gap);
    row-gap: 0;
    align-items: start;
  }
  #inhalt :is(.event-body > .event-extra, .event-body > .event-details > div, .event-assurance) h2 {
    grid-column: 1;
    grid-row: 1 / span 12;
    align-self: start;
  }
  #inhalt :is(.event-body > .event-extra, .event-body > .event-details > div) > :not(h2),
  #inhalt .event-assurance > div > :not(h2) {
    grid-column: 2;
    max-inline-size: 46rem;
  }
  #inhalt :is(.event-body > .event-extra, .event-body > .event-details > div) h2 + * { margin-top: 0; }
}

/* ---------- Ablauf als Zeitleiste ---------- */
#inhalt .event-extra > ul:has(> li > strong:first-child) {
  display: block;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0 0 0 1.75rem;
  border-inline-start: 2px solid var(--gold);
}
#inhalt .event-extra > ul:has(> li > strong:first-child) > li {
  position: relative;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}
#inhalt .event-extra > ul:has(> li > strong:first-child) > li + li { margin-top: 1.25rem; }
#inhalt .event-extra > ul:has(> li > strong:first-child) > li::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(-1.75rem - 7px);
  inset-block-start: .55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--paper);
}
#inhalt .event-extra > ul > li > strong:first-child { display: block; font-weight: 700; }
#inhalt .event-extra > ul:has(> li > strong:first-child) + p {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--inside-lavender);
  border-top: .25rem solid var(--gold);
}

/* ---------- Band: Preis ---------- */
#inhalt .event-body > .event-cost {
  display: block;
  margin-block: 0 var(--section-space);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border: 0;
  border-top: .25rem solid var(--gold);
  text-align: center;
}
#inhalt .event-body > .event-cost > div { display: block; }
#inhalt .event-cost h2 { font-size: var(--h2-section); line-height: 1.12; letter-spacing: -.03em; color: inherit; }
#inhalt .event-cost p { max-inline-size: 44rem; margin: 1rem auto 0; }
#inhalt .event-cost .event-cost-image > p:empty { display: none; }
#inhalt .event-cost .event-cost-image,
#inhalt .event-cost .event-cost-image :is(.wp-block-image, figure, picture) { display: block; margin: 0; max-width: none; }
#inhalt .event-cost .event-cost-image img { display: block; width: 100%; height: auto; max-height: none; object-fit: cover; }
#inhalt .event-body > .event-cost:has(.event-cost-image) { padding: 0; }
#inhalt .event-cost:has(.event-cost-image) > div:not(.event-cost-image) { padding: clamp(1.75rem, 4vw, 3.25rem); }
@media (min-width: 64rem) {
  #inhalt .event-body > .event-cost:has(.event-cost-image) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 0;
    align-items: stretch;
    text-align: left;
  }
  #inhalt .event-cost:has(.event-cost-image) > div:not(.event-cost-image) { grid-column: 1; grid-row: 1; align-self: center; }
  #inhalt .event-cost:has(.event-cost-image) p { margin-inline: 0; }
  #inhalt .event-cost .event-cost-image { grid-column: 2; grid-row: 1; position: relative; min-height: 20rem; }
  #inhalt .event-cost .event-cost-image :is(.wp-block-image, figure, picture) { position: absolute; inset: 0; height: 100%; }
  #inhalt .event-cost .event-cost-image img { height: 100%; }
}

/* ---------- Vollbreite: FAQ ---------- */
#inhalt .event-body > .event-faq {
  display: block;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}
#inhalt .event-faq > h2 { font-size: var(--h2-section); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 1.5rem; }
/* ---------- Band: Zitat ---------- */
#inhalt .event-quote-copy blockquote p { font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.875rem); line-height: 1.3; letter-spacing: -.02em; }

/* ---------- Abschluss mit Formular ---------- */
#inhalt .event-request-inner { padding-block: clamp(2.5rem, 5vw, 4.5rem); display: block; }
#inhalt .event-request h2 { font-size: var(--h2-section); line-height: 1.12; letter-spacing: -.03em; }
#inhalt .event-request-inner :is(p, ul, ol) { font-size: var(--text); }
#inhalt .event-request-inner > div + div { margin-top: 2rem; }
@media (min-width: 64rem) {
  #inhalt .event-request-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--row-gap);
    align-items: start;
  }
  #inhalt .event-request-inner > div + div { margin-top: 0; }
  #inhalt .event-request-inner .request-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Einstieg: Bild über die volle Fensterbreite ---------- */
#inhalt .event-hero-inner { position: static; }
#inhalt .event-hero-copy { position: relative; z-index: 1; }

/* ---------- Schmale Fenster: Abstände um Überschriften ---------- */
@media (max-width: 63.99rem) {
  #inhalt .event-assurance h2 { margin-block: 1.75rem .75rem; }
  #inhalt .event-request-inner h2 { margin-bottom: 1rem; }
}

/* ---------- Schlichte Aufzählung (ohne Stichwort): zweispaltig mit goldenem Strich ---------- */
#inhalt .event-extra > ul:not(:has(> li > strong:first-child)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .6rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#inhalt .event-extra > ul:not(:has(> li > strong:first-child)) > li {
  margin: 0;
  padding: 0 0 0 1.5rem;
  background: none;
  border: 0;
  position: relative;
}
#inhalt .event-extra > ul:not(:has(> li > strong:first-child)) > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .8em;
  width: .75rem;
  height: 2px;
  background: var(--gold);
}
@media (min-width: 40rem) {
  #inhalt .event-extra > ul:not(:has(> li > strong:first-child)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Schlichte Aufzählung (ohne Stichwort): zweispaltig mit goldenem Strich ---------- */
#inhalt .event-extra > ul:not(:has(> li > strong:first-child)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .6rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#inhalt .event-extra > ul:not(:has(> li > strong:first-child)) > li {
  margin: 0;
  padding: 0 0 0 1.5rem;
  background: none;
  border: 0;
  position: relative;
}
#inhalt .event-extra > ul:not(:has(> li > strong:first-child)) > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .8em;
  width: .75rem;
  height: 2px;
  background: var(--gold);
}
@media (min-width: 40rem) {
  #inhalt .event-extra > ul:not(:has(> li > strong:first-child)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Fußzeile: dieselbe Breite und linke Kante wie der Inhalt ---------- */
.site-footer .footer-layout,
.site-footer .footer-bottom-inner {
  box-sizing: border-box;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 48rem) {
  .site-footer .footer-column { padding-inline-start: 0; }
}

/* ================= Startseite ================= */
.home-kombi #inhalt .home-hero h1 { font-size: clamp(2.125rem, 1.2rem + 4.6vw, 4.5rem); }
.home-kombi #inhalt :is(.home-occasions, .home-references, .home-process) > .wrap,
.home-kombi #inhalt :is(.home-original-intro, .home-benefits, .home-last-info, .home-reviews, .home-reference-voices) {
  padding-block: var(--section-space);
}
.home-kombi #inhalt .occasion-links a { font-size: 1rem; }
.home-kombi #inhalt .collective h2 { max-width: 20ch; }

/* Servus-Absatz und Direkter Draht */
@media (min-width: 64rem) {
  .home-kombi #inhalt .home-original-intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--row-gap);
    align-items: center;
  }
  .home-kombi #inhalt .home-original-intro > p { max-inline-size: none; }
}

/* Referenzen: Text links, Zahlen rechts, beide gleich hoch */
.home-kombi #inhalt .home-reference-facts { padding: 1.5rem 1.75rem; margin: 0; }
.home-kombi #inhalt .home-reference-facts li + li { margin-top: .45rem; }
@media (min-width: 64rem) {
  .home-kombi #inhalt .home-reference-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--row-gap);
    align-items: start;
  }
  .home-kombi #inhalt .home-reference-inner p { max-inline-size: none; }
  .home-kombi #inhalt .home-reference-followup { gap: var(--row-gap); margin-top: 2.5rem; }
}

/* Vorteile: Titelband über die volle Breite, darunter zwei Spalten */
.home-kombi #inhalt .home-benefits { display: block; border: 0; }
.home-kombi #inhalt .home-benefits-title { padding: 1.5rem 2rem; }
.home-kombi #inhalt .home-benefits-title h2 { max-width: none; }
.home-kombi #inhalt .home-benefits ul { margin-top: 1.5rem; gap: 0 var(--row-gap); }
.home-kombi #inhalt .home-benefits li { max-inline-size: none; padding-block: 1.25rem; }

/* Region und Antworten */
.home-kombi #inhalt .home-last-info { gap: var(--row-gap); }
@media (min-width: 64rem) {
  .home-kombi #inhalt .home-last-info { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ================= Preisseite ================= */
.price-kombi #inhalt .price-stage h1 { font-size: clamp(1.875rem, 1.1rem + 4vw, 4rem); }
.price-kombi #inhalt :is(.comparison > .wrap, .service, .faq, .reviews) { padding-block: var(--section-space); }
.price-kombi #inhalt :is(.section-intro, .service-lead) p,
.price-kombi #inhalt .tailored-content p { max-inline-size: none; max-width: none !important; }
.price-kombi #inhalt .section-intro { text-align: left; max-inline-size: none; margin: 0 0 1.5rem; display: block; }
.price-kombi #inhalt .section-intro p { font-size: var(--text); color: var(--ink); margin: .75rem 0 0; }
@media (min-width: 64rem) {
  .price-kombi #inhalt .section-intro,
  .price-kombi #inhalt .tailored-content :is(.service, .faq) {
    display: grid;
    grid-template-columns: var(--row-cols);
    gap: 1.5rem var(--row-gap);
    align-items: start;
  }
  .price-kombi #inhalt .section-intro p { margin: 0; }
}
.price-kombi #inhalt .service .service-photo { grid-column: 1 / -1; max-width: none; margin: 0; }
.price-kombi #inhalt .service .service-photo img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; }

/* ================= Einstiege der Unterseiten (Team, Referenzen, FAQ, Kontakt, Rechtliches) ================= */
#inhalt .inner-hero h1 { max-width: 22ch; text-wrap: balance; }
@media (min-width: 64rem) {
  #inhalt .inner-hero-team .inner-hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--row-gap); }
}
#inhalt .inner-hero-inner { min-height: 0; padding-block: clamp(2.5rem, 5vw, 4.5rem); }

/* ================= Team ================= */
#inhalt .team-main :is(.people-intro, .people-outro, .profiles) { padding-block: var(--section-space); }
#inhalt .team-main .people-intro { padding-bottom: 0; }
#inhalt .profiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1.5rem; }
#inhalt .profile { padding: 1.5rem; gap: 1.5rem 2.5rem; border-top-color: var(--gold); }
#inhalt .profile :is(p, li) { overflow-wrap: break-word; max-inline-size: none; max-width: none !important; }
@media (min-width: 48rem) {
  #inhalt .profiles > .profile,
  #inhalt .profiles > .profile:last-child:nth-child(odd) { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); grid-column: auto; }
}
#inhalt .team-main .people-outro { display: block; position: relative; }
#inhalt .team-main .people-outro::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: max(var(--gutter), calc((100% - var(--page)) / 2));
  border-top: 1px solid var(--line);
}
#inhalt .team-main .people-outro > :is(p, ul, ol, h2) { max-inline-size: none; max-width: none !important; }
#inhalt .team-main .people-outro > h2 { margin-block: 0 1rem; }
#inhalt .team-main .people-outro > h2 ~ h2 { margin-top: var(--section-space); padding-top: var(--section-space); border-top: 1px solid var(--line); }
#inhalt .team-main .people-outro > p { max-width: 46rem !important; }
#inhalt .team-main .people-outro > ul { list-style: none; margin: 1.5rem 0 0; padding: 0; gap: 0 var(--row-gap); }
#inhalt .team-main .people-outro > ul > li { border-top: 1px solid var(--line); margin: 0; padding-block: 1.25rem; }
@media (min-width: 64rem) {
  #inhalt .team-main .people-outro {
    display: grid;
    grid-template-columns: var(--row-cols);
    column-gap: var(--row-gap);
    align-items: start;
  }
  #inhalt .team-main .people-outro > h2:first-child { grid-column: 1; grid-row: 1 / span 8; }
  #inhalt .team-main .people-outro > p { grid-column: 2; }
  #inhalt .team-main .people-outro > h2 ~ h2,
  #inhalt .team-main .people-outro > ul { grid-column: 1 / -1; }
}

/* ================= Referenzen ================= */
#inhalt .references-body { padding-block: var(--section-space); }
#inhalt .references-body .references-intro { text-align: left; max-inline-size: none; margin: 0 0 2rem; }
/* Einleitung unter dem Kopf läuft wie der Vorspann der Leistungsseiten über die volle Inhaltsbreite */
#inhalt .references-body .references-intro p { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.5; max-width: none !important; max-inline-size: none; margin: 0; text-align: left; }
#inhalt .references-body > h2 { margin-block: var(--section-space) 1.25rem; }
#inhalt .references-body > ul { font-size: 1rem; }
#inhalt .references-body .references-additional { margin-top: var(--section-space); padding-top: var(--section-space); border-top: 1px solid var(--line); }
#inhalt .references-body .reference-moved-quote { max-inline-size: none; margin: var(--section-space) 0 0; }
@media (min-width: 64rem) {
  #inhalt .references-body .references-additional { grid-template-columns: var(--row-cols); column-gap: var(--row-gap); }
  #inhalt .references-body .reference-moved-quote { margin-inline-start: var(--row-offset); }
}

/* ================= Einheitlicher dunkler Einstieg ================= */
#inhalt .inner-hero { background: #090909; }

/* ================= FAQ-Listen überall: zwei Spalten über die volle Breite, kein Sonderfall ================= */
#inhalt .rank-math-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--row-gap);
}
#inhalt .rank-math-list > .rank-math-list-item,
#inhalt .rank-math-list > .rank-math-list-item:last-child:nth-child(odd) {
  inline-size: auto;
  justify-self: stretch;
  grid-column: auto;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  margin: 0;
  background: none;
}
#inhalt .rank-math-question { font-size: 1.1875rem; line-height: 1.35; font-weight: 650; margin: 0 0 .5rem; text-wrap: balance; }
#inhalt .rank-math-answer,
#inhalt .rank-math-answer p { font-size: 1.0625rem; line-height: 1.65; max-inline-size: none; max-width: none !important; margin: 0; }
@media (min-width: 64rem) {
  #inhalt .rank-math-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= FAQ-Seite ================= */
#inhalt .faq-topics { margin: 0; padding-block: var(--section-space) 0; }
#inhalt .faq-topics > .source-content { text-align: left; max-inline-size: none; margin: 0 0 1.5rem; padding: 0; }
#inhalt .faq-topics > .source-content p { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.5; max-width: none !important; max-inline-size: none; margin: 0; text-align: left; }
#inhalt .editorial-single { display: block; padding-block: var(--section-space); }
#inhalt .editorial-single .editorial-copy { max-width: none; padding: 0; }
#inhalt .editorial-single .editorial-section { max-width: none; }
#inhalt .editorial-single .editorial-section + .editorial-section { margin-top: var(--section-space); padding-top: var(--section-space); }
#inhalt .editorial-single .editorial-section > h2 { margin: 0 0 1.25rem; max-width: none; }

/* ================= Kontakt ================= */
#inhalt .contact-layout { display: block; padding-block: var(--section-space); }
#inhalt .contact-details { max-width: none; padding: 0; }
#inhalt .contact-details > :is(p, ol, ul) { max-inline-size: none; max-width: none !important; }
#inhalt .contact-details h2 { margin: 0 0 1rem; }
#inhalt .contact-details .contact-photo :is(.wp-block-image, figure) { margin: 0; }
#inhalt .contact-details .contact-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
#inhalt .contact-details .contact-photo figcaption { margin-top: .5rem; font-size: 1rem; text-align: left; }
@media (max-width: 63.99rem) {
  #inhalt .contact-details h2 ~ h2 { margin-top: 2rem; }
  #inhalt .contact-details .contact-photo { margin-top: 2rem; }
}
@media (min-width: 64rem) {
  #inhalt .contact-details {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--row-gap);
    align-items: start;
  }
  #inhalt .contact-details > * { grid-column: 1; }
  #inhalt .contact-details > h2 ~ h2 { margin-top: 2.5rem; }
  #inhalt .contact-details > .contact-photo { grid-column: 2; grid-row: 1 / span 6; }
  #inhalt .contact-request .closing-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    gap: 1rem var(--row-gap);
  }
  #inhalt .contact-request .closing-inner > h2 { grid-area: 1 / 1; }
  #inhalt .contact-request .closing-inner > p { grid-area: 2 / 1; align-self: start; margin: 0; }
  #inhalt .contact-request .closing-inner > div { grid-area: 1 / 2 / span 2; }
  #inhalt .contact-request .closing-inner .request-form { max-width: none; }
}

/* ================= Ratgeber und Rechtliches ================= */
#inhalt .guide-reading,
#inhalt .editorial-layout:not(.editorial-single) { padding-block: var(--section-space); }
#inhalt .guide-reading .editorial-copy { max-width: none; padding: 0; }
#inhalt .guide-reading .editorial-copy :is(p, li) { max-inline-size: none; max-width: none !important; }
#inhalt .guide-reading .rank-math-list { grid-template-columns: minmax(0, 1fr); }
#inhalt .guide-reading .editorial-section > h2 { max-width: none; }
#inhalt .inner-estimate strong,
#inhalt .inner-estimate b,
#inhalt .inner-estimate [class*="value"] { white-space: nowrap; }
@media (min-width: 64rem) {
  #inhalt .guide-reading {
    grid-template-columns: var(--row-cols);
    column-gap: var(--row-gap);
    align-items: start;
  }
  #inhalt .guide-reading .editorial-index { position: sticky; top: 6rem; }
}
#inhalt .inner-estimate { padding: 1.75rem 2rem; }
#inhalt .inner-estimate strong { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -.03em; }

/* Impressum: Der Build legt den gesamten Text in den Abschlussbereich. Hier wird er
   als normaler heller Inhalt dargestellt, der leere Vorgänger ausgeblendet. */
#inhalt .editorial-single.editorial-legal:not(:has(.editorial-copy > *)) { display: none; }
#inhalt .editorial-legal + .page-closing {
  background: var(--paper);
  color: var(--ink);
  border-top: 0;
}
#inhalt .editorial-legal + .page-closing::after { content: none; }
#inhalt .editorial-legal + .page-closing a:not(.button) { color: var(--violet); }
#inhalt .editorial-legal + .page-closing :focus-visible { outline-color: var(--violet); }
#inhalt .editorial-legal .editorial-copy :is(p, li),
#inhalt .editorial-legal + .page-closing :is(p, li) { max-inline-size: 46rem; }
#inhalt .editorial-legal + .page-closing h2 { margin-block: 0 1rem; }
#inhalt .editorial-legal + .page-closing img { max-width: min(100%, 24rem); height: auto; }
#inhalt .editorial-legal:not(.editorial-single) { padding-block: var(--section-space); }
@media (min-width: 64rem) {
  #inhalt .editorial-legal:not(.editorial-single) {
    display: grid;
    grid-template-columns: var(--row-cols);
    column-gap: var(--row-gap);
    align-items: start;
  }
  #inhalt .editorial-legal:not(.editorial-single) .editorial-index { position: sticky; top: 6rem; }
  #inhalt .editorial-legal:not(.editorial-single) .editorial-copy { max-width: none; padding: 0; }
}

@media (min-width: 64rem) {
  #inhalt .editorial-legal:not(.editorial-single) + .page-closing .closing-inner > * {
    margin-inline-start: var(--row-offset);
  }
}
#inhalt .editorial-legal:not(.editorial-single) + .page-closing .closing-inner { padding-top: 0; }

/* ================= Nachschliff aus der Prüfung bei acht Breiten ================= */
/* Überschriften in der linken Spalte einer Zeile nutzen überall die kleinere Stufe */
.price-kombi #inhalt .tailored-content :is(.service, .faq) h2,
#inhalt .team-main .people-outro > h2:first-child,
#inhalt .references-body .references-additional > h2 { font-size: var(--h2-row); line-height: 1.2; letter-spacing: -.02em; }
@media (max-width: 79.99rem) {
  #inhalt .event-request h2,
  #inhalt .contact-request h2 { font-size: var(--h2-row); line-height: 1.2; letter-spacing: -.02em; }
}
/* Vergleichskarten im Ratgeber immer untereinander */
#inhalt .guide-reading .editorial-compare { grid-template-columns: minmax(0, 1fr); }
/* Sehr schmale Geräte (bis 360 px): kleinere Stufen, damit kein Wort bricht, Kopfzeile ohne Überlauf */
@media (max-width: 22.5rem) {
  .header .header-inner { gap: .3rem; }
  .header .logo span { font-size: 1.0625rem; }
  #inhalt h1,
  #inhalt .event-hero h1,
  .home-kombi #inhalt .home-hero h1,
  .price-kombi #inhalt .price-stage h1 { font-size: 1.75rem; }
  #inhalt h2,
  #inhalt :is(.event-section, .event-body, .event-assurance, .event-request, .event-cost, .event-faq) h2 { font-size: 1.3125rem; }
}

/* Einstiegstext über dem Bild: nie schmaler als das längste Wort */
#inhalt .event-hero-copy { max-width: min(100%, 46rem); }

/* ================= Preisblock mit Foto: linksbündig auf allen Breiten, Preis bricht nie um ================= */
#inhalt .event-body > .event-cost:has(.event-cost-image) { text-align: left; }
#inhalt .event-cost:has(.event-cost-image) p { margin-inline: 0; }
#inhalt .event-cost strong { white-space: nowrap; }

/* Preisblock auf /hochzeit/ wie auf den anderen Leistungsseiten: schwarz mit hellen Links */
#inhalt .event-body > .event-cost.event-cost-wedding { background: #090909; color: var(--paper); }
#inhalt .event-body > .event-cost.event-cost-wedding a:not(.button) { color: var(--gold); }
#inhalt .event-body > .event-cost.event-cost-wedding :focus-visible { outline: 3px solid var(--gold); }

/* ================= Logo =================
   Kopfzeile: oberer Teil des Originallogos (Skyline und Schriftzug).
   Fußzeile: vollständiges Logo. Der zugängliche Name steht am Link (aria-label). */
.header .logo {
  display: block;
  flex: none;
  width: 14.5rem;
  aspect-ratio: 1182 / 295;
  background: url("/assets/dj-muenchen-kopfzeile.png") left center / contain no-repeat;
}
.header .logo > * { display: none; }
.header .header-inner { min-height: 5.25rem; }
@media (max-width: 79.99rem) {
  .header .logo { width: 11.5rem; }
  .header .header-inner { min-height: 4.7rem; }
}
@media (max-width: 57rem) {
  .header .logo { width: 9.75rem; }
  .header .header-inner { min-height: 4.1rem; }
}
@media (max-width: 22.5rem) {
  .header .logo { width: 7.75rem; }
}
@media (forced-colors: active) {
  .header .logo { width: auto; aspect-ratio: auto; background: none; }
  .header .logo > * { display: revert; }
}
.site-footer .footer-bottom-inner::before {
  content: "";
  display: block;
  width: min(100%, 18rem);
  aspect-ratio: 1194 / 577;
  margin: 0 auto 1.5rem;
  background: url("/assets/dj-muenchen.png") center / contain no-repeat;
}

/* ================= Referenzen: Bewertungsblock mit Google-Link und Trustindex ================= */
#inhalt .references-body .references-reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem var(--row-gap);
  margin-top: var(--section-space);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--night);
  color: var(--paper);
  border-top: .25rem solid var(--gold);
  scroll-margin-top: 6rem;
}
#inhalt .references-body .references-reviews h2 { font-size: var(--h2-section); margin: 0 0 .75rem; color: inherit; }
#inhalt .references-body .references-reviews p { margin: 0; max-width: none !important; }
#inhalt .references-body .references-reviews .references-reviews-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: 1rem; }
#inhalt .references-body .references-reviews :is(a:not(.button), .link-button:not([hidden])) { color: var(--gold); min-height: 44px; display: inline-block; padding-block: .55rem; box-sizing: border-box; text-align: start; }
#inhalt .references-body .references-reviews :focus-visible { outline: 3px solid var(--gold); }
#inhalt .references-body .references-reviews-quote {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border: 0;
  border-inline-start: .2rem solid var(--gold);
  background: none;
  color: inherit;
  max-inline-size: none;
}
#inhalt .references-body .references-reviews-quote p { font-size: 1.125rem; line-height: 1.6; }
#inhalt .references-body .references-reviews [data-trustindex-slot] { grid-column: 1 / -1; }
#inhalt .references-body .references-reviews [data-trustindex-slot]:empty { display: none; }
#inhalt .references-body .references-reviews [data-trustindex-slot]:has(> :not(script)) { background: var(--paper); color: var(--ink); padding: 1rem; }
@media (min-width: 64rem) {
  #inhalt .references-body .references-reviews { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
}

/* ================= Leistungsseiten: Kundenstimme innerhalb eines Abschnitts ================= */
#inhalt .event-extra > .event-inline-quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 0;
  border-top: .25rem solid var(--gold);
  background: var(--inside-lavender);
}
#inhalt .event-inline-quote p { margin: 0; font-size: 1.1875rem; line-height: 1.5; font-style: italic; }
#inhalt .event-inline-quote cite { display: block; margin-top: .75rem; font-size: 1rem; font-style: normal; font-weight: 650; }

/* ================= Rechtsseiten im gleichen Aufbau (Impressum und Datenschutz) ================= */
/* Inhaltsverzeichnis beginnt auf Höhe der ersten Überschrift */
@media (min-width: 64rem) {
  #inhalt .editorial-legal:not(.editorial-single) .editorial-index { margin-top: 0; }
}
/* Der letzte Abschnitt liegt im Build im Abschlussbereich. Er bekommt dieselbe Trennlinie
   und dieselben Abstände wie alle Abschnitte davor. */
#inhalt .editorial-legal:not(.editorial-single) { padding-bottom: 0; }
#inhalt .editorial-legal:not(.editorial-single) .editorial-copy { padding-bottom: 0; }
#inhalt .editorial-legal:not(.editorial-single) .editorial-copy > :last-child > :last-child { margin-bottom: 0; }
#inhalt .editorial-legal:not(.editorial-single) + .page-closing .closing-inner > h2:first-child {
  margin-block: 2rem .5em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
/* Impressum: Bildnachweise zweispaltig, Logo in fester Größe */
#inhalt .editorial-legal .legal-credits { columns: 2 15rem; column-gap: 2.5rem; max-inline-size: 46rem; }
#inhalt .editorial-legal .legal-credits li { break-inside: avoid; }
#inhalt .editorial-legal .legal-logo { margin: 1.75rem 0 1.25rem; max-width: 16rem; }
#inhalt .editorial-legal .legal-logo img { display: block; width: 100%; height: auto; }

/* Kopfbild der Referenzseite: Es läuft nur so lange über den Seitenrahmen hinaus, wie es
   damit die Bildschirmkante erreicht. Auf breiten Bildschirmen schließt es mit dem Rahmen ab. */
@media (min-width: 84rem) {
  #inhalt .inner-hero-photo .inner-hero-image { margin-inline-end: 0; }
}

/* ================= Handy: kein weißer Streifen zwischen Abschluss und Fußzeile ================= */
/* Der Platz für die feste Leiste am unteren Rand steckt bereits in der Fußzeile. */
@media (max-width: 47.99rem) {
  #inhalt { padding-block-end: 0; }
}

/* ================= 404-Seite ================= */
/* Die Seite füllt immer die Bildschirmhöhe, die Fußzeile steht unten. */
body:has(.error-page) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(.error-page) > #inhalt { flex: 1 0 auto; display: flex; flex-direction: column; }
#inhalt .error-page {
  flex: 1 0 auto;
  display: grid;
  align-items: center;
  background: #090909;
  color: var(--paper);
  border-bottom: .25rem solid var(--gold);
}
#inhalt .error-page-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem var(--row-gap);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
#inhalt .error-page-code { margin: 0 0 .75rem; color: var(--gold); font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#inhalt .error-page h1 { margin: 0 0 1rem; max-width: 16ch; color: inherit; text-wrap: balance; }
#inhalt .error-page-lead { margin: 0; max-width: 36rem; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; }
#inhalt .error-page-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 2rem; }
#inhalt .error-page-actions .button-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
#inhalt .error-page-actions .button-outline:is(:hover, :focus-visible) { background: var(--gold); color: var(--ink); }
#inhalt .error-page :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
#inhalt .error-page-art { width: min(100%, 15rem); height: auto; color: var(--gold); order: -1; }
@media (min-width: 64rem) {
  #inhalt .error-page-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  #inhalt .error-page-art { width: min(100%, 24rem); justify-self: end; order: 0; }
}
