/* * SCRIPT IBO - OFFICIAL DEFAULT THEME 2026 
 */

/* 1. VARIABLEN & DARK MODE */
:root {
    --bg-body: #f1f5f9;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
    --topbar-bg: #C3C3C3;
   
    --topbar-border: #ccc;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-header: #1e293b;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow: 0 4px 15px rgba(0,0,0,0.3);
    --header-bg: #0f172a;
    --topbar-bg: #C3C3C3;
   
    --topbar-border: #ccc;
}
[data-theme="dark"] .ibo-stat-item {
    border-color: #334155 !important;
}
/* Texte hell machen im Dark Mode */
[data-theme="dark"] .ibo-user-name,
[data-theme="dark"] .ibo-section-title,
[data-theme="dark"] .ibo-stat-v,
[data-theme="dark"] .ibo-ad-title-row h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .ibo-rating-num,
[data-theme="dark"] .ibo-info-line span,
[data-theme="dark"] .ibo-nav-link {
    color: #e2e8f0 !important;
}
/* Mobile Optimierung */
@media (max-width: 992px) {
    .ibo-dash-layout { flex-direction: column; }
    .ibo-dash-sidebar { flex: 0 0 100%; }
    .ibo-ad-item { flex-direction: column; text-align: center; }
}
/* 2. BASIS RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* FIX: Lila Linien & Standard-Links radikal entfernen */
    text-decoration: none !important;
    text-decoration-line: none !important;
    outline: none !important;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    transition: 0.3s ease;
}

/* FIX: Verhindert lila Farbe bei besuchten Links im Dark Mode */
a:visited, .ad-link:visited {
    color: inherit !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
}

/* 3. HEADER & NAVIGATION */
.main-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-area img {
    max-height: 40px;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links, .guest-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-icon-link i { font-size: 18px; margin-bottom: 2px; }
.nav-icon-link:hover { color: var(--primary); }

.btn-post {
    background: var(--primary);
    color: white !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
}

/* --- NAVIGATION LOGIK --- */

/* 1. Desktop-Zustand (PC) */
/* --- NAVIGATION LOGIK --- */

/* 1. Desktop-Zustand (PC) */
.mobile-nav-toggle {
    display: none !important; 
}

/* 2. Mobile-Zustand (Handy) */
@media screen and (max-width: 991px) {
    
    /* Hamburger Icon anzeigen */
    .mobile-nav-toggle {
        display: flex !important;
        cursor: pointer;
        color: var(--text-main);
        font-size: 24px;
    }

    /* WICHTIG: Verstecke die Links NUR, wenn das Menü NICHT aktiv ist */
    .nav-right .nav-links, 
    .nav-right .guest-links, 
    .nav-right .v-divider {
        display: none !important;
    }

    /* Das Mobile-Menü (Seitlich) */
    .user-nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background: var(--bg-header) !important; /* Nutzt Hintergrundfarbe */
        z-index: 10000 !important;
        padding: 60px 20px;
        transition: 0.4s ease-in-out;
        display: flex !important; 
        flex-direction: column;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    /* Wenn offen: Schiebe das Menü rein */
    .user-nav.active {
        right: 0 !important;
    }

    /* GEWALT-FIX: Zeige die Links IM aktiven Menü wieder an */
    .user-nav.active .nav-links, 
    .user-nav.active .guest-links {
        display: flex !important; /* Überschreibt das display:none von oben */
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 25px !important;
    }

    /* Stil für die Icons und Texte im Menü */
    .user-nav .nav-icon-link {
        display: flex !important;
        flex-direction: row !important; /* Icon neben Text */
        align-items: center !important;
        font-size: 16px !important;
        color: var(--text-main) !important;
        gap: 15px;
        width: 100%;
    }

    /* Text im Menü erzwingen */
    .user-nav .nav-icon-link span {
        display: block !important;
        font-size: 16px !important;
        text-transform: none; /* Nicht mehr alles groß schreiben auf Handy */
    }

    /* Close Button Styling */
    .mobile-nav-close {
        display: block !important; /* Hier wird es auf dem Handy sichtbar */
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: var(--text-main);
        cursor: pointer;
        z-index: 10001;
    }

    /* Overlay fix */
    .nav-overlay {
        z-index: 9999 !important;
    }
}
/* Standardmäßig (Desktop) immer verstecken */
.mobile-nav-close {
    display: none; 
}
/* 4. CONTENT & HOME */
.content-wrapper { padding-top: 20px; min-height: 80vh; }

.hero-search { background: var(--bg-card); padding: 40px 0; border-bottom: 1px solid var(--border); margin-bottom: 30px; text-align: center; }
.search-form { display: flex; gap: 10px; max-width: 700px; margin: 0 auto; }
.search-form input { flex: 1; padding: 18px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-body); color: var(--text-main); }
.search-form button { background: var(--primary); color: white; border: none; padding: 0 25px; border-radius: 10px; font-weight: 700; cursor: pointer; }

.welcome-box { text-align: center; margin-bottom: 30px; }
.quick-nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 40px; }
.tpl-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 25px 10px; text-align: center; color: var(--text-main); transition: 0.3s; }
.tpl-card i { font-size: 28px; margin-bottom: 10px; display: block; }
.tpl-card:hover { transform: translateY(-5px); border-color: var(--primary); }

/* Inserat Karten */
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.ad-item { background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 15px; }

/* FIX: Keine Unterstreichung in der Karte */
.ad-link { color: inherit !important; display: block; border: none !important; }
.ad-link:hover { text-decoration: none !important; }

/* DESKTOP ANSICHT (Deine Basis) */
/* Container für das Bild */
/* Container für das Bild */
/* --- BILDER & BADGES --- */
/* 1. Einheitliche Container-Definition (Wrapper) */
.ad-image-wrapper {
  background-color: var(--bg-body, #f4f4f4); /* Heller, einheitlicher Hintergrund */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  
  /* Festgelegte Dimensionen für die Einheitlichkeit */
  width: 100%; 
  aspect-ratio: 16 / 9; /* Erzwingt ein einheitliches Querformat */
  height: auto; /* Höhe wird durch das Seitenverhältnis bestimmt */
  
  /* Einheitliche Abrundung (Optional) */
  border-radius: 8px;
  
  /* Einheitlicher Schattenwurf (Optional) */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  
  /* Verhindert Ränder (Optional) */
  margin: 0;
  padding: 0;
}

/* 2. Einheitliches Bild-Verhalten */
.ad-image-wrapper img {
  width: 100%;
  height: 100%;
  
  /* Das Wichtigste: Das Bild füllt den Raum, ohne das Seitenverhältnis zu verlieren */
  <!--
object-fit: cover; 
-->
  
  /* Zentriert das Bild, falls es beschnitten wird */
  object-position: center;
  
  /* Stellt sicher, dass das Bild die volle Größe nutzt */
  display: block;
  
  /* Einheitliche Kanten (Optional) */
  border: 1px solid rgba(0, 0, 0, 0.05); /* Sehr feiner, einheitlicher Rand */
}
.ad-image-wrapper-index {
    height: 130px; background: var(--bg-body); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.img-fluid {
    max-width: 100%; max-height: 100%; object-fit: contain;
    
  } 
  
.rating-stars {
    
    color: #f59e0b; font-size: 0.85rem; margin-bottom: 8px;
    padding-top: 15px;
  }  
/* Kamera Icon auf dem Foto */
.img-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 5;
    pointer-events: none;
}
.img-badge-index {
    position: absolute; bottom: 5px; right: 5px; background: rgba(0,0,0,0.4); color: #fff; padding: 1px 6px; border-radius: 10px; font-size: 9px;


}
.ad-title-index{
font-size: 0.85rem; color: var(--text-main); height: 32px; overflow: hidden; line-height: 1.2;
}
.ad-price-index {
font-size: 0.95rem; color: var(--primary); font-weight: 700;"

}
.ad-location{
    font-size: 10px; color: var(--text-muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

}
.ad-views-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 5px;
}

/* Mobile Optimierung für die Icons */
@media (max-width: 640px) {
    .img-badge {
        font-size: 10px;
        padding: 1px 5px;
        bottom: 5px;
        left: 5px;
    }
}
.free-badge { position: absolute; top: 8px; left: 8px; background: #10b981; color: white; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; }

.ad-info { padding: 15px; flex: 1; display: flex; flex-direction: column;}
.ad-title {
    
    font-size: 1.0rem;
    line-height: 1.2rem;
    margin: var(--text-main);
    font-weight: 600;
    
    /* Die Magie: Begrenzung auf exakt 2 Zeilen */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Anzahl der Zeilen */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    /*height: 48px;  (line-height 1.4 * font-size 15px) * 2 Zeilen */
}
.ad-price {  color: var(--primary); font-weight: 600; font-size: 1.25rem; margin-top: 8px;}
.ad-meta { display: flex; color: var(--text-muted); font-size: 0.85rem; margin-top: auto; display: flex; justify-content: space-between; }

  .force-grid-6 {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
    }
    @media (max-width: 992px) { .force-grid-6 { grid-template-columns: repeat(3, 1fr) !important; } }
    @media (max-width: 576px) { .force-grid-6 { grid-template-columns: repeat(2, 1fr) !important; } }
    
    /* Verhindert dass die Items in grafik_2.png die volle Breite einnehmen */
    .force-grid-6 .grid-item-fix {
        width: auto !important;
        max-width: 100% !important;
        flex: none !important;
    }
/* 5. FOOTER */
/* --- MODERN FOOTER STYLES --- */
.main-footer {
        background: var(--bg-card, #ffffff);
        border-top: 1px solid var(--border, #e5e7eb);
        color: var(--text-main, #374151);
        padding: 60px 0 30px;
        margin-top: 50px;
    }
    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    .footer-col h4 {
        color: var(--primary, #2563eb);
        font-weight: 700;
        margin-bottom: 20px;
        text-transform: uppercase;
        font-size: 14px;
        letter-spacing: 1px;
    }
    .footer-description {
        color: var(--text-muted, #6b7280);
        font-size: 14px;
        line-height: 1.6;
        margin-top: 15px;
    }
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .footer-links li {
        margin-bottom: 12px;
    }
    .footer-links a {
        color: var(--text-main, #374151);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
    }
    .footer-links a:hover {
        color: var(--primary, #2563eb);
    }
    .footer-bottom {
        border-top: 1px solid var(--border, #e5e7eb);
        padding-top: 30px;
        text-align: center;
        color: var(--text-muted, #6b7280);
        font-size: 13px;
    }
    .footer-logo img {
        max-height: 45px;
        filter: var(--logo-filter, none); /* Ermöglicht Logo-Anpassung in Dark Mode */
    }
    @media (max-width: 768px) {
        .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    }
    .ad-title-page {
    font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin: 0 0 15px 0 !important;
  padding-right: 40px !important;
  color: var(--v3-text) !important;
}
.ibo-main-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    padding: 30px; 
    box-shadow: var(--shadow); 
}

.ibo-upload-box-trigger {
    display: block;
    padding: 40px 20px;
    border: 2px dashed var(--border);
    border-radius: 16px;
    text-align: center;
    background: var(--bg-body);
    cursor: pointer;
    transition: 0.3s;
}

.ibo-upload-box-trigger:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.ibo-sticky-preview { position: sticky; top: 100px; }

.ibo-preview-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: var(--shadow);
}

.ibo-preview-img-box { 
    height: 250px; 
    background: var(--bg-body); 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.watermark-preview-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(0, 0, 0, 0.6); color: #fff; padding: 6px;
    font-size: 10px; text-align: center; z-index: 9; text-transform: uppercase;
}

.thumb-preview { 
    width: 80px;      /* Feste Breite */
    height: 80px;     /* Feste Höhe */
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--primary);
    background: var(--bg-body);
    flex-shrink: 0;   /* Verhindert, dass die Bilder gequetscht werden */
}

.thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
#image_preview_container {
    display: flex !important;
    flex-direction: row !important; /* Erzwingt horizontale Ausrichtung */
    flex-wrap: wrap;               /* Erlaubt Zeilenumbruch bei vielen Bildern */
    gap: 10px;
    justify-content: center;
}
.ibo-add-grid { display: flex; gap: 30px; align-items: flex-start; }
.ibo-form-col { flex: 1.6; }
.ibo-preview-col { flex: 1; }

.badge-custom {
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
}

@media (max-width: 991px) {
    .ibo-add-grid { flex-direction: column; }
    .ibo-preview-col { display: none; }
}
/* Dark Mode Logo Fix */
[data-theme='dark'] .footer-logo img {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--sb-active);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { 
    text-decoration: none; 
    color: var(--sb-header); 
    font-size: 14px;
    transition: 0.3s;
}
.footer-links a i { font-size: 10px; margin-right: 8px; opacity: 0.5; }
.footer-links a:hover { color: var(--sb-active); padding-left: 5px; }

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--topbar-border);
    text-align: center;
    font-size: 13px;
    color: var(--sb-header);
}
/* Admin Preview Bar */
.admin-impersonation-bar { background: #ef4444; color: white; padding: 10px; text-align: center; font-weight: bold; position: relative; z-index: 11000; }
/* --- SEARCH LAYOUT SYSTEM --- */
.search-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Sidebar */
/* --- OPTIMIERTE SIDEBAR --- */

.sidebar-column {
    width: 230px; /* Etwas breiter für bessere Lesbarkeit */
    flex-shrink: 0;
}

.box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px; /* Rundere Ecken passend zu den Karten */
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.box-title {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FIX: Scroll-Bereich für die Kantone (Regionen) */
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px; /* Begrenzt die Höhe der Kantonsliste */
    overflow-y: auto;  /* Macht sie scrollbar */
    padding-right: 8px;
}

/* Modernes Scrollbar-Styling (Webkit) */
.filter-list::-webkit-scrollbar {
    width: 4px;
}
.filter-list::-webkit-scrollbar-track {
    background: transparent;
}
.filter-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.filter-item {
    margin-bottom: 4px;
}

.filter-link {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 10px;
    display: block;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

/* Hover-Effekt wie bei den Karten */
.filter-link:hover {
    background: var(--bg-body);
    color: var(--primary) !important;
    padding-left: 15px; /* Kleiner Slide-Effekt */
}

/* Aktiver Link (Blau hinterlegt) */
.filter-link.active {
    background: rgba(59, 130, 246, 0.1); /* Zartes Blau */
    color: var(--primary) !important;
    font-weight: 700;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 15px 0;
    opacity: 0.6;
}

/* Mobile Fix */
@media (max-width: 991px) {
    .sidebar-column {
        display: none; /* Versteckt die Sidebar auf dem Handy, da wir dort Dropdowns nutzen */
    }
}
/* Main Area */
.content-column {
    flex: 1;
    min-width: 0;
}

/* Toolbar */
.results-toolbar {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-main); display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; margin-bottom: 15px; border-radius: 10px;
}

.toolbar-info { font-weight: 600; }

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Custom Dropdown */
.dropdown-wrapper { position: relative; display: inline-block; }
.dropdown-trigger {
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 120px;
    z-index: 100;
    box-shadow: var(--shadow);
}

.dropdown-wrapper:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 13px;
    color: var(--text-muted);
}
.dropdown-menu a:hover { background: var(--bg-body); color: var(--primary); }

/* View Switcher */
.view-toggle-group {
    display: flex;
    background: var(--bg-body);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.toggle-btn {
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text-muted);
}

.toggle-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Grid & List Logic */
.results-grid {
    display: grid;
    gap: 20px;
}

.grid-cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.list-cols { grid-template-columns: 1fr; }

/* Ad Card Overwrites */
/* --- LISTENANSICHT OPTIMIERUNG --- */

/* Der Link-Container in der Liste */
/* 1. Radikale Entfernung aller störenden Linien in der Liste */
.ad-item.list-mode .ad-info,
.ad-item.list-mode .list-pricing,
.ad-item.list-mode .ad-link,
.ad-item.list-mode {
    border-right: none !important;
    border-left: none !important;
}
.list-mode .ad-link {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.list-mode .ad-image-wrapper {
    width: 290px !important;
    height: 180px !important;
    flex-shrink: 0;
}

.list-mode .ad-info {
    flex: 1;
    padding: 0 20px;
}

.list-mode .list-pricing {
    margin-left: auto;
    text-align: right;
    padding: 20px;
    min-width: 180px;
    border-left: 1px solid var(--border);
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 640px) {
    .list-mode .ad-image-wrapper {
        width: 110px !important;
        height: 110px !important;
    }
    
    .list-mode .ad-info {
        padding: 0 10px;
    }

    .list-mode .list-pricing {
        min-width: auto;
        padding: 10px;
        border-left: none;
    }
}

/* Sidebar Scroll Fix */
.filter-list {
    max-height: 350px;
    overflow-y: auto;
}
/* 2. Den Preis-Block ganz nach rechts zwingen */
.ad-item.list-mode .ad-link {
    display: flex !important;
    justify-content: space-between !important; /* Verteilt Inhalt: Bild/Info links, Preis rechts */
    align-items: center !important;
    width: 100% !important;
}

/* 3. Der Info-Teil in der Mitte soll den restlichen Platz füllen */
.ad-item.list-mode .ad-info {
    flex-grow: 1 !important;
    padding: 0 20px !important;
    border: none !important; /* Entfernt die Linie aus dem Screenshot */
}

/* 4. Der Preis-Block rechts */
.ad-item.list-mode .list-pricing {
    min-width: 180px !important;
    text-align: right !important;
    padding-right: 20px !important;
    margin-left: auto !important; /* Schiebt es nach rechts */
    border: none !important; /* Entfernt eventuelle Borders */
}

/* Components */
.rating-stars { display: flex; align-items: center; gap: 3px; color: #f59e0b; font-size: 11px; margin-bottom: 5px; }
.rating-count { color: var(--text-muted); margin-left: 3px; font-weight: 600; }

.meta-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.meta-badge { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.meta-badge.blue { background: #eff6ff; color: #3b82f6; }
.meta-badge.orange { background: #fff7ed; color: #ea580c; }

/* Favorite Button */
.btn-favorite {
    position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
    background: var(--bg-card); border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; color: #cbd5e1; z-index: 10;
}
.btn-favorite.active { color: #ef4444 !important; }

/* Pagination */
.search-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn {
    padding: 10px 18px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; font-weight: 700; color: var(--text-main);
}
.page-btn.active { background: var(--primary); color: #fff !important; border-color: var(--primary); }

/* Mobile Responsive */
@media (max-width: 991px) {
    .search-wrapper { flex-direction: column; }
    .sidebar-column { width: 100%; }
}
@media (max-width: 500px) {
    .grid-cols { grid-template-columns: 1fr 1fr; gap: 10px; }
    .results-toolbar { flex-direction: column; gap: 15px; }
}
/* --- MOBILE DROPDOWN FILTERS --- */
.mobile-filter-container {
    display: none; /* Standardmäßig aus */
    gap: 10px;
    margin-bottom: 20px;
}

.filter-select {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    appearance: none; /* Entfernt Standard-Pfeil */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    width: 100%;
}

@media (max-width: 991px) {
    .mobile-filter-container {
        display: flex; /* Auf Handy anzeigen */
    }
    .sidebar-column {
        display: none; /* Seitliche Sidebar auf Handy verstecken */
    }
}
/* --- MOBILE LISTEN-OPTIMIERUNG --- */

@media (max-width: 640px) {
    /* Container-Anpassung */
    .ad-item.list-mode .ad-link {
        display: flex !important;
        flex-direction: row !important; /* Bild und Text bleiben nebeneinander */
        align-items: flex-start !important;
    }

    /* Bild auf Handy deutlich kleiner machen */
    .ad-item.list-mode .ad-image-wrapper {
        width: 100px !important;  /* Kleineres, kompaktes Maß */
        height: 100px !important; /* Quadratisch wirkt auf Handy oft cleaner */
        flex-shrink: 0 !important;
        border-radius: 12px;
        margin: 10px;
    }

    /* Info-Teil anpassen */
    .ad-item.list-mode .ad-info {
        padding: 10px 10px 10px 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100px;
    }

    /* Titel-Schriftgröße auf Handy reduzieren */
    .ad-item.list-mode .ad-title {
        font-size: 13px !important;
        height: auto !important;
        max-height: 38px;
        margin-bottom: 5px;
    }

    /* Preis-Positionierung auf Handy */
    .ad-item.list-mode .list-pricing {
        position: absolute; /* Preis unten rechts fixieren */
        bottom: 10px;
        right: 10px;
        min-width: auto !important;
        border-left: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .ad-item.list-mode .ad-price {
        font-size: 16px !important;
        font-weight: 600;
    }

    /* Badges (Kategorie/Region) kleiner oder verstecken */
    .ad-item.list-mode .meta-badges {
        display: none; /* Optional: Verstecken um Platz zu sparen */
    }

    .ad-item.list-mode .ad-meta {
        font-size: 10px !important;
    }
}
/* ============================================================
   IBO DETAIL VIEW SYSTEM 2026 - COMPLETE & FINAL
   ============================================================ */

.ibo-detail-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    color: var(--text-main);
}

.ibo-detail-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.ibo-detail-left { flex: 1.6; min-width: 350px; }
.ibo-detail-right { flex: 1; min-width: 300px; }

/* --- BILDER & GALERIE --- */
.ibo-detail-gallery {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.ibo-detail-thumbs {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 550px;
    overflow-y: auto;
}

.ibo-detail-thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    overflow: hidden;
    transition: 0.2s;
}

.ibo-detail-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.ibo-detail-thumb-item:hover { border-color: var(--primary); }

.ibo-detail-main-img {
    flex: 1;
    height: 550px; /* Deine gewählte Höhe */
    background: #000; /* Schwarz passend zum Logo-Hintergrund */
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Verhindert, dass das Bild über die Ecken ragt */
}

#iboMainImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important; /* ZEIGT DAS GANZE BILD OHNE BESCHNITT */
    display: block;
}

/* --- BOXEN (DETAILS & BESCHREIBUNG) --- */
.ibo-detail-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.ibo-detail-title {
    font-size: 1.0rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.ibo-detail-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.ibo-detail-spec-item small {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ibo-detail-spec-item span {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
}

.ibo-detail-text {
    line-height: 1.4;
    white-space: pre-line;
    color: var(--text-main);
}

/* --- SIDEBAR & VERKÄUFER --- */
.ibo-detail-sticky { position: sticky; top: 90px; }

.ibo-detail-main-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-main);
}

.ibo-detail-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 25px;
}

.ibo-detail-seller-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.ibo-detail-seller-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ibo-detail-avatar {
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* --- BUTTONS --- */
/* Container für die Buttons */
.ibo-detail-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Etwas mehr Luft wirkt moderner */
    margin-top: 20px;
}

/* Gemeinsame Button-Basis */
.ibo-btn {
    display: block;
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 2px solid transparent; /* Verhindert Springen bei Outline-Buttons */
}

/* 1. Primärer Button (Nachrichten) */
.ibo-btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.ibo-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3); /* Falls du RGB-Variablen hast */
}

/* 2. Erfolgs-Button (Telefon) */
.ibo-btn-success {
    background-color: #10b981;
    color: #ffffff;
}

.ibo-btn-success:hover {
    background-color: #059669;
}

.ibo-btn-success i {
    margin-right: 8px;
}

/* 3. Outline-Button (Profil) */
.ibo-btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.ibo-btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Klick-Effekt für alle Buttons */
.ibo-btn:active {
    transform: scale(0.98);
}
/* --- STATS & META --- */
/* --- KOMPAKTE META-BAR (NEBENEINANDER MIT HINTERGRUND) --- */
/* Container für die Metadaten (Standort, Kategorie, etc.) */
.ibo-detail-meta-list {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

.meta-item {
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px; /* Abstand zwischen Icon und Text */
}

.meta-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 16px; /* Fixe Breite für die Icons sorgt für Ausrichtung */
    text-align: center;
}

/* Sidebar Banner Styling */
.ibo-detail-sidebar-ad {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.2s ease;
}

.ibo-detail-sidebar-ad:hover {
    transform: translateY(-2px);
}

.ibo-detail-sidebar-ad img {
    width: 100%;
    display: block;
    object-fit: cover;
    /* border-radius auf dem Bild meist unnötig, da der Container overflow:hidden hat */
}

/* --- SIDEBAR AD BANNER (NEU) --- */
.ibo-detail-sidebar-ad {
    margin-top: 25px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: 0.3s;
}

.ibo-detail-sidebar-ad:hover {
    box-shadow: var(--shadow);
}

.ibo-detail-sidebar-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- MOBILE --- */
@media screen and (max-width: 991px) {
    .ibo-detail-grid { flex-direction: column; }
    .ibo-detail-left, .ibo-detail-right { width: 100%; min-width: 100%; }
    .ibo-detail-gallery { flex-direction: column-reverse; }
    .ibo-detail-thumbs { flex-direction: row; width: 100%; overflow-x: auto; height: auto; padding-bottom: 10px; }
    .ibo-detail-thumb-item { width: 80px; height: 80px; flex-shrink: 0; }
    .ibo-detail-main-img { height: 350px; }
    .ibo-detail-sticky { position: static; }
}

/* ============================================================
   LIGHTBOX FINAL FIX (CLOSE BUTTON & OVERLAY)
   ============================================================ */

/* 1. Hintergrund & Container */
.lb-outerContainer, .lb-overlay {
    z-index: 1000000 !important; /* Über alles drüber */
}

.lb-overlay {
    background-color: rgba(0, 0, 0, 0.9) !important; /* Schön dunkel */
    cursor: pointer !important;
}


/* 2. DER CLOSE BUTTON (Das X) */
/* Radikaler Close-Button Fix */
/* --- ULTIMATIVER LIGHTBOX & MOBILE FIX --- */

/* 1. Hintergrund der Lightbox-Info (Dark Mode Support) */
.lb-dataContainer {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    padding: 15px !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.lb-data .lb-number {
    color: var(--text-muted) !important;
}

/* 2. Den Close-Button (X) radikal aufräumen */
/* --- DOPPELTES X ENTFERNEN & FIXEN --- */

.lb-data .lb-close {
    /* 1. Das alte Bild von Lightbox komplett killen */
    background: rgba(0, 0, 0, 0.6) !important; 
    background-image: none !important; 
    
    /* 2. Den Button sichtbar machen */
    display: block !important;
    float: right !important;
    width: 40px !important;
    height: 40px !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    position: relative !important;
    
    /* 3. WICHTIG: Text-Einzug auf 0, sonst verschwindet unser X */
    text-indent: 0 !important; 
    opacity: 1 !important;
    color: #fff !important;
    text-align: center !important;
    text-decoration: none !important;
}

/* 4. Nur dieses X hier darf existieren */
.lb-data .lb-close::before {
    content: "×" !important; 
    display: block !important;
    font-size: 32px !important;
    line-height: 34px !important; /* Zentriert das X vertikal */
    font-family: Arial, sans-serif !important;
    font-weight: bold !important;
}

/* Verhindert, dass Lightbox ein zweites X per :after einfügt */
.lb-data .lb-close::after {
    display: none !important;
    content: "" !important;
}
/* --- ÄHNLICHE INSERATE DARK MODE OPTIMIERT --- */

.ibo-sim-card {
    background: var(--bg-card); /* Automatisch hell oder dunkel */
    border-radius: 15px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.ibo-sim-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.ibo-sim-img-container {
    height: 180px;
    background: var(--bg-body);
    overflow: hidden;
}

.ibo-sim-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ibo-sim-info {
    padding: 15px;
}

.ibo-sim-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-main); /* Automatisch hell oder dunkel */
    font-weight: 700;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ibo-sim-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* Mobile Anpassung: 2 Spalten auf kleinen Handys */
@media (max-width: 600px) {
    .ibo-related-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    .ibo-sim-img-container {
        height: 130px;
    }
    .ibo-sim-title {
        font-size: 14px;
    }
}
/* ============================================================
   IBO MESSAGES SYSTEM 2026
   ============================================================ */

.ibo-msg-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    color: var(--text-main);
}

.ibo-msg-header {
    margin-bottom: 25px;
}

.ibo-msg-header h1 {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ibo-msg-header h1 i {
    color: var(--primary);
}

/* Alert / Success */
.ibo-msg-alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border: 1px solid transparent;
}

.ibo-msg-alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

/* Compose Box */
.ibo-msg-compose-box {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 35px;
    box-shadow: var(--shadow);
}

.ibo-msg-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ibo-msg-meta-top h3 {
    margin: 5px 0;
    font-size: 20px;
}

.ibo-msg-subtext {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.ibo-msg-form textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    outline: none;
    transition: 0.2s;
}

.ibo-msg-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ibo-msg-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.ibo-msg-cancel {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}

/* Message List & Cards */
.ibo-msg-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ibo-msg-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
}

.ibo-msg-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.ibo-msg-card-content {
    flex: 1;
    padding-right: 20px;
}

.ibo-msg-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ibo-msg-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ibo-msg-status.sent { color: var(--text-muted); }
.ibo-msg-status.received { color: var(--primary); }

.ibo-msg-date {
    font-size: 11px;
    color: var(--text-muted);
}

.ibo-msg-ad-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 15px;
}

.ibo-msg-preview {
    color: var(--text-muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.ibo-btn-reply {
    background: var(--bg-body);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s;
}

.ibo-btn-reply:hover {
    background: var(--primary);
    color: white !important;
}

/* Empty State */
.ibo-msg-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.ibo-msg-empty i {
    font-size: 50px;
    color: var(--border);
    margin-bottom: 15px;
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 768px) {
    .ibo-msg-container { padding: 0 15px; margin: 20px auto; }
    
    .ibo-msg-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ibo-msg-card-actions {
        width: 100%;
    }

    .ibo-btn-reply {
        display: block;
        text-align: center;
        width: 100%;
    }

    .ibo-msg-card-content {
        padding-right: 0;
    }

    .ibo-msg-actions {
        flex-direction: column;
    }

    .ibo-msg-actions button {
        width: 100%;
    }
}
/* ============================================================
   IBO USER PROFILE SYSTEM 2026
   ============================================================ */

.ibo-profile-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header Box */
.ibo-profile-header {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.ibo-profile-avatar-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 35px;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.ibo-profile-info h1 {
    margin: 0;
    font-size: 26px;
    color: var(--text-main);
    font-weight: 600;
}

/* Rating */
.ibo-profile-rating {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ibo-stars {
    color: #f59e0b;
    font-size: 16px;
}

.ibo-rating-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.ibo-rating-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* Badges */
.ibo-profile-badges {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.ibo-profile-badges i {
    color: var(--primary);
}

.ibo-profile-badges span i.fa-check-circle {
    color: #10b981;
}

/* Section Title */
.ibo-section-title {
    margin-bottom: 25px;
    font-size: 20px;
    color: var(--text-main);
    font-weight: 600;
}

/* Grid & Cards */
.ibo-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.ibo-ad-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.ibo-ad-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.ibo-ad-card a {
    text-decoration: none;
    color: inherit;
}

.ibo-ad-image {
    height: 180px;
    background: var(--bg-body);
    overflow: hidden;
}

.ibo-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ibo-ad-body {
    padding: 15px;
}

.ibo-ad-category {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}



.ibo-ad-footer {
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.ibo-ad-price {
    font-weight: 900;
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 5px;
}

.ibo-ad-price .free {
    color: #10b981;
}

.ibo-ad-price small {
    font-size: 14px;
    color: var(--text-muted);
}

.ibo-ad-location {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Empty State */
.ibo-empty-state {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px dashed var(--border);
    color: var(--text-muted);
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 768px) {
    .ibo-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .ibo-profile-badges {
        justify-content: center;
    }

    .ibo-ads-grid {
        grid-template-columns: 1fr 1fr; /* 2 Inserate nebeneinander auf Mobile */
        gap: 10px;
    }

    .ibo-ad-image {
        height: 130px;
    }

    .ibo-ad-body {
        padding: 10px;
    }

    .ibo-ad-title {
        font-size: 13px;
        height: 38px;
    }
}
/* ============================================================
   IBO AUTH SYSTEM (Login/Register) 2026
   ============================================================ */

.ibo-auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 0 20px;
}

.ibo-auth-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.ibo-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.ibo-auth-icon {
    background: rgba(59, 130, 246, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary);
    font-size: 24px;
}

.ibo-auth-header h2 {
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 600;
}

.ibo-auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Alerts */
.ibo-auth-alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
}

.ibo-auth-alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Form Groups */
.ibo-input-group {
    margin-bottom: 20px;
}

.ibo-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}


.ibo-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ibo-input-wrapper {
    position: relative;
}

.ibo-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.ibo-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.ibo-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Buttons & Links */
.ibo-btn-full {
    width: 100%;
}

.ibo-link-small {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.ibo-auth-footer {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.ibo-auth-footer p {
    font-size: 14px;
    color: var(--text-muted);
}

.ibo-auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* --- MOBILE --- */
@media (max-width: 480px) {
    .ibo-auth-container {
        margin: 40px auto;
    }
    .ibo-auth-card {
        padding: 30px 20px;
    }
}
/* --- REGISTRIERUNG CONTAINER --- */
.ibo-reg-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 0 20px;
}

.ibo-reg-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.ibo-reg-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.ibo-reg-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* --- FORMULAR ELEMENTE --- */
.ibo-form-group {
    margin-bottom: 20px;
}

.ibo-reg-row {
    display: flex;
    gap: 15px;
}

.ibo-reg-col {
    flex: 1;
}

.ibo-reg-label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.ibo-reg-label-blue {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--primary);
}

.ibo-reg-input, .ibo-reg-select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    transition: 0.3s;
    outline: none;
    box-sizing: border-box;
}

.ibo-reg-input:focus, .ibo-reg-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ibo-blue-border {
    border: 2px solid var(--primary);
}

/* --- PRIVAT / FIRMA SWITCHER --- */
.ibo-reg-type-flex {
    display: flex;
    gap: 15px;
}

.ibo-reg-type-item {
    flex: 1;
    cursor: pointer;
}

.ibo-reg-type-item input {
    display: none;
}

.ibo-reg-type-btn {
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    background: var(--bg-body);
    color: var(--text-muted);
    font-weight: 700;
    transition: 0.2s;
}

.ibo-reg-type-btn.active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary);
}

/* --- BUTTON & ERRORS --- */
.ibo-reg-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.ibo-reg-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.ibo-reg-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-bottom: 20px;
    font-size: 14px;
}

/* --- SUCCESS SCREEN --- */
.ibo-reg-success-container {
    padding: 80px 20px;
    text-align: center;
}

.ibo-reg-success-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #10b981;
    box-shadow: var(--shadow);
}

.ibo-reg-success-card i {
    font-size: 50px;
    color: #10b981;
    margin-bottom: 20px;
}

.ibo-btn-success {
    display: inline-block;
    margin-top: 20px;
    background: #10b981;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

/* --- DARK MODE SELECT FIX --- */
[data-theme="dark"] .ibo-reg-select option {
    background: #1e293b;
    color: #f1f5f9;
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 600px) {
    .ibo-reg-card {
        padding: 25px 20px;
    }
    
    .ibo-reg-row {
        flex-direction: column;
        gap: 0;
    }
    
    .ibo-reg-container {
        margin: 20px auto;
    }
}
/* --- VERIFY PAGE SPECIALS --- */

.ibo-verify-card {
    text-align: center;
}

.ibo-verify-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

/* Farben für Status */
.ibo-verify-card.success .ibo-verify-icon {
    color: #10b981; /* Grün */
}

.ibo-verify-card.error .ibo-verify-icon {
    color: #ef4444; /* Rot */
}

/* Dark Mode Anpassung */
[data-theme="dark"] .ibo-verify-card {
    background-color: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .ibo-verify-card h2 {
    color: var(--text-main);
}

[data-theme="dark"] .ibo-verify-card p {
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 480px) {
    .ibo-verify-card {
        padding: 30px 20px;
    }
    .ibo-verify-icon {
        font-size: 50px;
    }
}
/* --- IBO MARKET DASHBOARD MASTER STYLES --- */

.ibo-dash-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    color: var(--text-main);
}

.ibo-dash-layout {
    display: flex;
    gap: 30px;
}

/* Card Design */
.ibo-dash-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

/* Sidebar & Profile */
.ibo-dash-sidebar {
    flex: 0 0 320px;
}

.ibo-profile-box {
    padding: 30px;
}

.ibo-profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.ibo-avatar-circle {
    width: 80px;
    height: 80px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 15px;
    font-weight: bold;
    border: 4px solid var(--bg-body);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ibo-user-name {
    font-size: 20px;
    color: var(--text-main);
    margin: 0;
}

.ibo-rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.ibo-stars-gold { color: #f59e0b; font-size: 13px; }
.ibo-rating-num { font-weight: 700; color: var(--text-main); font-size: 13px; }
.ibo-rating-total { color: var(--text-muted); font-size: 12px; }

.ibo-member-since { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* Badges */
.ibo-user-badge-wrap { text-align: center; margin-bottom: 25px; }
.ibo-badge {
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.ibo-badge-biz { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.ibo-badge-priv { background: var(--bg-body); color: var(--text-muted); }

/* Stats summary */
.ibo-stat-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-body) !important;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--border);
}

.ibo-stat-item { padding: 15px; text-align: center; }
.ibo-stat-v { display: block; font-size: 18px; font-weight: 600; color: var(--text-main); }
.ibo-stat-l { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.ibo-sep-l { border-left: 1px solid var(--border); }

/* Contact info */
.ibo-contact-info { margin-bottom: 25px; }
.ibo-info-label { display: block; font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.ibo-info-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-main); margin-bottom: 10px; }
.ibo-txt-break { word-break: break-all; }

/* Dashboard Navigation */
.ibo-dash-nav { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--border); padding-top: 20px; }
.ibo-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}
.ibo-nav-link:hover { background: var(--bg-body); }
.ibo-nav-danger { color: #ef4444; }
.ibo-nav-danger:hover { background: #fff1f2; }

/* Main Content Area */
.ibo-dash-main { flex: 1; }
.ibo-main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.ibo-section-title { font-size: 24px; color: var(--text-main); margin: 0; }

.ibo-btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

/* Ad Items */
.ibo-ad-list { display: flex; flex-direction: column; gap: 15px; }
.ibo-ad-item {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ibo-ad-img { width: 110px; height: 110px; flex-shrink: 0; position: relative; border-radius: 14px; overflow: hidden; }
.ibo-ad-img img { width: 100%; height: 100%; object-fit: cover; }
.ibo-img-badge { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); color: white; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; text-transform: uppercase; }

.ibo-ad-details { flex: 1; }
.ibo-ad-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.ibo-ad-title-row h3 { margin: 0; font-size: 17px; color: var(--text-main); }
.ibo-mini-badge { background: #f97316; color: white; font-size: 9px; padding: 3px 8px; border-radius: 6px; font-weight: 600; }

.ibo-ad-price { font-size: 20px; font-weight: 600; color: #3b82f6; margin-bottom: 8px; }
.ibo-ad-meta { display: flex; gap: 20px; }
.ibo-meta-unit { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* Buttons */
.ibo-ad-actions { display: flex; gap: 8px; }
.ibo-action-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; text-decoration: none; font-size: 14px; }
.ibo-act-extend { background: #10b981; color: white; }
.ibo-act-edit { background: var(--bg-body); color: #3b82f6; }
.ibo-act-delete { background: #fff1f2; color: #ef4444; }

/* Status Colors */
.ibo-txt-blue { color: #3b82f6; }
.ibo-txt-green { color: #10b981; }
.ibo-txt-red { color: #ef4444; }
.ibo-txt-orange { color: #f97316; }

/* Empty State */
.ibo-empty-state { text-align: center; padding: 60px 20px; }
.ibo-empty-state i { font-size: 50px; color: var(--border); margin-bottom: 20px; display: block; }

/* --- RESPONSIVE / MOBILE --- */
@media (max-width: 992px) {
    .ibo-dash-layout { flex-direction: column; }
    .ibo-dash-sidebar { flex: 0 0 100%; }
}

@media (max-width: 600px) {
    .ibo-ad-item { flex-direction: column; text-align: center; }
    .ibo-ad-img { width: 100%; height: 200px; }
    .ibo-ad-title-row { justify-content: center; }
    .ibo-ad-meta { justify-content: center; }
    .ibo-ad-actions { width: 100%; justify-content: center; }
}
/* --- MOBILE: 2 INSERATE NEBENEINANDER --- */
@media (max-width: 600px) {
    /* Der Container für die Liste */
    .ibo-ad-list {
        display: flex !important;
        flex-direction: row !important; /* Nebeneinander statt untereinander */
        flex-wrap: wrap !important;     /* Umbrechen, wenn kein Platz mehr ist */
        gap: 10px !important;           /* Kleinerer Abstand zwischen den Boxen */
        padding: 5px !important;
    }

    /* Das einzelne Inserat (die Karte) */
    .ibo-ad-item {
        flex: 0 0 calc(50% - 5px) !important; /* Exakt 50% Breite minus Gap */
        flex-direction: column !important;    /* Inhalt in der Karte untereinander */
        padding: 10px !important;             /* Weniger Padding innen */
        gap: 8px !important;
        align-items: flex-start !important;
        min-width: 0 !important;              /* Verhindert Overflow */
    }

    /* Das Bild im Inserat */
    .ibo-ad-img {
        width: 100% !important;               /* Bild nutzt volle Breite der 50%-Box */
        height: 120px !important;             /* Feste Höhe für Ordnung */
    }

    /* Texte anpassen, damit sie in die kleine Box passen */
    .ibo-ad-title-row h3 {
        font-size: 13px !important;           /* Kleinere Schrift für Titel */
        line-height: 1.2;
        height: 32px;                         /* Höhe für max 2 Zeilen */
        overflow: hidden;
    }

    .ibo-ad-price {
        font-size: 15px !important;           /* Preis etwas kleiner */
        margin-bottom: 5px !important;
    }

    .ibo-ad-meta {
        flex-direction: column !important;    /* Meta-Infos (Uhr, Views) untereinander */
        gap: 2px !important;
    }

    /* Buttons schmaler machen */
    .ibo-ad-actions {
        width: 100% !important;
        gap: 5px !important;
        margin-top: 5px !important;
        border-top: 1px solid var(--border);
        padding-top: 8px !important;
    }

    .ibo-action-btn {
        height: 35px !important;              /* Flachere Buttons */
        flex: 1;                              /* Buttons teilen sich die Breite */
    }
}
/* --- IBO DASHBOARD & PROFILE SYSTEM --- */

.ibo-dash-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ibo-dash-layout {
    display: flex;
    gap: 30px;
}

.ibo-dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Sidebar Navigation */
.ibo-dash-sidebar { flex: 0 0 300px; }
.ibo-profile-nav-card { padding: 0; overflow: hidden; position: sticky; top: 20px; }

.ibo-nav-header {
    background: var(--bg-body);
    padding: 25px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.ibo-nav-avatar {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
    font-weight: 600;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ibo-side-nav { padding: 15px; }
.ibo-side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 5px;
    transition: 0.2s;
}

.ibo-side-link i { width: 25px; }
.ibo-side-link:hover { background: var(--bg-body); color: var(--primary); }
.ibo-side-link.active { background: rgba(59, 130, 246, 0.1); color: var(--primary); }

.ibo-nav-count { background: var(--border); color: var(--text-muted); font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.ibo-nav-divider { height: 1px; background: var(--border); margin: 15px 0; }
.ibo-link-danger:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Main Content */
.ibo-dash-main { flex: 1; }
.ibo-main-form-card { padding: 40px; }
.ibo-main-title { margin: 0 0 10px 0; color: var(--text-main); font-size: 24px; font-weight: 600; }
.ibo-main-subtitle { color: var(--text-muted); margin-bottom: 30px; }

/* Forms */
.ibo-form-section { padding: 25px; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 30px; }
.ibo-section-blue { background: rgba(59, 130, 246, 0.03); border-color: rgba(59, 130, 246, 0.2); }

.ibo-section-head { margin-top: 0; color: var(--text-main); margin-bottom: 20px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.ibo-input-group { margin-bottom: 20px; }
.ibo-input-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.ibo-input-group small { color: var(--text-muted); display: block; margin-top: 6px; font-size: 12px; }

.ibo-input, .ibo-select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-main);
    outline: none;
    box-sizing: border-box;
    transition: 0.2s;
}

.ibo-input-blue-border { border: 2px solid var(--primary); font-weight: 600; }
.ibo-input-disabled { background: var(--bg-body); color: var(--text-muted); cursor: not-allowed; }

.ibo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Radio Type Selector */
.ibo-type-grid { display: flex; gap: 15px; }
.ibo-type-label { flex: 1; cursor: pointer; }
.ibo-type-label input { display: none; }
.ibo-type-box {
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    transition: 0.2s;
    background: var(--bg-card);
    color: var(--text-muted);
}

.ibo-type-label input:checked + .ibo-type-box {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Submit Button */
.ibo-btn-submit {
    background: var(--primary);
    color: white;
    padding: 18px 45px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.ibo-btn-submit:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Alerts */
.ibo-alert { padding: 15px; border-radius: 12px; margin-bottom: 25px; border: 1px solid transparent; display: flex; align-items: center; gap: 10px; }
.ibo-alert-success { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.ibo-alert-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

/* --- DARK MODE SPECIALS --- */
[data-theme="dark"] .ibo-nav-avatar { border-color: #1e293b; }
[data-theme="dark"] .ibo-input-disabled { background: rgba(255,255,255,0.05); }

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 992px) {
    .ibo-dash-layout { flex-direction: column; }
    .ibo-dash-sidebar { flex: none; width: 100%; }
    .ibo-profile-nav-card { position: relative; top: 0; }
}

@media (max-width: 600px) {
    .ibo-main-form-card { padding: 25px; }
    .ibo-grid-2 { grid-template-columns: 1fr; gap: 0; }
    .ibo-type-grid { flex-direction: column; }
    .ibo-btn-submit { width: 100%; }
}
/* --- IBO FAVORITES SYSTEM --- */
.ibo-fav-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.ibo-fav-header {
    margin-bottom: 30px;
}

.ibo-fav-header h1 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 5px;
}

.ibo-fav-header h1 i { color: #ef4444; margin-right: 10px; }
.ibo-fav-header p { color: var(--text-muted); }

/* Card List */
.ibo-fav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ibo-fav-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}

.ibo-fav-link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.ibo-fav-img {
    width: 240px;
    height: 180px;
    flex-shrink: 0;
}

.ibo-fav-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ibo-fav-body {
    padding: 20px;
    flex: 1;
}

.ibo-fav-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.ibo-fav-title {
    margin: 5px 0;
    font-size: 18px;
    color: var(--text-main);
}

.ibo-fav-loc {
    font-size: 13px;
    color: var(--text-muted);
}

.ibo-fav-price {
    font-size: 22px;
    font-weight: 900;
    margin-top: 10px;
    color: var(--text-main);
}

.ibo-fav-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
}

.ibo-fav-remove:hover {
    background: #ef4444;
    color: #fff;
}

/* Empty State */
.ibo-empty-card {
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
}

.ibo-empty-icon { font-size: 50px; color: var(--border); margin-bottom: 20px; }
.ibo-btn-link { color: var(--primary); font-weight: 700; text-decoration: none; }

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 768px) {
    .ibo-fav-item {
        flex-direction: column;
    }
    .ibo-fav-img {
        width: 100%;
        height: 200px;
    }
    .ibo-fav-remove {
        top: 10px;
        right: 10px;
        background: #fff; /* Damit man es auf dem Bild sieht */
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

        /* CSS Ergänzung für das Dropdown & Darkmode-Stabilität */
        .no-transition * { transition: none !important; }
        .ibo-lang-dropdown { position: relative; margin-right: 15px; display: inline-block; }
        .ibo-lang-selected { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-card); }
        .ibo-lang-list { display: none; position: absolute; top: 115%; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; min-width: 160px; z-index: 10000; box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
        .ibo-lang-list.show { display: block; animation: iboFadeIn 0.2s ease; }
        .ibo-lang-list a { display: flex; align-items: center; gap: 10px; padding: 10px 15px; text-decoration: none; color: var(--text-main); font-size: 14px; }
        .ibo-lang-list a:hover { background: var(--bg-body); color: var(--primary); }
        .ibo-lang-list a.active { font-weight: bold; background: var(--primary-light); }
        .ibo-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
        .lang-arrow { font-size: 10px; transition: transform 0.3s; }
        @keyframes iboFadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
        
        /* Kategorie Icon Grid auf der Startseite */
.quick-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.cat-icon-item {
    text-decoration: none;
    color: var(--sb-text);
    display: flex;
    flex-direction: column;
    align-items: center;
     transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.cat-icon-item:hover {
    transform: scale(1.1); /* Vergrößert das Icon um 10% */
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 18px; /* Leicht abgerundet wie in der Grafik */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
     color: var(--primary);
  
    
                    
}

.cat-icon-item span {
    font-size: 13px;
    font-weight: 600;
}
.glass-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden; /* Verhindert, dass Inhalte über die Ecken ragen */

    /* Glassmorphism-Effekt */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-main); /* Angepasst an dein Theme */
    
    /* Sanfte Animation für Interaktionen */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}



/* Kleiner Bonus: Hover-Effekt */
.fav-button {
  /* Positionierung innerhalb der Card */
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;

  /* Dimensionen & Form */
  width: 45px;
  height: 45px;
  border-radius: 50%;
  
  /* Flexbox für das Icon */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Styling */
  background: var(--bg-body);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  
  /* Animation */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon-Standardfarbe */
.fav-button i {
  color: #9ca3af;
  font-size: 22px;
  transition: transform 0.2s ease;
}

/* Hover-Effekt */
.fav-button:hover {
  background: var(--bg-card);
  border-color: #ef4444;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.fav-button:hover i {
  transform: scale(1.1);
}

/* Styling wenn bereits Favorit (is-active) */
.fav-button.is-active i {
  color: #ef4444;
}

/* Kleiner Klick-Effekt */
.fav-button:active {
  transform: scale(0.95);
}
.ibo-btn-share {
    /* Farben & Rahmen */
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    
    /* Layout */
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    
    /* Typografie & Interaktion */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Abstand zwischen Icon und Text */
    
    transition: all 0.2s ease;
}

/* Hover-Effekt: Etwas dunklerer/hellerer Hintergrund und feiner Schatten */
.ibo-btn-share:hover {
    background-color: var(--bg-card); /* Oder eine Nuance anders als Body */
    border-color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Aktiver Klick-Zustand */
.ibo-btn-share:active {
    transform: scale(0.98);
}

/* Icon-Styling innerhalb des Buttons */
.ibo-btn-share i {
    font-size: 1.1em;
}