/* ================================================================
   PRICE-SEARCH.CSS — EDITORIAL 2.0
   Nutzt Variablen aus new.css. Kein Poppins-Import (macht new.css).
   Flach. Keine Emojis. Keine Schatten. Keine Gradients.
   ================================================================ */

/* ================================================================
   0. GLOBAL — OVERFLOW-PRÄVENTION (Mobile Scroll-Fix)
   ================================================================ */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ================================================================
   1. PAGE-HEADER-FIX
   ================================================================ */
.price-search-page .main-header {
    /* header-nav.php styles übernehmen — hier nichts überschreiben */
}

/* ================================================================
   2. DESKTOP-SUCHE IM HEADER
   ================================================================ */
.desktop-price-search {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 24px 0;
}

.desktop-price-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.desktop-price-search-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-mid);
}

.desktop-price-search-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.desktop-price-search-input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid var(--rule-strong);
    border-radius: 0;
    font-size: 0.95rem;
    font-family: var(--font);
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    transition: border-color .2s;
}

.desktop-price-search-input::placeholder {
    color: var(--ink-muted);
}

.desktop-price-search-input:focus {
    outline: none;
    border-color: var(--ink);
}

.desktop-price-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--paper);
    border: 1px solid var(--accent);
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.desktop-price-search-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.desktop-price-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 80px;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-top: none;
    border-radius: 0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 0;
}

.desktop-price-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--rule);
    transition: background .2s;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--ink);
}

.desktop-price-autocomplete-item:last-child {
    border-bottom: none;
}

.desktop-price-autocomplete-item:hover {
    background: var(--paper-warm);
}

.desktop-price-autocomplete-item .icon {
    color: var(--accent);
    flex-shrink: 0;
}

/* ================================================================
   3. DESKTOP-SCHNELLSUCHE UNTERHALB
   ================================================================ */
.desktop-quick-search-below {
    background: var(--paper-warm);
    border-bottom: 1px solid var(--rule);
    padding: 30px 0;
}

.desktop-quick-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.desktop-quick-search-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
}

.desktop-quick-search-title .icon {
    color: var(--star);
}

.desktop-quick-search-section {
    margin-bottom: 24px;
}

.desktop-quick-search-section:last-child {
    margin-bottom: 0;
}

.desktop-quick-search-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

.coffee-section h4 {
    color: var(--ink);
    border-bottom-color: var(--rule);
}

.coffee-section h4 .icon {
    color: var(--accent);
}

.food-section h4 {
    color: var(--ink);
    border-bottom-color: var(--rule);
}

.food-section h4 .icon {
    color: var(--price);
}

.desktop-quick-search-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.quick-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: all .2s;
    text-align: center;
    min-width: 0;
}

.quick-search-btn .icon {
    flex-shrink: 0;
}

.quick-search-btn:hover {
    border-color: var(--ink);
    background: var(--paper);
}

.quick-search-btn.coffee {
    border-color: var(--rule-strong);
    background: var(--paper);
}

.quick-search-btn.coffee:hover {
    border-color: var(--ink);
}

.quick-search-btn.food {
    border-color: var(--rule-strong);
    background: var(--paper);
}

.quick-search-btn.food:hover {
    border-color: var(--ink);
}

.quick-search-btn.cedevita {
    border-color: var(--star);
    color: var(--ink);
}

.quick-search-btn.jumbo {
    border-color: var(--star);
    background: var(--paper-warm);
    font-weight: 700;
}

.quick-search-btn.beer {
    border-color: var(--star);
}

.quick-search-btn.cola {
    border-color: var(--accent);
    color: var(--accent);
}

/* ================================================================
   4. MOBILE-LAYOUT
   ================================================================ */
@media (max-width: 768px) {
    .desktop-layout,
    .desktop-price-search,
    .desktop-quick-search-below,
    .desktop-only-search {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-layout {
        display: none !important;
    }
}

.mobile-layout {
    background: var(--paper-warm);
    min-height: calc(100vh - 60px);
    padding-bottom: 80px;
    overflow-x: hidden;
    max-width: 100vw;
}

.mobile-page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 15px 15px 0;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: break-word;
    word-break: break-word;
}

.mobile-page-title .icon {
    color: var(--accent);
    flex-shrink: 0;
}

.mobile-pizza-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--price);
    color: var(--paper);
    font-size: 0.72rem;
    font-weight: 600;
    flex-shrink: 0;
}

.mobile-search-section {
    background: var(--paper);
    padding: 15px;
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
    max-width: 100%;
}

.mobile-search-form {
    width: 100%;
    max-width: 100%;
}

/* ─── FIX: Search-Wrapper: Flex-Kinder dürfen NICHT overflowen ─── */
.mobile-search-wrapper {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.mobile-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--rule-strong);
    border-radius: 0;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    outline: none;
    transition: border-color .2s;
}

.mobile-search-input::placeholder {
    color: var(--ink-muted);
}

.mobile-search-input:focus {
    border-color: var(--ink);
}

/* ─── FIX: Compare-Button: begrenzt, damit kein Overflow ─── */
.mobile-search-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 14px;
    background: var(--accent);
    color: var(--paper);
    border: 1px solid var(--accent);
    border-radius: 0;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .2s;
}

.mobile-search-button .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.mobile-search-button:hover {
    background: var(--ink);
    border-color: var(--ink);
}

@media (max-width: 360px) {
    .mobile-search-button {
        padding: 14px 10px;
        font-size: 11px;
        max-width: 110px;
    }
    .mobile-search-button .icon {
        width: 12px;
        height: 12px;
    }
    .mobile-search-input {
        padding: 12px 12px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .mobile-search-button span:not(.icon),
    .mobile-search-button text {
        display: none;
    }
    .mobile-search-button {
        max-width: 48px;
        padding: 14px 12px;
    }
}

/* ================================================================
   MOBILE STATS
   ================================================================ */
.mobile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 15px;
    background: var(--paper);
    margin-bottom: 5px;
    max-width: 100%;
    overflow: hidden;
}

.mobile-stat-item {
    text-align: center;
    padding: 12px 6px;
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    border-radius: 0;
    border-bottom-width: 3px;
    border-bottom-style: solid;
    min-width: 0;
    overflow: hidden;
}

.mobile-stat-item.count {
    border-bottom-color: #007bff;
}

.mobile-stat-item.lowest {
    border-bottom-color: var(--price);
}

.mobile-stat-item.highest {
    border-bottom-color: var(--accent);
}

.mobile-stat-item.average {
    border-bottom-color: var(--star);
}

.mobile-stat-number {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-stat-item.lowest .mobile-stat-number {
    color: var(--price);
}

.mobile-stat-item.highest .mobile-stat-number {
    color: var(--accent);
}

.mobile-stat-item.average .mobile-stat-number {
    color: var(--star);
}

.mobile-stat-label {
    font-family: var(--font);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow-wrap: break-word;
}

/* ================================================================
   MOBILE KATEGORIEN
   ================================================================ */
.mobile-categories-section {
    background: var(--paper);
    padding: 12px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
    max-width: 100vw;
}

.mobile-categories-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 0 15px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.mobile-categories-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 16px;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    transition: all .2s;
    min-height: 44px;
}

.mobile-category-btn:hover {
    border-color: var(--ink);
}

.mobile-category-btn.active {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
}

.mobile-category-btn.cedevita.active {
    background: var(--star);
    border-color: var(--star);
    color: var(--ink);
}

.mobile-category-btn.beer.active {
    background: var(--star);
    border-color: var(--star);
    color: var(--ink);
}

.mobile-category-btn.cola.active {
    background: var(--accent);
    border-color: var(--accent);
}

.mobile-category-btn.jumbo.active {
    background: var(--price);
    border-color: var(--price);
    color: var(--paper);
}

/* ================================================================
   MOBILE TABS
   ================================================================ */
.mobile-tabs {
    display: flex;
    background: var(--paper-warm);
    padding: 10px 15px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
}

.mobile-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 80px;
    padding: 12px 16px;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-mid);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

.mobile-tab:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.mobile-tab.active {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
}

.swipe-indicator {
    text-align: center;
    padding: 10px;
    color: var(--ink-muted);
    font-family: var(--font);
    font-size: 0.72rem;
    background: var(--paper-warm);
    margin: 0;
}

/* ================================================================
   MOBILE RESULTS
   ================================================================ */
.mobile-results {
    padding: 15px;
    background: var(--paper-warm);
    max-width: 100%;
    overflow: hidden;
}

.mobile-result-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.mobile-result-card.cheapest {
    border-left: 3px solid var(--price);
    background: var(--paper);
}

.mobile-cheapest-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--price);
    color: var(--paper);
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
}

.mobile-cheapest-badge .icon {
    width: 12px;
    height: 12px;
}

.mobile-type-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 12px;
    font-family: var(--font);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--paper);
    z-index: 2;
}

.mobile-type-badge.cafe {
    background: var(--accent);
}

.mobile-type-badge.restaurant {
    background: var(--price);
}

.mobile-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    padding-top: 22px;
    min-width: 0;
    max-width: 100%;
}

.mobile-card-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    border-radius: 0;
    color: var(--accent);
}

.mobile-card-icon .icon {
    width: 28px;
    height: 28px;
}

.mobile-card-icon.cafe {
    color: var(--accent);
}

.mobile-card-icon.restaurant {
    color: var(--price);
}

.mobile-card-body {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.mobile-price {
    float: right;
    margin-left: 10px;
    font-family: var(--font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.mobile-item-name {
    padding-right: 70px;
    margin-bottom: 4px;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}

.mobile-place-name {
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: break-word;
}

.mobile-address {
    margin-top: 2px;
    font-family: var(--font);
    font-size: 0.8rem;
    color: var(--ink-muted);
    overflow-wrap: break-word;
}

.mobile-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
    font-family: var(--font);
    font-size: 0.78rem;
    min-width: 0;
}

.mobile-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--price);
}

.mobile-open-badge .icon {
    width: 14px;
    height: 14px;
}

.mobile-distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--paper-warm);
    color: var(--ink-mid);
    font-size: 0.72rem;
    font-weight: 600;
}

.mobile-distance-badge .icon {
    width: 12px;
    height: 12px;
}

.mobile-price-range {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
}

.mobile-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-mid);
}

.mobile-rating .icon {
    color: var(--star);
    width: 14px;
    height: 14px;
}

.mobile-features {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
    min-width: 0;
}

.mobile-feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-mid);
    max-width: 100%;
    overflow-wrap: break-word;
}

.mobile-feature-chip .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ─── FIX: Card-Actions — 2 pro Reihe, Save-Button volle Breite ─── */
.mobile-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
}

.mobile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    max-width: 100%;
    padding: 12px 8px;
    border-radius: 0;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-action-btn .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mobile-action-btn.price-find-btn {
    flex: 1 1 100%;
}

.mobile-action-call {
    background: var(--price);
    color: var(--paper);
    border-color: var(--price);
}

.mobile-action-call:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.mobile-action-details {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
}

.mobile-action-details:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.mobile-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--paper);
    border: 1px solid var(--rule);
    margin: 20px;
    max-width: 100%;
    overflow: hidden;
}

.mobile-no-results .icon {
    width: 48px;
    height: 48px;
    color: var(--rule-strong);
    margin-bottom: 15px;
}

.mobile-no-results h3 {
    margin-bottom: 10px;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: break-word;
}

.mobile-no-results p {
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--ink-muted);
}

/* ================================================================
   MOBILE MAP VIEW
   ================================================================ */
.mobile-map-view {
    height: 70vh;
    margin: 15px;
    border: 1px solid var(--rule);
    overflow: hidden;
    max-width: 100%;
}

#mobileResultsMap {
    width: 100%;
    height: 100%;
    max-width: 100%;
}

/* Leaflet-Container nicht überlaufen lassen */
.leaflet-container {
    max-width: 100%;
    overflow: hidden;
}

.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-popup-pane {
    max-width: 100%;
}

.leaflet-control-container {
    max-width: 100%;
    overflow: hidden;
}

/* ================================================================
   5. DESKTOP-LAYOUT
   ================================================================ */
.price-search-container {
    padding: 30px 0;
    background: var(--paper-warm);
    min-height: calc(100vh - 200px);
}

.desktop-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.desktop-header-section {
    text-align: left;
    margin-bottom: 30px;
    padding: 30px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0;
}

.desktop-header-section h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-family: var(--font);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.desktop-header-section h1 .icon {
    color: var(--accent);
    flex-shrink: 0;
}

.desktop-header-section .subtitle {
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--ink-mid);
}

.desktop-header-section .subtitle strong {
    color: var(--accent);
    font-weight: 600;
}

/* ================================================================
   DESKTOP STATS
   ================================================================ */
.desktop-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.desktop-stat-item {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0;
    padding: 25px;
    text-align: center;
    border-bottom-width: 4px;
    border-bottom-style: solid;
}

.desktop-stat-item.count {
    border-bottom-color: #007bff;
}

.desktop-stat-item.lowest {
    border-bottom-color: var(--price);
}

.desktop-stat-item.highest {
    border-bottom-color: var(--accent);
}

.desktop-stat-item.average {
    border-bottom-color: var(--star);
}

.desktop-stat-number {
    font-family: var(--font);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--ink);
}

.desktop-stat-item.lowest .desktop-stat-number {
    color: var(--price);
}

.desktop-stat-item.highest .desktop-stat-number {
    color: var(--accent);
}

.desktop-stat-item.average .desktop-stat-number {
    color: var(--star);
}

.desktop-stat-label {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================================
   DESKTOP TABLE
   ================================================================ */
.desktop-table-container {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0;
    overflow-x: auto;
    margin-bottom: 40px;
}

.desktop-results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.desktop-results-table thead {
    background: var(--paper-warm);
    border-bottom: 1px solid var(--rule-strong);
}

.desktop-results-table th {
    padding: 15px;
    text-align: left;
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desktop-results-table tbody tr {
    border-bottom: 1px solid var(--rule);
    transition: background .2s;
}

.desktop-results-table tbody tr:hover {
    background: var(--paper-warm);
}

.desktop-results-table tbody tr.cheapest-row {
    background: var(--paper-warm);
    border-left: 3px solid var(--price);
}

.desktop-results-table td {
    padding: 15px;
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--ink);
    vertical-align: middle;
}

.rank-cell {
    font-weight: 700;
    color: var(--ink-muted);
    width: 40px;
}

.name-cell {
    font-weight: 600;
    min-width: 240px;
}

.name-cell-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.name-cell-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--paper-deep, #EFEFEC);
    border: 1px solid var(--rule);
    border-radius: 0;
}

.name-cell-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.name-cell-text strong {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
}

.name-cell-status {
    margin-top: 2px;
}

.name-cell-status .open-badge,
.name-cell-status .open-status-badge {
    font-size: 0.62rem;
    padding: 2px 7px;
}

.table-cheapest-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--price);
    color: var(--paper);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.type-cell .type-badge {
    display: inline-block;
    padding: 4px 10px;
    font-family: var(--font);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0;
}

.type-badge.cafe {
    background: var(--accent);
    color: var(--paper);
}

.type-badge.restaurant {
    background: var(--price);
    color: var(--paper);
}

.price-cell {
    font-family: var(--font);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.price-cell.cheapest-price {
    color: var(--price);
}

.location-cell small {
    color: var(--ink-muted);
}

.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
}

.stars .icon {
    width: 12px;
    height: 12px;
    color: var(--star);
}

.stars .star-empty {
    color: var(--rule-strong);
    font-size: 0.75rem;
}

.stars span:not(.star-empty) {
    margin-left: 5px;
    color: var(--ink-muted);
    font-weight: 600;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--paper);
    border: 1px solid var(--accent);
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.btn-details:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn-details .icon {
    width: 14px;
    height: 14px;
}

.veg-badge {
    display: inline-flex;
    align-items: center;
    color: var(--price);
    margin-left: 5px;
}

.veg-badge .icon {
    width: 14px;
    height: 14px;
}

.cafe-icons {
    display: flex;
    gap: 6px;
    color: var(--ink-mid);
}

.cafe-icons .icon {
    width: 16px;
    height: 16px;
}

.action-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

/* ================================================================
   6. PRICE-FIND-BUTTON   ================================================================ */
.price-find-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--paper);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.price-find-btn .icon {
    width: 14px;
    height: 14px;
}

.price-find-btn:hover {
    background: var(--paper-warm);
}

.price-find-btn.is-saved {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
}

/* ================================================================
   7. AUTOCOMPLETE-DROPDOWN (Desktop + Mobile)
   ================================================================ */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: 0;
    z-index: 1000;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    color: var(--ink);
    transition: background .2s;
    font-family: var(--font);
    font-size: 0.88rem;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--paper-warm);
}

.autocomplete-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent);
}

.autocomplete-content {
    flex: 1;
    min-width: 0;
}

.autocomplete-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink);
}

.autocomplete-city {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

.autocomplete-loading,
.autocomplete-no-results {
    padding: 20px;
    text-align: center;
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* ================================================================
   8. VIRTUAL-ASSISTANT-MOBILE-AUSBLENDUNG
   ================================================================ */
@media (max-width: 768px) {
    .virtual-assistant-button,
    .gladan-zedan-button {
        display: none !important;
    }
}

/* ================================================================
   9. LEAFLET-POPUP-STYLES
   ================================================================ */
.leaflet-popup-content {
    font-family: var(--font);
    min-width: 200px;
}

.leaflet-popup-content h4 {
    margin: 0 0 10px 0;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

/* ================================================================
   10. PRINT-STYLES
   ================================================================ */
@media print {
    .main-header,
    .main-footer,
    .footer-nav,
    .mobile-categories-section,
    .desktop-price-search,
    .desktop-quick-search-below {
        display: none !important;
    }
}

/* ================================================================
   11. REDUCED-MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================================================================
   12. RESPONSIVE
   ================================================================ */
@media (max-width: 992px) {
    .desktop-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .desktop-quick-search-buttons {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .desktop-price-search-input {
        font-size: 0.9rem;
    }

    .desktop-price-search-btn {
        padding: 14px 18px;
        font-size: 0.7rem;
    }

    .desktop-quick-search-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mobile-stats-row {
        gap: 6px;
        padding: 12px;
    }

    .mobile-stat-item {
        padding: 10px 4px;
    }

    .mobile-stat-number {
        font-size: 0.9rem;
    }

    .mobile-stat-label {
        font-size: 0.55rem;
    }

    .mobile-category-btn {
        padding: 9px 14px;
        font-size: 0.78rem;
    }

    .mobile-result-card {
        padding: 16px;
    }

    .mobile-card-icon {
        width: 50px;
        height: 50px;
    }

    .mobile-card-icon .icon {
        width: 24px;
        height: 24px;
    }

    .mobile-price {
        font-size: 1.2rem;
    }

    .mobile-item-name {
        font-size: 0.95rem;
    }

    .mobile-action-btn {
        padding: 10px;
        font-size: 0.72rem;
    }
}

/* ================================================================
   SVG SPINNER
   ================================================================ */
.icon.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ================================================================
   ÖFFNUNGSZEITEN-BADGE + FEATURE-BILD im Listing
   ================================================================ */

/* ─── Mobile: Media-Box mit Galerie-Slider ─── */
.mobile-card-media {
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    overflow: hidden;
}

.mobile-card-image-single,
.mobile-card-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--paper-deep, #EFEFEC);
    border: 1px solid var(--rule);
}

.mobile-card-image-single img,
.mobile-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.mobile-card-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease-in-out;
}

.mobile-card-slide.active {
    opacity: 1;
}

.mobile-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mobile-open-badge .open-badge,
.mobile-open-badge .open-status-badge {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .mobile-card-image-single,
    .mobile-card-gallery {
        height: 200px;
    }
}

/* ================================================================
   STICKY COFFEE WIDGET — OVERFLOW-FIX (Mobile Scroll)
   ================================================================ */
@media (max-width: 1024px) {
    html body .sticky-coffee-widget {
        position: fixed !important;
        top: auto !important;
        bottom: 70px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        max-height: 45vh !important;
        overflow: hidden !important;
        border-radius: 16px !important;
        z-index: 700 !important;
    }

    html body .sticky-coffee-widget .coffee-widget-content {
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* Footer über Coffee-Widget */
    .main-footer,
    footer {
        position: relative !important;
        z-index: 800 !important;
    }
}

/* ================================================================
   HEADER-OVERLAP-FIX
   ================================================================ */
.main-header {
    position: relative;
    z-index: 900 !important;
}

@media (max-width: 768px) {
    .main-header .search-container {
        display: none !important;
    }
}

/* ================================================================
   SORT-BAR (Mobile + Desktop)
   ================================================================ */
.sort-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 10px 15px;
    background: var(--paper-warm);
    border-bottom: 1px solid var(--rule);
    margin: 0;
    max-width: 100%;
    overflow: hidden;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 0;
    background: var(--paper);
    color: var(--ink-mid);
    border: 1px solid var(--rule-strong);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.sort-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.sort-btn.active {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
}

/* ================================================================
   OPEN-NOW TOGGLE
   ================================================================ */
.open-now-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    user-select: none;
    width: 100%;
    max-width: 100%;
}

.open-now-toggle input { display: none; }

.open-now-slider {
    width: 36px;
    height: 20px;
    background: #D5D5D0;
    border-radius: 20px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.open-now-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.open-now-toggle input:checked ~ .open-now-slider {
    background: var(--price, #2D5A3D);
}

.open-now-toggle input:checked ~ .open-now-slider::after {
    transform: translateX(16px);
}

.open-now-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow-wrap: break-word;
}

/* ================================================================
   HOURS-LIVE (Öffnungszeiten leuchtend)
   ================================================================ */
.hours-live {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 0;
    margin: 6px 0;
    font-family: var(--font);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: box-shadow 0.2s;
    max-width: 100%;
}

.hours-live--open {
    background: rgba(45,90,61,0.10);
    border-color: rgba(45,90,61,0.35);
    color: #2D5A3D;
    box-shadow: 0 0 0 0 rgba(45,90,61,0.45);
    animation: hoursPulseOpen 2.6s ease-in-out infinite;
}

.hours-live--closing_soon {
    background: rgba(184,134,11,0.12);
    border-color: rgba(184,134,11,0.45);
    color: #8a6a1e;
    animation: hoursPulseSoon 1.6s ease-in-out infinite;
}

.hours-live--closed {
    background: rgba(139,46,46,0.08);
    border-color: rgba(139,46,46,0.30);
    color: #8B2E2E;
}

.hours-live--unknown { display: none; }

@keyframes hoursPulseOpen {
    0%,100% { box-shadow: 0 0 0 0 rgba(45,90,61,0.35); }
    50%     { box-shadow: 0 0 0 6px rgba(45,90,61,0); }
}

@keyframes hoursPulseSoon {
    0%,100% { box-shadow: 0 0 0 0 rgba(184,134,11,0.45); }
    50%     { box-shadow: 0 0 0 6px rgba(184,134,11,0); }
}

/* ================================================================
   RATING-CHIPS & MODAL
   ================================================================ */
.ratings-detail {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
}

.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.rating-chip:hover {
    border-color: var(--accent);
    background: var(--paper);
}

.rating-chip-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.rating-chip--google .rating-chip-logo { background: #4285F4; }
.rating-chip--trip .rating-chip-logo { background: #00AA6C; }

/* ================================================================
   REVIEW-MODAL (G2)
   ================================================================ */
.nb-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nb-modal[hidden] { display: none !important; }

.nb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.nb-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--ink);
    border-radius: 0;
    width: 100%;
    max-width: 460px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
    font-family: var(--font);
}

.nb-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    background: #fff;
    color: var(--ink-mid);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nb-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nb-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.nb-modal-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #4285F4;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.nb-modal-head-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nb-modal-source {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    font-weight: 700;
}

.nb-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 2px 0 0;
    color: var(--ink);
    overflow-wrap: break-word;
}

.nb-modal-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.nb-modal-rating-of {
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-weight: 600;
}

.nb-modal-intro {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--ink-mid);
    margin: 6px 0 0;
}

.nb-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.nb-modal-btn {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--paper);
}

.nb-modal-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.nb-modal-btn--ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--rule);
}

.nb-modal-btn--ghost:hover {
    background: var(--paper-warm);
    border-color: var(--ink);
    color: var(--ink);
}

/* ================================================================
   CITY-TABS (oben, sticky — wie ne.php)
   ================================================================ */
.mg-cities {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
    margin-bottom: 12px;
}

.mg-cities-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-width: 1280px;
    margin: 0 auto;
}

.mg-cities-inner::-webkit-scrollbar { display: none; }

.mg-city-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all .15s;
}

.mg-city-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mg-city-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.mg-city-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    background: rgba(0,0,0,.08);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.mg-city-chip.active .mg-city-count {
    background: rgba(255,255,255,.25);
}

@media (min-width: 1025px) {
    .mg-cities { padding: 10px 0; }
    .mg-city-chip { font-size: .85rem; padding: 8px 16px; }
    
/* ═══════════════════════════════════════════════════════════════
   DRINGEND: MOBILE OVERFLOW FIX v2 — HART
   Ersetzt/überschreibt alle vorherigen Regeln
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* 1) GLOBAL: Viewport darf NIE breiter werden */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    /* 2) Alle Container auf Mobile begrenzen */
    .mobile-layout,
    .mobile-search-section,
    .mobile-search-form,
    .mobile-search-wrapper,
    .mobile-results,
    .mobile-result-card,
    .mobile-card-content,
    .mobile-card-body,
    .mobile-card-actions,
    .price-search-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* 3) DAS PROBLEM: Search-Wrapper MUSS die Kinder zwingen zu schrumpfen */
    .mobile-search-wrapper {
        display: flex !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        flex-wrap: nowrap !important;
    }

    /* 4) Input: nimmt den restlichen Platz, schrumpft bei Bedarf */
    .mobile-search-input {
        flex: 1 1 0 !important;          /* WICHTIG: 1 1 0 statt 1 1 auto */
        min-width: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        padding: 14px 12px !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
    }

    /* 5) DER BUTTON: darf NICHT wachsen, MUSS schrumpfen können */
    .mobile-search-button {
        flex: 0 0 auto !important;       /* NICHT wachsen */
        min-width: 0 !important;         /* DARF schrumpfen */
        max-width: 120px !important;     /* harte Obergrenze */
        width: auto !important;
        padding: 14px 12px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .mobile-search-button .icon {
        width: 13px !important;
        height: 13px !important;
        flex-shrink: 0 !important;
    }

    /* 6) Sort-Bar: Buttons dürfen nicht überlaufen */
    .sort-bar {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .sort-bar::-webkit-scrollbar { display: none !important; }

    .sort-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    /* 7) Stats-Row: Grid darf nicht breiter werden */
    .mobile-stats-row {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .mobile-stat-item {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    /* 8) Kategorien: horizontal scroll erlaubt, aber Container begrenzt */
    .mobile-categories-section,
    .mobile-categories-scroll {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-categories-scroll {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
    }

    /* 9) Card-Actions: 2 pro Reihe + Save-Button volle Breite */
    .mobile-card-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .mobile-action-btn {
        flex: 1 1 calc(50% - 3px) !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .mobile-action-btn.price-find-btn {
        flex: 1 1 100% !important;
    }

    /* 10) Tab-Buttons: dürfen nicht schieben */
    .mobile-tabs {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
    }

    .mobile-tab {
        flex: 0 0 auto !important;
        min-width: 80px !important;
    }
}

/* 11) Sehr schmale Geräte (≤ 390px iPhone 12/13/14) */
@media (max-width: 390px) {
    .mobile-search-button {
        max-width: 105px !important;
        padding: 13px 10px !important;
        font-size: 10.5px !important;
    }
    .mobile-search-input {
        padding: 13px 10px !important;
        font-size: 14px !important;
    }
}

/* 12) Ultra-schmal (≤ 360px) */
@media (max-width: 360px) {
    .mobile-search-button {
        max-width: 90px !important;
        font-size: 10px !important;
        gap: 3px !important;
    }
    .mobile-search-button .icon {
        width: 11px !important;
        height: 11px !important;
    }
}

/* 13) Ganz schmal (≤ 340px): nur Icon */
@media (max-width: 340px) {
    .mobile-search-button span:not(.icon) {
        display: none !important;
    }
    .mobile-search-button {
        max-width: 44px !important;
        padding: 13px !important;
    }
}