/**
 * theme-modern-2026.css – Theme „Modern (2026)“ (ehem. index3.css), 1:1 Snap Send Solve Layout
 *
 * Exakte Design-Tokens von snapsendsolve.com:
 *   Warm Black  →  #2c2927
 *   High-Vis    →  #e0ff89
 *   Warm Grey   →  #f4f2ef
 *   White       →  #ffffff
 *   Font        →  Montserrat (lokal, wie styles.css)
 *
 * Alle Klassen beginnen mit .p3- und sind vollständig unter .p3 gekapselt.
 */

/* ─────────────────────────────────────────────────────────────
   styles.css-Override (muss zuerst stehen)

   1) styles.css setzt  main { max-width:1100px; padding:2rem 1.5rem }
      → schneidet das vollflächige p3-Layout ab.

   2) styles.css setzt  main a[href]:not(…viele…) { color:!important }
      → überschreibt alle Link-Farben in .p3.
      Die Original-Spezifizität beträgt (0,0,8,2) + !important.
      Wir schlagen sie mit (0,0,9,2) + !important.
───────────────────────────────────────────────────────────── */
main.p3 {
    max-width: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override des globalen Link-Farbregels — gleicher Selektor + .p3 → höhere Spezifizität */
main.p3 a[href]:not(.btn):not(.btn-outline):not(.btn-cta):not(.gemeinde-item):not(.error-btn):not(.popup-link-button):not(.export-link) {
    color: inherit !important;
}

main.p3 a[href]:not(.btn):not(.btn-outline):not(.btn-cta):not(.gemeinde-item):not(.error-btn):not(.popup-link-button):not(.export-link):hover {
    color: inherit !important;
}

/* Buttons: weiße Schrift mit (0,0,10,2) — schlägt die inherit-Regel (0,0,9,2) oben */
main.p3 a[href].p3-btn-highvis:not(.btn):not(.btn-outline):not(.btn-cta):not(.gemeinde-item):not(.error-btn):not(.popup-link-button):not(.export-link),
main.p3 a[href].p3-btn-highvis:not(.btn):not(.btn-outline):not(.btn-cta):not(.gemeinde-item):not(.error-btn):not(.popup-link-button):not(.export-link):hover {
    color: #fff !important;
}

main.p3 a.p3-btn-ghost,
main.p3 a.p3-btn-ghost:hover {
    color: #fff !important;
}

main.p3 a.p3-btn-outline {
    color: var(--accent-orange, #FA8112) !important;
}

main.p3 a.p3-btn-outline:hover {
    color: var(--accent-contrast, #fff) !important;
}

main.p3 a.p3-marquee__item {
    color: #2c2927 !important;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) main.p3 a.p3-marquee__item {
    color: #e8e4e0 !important;
}

main.p3 a.p3-marquee__item:hover {
    color: #2c2927 !important;
}

.p3 {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2c2927;
    /* Einheitliche Typo: „Wie es funktioniert“ / „Nur drei Schritte“ & Karten-Kopf */
    --p3-section-kicker-fs: 0.625rem;
    --p3-section-kicker-ls: 0.14em;
    --p3-section-title-fs: clamp(1.75rem, 3.5vw, 2.75rem);
}

.p3 * {
    box-sizing: border-box;
}

/* Allgemeine Utility innerhalb .p3 */
.p3-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.p3-container--small {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.p3-tagline {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2c2927;
    margin-bottom: 1rem;
}

/* High-Vis Button – nutzt die hinterlegte Akzentfarbe (Hover: Lift, Ring, Glanz-Sweep, Plus-Icon) */
.p3-btn-highvis {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-contrast, #fff);
    background-color: var(--accent-orange, #FA8112);
    background-image: linear-gradient(
        105deg,
        transparent 32%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 68%
    );
    background-size: 220% 100%;
    background-position: 100% center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--accent-orange-shadow, rgba(250, 129, 18, 0.25));
    transition:
        background-color 0.2s ease,
        background-position 0.45s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    white-space: nowrap;
}

.p3-btn-highvis:hover,
.p3-btn-highvis:focus-visible {
    background-color: var(--accent-orange-hover, #e57410);
    background-position: 0% center;
    color: var(--accent-contrast, #fff);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.38),
        0 10px 28px rgba(0, 0, 0, 0.12),
        0 4px 16px var(--accent-orange-shadow-hover, rgba(250, 129, 18, 0.38));
    outline: none;
}

.p3-btn-highvis:focus:not(:focus-visible) {
    outline: none;
}

.p3-btn-highvis svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.p3-btn-highvis:hover svg,
.p3-btn-highvis:focus-visible svg {
    transform: rotate(90deg) scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .p3-btn-highvis {
        transition: background-color 0.15s ease, box-shadow 0.15s ease;
    }

    .p3-btn-highvis:hover,
    .p3-btn-highvis:focus-visible {
        transform: none;
        background-position: 100% center;
    }

    .p3-btn-highvis:hover svg,
    .p3-btn-highvis:focus-visible svg {
        transform: none;
    }
}

/* Ghost / Outline Button (weiß auf dunklem BG) */
.p3-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.p3-btn-ghost:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

/* Outline Button – Akzentfarbe als Rahmen */
.p3-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-orange, #FA8112);
    background: transparent;
    border: 2px solid var(--accent-orange, #FA8112);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.p3-btn-outline:hover {
    background: var(--accent-orange, #FA8112);
    color: var(--accent-contrast, #fff);
}

/* ─────────────────────────────────────────────────────────────
   1. HERO  ▸  bg:#2c2927 · zweispaltig
───────────────────────────────────────────────────────────── */
.p3-hero {
    background: #2c2927;
    color: #fff;
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    /* kein overflow:hidden: gekipptes Handy ragt unten aus dem Raster */
    overflow: visible;
}

.p3-hero__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: flex-end;
    min-height: 540px;
    overflow: visible;
}

.p3-hero__copy {
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p3-hero__h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    color: #fff;
}

.p3-hero__lead {
    font-size: clamp(0.9375rem, 1.8vw, 1.1rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 2rem;
    max-width: 30em;
}

.p3-hero__app-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.875rem;
}

.p3-hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* ── Phone Mockup (ersetzt Lottie) ── */
.p3-hero__phone-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    overflow: visible;
}

.p3-phone {
    width: 245px;
    height: 490px;
    background: #1a1a1a;
    border-radius: 36px;
    border: 7px solid #444;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 40px 90px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    /* leichtes Kippen wie SSS */
    transform: rotate(3deg) translateY(6px);
}

/* Notch */
.p3-phone__notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

/* Screen */
.p3-phone__screen {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* App-Header */
.p3-phone__header {
    padding: 30px 12px 10px;
    background: #2c2927;
    flex-shrink: 0;
}

.p3-phone__header-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.p3-phone__header-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.p3-phone__header-text {
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    flex: 1;
}

/* App-Inhalt: gleiche Illustration wie index.php (cta-visual-area), skaliert */
.p3-phone__body {
    flex: 1;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f2f0ed 0%, #fafafa 55%, #f5f5f5 100%);
    overflow: hidden;
}

.p3-phone__visual-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Feste Basisgröße wie styles.css, dann verkleinern – passt in das Display */
.p3-phone .cta-visual-area {
    position: relative;
    width: 280px;
    height: 300px;
    margin-bottom: 0;
    transform: scale(0.68);
    transform-origin: center center;
    flex-shrink: 0;
}

/* Karten etwas schmaler im Phone, damit nichts abgeschnitten wird */
.p3-phone .cta-card {
    width: 200px;
    padding: 0.85rem 1rem;
    gap: 0.65rem;
}

.p3-phone .cta-card-icon {
    width: 28px;
    height: 28px;
}

.p3-phone .cta-card-line {
    height: 6px;
}

.p3-phone .cta-icon {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Symbole weiter nach außen (stärker verteilt als index.php) */
.p3-phone .cta-icon--1 {
    top: 2%;
    left: 14%;
}

.p3-phone .cta-icon--2 {
    top: -2%;
    right: 12%;
}

.p3-phone .cta-icon--3 {
    top: 28%;
    left: 2%;
}

.p3-phone .cta-icon--4 {
    top: 14%;
    right: 0%;
}

.p3-phone .cta-icon--5 {
    top: 54%;
    right: 4%;
}

.p3-phone .cta-icon--6 {
    top: 42%;
    left: 10%;
}

/* Karten-Offsets etwas verstärken für mehr Luft */
.p3-phone .cta-card--blue {
    transform: translateX(-22px);
}

.p3-phone .cta-card--orange {
    transform: translateX(22px);
}

.p3-phone .cta-card--blue + .cta-card--blue {
    transform: translateX(-16px);
}

/* Schemenhafter Button unter der Illustration (Desktop + Mobile, Mobile feiner unten) */
.p3-phone__cta-bar {
    flex-shrink: 0;
    padding: 0 12px 6px;
    background: transparent;
}

.p3-phone__cta-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.4rem;
    min-height: 0;
    color: var(--accent-orange, #FA8112);
    background: var(--accent-orange-light, rgba(250, 129, 18, 0.1));
    border: 1px dashed var(--accent-orange, #FA8112);
    border-radius: 10px;
    box-shadow: none;
    opacity: 0.72;
}

.p3-phone__cta-bar-inner svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.75;
    stroke-width: 2.35;
}

/* Krisenmodus: kein Handy – großes Info-Symbol neben dem Text */
.p3-hero.krisenmodus-cta .p3-hero__inner {
    align-items: center;
}

.p3-hero__crisis-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 1.5rem) 0;
    min-height: min(12rem, 28vh);
}

.p3-hero__crisis-icon {
    width: clamp(5.5rem, min(16vw, 14vh), 9.5rem);
    height: auto;
    color: var(--krisen-accent-hover, #60a5fa);
    filter: drop-shadow(0 10px 32px rgba(59, 130, 246, 0.4));
}

/* Home indicator */
.p3-phone__home {
    height: 28px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p3-phone__home-bar {
    width: 72px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
}

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

    .p3-hero__phone-wrap {
        order: -1;
        padding-top: 0;
        padding-bottom: 0.65rem; /* etwas Luft wegen leichter Schräge */
    }

    /* Kleineres Handy */
    .p3-phone {
        transform: rotate(3deg) translateY(4px);
        width: 152px;
        height: 304px;
        border-radius: 26px;
        border-width: 4px;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.06),
            0 16px 40px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }

    .p3-phone__notch {
        width: 52px;
        height: 16px;
        border-radius: 0 0 10px 10px;
    }

    .p3-phone__header {
        padding: 20px 7px 6px;
    }

    .p3-phone__header-dot {
        width: 16px;
        height: 16px;
    }

    .p3-phone__header-text {
        height: 6px;
    }

    .p3-phone .cta-visual-area {
        width: 260px;
        height: 280px;
        transform: scale(0.44);
    }

    .p3-hero.krisenmodus-cta .p3-hero__crisis-symbol {
        order: -1;
        min-height: auto;
        padding-top: 0;
        padding-bottom: 0.75rem;
    }

    .p3-hero__crisis-icon {
        width: clamp(4.75rem, 28vw, 6.5rem);
    }

    .p3-phone__home {
        height: 22px;
    }

    .p3-phone__home-bar {
        width: 52px;
        height: 3px;
    }

    /* Etwas kompakter als Desktop, gleicher schemenhafter Stil */
    .p3-phone__cta-bar {
        padding: 0 7px 4px;
    }

    .p3-phone__cta-bar-inner {
        padding: 0.28rem;
        border-radius: 8px;
    }

    .p3-phone__cta-bar-inner svg {
        width: 11px;
        height: 11px;
        stroke-width: 2.25;
    }
}

/* ─────────────────────────────────────────────────────────────
   2. "WIE ES FUNKTIONIERT"  ▸  bg:#f4f2ef (warm grey)
───────────────────────────────────────────────────────────── */
.p3-how {
    background: #f4f2ef;
    padding: clamp(4rem, 9vw, 7rem) 0;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how {
    background: var(--bg-secondary, #242424);
}

.p3-how__inner {
    text-align: center;
}

/* Das lime-grüne Pill-Label (exakt wie SSS "how it works" tag) */
.p3-how__pill {
    display: inline-block;
    padding: 0.3125rem 0.875rem;
    background: #e0ff89;
    color: #2c2927;
    font-size: var(--p3-section-kicker-fs);
    font-weight: 800;
    letter-spacing: var(--p3-section-kicker-ls);
    text-transform: uppercase;
    border-radius: 0.35rem;
    margin-bottom: 1.25rem;
}

.p3-how__h2 {
    font-size: var(--p3-section-title-fs);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 3rem;
    color: #2c2927;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how__h2 {
    color: #f4f2ef;
}

.p3-how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 860px) {
    .p3-how__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.p3-how-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(44, 41, 39, 0.06);
    display: flex;
    flex-direction: column;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how-card {
    background: var(--bg-tertiary, #2d2d2d);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Großes rundes Bild-/Icon-Feld (wie SSS Foto-Platzhalter) */
.p3-how-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Jede Karte: Foto + Farbton wie Baustellen (1), Akzent (2), Erledigt-Grün (3) */
.p3-how-card:nth-child(1) .p3-how-card__img {
    background-color: #b0d4ea;
    background-image: url('../bilder/how/entdecken.jpg');
    background-size: cover;
    background-position: center 22%;
}

.p3-how-card:nth-child(1) .p3-how-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #005a8c;
    opacity: 0.26;
    pointer-events: none;
}

.p3-how-card:nth-child(2) .p3-how-card__img {
    background-color: #fff0e6;
    background-image: url('../bilder/how/melden.jpg');
    background-size: cover;
    background-position: center 22%;
}

.p3-how-card:nth-child(2) .p3-how-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-orange, #fa8112);
    opacity: 0.28;
    pointer-events: none;
}

.p3-how-card:nth-child(3) .p3-how-card__img {
    background-color: #d8efd9;
    background-image: url('../bilder/how/beheben.jpg');
    background-size: cover;
    background-position: center 22%;
}

.p3-how-card:nth-child(3) .p3-how-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #4caf50;
    opacity: 0.26;
    pointer-events: none;
}

/* Runder Kreis: helle Scheibe + farbiger Innenrand, Außenring und Schatten für Lesbarkeit auf Fotos */
.p3-how-card__icon-ring {
    position: relative;
    z-index: 1;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p3-how-card:nth-child(1) .p3-how-card__icon-ring {
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 0 0 3px #005a8c,
        0 0 0 2px rgba(255, 255, 255, 0.92),
        0 4px 22px rgba(0, 0, 0, 0.28);
}

.p3-how-card:nth-child(2) .p3-how-card__icon-ring {
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 0 0 3px var(--accent-orange, #fa8112),
        0 0 0 2px rgba(255, 255, 255, 0.92),
        0 4px 22px rgba(0, 0, 0, 0.28);
}

.p3-how-card:nth-child(3) .p3-how-card__icon-ring {
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 0 0 3px #2e7d32,
        0 0 0 2px rgba(255, 255, 255, 0.92),
        0 4px 22px rgba(0, 0, 0, 0.28);
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how-card:nth-child(1) .p3-how-card__icon-ring {
    background: rgba(32, 32, 32, 0.92);
    box-shadow:
        inset 0 0 0 3px #5eb3e0,
        0 0 0 2px rgba(255, 255, 255, 0.14),
        0 4px 24px rgba(0, 0, 0, 0.5);
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how-card:nth-child(2) .p3-how-card__icon-ring {
    background: rgba(32, 32, 32, 0.92);
    box-shadow:
        inset 0 0 0 3px #e8954a,
        0 0 0 2px rgba(255, 255, 255, 0.14),
        0 4px 24px rgba(0, 0, 0, 0.5);
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how-card:nth-child(3) .p3-how-card__icon-ring {
    background: rgba(32, 32, 32, 0.92);
    box-shadow:
        inset 0 0 0 3px #66bb6a,
        0 0 0 2px rgba(255, 255, 255, 0.14),
        0 4px 24px rgba(0, 0, 0, 0.5);
}

.p3-how-card__icon-ring svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* Icon-Farbe: Baustellen-Blau / Akzent / Erledigt-Grün */
.p3-how-card:nth-child(1) .p3-how-card__icon-ring svg {
    stroke: #005a8c;
}

.p3-how-card:nth-child(2) .p3-how-card__icon-ring svg {
    stroke: var(--accent-orange, #fa8112);
}

.p3-how-card:nth-child(3) .p3-how-card__icon-ring svg {
    stroke: #2e7d32;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how-card:nth-child(1) .p3-how-card__icon-ring svg {
    stroke: #7ec8ee;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how-card:nth-child(2) .p3-how-card__icon-ring svg {
    stroke: #ffb366;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how-card:nth-child(3) .p3-how-card__icon-ring svg {
    stroke: #a5d6a7;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how-card__icon-ring svg {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

.p3-how-card__body {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.p3-how-card__title {
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0;
    color: #2c2927;
    letter-spacing: -0.02em;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how-card__title {
    color: #f4f2ef;
}

.p3-how-card__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b6560;
    margin: 0;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-how-card__text {
    color: var(--text-secondary, #a0a0a0);
}

/* Primär-CTA unter „Nur drei Schritte“: gleiche Klasse wie Hero (.p3-btn-highvis), Abstand nur */
.p3-how__cta-btn {
    margin-top: 0.25rem;
}

/* ─────────────────────────────────────────────────────────────
   3. ORGANISATIONS-MARQUEE  ▸  bg:white
   (SSS zeigt Logos; wir zeigen Gemeinde-Namen scrollend)
───────────────────────────────────────────────────────────── */
.p3-partners {
    background: #fff;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    overflow: hidden;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-partners {
    background: var(--bg-primary, #1a1a1a);
}

.p3-partners__h2 {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    text-align: center;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 700;
    line-height: 1.4;
    color: #2c2927;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-partners__h2 {
    color: #f4f2ef;
}

.p3-partners__h2 strong {
    font-weight: 800;
}

/* Scrollender Marquee-Track */
.p3-marquee {
    position: relative;
    overflow: hidden;
}

.p3-marquee::before,
.p3-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
}

.p3-marquee::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.p3-marquee::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-marquee::before {
    background: linear-gradient(to right, var(--bg-primary, #1a1a1a), transparent);
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-marquee::after {
    background: linear-gradient(to left, var(--bg-primary, #1a1a1a), transparent);
}

.p3-marquee__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: max-content;
    animation: p3-marquee-scroll 32s linear infinite;
    padding: 0.25rem 0;
    will-change: transform;
}

/* Eine Gemeinde-Liste pro Gruppe; padding ersetzt den früheren Flex-Gap zwischen den Duplikaten */
.p3-marquee__group {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 0.75rem;
    padding-inline-end: 0.75rem;
    box-sizing: border-box;
}

@keyframes p3-marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    /* Ein Segment = 100% / Anzahl identischer Gruppen (--p3-marquee-p am Track, mind. 4 auf Desktop) */
    to   { transform: translate3d(calc(-100% / var(--p3-marquee-p, 2)), 0, 0); }
}

.p3-marquee__track:hover {
    animation-play-state: paused;
}

.p3-marquee__item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.375rem;
    background: #f4f2ef;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2c2927;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-marquee__item {
    background: var(--bg-secondary, #242424);
    color: #e8e4e0;
}

.p3-marquee__item:hover {
    background: var(--accent-orange-light, rgba(250,129,18,0.12));
    color: var(--accent-orange, #FA8112);
    border-color: var(--accent-orange, #FA8112);
}

/* ─────────────────────────────────────────────────────────────
   4. "WAS MELDER BERICHTEN" / STATS  ▸  bg:#2c2927
   (SSS: Video-Testimonial-Slider auf schwarzem Hintergrund)
───────────────────────────────────────────────────────────── */
.p3-snappers {
    background: #2c2927;
    color: #fff;
    padding: clamp(4rem, 9vw, 7rem) 0;
    overflow: hidden;
}

.p3-snappers__h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin: 0 0 3rem;
    color: #fff;
    padding-left: clamp(1.25rem, 5vw, 3rem);
    padding-right: clamp(1.25rem, 5vw, 3rem);
}

/* Mobil: mehr Luft zu den Bildschirmrändern (lange Überschriften) */
@media (max-width: 640px) {
    .p3-snappers__h2 {
        padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    }

    .p3-snappers__slider {
        padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    }
}

/* Stat-Cards horizontal (Slider-Look wie SSS Video-Cards) */
.p3-snappers__slider {
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 960px) {
    .p3-snappers__slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .p3-snappers__slider {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Jede Karte: portait-Hochformat wie SSS Video-Card */
.p3-snap-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    aspect-ratio: 3 / 4;
}

.p3-snap-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-orange-light, rgba(250,129,18,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p3-snap-card__icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent-orange, #FA8112);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
}

.p3-snap-card__value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    margin: auto 0 0;
    line-height: 1;
}

.p3-snap-card__unit {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.7);
}

.p3-snap-card__label {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   5. KARTE  ▸  bg:#f4f2ef (warm grey)
───────────────────────────────────────────────────────────── */
.p3-map {
    background: #f4f2ef;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-map {
    background: var(--bg-secondary, #242424);
}

.p3-map__head {
    text-align: center;
    margin-bottom: 2rem;
}

/*
 * Karten-Kopf: H2 wie „Nur drei Schritte“; Kicker = dieselbe Typo wie .p3-how__pill
 * („wie es funktioniert“). Nur Umbruch für längeren Text.
 */
.p3-map__head .p3-map__title {
    margin: 0;
    font-size: var(--p3-section-title-fs);
}

.p3-map__head .p3-map__pill {
    white-space: normal;
    line-height: 1.4;
    max-width: min(100%, 40rem);
    margin-left: auto;
    margin-right: auto;
}

.p3-map .map-container {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(44, 41, 39, 0.12);
    box-shadow: 0 4px 24px rgba(44, 41, 39, 0.08);
    margin-bottom: 1.75rem;
}

:is(html[data-theme="dark"], html[data-theme="kontrast"]) .p3-map .map-container {
    border-color: var(--border-color, #333);
}

/* Krisenmodus: Feed-Status */
.p3-feed-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
}

/* ─────────────────────────────────────────────────────────────
   Hero: dark-theme overrides für cta-visual-area
   (wird nicht mehr genutzt, aber sicher überschrieben)
───────────────────────────────────────────────────────────── */
.p3-hero .cta-icon {
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

/* ─────────────────────────────────────────────────────────────
   Krisenmodus innerhalb p3
   Hinweis-Box darf nicht die Klasse .p3 für Textfarbe nutzen: .p3 setzt #2c2927,
   auf .p3-snappers (#2c2927 / #fff) wirkt das wie unsichtbarer Text.
───────────────────────────────────────────────────────────── */
.p3-snappers .krisenmodus-hinweis-box {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-left: 4px solid #60a5fa;
    padding: 1.125rem 1.35rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
    line-height: 1.65;
    font-size: 0.9375rem;
}

.p3-snappers .krisenmodus-hinweis-box p {
    margin: 0;
    color: #e2e8f0;
}

/* ── Farbthema „Warm“ (Modern 2026) ── */
html[data-theme="warm"] .p3 {
    color: #2a2419;
}

html[data-theme="warm"] .p3-how,
html[data-theme="warm"] .p3-map {
    background: #efe8de;
}

html[data-theme="warm"] .p3-how-card {
    background: #faf6f0;
    box-shadow: 0 1px 8px rgba(42, 36, 25, 0.08);
}

html[data-theme="warm"] .p3-partners {
    background: #f8f3ec;
}

html[data-theme="warm"] .p3-partners__h2 {
    color: #2a2419;
}

html[data-theme="warm"] .p3-marquee::before {
    background: linear-gradient(to right, #f8f3ec, transparent);
}

html[data-theme="warm"] .p3-marquee::after {
    background: linear-gradient(to left, #f8f3ec, transparent);
}

html[data-theme="warm"] .p3-marquee__item {
    background: #ebe3d6;
    color: #2a2419;
}

html[data-theme="warm"] main.p3 a.p3-marquee__item {
    color: #3d3428 !important;
}

html[data-theme="warm"] .p3-how__pill {
    color: #2a2419;
}

html[data-theme="warm"] .p3-how__h2 {
    color: #2a2419;
}

html[data-theme="warm"] .p3-map .map-container {
    border-color: rgba(42, 36, 25, 0.15);
}

/* Kontrast: etwas tiefer als Standard-Dunkel */
html[data-theme="kontrast"] .p3-hero {
    background: #020202;
}

html[data-theme="kontrast"] .p3-snappers {
    background: #000000;
}
