/*
 * Seitengrundlagen und Abstände zwischen Inhaltselementen.
 * Komponenten-Styles stehen in components.css (aus dem Designsystem, auch Listenabstände und Suche), Werte in tokens.css.
 */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
.bcx img, .bcx svg { max-width: 100%; }
.bcx :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Inhaltsbereich und Rhythmus zwischen Elementen.
   .bcx-ce--full = Elemente über die volle Breite mit eigener Fläche (Hero, CtaBand). */
.bcx-content { padding-top: var(--space-7); padding-bottom: var(--space-8); }
.bcx-content:has(> .bcx-ce--full:first-child) { padding-top: 0; }
.bcx-content:has(> .bcx-ce--full:last-child) { padding-bottom: 0; }
.bcx-ce + .bcx-ce { margin-top: var(--space-7); }
.bcx-ce--prose + .bcx-ce--prose { margin-top: var(--space-5); }
.bcx-ce--full + .bcx-ce, .bcx-ce + .bcx-ce--full { margin-top: var(--space-8); }
.bcx-ce + .bcx-ce--section-header { margin-top: var(--space-8); }
.bcx-ce--section-header + .bcx-ce { margin-top: 0; }
.bcx-prose > :first-child { margin-top: 0; }
.bcx-prose > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .bcx-content { padding-top: var(--space-6); padding-bottom: var(--space-7); }
  .bcx-ce--full + .bcx-ce, .bcx-ce + .bcx-ce--full, .bcx-ce + .bcx-ce--section-header { margin-top: var(--space-7); }
}
/* Zwei Flächen direkt hintereinander ohne weißen Streifen dazwischen */
.bcx-ce--full + .bcx-ce--full { margin-top: 0; }
/* Hero-Fläche der Startseite (Pages/Home.html, Bereich „Hero“) → Inhalt mit demselben Abstand wie nach einer Fläche */
.bcx-hero + .bcx-content { padding-top: var(--space-8); }
.bcx-hero + .bcx-content:has(> .bcx-ce--full:first-child) { padding-top: 0; }
@media (max-width: 640px) { .bcx-hero + .bcx-content { padding-top: var(--space-7); } }

/* Seiten aus Sections (Architektur 14.11.2026): Jede Section trägt ihre Abstände selbst (bundle.css .bcx-section);
   der Inhaltsbereich gibt dann oben und unten keinen eigenen Weißraum dazu, Sections stoßen aneinander. */
.bcx-content:has(> .bcx-section:first-child) { padding-top: 0; }
.bcx-content:has(> .bcx-section:last-child) { padding-bottom: 0; }
.bcx-hero + .bcx-content:has(> .bcx-section:first-child) { padding-top: 0; }

/* fluid_styled_content-Header in Prose: Kopf-Wrapper ohne Eigenabstand */
.bcx-prose header > :last-child { margin-bottom: var(--space-3); }

/* Lange URLs als Linktext (Podcast-Beschreibungen, z. B. researchgate.net/…) brechen sonst nicht um und machen die Seite
   unter 640px quer scrollbar (15.11.2026, 5 Folgen, auch auf Release 27). Greift nur, wenn ein Wort nicht in die Zeile passt.
   An Claude Design gemeldet (Prose). */
.bcx-prose a { overflow-wrap: anywhere; }
