/* IBMH wiederverwendbare Content-Komponenten (Leistungs-/Standort-/Projektseiten).
 * Gescopt auf .entry-content / .wp-block-post-content, damit nichts Globales bricht.
 * Tokens lokal (Quelle: brand/tokens.css). */

.entry-content, .wp-block-post-content {
  --ibmh-blue-700: #1848a0;
  --ibmh-blue-600: #1f63c4;
  --ibmh-blue-500: #1e9fe9;
  --ibmh-ink: #161616;
  --ibmh-text-muted: #51607a;
  --ibmh-glass-border: rgba(255, 255, 255, 0.6);
  --ibmh-radius-md: 18px;
  --ibmh-radius-pill: 999px;
  --ibmh-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* CTA-Button (global, auch außerhalb von post-content, z. B. Archiv-Empty-State) */
.ibmh-c-cta { margin: 1.4rem 0; }
a.ibmh-c-btn {
  display: inline-block;
  background: #1848a0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
a.ibmh-c-btn:hover { background: #1f63c4; color: #fff; transform: translateY(-2px); }
.entry-content a.ibmh-c-btn,
.wp-block-post-content a.ibmh-c-btn {
  display: inline-block;
  background: var(--ibmh-blue-700);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--ibmh-radius-pill);
  text-decoration: none;
  transition: background 160ms var(--ibmh-ease-out), transform 160ms var(--ibmh-ease-out);
}
.entry-content a.ibmh-c-btn:hover,
.wp-block-post-content a.ibmh-c-btn:hover { background: var(--ibmh-blue-600); transform: translateY(-2px); }

/* Hero-CTA: responsives Kurzlabel auf schmalen Viewports, gleicher Link, kein zweiter Button */
.ibmh-c-btn__label-mobile { display: none; }
@media (max-width: 480px) {
  .ibmh-c-btn__label-desktop { display: none; }
  .ibmh-c-btn__label-mobile { display: inline; }
}

/* Verwandte Leistungen */
.ibmh-c-related { margin: 2rem 0; }
.ibmh-c-related h2 { font-size: 1.25rem; margin: 0 0 0.8rem; }
.ibmh-c-related ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.ibmh-c-related li a {
  display: inline-block;
  background: rgba(24, 72, 160, 0.06);
  border: 1px solid rgba(24, 72, 160, 0.14);
  border-radius: var(--ibmh-radius-pill);
  padding: 0.4rem 0.95rem;
  font-weight: 600; font-size: 0.92rem;
  text-decoration: none; color: var(--ibmh-blue-700);
  transition: background 160ms var(--ibmh-ease-out);
}
.ibmh-c-related li a:hover { background: rgba(24, 72, 160, 0.12); }

/* Kontaktbox */
.ibmh-c-kontakt {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--ibmh-glass-border);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(13, 43, 99, 0.07);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  margin: 2rem 0;
}
.ibmh-c-kontakt h2 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.ibmh-c-kontakt__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin: 1rem 0;
}
.ibmh-c-kontakt__mail { font-weight: 600; margin: 0 0 0.5rem; }

/* Standort-Hinweis */
.ibmh-c-standort {
  border-left: 3px solid var(--ibmh-blue-500);
  padding: 0.4rem 0 0.4rem 1.1rem;
  margin: 2rem 0;
}
.ibmh-c-standort h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.ibmh-c-standort p { color: var(--ibmh-text-muted); margin: 0; }

/* 5x3 Leistungs-Grid mit Glass-Hover */
.ibmh-c-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 2rem 0;
}
@media (max-width: 1100px) { .ibmh-c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .ibmh-c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px)  { .ibmh-c-grid { grid-template-columns: 1fr; } }
.entry-content a.ibmh-c-card,
.wp-block-post-content a.ibmh-c-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: var(--ibmh-ink);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--ibmh-radius-md);
  padding: 1.15rem 1.15rem 1rem;
  box-shadow: 0 8px 22px rgba(13, 43, 99, 0.05);
  overflow: hidden;
  transition: transform 220ms var(--ibmh-ease-out),
              box-shadow 220ms var(--ibmh-ease-out),
              border-color 220ms var(--ibmh-ease-out);
}
.ibmh-c-card__glow {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(30, 159, 233, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 220ms var(--ibmh-ease-out);
  pointer-events: none;
}
.entry-content a.ibmh-c-card:hover,
.wp-block-post-content a.ibmh-c-card:hover,
.entry-content a.ibmh-c-card:focus-visible,
.wp-block-post-content a.ibmh-c-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 46px rgba(13, 43, 99, 0.13);
}
.ibmh-c-card:hover .ibmh-c-card__glow,
.ibmh-c-card:focus-visible .ibmh-c-card__glow { opacity: 1; }
.ibmh-c-card h3 { font-size: 1.02rem; margin: 0 0 0.35rem; position: relative; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.ibmh-c-card p { font-size: 0.9rem; color: var(--ibmh-text-muted); margin: 0 0 0.7rem; position: relative; flex: 1; }
.ibmh-c-card__more { font-size: 0.85rem; font-weight: 700; color: var(--ibmh-blue-700); position: relative; }
.ibmh-c-card__more::after { content: " →"; }

@media (prefers-reduced-motion: reduce) {
  .entry-content a.ibmh-c-card, .wp-block-post-content a.ibmh-c-card,
  .entry-content a.ibmh-c-btn, .wp-block-post-content a.ibmh-c-btn { transition: none; }
}

/* ---------------------------------------------------------------------------
 * Autorenbox (Fallback + AIOSEO E-E-A-T Wrapper). Global, da nicht immer in
 * .entry-content (z. B. Autorenarchiv). Prefix .ibmh-c-* verhindert Kollisionen.
 * ------------------------------------------------------------------------- */
.ibmh-c-authorbox {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(13, 43, 99, 0.07);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  margin: 2.2rem 0;
}
.ibmh-c-authorbox img,
.ibmh-c-authorbox__avatar {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(24, 72, 160, 0.08);
}
.ibmh-c-authorbox__body { min-width: 0; }
.ibmh-c-authorbox__eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #1f63c4; margin: 0 0 0.15rem;
}
.ibmh-c-authorbox__body h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.ibmh-c-authorbox__body h3 a { text-decoration: none; color: #161616; }
.ibmh-c-authorbox__body p { margin: 0; color: #33405a; font-size: 0.95rem; }

/* Projekt-Steckbrief (Glass-Karte, Sidebar) */
.ibmh-c-steckbrief {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(13, 43, 99, 0.08);
  padding: 1.4rem 1.5rem;
  margin: 0 0 1.4rem;
}
.ibmh-c-steckbrief h3,
.ibmh-c-steckbrief__titel { font-size: 1.05rem; margin: 0 0 0.9rem; }
.ibmh-c-steckbrief__row {
  display: grid; gap: 0.1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(24, 72, 160, 0.1);
}
.ibmh-c-steckbrief__row:first-of-type { border-top: 0; padding-top: 0; }
.ibmh-c-steckbrief__row span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #1f63c4;
}
.ibmh-c-steckbrief__row strong { color: #161616; font-weight: 500; }
.ibmh-c-steckbrief__row strong a { color: #1848a0; text-decoration: underline; text-underline-offset: 0.15em; }
.ibmh-c-steckbrief__row strong a:hover { color: #1e9fe9; }
.ibmh-c-steckbrief__hint { color: #51607a; font-size: 0.9rem; margin: 0; }

/* Bandvariante (Projekt-Einzelseite): dieselbe Glass-Karte, aber Zeilen nebeneinander statt
 * gestapelt. Damit stehen die Eckdaten direkt unter dem Titel ueber die volle Containerbreite,
 * statt in einer Sidebar, die alignwide im Inhalt unmoeglich machen wuerde. */
/* Abstand nach oben: Ohne ihn beginnt die Oberkante der Karte exakt auf der Unterkante der H1,
 * die Unterlaengen des Titels beruehren dann fast die Karte (0px gemessen, Fable 2026-09-08).
 * Breite: Das Band sass auf 816px und damit auf keiner der beiden Achsen, weder auf der
 * 760px-Lesebreite noch auf den 1180px des Containers (gemessen 2026-09-08). Als strukturelles
 * Element gehoert es wie Hero und Galerie auf die volle Achse. */
.ibmh-c-steckbrief--band {
  margin: 1.75rem 0 2rem;
  padding: 1.5rem 1.7rem;
  width: 100%;
  max-width: none;
  /* Ohne border-box addiert sich das Innenabstandspaar auf die Breite, das Band war dann 1236px
   * statt 1180px (gemessen 2026-09-08). */
  box-sizing: border-box;
}
.ibmh-c-steckbrief--band .ibmh-c-steckbrief__titel {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #1f63c4; margin: 0 0 1rem;
}
.ibmh-c-steckbrief--band .ibmh-c-steckbrief__row {
  border-top: 0; padding: 0;
}
.ibmh-c-steckbrief--band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.1rem 1.8rem;
}
/* Die Ueberschrift ueberspannt das Raster, die Faktenzeilen bilden die Spalten. */
.ibmh-c-steckbrief--band .ibmh-c-steckbrief__titel { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .ibmh-c-steckbrief--band { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.9rem 1.2rem; padding: 1.2rem 1.2rem; }
}
/* Lange Leistungsnamen liefen in schmalen Viewports bis an die Kartenkante und minimal darueber
 * (Link-Rechtskante 377px bei Kartenkante 374px, Fable 2026-09-08). Umbrechen lassen statt die
 * Kante zu reissen. */
.ibmh-c-steckbrief__row strong {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  min-width: 0;
}

/* Projekt-Hero (Single). Der fruehere .ibmh-project-hero-Wrapper ist im Template entfallen,
 * das Beitragsbild steht jetzt direkt als alignwide im dg-container. */
.single-ibmh_project .wp-block-post-featured-image { margin-bottom: 1.6rem; }
.single-ibmh_project .wp-block-post-featured-image img {
  width: 100%; max-height: 520px; object-fit: cover;
  box-shadow: 0 24px 60px rgba(13, 43, 99, 0.16);
}
.single-ibmh_project .wp-block-post-terms.dg-kicker { color: #1f63c4; margin: 0 0 0.3rem; }
.ibmh-project-hero { margin-bottom: 2rem; }
.ibmh-project-hero .wp-block-post-featured-image { margin-bottom: 1.2rem; }
.ibmh-project-hero .wp-block-post-featured-image img {
  width: 100%; max-height: 460px; object-fit: cover;
  box-shadow: 0 24px 60px rgba(13, 43, 99, 0.16);
}
.ibmh-project-hero .wp-block-post-terms { color: #1f63c4; margin: 0 0 0.3rem; }

/* Weitere Projekte (Single, unter dem Inhalt) */
.ibmh-projekt-weitere { margin: 3rem 0 2rem; }
.ibmh-projekt-weitere h2 { font-size: 1.3rem; margin: 0 0 1.1rem; }
.ibmh-projekt-weitere ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
/* Karten statt nackter Textzeilen. Ohne Beitragsbild bestand der Eintrag nur aus Titel und
 * Metazeile und stand damit als einziger Textblock zwischen durchgaengig kartenbasierten
 * Nachbarsektionen, was angeklebt wirkte (Fable-Fund 2026-09-08). Die Karte greift die Optik
 * der Projektkarten im Archiv auf. */
.ibmh-projekt-weitere a {
  display: grid; gap: 0.45rem; text-decoration: none; color: #161616;
  align-content: start;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 0.9rem 1rem 1rem;
  box-shadow: 0 8px 22px rgba(13, 43, 99, 0.05);
  height: 100%;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ibmh-projekt-weitere a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(13, 43, 99, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .ibmh-projekt-weitere a { transition: none; }
  .ibmh-projekt-weitere a:hover { transform: none; }
}
/* Klare Link-Affordanz: Der Titel bekommt beim Ueberfahren eine Unterstreichung, damit die
 * Karte als klickbar lesbar ist. */
.ibmh-projekt-weitere a:hover .ibmh-projekt-weitere__titel {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.ibmh-projekt-weitere__bild {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  border-radius: 14px; overflow: hidden;
}
.ibmh-projekt-weitere__bild img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Bildmarke statt leerer Stelle, gleiche Logik wie auf der Archivkarte. */
.ibmh-projekt-weitere__bild--marke {
  display: grid; place-items: center; color: #1848a0;
  background: linear-gradient(135deg, #eaf1fb 0%, #e2ecf9 58%, #dbe7f6 100%);
  border: 1px solid rgba(24, 72, 160, 0.10);
}
.ibmh-projekt-weitere__bild--marke .ibmh-mark { width: 34%; max-width: 90px; height: auto; }
/* Benennt, warum dieses Projekt hier steht. Fehlt der fachliche Bezug, fehlt auch die Zeile. */
.ibmh-projekt-weitere__bezug {
  display: block; margin-top: 0.15rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #1f63c4;
}
.ibmh-projekt-weitere__titel { font-weight: 600; line-height: 1.35; }
.ibmh-projekt-weitere a:hover .ibmh-projekt-weitere__titel { color: #1848a0; }
.ibmh-projekt-weitere__meta { font-size: 0.85rem; color: #51607a; }
.ibmh-projekt-weitere__alle { margin: 1.1rem 0 0; }
.ibmh-projekt-weitere__alle a {
  color: #1848a0; font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
/* Kein ::after fuer den Pfeil: Eine bestehende sitewite Linkregel setzt dort bereits einen
 * Block-Pfeil, der dadurch in eine eigene Zeile rutschte. Der Pfeil steht deshalb als Zeichen
 * im Linktext selbst (siehe sc_projekt_referenzen). */
.ibmh-projekt-weitere__alle a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

/* Full-bleed Hero mit Hausserien-Bild + Glass-Panel */
.ibmh-hero {
  position: relative;
  border-radius: 0;
  min-height: clamp(24rem, 52vh, 34rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}
.ibmh-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.ibmh-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(246,249,253,0.92) 0%, rgba(246,249,253,0.55) 42%, rgba(246,249,253,0.05) 75%);
}
.ibmh-hero__inner {
  position: relative; z-index: 2;
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.ibmh-hero__panel {
  max-width: 34rem;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 24px 60px rgba(13,43,99,0.14);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.ibmh-hero__kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ibmh-blue-600, #1f63c4);
  margin: 0 0 0.5rem;
}
.ibmh-hero__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 0 0 0.7rem; }
.ibmh-hero__lead { color: #33405a; margin: 0 0 1.1rem; }
.ibmh-hero .ibmh-c-cta { margin: 0; }

/* Trust-/Kurzpunkte als Glass-Chips */
.ibmh-points {
  list-style: none; margin: 1.4rem 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.ibmh-points li {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(13,43,99,0.07);
  padding: 0.45rem 1rem;
  font-size: 0.9rem; font-weight: 600; color: #1848a0;
}
.ibmh-points li::before { content: "✓"; margin-right: 0.45rem; color: #1e9fe9; font-weight: 700; }
.ibmh-points--hero { margin: 1.3rem 0 0; }

/* Ablauf: nummerierte Glass-Schritte */
.ibmh-steps { margin: 2.4rem 0; }
.ibmh-steps h2 { margin: 0 0 1.1rem; }
.ibmh-steps ol {
  list-style: none; counter-reset: ibmh-step; margin: 0; padding: 0;
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.ibmh-steps li {
  counter-increment: ibmh-step;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(13,43,99,0.06);
  padding: 1.1rem 1.2rem 1.2rem;
}
.ibmh-steps li::before {
  content: counter(ibmh-step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: #1848a0; color: #fff; font-weight: 700; font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.ibmh-steps li strong { display: block; margin-bottom: 0.25rem; color: #161616; }
.ibmh-steps li span { display: block; font-size: 0.92rem; color: #51607a; }

/* Volle-Breite-Band mit ruhiger Tönung (als Gruppe: className "ibmh-band alignfull") */
.ibmh-band {
  background: linear-gradient(180deg, rgba(231,243,252,0.55), rgba(246,249,253,0.9));
  padding: clamp(2.2rem, 5vw, 3.6rem) 0;
  margin: 2.4rem 0;
}
/* Glass-Panel (als Gruppe: className "ibmh-panel") */
.ibmh-panel {
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 16px 44px rgba(13,43,99,0.08);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  margin: 1.6rem 0;
}
/* Panel-Inhalte füllen das Panel (WP-Constrained-Zentrierung im Panel neutralisieren) */
.ibmh-panel.wp-block-group > * {
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Interaktive Karte: feste Höhe (kein CLS), runde Ecken, Glasrand */
.ibmh-map { margin: 1.6rem 0; }
.ibmh-map iframe {
  display: block; width: 100%; height: clamp(16rem, 38vw, 24rem); border: 0;
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(13,43,99,0.10), 0 0 0 1px rgba(255,255,255,0.6);
  background: #e9eef5;
}
.ibmh-map__link { margin: 0.5rem 0 0; font-size: 0.88rem; }

/* Projekt-Archiv-Grid (Glass-Karten).
 * Die Karte ist seit 2026-09-08 EIN <a>, gerendert vom Block ibmh/projekt-karte. Damit ist die
 * gesamte Flaeche ein eindeutiges Klickziel, ohne verschachtelte Links. */
.ibmh-project-grid .ibmh-project-card {
  display: flex;
  flex-direction: column;
  /* PFLICHT, nicht kosmetisch: Das Theme setzt KEINEN globalen border-box-Reset, die Karte erbt
   * also content-box. Zusammen mit `height: 100%` addierte der Browser Innenabstand (14,4 + 17,6)
   * und Rahmen (1 + 1) auf die Hoehe der Rasterzelle. Die Karte stand damit auf jeder Breite
   * exakt 34px ueber ihrer Zelle und wuchs in den Zeilenabstand hinein: gemessen 2026-09-09
   * ein sichtbarer Abstand von -10px bei 390 (gap 24) und -2px ab 820 (gap 32), also
   * uebereinanderliegende Karten.
   *
   * Der `gap` war dabei die ganze Zeit korrekt gesetzt. Ihn zu erhoehen haette den Ueberstand nur
   * verdeckt statt beseitigt. Andere Komponenten derselben Datei setzen border-box aus demselben
   * Grund einzeln, etwa .ibmh-steps li. */
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 0.9rem 0.9rem 1.1rem;
  box-shadow: 0 8px 22px rgba(13, 43, 99, 0.05);
  height: 100%;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ibmh-project-grid .ibmh-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(13, 43, 99, 0.13);
}
/* Sichtbarer Tastaturfokus auf der ganzen Karte, nicht nur auf einem Textteil. */
.ibmh-project-grid .ibmh-project-card:focus-visible {
  outline: 3px solid #1848a0;
  outline-offset: 3px;
}

/* Medienflaeche. Festes Seitenverhaeltnis, weil die realen Projektfotos aus 2002 bis 2008
 * unterschiedliche Zuschnitte haben und die Rasterkante sonst unruhig wird. */
.ibmh-project-grid .ibmh-project-card__media {
  display: block;
  width: 100%;
  /* Gleiche Ursache wie an der Karte: Die Markenflaeche der bildlosen Karte traegt einen 1px
   * Rahmen und ragte mit content-box 2px ueber den Innenbereich der Karte hinaus (gemessen
   * 2026-09-09). Bei der Bildvariante ohne Rahmen war es folgenlos. */
  box-sizing: border-box;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.ibmh-project-grid .ibmh-project-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Markenflaeche fuer Projekte ohne freigegebenes Bild.
 * Bewusst hell und zurueckgenommen statt einer dunklen Vollflaeche: Eine grosse gesaettigte
 * Blauflaeche zieht im Raster mehr Aufmerksamkeit auf sich als das echte Projektfoto daneben
 * und liest sich schnell als fehlendes Bild. Die helle Flaeche traegt die Bildmarke, ohne mit
 * dem Inhalt zu konkurrieren.
 * Spezifitaet mit zwei Klassen, sonst gewinnt die display:block-Regel der Basisklasse und die
 * Marke klebt am oberen Rand statt zentriert zu sitzen (gemessen 2026-09-08). */
.ibmh-project-grid .ibmh-project-card__media--marke {
  display: grid;
  place-items: center;
  color: #1848a0;
  background:
    radial-gradient(circle at 74% 26%, rgba(30, 159, 233, 0.13), transparent 62%),
    linear-gradient(135deg, #eaf1fb 0%, #e2ecf9 58%, #dbe7f6 100%);
  border: 1px solid rgba(24, 72, 160, 0.10);
}
.ibmh-project-grid .ibmh-project-card__media--marke .ibmh-mark {
  width: 30%;
  max-width: 150px;
  height: auto;
}
/* Die beiden Flaechen der Bildmarke bewegen sich beim Ueberfahren minimal aufeinander zu:
 * "die Teile finden zusammen". Bewusst nur eine Verschiebung um rund 1,6 Einheiten der 83er
 * viewBox, keine Rotation, keine Skalierung, kein Dauerlauf. */
.ibmh-mark__l,
.ibmh-mark__r {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              fill-opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ibmh-project-card:hover .ibmh-mark__l,
.ibmh-project-card:focus-visible .ibmh-mark__l { transform: translateX(1.6px); }
.ibmh-project-card:hover .ibmh-mark__r,
.ibmh-project-card:focus-visible .ibmh-mark__r {
  transform: translateX(-1.6px);
  fill-opacity: 0.8;
}

.ibmh-project-grid .ibmh-project-card__kat {
  display: block;
  color: #1f63c4; margin: 0 0 0.25rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
/* Zwei Spalten statt drei: groessere Karte, deshalb auch groessere Schrift. */
.ibmh-project-grid .ibmh-project-card__titel {
  display: block;
  font-family: var(--dg-font-display, inherit);
  font-size: 1.3rem; font-weight: 700; line-height: 1.3;
  color: #161616; margin: 0 0 0.35rem;
}
.ibmh-project-grid .ibmh-project-card:hover .ibmh-project-card__titel { color: #1848a0; }
.ibmh-project-grid .ibmh-project-card__auszug {
  display: block;
  font-size: 0.95rem; color: #51607a; line-height: 1.6;
}

/* Lange deutsche Komposita in Archivueberschriften und Kartentiteln umbrechen lassen.
 * Auf dem Kategoriearchiv erzeugte allein das Wort "Erschuetterungstechnik" als H1 bei 320px
 * und 360px horizontalen Overflow (365px Textbreite bei 288px Platz, in der QA am 2026-09-08
 * gemessen). Ein einzelnes Wort kann ohne diese Regel nicht brechen. `hyphens` trennt sauber,
 * `overflow-wrap` ist die Rueckfallebene, falls keine Trennmuster greifen. */
.post-type-archive-ibmh_project .wp-block-query-title,
.tax-projekt-kategorie .wp-block-query-title,
.ibmh-project-grid .ibmh-project-card__titel,
.single-ibmh_project .wp-block-post-title {
  overflow-wrap: break-word;
  /* -webkit-hyphens ist Pflicht, sonst trennt WebKit ueberhaupt nicht (Fable-Fund 2026-09-08).
   * Die bestehende Kartenregel weiter oben macht es korrekt vor. Greift die Trennung mangels
   * Trennwoerterbuch nicht, faengt overflow-wrap den Ueberlauf ab, dann allerdings hart. */
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Messwerttabellen auf Projektseiten.
 * Die Tabelle der bauakustischen Gueteprüfung braucht rund 893px, die Lesespalte bietet 760px.
 * `overflow-x: auto` war zwar gesetzt, aber ohne jeden sichtbaren Hinweis: Die Ergebnisspalte
 * mit den dB-Werten, also der fachliche Kern der Seite, war schlicht abgeschnitten
 * (Fable 2026-09-08, auf allen vier geprueften Breiten). Auf der breiten Medienachse passt sie
 * vollstaendig. Fuer schmalere Viewports bleibt der Scrollbereich, bekommt aber eine
 * Verlaufskante als Hinweis, dass rechts noch etwas steht. */
.single-ibmh_project .wp-block-table {
  overflow-x: auto;
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left / 44px 100% no-repeat,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right / 44px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(13, 43, 99, 0.16), transparent) left / 14px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(13, 43, 99, 0.16), transparent) right / 14px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.single-ibmh_project .wp-block-table table { min-width: 34rem; }
.single-ibmh_project .wp-block-table th,
.single-ibmh_project .wp-block-table td { padding: 0.55rem 0.7rem; }
@media (max-width: 600px) {
  .single-ibmh_project .wp-block-table { font-size: 0.88rem; }
}

/* Ladezustand des Kartenbereichs beim Filtern ohne Seitenreload. Bewusst zurueckhaltend:
 * nur eine leichte Abblendung, kein Spinner, kein Layoutsprung. Der Bereich behaelt seine
 * Hoehe, bis das neue Markup steht. */
.ibmh-project-grid.is-laedt { opacity: 0.45; transition: opacity 140ms linear; }
@media (prefers-reduced-motion: reduce) {
  .ibmh-project-grid.is-laedt { transition: none; }
}

/* Ort und Zeitraum auf der Karte, aus [ibmh_projekt_fakten]. */
.ibmh-projekt-fakten {
  margin: 0 0 0.5rem;
  font-size: 0.88rem; color: #33405a; font-weight: 500;
}

/* Messwerttabellen auf Projektseiten.
 * Die Tabelle der bauakustischen Gueteprüfung braucht rund 893px, die Lesespalte bietet 760px.
 * `overflow-x: auto` war zwar gesetzt, aber ohne jeden sichtbaren Hinweis: Die Ergebnisspalte
 * mit den dB-Werten, also der fachliche Kern der Seite, war schlicht abgeschnitten
 * (Fable 2026-09-08, auf allen vier geprueften Breiten). Auf der breiten Medienachse passt sie
 * vollstaendig. Fuer schmalere Viewports bleibt der Scrollbereich, bekommt aber eine
 * Verlaufskante als Hinweis, dass rechts noch etwas steht. */
.single-ibmh_project .wp-block-table {
  overflow-x: auto;
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left / 44px 100% no-repeat,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right / 44px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(13, 43, 99, 0.16), transparent) left / 14px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(13, 43, 99, 0.16), transparent) right / 14px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.single-ibmh_project .wp-block-table table { min-width: 34rem; }
.single-ibmh_project .wp-block-table th,
.single-ibmh_project .wp-block-table td { padding: 0.55rem 0.7rem; }
@media (max-width: 600px) {
  .single-ibmh_project .wp-block-table { font-size: 0.88rem; }
}

/* Ort und Zeitraum auf der Karte, aus [ibmh_projekt_fakten]. */
.ibmh-projekt-fakten {
  margin: 0 0 0.5rem;
  font-size: 0.88rem; color: #33405a; font-weight: 500;
}


@media (max-width: 782px) {
  /* Einspaltig: Bild oben, Text darunter. Das Core-Grid schaltet selbst nicht um. */
  .ibmh-project-grid .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; }
  .ibmh-project-grid .ibmh-project-card__titel { font-size: 1.18rem; }
}

/* ---------------------------------------------------------------------------
 * Projektraster: zwei grosse Karten je Reihe, mit Vollbreiten-Schlusszeile.
 * Gewaehlte Fassung nach dem Variantenvergleich vom 2026-09-08, siehe
 * 29-project-archive-decision.md. Die parallel gebaute Editorial-Liste und der
 * Vorschauschalter wurden nach der Entscheidung wieder entfernt.
 * ------------------------------------------------------------------------- */
@media (min-width: 783px) {
  /* Editorial-Liste statt Kartenraster: Jedes Projekt bekommt eine breite Zeile, Medienflaeche
   * links, Inhalt rechts. Das gibt der Referenzliste mehr Ruhe und weniger Grid-Anmutung.
   * Bewusst NICHT wie die erste Fassung: Die Medienspalte ist mit 34 Prozent schmaler, die
   * Zeilenhoehe ist gedeckelt, und die Textzeilen bleiben inhaltshoch, damit keine leeren
   * Flaechen und keine ueberdimensionierten Karten entstehen. */
  .ibmh-project-grid .wp-block-post-template.is-layout-grid {
    /* Zwei Spalten, wie fuer diese Datenlage entschieden. Der Abstand war mit 1.5rem zu knapp,
     * die Karten wirkten zusammengeschoben. 2rem vertikal wie horizontal gibt der Uebersicht
     * den ruhigeren Rhythmus der ersten Fassung zurueck. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  /* Zwei Spalten mit Medienflaeche OBEN. Die zwischenzeitliche horizontale Zeilenform passte
   * zu einer einspaltigen Liste, in einem Zweispalter wird die Textspalte daneben zu schmal.
   * Damit ist die Uebersicht wieder bei der ruhigeren ersten Fassung. */
  .ibmh-project-grid .ibmh-project-card__titel { font-size: 1.3rem; }
  /* In der Zeilenfassung wirkt das Anheben der ganzen Zeile unruhig, der Schatten genuegt. */
  .ibmh-project-grid .ibmh-project-card:hover { transform: none; }

  /* Die frühere Vollbreiten-Schlusszeile ist entfallen: In der Editorial-Liste ist ohnehin
   * jede Zeile voll breit, eine Sonderbehandlung der letzten Karte hätte keinen Sinn mehr. */
}

/* ---------------------------------------------------------------------------
 * Abschluss des Projektarchivs.
 * Vor dieser Sektion endete die Seite mit der letzten Karte und liess bis zu 192px weisse
 * Flaeche bis zum Footer stehen (gemessen 2026-09-08). Muster wie der Seitenabschluss auf
 * /team/: vollbreite Akzentflaeche, die buendig an den Footer stoesst.
 * ------------------------------------------------------------------------- */
.ibmh-projekte-abschluss {
  /* Kein zusaetzlicher margin-top: Der Blockabstand des Archivs liefert bereits rund 100px
   * Desktop und 64px mobil. Mit den urspruenglichen 5rem obendrauf waren es 181px, deutlich
   * ueber dem Sektionskorridor von 72 bis 96px (gemessen 2026-09-08). */
  margin-top: 0;
  padding: 4rem 0 4.5rem;
  background: linear-gradient(135deg, #1848a0 0%, #143a82 58%, #0f2f6b 100%);
  color: #fff;
  /* Vollbreite selbst herstellen: Das `alignfull` im Blockmarkup wirkt nicht, weil der
   * Abschluss ueber ein <wp:template-part> eingebunden ist. Dessen Wrapper-<div> ist ein
   * gewoehnliches Kind des constrained <main> und deckelt die Breite, bevor das alignfull
   * darin greifen kann (gemessen 2026-09-08: Flaeche endete auf der 1180er-Achse statt am
   * Viewportrand). Gleiches 100vw-Muster wie beim Full-Bleed im Einzelbeitrag. */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* Der 100vw-Ausbruch ist bei sichtbarer Scrollbar breiter als der Inhaltsbereich und erzeugt
 * sonst rund 8px horizontalen Overflow (Codex 2026-09-08: clientWidth 1265 gegen scrollWidth
 * 1273). Das Theme faengt denselben Fall beim Einzelbeitrag bereits mit overflow-x: clip ab,
 * dort aber nur fuer .single-post. `clip` statt `hidden`, weil es keinen Scrollcontainer
 * erzeugt und den Sticky-Header intakt laesst. */
html:has(body.post-type-archive-ibmh_project),
body.post-type-archive-ibmh_project,
html:has(body.tax-projekt-kategorie),
body.tax-projekt-kategorie {
  overflow-x: clip;
  max-width: 100%;
}

/* Der Inhalt des Abschlusses bleibt auf der normalen Achse. */
.ibmh-projekte-abschluss > .dg-container { margin-inline: auto; }
.ibmh-projekte-abschluss h2 { color: #fff; margin: 0 0 0.7rem; }
.ibmh-projekte-abschluss p { color: rgba(255, 255, 255, 0.94); max-width: 62ch; }
.ibmh-projekte-abschluss__links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem;
  margin: 1.6rem 0 0;
}
/* Die Farbe braucht die doppelte Klasse: Eine sitewite Linkregel innerhalb heller Schrift auf
 * dunklem Grund setzt `color: #fff` und gewann sonst, der Button war weiss auf weiss und damit
 * unlesbar (verifiziert 2026-09-08, computed color und background beide rgb(255,255,255)).
 * Dieselbe Spezifitaetsfalle wie beim Hero-Sekundaerbutton. */
.ibmh-projekte-abschluss .ibmh-projekte-abschluss__btn,
.ibmh-projekte-abschluss .ibmh-projekte-abschluss__btn:visited {
  display: inline-block; background: #fff; color: #1848a0; font-weight: 700;
  border-radius: 999px; padding: 0.78rem 1.7rem; text-decoration: none;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms;
}
.ibmh-projekte-abschluss .ibmh-projekte-abschluss__btn:hover,
.ibmh-projekte-abschluss .ibmh-projekte-abschluss__btn:focus-visible {
  color: #1848a0; background: #fff; transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.ibmh-projekte-abschluss__sek {
  color: #fff; text-decoration: underline; text-underline-offset: 0.2em;
  font-weight: 600;
}
.ibmh-projekte-abschluss__sek:hover { color: #cfe6fb; }
/* Sichtbarer Tastaturfokus auf dunklem Grund. */
.ibmh-projekte-abschluss a:focus-visible {
  outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .ibmh-projekte-abschluss__btn { transition: none; }
  .ibmh-projekte-abschluss__btn:hover { transform: none; }
}
@media (max-width: 782px) {
  .ibmh-projekte-abschluss { margin-top: 0; padding: 3rem 0 3.25rem; }
}

/* Der Abschluss traegt das Seitenende. Ohne diese Regel addiert sich das padding-bottom von
 * main zu der Akzentflaeche und erzeugt genau den weissen Restbalken, den sie beseitigen soll. */
.post-type-archive-ibmh_project .ibmh-page-wide-main,
.tax-projekt-kategorie .ibmh-page-wide-main { padding-bottom: 0; }

/* Abstand von der letzten Projektkarte zur farbigen Abschlussflaeche.
 * Die dg-section bringt systemweit rund 101px padding-bottom mit, dazu kommen 20px Blockabstand
 * des Template-Parts. Zusammen waren das 121px und damit deutlich ueber dem Sektionskorridor von
 * 72 bis 96px. Nur auf den Projektarchiven reduziert, der Wert der dg-section bleibt sonst
 * unveraendert. */
.post-type-archive-ibmh_project .ibmh-page-wide-main > .dg-section,
.tax-projekt-kategorie .ibmh-page-wide-main > .dg-section { padding-bottom: 3.5rem; }
@media (max-width: 782px) {
  .post-type-archive-ibmh_project .ibmh-page-wide-main > .dg-section,
  .tax-projekt-kategorie .ibmh-page-wide-main > .dg-section { padding-bottom: 2rem; }
}

/* Zwischen main und Footer stehen im Bestand 72px (Blog, Leistungen, Karriere). Bei einer
 * weissen Seite faellt das nicht auf, unter einer farbigen Abschlussflaeche schon: dort bleibt
 * ein weisser Streifen zwischen Blau und Footer stehen. /team/ loest denselben Fall mit 0.
 * Nur fuer die Projektarchive, der Rest der Website bleibt unveraendert.
 * Der iOS-Footer-Fix (box-shadow am Footer) wird davon nicht beruehrt. */
.post-type-archive-ibmh_project .wp-site-blocks > footer,
.tax-projekt-kategorie .wp-site-blocks > footer { margin-top: 0; }
/* Der Abstand sitzt nicht am <footer> selbst, sondern am ersten Block darin (.dg-site-footer,
 * margin-top 72px). Nachgemessen 2026-09-08: Ohne diese zweite Regel bleibt die weisse Lücke
 * bestehen, obwohl der Footer-Margin bereits auf 0 steht. */
.post-type-archive-ibmh_project .wp-site-blocks > footer > .dg-site-footer,
.tax-projekt-kategorie .wp-site-blocks > footer > .dg-site-footer { margin-top: 0; }

.ibmh-filter { margin: 1.6rem 0 2rem; }
.ibmh-filter ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.ibmh-filter a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(13,43,99,0.06);
  padding: 0.42rem 1rem;
  font-size: 0.9rem; font-weight: 600;
  color: #1848a0; text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.ibmh-filter a:hover { background: rgba(255, 255, 255, 0.85); transform: translateY(-2px); }
/* Beide Werte: Der Blogfilter setzt aria-current="true", der Projektfilter das semantisch
 * richtige aria-current="page". Ohne den zweiten Selektor bleibt der aktive Chip unmarkiert. */
.ibmh-filter a[aria-current="true"],
.ibmh-filter a[aria-current="page"] {
  background: #1848a0; color: #fff; border-color: #1848a0;
}

/* ---------------------------------------------------------------------------
 * Projekt-Einzelseite: eine Aussenachse, angenehme Lesebreite.
 * Ausschliesslich auf .single-ibmh_project gescopt, damit keine andere Seitengruppe
 * beruehrt wird. Alle Bloecke liegen ueber das Template auf 1180px, die Lesebreite wird hier
 * begrenzt, aber LINKSBUENDIG statt zentriert: So beginnen H1, Intro und Ueberschriften an
 * derselben Kante wie Faktenband, Tabelle und "Weitere Projekte".
 * ------------------------------------------------------------------------- */
.single-ibmh_project .wp-block-post-title,
.single-ibmh_project .wp-block-post-content > p,
.single-ibmh_project .wp-block-post-content > h2,
.single-ibmh_project .wp-block-post-content > h3,
.single-ibmh_project .wp-block-post-content > ul,
.single-ibmh_project .wp-block-post-content > ol,
.single-ibmh_project .wp-block-post-content > .ibmh-panel {
  max-width: 50rem;
  /* !important ist hier noetig und vertretbar: Das Core-Constrained-Layout setzt auf direkte
   * Kinder `margin-left/right: auto !important`, ohne Gegengewicht bleibt der Textblock mittig
   * (gemessen: x=320 statt x=130 bei 1440px). Die Regel ist strikt auf .single-ibmh_project
   * gescopt und beruehrt keine andere Seitengruppe. */
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Volle Achse behalten alle Elemente, die von der Breite profitieren. */
.single-ibmh_project .wp-block-post-content > .wp-block-table,
.single-ibmh_project .wp-block-post-content > .wp-block-gallery,
.single-ibmh_project .wp-block-post-content > figure {
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
@media (max-width: 782px) {
  .single-ibmh_project .wp-block-post-title,
  .single-ibmh_project .wp-block-post-content > * { max-width: none; }
}

/* Abschlussbereich der Projekt-Einzelseite.
 * Der CTA "Aehnliches Projekt besprechen" stand direkt unter den Karten von "Weitere Projekte"
 * und wirkte angeklebt. Alles gescopt auf .single-ibmh_project. */
.single-ibmh_project .ibmh-c-authorbox { margin: 3.5rem 0 0; }
.single-ibmh_project .ibmh-projekt-weitere { margin-top: 3.5rem; }
.single-ibmh_project .ibmh-c-cta {
  margin-top: 3.5rem !important;
  margin-bottom: 0 !important;
}
@media (max-width: 782px) {
  .single-ibmh_project .ibmh-c-authorbox,
  .single-ibmh_project .ibmh-projekt-weitere { margin-top: 2.5rem; }
  .single-ibmh_project .ibmh-c-cta { margin-top: 2.5rem !important; }
}

/* Empty State: ruhiges Glass-Panel mit CTA, zentriert */
.ibmh-empty {
  text-align: center;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 16px 44px rgba(13,43,99,0.08);
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 3rem);
  margin: 1rem 0 2rem;
}
.ibmh-empty h2, .ibmh-empty h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.ibmh-empty p { color: #51607a; margin: 0 auto 1.2rem; max-width: 36rem; }
@media (prefers-reduced-motion: reduce) { .ibmh-filter a { transition: none; } }

/* Kompakte Kontakt-Standortboxen (Sidebar der Kontaktseite): gleich gestaltet, ruhig */
.ibmh-panel--kontakt { padding: 1.2rem 1.3rem; margin: 0 0 1rem; }
.ibmh-panel--kontakt h3 { font-size: 1rem; margin: 0 0 0.45rem; }
.ibmh-panel--kontakt p { font-size: 0.93rem; margin: 0 0 0.4rem; color: #33405a; }
.ibmh-panel--kontakt p:last-child { margin-bottom: 0; }

/* Autoren-Expertenprofil (Autorenarchiv) — Designentscheidung 2026-08-05 (Synthese C):
 * ein Panel, drei Zonen. Vollbreite Kopfzeile (Porträt | Eyebrow+Name+Qualifikation+Stationen),
 * darunter Bio/Themen/CTA jeweils über die volle Breite. Löst die Lücke strukturell — unterhalb
 * der Kopfzeile existiert keine zweite Spaltenkante mehr, an der eine Lücke entstehen könnte. */
.ibmh-authorprofile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.6rem 1.8rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 20px 50px rgba(13,43,99,0.10);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 2.4rem;
}
.ibmh-authorprofile__portrait-col { grid-column: 1; grid-row: 1; }
img.ibmh-authorprofile__portrait {
  width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 28px;
  object-fit: cover;
  background: rgba(24, 72, 160, 0.08);
  box-shadow: 0 12px 30px rgba(13,43,99,0.16);
}
.ibmh-authorprofile__head { grid-column: 2; grid-row: 1; align-self: center; }
.ibmh-authorprofile__eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: #1f63c4; margin: 0 0 0.2rem;
}
.ibmh-authorprofile__head h1 { font-size: clamp(1.5rem, 1vw + 1.3rem, 1.9rem); margin: 0 0 0.4rem; }
.ibmh-authorprofile__job { font-weight: 600; color: #1848a0; margin: 0 0 0.3rem; }
.ibmh-authorprofile__stations { color: #51607a; font-size: 0.92rem; margin: 0; }

.ibmh-authorprofile__bio {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 16px 44px rgba(13,43,99,0.08);
  padding: clamp(1.3rem, 2.5vw, 2rem);
}
.ibmh-authorprofile__bio p { max-width: 64ch; }
.ibmh-authorprofile__bio p:first-child { margin-top: 0; }
.ibmh-authorprofile__bio p:last-child { margin-bottom: 0; }

.ibmh-authorprofile__topics-zone { grid-column: 1 / -1; }
.ibmh-authorprofile__topics-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #51607a; margin: 0 0 0.45rem;
}
.ibmh-authorprofile__topics {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-start;
}
.ibmh-authorprofile__topics li a {
  display: inline-block;
  background: rgba(31, 99, 196, 0.09);
  border: 1px solid rgba(31, 99, 196, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem; font-weight: 600; color: #1848a0;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.ibmh-authorprofile__topics li a:hover {
  background: rgba(31, 99, 196, 0.16);
  border-color: rgba(31, 99, 196, 0.32);
}
.ibmh-authorprofile > .ibmh-c-cta { grid-column: 1 / -1; margin: 0.4rem 0 0; }

@media (max-width: 700px) {
  .ibmh-authorprofile { grid-template-columns: 1fr; text-align: center; }
  .ibmh-authorprofile__portrait-col { grid-column: 1; grid-row: 1; max-width: 220px; margin: 0 auto; }
  .ibmh-authorprofile__head { grid-column: 1; grid-row: 2; text-align: center; }
  .ibmh-authorprofile__topics { justify-content: center; }
}

/* Autorenuebersicht (/author/): alternierende Zeilen, Portraet rund wie im Einzelprofil.
 * Kein .dg-card, weil die Zeile keine Hover-Karte ist, sondern ein ruhiger Textblock. */
.ibmh-authors { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); margin: 2rem 0 0; }
.ibmh-authors__row {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) 1fr;
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 20px 50px rgba(13,43,99,0.10);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
/* Alternierung: Bild wandert in Zeile 2, 4, ... nach rechts. */
.ibmh-authors__row--flip { grid-template-columns: 1fr minmax(12rem, 20rem); }
.ibmh-authors__row--flip .ibmh-authors__media { order: 2; }
.ibmh-authors__media { display: flex; justify-content: center; }
img.ibmh-authors__avatar {
  width: min(100%, 260px); height: auto; aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(24, 72, 160, 0.08);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.85), 0 16px 40px rgba(13,43,99,0.16);
}
.ibmh-authors__eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: #1f63c4; margin: 0 0 0.25rem;
}
.ibmh-authors__name { font-size: clamp(1.4rem, 1vw + 1.15rem, 1.85rem); margin: 0 0 0.3rem; }
.ibmh-authors__role { font-weight: 600; color: #1848a0; margin: 0 0 0.8rem; }
.ibmh-authors__excerpt { color: #51607a; margin: 0 0 1.1rem; max-width: 46rem; }
.ibmh-authors__topics-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #51607a; margin: 0 0 0.45rem;
}
.ibmh-authors__topics {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.ibmh-authors__topics li a {
  display: inline-block;
  background: rgba(31, 99, 196, 0.09);
  border: 1px solid rgba(31, 99, 196, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem; font-weight: 600; color: #1848a0;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.ibmh-authors__topics li a:hover {
  background: rgba(31, 99, 196, 0.16);
  border-color: rgba(31, 99, 196, 0.32);
}
.ibmh-authors__body .ibmh-c-cta { margin: 1.3rem 0 0; }
@media (max-width: 860px) {
  .ibmh-authors__row,
  .ibmh-authors__row--flip { grid-template-columns: 1fr; }
  /* Mobil immer Bild oben, auch in der gespiegelten Zeile. */
  .ibmh-authors__row--flip .ibmh-authors__media { order: 0; }
  img.ibmh-authors__avatar { width: min(100%, 190px); }
}

/* Beitragsliste der Bloguebersicht: breite Zeilen statt Dreispaltenraster. */
.ibmh-postrow {
  display: grid;
  grid-template-columns: minmax(0, 20rem) 1fr;
  gap: clamp(1.1rem, 2.5vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.5rem);
}
.ibmh-postrow .wp-block-post-featured-image { margin: 0; }
.ibmh-postrow .wp-block-post-featured-image img { width: 100%; height: auto; }
.ibmh-postrow__body > * { margin-block: 0; }
.ibmh-postrow__body > * + * { margin-block-start: 0.6rem; }
.ibmh-postrow__body .wp-block-post-terms {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #1f63c4;
}
.ibmh-postrow__body .wp-block-post-title { font-size: clamp(1.25rem, 0.9vw + 1.05rem, 1.6rem); }
.ibmh-postrow__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  margin-block-start: 1rem !important;
  font-size: 0.85rem; color: #51607a;
}
.ibmh-postrow__meta .wp-block-post-date { margin: 0; }
.ibmh-byline {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; color: #1848a0; text-decoration: none;
}
.ibmh-byline:hover { text-decoration: underline; }
img.ibmh-byline__avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: rgba(24, 72, 160, 0.08);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
}
@media (max-width: 780px) {
  .ibmh-postrow { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
 * Sekundaerer (Ghost-)CTA + CTA-Gruppe (Hero: primaer + sekundaer nebeneinander)
 * ------------------------------------------------------------------------- */
.ibmh-c-cta--group { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.entry-content a.ibmh-c-btn--ghost,
.wp-block-post-content a.ibmh-c-btn--ghost,
a.ibmh-c-btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: #1848a0;
  border: 1px solid rgba(24, 72, 160, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.entry-content a.ibmh-c-btn--ghost:hover,
.wp-block-post-content a.ibmh-c-btn--ghost:hover,
a.ibmh-c-btn--ghost:hover { background: rgba(24, 72, 160, 0.10); color: #1848a0; }

/* ---------------------------------------------------------------------------
 * Themen-Kacheln ("Was wird untersucht?") — ruhige Info-Tiles, keine Links.
 * ------------------------------------------------------------------------- */
.ibmh-c-topics {
  list-style: none; margin: 1.4rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
  grid-auto-rows: 1fr;   /* alle Kacheln exakt gleich hoch, auch ueber Reihen */
}
.ibmh-c-topic {
  display: flex; flex-direction: column; gap: 0.3rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--ibmh-blue-500, #1e9fe9);
  border-radius: var(--ibmh-radius-md, 18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 30px rgba(13,43,99,0.06);
  padding: 0.95rem 1.05rem;
}
.ibmh-c-topic__t { font-weight: 700; color: var(--ibmh-ink, #161616); line-height: 1.25; }
.ibmh-c-topic__d { font-size: 0.88rem; color: var(--ibmh-text-muted, #51607a); line-height: 1.4; }
/* Optionale feste Spalten-Modifier (Batch-6-Polish, 2026-07-14), analog .ibmh-steps--2/--3.
 * Nur aktiv, wenn [ibmh_topics cols="2|3"] gesetzt ist -> abwaertskompatibel, Default unveraendert. */
.ibmh-c-topics--2 { grid-template-columns: repeat(2, 1fr); }
.ibmh-c-topics--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .ibmh-c-topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ibmh-c-topics { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
 * FAQ-Akkordeon (nur .ibmh-faq): groessere Tap-Ziele + ruhige Trenner.
 * ------------------------------------------------------------------------- */
.ibmh-faq .wp-block-details { border-top: 1px solid rgba(24, 72, 160, 0.12); }
.ibmh-faq .wp-block-details:first-of-type { border-top: 0; }
.ibmh-faq .wp-block-details summary {
  cursor: pointer;
  padding: 0.75rem 1.9rem 0.75rem 0.1rem;
  font-weight: 600; color: var(--ibmh-ink, #161616);
  line-height: 1.4;
}
.ibmh-faq .wp-block-details summary:focus-visible {
  outline: 3px solid var(--ibmh-blue-600, #1f63c4); outline-offset: 3px; border-radius: 6px;
}
.ibmh-faq .wp-block-details > :not(summary) { padding: 0 0 0.7rem; color: var(--ibmh-text-muted, #51607a); }

/* =========================================================================
 * /energieberatung/ — Refinement (2026-07-13). Page-scoped (body.page-id-95)
 * bzw. eigene Klassen, die nur auf dieser Seite vorkommen. Additiv.
 * ========================================================================= */

/* 1) Einheitliche Sektionsbreite: alle .ibmh-sec an derselben 1240er-Achse wie die Baender.
 * Bewusst seitenunabhaengig (nicht mehr body.page-id-95-gescoped): .ibmh-sec ist ein
 * eigener, eindeutiger Klassenname und soll als wiederverwendbare Breiten-Komponente auf
 * jeder Leistungsseite funktionieren (aktuell: /energieberatung/ + /leistungen/). Andere
 * Seiten setzen diese Klasse nicht und sind daher unveraendert. */
.ibmh-sec {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
  padding-block: clamp(1.9rem, 4vw, 3.2rem);
}
.ibmh-sec > h2:first-child,
.ibmh-sec > :first-child { margin-top: 0; }
.ibmh-sec > p { max-width: 64ch; }   /* Lesebreite, linksbuendig zur Achse */
.ibmh-band > * { width: min(100% - 2rem, 1240px); margin-inline: auto; }

/* 2) Worum es geht: asymmetrischer Split + nummerierte Kernpunkte */
.ibmh-lead-2col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; margin-top: 1rem; }
.ibmh-lead-2col__intro p { font-size: 1.06rem; color: #33405a; max-width: 46ch; }
.ibmh-keypoints { list-style: none; margin: 0; padding: 0; counter-reset: kp; display: grid; gap: 0.85rem; }
.ibmh-keypoints li { counter-increment: kp; position: relative; padding-left: 3.1rem; color: var(--ibmh-text-muted, #51607a); font-size: 0.95rem; }
.ibmh-keypoints li::before {
  content: counter(kp, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-weight: 700; font-size: 0.8rem; color: var(--ibmh-blue-600, #1f63c4);
  border: 1px solid rgba(31, 99, 196, 0.3); border-radius: 8px; padding: 0.28rem 0.4rem; line-height: 1;
}
.ibmh-keypoints li strong { display: block; color: var(--ibmh-ink, #161616); margin-bottom: 0.1rem; }
@media (max-width: 820px) { .ibmh-lead-2col { grid-template-columns: 1fr; } }

/* 3) Ergebnis-Karten mit Icons, exakt gleich hoch (Grid stretch + Flex) */
.ibmh-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; margin-top: 1.3rem; }
.ibmh-result {
  display: flex; flex-direction: column; gap: 0.6rem; height: 100%;
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--ibmh-radius-md, 18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 12px 34px rgba(13,43,99,0.07);
  padding: clamp(1.1rem, 2vw, 1.5rem);
}
.ibmh-result__icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--ibmh-blue-600, #1f63c4); background: rgba(31,99,196,0.08); border-radius: 12px; }
.ibmh-result__icon svg { width: 26px; height: 26px; }
.ibmh-result h3 { margin: 0.2rem 0 0; font-size: 1.08rem; }
.ibmh-result p { margin: 0; color: var(--ibmh-text-muted, #51607a); font-size: 0.94rem; }
@media (max-width: 900px) { .ibmh-results { grid-template-columns: 1fr; } }

/* 4) CTA-Baender (mittig + final): sichtbar, aber ruhig */
.ibmh-cta-band {
  text-align: center; border-radius: 24px;
  background: linear-gradient(120deg, rgba(24,72,160,0.07), rgba(30,159,233,0.05));
  border: 1px solid rgba(31, 99, 196, 0.18);
  padding: clamp(1.6rem, 3.6vw, 2.6rem) clamp(1.2rem, 3vw, 2rem);
}
.ibmh-cta-band h2 { margin: 0 0 0.55rem; }
.ibmh-cta-band p { margin: 0 auto 1.2rem; max-width: 52ch; color: #33405a; }
.ibmh-cta-band .ibmh-c-cta { margin: 0; display: flex; justify-content: center; }
.ibmh-cta-band--final { background: linear-gradient(120deg, rgba(24,72,160,0.10), rgba(30,159,233,0.06)); }

/* 5) Vertrauens-Split mit Bild */
.ibmh-trust { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: 0.8rem; }
.ibmh-trust__text p { max-width: 46ch; color: #33405a; }
.ibmh-trust__text .ibmh-points { margin-top: 1rem; }
.ibmh-trust__media { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 22px 60px rgba(13,43,99,0.14); aspect-ratio: 4 / 3; }
.ibmh-trust__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.ibmh-trust__badge { font-size: 0.75rem; color: #67718a; margin: 0.7rem 0 0; }
@media (max-width: 860px) { .ibmh-trust { grid-template-columns: 1fr; } .ibmh-trust__media { aspect-ratio: 16 / 9; } }

/* 6) Standort-Note (page-scoped inline) */
.ibmh-standort-note { background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.6); border-radius: 16px; padding: 1.1rem 1.3rem; }
.ibmh-standort-note h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.ibmh-standort-note p { margin: 0; color: var(--ibmh-text-muted, #51607a); max-width: 68ch; }
.ibmh-standort-note a { color: var(--ibmh-blue-700, #1848a0); font-weight: 600; }

/* 7) Hover/Focus-Polish (dezent, kein Layoutsprung) */
.ibmh-c-topic, .ibmh-result, .ibmh-steps li, .ibmh-points li {
  transition: transform 200ms var(--ibmh-ease-out, ease), box-shadow 200ms var(--ibmh-ease-out, ease), border-color 200ms var(--ibmh-ease-out, ease);
}
.ibmh-steps li::before { transition: transform 200ms var(--ibmh-ease-out, ease); }
.ibmh-points li::before { transition: transform 180ms var(--ibmh-ease-out, ease); }
@media (hover: hover) {
  .ibmh-c-topic:hover, .ibmh-result:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(13,43,99,0.13); border-color: rgba(31,99,196,0.35); }
  .ibmh-steps li:hover { transform: translateY(-2px); }
  .ibmh-steps li:hover::before { transform: scale(1.08); }
  .ibmh-points li:hover { transform: translateY(-2px); border-color: rgba(31,99,196,0.45); }
  .ibmh-points li:hover::before { transform: translateX(2px); }
}

/* 8) Reveal (Progressive Enhancement; ohne JS voll sichtbar) */
.ibmh-reveal-ready .ibmh-reveal-item { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ibmh-ease-out, ease), transform 500ms var(--ibmh-ease-out, ease); }
.ibmh-reveal-ready .ibmh-reveal-item.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ibmh-c-topic, .ibmh-result, .ibmh-steps li, .ibmh-points li,
  .ibmh-steps li::before, .ibmh-points li::before { transition: none !important; }
  .ibmh-reveal-ready .ibmh-reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================================
 * /energieberatung/ — FINAL (2026-07-13). Wiederverwendbare Komponenten-Modifier
 * + Kontext .ibmh-sec (nur Seiten mit diesem Wrapper). Andere Seiten unveraendert.
 * ========================================================================= */

/* A) Prozessraster: fester 3x2 (Modifier .ibmh-steps--3), gleich hohe Karten */
.ibmh-steps--3 ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.ibmh-steps--2 ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.ibmh-steps li { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.ibmh-steps li::before { flex: none; }
@media (max-width: 900px) { .ibmh-steps--3 ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
@media (max-width: 560px) { .ibmh-steps--3 ol, .ibmh-steps--2 ol { grid-template-columns: 1fr; gap: 1.25rem; } }

/* B + F) CTA-Baender vollstaendig zentriert */
.ibmh-cta-band { text-align: center; }
.ibmh-cta-band > * { margin-inline: auto; }
.ibmh-cta-band .ibmh-c-cta { margin: 0; display: flex; justify-content: center; width: 100%; max-width: none; }
.ibmh-cta-band--final { border: 1px solid rgba(31, 99, 196, 0.28); box-shadow: 0 16px 44px rgba(13, 43, 99, 0.07); }
@media (max-width: 560px) { .ibmh-cta-band .ibmh-c-btn { width: 100%; max-width: 22rem; text-align: center; } }

/* D) Standorte: ausgewogene 3-teilige Komposition mit Inline-SVG-Verbindung */
.ibmh-locations { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: stretch; }
.ibmh-loc-card {
  background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.62);
  border-radius: var(--ibmh-radius-md, 18px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 12px 32px rgba(13,43,99,0.06);
  padding: clamp(1.1rem, 2vw, 1.5rem); display: flex; flex-direction: column; gap: 0.35rem;
}
.ibmh-loc-card__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ibmh-blue-600, #1f63c4); }
.ibmh-loc-card h3 { margin: 0; font-size: 1.15rem; }
.ibmh-loc-card p { margin: 0; color: var(--ibmh-text-muted, #51607a); font-size: 0.92rem; }
.ibmh-loc-card a { color: var(--ibmh-blue-700, #1848a0); font-weight: 600; text-decoration: none; margin-top: auto; }
.ibmh-loc-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.5rem; }
.ibmh-loc-mid h3 { margin: 0; font-size: 1.05rem; }
.ibmh-loc-mid svg { width: 100%; max-width: 320px; height: auto; }
.ibmh-loc-mid__dot { fill: #1f63c4; }
.ibmh-loc-mid__line { stroke: #1e9fe9; stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; fill: none; }
@media (max-width: 820px) {
  .ibmh-locations { grid-template-columns: 1fr; }
  .ibmh-loc-mid { order: 3; padding: 0.4rem 0; }
  .ibmh-loc-mid svg { max-width: 260px; }
}

/* E) FAQ als ruhiges Glasdesign (einzelne Glasflaechen + Chevron) */
.ibmh-faq h2 { margin-bottom: 2rem; }
.ibmh-faq .wp-block-details {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(13, 43, 99, 0.06);
  margin: 0 0 0.7rem; padding: 0 1.1rem;
}
.ibmh-faq .wp-block-details:first-of-type { border-top: 1px solid rgba(255, 255, 255, 0.68); }
.ibmh-faq .wp-block-details summary {
  list-style: none; position: relative; padding: 0.9rem 2.4rem 0.9rem 0; min-height: 44px;
}
.ibmh-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.ibmh-faq .wp-block-details summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 1.35rem;
  width: 0.62rem; height: 0.62rem; border-right: 2px solid #1848a0; border-bottom: 2px solid #1848a0;
  transform: rotate(45deg); transition: transform 180ms var(--ibmh-ease-out, ease);
}
.ibmh-faq .wp-block-details[open] summary::after { transform: rotate(225deg); }
.ibmh-faq .wp-block-details > :not(summary) { padding: 0 0 0.9rem; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ibmh-faq .wp-block-details { background: rgba(255, 255, 255, 0.92); }
}
@media (max-width: 560px) {
  .ibmh-faq h2 { margin-bottom: 1.4rem; }
  .ibmh-faq .wp-block-details { border-radius: 12px; padding: 0 0.9rem; }
  .ibmh-faq .wp-block-details summary { padding: 0.8rem 2.2rem 0.8rem 0; }
}

/* H) Ergebnisboxen Mobile: sauberes einspaltiges Grid, keine Ueberlappung */
@media (max-width: 900px) {
  .ibmh-results { grid-template-columns: 1fr; gap: 1.1rem; }
  .ibmh-result { height: auto; }
}

/* I) Vertrauenspunkte Mobile: mehr Luft, weniger Rundung, mehrzeilig sauber */
@media (max-width: 640px) {
  .ibmh-trust .ibmh-points { gap: 0.7rem; }
  .ibmh-trust .ibmh-points li { border-radius: 14px; padding: 0.7rem 1rem; line-height: 1.4; }
}

/* J) Weiterfuehrende Leistungen als grosszuegige, gleich hohe Angebotskarten
 * (statt kompakter Chips). Flex + justify-content:center statt Grid, damit eine
 * ungerade letzte Reihe automatisch zentriert steht, ohne Markup-Aenderung. */
.ibmh-sec .ibmh-c-related ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.ibmh-sec .ibmh-c-related li { display: flex; flex: 0 0 calc(33.333% - 1rem); max-width: calc(33.333% - 1rem); }
/* Modifier fuer genau 4 Items (siehe sc_related()): 2x2 statt 3+1-Waisenreihe.
 * Gleiche Selektor-Spezifitaet wie die Basisregel oben, aber danach in der Cascade -> gewinnt
 * bei Breiten >1000px. Die bestehenden @media-Ueberschreibungen fuer Tablet/Mobile weiter unten
 * greifen unveraendert (gleiche Spezifitaet, stehen im Stylesheet noch weiter hinten). */
.ibmh-sec .ibmh-c-related--2 li { flex: 0 0 calc(50% - 0.75rem); max-width: calc(50% - 0.75rem); }
.ibmh-sec .ibmh-c-related li a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.9rem;
  width: 100%; min-height: 100%;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--ibmh-radius-md, 18px);
  padding: 1.15rem 1.3rem;
  box-shadow: 0 8px 22px rgba(13, 43, 99, 0.05);
  font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--ibmh-blue-700, #1848a0);
  text-decoration: none;
  transition: border-color 200ms var(--ibmh-ease-out, ease), background 200ms var(--ibmh-ease-out, ease);
}
.ibmh-sec .ibmh-c-related li a::after {
  content: "→"; flex: none; font-weight: 700;
  transition: transform 200ms var(--ibmh-ease-out, ease);
}
.ibmh-sec .ibmh-c-related li a:hover,
.ibmh-sec .ibmh-c-related li a:focus-visible {
  border-color: rgba(24, 72, 160, 0.35);
  background: rgba(255, 255, 255, 0.88);
}
.ibmh-sec .ibmh-c-related li a:hover::after,
.ibmh-sec .ibmh-c-related li a:focus-visible::after { transform: translateX(3px); }
.ibmh-sec .ibmh-c-related li a:focus-visible { outline: 2px solid #1848a0; outline-offset: 2px; }
@media (max-width: 1000px) {
  .ibmh-sec .ibmh-c-related li { flex-basis: calc(50% - 0.75rem); max-width: calc(50% - 0.75rem); }
}
@media (max-width: 640px) {
  .ibmh-sec .ibmh-c-related ul { gap: 1rem; }
  .ibmh-sec .ibmh-c-related li { flex-basis: 100%; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ibmh-sec .ibmh-c-related li a,
  .ibmh-sec .ibmh-c-related li a::after { transition: none; }
}

/* =========================================================================
 * /leistungen/ — Services-Hub (2026-07-13). Neue, eigenstaendige Komponenten
 * (Situationen, Sprungnav, gruppierte Leistungsuebersicht). Klassennamen sind
 * neu und global eindeutig -> keine Kollision mit anderen Seiten/Komponenten.
 * ========================================================================= */

/* Situationen: schneller Einstieg, gleich hohe Karten, dezenter Hover-Lift.
 * CSS Grid statt Flex (Layout-Polish 2026-07-13): die vorherige Flex-Loesung setzte
 * min-height:100% auf eine Karte innerhalb eines verschachtelten Flex-Containers
 * (<ul> flex > <li display:flex> > <a class="card">). Ein EXPLIZITER min-height-Wert
 * ersetzt bei Flex-Items den automatischen "nie kleiner als der Inhalt"-Schutz
 * (min-height:auto), wodurch die Karte auf die Zeilenhoehe VOR Beruecksichtigung des
 * tatsaechlichen Textinhalts gequetscht wurde (200px Box bei 245px Inhalt) -> der Text
 * lief unten aus der Karte heraus und ueberlappte die Sprungnavigation darunter. CSS
 * Grid hat dieses Problem nicht: die Zeilenhoehe wird aus dem tatsaechlichen Inhalt
 * aller Zellen der Zeile ermittelt, bevor align-items:stretch angewendet wird. */
.ibmh-situations { margin: 2.2rem 0 3rem; }
@media (max-width: 640px) { .ibmh-situations { margin: 1.6rem 0 1.75rem; } }
.ibmh-situations h2 { margin: 0 0 1.1rem; }
.ibmh-situations__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch;
}
.ibmh-situations__card {
  display: flex; flex-direction: column; gap: 0.5rem; height: 100%; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--ibmh-radius-md, 18px);
  padding: 1.3rem 1.3rem 1.4rem;
  box-shadow: 0 10px 26px rgba(13, 43, 99, 0.06);
  text-decoration: none; color: var(--ibmh-ink, #161616);
  transition: transform 200ms var(--ibmh-ease-out, ease), box-shadow 200ms var(--ibmh-ease-out, ease), border-color 200ms var(--ibmh-ease-out, ease);
}
.ibmh-situations__card strong { font-size: 1.02rem; }
.ibmh-situations__card span:last-child { font-size: 0.9rem; color: var(--ibmh-text-muted, #51607a); line-height: 1.42; }
.ibmh-situations__icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; color: var(--ibmh-blue-600, #1f63c4); background: rgba(31, 99, 196, 0.08); border-radius: 12px; }
.ibmh-situations__icon svg { width: 23px; height: 23px; }
@media (hover: hover) {
  .ibmh-situations__card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13, 43, 99, 0.12); border-color: rgba(31, 99, 196, 0.32); }
}
.ibmh-situations__card:focus-visible { outline: 2px solid #1848a0; outline-offset: 2px; }
@media (max-width: 1000px) { .ibmh-situations__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ibmh-situations__list { grid-template-columns: 1fr; gap: 1rem; } }
@media (prefers-reduced-motion: reduce) { .ibmh-situations__card { transition: none; } }

/* Sprungnavigation zu den Leistungsgruppen: echte Ankerlinks, kein JS-Filter */
.ibmh-jumpnav { margin: 0 0 2.2rem; }
.ibmh-jumpnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ibmh-jumpnav a {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--ibmh-blue-700, #1848a0);
  background: rgba(24, 72, 160, 0.06); border: 1px solid rgba(24, 72, 160, 0.16);
  border-radius: 999px; padding: 0.55rem 1.1rem;
  transition: background 160ms var(--ibmh-ease-out, ease), border-color 160ms var(--ibmh-ease-out, ease);
}
@media (hover: hover) { .ibmh-jumpnav a:hover { background: rgba(24, 72, 160, 0.12); } }
.ibmh-jumpnav a:focus-visible { outline: 2px solid #1848a0; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ibmh-jumpnav a { transition: none; } }

/* Gruppierte Leistungsuebersicht: Sections mit Anker, abwechselnder Ton, Grid-Karten.
 * CSS Grid statt Flex (Layout-Polish 2026-07-13), gleicher Grund wie bei .ibmh-situations
 * oben: verschachtelte Flex-Container mit min-height:100% quetschten Karten mit laengerem
 * Text unter ihre eigentliche Inhaltshoehe, was den sichtbaren row-gap auffraß.
 * .ibmh-services-group--cols-2 ist ein kontrollierter Modifier fuer Gruppen mit genau
 * vier Leistungen (exaktes 2x2 statt automatischem 3+1-Umbruch), siehe SERVICE_GROUPS
 * 'cols'-Feld in inc/components.php. */
.ibmh-services-hub { margin: 0.6rem 0 2rem; }
.ibmh-services-group {
  scroll-margin-top: 132px;
  padding: 2.75rem 0;
}
.ibmh-services-group:first-child { padding-top: 0.4rem; }
.ibmh-services-group:nth-child(even) {
  background: linear-gradient(180deg, rgba(231, 243, 252, 0.5), rgba(246, 249, 253, 0.85));
  border-radius: 24px;
  padding: 2.75rem clamp(1rem, 3vw, 2rem);
}
.ibmh-services-group:first-child:nth-child(even) { padding-top: 0.4rem; }
.ibmh-services-group__head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.ibmh-services-group__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; color: var(--ibmh-blue-600, #1f63c4); background: rgba(31, 99, 196, 0.08); border-radius: 12px; }
.ibmh-services-group__icon svg { width: 26px; height: 26px; }
.ibmh-services-group__head h2 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.ibmh-services-group__head p { margin: 0; max-width: 62ch; color: var(--ibmh-text-muted, #51607a); }

.ibmh-services-group__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: stretch;
}
.ibmh-services-group--cols-2 .ibmh-services-group__grid { grid-template-columns: repeat(2, 1fr); }

.ibmh-services-group__card {
  display: flex; flex-direction: column; gap: 0.5rem; height: 100%; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--ibmh-radius-md, 18px);
  padding: 1.15rem 1.3rem 1.25rem;
  box-shadow: 0 8px 22px rgba(13, 43, 99, 0.05);
  text-decoration: none; color: var(--ibmh-ink, #161616);
  transition: border-color 200ms var(--ibmh-ease-out, ease), background 200ms var(--ibmh-ease-out, ease), transform 200ms var(--ibmh-ease-out, ease);
}
.ibmh-services-group__card h3 { margin: 0; font-size: 1.02rem; }
.ibmh-services-group__card p { margin: 0; font-size: 0.9rem; color: var(--ibmh-text-muted, #51607a); line-height: 1.42; flex: 1; }
.ibmh-services-group__arrow { font-weight: 700; color: var(--ibmh-blue-700, #1848a0); transition: transform 200ms var(--ibmh-ease-out, ease); }
@media (hover: hover) {
  .ibmh-services-group__card:hover { border-color: rgba(24, 72, 160, 0.35); background: rgba(255, 255, 255, 0.85); transform: translateY(-2px); }
  .ibmh-services-group__card:hover .ibmh-services-group__arrow { transform: translateX(3px); }
}
.ibmh-services-group__card:focus-visible { outline: 2px solid #1848a0; outline-offset: 2px; }

@media (max-width: 1000px) {
  .ibmh-services-group { padding: 1.75rem 0; }
  .ibmh-services-group:first-child { padding-top: 0.4rem; }
  .ibmh-services-group:nth-child(even) { padding: 1.75rem clamp(1rem, 3vw, 2rem); }
  .ibmh-services-group:first-child:nth-child(even) { padding-top: 0.4rem; }
  .ibmh-services-group__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .ibmh-services-group--cols-2 .ibmh-services-group__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ibmh-services-group { padding: 1.4rem 0; scroll-margin-top: 74px; }
  .ibmh-services-group:first-child { padding-top: 0.4rem; }
  .ibmh-services-group:nth-child(even) { padding: 1.4rem 1rem; }
  .ibmh-services-group:first-child:nth-child(even) { padding-top: 0.4rem; }
  .ibmh-services-group__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  /* Muss die unbedingte (nicht media-query-gebundene) --cols-2-Regel ueberschreiben:
   * gleiche Selektor-Spezifitaet (zwei Klassen), aber spaeter in der Kaskade -> gewinnt hier. */
  .ibmh-services-group--cols-2 .ibmh-services-group__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ibmh-services-group__card, .ibmh-services-group__arrow { transition: none; }
}

/* Autorenprofil-Vorschau [ibmh_author_profile_preview] — NUR Preview-Phase 2026-08-05,
 * unabhaengig von .ibmh-authorprofile (live). Beide Varianten teilen die Chip-/Bio-Panel-Optik
 * aus dem bestehenden .ibmh-authorprofile__topics / __bio. */
.ibmh-authorprofile-preview__portrait,
img.ibmh-authorprofile-preview__portrait {
  width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(13,43,99,0.16);
}
.ibmh-authorprofile-preview__job { font-weight: 600; color: #1848a0; margin: 0.2rem 0 1rem; }

/* Variante A — ein gemeinsames Panel, interne Spalten. Loest die Luecke strukturell: es gibt
 * keine zweite Box mehr, die frueher enden koennte (agent-author.md, A1). */
.ibmh-authorprofile-preview--a {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: start;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 20px 50px rgba(13,43,99,0.10);
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
}
.ibmh-authorprofile-preview--a .ibmh-authorprofile-preview__bio-text { max-width: 52rem; }
.ibmh-authorprofile-preview--a .ibmh-authorprofile-preview__bio-text p:first-child { margin-top: 0; }
@media (max-width: 860px) {
  .ibmh-authorprofile-preview--a { grid-template-columns: 1fr; }
  .ibmh-authorprofile-preview--a .ibmh-authorprofile-preview__portrait-col { max-width: 220px; margin: 0 auto; }
}

/* Variante B — drei Geschwisterbloecke ueber Grid-Areas, damit Modul 2 (Themen+CTA) auf
 * Desktop links unter Modul 1 sitzt, mobil aber NACH der Bio erscheint (agent-author.md, 8.3:
 * "Reihenfolge ist eine Markup-Anforderung, keine CSS-Anforderung" — hier ueber Areas geloest,
 * ohne DOM-Reihenfolge aufzubrechen). */
.ibmh-authorprofile-preview--b {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  grid-template-areas: "m1 bio" "m2 bio";
  gap: clamp(1.2rem, 2.6vw, 2rem) clamp(1.6rem, 3vw, 2.8rem);
  align-items: start;
}
.ibmh-authorprofile-preview__module-1 { grid-area: m1; }
.ibmh-authorprofile-preview__module-2 { grid-area: m2; }
.ibmh-authorprofile-preview--b .ibmh-authorprofile-preview__bio { grid-area: bio; }
@media (max-width: 860px) {
  .ibmh-authorprofile-preview--b {
    grid-template-columns: 1fr;
    grid-template-areas: "m1" "bio" "m2";
  }
  .ibmh-authorprofile-preview__module-1 .ibmh-authorprofile-preview__portrait { max-width: 220px; margin: 0 auto; }
}

/* Stellenliste [ibmh_stellen]: eine Karte = ein <a>, volle Containerbreite, kein Bild.
 * Eigenes Padding (dg-card liefert keins), eigener Hover (nicht .dg-card, daher nicht von der
 * sitesweiten dg-fade-up/transform-Kollision betroffen). */
.ibmh-stellen__intro { color: #51607a; margin: 0 0 1.2rem; max-width: 64ch; }
.ibmh-stellen__list {
  list-style: none; margin: 1.4rem 0 0; padding: 0;
  display: grid; gap: 1.1rem;
}
a.ibmh-stelle {
  display: block;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 16px 40px rgba(13,43,99,0.08);
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.4rem, 3.4vw, 2.4rem);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.ibmh-stelle:hover, a.ibmh-stelle:focus-visible {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 24px 56px rgba(13,43,99,0.14);
  border-color: rgba(31, 99, 196, 0.35);
}
.ibmh-stelle__title { margin: 0 0 0.6rem; font-size: clamp(1.1rem, 1vw + 0.95rem, 1.4rem); }
.ibmh-stelle__meta {
  list-style: none; margin: 0 0 0.8rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.ibmh-stelle__meta li {
  background: rgba(31, 99, 196, 0.09);
  border: 1px solid rgba(31, 99, 196, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem; font-weight: 600; color: #1848a0;
}
.ibmh-stelle__excerpt { color: #51607a; margin: 0 0 0.9rem; max-width: 60ch; }
/* Kernaufgaben: die ersten Listenpunkte aus aufgaben_karriere, serverseitig extrahiert.
 * Eigene Bullets statt list-style, weil die Karte ein <a> ist und Core-Listenstile
 * innerhalb von .entry-content sonst Einzug und Farbe mitbringen. */
.ibmh-stelle__tasks { list-style: none; margin: 0 0 0.9rem; padding: 0; max-width: 60ch; }
.ibmh-stelle__tasks li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0 0 0.35rem;
  color: #33405a;
  font-size: 0.94rem;
  line-height: 1.5;
}
.ibmh-stelle__tasks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: #1f63c4;
}
.ibmh-stelle__more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; color: #1f63c4; font-size: 0.92rem;
  background: rgba(31, 99, 196, 0.09);
  border: 1px solid rgba(31, 99, 196, 0.35);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}
.ibmh-stelle__more::after { content: "→"; transition: transform .15s ease; }
a.ibmh-stelle:hover .ibmh-stelle__more::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  a.ibmh-stelle, a.ibmh-stelle:hover, a.ibmh-stelle:focus-visible { transform: none; transition: none; }
  a.ibmh-stelle:hover .ibmh-stelle__more::after { transform: none; }
}

/* Zweispaltig ab 900px — Designentscheidung Karriere, Abschnitt 3.2. Nur auf a.ibmh-stelle
 * bzw. .ibmh-stellen__list gescoped, NIE auf .ibmh-stellen selbst: der Empty State
 * (.ibmh-stellen.ibmh-stellen--empty > .ibmh-empty) darf davon nicht getroffen werden. */
@media (min-width: 900px) {
  a.ibmh-stelle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    grid-template-areas:
      "title meta"
      "text  meta"
      "tasks meta"
      "more  meta";
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
  }
  .ibmh-stelle__title   { grid-area: title; }
  .ibmh-stelle__excerpt { grid-area: text; }
  .ibmh-stelle__tasks   { grid-area: tasks; margin-bottom: 0; }
  .ibmh-stelle__meta    { grid-area: meta; flex-direction: column; align-items: flex-start; }
  .ibmh-stelle__more    { grid-area: more; align-self: end; justify-self: start; margin-top: 0.9rem; }
}

/* Karriere-Detailfelder [ibmh_karriere_details]: fuenf mögliche Abschnitte, leere Felder
 * rendern serverseitig gar nicht erst (siehe sc_karriere_details). */
/* Arbeitsbild auf der Stellen-Detailseite (single-karriere.html). */
.ibmh-stelle-foto { margin: clamp(1.4rem, 3vw, 2rem) 0; }
.ibmh-stelle-foto img { width: 100%; height: auto; }
.ibmh-stelle-foto figcaption { color: #51607a; font-size: .9rem; line-height: 1.5; margin-top: .6rem; }

/* Sichtbare Bestaetigung des Stellenbezugs ueber dem Bewerbungsformular. Der Wert selbst
 * liegt zusaetzlich im Hidden-Feld 11 des Formulars 117 und geht so in die Benachrichtigung. */
.ibmh-bewerbung-kopf {
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgba(31, 99, 196, 0.09);
  border: 1px solid rgba(31, 99, 196, 0.2);
  color: #1848a0;
  font-size: 0.95rem;
}
.ibmh-bewerbung-kopf strong { font-weight: 700; }

.ibmh-karriere-details__section { margin: 0 0 clamp(1.8rem, 4vw, 2.6rem); }
.ibmh-karriere-details__section:last-child { margin-bottom: 0; }
.ibmh-karriere-details__section h2 { font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem); margin: 0 0 0.7rem; }
.ibmh-karriere-details__body ul { margin: 0; padding-left: 1.25rem; }
.ibmh-karriere-details__body li { margin: 0 0 0.4rem; }
.ibmh-karriere-details__body p:last-child { margin-bottom: 0; }

/* [ibmh_fachbereiche] — Team-Designentscheidung 2026-08-05, Abschnitt 3.2. Whole-Card-Link über
 * Stretched-Link (a::after deckt die Karte ab), damit die H3 selbst nicht unterstrichen werden
 * muss. Hover bewusst ohne transform (dg-fade-up überschreibt transform sitesweit, siehe
 * style.css:1074) — border-color/box-shadow/Pfeil tragen den Hover unabhängig vom Bug. */
.ibmh-fachbereiche-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}
.ibmh-fachbereiche-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 14px 34px rgba(13,43,99,0.08);
  padding: clamp(1.3rem, 2.6vw, 1.8rem);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ibmh-fachbereiche-card:hover,
.ibmh-fachbereiche-card:has(a:focus-visible) {
  border-color: rgba(31, 99, 196, 0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 20px 46px rgba(13,43,99,0.14);
}
.ibmh-fachbereiche-card__icon {
  display: inline-flex; width: 2.6rem; height: 2.6rem;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(31, 99, 196, 0.09);
  color: #1f63c4;
  margin-bottom: 0.9rem;
}
.ibmh-fachbereiche-card__icon svg { width: 1.4rem; height: 1.4rem; }
.ibmh-fachbereiche-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.ibmh-fachbereiche-card__link { color: inherit; text-decoration: none; }
.ibmh-fachbereiche-card__link::after { content: ""; position: absolute; inset: 0; }
.ibmh-fachbereiche-card p { color: #51607a; font-size: 0.92rem; margin: 0 0 0.9rem; }
.ibmh-fachbereiche-card__more {
  display: inline-block; color: #1f63c4; font-weight: 700;
  transition: transform .15s ease;
}
.ibmh-fachbereiche-card:hover .ibmh-fachbereiche-card__more { transform: translateX(3px); }
@media (max-width: 900px) {
  .ibmh-fachbereiche-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ibmh-fachbereiche-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ibmh-fachbereiche-card, .ibmh-fachbereiche-card__more { transition: none; }
  .ibmh-fachbereiche-card:hover .ibmh-fachbereiche-card__more { transform: none; }
}

/* .ibmh-steps auf dunklem Grund — Team-Designentscheidung 2026-08-05, Abschnitt 3.1. Additiver
 * Kontextselektor, blast radius heute null (keine sitesweite Verwendung von .ibmh-steps
 * innerhalb .dg-section--dark). Keine Glaskacheln: Haarlinie statt Karte, Ziffer als Eyebrow. */
.dg-section--dark .ibmh-steps li {
  background: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  padding-top: 1.1rem;
}
.dg-section--dark .ibmh-steps li::before {
  content: counter(ibmh-step, decimal-leading-zero);
  display: block;
  width: auto; height: auto;
  background: none;
  color: var(--dg-yellow, #c2e4fa);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.dg-section--dark .ibmh-steps li strong { color: #ffffff; }
.dg-section--dark .ibmh-steps li span { color: rgba(255, 255, 255, 0.78); }

/* Karriereseite (/karriere/) — Hero-Split, Kernaussage, Zweispalter, Bildcollage. Aus dem
 * seitenlokalen <style>-Block der Vorschaurunde hierher überführt (Codex-Abschlussreview
 * 2026-08-05, MITTEL-Finding): einzige Quelle, keine Duplikation im post_content mehr.
 * Klassenpräfix "kar-" bewusst beibehalten statt auf "ibmh-" umbenannt, um keine
 * Massenänderung im bereits live geprüften Seiteninhalt zu riskieren — rein kosmetischer
 * Folgepunkt, siehe abschlussbericht.md. */
.kar-hero { display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem,3vw,2.4rem); align-items: start; }
.kar-hero__kicker { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #1f63c4; margin: 0 0 .5rem; }
.kar-hero__text h1 { font-size: clamp(1.7rem,3.4vw,2.6rem); line-height: 1.12; margin: 0 0 .7rem; }
.kar-hero__lead { color: #33405a; margin: 0 0 1rem; max-width: 38rem; }
.kar-hero__trust { list-style: none; margin: 0 0 1.3rem; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 0; color: #51607a; font-size: .95rem; line-height: 1.5; }
.kar-hero__trust li { margin: 0; padding: 0; border: 0; background: none; }
.kar-hero__trust li::before { content: none; }
/* Trenner haengt am vorangehenden Punkt, nicht am folgenden — sonst beginnt eine
   umgebrochene Zeile mit einem freistehenden Mittelpunkt. */
.kar-hero__trust li:not(:last-child)::after { content: "\00b7"; content: "\00b7" / ""; margin-inline: .55rem; color: #9aa7bd; }
.kar-hero__media { margin: 0; border-radius: 26px; box-shadow: 0 24px 60px rgba(13,43,99,.16); aspect-ratio: 4 / 3; }
.kar-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 899px) { .kar-hero__media { aspect-ratio: auto; } .kar-hero__media img { height: auto; } }
@media (min-width: 900px) {
  .kar-hero { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .kar-hero__text { align-self: center; }
  .kar-hero__media {
    aspect-ratio: auto;
    min-height: 24rem;
    border-radius: 26px 0 0 26px;
    /* 2026-08-05 (Opus-Abschlussreview, Befund K1): "height:100%" am <img> loeste sich bislang
     * nicht zuverlaessig gegen die per Grid-Stretch zugewiesene Hoehe auf (min-height allein
     * erzeugt keine definite Hoehe) — Ergebnis war bis zu 119px toter Kartenraum unter dem
     * Bild. position:relative/absolute macht den Fuellbezug eindeutig, unabhaengig vom
     * Grid-Stretch-Verhalten. */
    position: relative;
    overflow: hidden;
  }
  .kar-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
  /* Bildspalte laeuft bis zur rechten Viewportkante: kein 100vw (Scrollbar-Ueberlauf),
     sondern die Bandbreite selbst als 100% plus rechnerischer Innenabstand links. */
  .ibmh-band > .kar-hero { box-sizing: border-box; width: 100%; padding-left: max(1rem, calc((100% - 1240px) / 2)); }
}
.kar-kern { font-family: var(--wp--preset--font-family--dg-serif, inherit); font-weight: 700; font-size: clamp(1.3rem,2.3vw,1.9rem); line-height: 1.25; color: #1848a0; margin: 0 0 1.5rem; max-width: 32ch; }
.kar-2col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem,3vw,2.6rem); }
.kar-2col p { margin-top: 0; }
@media (max-width: 781px) { .kar-2col { grid-template-columns: 1fr; } }
/* Bildstrecke "Einblick in den Arbeitsalltag": ein Hauptbild links, zwei Nebenbilder
 * rechts uebereinander. Gemeinsame Oberkante und gemeinsame Rechtskante binden die drei
 * Bilder zu einer Gruppe, die Groessenstaffelung macht das Hauptbild eindeutig.
 * Bewusst KEIN object-fit-Zuschnitt: alle drei Motive zeigen Personen am Bildrand, jeder
 * Beschnitt wuerde sie anschneiden. Radius kommt allein aus .ibmh-foto (style.css) —
 * eine eigene border-radius-Regel hier verlor gegen .ibmh-foto > picture > img und
 * liess genau das <picture>-Bild eckig. */
.kar-collage {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1rem,2.4vw,1.8rem);
  align-items: start;
}
.kar-collage figure { margin: 0; }
.kar-collage img { display: block; width: 100%; height: auto; }
.kar-collage figcaption { color: #51607a; font-size: .9rem; line-height: 1.5; margin-top: .6rem; }
.kar-c1 { grid-column: 1; grid-row: 1 / 3; }
.kar-c2 { grid-column: 2; grid-row: 1; }
.kar-c3 { grid-column: 2; grid-row: 2; }
@media (max-width: 781px) {
  .kar-collage { grid-template-columns: minmax(0, 1fr); }
  .kar-c1, .kar-c2, .kar-c3 { grid-column: 1; grid-row: auto; }
}
/* Kein eigener Button-Hover-Fix mehr an dieser Stelle. Das Fehlerbild "Text verschwindet
 * beim Hover" auf /karriere/ hatte seine Ursache in der sitesweiten Regel
 * `a:hover { color: var(--dg-green-600) }` (Theme style.css) und ist dort an der Wurzel
 * behoben (`a:not(.wp-element-button):hover` plus eigene Regel fuer Outline-Buttons).
 * Eine seitengebundene Kopie hier waere eine zweite Wahrheit fuer dieselbe Farbe. */
.kar-note { color: #51607a; font-size: .92rem; }
.kar-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 1rem 0 0; }
.kar-links a { font-weight: 600; }

/* WPForms-Absenden-Button 2026-08-05 (Opus-Abschlussreview, Befund S1): auf /karriere/
 * rendert der Button im Markenstil (#1848a0, Pille), auf der neuen Stellendetailseite
 * (single-karriere.html) faellt er auf WPForms' Standardfarbe (#066aab, eckig) zurueck —
 * derselbe Shortcode, aber unterschiedliches WPForms-Stylesheet-Ergebnis je nach Template-
 * Kontext (WPForms erkennt den Shortcode ueber post_content der Seite; die Stellendetailseite
 * bindet ihn ueber ein FSE-Template, nicht ueber eigenen post_content). Statt der fragilen
 * Vererbung eine explizite, robuste Regel fuer ueberall, wo das Formular vorkommt. */
.wpforms-container .wpforms-submit {
  background-color: #1848a0 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  border-color: #1848a0 !important;
}
.wpforms-container .wpforms-submit:hover,
.wpforms-container .wpforms-submit:focus-visible {
  background-color: #1f63c4 !important;
  border-color: #1f63c4 !important;
  color: #ffffff !important;
}

/* Fokusring auf Formularfeldern 2026-08-05 (Agent-D-QA, Befund 2): auf der Stellen-
 * detailseite (single-karriere.html) bekommen Checkboxen und der Absenden-Button beim
 * Tastaturfokus keinen sichtbaren Rahmen (outline-style bleibt "none"), auf /karriere/
 * mit demselben Formular 117 aber schon — derselbe Kontext-Unterschied wie beim
 * Submit-Button oben (WPForms erkennt sein eigenes Markup nicht über post_content, wenn
 * das Formular aus einem FSE-Template statt aus dem post_content der Seite stammt, und
 * uebernimmt dann seine eigene Fokus-Behandlung nicht). Betrifft die DSGVO-Pflicht-
 * Checkboxen und den Absenden-Button auf dem Bewerbungspfad (WCAG 2.4.7) — deshalb hier
 * explizit statt der fragilen WPForms-eigenen Vererbung. */
.wpforms-container input:focus-visible,
.wpforms-container select:focus-visible,
.wpforms-container textarea:focus-visible,
.wpforms-container button:focus-visible,
.wpforms-container .wpforms-field-checkbox input[type="checkbox"]:focus-visible,
.wpforms-container .wpforms-field-radio input[type="radio"]:focus-visible {
  outline: 3px solid rgba(24, 72, 160, 0.85) !important;
  outline-offset: 3px !important;
}

/* M3) Reveal/Hover ausschliesslich opacity+transform; kein transition:all, kein filter,
 * kein dauerhaftes will-change auf vielen Elementen. */

/* ===========================================================================
 * FIX-LAUF 1 VOR GO-LIVE — 2026-09-20 (Agent B-frontend)
 *
 * Rein additiver Block zu den Prelaunch-Findings vom 19.09.2026. Oberhalb
 * dieser Zeile wurde nichts geaendert oder umformatiert; bei einem Plugin-
 * Update laesst sich dieser Abschnitt als Ganzes wieder anhaengen.
 * Enthalten: PL-009, PL-010, PL-016, PL-021, PL-049.
 * ======================================================================== */

/* ---------------------------------------------------------------------------
 * PL-009 (P1) — Standort-Detailseiten: Seitenrand fuer lose Bloecke
 *
 * Ursache: Im Template single-aioseo-location stehen mehrere Bloecke ohne
 * Section-Wrapper direkt in .entry-content.ibmh-page-wide. Die Theme-Regel
 * `.ibmh-page-wide > h1/p/ul/ol/h2/h3/.wp-block-details { max-width: 52rem }`
 * begrenzt nur die Lesebreite und setzt keinen Seitenrand. Unterhalb von
 * 52rem Viewportbreite ist der Block damit exakt so breit wie der Viewport,
 * der Text beginnt bei x=0 (gemessen 2026-09-19 bei 360/390/430/768).
 * Die Kartenbloecke (.wp-block-group.ibmh-panel, .ibmh-c-standort) haengen am
 * 1240px-Deckel des Block-Layouts und sind mobil ebenfalls randbuendig.
 *
 * Gescopt auf body.single-aioseo-location und auf Viewports unterhalb der
 * Lesebreite — ab 833px bleibt das Layout unveraendert (1440 war laut Audit
 * in Ordnung). 16px ist derselbe Gutter, den die Nachbar-Sections bereits
 * benutzen (gemessen bei 390px: .ibmh-band > h2/p haben margin-inline 16px).
 *
 * Zwei Mechanismen, bewusst unterschiedlich:
 *   - Textbloecke bekommen padding-inline. Sie sind `width: auto`, das Polster
 *     erzeugt also keinen Ueberlauf.
 *   - Kartenbloecke bekommen stattdessen eine um 2x16px verringerte Breite.
 *     Ihr eigenes Innenpolster (22.4px) bleibt damit erhalten, und die vom
 *     Block-Layout gesetzten `margin-left/right: auto !important` zentrieren
 *     die Karte anschliessend mit 16px Luft auf beiden Seiten — ohne dass hier
 *     ein !important noetig waere.
 * ------------------------------------------------------------------------- */
@media (max-width: 52rem) {
  .single-aioseo-location .entry-content.ibmh-page-wide > h2,
  .single-aioseo-location .entry-content.ibmh-page-wide > h3,
  .single-aioseo-location .entry-content.ibmh-page-wide > p,
  .single-aioseo-location .entry-content.ibmh-page-wide > ul,
  .single-aioseo-location .entry-content.ibmh-page-wide > ol,
  .single-aioseo-location .entry-content.ibmh-page-wide > .wp-block-details,
  .single-aioseo-location .ibmh-map > .ibmh-map__link {
    padding-inline: 16px;
  }
  .single-aioseo-location .entry-content.ibmh-page-wide > .wp-block-group:not(.alignfull),
  .single-aioseo-location .entry-content.ibmh-page-wide > .ibmh-c-standort {
    box-sizing: border-box;
    width: calc(100% - 32px);
  }
}

/* ---------------------------------------------------------------------------
 * PL-010 (P1) — /standorte/: Standortkarten mobil einspaltig und mit Gutter
 *
 * Ursache: Der Seiteninhalt setzt am Grid einen Inline-Style
 * `style="grid-template-columns:repeat(2,1fr)"`. Inline-Styles schlagen die
 * Media-Queries weiter oben in dieser Datei (700px -> 2 Spalten, 430px -> 1
 * Spalte), deshalb blieb das Grid bis 360px zweispaltig (Kartenbreite 171px).
 * Zusaetzlich hat der umgebende `wp-block-group`-Container mobil keinen
 * Seitenrand, das Grid lag also bei L0/R0.
 *
 * Der Inline-Style gehoert zum Seiteninhalt (DB) und damit nicht in diese
 * Datei; das !important ist hier die einzige CSS-seitige Moeglichkeit und ist
 * auf eine Media-Query und eine Komponentenklasse begrenzt. .ibmh-c-grid /
 * .ibmh-c-card kommen im gesamten Frontend ausschliesslich auf /standorte/
 * vor (geprueft ueber alle 59 Sitemap-URLs am 2026-09-20), die Regel kann
 * also keine andere Seite verschieben.
 * ------------------------------------------------------------------------- */
@media (max-width: 782px) {
  .ibmh-c-grid {
    box-sizing: border-box;
    padding-inline: 16px;
  }
}
@media (max-width: 600px) {
  .ibmh-c-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Begleitend zu PL-010, gleiche Ursache wie PL-021: `.ibmh-c-card` hat
 * `min-height: 100%` und zusaetzlich `padding: 1.15rem 1.15rem 1rem`, erbt aber
 * kein border-box (gemessen: boxSizing "content-box"). Die Karte war dadurch
 * auf jeder Breite 36px hoeher als ihre Rasterzeile. Zweispaltig fiel das nicht
 * auf, weil beide Karten in derselben Zeile lagen und der Ueberstand unter dem
 * Grid ins Leere lief. Einspaltig ueberlappte Karte 1 die Karte 2 um 19px
 * (36px Ueberstand minus 17.6px Zeilenabstand) — deshalb gehoert die Zeile hier
 * dazu und nicht in einen spaeteren Lauf. */
.entry-content a.ibmh-c-card,
.wp-block-post-content a.ibmh-c-card {
  box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
 * PL-016 (P1) — Galerie: Bilder mit Hoehe 0 (Projekt Multiplexkino)
 *
 * URSACHE (gemessen 2026-09-20 mit Chrome/Playwright bei 1440 und 390):
 * Der Block `wp-block-gallery has-nested-images is-cropped` bringt aus dem
 * Core-Stylesheet die Regel
 *     figure.wp-block-image img { flex: 1 0 0%; height: 100%; object-fit: cover; }
 * mit. Die Bilder sind damit Flex-Items ihrer Figur (column) mit Basis 0; ihre
 * Hoehe entsteht normalerweise erst ueber die automatische Mindestgroesse aus
 * dem Seitenverhaeltnis.
 * Seit WordPress 6.7 haengt WordPress an lazy geladene Bilder `sizes="auto"`.
 * Damit haengt die intrinsische Groesse des Bildes am Layout: die dichte-
 * korrigierte Eigengroesse ist exakt die Anzeigebreite (gemessen
 * naturalWidth = 377 = Anzeigebreite, currentSrc = ...-768x576.webp). Chrome
 * loest diese Abhaengigkeit auf, indem es fuer die inhaltsbasierte Mindest-
 * groesse 0 annimmt — `flex-basis: 0` bleibt stehen, `height: 100%` bezieht
 * sich auf eine unbestimmte Figurhoehe, das Bild wird 0px hoch. Nur die
 * Bildunterschrift bleibt sichtbar.
 * Beleg fuer die Ursache: In derselben Galerie sind genau die beiden Bilder
 * korrekt, die WordPress NICHT lazy ausliefert (wp-image-449/450, ohne
 * `sizes="auto"`, naturalWidth 1400, Hoehe 282.98px). Alle sieben lazy Bilder
 * mit `sizes="auto"` messen 0px. Es liegt also weder an der Datei noch am
 * Lazy-Load selbst, sondern an der Kombination `sizes="auto"` + `flex-basis:0`
 * + `height:100%` aus dem is-cropped-Gallery-CSS.
 *
 * FIX: Die Bildhoehe nicht mehr aus der Flex-Verteilung ableiten, sondern aus
 * der eigenen Breite und dem Seitenverhaeltnis. Damit ist sie unabhaengig von
 * `sizes="auto"` immer definiert. Gescopt auf zugeschnittene Galerieblocks —
 * im gesamten Frontend existiert aktuell genau eine Galerie (geprueft ueber
 * alle 59 Sitemap-URLs am 2026-09-20), Einzelbilder bleiben unberuehrt.
 *
 * Alternative fuer den Lead (PHP, nicht meine Datei): `sizes="auto"` global
 * abschalten mit
 *     add_filter( 'wp_img_tag_add_auto_sizes', '__return_false' );
 * Das beseitigt die Ursache an der Wurzel, braucht aber eine PHP-Stelle.
 *
 * Der Selektor uebernimmt bewusst das `:not(#individual-image)` aus dem Core-
 * Stylesheet: Core zaehlt darueber eine ID in die Spezifitaet (1,3,2). Ohne
 * dieses Anhaengsel bleibt jede eigene Regel wirkungslos (gemessen: Hoehe blieb
 * 0px). Kein !important noetig, die zusaetzliche Klasse reicht dann aus.
 * ------------------------------------------------------------------------- */
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img,
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a {
  flex: 0 0 auto;
  height: auto;
}

/* ---------------------------------------------------------------------------
 * PL-021 (P2) — "Ausgewaehlte Projekte": Karte ueberlappt die naechste Karte
 *
 * Ursache: `.ibmh-projekt-weitere a` hat `height: 100%` und zusaetzlich
 * `padding: 0.9rem 1rem 1rem`. Das Element erbt kein border-box (gemessen:
 * boxSizing "content-box"), Polster oben und unten addieren sich deshalb auf
 * die 100% Hoehe des <li>. Gemessen 2026-09-19/20: der Link ist auf allen
 * Breiten exakt 32px (0.9rem + 1rem) hoeher als sein <li>, dadurch ragt jede
 * Karte 13-15px in die folgende Karte bzw. in "Alle Projekte ansehen".
 * ------------------------------------------------------------------------- */
.ibmh-projekt-weitere a {
  box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
 * PL-049 (P2) — Fokus unter dem fixierten Header (WCAG 2.4.11)
 *
 * Ursache: Der Header ist `position: fixed` (Inline-CSS der Header-Template-
 * Part). Fuer Ankersprünge gleicht die Template-Part das mit
 * `[id] { scroll-margin-top: calc(var(--ibmh-header-clear) + 1rem) }` aus,
 * fuer den Tastaturfokus gibt es nichts Vergleichbares: `html` hatte
 * `scroll-padding-top: auto`. Beim Rueckwaerts-Tabben scrollt der Browser das
 * fokussierte Element an die Oberkante, wo es vollstaendig unter dem Header
 * liegt (gemessen 2026-09-20 mit der alten CSS: /leistungen/ 4 von 63 Stopps,
 * /faq/ 1 von 42, /kontakt/ 3 von 46, /team/ 2 von 56, /bauakustik/ 1 von 42
 * bzw. mobil 2 von 42).
 *
 * Fix: scroll-padding-top auf dem Scroll-Container. Das wirkt auf JEDES
 * Heranscrollen, also auch auf den Fokus, und haelt den Header-Streifen frei.
 *
 * Die zweite Zeile ist zwingend und kein Aufraeumen: scroll-padding des
 * Containers und scroll-margin des Ziels ADDIEREN sich. Ohne sie waeren alle
 * Ankersprünge (die Ziele haben alle eine id) doppelt versetzt gelandet. Die
 * Spezifitaet (0,1,1) liegt bewusst genau eine Stufe ueber der Theme-Regel
 * `[id]` (0,1,0), die aus einem <style> im Body kommt und sonst gewinnt.
 *
 * Verifiziert: 52 Ankersprünge (/leistungen/, Startseite, /bauakustik/,
 * /karriere/, /team/, /foerdermittel/, je 390 und 1440) landen mit dieser
 * Regel an derselben Stelle wie vorher — 51 auf den Pixel, einer auf der
 * scrollgesteuerten Startseite 12px hoeher, weiterhin klar unter dem Header.
 * Verdeckte Fokusstopps danach: /leistungen/ 0, /faq/ 0, /kontakt/ 0,
 * /bauakustik/ 0, /team/ 0.
 *
 * Headerhoehe gemessen 2026-09-20: 66.4px bis 1199px, 109.2px ab 1200px.
 * Der Token --ibmh-header-clear (4rem bzw. 6.5rem ab 1200px) plus 1rem ergibt
 * 80px bzw. 120px und liegt damit in beiden Faellen ueber der Headerhoehe.
 * Der Wert folgt automatisch dem Token, wenn das Theme den Header aendert.
 *
 * Hinweis an den Lead: Diese Datei wird auf 57 der 59 Sitemap-Seiten geladen.
 * /sitemap/ und /barrierefreiheit/ binden sie nicht ein und bleiben deshalb
 * ohne diesen Versatz.
 * ------------------------------------------------------------------------- */
/* VERLEGT am 21.09.2026 (Lead, Fix-Lauf 2): Die beiden Regeln stehen jetzt in
 * assets/css/ibmh-ai-disclosure.css, weil diese Datei als einzige bedingungslos
 * auf allen Seiten geladen wird. Hier griffen sie auf sechs HTML-Seiten nicht
 * (/barrierefreiheit/, /datenschutz/, /impressum/, /kontakt/bestaetigung-anfrage/,
 * /sitemap/ und das 404-Template), die ibmh-components.css nicht einbinden. */
