/* ==========================================================================
   LOKANES CSS-Modul: ratgeber-hub.css
   Lädt nur auf /ratgeber/. Seitenblock: wordpress/page-blocks/ratgeber-hub.html.
   Live als FluentSnippets-CSS-Snippet "LOKANES CSS – ratgeber-hub" (Priorität 920, als Datei),
   Ladebedingung: Seiten-ID des Hubs.
   Die Seite lädt außerdem global.css (u. a. KI-Kennzeichnung .lokanes-ai-label) und geschenkefinder.css
   (Inhalt des Geschenkefinders). ratgeber.css der Guides wird nicht gebraucht.

   Alle Regeln unter .lokanes-ratgeber-hub. Einzige Ausnahme: der schwebende Geschenkefinder-Button
   aus HTML-Block 36711 liegt außerhalb des Wrappers (Regel am Ende dieser Datei).
   Farben, Schriften und Rundungen wie in den Guides.
   Breiten: Inhalt bis 1200 px, Lesetext bis 640 px.
   Breakpoints: Desktop ab 1025 px, Tablet 768–1024 px (zweispaltige Kompositionen ab 901 px), Mobile bis 767 px.
   ========================================================================== */

.lokanes-ratgeber-hub {
    --hub-copper: #cc9e7e;
    --hub-copper-text: #946247; /* Text auf hellem Grund, wie in den Guides */
    --hub-ink: #1a1a1a;
    --hub-text: #4a4a4a;
    --hub-line: rgba(204, 158, 126, 0.35);
    --hub-tint: rgba(204, 158, 126, 0.07);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 80px;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
    font-style: normal;
    color: var(--hub-text);
}

.lokanes-ratgeber-hub *,
.lokanes-ratgeber-hub *::before,
.lokanes-ratgeber-hub *::after {
    box-sizing: border-box;
}

/* --- Einstieg: Titel links, Einleitung rechts auf der Grundlinie --- */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__intro {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 64px;
    padding-top: 72px;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hub-copper-text);
}

/* Kurze Kupferlinie vor der Eyebrow als Editorial-Akzent. */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__eyebrow::before {
    content: "";
    flex: none;
    width: 36px;
    height: 1px;
    background-color: var(--hub-copper);
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__title {
    margin: 0;
    font-family: 'Georgia', serif;
    font-size: 62px;
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--hub-ink);
    text-wrap: balance;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__lead {
    max-width: 440px;
    margin: 0 0 6px;
    padding-left: 22px;
    border-left: 1px solid var(--hub-copper);
    font-family: 'Georgia', serif;
    font-size: 19px;
    line-height: 1.6;
    color: var(--hub-text);
}

/* --- Abschnittskennzeichnung: kleine Kupferzeile mit feiner Linie --- */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 88px 0 28px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--hub-copper-text);
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background-color: var(--hub-line);
}

/* --- Karten: gesamte Karte klickbar über den Titel-Link (eine Verlinkung pro Karte) --- */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card {
    position: relative;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__frame {
    overflow: hidden;
    border-radius: 14px;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.4s ease;
}

/* Redaktionelle Kategorie über dem Titel. */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__category {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hub-copper-text);
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card-title {
    margin: 0 0 14px;
    font-family: 'Georgia', serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: normal;
    text-transform: none;
    color: var(--hub-ink);
    text-wrap: balance;
}

.lokanes-ratgeber-hub a.lokanes-ratgeber-hub__card-link {
    color: var(--hub-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Die Klickfläche des Titel-Links deckt die ganze Karte ab. */
.lokanes-ratgeber-hub a.lokanes-ratgeber-hub__card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 14px;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card-text {
    max-width: 520px;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--hub-text);
}

/* Sichtbarer Hinweis "Ratgeber lesen"; der Link selbst ist der Titel. */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: var(--hub-ink);
    text-decoration: underline;
    text-decoration-color: var(--hub-copper);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__more::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid var(--hub-copper);
    border-right: 1.5px solid var(--hub-copper);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

/* KI-Kennzeichnung unter dem Bild wie in Guide 01, oberhalb der Karten-Klickfläche. */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__media > .lokanes-ai-label {
    position: relative;
    inset: auto;
    z-index: 2;
    margin-top: 10px;
    max-width: 100%;
}

/* Hover nur bei Maus; Tastaturfokus umrahmt die ganze Karte. */
@media (hover: hover) and (pointer: fine) {
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card:hover .lokanes-ratgeber-hub__img {
        transform: scale(1.03);
    }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card:hover a.lokanes-ratgeber-hub__card-link {
        color: var(--hub-copper-text);
    }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card:hover .lokanes-ratgeber-hub__more::after {
        transform: translateX(4px) rotate(45deg);
    }
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card:has(a.lokanes-ratgeber-hub__card-link:focus-visible) {
    outline: 2px solid var(--hub-copper);
    outline-offset: 8px;
    border-radius: 14px;
}

/* --- Hauptkarte Guide 01: großes Bild, Text auf getönter Fläche --- */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: 64px;
    padding: 48px;
    border-radius: 16px;
    background-color: var(--hub-tint);
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured .lokanes-ratgeber-hub__body {
    padding: 8px 0;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured .lokanes-ratgeber-hub__category {
    margin-bottom: 18px;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured .lokanes-ratgeber-hub__card-title {
    margin-bottom: 20px;
    font-size: 38px;
    line-height: 1.15;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured .lokanes-ratgeber-hub__card-text {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.7;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured a.lokanes-ratgeber-hub__card-link::after {
    border-radius: 16px;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured:has(a.lokanes-ratgeber-hub__card-link:focus-visible) {
    border-radius: 16px;
}

/* --- Weitere Ratgeber: zwei Spalten, neue Karten ordnen sich automatisch ein --- */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 56px;
}

/* Etwas flachere Bilder, damit Bild und Text ausgewogen wirken (gleiche Bildquellen). */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__list .lokanes-ratgeber-hub__img {
    aspect-ratio: 3 / 2;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__list .lokanes-ratgeber-hub__body {
    padding-top: 28px;
}

/* --- Abschluss: eigener Bereich zwischen zwei Linien, Text links, Aktionen rechts --- */
.lokanes-ratgeber-hub .lokanes-ratgeber-hub__finder {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 48px;
    margin-top: 112px;
    padding: 64px 0;
    border-top: 1px solid var(--hub-copper);
    border-bottom: 1px solid var(--hub-line);
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__h2 {
    margin: 0 0 14px;
    font-family: 'Georgia', serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: normal;
    text-transform: none;
    color: var(--hub-ink);
    text-wrap: balance;
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__text {
    max-width: 520px;
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--hub-text);
}

.lokanes-ratgeber-hub .lokanes-ratgeber-hub__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-width: 320px;
    width: 100%;
    justify-self: end;
}

/* Knöpfe in der Form der übrigen LOKANES-Buttons (Pille, 1 px Linie). */
.lokanes-ratgeber-hub a.lokanes-ratgeber-hub__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 32px;
    border: 1px solid var(--hub-ink);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.lokanes-ratgeber-hub a.lokanes-ratgeber-hub__btn--primary {
    background-color: var(--hub-ink);
    color: #fff;
}

.lokanes-ratgeber-hub a.lokanes-ratgeber-hub__btn--secondary {
    background-color: transparent;
    color: var(--hub-ink);
}

@media (hover: hover) and (pointer: fine) {
    .lokanes-ratgeber-hub a.lokanes-ratgeber-hub__btn--primary:hover {
        border-color: var(--hub-copper);
        background-color: var(--hub-copper);
        color: var(--hub-ink);
        box-shadow: 0 5px 14px rgba(26, 26, 26, 0.12);
        transform: translateY(-2px);
    }

    .lokanes-ratgeber-hub a.lokanes-ratgeber-hub__btn--secondary:hover {
        background-color: var(--hub-ink);
        color: var(--hub-copper);
        box-shadow: 0 5px 14px rgba(26, 26, 26, 0.1);
        transform: translateY(-2px);
    }
}

.lokanes-ratgeber-hub a.lokanes-ratgeber-hub__btn:focus-visible {
    outline-offset: 4px;
}

/* --- Tablet (768–1024 px) --- */
@media (max-width: 1024px) {
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__intro { gap: 40px; padding-top: 56px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__title { font-size: 50px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__lead { font-size: 18px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__divider { margin-top: 72px; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured { gap: 40px; padding: 36px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured .lokanes-ratgeber-hub__card-title { font-size: 33px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured .lokanes-ratgeber-hub__card-text { font-size: 17px; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__list { gap: 56px 36px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card-title { font-size: 25px; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__finder { gap: 36px; margin-top: 96px; padding: 56px 0; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__h2 { font-size: 33px; }
}

/* Unter 901 px: Kompositionen stapeln. */
@media (max-width: 900px) {
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__lead { max-width: 600px; margin: 0; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured .lokanes-ratgeber-hub__body { padding: 0; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__finder {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__actions {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: none;
        justify-self: start;
    }
}

/* --- Mobile (bis 767 px) --- */
@media (max-width: 767px) {
    .lokanes-ratgeber-hub { padding: 0 16px 64px; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__intro { gap: 24px; padding-top: 32px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__eyebrow { margin-bottom: 16px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__title { font-size: 38px; line-height: 1.1; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__lead { padding-left: 16px; font-size: 17px; line-height: 1.6; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__divider { gap: 16px; margin: 56px 0 20px; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__img,
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__frame,
    .lokanes-ratgeber-hub a.lokanes-ratgeber-hub__card-link::after { border-radius: 10px; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured {
        gap: 22px;
        margin: 0 -16px;
        padding: 16px 16px 28px;
        border-radius: 10px;
    }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured a.lokanes-ratgeber-hub__card-link::after,
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured:has(a.lokanes-ratgeber-hub__card-link:focus-visible) { border-radius: 10px; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured .lokanes-ratgeber-hub__category { margin-bottom: 12px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured .lokanes-ratgeber-hub__card-title { margin-bottom: 14px; font-size: 28px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card--featured .lokanes-ratgeber-hub__card-text { margin-bottom: 22px; font-size: 16px; line-height: 1.65; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__list { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__list .lokanes-ratgeber-hub__body { padding-top: 20px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__category { margin-bottom: 10px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card-title { margin-bottom: 12px; font-size: 24px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card-text { margin-bottom: 18px; line-height: 1.65; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card:has(a.lokanes-ratgeber-hub__card-link:focus-visible) { outline-offset: 4px; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__finder { gap: 24px; margin-top: 72px; padding: 44px 0 48px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__h2 { font-size: 28px; }
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__text { font-size: 16px; line-height: 1.65; }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__actions { flex-direction: column; align-items: stretch; }
    .lokanes-ratgeber-hub a.lokanes-ratgeber-hub__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__img,
    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__more::after,
    .lokanes-ratgeber-hub a.lokanes-ratgeber-hub__btn {
        transition: none;
    }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card:hover .lokanes-ratgeber-hub__img,
    .lokanes-ratgeber-hub a.lokanes-ratgeber-hub__btn:hover {
        transform: none;
    }

    .lokanes-ratgeber-hub .lokanes-ratgeber-hub__card:hover .lokanes-ratgeber-hub__more::after {
        transform: rotate(45deg);
    }
}

/* ==========================================================================
   Schwebender Geschenkefinder-Button nur auf dem Hub ausblenden.
   Der Button a#lokanes-gf-trigger kommt aus HTML-Block 36711 und liegt außerhalb des Hub-Wrappers.
   Doppelt begrenzt: Diese Datei lädt nur auf /ratgeber/, und die Regel greift nur auf einer Seite,
   die den Hub-Wrapper enthält. Finder-Panel (#lokanes-gf-overlay), Hintergrund und Skripte bleiben unberührt;
   "Geschenkefinder starten" öffnet den Finder weiterhin über data-gf-open.
   !important, weil der Block seine eigenen Stile inline mitbringt.
   ========================================================================== */
body:has(.lokanes-ratgeber-hub) #lokanes-gf-trigger {
    display: none !important;
}
