/* ================================
   Inner-Page-Bausteine (Redesign 2026)
   Hero-Band, Floating-Badge, Beitrags-Navigation, Deko-Line-Art,
   roter Einleitsatz, breite Inhaltsspalte.
   ================================ */

/* --- Hero-Band: full-bleed Foto, Titel weiß unten links --- */
.inner-hero {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.inner-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.38), transparent 55%),
        rgba(255, 255, 255, 0.28);
}

.inner-hero-inner {
    position: relative;
    width: 100%;
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--container-padding);
}

.inner-hero-title {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* --- Breite Inhaltsspalte unterhalb des Heros --- */
.content-wrapper .site-main.is-wide {
    max-width: none;
}

.content-wrapper.inner-page {
    position: relative;
    flex-direction: column;
}

/* Roter Einleitsatz: erster Absatz direkt nach dem Hero */
.inner-page .entry-content > p:first-child,
.inner-page .page-intro {
    color: var(--color-red-dark);
    font-size: var(--font-size-medium);
    line-height: 1.5;
}

/* Zwischenüberschriften im Inhalt dunkelrot (Comp) */
.inner-page .entry-content h2,
.inner-page .entry-content h3 {
    color: var(--color-red-dark);
}

/* --- Floating-Badge „SO UNTERSTÜTZEN SIE UNS" --- */
/* Maße aus dem Comp gemessen (1920px-Design): Kreis 301px, in die rechte
   Viewport-Kante gedockt (16px beschnitten), Hände-Line-Art läuft in die
   untere Kreiskante und wird von ihr beschnitten. */
.floating-badge {
    position: absolute;
    /* Comp-Wert 797px gilt für 1920px-Viewport; skaliert mit (Hero = 55vw),
       sonst rutscht das Badge bei schmaleren Fenstern aus dem Hero */
    top: min(41.5vw, 797px);
    right: -16px;
    z-index: 90;
    width: 301px;
    height: 301px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-red-dark);
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 52px;
    text-align: center;
    transition: background 0.15s ease;
}

.floating-badge:hover {
    background: #6f0820;
    color: var(--color-white);
    text-decoration: none;
}

/* Startseite (Vorlage 01): Badge sitzt AUF der Hero-Unterkante (ragt 16px
   darunter) — an die Hero-Höhe (51vw, +100px Header) gekoppelt */
.home .floating-badge {
    top: calc(min(51vw, 980px) - 185px);
}

.floating-badge-text {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.333;
    /* Comp (Vektor-PDF): 3° gedreht; Glyphen vertikal gestreckt/schmaler
       als jede Systemschrift -> scale(0.905, 1.05) auf Comp-Maß */
    transform: rotate(3deg) scale(0.905, 1.05);
}

/* Comp: Hände-Motiv 85° gegen den Uhrzeigersinn gedreht (Vektor-PDF) */
.floating-badge-hands {
    position: absolute;
    left: calc(50% + 4px);
    bottom: -51px;
    transform: translateX(-50%) rotate(-85deg);
    width: 197px;
    height: auto;
}

@media (max-width: 1500px) {
    .floating-badge {
        width: 220px;
        height: 220px;
        padding-top: 38px;
    }

    .floating-badge-text {
        font-size: 22px;
    }

    .floating-badge-hands {
        left: calc(50% + 3px);
        width: 144px;
        bottom: -37px;
    }

    .home .floating-badge {
        top: calc(min(51vw, 980px) - 108px);
    }
}

@media (max-width: 900px) {
    .floating-badge {
        width: 140px;
        height: 140px;
        top: 600px;
        right: -8px;
        padding-top: 24px;
    }

    .floating-badge-text {
        font-size: 14px;
    }

    .floating-badge-hands {
        left: calc(50% + 2px);
        width: 92px;
        bottom: -24px;
    }

    .home .floating-badge {
        top: calc(min(51vw, 980px) - 32px);
    }
}

/* --- Beitrags-Navigation: ‹ Vorheriger · Zurück zur Übersicht · Nächster › --- */
.comp-post-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0 var(--spacing-lg);
}

.comp-post-nav > div {
    flex: 1;
}

.comp-post-nav-back {
    text-align: center;
}

.comp-post-nav-next {
    text-align: right;
}

.comp-post-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: var(--color-red-dark);
    font-size: var(--font-size-small);
    font-weight: 600;
    text-decoration: none;
}

.comp-post-nav a:hover {
    text-decoration: underline;
}

.comp-post-nav-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--color-red-dark);
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    padding-bottom: 2px;
}

/* --- Deko-Line-Art am linken Rand (nur sehr breite Viewports) --- */
.deco-art {
    display: none;
}

@media (min-width: 1700px) {
    .deco-art {
        display: block;
        position: absolute;
        left: -200px;
        top: 5rem;
        width: 170px;
        height: auto;
        pointer-events: none;
    }
}
