/* Gemeinsame Inhaltsbreiten: 1080 px Rahmen, 760 px Lesebereich. */
:root {
  --content-width: 1080px;
  --reading-width: 760px;
  --page-gutter: clamp(24px, 4vw, 52px);
}
html { scroll-padding-top: 92px; }
section { padding-inline: var(--page-gutter); }
.section-inner, .f-grid, .f-bottom {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
}
nav {
  padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
}
.mobile-menu {
  padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
}
/* Die Hintergründe bleiben vollflächig. Nur die Inhalte werden begrenzt. */
#home {
  display: flex;
  align-items: center;
  min-height: min(100svh, 980px);
  padding: 128px var(--page-gutter) 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
}
.hero-left { padding: 0; min-width: 0; }
.hero-right {
  --rahmen: 26px;
  padding: 32px;
  min-width: 0;
  overflow: visible;
}
.photo-frame {
  width: 100%;
  max-width: 340px;
  max-height: none;
  aspect-ratio: 1022 / 1536;
  flex-shrink: 1;
}
.photo-frame .ph-img { object-fit: contain; object-position: center; }
.hero-text { max-width: 100%; }
/* Lesebereiche folgen der gleichen Breite, mit ihrer bisherigen Ausrichtung. */
.about-grid, .fuerwen-inner, .fuerwen-head p, .fuerwen-list,
.angebote-head, .angebote-text, .stimmen-inner, .faq-head, .faq-list,
.termin-head, .kontakt-grid, .ablauf-head, .session-head, .session-grid,
.session-note, .zitat-inner {
  width: 100%;
  max-width: var(--reading-width);
}
.about-grid, .angebote-head, .angebote-text, .faq-head, .termin-head,
.kontakt-grid { margin-inline: auto; }
.fuerwen-inner, .stimmen-inner, .faq-list, .zitat-inner { margin-inline: auto; }
footer { padding-inline: var(--page-gutter); }
/* Rechtstexte: derselbe äußere Rahmen, durchgehend begrenzte Textzeilen. */
.content {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 140px 0 100px;
}
.content > * { max-width: var(--reading-width); margin-inline: auto; }
.content .intro { max-width: var(--reading-width); }
@media (max-width: 1024px) {
  #home { min-height: auto; padding-top: 112px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .hero-left { width: 100%; max-width: var(--reading-width); margin-inline: auto; padding: 0; }
  .hero-right { width: min(100%, 440px); margin-inline: auto; padding: 32px; }
}
@media (max-width: 760px) {
  #home { padding-top: 108px; padding-bottom: 64px; }
  .hero-inner { gap: 44px; }
  .hero-right { --rahmen: 20px; padding: 24px; }
  .photo-frame::before { inset: -16px; }
  .content { padding-block: 112px 64px; }
  .hero-name { font-size: clamp(2rem, 8.5vw, 3rem); }
}
@media print {
  .content { width: auto; max-width: none; padding: 0; }
  .content > * { max-width: none; }
}
/* Lange deutsche Überschriften dürfen auf schmalen Displays umbrechen. */
.content h1, .content h2 { overflow-wrap: anywhere; hyphens: auto; }

/* Kalender-Button und Hinweis teilen die Textkante des Terminbereichs. */
#termin > .section-inner { max-width: var(--reading-width); }

/* Ruhige Umbrüche: keine einzelnen Restwörter am Absatzende. */
p, .faq-body, .content li { text-wrap: pretty; }
h1, h2, h3, .faq-item summary { text-wrap: balance; }
/* Die kurze Kontaktoption bleibt als zusammengehörige Wortgruppe lesbar. */
.termin-head a { white-space: nowrap; }

/* Rechtstext-Überschriften folgen derselben linken Kante wie Karten und Text. */
.content > h1, .content > h2, .content > h3 { margin-inline: auto; }
