/* ==========================================================================
   LOKANES CSS-Modul: geschenkefinder.css
   Lädt auf Seiten mit Geschenkefinder: Startseite, /geschenksets/, /firmenkunden/,
   /geschenk-verschicken/, /auspackerlebnis/ und 404-Seite.
   Inhalt: Geschenkefinder (HTML-Block 36711 / 36741) mit Karte, Tabs und Ergebnisliste.

   Einbindung und Ladereihenfolge: ../lokanes-css.php (global, geschenkefinder, Seitenmodul).
   Ein Seitenmodul lädt immer nach global.css. Hinweise zur Pflege: ../README.md
   Hervorgegangen aus dem früheren WoodMart "Global Custom CSS" (Stand 12.10.2026);
   Regeln und Abschnittskommentare sind unverändert übernommen.
   ========================================================================== */

/* ===================================================
   Filter der Produkte mitttels Karte
=================================================== */

.lokanes-gf-container { font-family: 'Jost', sans-serif; padding: 10px; max-width: 800px; margin: 0 auto; }
.gf-header { margin-bottom: 25px; text-align: center; }
.lokanes-gf-container input[type="radio"] { display: none !important; opacity: 0 !important; visibility: hidden !important; position: absolute !important; width: 0 !important; height: 0 !important; }
.gf-step-box { background-color: rgba(204, 158, 126, 0.05); border: 1px solid rgba(204, 158, 126, 0.2); border-radius: 16px; padding: 30px; margin-bottom: 20px; transition: opacity 0.5s ease, transform 0.5s ease; }
.gf-question { font-family: 'Georgia', serif; font-size: 22px; margin-top: 0; margin-bottom: 20px; color: #1a1a1a; }
.gf-sub-question { font-family: 'Jost', sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: #666; margin-bottom: 15px; }
.gf-disabled { opacity: 0.35; pointer-events: none; transform: translateY(5px); }
.gf-active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.gf-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.gf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gf-card { background-color: rgba(255, 255, 255, 0.65); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 5px 15px rgba(0,0,0,0.02); border-radius: 12px; padding: 25px 20px; cursor: pointer; transition: all 0.3s ease; margin: 0; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.gf-card:hover { border-color: #cc9e7e; box-shadow: 0 20px 40px rgba(0,0,0,0.06); transform: translateY(-4px); }
.lokanes-gf-container input[type="radio"]:checked + label.gf-card { background-color: #e6ddd7; border: 1px solid #cc9e7e; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(0); }
.gf-card-title { font-family: 'Georgia', serif; font-size: 18px; margin: 0 0 8px 0; color: #1a1a1a; }
.gf-card-desc { margin: 0; font-size: 13.5px; color: #555; line-height: 1.4; }
.gf-card-small { padding: 15px 10px; }
@media (max-width: 600px) { .gf-step-box { padding: 20px; } .gf-grid-2, .gf-grid-3 { grid-template-columns: 1fr; } }

/* =========================================================
   TABS (Anlass / Region)
========================================================= */
.gf-tab-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(204, 158, 126, 0.2);
    padding-bottom: 15px;
}

.gf-tab-btn {
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gf-tab-btn:hover { color: #1a1a1a; }

.gf-tab-btn.active {
    color: #cc9e7e;
    font-weight: 600;
}

.gf-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #cc9e7e;
}
/* =========================================================
   FIX: Verhindert das Kollabieren der SVG-Karte auf Mobile
========================================================= */



.gf-map-path.gf-map-active path,
.gf-map-path.gf-map-active polygon {
    fill: #cc9e7e !important;
    filter: drop-shadow(0px 8px 12px rgba(204, 158, 126, 0.3));
}

.lokanes-toolbar-sorter {
    grid-column: 3; /* Setzt das Dropdown in die rechte Spalte... */
    display: flex;
    justify-content: flex-end; /* ...und drückt es ganz an den rechten Rand */
    align-items: center;
    gap: 15px;
    height: 56px; 
}

/* Mobile Anpassung (Untereinander stapeln, wenn der Platz eng wird) */
@media (max-width: 900px) {
    .lokanes-toolbar-sorter {
        justify-content: center;
        height: auto;
    }
}

/* ==========================================================================
   GESCHENKSET-HUB
   Seite: wordpress/page-blocks/geschenkset-hub.html
   Produktgrid: [lokanes_gift_hub_grid] (geschenkset-hub.code-snippets.php)
   Alle Regeln unter .lokanes-gift-hub gescoped (Ausnahme: Kartentitel der
   Geschenkefinder-Ergebnisse unter .lokanes-gf-results).
========================================================================== */

.lokanes-gift-hub {
    --gift-hub-copper: #cc9e7e;
    --gift-hub-ink: #1a1a1a;
    --gift-hub-text: #4a4a4a;
    --gift-hub-muted: #888;
    --gift-hub-line: rgba(204, 158, 126, 0.35);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
    color: var(--gift-hub-text);
}

/* Das Produktgrid des Shortcodes bringt denselben Wrapper mit.
   Im Seitenblock verschachtelt darf er keinen zweiten Rand erzeugen. */
.lokanes-gift-hub .lokanes-gift-hub {
    max-width: none;
    padding: 0;
}

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

.lokanes-gift-hub ul,
.lokanes-gift-hub ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lokanes-gift-hub li {
    margin: 0;
}

.lokanes-gift-hub a:focus-visible {
    outline: 2px solid var(--gift-hub-copper);
    outline-offset: 4px;
}

/* --- Produktgrid --- */
.lokanes-gift-hub .lokanes-gift-hub__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 56px 32px;
}

.lokanes-gift-hub .lokanes-gift-hub__card {
    flex: 0 1 calc((100% - 64px) / 3);
    max-width: calc((100% - 64px) / 3);
}

.lokanes-gift-hub .lokanes-gift-hub__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.lokanes-gift-hub .lokanes-gift-hub__card-media {
    position: relative;
    width: 82%;
    margin: 0 auto 24px;
    border-radius: 8px;
    overflow: hidden;
}

.lokanes-gift-hub .lokanes-gift-hub__card-img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lokanes-gift-hub .lokanes-gift-hub__card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.lokanes-gift-hub .lokanes-gift-hub__card-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gift-hub-muted);
}

/* Titel: Beschreibung zuerst, Setname als zweite, ruhigere Zeile. */
.lokanes-gift-hub .lokanes-gift-hub__card-title {
    margin: 0 0 12px;
    font-family: 'Georgia', serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    color: var(--gift-hub-copper);
}

.lokanes-gift-hub .lokanes-gift-hub__card-title-main,
.lokanes-gift-hub .lokanes-gift-hub__card-title-sub {
    display: block;
}

.lokanes-gift-hub .lokanes-gift-hub__card-title-sub {
    margin-top: 4px;
    font-size: 16px;
    font-style: italic;
    line-height: 1.35;
    color: var(--gift-hub-text);
}

/* Gedankenstrich bleibt im Text (Screenreader, Kopieren), ist aber nicht sichtbar. */
.lokanes-gift-hub .lokanes-gift-hub__card-title-sep {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.lokanes-gift-hub .lokanes-gift-hub__card-line {
    max-width: 320px;
    margin: 0 auto 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gift-hub-text);
}

.lokanes-gift-hub .lokanes-gift-hub__card-price-total,
.lokanes-gift-hub .lokanes-gift-hub__card-price-base {
    display: block;
}

.lokanes-gift-hub .lokanes-gift-hub__card-price-base {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--gift-hub-muted);
}

.lokanes-gift-hub .lokanes-gift-hub__card-cta {
    margin-top: 0;
}

.lokanes-gift-hub .lokanes-gift-hub__card-link:hover .lokanes-gift-hub__card-img {
    transform: scale(1.04);
}

.lokanes-gift-hub .lokanes-gift-hub__card-link:hover .lokanes-gift-hub__card-map {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--gift-hub-copper);
}

.lokanes-gift-hub .lokanes-gift-hub__card-link:hover .lokanes-gift-hub__card-cta {
    background-color: #2a2a2a !important;
    color: var(--gift-hub-copper) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* --- Geschenkefinder-Ergebnisse: Kartentitel wie auf den Hub-Karten --- */
.lokanes-gf-results .hybrid-title {
    font-size: 23px;
    line-height: 1.25;
}


/* ==========================================================================
   GESCHENKEFINDER: ERGEBNISSE MOBIL
   Ergebniskarten des Finders (.lokanes-hybrid-row.lokanes-gf-results aus
   geschenkfinder-fragen-und-karte.code-snippets.php) stehen auf Mobile
   untereinander statt im horizontalen Swipe-Karussell. Gilt für B2C und
   Firmenkunden. Ab 768px bleibt das Karussell, ab 993px das Dreier-Grid.
========================================================================== */

@media (max-width: 767px) {
    .lokanes-hybrid-row.lokanes-gf-results {
        flex-direction: column;
        align-items: center;
        gap: 44px;
        padding: 0;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    /* !important, weil die Kartenbreite des Karussells (55vw) so gesetzt ist. */
    .lokanes-hybrid-row.lokanes-gf-results > *,
    .lokanes-hybrid-row.lokanes-gf-results .lokanes-hybrid-card-link {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 420px !important;
    }
}

@media (max-width: 1024px) {
    .lokanes-gift-hub .lokanes-gift-hub__card {
        flex-basis: calc((100% - 32px) / 2);
        max-width: calc((100% - 32px) / 2);
    }
}

/* --- Mobile --- */
@media (max-width: 767px) {
    .lokanes-gift-hub { padding: 0 16px; }
    .lokanes-gift-hub .lokanes-gift-hub__grid { gap: 48px; }
    .lokanes-gift-hub .lokanes-gift-hub__card {
        flex-basis: 100%;
        max-width: 420px;
    }
}


/* ==========================================================================
   GESCHENKEFINDER: ANLASS & MOMENT
   Block: wordpress/page-blocks/geschenkefinder.html (HTML-Block 36741)
   Dritter Tab und Anzeige des gewählten Anlasses. Unter .lokanes-gf-container
   gescoped, damit die Regeln das <style> im Block übersteuern.
========================================================================== */

.lokanes-gf-container .gf-tab-toggle {
    flex-wrap: wrap;
    gap: 4px 15px;
}

.lokanes-gf-container .gf-occasion-chip {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: -10px 0 20px;
    font-size: 15px;
    color: #666;
}

.lokanes-gf-container .gf-occasion-chip strong {
    font-family: 'Georgia', serif;
    font-size: 17px;
    font-weight: 400;
    color: #1a1a1a;
}

.lokanes-gf-container .gf-occasion-change {
    padding: 6px 4px;
    background: none;
    border: 0;
    border-bottom: 1px solid #cc9e7e;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a1a;
    cursor: pointer;
}

.lokanes-gf-container .gf-occasion-change:hover {
    color: #cc9e7e;
}

/* Firmenkunden-Anlässe: Buttons im Stil der Auswahlkarten (.gf-card), per Tastatur bedienbar.
   Die Regeln setzen die Theme-Buttonstile zurück, damit die Karten wie die übrigen aussehen. */
.lokanes-gf-container .gf-occasion-btn,
.lokanes-gf-container .gf-occasion-btn:hover,
.lokanes-gf-container .gf-occasion-btn:focus,
.lokanes-gf-container .gf-occasion-btn:active {
    width: 100%;
    min-height: 0;
    background-color: rgba(255, 255, 255, 0.65);
    font-family: 'Jost', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    color: #555;
}

.lokanes-gf-container .gf-occasion-btn .gf-card-title,
.lokanes-gf-container .gf-occasion-btn .gf-card-desc {
    display: block;
}

/* Gleiches Schriftgewicht wie die h4-Titel der übrigen Karten. */
.lokanes-gf-container .gf-occasion-btn .gf-card-title {
    font-weight: 300;
}

/* Gewählter Anlass: wie eine angewählte Auswahlkarte. */
.lokanes-gf-container .gf-occasion-btn[aria-pressed="true"],
.lokanes-gf-container .gf-occasion-btn[aria-pressed="true"]:hover,
.lokanes-gf-container .gf-occasion-btn[aria-pressed="true"]:focus {
    background-color: #e6ddd7;
    border: 1px solid #cc9e7e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}

.lokanes-gf-container .gf-occasion-btn:focus-visible,
.lokanes-gf-container .gf-occasion-change:focus-visible {
    outline: 2px solid #cc9e7e;
    outline-offset: 3px;
}

/* Zwischen 801 und 1100px ist das Off-Canvas nur 55% breit: Firmenkunden-Anlässe dort einspaltig,
   damit Titel und Text nicht in schmale Spalten umbrechen. (Bis 600px ist der Finder ohnehin einspaltig.) */
@media (min-width: 801px) and (max-width: 1100px) {
    .lokanes-gf-container .gf-occasion-options[data-gf-context="b2b"] {
        grid-template-columns: 1fr;
    }
    .lokanes-gf-container .gf-occasion-btn {
        padding: 18px 20px;
    }
}

/* Das Off-Canvas ist bis ca. 1200px Fensterbreite zu schmal für drei Tabs in voller Größe. */
@media (max-width: 1200px) {
    .lokanes-gf-container .gf-tab-toggle {
        gap: 2px 6px;
        padding-bottom: 8px;
    }
    .lokanes-gf-container .gf-tab-btn {
        padding: 9px 6px;
        font-size: 12.5px;
        letter-spacing: 0.5px;
    }
    .lokanes-gf-container .gf-tab-btn.active::after {
        bottom: 2px;
    }
}



/* ==========================================================================
   GESCHENKEFINDER V2
   Block: wordpress/page-blocks/geschenkefinder.html (HTML-Block 36741)
   AJAX: wordpress/code-snippets/geschenkfinder-fragen-und-karte.code-snippets.php
   Zweck: Formular, Anlass & Moment, Entdeckungsreise mit Live-Trefferzahl.
   Alle Finder-Regeln unter .lokanes-gf-container gescoped.
========================================================================== */

.lokanes-gf-container {
    font-family: 'Jost', sans-serif;
    padding: 10px;
    max-width: 800px;
    margin: 0 auto;
    color: #4a4a4a;
}

.lokanes-gf-container *,
.lokanes-gf-container *::before,
.lokanes-gf-container *::after {
    box-sizing: border-box;
}

.lokanes-gf-container .gf-header {
    margin-bottom: 25px;
    text-align: center;
}

.lokanes-gf-container input[type="radio"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
}

/* --- Schritte & Auswahlkarten --- */
.lokanes-gf-container .gf-step-box {
    background-color: rgba(204, 158, 126, 0.05);
    border: 1px solid rgba(204, 158, 126, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lokanes-gf-container .gf-question {
    font-family: 'Georgia', serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.lokanes-gf-container .gf-sub-question {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 15px;
}

.lokanes-gf-container .gf-disabled {
    opacity: 0.35;
    pointer-events: none;
    transform: translateY(5px);
}

.lokanes-gf-container .gf-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lokanes-gf-container .gf-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.lokanes-gf-container .gf-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.lokanes-gf-container .gf-card {
    background-color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.lokanes-gf-container .gf-card:hover {
    border-color: #cc9e7e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.lokanes-gf-container input[type="radio"]:checked + label.gf-card {
    background-color: #e6ddd7;
    border: 1px solid #cc9e7e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}

.lokanes-gf-container .gf-card-title {
    font-family: 'Georgia', serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.lokanes-gf-container .gf-card-desc {
    margin: 0;
    font-size: 13.5px;
    color: #555;
    line-height: 1.4;
}

.lokanes-gf-container .gf-card-small {
    padding: 15px 10px;
}

/* --- Tabs --- */
.lokanes-gf-container .gf-tab-toggle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(204, 158, 126, 0.2);
    padding-bottom: 15px;
}

.lokanes-gf-container .gf-tab-btn,
.lokanes-gf-container .gf-tab-btn:hover,
.lokanes-gf-container .gf-tab-btn:focus,
.lokanes-gf-container .gf-tab-btn:active {
    min-height: 0;
    background: none;
    border: none;
    box-shadow: none;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.lokanes-gf-container .gf-tab-btn:hover {
    color: #1a1a1a;
}

.lokanes-gf-container .gf-tab-btn.active {
    color: #cc9e7e;
    font-weight: 600;
}

.lokanes-gf-container .gf-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #cc9e7e;
}

.lokanes-gf-container .gf-tab-btn:focus-visible {
    outline: 2px solid #cc9e7e;
    outline-offset: 3px;
}

/* --- Anlass & Moment --- */
.lokanes-gf-container .gf-occasion-chip {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: -10px 0 20px;
    font-size: 15px;
    color: #666;
}

.lokanes-gf-container .gf-occasion-chip strong {
    font-family: 'Georgia', serif;
    font-size: 17px;
    font-weight: 400;
    color: #1a1a1a;
}

.lokanes-gf-container .gf-occasion-change,
.lokanes-gf-container .gf-occasion-change:hover,
.lokanes-gf-container .gf-occasion-change:focus,
.lokanes-gf-container .gf-occasion-change:active {
    min-height: 0;
    padding: 6px 4px;
    background: none;
    border: 0;
    border-bottom: 1px solid #cc9e7e;
    border-radius: 0;
    box-shadow: none;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a1a;
    cursor: pointer;
}

.lokanes-gf-container .gf-occasion-change:hover {
    color: #cc9e7e;
}

.lokanes-gf-container .gf-occasion-btn,
.lokanes-gf-container .gf-occasion-btn:hover,
.lokanes-gf-container .gf-occasion-btn:focus,
.lokanes-gf-container .gf-occasion-btn:active {
    width: 100%;
    min-height: 0;
    background-color: rgba(255, 255, 255, 0.65);
    font-family: 'Jost', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    color: #555;
}

.lokanes-gf-container .gf-occasion-btn .gf-card-title,
.lokanes-gf-container .gf-occasion-btn .gf-card-desc {
    display: block;
}

.lokanes-gf-container .gf-occasion-btn .gf-card-title {
    font-weight: 300;
}

.lokanes-gf-container .gf-occasion-btn[aria-pressed="true"],
.lokanes-gf-container .gf-occasion-btn[aria-pressed="true"]:hover,
.lokanes-gf-container .gf-occasion-btn[aria-pressed="true"]:focus {
    background-color: #e6ddd7;
    border: 1px solid #cc9e7e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}

.lokanes-gf-container .gf-occasion-btn:focus-visible,
.lokanes-gf-container .gf-occasion-change:focus-visible {
    outline: 2px solid #cc9e7e;
    outline-offset: 3px;
}

/* --- Entdeckungsreise / Karte --- */
.lokanes-gf-container .gf-map-step {
    overflow: visible;
}

.lokanes-gf-container .gf-map-intro {
    margin-bottom: 20px;
}

.lokanes-gf-container .lokanes-map-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 18px !important;
    flex-shrink: 0 !important;
    display: block;
}

.lokanes-gf-container .lokanes-map-wrapper .elementor,
.lokanes-gf-container .lokanes-map-wrapper .e-con,
.lokanes-gf-container .lokanes-map-wrapper .e-con-inner,
.lokanes-gf-container .lokanes-map-wrapper .elementor-widget-container,
.lokanes-gf-container .lokanes-map-wrapper .wd-html-block,
.lokanes-gf-container .lokanes-map-wrapper svg {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lokanes-gf-container .lokanes-svg-map {
    width: 100%;
    height: auto;
    display: block;
}

.lokanes-gf-container .lokanes-svg-map .cls-1 {
    fill: none !important;
    stroke: none !important;
}

.lokanes-gf-container [data-gf-map] .gf-map-path {
    cursor: pointer;
    outline: none !important;
}

.lokanes-gf-container [data-gf-map] .gf-map-path path,
.lokanes-gf-container [data-gf-map] .gf-map-path polygon {
    fill: rgba(204, 158, 126, 0.08) !important;
    stroke: rgba(204, 158, 126, 0.6) !important;
    stroke-width: 2.5px;
    transition: fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
    cursor: pointer;
    pointer-events: all;
}

.lokanes-gf-container [data-gf-map] .gf-map-path:hover path,
.lokanes-gf-container [data-gf-map] .gf-map-path:hover polygon {
    fill: rgba(204, 158, 126, 0.6) !important;
}

.lokanes-gf-container [data-gf-map] .gf-map-path.gf-map-active path,
.lokanes-gf-container [data-gf-map] .gf-map-path.gf-map-active polygon {
    fill: #cc9e7e !important;
    filter: drop-shadow(0 8px 12px rgba(204, 158, 126, 0.3));
}

.lokanes-gf-container [data-gf-map] .gf-map-path:focus-visible path,
.lokanes-gf-container [data-gf-map] .gf-map-path:focus-visible polygon {
    stroke: #1a1a1a !important;
    stroke-width: 7px;
}

/* Verhindert auf Touch-Geräten einen hängenbleibenden Hover-Zustand. */
@media (hover: none) {
    .lokanes-gf-container [data-gf-map] .gf-map-path:not(.gf-map-active):hover path,
    .lokanes-gf-container [data-gf-map] .gf-map-path:not(.gf-map-active):hover polygon {
        fill: rgba(204, 158, 126, 0.08) !important;
    }
}

/* --- Live-Auswahl & Trefferzahl --- */
.lokanes-gf-container .gf-map-status {
    min-height: 52px;
    margin: 4px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.45;
}

.lokanes-gf-container .gf-map-selection {
    font-size: 13px;
    color: #666;
}

.lokanes-gf-container .gf-map-selection:empty {
    display: none;
}

.lokanes-gf-container .gf-map-result-count {
    font-family: 'Georgia', serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    color: #1a1a1a;
}

.lokanes-gf-container .gf-map-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Sekundär: Lokanes Outline-Button */
.lokanes-gf-container .gf-map-reset {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 55px !important;
    padding: 14px 35px !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 50px !important;
    box-shadow: none !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    -webkit-tap-highlight-color: transparent;
}

.lokanes-gf-container .gf-map-reset:hover {
    background-color: #1a1a1a !important;
    color: #cc9e7e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Primär: Lokanes schwarzer Textur-Button */
.lokanes-gf-container .gf-map-apply {
    position: relative !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 55px !important;
    padding: 16px 45px !important;
    box-sizing: border-box !important;
    background-color: #1a1a1a !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E") !important;
    background-size: 200px 200px !important;
    border: none !important;
    border-radius: 50px !important;
    box-shadow: none !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: #f2f0ef !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    -webkit-tap-highlight-color: transparent;
}

.lokanes-gf-container .gf-map-apply:hover {
    transform: translateY(-2px) !important;
    background-color: #2a2a2a !important;
    color: #cc9e7e !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.lokanes-gf-container .gf-map-reset:focus-visible,
.lokanes-gf-container .gf-map-apply:focus-visible {
    outline: 2px solid #cc9e7e !important;
    outline-offset: 4px !important;
}

.lokanes-gf-container .gf-map-reset:disabled,
.lokanes-gf-container .gf-map-apply:disabled {
    opacity: 0.38 !important;
    cursor: default !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Metainfo wird nur vom JS aus der AJAX-Antwort gelesen. */
.lokanes-gf-container .gf-map-result-meta {
    display: none !important;
}

/* --- Sortierung im Finder --- */
.lokanes-gf-container .lokanes-toolbar-sorter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    min-height: 48px;
}

.lokanes-gf-container .lokanes-sorter-label {
    margin: 0;
    font-family: 'Jost', sans-serif;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lokanes-gf-container .lokanes-select-wrapper {
    position: relative;
}

.lokanes-gf-container .lokanes-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 7px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23cc9e7e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.lokanes-gf-container .lokanes-elegant-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    background-color: transparent;
    border: 1px solid rgba(204, 158, 126, 0.4);
    border-radius: 8px;
    padding: 10px 40px 10px 16px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.lokanes-gf-container .lokanes-elegant-select:hover,
.lokanes-gf-container .lokanes-elegant-select:focus {
    border-color: #cc9e7e;
    box-shadow: 0 8px 25px rgba(204, 158, 126, 0.15);
}

/* Firmenkunden: Ergebnis-Kacheln ohne Preiszeile; Abstand zum Button bleibt erhalten. */
.lokanes-gf-container.gf-no-prices .hybrid-title {
    margin-bottom: 35px;
}

/* --- Responsive --- */
@media (min-width: 801px) and (max-width: 1100px) {
    .lokanes-gf-container .gf-occasion-options[data-gf-context="b2b"] {
        grid-template-columns: 1fr;
    }

    .lokanes-gf-container .gf-occasion-btn {
        padding: 18px 20px;
    }
}

@media (max-width: 1200px) {
    .lokanes-gf-container .gf-tab-toggle {
        gap: 2px 6px;
        padding-bottom: 8px;
    }

    .lokanes-gf-container .gf-tab-btn {
        padding: 9px 6px;
        font-size: 12.5px;
        letter-spacing: 0.5px;
    }

    .lokanes-gf-container .gf-tab-btn.active::after {
        bottom: 2px;
    }
}

@media (max-width: 600px) {
    .lokanes-gf-container .gf-step-box {
        padding: 20px;
    }

    .lokanes-gf-container .gf-grid-2,
    .lokanes-gf-container .gf-grid-3 {
        grid-template-columns: 1fr;
    }

    .lokanes-gf-container .lokanes-map-wrapper {
        max-width: 330px;
        margin-bottom: 14px !important;
    }

    .lokanes-gf-container .gf-map-status {
        min-height: 58px;
    }

    .lokanes-gf-container .gf-map-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }

    .lokanes-gf-container .gf-map-apply,
    .lokanes-gf-container .gf-map-reset {
        width: 100%;
    }


    .lokanes-gf-container .lokanes-toolbar-sorter {
        justify-content: center;
        min-height: 0;
    }
}

/* ==========================================================================
   GESCHENKEFINDER V2 – MOBILE TAB STABILITY FIX
   Verhindert zweistufiges Tap-Verhalten / Umbruch der Tab-Leiste auf Touch.
   ========================================================================== */
@media (max-width: 600px) {
    .lokanes-gf-container .gf-tab-toggle {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 4px !important;
        width: 100% !important;
    }

    .lokanes-gf-container .gf-tab-btn,
    .lokanes-gf-container .gf-tab-btn:hover,
    .lokanes-gf-container .gf-tab-btn:focus,
    .lokanes-gf-container .gf-tab-btn:active {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 9px 4px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        letter-spacing: 0.25px !important;
        white-space: normal !important;
        text-align: center !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Touch-Geräte: keinen persistenten Hover-Zustand zwischen erstem und zweitem Tap. */
@media (hover: none), (pointer: coarse) {
    .lokanes-gf-container .gf-tab-btn:hover:not(.active) {
        color: #999 !important;
    }
}
