/*
Theme Name: Freudefund
Description: Schlankes warm-led Block-Theme für freudefund.de.
Version: 0.5.15
Requires at least: 6.5
Text Domain: freudefund-theme
*/

/* ── Header: Marken-Akzent + Serif-Wortmarke (Politur 06.07.2026) ── */
.ff-header {
    border-top: 4px solid var(--wp--preset--color--brand, #C2603F);
    box-shadow: 0 2px 12px rgba(23, 58, 58, 0.06);
}

.ff-brand-mark {
    display: block;
    width: 36px;
    height: 36px;
}

.ff-brand .wp-block-site-title {
    font-family: var(--wp--preset--font-family--serif, 'Source Serif 4', serif);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ff-brand .wp-block-site-title a {
    color: var(--wp--preset--color--anchor, #173A3A);
    text-decoration: none;
}

/* Terrakotta-Punkt als Wortmarken-Akzent */
.ff-brand .wp-block-site-title a::after {
    content: ".";
    color: var(--wp--preset--color--brand, #C2603F);
}

.ff-nav .wp-block-navigation a {
    color: var(--wp--preset--color--anchor, #173A3A);
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.ff-nav .wp-block-navigation a:hover {
    border-bottom-color: var(--wp--preset--color--brand, #C2603F);
}

.ff-header-cta .wp-block-button__link {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.55rem 1.2rem;
}

/* ── Footer: Marken-Abschluss in Anchor-Teal ── */
.ff-footer {
    background: var(--wp--preset--color--anchor, #173A3A);
    color: #E8E2DA;
}

.ff-footer .ff-footer-claim {
    font-family: var(--wp--preset--font-family--serif, 'Source Serif 4', serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.ff-footer .ff-dot {
    color: var(--wp--preset--color--brand-accent, #E0A04C);
}

.ff-footer .ff-footer-disclosure {
    font-size: 0.85rem;
    color: #B9C4C0;
    max-width: 640px;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.ff-footer .ff-footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.ff-footer .ff-footer-links a {
    color: #E8E2DA;
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 226, 218, 0.35);
    padding-bottom: 1px;
}

.ff-footer .ff-footer-links a:hover {
    color: #FFFFFF;
    border-bottom-color: var(--wp--preset--color--brand-accent, #E0A04C);
}

.ff-footer .ff-footer-legal {
    border-top: 1px solid rgba(232, 226, 218, 0.18);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #9FAEAA;
    margin-bottom: 0;
}

/* ── Lesbarkeit: Fließtext-Zeilenbreite begrenzen ── */
.wp-block-post-content > p,
.wp-block-post-content > h2,
.wp-block-post-content > h3,
.wp-block-post-content > ul,
.wp-block-post-content > ol {
    max-width: 46rem;
}

/* ═══ Sektions-System (v0.4.0) — MOBILE-FIRST: Basis = Smartphone,
   min-width erweitert. Warm-led Flächen statt Textspalte. ═══ */

.ff-section {
    padding: 2.5rem 1rem;
}

.ff-section--white { background: var(--wp--preset--color--surface, #FFFFFF); }
.ff-section--tint  { background: #EFF4F2; } /* zarter Teal-Tint auf Creme-Basis */

/* Sektions-Überschrift mit Terrakotta-Akzentlinie */
h2.ff-heading-accent {
    font-size: 1.5rem;
    padding-bottom: 0.6rem;
    position: relative;
    margin-bottom: 1.5rem;
}
h2.ff-heading-accent::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 3px;
    border-radius: 2px;
    background: var(--wp--preset--color--brand, #C2603F);
}
h2.ff-heading-accent.has-text-align-center::after { left: 50%; transform: translateX(-50%); }

/* ── Hero (Basis: gestapelt, zentriert) ── */
.ff-hero {
    background: linear-gradient(160deg, #FAF6F1 0%, #F6E9E0 55%, #F2DFD2 100%);
    padding: 2.75rem 1rem 2.25rem;
}
.ff-hero h1 {
    font-size: clamp(2rem, 7vw, 3.1rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    max-width: 21ch;
    margin: 0 auto 0.9rem;
}
.ff-hero .ff-hero-sub {
    font-size: 1.05rem;
    color: var(--wp--preset--color--text-muted, #6B5F55);
    max-width: 42rem;
    margin: 0 auto 1.75rem;
}
.ff-hero .ff-dot { color: var(--wp--preset--color--brand, #C2603F); }

/* Vertrauensleiste im Hero. Eigene Klasse, NICHT .ff-trust — die ist unten
   am Seitenende der dunkelgrüne Streifen und würde Hintergrund, Padding und
   hellen Text mit in den Hero bringen. Die drei Zusagen stehen wörtlich auf
   /so-waehlen-wir-aus/, aber der Trust-Abschnitt schließt die Startseite ab —
   wer nach den ersten Karten abspringt, hat sie nie gesehen. Bewusst ohne Link:
   vor dem Finder soll nichts vom Finder wegführen, der Beleg folgt eine
   Sektion später. Bewusst knapp: was die Subline schon sagt (sechs Ideen,
   Begründung, keine Hunderterlisten), wird hier nicht wiederholt. */
.ff-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    max-width: 46rem;
    margin: -0.75rem auto 1.75rem;
    padding: 0;
    list-style: none;
}
.ff-hero-trust li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--wp--preset--color--text-muted, #6B5F55);
}
.ff-hero-trust li::before {
    content: "\2713";
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--wp--preset--color--brand, #C2603F);
}

/* Finder-Bühne: Positions-Wrapper — die Karten-Optik bringt .ff-filters selbst mit,
   sonst entsteht Karte-in-Karte (und die Ergebnisliste lebt im selben Wrapper) */
.ff-stage {
    max-width: 880px;
    margin: 0 auto;
}
.ff-stage .ff-finder-wrap { padding: 0; }
.ff-stage .ff-filters { box-shadow: 0 12px 40px rgba(23, 58, 58, 0.10); }

/* ── Seitenkopf (page.html) — warmes Band statt nackter H1 ── */
.ff-page-head {
    background: linear-gradient(160deg, #FAF6F1 0%, var(--page-tint, #F2DFD2) 100%);
    padding: 2rem 1rem 1.6rem;
    margin-bottom: 1.5rem;
}
.ff-page-head h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    padding-bottom: 0.7rem;
    position: relative;
}
.ff-page-head h1::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 3px;
    border-radius: 2px;
    background: var(--page-accent, var(--wp--preset--color--brand, #C2603F));
}
.ff-page-head .wp-block-post-excerpt__excerpt {
    margin: 0.9rem 0 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--wp--preset--color--text-muted, #6B5F55);
    max-width: 46rem;
}
.ff-page-head .wp-block-post-excerpt__more-text,
.ff-page-head .wp-block-post-excerpt__more-link { display: none; }

/* ── Schritt-Karten („So funktioniert") — Basis: 1 Spalte ── */
.ff-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
.ff-step {
    background: var(--wp--preset--color--bg, #FAF6F1);
    border: 1px solid var(--wp--preset--color--border, #E7DDD3);
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
}
.ff-step .ff-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem; height: 2.1rem;
    border-radius: 50%;
    background: var(--wp--preset--color--brand, #C2603F);
    color: #fff;
    font-weight: 700;
    font-family: var(--wp--preset--font-family--sans, Inter, sans-serif);
    margin-bottom: 0.65rem;
}
.ff-step h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.ff-step p  { margin: 0; color: var(--wp--preset--color--text-muted, #6B5F55); font-size: 0.95rem; }

/* ── Kategorie-Kacheln — Basis: kompakte Zeile (Icon links), spart Scrollweg ── */
.ff-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 1100px;
    margin: 0 auto;
}
.ff-tile {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    column-gap: 0.9rem;
    align-items: start;
    background: var(--wp--preset--color--surface, #FFFFFF);
    border: 1px solid var(--wp--preset--color--border, #E7DDD3);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: var(--wp--preset--color--text, #2A2622);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ff-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(23, 58, 58, 0.12);
    border-color: var(--wp--preset--color--brand, #C2603F);
}
.ff-tile .ff-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem; height: 2.75rem;
    padding: 0.4rem;
    box-sizing: border-box;
    background: #F6E9E0;
    border-radius: 10px;
    grid-row: span 2;
}
.ff-tile .ff-tile-icon svg { width: 100%; height: 100%; display: block; }
.ff-tile h3 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    color: var(--wp--preset--color--anchor, #173A3A);
}
.ff-tile p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-muted, #6B5F55);
}

/* ── „Frisch kuratiert"-Teaser — Basis: 2 schmale Spalten ── */
.ff-teaser {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    max-width: 1100px;
    margin: 0 auto;
}
.ff-teaser-card {
    background: var(--wp--preset--color--surface, #FFFFFF);
    border: 1px solid var(--wp--preset--color--border, #E7DDD3);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--wp--preset--color--text, #2A2622);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ff-teaser-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(23, 58, 58, 0.12);
}
.ff-teaser-card .ff-teaser-bild {
    aspect-ratio: 4 / 3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--wp--preset--color--border, #E7DDD3);
}
.ff-teaser-card .ff-teaser-bild img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
}
.ff-teaser-card .ff-teaser-body { padding: 0.75rem 0.85rem 0.9rem; }
.ff-teaser-card .ff-teaser-anzeige {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-muted, #6B5F55);
}
.ff-teaser-card h3 {
    font-family: var(--wp--preset--font-family--sans, Inter, sans-serif);
    hyphens: auto;
    overflow-wrap: break-word;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0.25rem 0 0.5rem;
    color: var(--wp--preset--color--text, #2A2622);
}
.ff-teaser-card .ff-teaser-preis {
    font-weight: 700;
    color: var(--wp--preset--color--anchor, #173A3A);
}
.ff-teaser-card .ff-teaser-shop {
    font-size: 0.85rem;
    color: var(--wp--preset--color--text-muted, #6B5F55);
}

/* ── Teaser-Variante „Banner": prominente Fixierungen (ids=/favoriten=) — horizontale Karten.
 *    Doppel-Klassen-Selektor (0,2,0) schlägt die spätere @media-Regel .ff-teaser, ordering-fest. ── */
.ff-teaser.ff-teaser--banner {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 900px;
}
.ff-teaser--banner .ff-teaser-card {
    flex-direction: row;
    border-color: var(--wp--preset--color--brand, #C2603F);
    box-shadow: 0 2px 12px rgba(194, 96, 63, 0.10);
}
.ff-teaser--banner .ff-teaser-card .ff-teaser-bild {
    flex: 0 0 40%;
    aspect-ratio: 4 / 3;
    border-bottom: none;
    border-right: 1px solid var(--wp--preset--color--border, #E7DDD3);
}
.ff-teaser--banner .ff-teaser-card .ff-teaser-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.25rem;
}
.ff-teaser--banner .ff-teaser-card h3 { font-size: 1.05rem; margin-top: 0.35rem; }
.ff-teaser--banner .ff-teaser-card .ff-teaser-preis { font-size: 1.15rem; }
@media (min-width: 900px) {
    .ff-teaser.ff-teaser--banner { grid-template-columns: repeat(2, 1fr); }
}

/* ── Vertrauens-Streifen ── */
.ff-trust {
    background: var(--wp--preset--color--anchor, #173A3A);
    border-radius: 16px;
    color: #E8E2DA;
    padding: 1.75rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.ff-trust h2 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin: 0 0 0.6rem;
}
.ff-trust p { margin: 0; max-width: 46rem; line-height: 1.6; }
.ff-trust a { color: var(--wp--preset--color--brand-accent, #E0A04C); }

/* ── CTA-Banner „Zum Geschenkfinder" (wiederverwendbar, Launch-Seiten) ── */
.ff-cta-banner {
    background: linear-gradient(135deg, #F6E9E0, #F2DFD2);
    border: 1px solid var(--wp--preset--color--border, #E7DDD3);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    max-width: 46rem;
}
.ff-cta-banner p {
    font-family: var(--wp--preset--font-family--serif, 'Source Serif 4', serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--wp--preset--color--anchor, #173A3A);
    margin: 0 0 1rem;
}

/* ── ≥640px: zwei Spalten, Kacheln wieder als Karten ── */
@media (min-width: 640px) {
    .ff-section { padding: 3rem 1.25rem; }
    .ff-page-head { padding: 2.75rem 1.25rem 2.2rem; margin-bottom: 2rem; }
    h2.ff-heading-accent { font-size: 1.65rem; margin-bottom: 1.75rem; }

    .ff-steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

    .ff-tiles { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .ff-tile {
        display: block;
        padding: 1.4rem 1.5rem;
    }
    .ff-tile .ff-tile-icon { width: 3.6rem; height: 3.6rem; padding: 0.55rem; border-radius: 12px; margin: 0 0 0.85rem; }
    .ff-tile h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }

    .ff-teaser { gap: 1.25rem; }
    .ff-teaser-card h3 { font-size: 0.95rem; }
    .ff-teaser-card .ff-teaser-body { padding: 0.9rem 1rem 1rem; }

    .ff-trust { padding: 2.25rem 2rem; }
    .ff-trust h2 { font-size: 1.4rem; }
    .ff-cta-banner { padding: 2rem; }
    .ff-hero { padding: 3.5rem 1.25rem 2.75rem; }
    .ff-hero .ff-hero-sub { font-size: 1.15rem; margin-bottom: 2.25rem; }
}

/* ── ≥900px: volle Raster ── */
@media (min-width: 900px) {
    .ff-section { padding: 3.5rem 1.25rem; }
    h2.ff-heading-accent { font-size: 1.75rem; }
    .ff-tiles  { grid-template-columns: repeat(3, 1fr); }
    .ff-teaser { grid-template-columns: repeat(4, 1fr); }
}

/* ── ≥1100px: Hero-Split — Headline links, Finder rechts, Ergebnisse volle Breite ── */
@media (min-width: 1100px) {
    .ff-hero {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        grid-template-areas:
            "title   stage"
            "sub     stage"
            "trust   stage"
            "results results";
        grid-template-rows: auto auto 1fr auto;
        column-gap: 3rem;
        /* Inhalt auf 1100px kappen (wie Sektionen/Header), Verlauf bleibt vollbreit */
        padding: 4rem max(2rem, calc((100% - 1100px) / 2)) 3.5rem;
    }
    .ff-hero > h1 {
        grid-area: title;
        text-align: left;
        max-width: none;
        margin: 1.5rem 0 1rem;
        justify-self: start;
    }
    .ff-hero > .ff-hero-sub {
        grid-area: sub;
        text-align: left;
        max-width: none;
        margin: 0;
        align-self: start;
        justify-self: start;
    }
    /* Ab hier zweispaltig: die Leiste steht linksbündig unter der Subline und
       füllt den Weißraum neben dem Formular. Untereinander statt nebeneinander,
       weil die linke Spalte nur ~478px breit ist — eine Zeile bräuchte 656px und
       bräche unsauber auf 2+1 um. width:max-content ist nötig, sonst zentriert
       das Grid die geschrumpfte Liste statt sie links auszurichten. */
    .ff-hero > .ff-hero-trust {
        grid-area: trust;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        align-self: start;
        /* Linksbündig über die volle Zellbreite, NICHT über justify-self: das
           blieb hier wirkungslos (start und end lieferten dieselbe Position,
           die Liste blieb in der Zelle zentriert). width:100% + align-items
           setzt die Häkchen zuverlässig auf die Textkante von h1 und Subline. */
        width: 100%;
        max-width: none;
        margin: 1.25rem 0 0;
        gap: 0.4rem;
    }
    /* Bühne + Finder-Wrap auflösen (display:contents): Formular und Ergebnisliste
     * werden eigene Grid-Kinder des Heros — Formular rechts, Ergebnisse als
     * eigene Zeile über die volle Breite (statt Leerraum unter der Headline). */
    .ff-hero > .ff-stage,
    .ff-hero .ff-finder-wrap { display: contents; }
    .ff-hero .ff-filters {
        grid-area: stage;
        align-self: center;
        min-width: 0;
        box-shadow: 0 12px 40px rgba(23, 58, 58, 0.10);
    }
    .ff-hero .ff-results {
        grid-area: results;
        margin-top: 2.5rem;
        min-width: 0;
    }
    /* Fehler-/Sonderzustände des Finders sicher in die Ergebnis-Zeile legen */
    .ff-hero .ff-finder-wrap > :not(.ff-filters):not(.ff-results) { grid-area: results; }
    /* finder.css schaltet ab 1025px Viewport auf 4 Select-Spalten — im
     * schmaleren Formular rechts sind 2 richtig, sonst läuft die Karte über. */
    .ff-stage .ff-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══ Seiten-Themen (v0.5.0) — jede Landingpage mit eigenem Akzent + Symbol.
   Palette bleibt warm-led; Weihnachts-Symbolik NUR auf der Weihnachtsseite. ═══ */

/* Icon-Badge im Kopf-Band — nur auf Seiten mit Thema (sonst kein leeres Badge) */
body.page-id-6 .ff-page-head h1::before,
body.page-id-7 .ff-page-head h1::before,
body.page-id-8 .ff-page-head h1::before,
body.page-id-9 .ff-page-head h1::before,
body.page-id-10 .ff-page-head h1::before,
body.page-id-11 .ff-page-head h1::before,
body.page-id-12 .ff-page-head h1::before {
    content: "";
    display: block;
    width: 3.4rem; height: 3.4rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.82);
    background-image: var(--page-icon);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 58%;
    box-shadow: 0 2px 10px rgba(23, 58, 58, 0.08);
}

/* Geburtstag — Markenkern Terrakotta, Torte */
body.page-id-7 {
    --page-accent: #C2603F;
    --page-tint: #F2DFD2;
    --page-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="3" r="1.2" fill="%23E0A04C"/><rect x="11.3" y="4.6" width="1.4" height="3.4" rx="0.7" fill="%23E0A04C"/><path d="M7 9.5h10a1.5 1.5 0 011.5 1.5v3h-13v-3A1.5 1.5 0 017 9.5z" fill="%23C2603F"/><path d="M5 15.5h14a1 1 0 011 1V20a1 1 0 01-1 1H5a1 1 0 01-1-1v-3.5a1 1 0 011-1z" fill="%23C2603F"/></svg>');
}

/* Weihnachten — festliches Teal + Gold (bewusst kein Rot-Grün) */
body.page-id-12 {
    --page-accent: #C08A2D;
    --page-tint: #E3EEE9;
    --page-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="2.7" r="1.1" fill="%23E0A04C"/><path d="M12 4.2l4.4 5.8H7.6z" fill="%230D6E63"/><path d="M12 8.2l5.4 7.3H6.6z" fill="%230D6E63"/><rect x="10.9" y="15.5" width="2.2" height="3.8" rx="0.7" fill="%23C2603F"/></svg>');
}
body.page-id-12 .ff-page-head {
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l2.4 6.1 6.5.3-5.1 4.1 1.7 6.3L12 15.2l-5.5 3.6 1.7-6.3-5.1-4.1 6.5-.3z" fill="%23E0A04C" opacity="0.55"/></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l2.4 6.1 6.5.3-5.1 4.1 1.7 6.3L12 15.2l-5.5 3.6 1.7-6.3-5.1-4.1 6.5-.3z" fill="%23E0A04C" opacity="0.35"/></svg>'),
        linear-gradient(160deg, #FAF6F1 0%, #E3EEE9 100%);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: right 8% top 28%, right 16% top 62%, 0 0;
    background-size: 30px, 18px, cover;
}

/* Für Frauen — weiches, helles Terrakotta/Rosé, Tulpe */
body.page-id-8 {
    --page-accent: #BE6E57;
    --page-tint: #F8E4DE;
    --page-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.2 4.8c1.6 1.1 2.7 1.1 3.8-1 1.1 2.1 2.2 2.1 3.8 1 .6 3-.7 6-3.8 6s-4.4-3-3.8-6z" fill="%23C2603F"/><rect x="11.35" y="10.5" width="1.3" height="9" rx="0.65" fill="%230D6E63"/><path d="M11.6 16.8c-2.7-.3-4.5-1.9-5.1-4.2 2.7.3 4.5 1.9 5.1 4.2z" fill="%230D6E63"/><path d="M12.4 14.6c2.7-.3 4.5-1.9 5.1-4.2-2.7.3-4.5 1.9-5.1 4.2z" fill="%230D6E63"/></svg>');
}

/* Für Männer — Anchor-Teal, klare Kante, Kompass */
body.page-id-9 {
    --page-accent: #173A3A;
    --page-tint: #E7EDEB;
    --page-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9.2" fill="%23173A3A"/><circle cx="12" cy="12" r="6.9" fill="%23FAF6F1"/><path d="M12 6.6l2 5.4h-4z" fill="%23173A3A"/><path d="M12 17.4l-2-5.4h4z" fill="%23E0A04C"/></svg>');
}

/* Unter 50 € — Bernstein/Gold, Preisschild */
body.page-id-10 {
    --page-accent: #C4842E;
    --page-tint: #F7EBD9;
    --page-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.9 2.8h6.3a1 1 0 011 1v6.3a1.6 1.6 0 01-.47 1.13l-7.7 7.7a1.6 1.6 0 01-2.26 0l-5.1-5.1a1.6 1.6 0 010-2.26l7.7-7.7a1.6 1.6 0 011.13-.47z" fill="%23C4842E"/><circle cx="16.7" cy="7.3" r="1.5" fill="%23FAF6F1"/><text x="10.2" y="16.6" font-family="Inter, system-ui, sans-serif" font-size="7.4" font-weight="700" fill="%23FAF6F1" text-anchor="middle">€</text></svg>');
}

/* Last-Minute — kräftiges Terrakotta, Wecker */
body.page-id-11 {
    --page-accent: #B3472B;
    --page-tint: #F5DCD1;
    --page-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4.2 5.9l3.2-2.7 1.3 1.5-3.2 2.7z" fill="%23B3472B"/><path d="M19.8 5.9l-3.2-2.7-1.3 1.5 3.2 2.7z" fill="%23B3472B"/><circle cx="12" cy="13.2" r="7.8" fill="%23B3472B"/><circle cx="12" cy="13.2" r="5.7" fill="%23FAF6F1"/><path d="M11.3 9.6h1.4v3.6l2.9 1.7-.7 1.3-3.6-2.1z" fill="%23E0A04C"/></svg>');
}

/* Finder-Seite — neutrales Werkzeug, CTA-Teal, Freudepunkt */
body.page-id-6 {
    --page-accent: #0D6E63;
    --page-tint: #E9F1EF;
    --page-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><clipPath id="p"><circle cx="32" cy="32" r="30"/></clipPath></defs><circle cx="32" cy="32" r="30" fill="%23C2603F"/><g clip-path="url(%23p)"><rect x="28" y="0" width="8" height="64" fill="%23FAF6F1"/><rect x="0" y="28" width="64" height="8" fill="%23FAF6F1"/></g><circle cx="32" cy="32" r="6" fill="%23E0A04C"/></svg>');
}

/* CTA-Banner nimmt den Seiten-Akzent als Oberkante mit */
.ff-cta-banner {
    border-top: 3px solid var(--page-accent, var(--wp--preset--color--brand, #C2603F));
}

/* ── Sponsoren-Block (bezahlte Platzierung) ─────────────────────────────────
 * Optisch abgesetzt, damit die Trennung von redaktionellem Inhalt auf einen Blick
 * erkennbar ist (§ 5a Abs. 4 UWG / § 22 MStV). Karten nutzen bewusst die vertrauten
 * Teaser-Stile — die Kennzeichnung leistet die Abgrenzung, nicht ein Fremd-Design. */
.ff-sponsoren {
    margin: 3rem auto 0;
    max-width: 1100px;
    padding: 1.5rem 1.25rem 1.75rem;
    background: var(--wp--preset--color--bg, #FAF6F1);
    border: 1px solid var(--wp--preset--color--border, #E7DDD3);
    border-radius: 14px;
}

.ff-sponsoren-titel {
    font-family: var(--wp--preset--font-family--serif, Georgia, serif);
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--wp--preset--color--anchor, #173A3A);
    margin: 0 0 0.35rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ff-sponsoren-titel::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--wp--preset--color--brand, #C2603F);
    flex: none;
}

.ff-sponsoren-note {
    font-family: var(--wp--preset--font-family--sans, Inter, system-ui, sans-serif);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--wp--preset--color--text-muted, #6B5F55);
}

.ff-sponsoren-hinweis {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--wp--preset--color--text-muted, #6B5F55);
    max-width: 60ch;
}

/* Ein Satz zum Produkt statt Preis — Preise werden bewusst nicht geführt (PAngV). */
.ff-sponsoren .ff-sponsor-text {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--wp--preset--color--text, #2F2A26);
}

.ff-sponsoren .ff-teaser-shop {
    display: block;
    margin-top: 0.4rem;
}

/* ── Sponsoren: Banner-Variante (klassisches Werbeformat) ──────────────────
 * Pro Platzierung umschaltbar (Feld „Darstellung"). Der Banner nimmt die volle
 * Grid-Zeile ein, damit Banner und Produktkarten im selben Block gemischt werden
 * können, ohne dass das Raster zerfällt. */
.ff-sponsoren .ff-teaser-card.ff-sponsor-banner {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    border-color: var(--wp--preset--color--brand, #C2603F);
    box-shadow: 0 2px 12px rgba(194, 96, 63, 0.10);
}

.ff-sponsoren .ff-sponsor-banner .ff-teaser-bild {
    flex: 0 0 42%;
    max-width: 42%;
    aspect-ratio: auto;                 /* Werbemittel bringen ihr eigenes Format mit */
    min-height: 150px;
    border-bottom: none;
    border-right: 1px solid var(--wp--preset--color--border, #E7DDD3);
    padding: 0.5rem;
}

.ff-sponsoren .ff-sponsor-banner .ff-teaser-bild img {
    max-height: 260px;
}

.ff-sponsoren .ff-sponsor-banner .ff-teaser-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.15rem 1.4rem;
}

.ff-sponsoren .ff-sponsor-banner h3 {
    font-size: 1.15rem;
    margin-top: 0.4rem;
}

.ff-sponsoren .ff-sponsor-banner .ff-sponsor-text {
    font-size: 0.95rem;
    max-width: 52ch;
}

/* Mobil gestapelt — nebeneinander wären beide Hälften zu schmal. */
@media (max-width: 640px) {
    .ff-sponsoren .ff-teaser-card.ff-sponsor-banner {
        flex-direction: column;
    }
    .ff-sponsoren .ff-sponsor-banner .ff-teaser-bild {
        flex: none;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--wp--preset--color--border, #E7DDD3);
    }
}

/* ── EEAT-Byline ─────────────────────────────────────────────────────────────
 * Sitzt zwischen Kopf-Band und Fließtext. Bewusst zurückhaltend: Sie soll
 * Verantwortlichkeit zeigen, nicht mit der H1 konkurrieren. Der Seiten-Akzent
 * (--page-accent) verbindet sie optisch mit dem Kopf-Band darüber.
 */
.ff-byline {
    margin: 0 0 1.75rem;
    padding-left: 0.85rem;
    border-left: 3px solid var(--page-accent, var(--wp--preset--color--brand, #C2603F));
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--wp--preset--color--anchor, #173A3A);
    opacity: 0.85;
}

.ff-byline strong {
    font-weight: 600;
}

.ff-byline a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ff-byline a:hover {
    color: var(--wp--preset--color--brand, #C2603F);
}

/* Trenner ausblenden, wenn die Zeile mobil umbricht — sonst hängt ein
 * einzelner Punkt am Zeilenanfang. */
.ff-byline-sep {
    opacity: 0.5;
}

@media (max-width: 480px) {
    .ff-byline {
        font-size: 0.85rem;
    }
}
