/* wprbn Theme – main.css
   CSS Custom Properties kommen aus style.css ([data-theme="light/dark"] + :root).
   Hier: ausschließlich Layout und Komponenten. */

/* base kommt aus style.css; typography ist die höchste benannte Schicht */
@layer base, layout, header, nav, hero, gallery, posts, about, footer, page, admin, utils, typography;

/* ── Layout ──────────────────────────────────────────────────────────────── */

@layer layout {
  .site-main { min-height: 60vh; }


  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-md);
  }

  .container--narrow { max-width: var(--container-narrow); }

  .section {
    padding-block: var(--space-2xl);

    & .section__header {
      margin-bottom: var(--space-lg);
    }

    & .section__footer {
      margin-top: var(--space-lg);
      text-align: center;
    }
  }
}

/* ── Header ──────────────────────────────────────────────────────────────── */

@layer header {

  /* ── Basis ──────────────────────────────────────────────────────────────── */

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height, 70px);
    background: var(--bg-primary);
    border-bottom: 0.5px solid var(--border);
    transition:
      height         .3s ease,
      background     var(--transition),
      border-color   var(--transition),
      box-shadow     var(--transition),
      transform      var(--transition);

    &.is-hidden { transform: translateY(-100%); }
  }

  .header-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-md);
    gap: var(--space-sm);
    transition: height .3s ease;

    /* Spalten-Zuordnung: Branding links, Nav mittig, Actions rechts */
    & > .site-branding   { grid-column: 1; justify-self: start; }
    & > .wp-block-navigation { grid-column: 2; justify-self: center; }
    & > .header-actions  { grid-column: 3; justify-self: end; }
  }

  /* Vollbreite: kein Max-Width-Limit */
  .page-tpl-full .header-inner {
    max-width: 100%;
    padding-inline: var(--space-lg);
  }

  /* ── Branding & Logos ───────────────────────────────────────────────────── */

  .site-branding {
    flex-shrink: 0;
    gap: 2px !important;
  }

  .site-logo-link {
    display: block;
    line-height: 0;
  }

  .site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: height .3s ease, opacity .2s ease;
  }

  /* Sticky-Logo: nur sichtbar wenn is-shrunk / is-sticky */
  .site-logo--sticky { display: none; }
  .site-logo--mobile { display: none; }

  @media (max-width: 767px) {
    .site-logo--default { display: none; }
    .site-logo--mobile  { display: block; }

    /* Kein Mobile-Logo vorhanden → Default zeigen */
    .site-logo-link:not(:has(.site-logo--mobile)) .site-logo--default { display: block; }
  }

  .site-title-link { text-decoration: none; }

  .site-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-primary);
  }

  /* ── Header-Aktionen ────────────────────────────────────────────────────── */

  .header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
  }

  /* Mode Toggle */
  .wprbn-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0.5px solid var(--border-strong);
    color: var(--text-primary);
    transition: background var(--transition), border-color var(--transition);

    &:hover { background: var(--bg-secondary); }

    & .icon-sun,
    & .icon-moon { display: block; transition: opacity var(--transition); }
  }

  [data-theme="light"] .wprbn-mode-toggle .icon-sun  { display: none; }
  [data-theme="dark"]  .wprbn-mode-toggle .icon-moon { display: none; }

  /* Hamburger */
  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;

    & span {
      display: block;
      height: 1px;
      width: 100%;
      background: var(--text-primary);
      transform-origin: center;
      transition: transform var(--transition), opacity var(--transition);
    }

    &[aria-expanded="true"] {
      & span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
      & span:nth-child(2) { opacity: 0; }
      & span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    }
  }

  /* ── Typ: sticky (Standard) ─────────────────────────────────────────────── */
  /* position: sticky bereits in .site-header */

  /* ── Typ: shrink ────────────────────────────────────────────────────────── */

  .site-header--shrink {
    &.is-shrunk {
      height: var(--header-height-shrunk, 50px);

      & .site-logo { height: 28px; }

      & .site-logo--default { display: none; }
      & .site-logo--sticky  { display: block; }
    }
  }

  /* ── Typ: minimal ───────────────────────────────────────────────────────── */

  .site-header--minimal {
    & .nav-toggle { display: flex; }
  }

  /* ── Typ: transparent ───────────────────────────────────────────────────── */

  .site-header--transparent {
    position: absolute;
    width: 100%;
    background: transparent;
    border-bottom-color: transparent;
    color: #fff;

    & .site-title,
    & .wprbn-mode-toggle { color: #fff; }

    & .wprbn-mode-toggle { border-color: rgba(255,255,255,.35); }

    & .nav-toggle span { background: #fff; }

    &.is-scrolled {
      position: fixed;
      background: var(--bg-primary);
      border-bottom-color: var(--border);

      & .site-title,
      & .wprbn-mode-toggle { color: var(--text-primary); }

      & .wprbn-mode-toggle  { border-color: var(--border-strong); }
      & .nav-toggle span    { background: var(--text-primary); }
    }
  }

  /* ── Typ: fullscreen ────────────────────────────────────────────────────── */

  .site-header--fullscreen {
    & .nav-toggle { display: flex; }
  }

  /* ── Hero-CTA-Button (im Hero-Bereich .wprbn-hero) ──────────────────────── */

  .hero-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    padding: 0.9rem var(--hero-btn-pad-lr, 2.25rem);
    background: var(--hero-btn-bg, #fff);
    color: var(--hero-btn-color, var(--bg-primary, #0d1117));
    font-family: var(--hero-btn-family, inherit);
    font-size: var(--hero-btn-size, 0.75rem);
    font-weight: var(--hero-btn-weight, 600);
    letter-spacing: var(--hero-btn-ls, 0.12em);
    text-transform: var(--hero-btn-tt, uppercase);
    text-decoration: none;
    border-width: var(--hero-btn-bw, 1.5px);
    border-style: var(--hero-btn-border-style, solid);
    border-color: var(--hero-btn-border, #fff);
    border-radius: var(--hero-btn-br, 0);
    transition: background .2s ease, color .2s ease, border-color .2s ease;

    &:hover {
      background: var(--hero-btn-hover-bg, transparent);
      color: var(--hero-btn-hover, #fff);
      border-color: var(--hero-btn-hover-border, #fff);
    }
  }

  /* ── Typ: transparent_sticky ────────────────────────────────────────────── */

  .site-header--transparent_sticky {
    position: absolute;
    width: 100%;
    background: transparent;
    border-bottom-color: transparent;
    color: #fff;

    & .site-title,
    & .wprbn-mode-toggle { color: #fff; }

    & .wprbn-mode-toggle { border-color: rgba(255,255,255,.35); }

    & .nav-toggle span { background: #fff; }

    &.is-sticky {
      position: fixed;
      background: var(--bg-primary);
      border-bottom-color: var(--border);

      & .site-title,
      & .wprbn-mode-toggle { color: var(--text-primary); }

      & .wprbn-mode-toggle  { border-color: var(--border-strong); }
      & .nav-toggle span    { background: var(--text-primary); }
    }

    &.is-shrunk {
      height: var(--header-height-shrunk, 50px);

      & .site-logo { height: 28px; }
      & .site-logo--default { display: none; }
      & .site-logo--sticky  { display: block; }
    }
  }

  /* ── Mobile ─────────────────────────────────────────────────────────────── */

  @media (max-width: 767px) {
    .nav-toggle { display: flex; }

    .header-inner {
      padding-inline: var(--space-sm);
      gap: var(--space-xs);
    }

    .site-branding {
      min-width: 0;
    }

    .site-title {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}


/* ── Hero: Split 50/50 ───────────────────────────────────────────────────── */

@layer hero {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100svh - var(--header-height));
  }

  .hero__image {
    position: relative;
    overflow: hidden;

    & img,
    & .hero__img-placeholder {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    & .hero__img-placeholder { background: var(--bg-secondary); }
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--bg-primary);

    & .hero__title {
      font-size: var(--text-hero);
      font-weight: 400;
      margin-block: var(--space-xs) var(--space-md);
    }

    & .hero__tagline {
      font-size: var(--text-lg);
      color: var(--text-muted);
      max-width: 36ch;
      margin-bottom: var(--space-lg);
    }
  }

  @media (max-width: 767px) {
    .hero {
      grid-template-columns: 1fr;
      min-height: auto;
    }

    .hero__image {
      aspect-ratio: 4 / 3;
      position: relative;
    }

    .hero__content { padding: var(--space-lg) var(--space-md); }
  }
}

/* ── Galerie ─────────────────────────────────────────────────────────────── */

@layer gallery {
  .gallery-grid {
    display: grid;
    gap: var(--gallery-gap);
    grid-template-columns: repeat(3, 1fr);

    &[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
    &[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

    @media (max-width: 767px) {
      grid-template-columns: repeat(2, 1fr) !important;
    }

    @media (max-width: 480px) {
      grid-template-columns: 1fr !important;
    }
  }

  .wprbn-gallery {
    display: grid;
    gap: var(--gallery-gap);
    grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);

    @media (max-width: 767px) {
      --gallery-cols: 2;
    }
  }

  .wprbn-gallery-item {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    cursor: pointer;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.45s ease;
    }

    &:hover img { transform: scale(1.04); }
  }

  .wprbn-gallery-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: flex-end;
    padding: var(--space-sm);
    transition: background 0.3s ease;

    .wprbn-gallery-item:hover & { background: rgba(0 0 0 / 0.35); }
  }

  .wprbn-gallery-label {
    color: #fff;
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;

    .wprbn-gallery-item:hover & {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .gallery-grid__placeholder {
    grid-column: 1 / -1;
    padding: var(--space-xl);
    text-align: center;
    border: 1px dashed var(--border);
    color: var(--text-subtle);
    font-size: var(--text-sm);
  }
}

/* ── Beitrags-Grid ───────────────────────────────────────────────────────── */

@layer posts {
  .posts-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(3, 1fr);

    @media (max-width: 900px) { grid-template-columns: repeat(2, 1fr); }
    @media (max-width: 580px) { grid-template-columns: 1fr; }
  }

  .post-card {
    display: flex;
    flex-direction: column;
  }

  .post-card__thumb {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    &:hover img { transform: scale(1.04); }
  }

  .post-card__body {
    padding-top: var(--space-sm);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .post-card__title {
    font-size: var(--text-lg);
    margin: 0;

    & a { transition: color var(--transition); }
    & a:hover { color: var(--text-muted); }
  }

  .post-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Posts-Navigation */
  .posts-navigation, .post-navigation {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 0.5px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);

    & a { color: var(--text-muted); transition: color var(--transition); }
    & a:hover { color: var(--text-primary); }
  }

  /* Archive-Header */
  .archive-header {
    padding-block: var(--space-xl);
    border-bottom: 0.5px solid var(--border);
    margin-bottom: var(--space-lg);
  }
}

/* ── About-Streifen ──────────────────────────────────────────────────────── */

@layer about {
  .about-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    container-type: inline-size;

    @media (max-width: 767px) {
      grid-template-columns: 1fr;
    }
  }

  .about-strip__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);

    & p { color: var(--text-muted); max-width: 48ch; }
  }

  .about-strip__image {
    & img {
      width: 100%;
      aspect-ratio: 4 / 5;
      object-fit: cover;
    }

    @media (max-width: 767px) { order: -1; }
  }

  /* About-Portrait (template-about.php) */
  .about-portrait {
    margin-block: var(--space-lg);

    & img {
      width: 100%;
      max-height: 540px;
      object-fit: cover;
    }
  }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

@layer footer {
  .site-footer {
    border-top: 0.5px solid var(--border);
    padding-block: var(--space-lg);
    background: var(--bg-primary);
  }

  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-md);
  }

  .page-tpl-full .footer-inner {
    max-width: 100%;
  }

  .footer-social {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
  }

  .social-link {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);

    &:hover { color: var(--text-primary); }
  }

  .footer-copy {
    font-size: var(--text-xs);
    color: var(--text-subtle);
  }
}

/* Fusszeile: Innenabstand + Zentrierung außerhalb @layer wiederholen. Der
   ungelayerte Reset `*,::before,::after{padding:0}` (style.css) schlägt die
   gelayerte .site-footer/.footer-inner-Regel oben immer (gleiche Begründung
   wie beim Hero→Inhalt-Abstand weiter unten: ungelayerte Regeln gewinnen laut
   Spec grundsätzlich gegen jede @layer-Regel, unabhängig von Spezifität).
   justify-content: WordPress schreibt über die Block-Attribute zusätzlich die
   eigene, ebenfalls ungelayerte Utility-Klasse .is-content-justification-*
   ins Markup – auch die lässt sich nur ungelayert zuverlässig übersteuern. */
.site-footer {
  padding-block: var(--space-lg) !important;
}
.footer-inner {
  padding-inline: var(--space-md) !important;
  justify-content: center !important;
}

/* ── Seiten / Single Posts ───────────────────────────────────────────────── */

@layer page {
  .page-content,
  .single-post {
    padding-top: var(--page-padding-top, var(--space-xl));
    padding-bottom: var(--page-padding-bottom, var(--space-xl));
  }

  .page-tpl-contained .page-content {
    max-width: var(--content-size, 1000px);
    margin-inline: auto;
  }

  .page-header,
  .entry-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 0.5px solid var(--border);
  }

  .entry-thumbnail {
    margin-bottom: var(--space-lg);

    & img {
      width: 100%;
      max-height: 560px;
      object-fit: cover;
    }
  }

  .entry-content {
    font-size: var(--text-lg);
    line-height: 1.8;

    & h2,
    & h3 { margin-block: var(--space-md) var(--space-sm); }

    & ul,
    & ol {
      list-style: revert;
      margin-left: var(--space-md);
      margin-bottom: 1em;
    }

    & blockquote {
      border-left: 3px solid var(--border-strong);
      padding-left: var(--space-md);
      color: var(--text-muted);
      font-style: italic;
      margin-block: var(--space-md);
    }

    & img {
      max-width: 100%;
      margin-block: var(--space-md);
    }

    & a {
      border-bottom: 0.5px solid var(--border-strong);
      transition: color var(--transition), border-color var(--transition);

      &:hover { color: var(--text-muted); border-bottom-color: transparent; }
    }
  }

  .entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-lg);

    & a {
      font-size: var(--text-xs);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 4px 12px;
      border: 0.5px solid var(--border-strong);
      color: var(--text-muted);
      transition: background var(--transition), color var(--transition);

      &:hover {
        background: var(--cta-bg);
        color: var(--cta-text);
      }
    }
  }

  .error-404 {
    padding-block: var(--space-2xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);

    & .error-404__code {
      font-size: clamp(4rem, 15vw, 8rem);
      font-family: var(--font-heading);
      color: var(--text-subtle);
      line-height: 1;
    }
  }
}

/* ── Buttons & Links ─────────────────────────────────────────────────────── */

@layer utils {
  .btn {
    display: inline-block;
    padding: 11px 28px;
    background: var(--cta-bg);
    color: var(--cta-text);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity var(--transition);
    border-radius: var(--radius);
    border: none;
    cursor: pointer;

    &:hover { opacity: 0.8; }
  }

  .link-more {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    border-bottom: 0.5px solid var(--border-strong);
    padding-bottom: 1px;
    transition: color var(--transition), border-color var(--transition);

    &:hover { color: var(--text-muted); border-color: transparent; }
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border-width: 0;
  }

  .text-muted { color: var(--text-muted); }
  .text-subtle { color: var(--text-subtle); }
}

/* ══════════════════════════════════════════════════════════════════════════
   @layer typography
   Wendet alle Typografie-CSS-Properties aus dem Dashboard an.
   Hat Vorrang vor allen anderen @layer-Blöcken.
   Variablen kommen aus wp_head (functions.php) → :root { --font-h1, ... }
   ══════════════════════════════════════════════════════════════════════════ */

@layer typography {

  /* ── Body & Paragraph-Blöcke ──────────────────────────────────────────── */
  body,
  .wp-block-paragraph,
  .wp-block-post-content > p,
  .wp-block-list,
  .wp-block-list li,
  .entry-content p {
    font-family:    var(--font-body);
    font-weight:    var(--weight-body, 400);
    font-style:     var(--style-body, normal);
    font-size:      var(--size-body);
    line-height:    var(--lh-body, 1.65);
    letter-spacing: var(--ls-body, 0);
    text-transform: var(--tt-body, none);
    color:          var(--color-body, var(--text-primary));
  }

  /* ── Navigation ────────────────────────────────────────────────────────── */
  .wp-block-navigation a,
  .wp-block-navigation-item__label {
    font-family:    var(--font-nav);
    font-weight:    var(--weight-nav, 400);
    font-style:     var(--style-nav, normal);
    font-size:      var(--size-nav);
    line-height:    var(--lh-nav, 1);
    letter-spacing: var(--ls-nav, 0.04em);
    text-transform: var(--tt-nav, none);
    color:          var(--color-nav, var(--text-primary));
  }

  /* ── Überschriften ─────────────────────────────────────────────────────── */
  h1,
  .wp-block-heading:is(h1) {
    font-family:    var(--font-h1);
    font-weight:    var(--weight-h1, 400);
    font-style:     var(--style-h1, normal);
    font-size:      var(--size-h1);
    line-height:    var(--lh-h1, 1.1);
    letter-spacing: var(--ls-h1, 0);
    text-transform: var(--tt-h1, none);
    color:          var(--color-h1, var(--text-primary));
  }

  h2,
  .wp-block-heading:is(h2) {
    font-family:    var(--font-h2);
    font-weight:    var(--weight-h2, 400);
    font-style:     var(--style-h2, normal);
    font-size:      var(--size-h2);
    line-height:    var(--lh-h2, 1.2);
    letter-spacing: var(--ls-h2, 0);
    text-transform: var(--tt-h2, none);
    color:          var(--color-h2, var(--text-primary));
  }

  h3,
  .wp-block-heading:is(h3) {
    font-family:    var(--font-h3);
    font-weight:    var(--weight-h3, 400);
    font-style:     var(--style-h3, normal);
    font-size:      var(--size-h3);
    line-height:    var(--lh-h3, 1.3);
    letter-spacing: var(--ls-h3, 0);
    text-transform: var(--tt-h3, none);
    color:          var(--color-h3, var(--text-primary));
  }

  h4,
  .wp-block-heading:is(h4) {
    font-family:    var(--font-h4);
    font-weight:    var(--weight-h4, 500);
    font-style:     var(--style-h4, normal);
    font-size:      var(--size-h4);
    line-height:    var(--lh-h4, 1.4);
    letter-spacing: var(--ls-h4, 0);
    text-transform: var(--tt-h4, none);
    color:          var(--color-h4, var(--text-primary));
  }

  h5,
  .wp-block-heading:is(h5) {
    font-family:    var(--font-h5);
    font-weight:    var(--weight-h5, 600);
    font-style:     var(--style-h5, normal);
    font-size:      var(--size-h5);
    line-height:    var(--lh-h5, 1.4);
    letter-spacing: var(--ls-h5, 0.01em);
    text-transform: var(--tt-h5, none);
    color:          var(--color-h5, var(--text-primary));
  }

  h6,
  .wp-block-heading:is(h6) {
    font-family:    var(--font-h6);
    font-weight:    var(--weight-h6, 600);
    font-style:     var(--style-h6, normal);
    font-size:      var(--size-h6);
    line-height:    var(--lh-h6, 1.4);
    letter-spacing: var(--ls-h6, 0.02em);
    text-transform: var(--tt-h6, none);
    color:          var(--color-h6, var(--text-primary));
  }

  /* ── Eyebrow ───────────────────────────────────────────────────────────── */
  .eyebrow,
  .wp-block-paragraph.is-style-eyebrow {
    font-family:    var(--font-eyebrow);
    font-weight:    var(--weight-eyebrow, 600);
    font-style:     var(--style-eyebrow, normal);
    font-size:      var(--size-eyebrow);
    line-height:    var(--lh-eyebrow, 1);
    letter-spacing: var(--ls-eyebrow, 0.14em);
    text-transform: var(--tt-eyebrow, uppercase);
    color:          var(--color-eyebrow, var(--text-subtle));
  }

  /* ── Blockquote ────────────────────────────────────────────────────────── */
  blockquote,
  .wp-block-quote,
  .wp-block-quote blockquote,
  .wp-block-pullquote,
  .wp-block-pullquote blockquote {
    font-family:    var(--font-blockquote);
    font-weight:    var(--weight-blockquote, 400);
    font-style:     var(--style-blockquote, italic);
    font-size:      var(--size-blockquote);
    line-height:    var(--lh-blockquote, 1.6);
    letter-spacing: var(--ls-blockquote, 0);
    text-transform: var(--tt-blockquote, none);
    color:          var(--color-blockquote, var(--text-muted));
  }

  /* ── Caption ───────────────────────────────────────────────────────────── */
  figcaption,
  .caption,
  .wp-caption-text,
  .wp-element-caption,
  .wp-block-image figcaption,
  .wp-block-gallery figcaption,
  .wp-block-video figcaption,
  .wp-block-audio figcaption,
  .wp-block-table figcaption,
  .wp-block-embed figcaption {
    font-family:    var(--font-caption);
    font-weight:    var(--weight-caption, 400);
    font-style:     var(--style-caption, normal);
    font-size:      var(--size-caption);
    line-height:    var(--lh-caption, 1.5);
    letter-spacing: var(--ls-caption, 0.05em);
    text-transform: var(--tt-caption, none);
    color:          var(--color-caption, var(--text-subtle));
  }

  /* ── Page Title (custom Hero/Template-Klassen, KEINE WP-Block-Heading-Elemente) */
  .page-title,
  .hero__title {
    font-family:    var(--font-page_title);
    font-weight:    var(--weight-page_title, 400);
    font-style:     var(--style-page_title, normal);
    font-size:      var(--size-page_title);
    line-height:    var(--lh-page_title, 1.1);
    letter-spacing: var(--ls-page_title, 0);
    text-transform: var(--tt-page_title, none);
    color:          var(--color-page_title, var(--text-primary));
  }

  /* ── Page Subtitle ─────────────────────────────────────────────────────── */
  .page-subtitle,
  .entry-subtitle,
  .hero__tagline,
  .wp-block-post-excerpt__excerpt {
    font-family:    var(--font-page_subtitle);
    font-weight:    var(--weight-page_subtitle, 400);
    font-style:     var(--style-page_subtitle, normal);
    font-size:      var(--size-page_subtitle);
    line-height:    var(--lh-page_subtitle, 1.5);
    letter-spacing: var(--ls-page_subtitle, 0);
    text-transform: var(--tt-page_subtitle, none);
    color:          var(--color-page_subtitle, var(--text-muted));
  }

  /* ── Page Text Above Title ─────────────────────────────────────────────── */
  .page-above,
  .page-eyebrow {
    font-family:    var(--font-page_above);
    font-weight:    var(--weight-page_above, 600);
    font-style:     var(--style-page_above, normal);
    font-size:      var(--size-page_above);
    line-height:    var(--lh-page_above, 1);
    letter-spacing: var(--ls-page_above, 0.14em);
    text-transform: var(--tt-page_above, uppercase);
    color:          var(--color-page_above, var(--text-subtle));
    display:        block;
    margin-bottom:  var(--space-xs);
  }

  /* ── Breadcrumbs ───────────────────────────────────────────────────────── */
  .site-breadcrumbs,
  .wprbn-breadcrumbs,
  nav.breadcrumbs,
  .wp-block-breadcrumbs {
    font-family:    var(--font-breadcrumbs);
    font-weight:    var(--weight-breadcrumbs, 400);
    font-style:     var(--style-breadcrumbs, normal);
    font-size:      var(--size-breadcrumbs);
    line-height:    var(--lh-breadcrumbs, 1.4);
    letter-spacing: var(--ls-breadcrumbs, 0);
    text-transform: var(--tt-breadcrumbs, none);
    color:          var(--color-breadcrumbs, var(--text-subtle));

    & a { color: var(--color-breadcrumbs, var(--text-muted)); }
    & a:hover { color: var(--text-primary); }
    & .sep { color: var(--border-strong); margin-inline: 0.4em; }
  }

  /* ── Footer-Text ───────────────────────────────────────────────────────── */
  .footer-copy,
  .social-link,
  .site-footer,
  .wp-block-site-tagline,
  .wp-block-template-part footer {
    font-family:    var(--font-footer_text);
    font-weight:    var(--weight-footer_text, 400);
    font-style:     var(--style-footer_text, normal);
    font-size:      var(--size-footer_text);
    line-height:    var(--lh-footer_text, 1.5);
    letter-spacing: var(--ls-footer_text, 0);
    text-transform: var(--tt-footer_text, none);
    color:          var(--color-footer_text, var(--text-subtle));
  }
}

/* ── Mobile Layout – außerhalb aller Layer, höchste Priorität ───────────── */
@media (max-width: 767px) {
  body {
    padding-inline: 1rem !important;
    overflow-x: clip;
    box-sizing: border-box;
  }

  /* Header bricht auf volle Breite durch */
  .site-header {
    margin-inline: -1rem !important;
    width: calc(100% + 2rem) !important;
    box-sizing: border-box;
  }
}

/* ── Header-Typ State-Overrides (außerhalb @layer – gewinnen gegen WP-Block-Styles) ── */

/* Der äußere wp-block-template-part-Wrapper muss sticky sein,
   nicht das innere .site-header (dessen Parent nur 70px hoch ist) */
header.wp-block-template-part:has(.site-header) {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

/* Abstand Header → Inhalt */
header.wp-block-template-part:has(.site-header) {
  margin-bottom: var(--header-content-spacing, 0px) !important;
}

.site-header {
  position: relative !important;
  transition: background .25s ease, border-color .25s ease !important;
}

/* Navigation über den übrigen Header-Kindern (z. B. .header-actions z-index:1),
   damit aufklappende Untermenüs (2. Ebene) und deren Container immer oben liegen
   und anklickbar bleiben. Gilt für alle Header-Typen (Desktop + Mobile). */
.site-header .wp-block-navigation {
  position: relative !important;
  z-index: 20 !important;
}
.site-header .wp-block-navigation .wp-block-navigation__submenu-container {
  z-index: 30 !important;
}

/* header-inner: Grid-Layout erzwingen (WP setzt inline display:flex via data-attribute) */
.site-header .header-inner,
.site-header .wp-block-group.header-inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  padding-block: var(--header-padding, 15px) !important;
  transition: padding-block .3s ease !important;
  min-height: unset !important;
}

.site-header .header-inner > .site-branding,
.site-header .wp-block-group.header-inner > .site-branding {
  grid-column: 1 !important;
  justify-self: start !important;
}

.site-header .header-inner > .wp-block-navigation,
.site-header .wp-block-group.header-inner > .wp-block-navigation {
  grid-column: 2 !important;
  justify-self: center !important;
}

.site-header .header-inner > .header-actions,
.site-header .wp-block-group.header-inner > .header-actions {
  grid-column: 3 !important;
  justify-self: end !important;
}

/* Nav umbrechen statt horizontal überlaufen (viele Menüpunkte). Gilt für alle
   Header-Typen: Nav-Grid-Spalte schrumpfbar, Listen brechen zentriert um. */
.site-header .header-inner,
.site-header .wp-block-group.header-inner {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  min-width: 0 !important;
}
.site-header .header-inner > * {
  min-width: 0 !important;
}
.site-header .wp-block-navigation,
.site-header .wp-block-navigation__container,
.site-header .wp-block-navigation .wp-block-page-list {
  flex-wrap: wrap !important;
  max-width: 100% !important;
  row-gap: 0.35rem !important;
  justify-content: center !important;
}

/* Innerer Seitenabstand des Headers links/rechts (Option, in vw).
   Außerhalb @layer → überschreibt das feste padding-inline aus @layer base. */
.site-header .header-inner,
.site-header .wp-block-group.header-inner {
  padding-left: var(--header-pad-left, 5vw) !important;
  padding-right: var(--header-pad-right, 5vw) !important;
}

/* Mobil: kleiner Zusatz-Innenabstand (+1vw), damit Logo und Bedienelemente
   nicht direkt am Bildschirmrand kleben. */
@media (max-width: 767px) {
  .site-header .header-inner,
  .site-header .wp-block-group.header-inner {
    padding-left: calc(var(--header-pad-left, 5vw) + 1vw) !important;
    padding-right: calc(var(--header-pad-right, 5vw) + 1vw) !important;
  }
}

/* shrink: Padding reduziert → Header schrumpft optisch */
.site-header--shrink.is-shrunk .header-inner,
.site-header--shrink.is-shrunk .wp-block-group.header-inner {
  padding-block: 6px !important;
}

.site-header--shrink.is-shrunk .wp-block-site-logo img,
.site-header--shrink.is-shrunk .site-logo {
  height: 28px !important;
  width: auto !important;
  transition: height .3s ease !important;
}

/* transparent_sticky shrink via padding */
.site-header--transparent_sticky.is-shrunk .header-inner,
.site-header--transparent_sticky.is-shrunk .wp-block-group.header-inner {
  padding-block: 6px !important;
}

/* transparent: Wrapper absolut positionieren (liegt über Hero) */
header.wp-block-template-part:has(.site-header--transparent),
header.wp-block-template-part:has(.site-header--transparent_sticky) {
  position: absolute !important;
  width: 100% !important;
  z-index: 100 !important;
}

.site-header--transparent,
.site-header--transparent_sticky {
  background: transparent !important;
  border-bottom-color: transparent !important;
}

.site-header--transparent.is-scrolled {
  background: var(--bg-primary) !important;
  border-bottom-color: var(--border) !important;
}

/* transparent_sticky: Wrapper fixed wenn gescrollt */
header.wp-block-template-part:has(.site-header--transparent_sticky.is-sticky) {
  position: fixed !important;
}

/* Mobil, transparente Header (absolut ODER fixiert): Der aus dem Fluss gelöste
   Wrapper erbt die statische Position (left:16px aus dem Body-Padding) und behält
   width:100%, WÄHREND .site-header zusätzlich per margin-inline:-1rem /
   width:calc(100%+2rem) ausbricht → doppelte Padding-Kompensation → Header wird
   ~32px breiter als der Viewport (horizontaler Overflow, blauer Streifen rechts,
   Modus-Umschalter außerhalb). Gilt für den nicht-gescrollten (position:absolute)
   UND den gescrollten (position:fixed) Zustand.
   Fix: Wrapper an die Viewport-Kanten pinnen und den Full-Bleed-Ausbruch des
   .site-header zurücknehmen (der Wrapper ist dann bereits volle Breite).
   Solide Header-Typen (sticky/shrink) bleiben im Fluss (position:sticky) und
   sind nicht betroffen – daher hier nicht angefasst. */
@media (max-width: 767px) {
  header.wp-block-template-part:has(.site-header--transparent),
  header.wp-block-template-part:has(.site-header--transparent_sticky) {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
  }
  header.wp-block-template-part:has(.site-header--transparent) .site-header,
  header.wp-block-template-part:has(.site-header--transparent_sticky) .site-header {
    margin-inline: 0 !important;
    width: 100% !important;
  }
}

.site-header--transparent_sticky.is-sticky {
  background: var(--bg-primary) !important;
  border-bottom-color: var(--border) !important;
}

/* Logo-Größe im WP-Site-Logo-Block – überschreibt WP inline width/height Attribute */
.site-header .wp-block-site-logo img {
  height: var(--header-logo-height, 60px) !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  transition: height .3s ease;
}

/* ── Multi-Logo: Hell/Dunkel × Standard/Sticky/Mobile ────────────────────────
   Alle Varianten sind im DOM; sichtbar ist je nach Modus (data-theme),
   Viewport (Mobile) und Header-Zustand (is-shrunk/is-sticky) genau eine. */
.wprbn-logoset { display: inline-flex; align-items: center; }
.wprbn-logoset .wprbn-logo { display: none; }

/* Standard-Zustand (Desktop) */
:root[data-theme="light"] .wprbn-logoset .wprbn-logo--default-light,
:root[data-theme="dark"]  .wprbn-logoset .wprbn-logo--default-dark { display: block; }

/* Sticky/Shrink (Header fixiert/verkleinert) → Sticky-Variante statt Standard */
:root[data-theme="light"] .site-header.is-shrunk .wprbn-logo--default-light,
:root[data-theme="light"] .site-header.is-sticky .wprbn-logo--default-light,
:root[data-theme="dark"]  .site-header.is-shrunk .wprbn-logo--default-dark,
:root[data-theme="dark"]  .site-header.is-sticky .wprbn-logo--default-dark { display: none; }
:root[data-theme="light"] .site-header.is-shrunk .wprbn-logo--sticky-light,
:root[data-theme="light"] .site-header.is-sticky .wprbn-logo--sticky-light,
:root[data-theme="dark"]  .site-header.is-shrunk .wprbn-logo--sticky-dark,
:root[data-theme="dark"]  .site-header.is-sticky .wprbn-logo--sticky-dark { display: block; }

/* Mobile (≤767px): Mobile-Variante überschreibt alles */
@media (max-width: 767px) {
  .wprbn-logoset .wprbn-logo { display: none !important; }
  :root[data-theme="light"] .wprbn-logoset .wprbn-logo--mobile-light,
  :root[data-theme="dark"]  .wprbn-logoset .wprbn-logo--mobile-dark { display: block !important; }
}

/* Hero-Typografie außerhalb @layer – gewinnt gegen @layer typography (h1-Regel) */
.hero-title {
  font-family: var(--font-hero_title, var(--font-h1, 'Playfair Display', serif)) !important;
  font-size: var(--size-hero_title, clamp(2.2rem, 5.5vw, 4.5rem)) !important;
  font-weight: var(--weight-hero_title, 400) !important;
  font-style: var(--style-hero_title, normal) !important;
  line-height: var(--lh-hero_title, 1.1) !important;
  letter-spacing: var(--ls-hero_title, 0em) !important;
  text-transform: var(--tt-hero_title, none) !important;
  color: var(--color-hero_title, #fff) !important;
  /* Statt eines dunklen Overlays: Text-Shadow für Lesbarkeit auf jedem Hintergrund */
  text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 3px 22px rgba(0,0,0,.45) !important;
  margin-block-end: 0.75rem !important;
  max-width: 100% !important;
}

.hero-subtitle {
  font-family: var(--font-hero_subtitle, var(--font-body, inherit)) !important;
  font-size: var(--size-hero_subtitle, clamp(1rem, 1.8vw, 1.375rem)) !important;
  font-weight: var(--weight-hero_subtitle, 400) !important;
  font-style: var(--style-hero_subtitle, normal) !important;
  line-height: var(--lh-hero_subtitle, 1.5) !important;
  letter-spacing: var(--ls-hero_subtitle, 0em) !important;
  text-transform: var(--tt-hero_subtitle, none) !important;
  color: var(--color-hero_subtitle, #fff) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 2px 14px rgba(0,0,0,.4) !important;
  margin-block-end: 2rem !important;
  max-width: 100% !important;
}

/* Hero-CTA außerhalb @layer – schlägt a{color:inherit} aus style.css */
.hero-cta {
  color: var(--hero-btn-color, var(--bg-primary, #0d1117)) !important;
  padding: 0.9rem var(--hero-btn-pad-lr, 2.25rem) !important;
  text-decoration: none !important;
  font-family: var(--hero-btn-family, inherit) !important;
  font-size: var(--hero-btn-size, 0.75rem) !important;
  font-weight: var(--hero-btn-weight, 600) !important;
  letter-spacing: var(--hero-btn-ls, 0.12em) !important;
  text-transform: var(--hero-btn-tt, uppercase) !important;
}

.hero-cta:hover {
  color: var(--hero-btn-hover, #fff) !important;
}

/* Seitentitel (im kompakten Hero-Bereich .wprbn-hero--compact) */
.page-hero-title {
  font-family: var(--font-page_title, var(--font-heading, 'Playfair Display', serif)) !important;
  font-size: clamp(1.75rem, 3.5vw, 3rem) !important;
  font-weight: 400 !important;
  color: var(--text-primary) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

/* Doppelten Seitentitel im Seiteninhalt ausblenden wenn Hero-Header aktiv.
   (Die Titelseite braucht die Regel nicht – ihr Template front-page.html gibt
   weder Titel noch Beitragsbild aus.) */
body.has-hero-header:not(.home) .page-header.entry-header {
  display: none !important;
}

/* Doppeltes Beitragsbild im Inhalt ausblenden wenn Hero-Header aktiv – der Hero
   zeigt das Beitragsbild bereits als Hintergrund (sonst erscheint es zweimal). */
body.has-hero-header:not(.home) .wp-block-post-featured-image,
body.has-hero-header:not(.home) .entry-thumbnail {
  display: none !important;
}

/* Abstand zwischen Hero und Inhalt. Die gelayerte .page-content/.single-post
   padding-top-Regel (@layer page) wird vom ungelayerten Reset
   `*,::before,::after{padding:0}` (style.css) immer geschlagen – ungelayerte
   Regeln gewinnen laut Spec grundsätzlich gegen jede @layer-Regel, unabhängig
   von Spezifität. Darum steht dieser Override hier außerhalb aller Layer. */
body.has-hero-header .page-content,
body.has-hero-header .single-post {
  padding-top: var(--space-2xl) !important;
}

/* ── Header-Hintergrundfarbe – alle Typen ────────────────────────────────── */

/* Sticky, Shrink, Minimal: immer sichtbar */
.site-header--sticky,
.site-header--shrink,
.site-header--minimal {
  background-color: var(--header-bg-color, var(--bg-primary)) !important;
}

/* Transparent: Farbe erscheint erst nach dem Scrollen (solid-Zustand) */
.site-header--transparent.is-scrolled {
  background-color: var(--header-bg-color, var(--bg-primary)) !important;
}

/* Transparent + Sticky + Shrink: Farbe wenn fixiert */
.site-header--transparent_sticky.is-sticky {
  background-color: var(--header-bg-color, var(--bg-primary)) !important;
}

/* Header-Hintergrundbild (Option) – liegt über der Hintergrundfarbe und gilt
   für exakt dieselben Zustände. --header-bg-image kommt aus functions.php
   (ein Bild für Hell und Dunkel); ohne gesetztes Bild ist der Wert `none`,
   dann bleibt allein die Farbe stehen.
   Sichtbar ist bei einer 50–90px hohen Leiste nur der obere Bildstreifen –
   daher bewusst `top center` statt `center`.
   Zwei weitere Stellen greifen dasselbe Bild auf und müssen mitgeändert werden:
   das Vollton-Titelband (.wprbn-hero--compact, weiter unten in dieser Datei)
   und die Kopfleiste des Menü-Overlays (menu.css, .wprbn-menu-overlay::before). */
.site-header--sticky,
.site-header--shrink,
.site-header--minimal,
.site-header--transparent.is-scrolled,
.site-header--transparent_sticky.is-sticky {
  background-image: var(--header-bg-image, none) !important;
  background-size: cover !important;
  background-position: top center !important;
  background-repeat: no-repeat !important;
}

/* Header-Textfarbe (Option) – auf soliden/gefärbten Leisten aller Header-Typen.
   Fallback = normale Textfarbe, d.h. ohne gesetzten Wert ändert sich nichts. */
.site-header--sticky,
.site-header--shrink,
.site-header--minimal,
.site-header--fullscreen,
.site-header--transparent.is-scrolled,
.site-header--transparent_sticky.is-sticky {
  & .wp-block-navigation a,
  & .wp-block-navigation-item__content,
  & .site-title, & .site-title-link,
  & .wprbn-mode-toggle { color: var(--header-text-color, var(--text-primary)); }
  & .nav-toggle span { background: var(--header-text-color, var(--text-primary)); }
}

/* ── Menü-Symbol (Hamburger) + Bedienelement-Farbe ───────────────────────────
   Das Symbol wird als CSS-mask auf dem Menü-Button gezeichnet (Form frei
   wählbar: 3/2 Striche oder 3×3-Punkte). Die Farbe kommt aus
   --header-control-color mit Fallback auf currentColor – erbt also die
   Header-Text- bzw. normale Textfarbe, solange keine eigene Farbe gesetzt ist.
   Deckt Block-Pfad (WP-Nav-Button) und klassischen Pfad (.nav-toggle) ab. */
.menu-icon--bars3 { --wprbn-menu-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='2.4' rx='1.2'/%3E%3Crect x='3' y='10.8' width='18' height='2.4' rx='1.2'/%3E%3Crect x='3' y='16.6' width='18' height='2.4' rx='1.2'/%3E%3C/svg%3E"); }
.menu-icon--bars2 { --wprbn-menu-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='7.4' width='18' height='2.4' rx='1.2'/%3E%3Crect x='3' y='14.2' width='18' height='2.4' rx='1.2'/%3E%3C/svg%3E"); }
.menu-icon--dots9 { --wprbn-menu-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6' cy='6' r='2'/%3E%3Ccircle cx='12' cy='6' r='2'/%3E%3Ccircle cx='18' cy='6' r='2'/%3E%3Ccircle cx='6' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='18' cy='12' r='2'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='12' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }

.site-header[class*="menu-icon--"] .wp-block-navigation__responsive-container-open svg,
.site-header[class*="menu-icon--"] .nav-toggle span {
  display: none !important;
}
.site-header[class*="menu-icon--"] .wp-block-navigation__responsive-container-open::before,
.site-header[class*="menu-icon--"] .nav-toggle::before {
  content: "";
  display: block;
  width: 26px;
  height: 22px;
  background-color: var(--header-control-color, currentColor);
  -webkit-mask: var(--wprbn-menu-mask) center / contain no-repeat;
          mask: var(--wprbn-menu-mask) center / contain no-repeat;
}

/* Eigene Bedienelement-Farbe (opt-in) – gewinnt gegen alle Header-Typ-Defaults. */
.site-header.has-control-color .wprbn-mode-toggle {
  color: var(--header-control-color) !important;
}

/* ── Menü: Overlay-Nav bei nav_type=overlay (nicht fullscreen header-type) ── */
.site-header--has-overlay-nav .nav-toggle { display: flex; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO-BEREICH (.wprbn-hero) – STRIKT GETRENNT vom Menü/Header
   Eigener Block, der NACH dem Header-Template-Part steht. Der Header-Typ
   bestimmt allein das Menü:
     - transparenter Header (position:absolute) liegt ÜBER dem Hero  → Variante 1
     - solider Header (im Fluss) schiebt den Hero DARUNTER            → Variante 2/3
   ═══════════════════════════════════════════════════════════════════════════ */

.wprbn-hero {
  position: relative;
  isolation: isolate;
  /* WordPress-Block-Gap zwischen Header und Hero entfernen → Hero sitzt bündig
     an der Header-Unterkante (Sticky) bzw. ganz oben unter dem Menü (Transparent) */
  margin-block-start: 0 !important;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--header-bg-color, var(--bg-secondary));
  background-image: var(--hero-bg-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* KEIN dunkles Overlay – die Lesbarkeit kommt über den Text-Shadow der
   .hero-title / .hero-subtitle (sichtbar auf jedem Hintergrund). */

/* Inhalt: containerbreit zentriert, über dem Bild */
.wprbn-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max, 1200px);
  margin-inline: auto;
  padding-inline: var(--space-lg, 2rem);
  padding-block: clamp(2rem, 6vh, 4rem);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* Wellen-Übergang am Hero-Ende (Option hero_wave). Inline-SVG am unteren Rand,
   gefüllt mit der Seiten-Hintergrundfarbe (--bg-primary) → schneidet wellig in
   den Hero und geht nahtlos in den Seiteninhalt über. Zieht bei Farb-/Modus-
   wechsel automatisch mit, weil dieselbe Variable wie der Seitenhintergrund. */
.wprbn-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px; /* Haarlinien-Lücke vermeiden */
  width: 100%;
  height: clamp(38px, 6.5vw, 88px);
  display: block;
  z-index: 2;
  pointer-events: none;
}
.wprbn-hero__wave path {
  fill: var(--bg-primary);
}
/* Mobil standardmäßig ohne Welle (spart Höhe); per Option hero_wave_mobile an. */
@media (max-width: 767px) {
  .wprbn-hero__wave { display: none; }
  body.hero-wave-mobile .wprbn-hero__wave { display: block; }
}

/* Kompakter Seitentitel / Vollton-Titelband (Hero aktiv, aber ohne eigenes Bild).
   Auch genutzt vom Auto-Titel-Header für Seiten ohne Hero (case page_plain).
   Farbe: optionaler Override (--wprbn-plainhero-bg aus den Optionen) → sonst
   Header-Hintergrundfarbe.
   BILD, gleiche Reihenfolge: eigenes Band-Bild des Child-Themes
   (--wprbn-plainhero-image, z. B. Konfetti) → sonst das Header-Hintergrundbild
   (--header-bg-image). Damit gilt „ohne eigenes Hero-Bild übernimmt das Band
   den Header-Hintergrund" für Farbe UND Bild. Bei eingeschalteter eigener
   Bandfarbe setzt functions.php --wprbn-plainhero-image auf none – dann bleibt
   das Band bei seiner Volltonfarbe. */
.wprbn-hero--compact {
  min-height: auto;
  background-color: var(--wprbn-plainhero-bg, var(--header-bg-color, var(--bg-secondary)));
  background-image: var(--wprbn-plainhero-image, var(--header-bg-image, none));
  background-size: var(--wprbn-plainhero-bg-size, cover);
  background-position: center;
  background-repeat: var(--wprbn-plainhero-bg-repeat, no-repeat);
}
.wprbn-hero--compact::after { display: none; }
.wprbn-hero--compact .wprbn-hero__inner {
  color: var(--text-primary);
  padding-block: clamp(2rem, 4vh, 3rem) clamp(2.5rem, 5vh, 3.5rem);
}
/* Vollton-Band: Das Band nutzt die Header-Hintergrundfarbe, also übernimmt der
   Titel die Header-Textfarbe (die bereits passend zur Leiste gesetzt ist) –
   Fallback normale Textfarbe. Kein Bild-Weiß, kein Textschatten. Überschreibt
   die .hero-title-Bildregel (color:#fff !important). */
.wprbn-hero--compact .hero-title,
.wprbn-hero--compact .hero-subtitle {
  color: var(--header-text-color, var(--text-primary)) !important;
  text-shadow: none !important;
}

/* Vollton-Titelband: Titel horizontal zentriert (inkl. Deko wie Bogen). Das Band
   ist vollbreit, der Inhalt darunter liegt im zentrierten Container – links­bündig
   wirkte der Titel dadurch „verrutscht". */
.wprbn-hero--plain .wprbn-hero__inner {
  align-items: center;
}
.wprbn-hero--plain .hero-title {
  text-align: center;
}

/* Bogen-Deko unter dem Band-Titel (band_deko=bogen). Reicht die Box auf Textbreite
   ein (fit-content), damit der Bogen „Text + 5 %" breit ist. Nutzt die globalen
   --bow-*-Variablen (Elemente-Tab) + die JS-Zeichenanimation der Überschriften-Deko. */
.band-deko-bogen .wprbn-hero--plain .hero-title {
  /* Bogen proportional zum großen Band-Titel (≈ doppelt so hoch/dick wie unter
     Inhalts-H2). */
  --band-bow-height: calc(var(--bow-height, 14px) * 2);
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-bottom: calc(var(--bow-gap, 6px) + var(--band-bow-height));
}
.band-deko-bogen .wprbn-hero--plain .hero-title .wprbn-heading-bow {
  position: absolute;
  left: -2.5%;
  bottom: 0;
  width: 105%;
  height: var(--band-bow-height);
  overflow: visible;
  max-width: none;
  pointer-events: none;
}
.band-deko-bogen .wprbn-hero--plain .hero-title .wprbn-heading-bow path {
  stroke: var(--bow-color, currentColor);
  stroke-width: calc(var(--bow-stroke, 3px) * 2);
  stroke-linecap: round;
  fill: none;
  /* Keine Zeichen-Animation am Band-Titel: die pixelbasierte dasharray (1000)
     würde bei der großen Titelbreite mittendrin abschneiden. Immer voll. */
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}

/* Transparente Header liegen über dem Hero → Inhalt vom Menü freihalten.
   (Bei soliden Headern steht der Hero ohnehin darunter, kein Offset nötig.) */
body.header-type-transparent .wprbn-hero--compact .wprbn-hero__inner,
body.header-type-transparent_sticky .wprbn-hero--compact .wprbn-hero__inner,
body.header-type-fullscreen .wprbn-hero--compact .wprbn-hero__inner {
  padding-top: calc(var(--header-height, 70px) + clamp(2rem, 4vh, 3rem));
}

/* ── Menü-Anzeige „Hamburger": Position des Buttons ──────────────────────────
   Zweite Header-Achse (header_menu). Der Header-Inner ist ein 3-Spalten-Grid,
   dessen `display:grid !important` (Basis-Regel) nicht überschrieben werden soll.
   Wir arbeiten daher INNERHALB des Grids: alle Kinder werden in Zeile 1 gezwungen
   (`grid-row:1`, verhindert die implizite zweite Zeile → Logo oben, Steuerung
   darunter) und per Spalte positioniert.
   Block-Pfad: der Hamburger ist der WP-Nav-Button (.wp-block-navigation),
   die Aktionen (Modus-Umschalter) bleiben separat. Klassischer Pfad: der
   Hamburger steckt in .header-actions (keine .wp-block-navigation). */
.header-menu--ham-right.site-header .header-inner > *,
.header-menu--ham-left.site-header .header-inner > * {
  grid-row: 1 !important;
}

/* ── Menü: Hide-on-scroll ───────────────────────────────────────────────── */
.site-header {
  transition: transform 0.3s ease, height 0.3s ease, background 0.3s ease;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* ── Blog-Post-Optionen ──────────────────────────────────────────────────── */

body.hide-post-title .entry-title { display: none !important; }

body.hide-post-thumbnail .entry-thumbnail { display: none !important; }

body.hide-post-meta .eyebrow,
body.hide-post-meta .entry-tags { display: none !important; }

body.post-reading-narrow .entry-content {
  max-width: 640px;
  margin-inline: auto;
}

body.post-reading-wide .single-post {
  max-width: 1400px;
  margin-inline: auto;
}

/* ── Site-Titel ausblenden ───────────────────────────────────────────────── */

body.hide-site-title .site-title,
body.hide-site-title .site-title-link,
body.hide-site-title .wp-block-site-title,
body.hide-site-title .wp-block-site-title a { display: none !important; }

/* ── Logo-Ausrichtung (out-of-layer – gewinnt gegen alle @layer-Regeln) ──── */

/* CENTER: Logo in eigenständiger Zeile über der Nav
   Grid mit 2 Zeilen: Zeile 1 = Logo + Actions, Zeile 2 = Nav */
.logo-align--center.site-header .header-inner,
.logo-align--center.site-header .wp-block-group.header-inner {
  grid-template-rows: auto auto !important;
}

/* Logo spannt alle 3 Spalten – wird so in der Mitte zentriert */
.logo-align--center.site-header .header-inner > .site-branding,
.logo-align--center.site-header .wp-block-group.header-inner > .site-branding {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
}

/* Actions bleiben in Zeile 1, Spalte 3 – überlappt mit Logo (z-index gewinnt) */
.logo-align--center.site-header .header-inner > .header-actions,
.logo-align--center.site-header .wp-block-group.header-inner > .header-actions {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  z-index: 1 !important;
}

/* RIGHT: eine Zeile – Nav links, Actions mittig, Logo rechts */
.logo-align--right.site-header .header-inner > .site-branding,
.logo-align--right.site-header .wp-block-group.header-inner > .site-branding {
  grid-column: 3 !important;
  justify-self: end !important;
}

.logo-align--right.site-header .header-inner > .header-actions,
.logo-align--right.site-header .wp-block-group.header-inner > .header-actions {
  grid-column: 2 !important;
  justify-self: center !important;
}

/* Immich Gallery – Spalten im Grid zentrieren */
.immich-grid.immich-album-grid {
  justify-content: center;
}

/* ── Float-Bilder im Beitrag (out-of-layer – gewinnt gegen wp-block-library) ──
   Klare Abschnittstrennung: Überschriften, Zitate & Galerie räumen umfließende
   Bilder ab, damit kein Text/Bild links UND rechts daneben steht. */
.entry-content .wp-block-heading,
.wp-block-post-content .wp-block-heading,
.entry-content .wp-block-quote,
.wp-block-post-content .wp-block-quote,
.entry-content .wp-block-sliderberg-sliderberg,
.wp-block-post-content .wp-block-sliderberg-sliderberg {
  clear: both;
}

.entry-content .wp-block-image.alignright,
.wp-block-post-content .wp-block-image.alignright {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.entry-content .wp-block-image.alignleft,
.wp-block-post-content .wp-block-image.alignleft {
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

/* Mobil: Inline-Bilder NIE im Fließtext floaten – immer volle Breite, untereinander.
   !important schlägt das Inline-style width:340px der gefloateten Bilder. */
@media (max-width: 767px) {
  .entry-content .wp-block-image.alignleft,
  .entry-content .wp-block-image.alignright,
  .wp-block-post-content .wp-block-image.alignleft,
  .wp-block-post-content .wp-block-image.alignright {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .entry-content .wp-block-image.alignleft img,
  .entry-content .wp-block-image.alignright img,
  .wp-block-post-content .wp-block-image.alignleft img,
  .wp-block-post-content .wp-block-image.alignright img {
    width: 100% !important;
    height: auto !important;
  }

  /* Zitat-Block räumt Floats nur am Desktop ab – auf Mobile kein clear */
  .entry-content .wp-block-quote,
  .wp-block-post-content .wp-block-quote {
    clear: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   Blogartikel-Liste (Shortcode [wprbn_blogartikel_liste],
   Block-Template templates/blogartikel-liste-hero-header.html)
   Der Hero-Header selbst kommt aus dem Theme-Block-Header; hier nur die
   Beitragsliste. Außerhalb aller @layer: gewinnt gegen die Element-Regeln aus
   @layer typography (h2).
   ══════════════════════════════════════════════════════════════════════════ */

/* Wrapper mit Breite + Einrückung (nicht-gelayert → schlägt den
   *{padding:0}-Reset, der die gelayerte .container-Regel aushebelt) */
.blogliste-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container-max, 1200px);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ── Liste: Bild links, Anreißer rechts ─────────────────────────────────── */

.blogliste-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
  /* Query-Loop rendert ein <ul> – Listen-Optik entfernen */
  list-style: none;
  margin: 0;
  padding-inline: 0;
}

.blogliste-list > li { margin: 0; }

.blogliste-item {
  display: grid;
  grid-template-columns: minmax(0, 42%) 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.blogliste-item__thumb {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-secondary);
  margin: 0; /* figure-Standardmargin des Featured-Image-Blocks entfernen */
}

/* Der Featured-Image-Block verschachtelt <figure><a><img></a></figure> */
.blogliste-item__thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.blogliste-item__thumb img,
.blogliste-item__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  /* Der Featured-Image-Block setzt inline aspect-ratio auf das <img>; das
     überschreiben, damit die Bildhöhe allein von height:100% kommt und das
     Bild die Figur immer randlos füllt (kein durchscheinender Hintergrund). */
  aspect-ratio: auto !important;
  object-fit: cover;
  vertical-align: bottom;
  transition: transform 0.5s ease;
}

.blogliste-item__thumb-placeholder { background: var(--bg-secondary); }

.blogliste-item__thumb:hover img { transform: scale(1.04); }

.blogliste-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.blogliste-item__title {
  margin: 0;
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.blogliste-item__title a { transition: color var(--transition, 0.2s ease); }
.blogliste-item__title a:hover { color: var(--text-muted); }

.blogliste-item__excerpt {
  margin: 0;
  max-width: 60ch;
  font-size: var(--text-base);
  color: var(--text-muted);
}

/* ── Pagination ─────────────────────────────────────────────────────────── */

.blogliste-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding-block: var(--space-md) var(--space-2xl);
}

.blogliste-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.6rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  border: 0.5px solid var(--border);
  transition: color var(--transition, 0.2s ease), border-color var(--transition, 0.2s ease), background var(--transition, 0.2s ease);
}

.blogliste-pagination .page-numbers:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.blogliste-pagination .page-numbers.current {
  color: var(--cta-text, var(--bg-primary));
  background: var(--cta-bg, var(--text-primary));
  border-color: var(--cta-bg, var(--text-primary));
}

.blogliste-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* Vorherige/Nächste-Links (kein .page-numbers) wie die Zahlen-Buttons */
.blogliste-pagination .wp-block-query-pagination-previous,
.blogliste-pagination .wp-block-query-pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.6rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  border: 0.5px solid var(--border);
  transition: color var(--transition, 0.2s ease), border-color var(--transition, 0.2s ease);
}

.blogliste-pagination .wp-block-query-pagination-previous:hover,
.blogliste-pagination .wp-block-query-pagination-next:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* Zahlen-Container: gleichmäßiger Abstand zwischen den Ziffern */
.blogliste-pagination .wp-block-query-pagination-numbers {
  display: inline-flex;
  gap: 0.35rem;
}

/* ── Query-Loop: Anreißer + „Weiterlesen" ───────────────────────────────── */

/* post-excerpt rendert einen <div>-Wrapper mit inneren <p> */
.blogliste-item__excerpt p { margin: 0; }
.blogliste-item__excerpt .wp-block-post-excerpt__more-text { margin-top: var(--space-xs); }

.blogliste-item__excerpt .wp-block-post-excerpt__more-link {
  display: inline-block;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--transition, 0.2s ease);
}

.blogliste-item__excerpt .wp-block-post-excerpt__more-link:hover { color: var(--text-muted); }

/* No-Results-Meldung */
.blogliste-empty {
  color: var(--text-muted);
  padding-block: var(--space-2xl);
}

/* ── Responsive: Bild oben, Text darunter (Mobile) ──────────────────────── */

@media (max-width: 767px) {
  .blogliste-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ── Datum: normale Schreibweise statt Versalien (site-weit) ─────────────────
   Das Datum nutzt die .eyebrow-Optik (uppercase + weites letter-spacing).
   Für ein natürlich lesbares deutsches Datum „15. Juli 2026" hier nur für
   den post-date-Block die Großschrift entfernen und die Laufweite reduzieren.
   Außerhalb aller @layer → gewinnt gegen die gelayerte .eyebrow-Regel. */
.wp-block-post-date.eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ── PersonenTemplate: einzelne Personen-Karte ───────────────────────────────
   Pattern-Slug: wprbn/personen-template
   Das Pattern liefert EINE Karte (Bild, Name, Funktion). Das Spalten-Layout
   baust du im Editor mit dem nativen Spalten-Block: Karte beliebig oft je
   Spalte einfügen. Diese Regeln gestalten nur die Karte selbst – die Breite
   ergibt sich aus der Spalte, in der sie steht.
   Steht außerhalb aller @layer → gewinnt gegen die Flow-Layout-Defaults, die
   WordPress auf .wp-block-group setzt. */
.wprbn-person {
  text-align: center;
}

.wprbn-person figure.wp-block-image {
  margin: 0 0 var(--space-sm, 0.75rem);
}

/* Foto füllt die Spaltenbreite, natürliches Hochformat – kein Beschnitt */
.wprbn-person figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* ── Überschriften-Deko ──────────────────────────────────────────────────────
   Eine H2 mit der Klasse deko-bogen / deko-konfetti / deko-luftschlange bekommt
   eine Dekoration darunter. Die Klasse setzt man am einfachsten über die drei
   „Überschriften-Deko"-Patterns (Einfüger → „Vorlagen"), sie funktioniert aber
   auch manuell via „Erweitert → Zusätzliche CSS-Klasse(n)". Pro Überschrift
   frei wählbar – kein Seiten-Template nötig.
   Werte kommen als CSS-Variablen aus dem Elemente-Tab (functions.php). Die
   H2-Schrift selbst (Größe/Farbe) bleibt unverändert – die Deko ist ein eigenes,
   absolut positioniertes Element. Steht außerhalb aller @layer → gewinnt gegen
   die Typografie-Layer-Defaults. */
/* Box schrumpft auf die Textbreite, damit die Deko nur „Text + 5 %" breit wird.
   Die Ausrichtung (links/zentriert/rechts) kommt aus dem Block (has-text-align-*)
   und wird hier auf die Box-Position abgebildet. */
.entry-content h2.wp-block-heading:is(.deko-bogen, .deko-konfetti, .deko-luftschlange) {
  position: relative;
  width: fit-content;
  max-width: 100%;
  isolation: isolate; /* eigener Stacking-Kontext → Konfetti liegt hinter dem Text, nicht hinter dem Seiten-Hintergrund */
}
.entry-content h2.wp-block-heading:is(.deko-bogen, .deko-konfetti, .deko-luftschlange).has-text-align-center {
  margin-inline: auto;
}
.entry-content h2.wp-block-heading:is(.deko-bogen, .deko-konfetti, .deko-luftschlange).has-text-align-right {
  margin-inline: auto 0;
}
.entry-content h2.wp-block-heading:is(.deko-bogen, .deko-konfetti, .deko-luftschlange).has-text-align-left {
  margin-inline: 0 auto;
}

/* Deko = Text + 5 % (2,5 % Überstand je Seite), unten an der Überschrift. */
.entry-content h2.wp-block-heading .wprbn-heading-deko {
  position: absolute;
  left: -2.5%;
  right: auto;
  bottom: 0;
  width: 105%;
  pointer-events: none;
}

/* ── 1) Bogen ── */
.entry-content h2.wp-block-heading.deko-bogen {
  padding-bottom: calc(var(--bow-gap, 6px) + var(--bow-height, 14px));
}
.entry-content h2.wp-block-heading.deko-bogen .wprbn-heading-bow {
  height: var(--bow-height, 14px);
  overflow: visible;
  max-width: none; /* globales svg{max-width:100%} aushebeln → volle 105 %-Breite */
}
.entry-content h2.wp-block-heading.deko-bogen .wprbn-heading-bow path {
  stroke: var(--bow-color, currentColor);
  stroke-width: var(--bow-stroke, 3px);
  stroke-linecap: round;
}

/* ── 2) Konfetti (rieselt hinter den Text) ── */
.entry-content h2.wp-block-heading.deko-konfetti .wprbn-heading-konfetti {
  left: -5%;   /* 5 % Überstand links */
  width: 110%; /* … und rechts */
  top: -0.15em;
  bottom: -0.15em;
  height: auto;
  overflow: hidden;
  z-index: -1; /* hinter den Text */
}
.entry-content h2.wp-block-heading.deko-konfetti .wprbn-heading-konfetti i {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  opacity: 1; /* ohne Animation: Konfetti liegt sichtbar da */
}
/* Mit Animation: rieselt beim Scrollen hinter dem Text ein und bleibt liegen */
body.deko-anim-konfetti .entry-content h2.deko-konfetti .wprbn-heading-konfetti i { opacity: 0; }
body.deko-anim-konfetti .entry-content h2.deko-konfetti .wprbn-heading-konfetti.is-drawn i {
  animation: wprbn-konfetti-fall var(--kdur, 1.4s) ease-out forwards;
}
@keyframes wprbn-konfetti-fall {
  0%   { transform: translateY(-1.4em) rotate(0);     opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(0) rotate(200deg);     opacity: 1; }
}

/* ── 3) Luftschlange (quer, hinter dem Text, rollt von links auf) ──
   Container bekommt das echte Seitenverhältnis der quergedrehten SVG
   (960×342) → die ganze Schlange bleibt sichtbar, nichts wird oben/unten
   abgeschnitten. Vertikal hinter dem Text zentriert. */
.entry-content h2.wp-block-heading.deko-luftschlange .wprbn-heading-luftschlange {
  /* Breite (Text + 5 %) erbt die Basis-Regel (.wprbn-heading-deko): left:-2.5%; width:105% */
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  aspect-ratio: 960 / 342;
  height: auto;
  overflow: visible;
  z-index: -1; /* hinter den Text */
}
.entry-content h2.wp-block-heading.deko-luftschlange .wprbn-heading-luftschlange img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* Mit Animation: von links aufrollen – FAIL-SAFE: Standard = sichtbar. Der Roll-in
   spielt nur, wenn .is-drawn beim Scrollen dazukommt (Keyframe geht von „geklippt"
   nach „offen"). Kommt .is-drawn nie (z. B. Element unter dem Falz auf Desktop),
   bleibt die Schlange sichtbar statt permanent weggeklippt. */
body.deko-anim-schlange .entry-content h2.deko-luftschlange .wprbn-heading-luftschlange.is-drawn {
  animation: wprbn-schlange-unfurl var(--schlange-dur, 1.1s) ease-out both;
}
@keyframes wprbn-schlange-unfurl {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Reduzierte Bewegung: alle Deko-Animationen aus, Endzustand sofort sichtbar */
@media (prefers-reduced-motion: reduce) {
  .entry-content .wprbn-heading-bow path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .entry-content .wprbn-heading-konfetti i {
    opacity: 1 !important;
    animation: none !important;
  }
  .entry-content .wprbn-heading-luftschlange {
    clip-path: none !important;
    animation: none !important;
  }
}
