/* ============================================================
   indicia.de - Stylesheet
   ============================================================ */

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
img{display:block;max-width:100%}

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #1565C0;
    --text: #333333;
    --text-light: #666666;
    --bg: #F5F5F5;
    --white: #FFFFFF;
    --border: #E0E0E0;
    --success: #4CAF50;
    --danger: #F44336;
    --warning: #FF9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 12px 16px;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-self: start;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-img {
    display: block;
    height: 60px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

/* Search */
.search-bar {
    flex: 1;
    max-width: 700px;
}

.search-form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.search-btn {
    padding: 10px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Navigation */
.nav {
    display: flex;
    gap: 8px;
    justify-self: end;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link i {
    font-size: 18px;
    margin-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(255,107,53,0.1);
}

/* Hero Section */
/* Werbefenster (Startseite oben) - aus Admin-Bereich */
.ad-window {
    max-width: 760px;
    margin: 0 auto 32px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    aspect-ratio: 760 / 120;
}

.ad-window .ad-track {
    display: flex;
    height: 100%;
    transition: transform .45s ease;
}

.ad-window .ad-slide {
    flex: 0 0 100%;
    height: 100%;
    min-width: 100%;
}

.ad-window .ad-slide a {
    display: block;
    height: 100%;
}

.ad-window .ad-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-window .ad-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    background: rgba(0,0,0,.25);
    padding: 4px 10px;
    border-radius: 20px;
}

.ad-window .ad-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    cursor: pointer;
    transition: all .2s;
}

.ad-window .ad-dot.active {
    background: #fff;
    width: 18px;
    border-radius: 4px;
}

/* ===== Seiten-Werbespalten (links/rechts, hochkant) ===== */
.home-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.home-layout .home-main {
    flex: 1;
    min-width: 0;
}
.home-layout.no-ads {
    display: block;
}
.side-ad-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 80px;
    flex: 0 0 220px;
}
.side-ad-item {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
}
.side-ad-item img {
    width: 100%;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
    background: #f3f4f6;
}
.side-ad-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
}
.side-ad-company {
    display: block;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Anzeige-Detailseite: seitliche Werbespalten */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}
.detail-layout .detail-main {
    min-width: 0;
}
.detail-layout .side-ad-col.right {
    grid-column: 2;
}

@media (max-width: 1080px) {
    .home-layout .side-ad-col { flex-basis: 190px; }
    .home-layout .side-ad-col.left { display: none; }
    .detail-layout { grid-template-columns: minmax(0, 1fr) 190px; }
}
@media (max-width: 820px) {
    .home-layout { display: block; }
    .home-layout .side-ad-col { display: none; }
    .detail-layout { display: block; }
    .detail-layout .side-ad-col { display: none; }
}

/* Categories */
.categories-section {
    margin-bottom: 40px;
}

.categories-section-compact {
    margin-bottom: 24px;
}

.categories-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.categories-header i {
    font-size: 22px;
    color: var(--primary);
}

.categories-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.categories-nav {
    display: flex;
    gap: 8px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.categories-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
    padding: 4px 4px 12px 4px;
    margin: 0 -4px;
}

.categories-grid::-webkit-scrollbar {
    height: 6px;
}

.categories-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.categories-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.categories-grid::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.category-card {
    flex: 0 0 auto;
    min-width: 100px;
    background: var(--white);
    padding: 16px 12px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    border: 2px solid transparent;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-card.active {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.category-card i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

.category-card span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.listing-card {
    position: relative;
    display: block;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.fav-btn{position:absolute;top:8px;right:8px;background:rgba(255,255,255,.9);border:none;width:32px;height:32px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;color:#ccc;z-index:2;box-shadow:0 1px 4px rgba(0,0,0,.15);transition:color .2s}
.fav-btn.fav-active{color:#e74c3c}

.listing-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--border);
}

.listing-avatar {
    position: absolute;
    top: 168px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-size: 14px;
}

.listing-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.listing-verified {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #0AA3B7;
}

.listing-verified i {
    font-size: 8px;
}

.listing-content {
    padding: 16px;
}

.listing-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

.listing-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Listing Detail */
.listing-detail {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.listing-detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.listing-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.listing-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.listing-info h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

.listing-info .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.listing-details {
    margin-bottom: 24px;
}

.listing-details dt {
    font-weight: 600;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 12px;
}

.listing-details dd {
    font-size: 15px;
    margin-bottom: 8px;
}

.listing-description {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.listing-description h3 {
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Legal Pages */
.legal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.legal-content h1 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--primary);
}

.legal-content h2 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer p {
    color: #999;
    font-size: 13px;
    line-height: 1.8;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary);
}

.footer-cats {
    columns: 2;
    column-gap: 16px;
}

.footer-cats li {
    break-inside: avoid;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .listing-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        display: flex;
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .nav {
        gap: 4px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* Top Anzeigen Section */
.top-ads-section {
    margin-bottom: 32px;
}

.top-ads-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.top-ads-header i {
    font-size: 24px;
    color: #FF9800;
}

.top-ads-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.top-ads-nav {
    display: flex;
    gap: 8px;
}

.scroll-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text);
}

.scroll-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255,107,53,0.05);
}

.top-ads-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px 4px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.top-ads-scroll::-webkit-scrollbar {
    height: 8px;
}

.top-ads-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.top-ads-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.top-ads-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.top-ad-card {
    flex: 0 0 180px;
    background: linear-gradient(135deg, #E65100 0%, #EF6C00 100%);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.top-ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(230, 81, 0, 0.4);
}

.top-ad-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.top-ad-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    color: #E65100;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.top-ad-badge i {
    font-size: 10px;
}

.top-ad-shipping {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #1565C0;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.top-ad-shipping i {
    font-size: 10px;
}

.listing-shipping {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #1565C0;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.listing-shipping i {
    font-size: 11px;
}

.top-ad-avatar {
    position: absolute;
    top: 102px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    background: #E65100;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-size: 14px;
}

.top-ad-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.top-ad-verified {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #0AA3B7;
}

.top-ad-verified i {
    font-size: 8px;
}

.top-ad-content {
    padding: 12px;
}

.top-ad-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.top-ad-price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
}

.top-ad-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
}

.top-ad-meta i {
    margin-right: 2px;
}

/* Responsive für Top Anzeigen */
@media (max-width: 768px) {
    .top-ad-card {
        flex: 0 0 150px;
    }
    
    .top-ad-image {
        height: 120px;
    }
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 0;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb span {
    margin: 0 6px;
    color: #ccc;
}

/* ============================================================
   DETAIL PAGE (anzeige.php) - App-Stil, mobilkompatibel
   ============================================================ */

/* Detail Actions Bar (unter Hauptnavigation) - angepasst an Inhaltsbreite */
.detail-actions-bar{background:linear-gradient(135deg,#0D47A1,#1565C0);padding:12px 16px;display:flex;align-items:center;gap:10px;max-width:532px;margin:0 auto;position:sticky;top:0;z-index:90;border-radius:0 0 14px 14px;box-shadow:0 4px 14px rgba(21,101,192,.30)}
.detail-back-btn{color:#fff;text-decoration:none;font-size:18px;padding:6px}
.detail-actions-title{flex:1;font-size:15px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-action-btn{background:rgba(255,255,255,.2);border:none;color:#fff;font-size:17px;padding:10px;border-radius:50%;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s}
.detail-action-btn:active{background:rgba(255,255,255,.35)}

/* Gallery - App Carousel */
.gallery-wrap{position:relative;width:100%;max-width:532px;margin:16px auto 0;overflow:hidden;background:#111;border-radius:14px;box-shadow:0 4px 18px rgba(0,0,0,.12);touch-action:pan-y;user-select:none;-webkit-user-select:none}
.gallery-track{display:flex;transition:transform .3s ease;will-change:transform}
.gallery-track.dragging{transition:none;cursor:grabbing}
.gallery-track img{width:100%;flex-shrink:0;aspect-ratio:4/3;object-fit:cover;-webkit-user-drag:none}

/* Hauptbild im Produktdetail - 4:3 Format, klickbar für Vergrößerung */
.detail-main .content img{aspect-ratio:4/3;width:100%;object-fit:cover;display:block;margin:0 auto;border-radius:14px;cursor:pointer;-webkit-user-drag:none}
.gallery-counter{position:absolute;top:12px;right:12px;background:rgba(0,0,0,.6);color:#fff;padding:4px 10px;border-radius:20px;font-size:11px;font-weight:600;backdrop-filter:blur(4px);z-index:3}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.85);width:36px;height:36px;border-radius:50%;border:none;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.3);-webkit-tap-highlight-color:transparent;z-index:3;transition:opacity .15s}
.gallery-nav.prev{left:10px}
.gallery-nav.next{right:10px}
.gallery-nav:active{opacity:.5}
.gallery-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:3}
.gallery-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;transition:all .2s}
.gallery-dot.active{background:#fff;width:18px;border-radius:4px}

/* Content */
.content{padding:16px;max-width:532px;margin:0 auto}
.price{font-size:28px;font-weight:800;color:#FF6B35}
.price-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.btn-o-sm{background:none;border:2px solid #FF6B35;color:#FF6B35;font-size:12px;font-weight:600;padding:6px 12px;border-radius:8px;cursor:pointer;white-space:nowrap}
.btn-o-sm:active{background:#FF6B35;color:#fff}
.btn-p-full{width:100%;background:linear-gradient(135deg,#FF6B35,#FF8F65);color:#fff;border:none;padding:14px;border-radius:12px;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 15px rgba(255,107,53,.35)}
.btn-p-full:active{transform:scale(.97);opacity:.9}
.title{font-size:20px;font-weight:700;line-height:1.35;margin-bottom:12px;color:#222}
.meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-bottom:14px;font-size:13px;color:#666}
.meta i{color:#FF6B35;margin-right:4px}
.shipping-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(21,101,192,.08);color:#1565C0;padding:8px 14px;border-radius:10px;font-size:13px;font-weight:600;border:1px solid rgba(21,101,192,.25);margin-bottom:16px}

/* Sections */
.section{margin-bottom:20px}
.section-title{font-size:15px;font-weight:700;margin-bottom:10px;color:#333;display:flex;align-items:center;gap:6px}
.section-title i{color:#FF6B35;font-size:14px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.section-head .section-title{margin-bottom:0}
.sec-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:rgba(255,107,53,.12);color:#FF6B35;font-size:15px;flex:0 0 auto}
.city-filter-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:20px;border:1px solid #FF6B35;background:transparent;color:#FF6B35;font-size:13px;font-weight:600;cursor:pointer;transition:background .2s,color .2s}
.city-filter-btn:hover{background:rgba(255,107,53,.08)}
.city-filter-btn.active{background:#FF6B35;color:#fff}
.city-filter-btn:disabled{opacity:.6;cursor:default}
.desc-box{background:#fff;padding:14px;border-radius:12px;font-size:14px;line-height:1.7;border:1px solid #eee;word-break:break-word}
.attrs{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #eee}
.attr{display:flex;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #f0f0f0}
.attr:last-child{border:none}
.attr-l{font-size:13px;color:#888}
.attr-v{font-size:13px;font-weight:600;color:#333}

/* Seller Card */
.seller{display:flex;align-items:center;gap:12px;background:#fff;padding:14px;border-radius:12px;text-decoration:none;color:#333;border:1px solid #eee;transition:box-shadow .2s}
.seller:active{box-shadow:0 2px 12px rgba(0,0,0,.08)}
.seller img{width:50px;height:50px;border-radius:50%;object-fit:cover;background:#f0f0f0;flex-shrink:0}
.seller-info{flex:1;min-width:0}
.seller-name{font-size:14px;font-weight:700;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.verified{color:#1565C0;font-size:13px}
.biz-badge{background:rgba(245,124,0,.12);color:#E65100;padding:2px 8px;border-radius:6px;font-size:10px;font-weight:700;border:1px solid rgba(245,124,0,.3);white-space:nowrap}
.stars{display:flex;gap:1px;margin-top:3px;align-items:center}
.stars i{font-size:11px;color:#FFC107}
.stars i.far{color:#ddd}
.stars span{font-size:11px;color:#888;margin-left:4px}

/* Business */
.biz-card{background:rgba(245,124,0,.04);border:1px solid rgba(245,124,0,.3);border-radius:12px;padding:14px;margin-bottom:20px}
.biz-header{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#E65100;margin-bottom:10px}
.biz-row{display:flex;align-items:flex-start;gap:8px;margin-bottom:6px;font-size:13px;line-height:1.4}
.biz-row:last-child{margin:0}
.biz-row i{color:#999;font-size:12px;margin-top:2px;flex-shrink:0}

/* Horizontal Scroll - App Carousel */
.hscroll-wrap{position:relative;margin:0 -16px;padding:0 16px}
.hscroll{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:4px 0 12px}
.hscroll::-webkit-scrollbar{display:none}
.hscroll-btn{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.92);width:30px;height:30px;border-radius:50%;border:none;font-size:11px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.18);z-index:3;transition:opacity .15s}
.hscroll-btn:active{opacity:.5}
.hscroll-btn.hsb-l{left:2px}
.hscroll-btn.hsb-r{right:2px}
.hcard{flex:0 0 140px;background:#fff;border-radius:12px;overflow:hidden;text-decoration:none;color:#333;border:1px solid #eee;scroll-snap-align:start;transition:transform .15s}
.hcard:active{transform:scale(.97)}
.hcard img{width:100%;height:100px;object-fit:cover}
.hcard-body{padding:10px}
.hcard-title{font-size:12px;font-weight:600;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcard-price{font-size:14px;font-weight:700;color:#FF6B35;margin-bottom:2px}
.hcard-meta{font-size:10px;color:#888}

/* Bottom Bar */
.bottombar{position:fixed;bottom:0;left:0;right:0;background:#fff;padding:10px 16px max(12px,env(safe-area-inset-bottom+8px));display:flex;align-items:center;justify-content:space-between;box-shadow:0 -3px 16px rgba(0,0,0,.1);z-index:90;border-top:1px solid #f0f0f0}
.bottombar-price-l{font-size:11px;color:#888}
.bottombar-price{font-size:19px;font-weight:800;color:#FF6B35}
.bottombar-btns{display:flex;gap:8px}
.btn-o{background:#fff;border:2px solid #FF6B35;color:#FF6B35;padding:11px 14px;border-radius:12px;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:5px;-webkit-tap-highlight-color:transparent;transition:background .15s}
.btn-o:active{background:rgba(255,107,53,.06)}
.btn-p{background:#FF6B35;color:#fff;border:none;padding:11px 16px;border-radius:12px;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:5px;-webkit-tap-highlight-color:transparent;transition:background .15s}
.btn-p:active{background:#E55A2B}

/* Modal */
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:200;display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.modal-bg.on{opacity:1;pointer-events:all}
.modal-box{background:#fff;width:100%;max-width:500px;max-height:90vh;border-radius:20px 20px 0 0;overflow-y:auto;transform:translateY(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);padding-bottom:max(16px,env(safe-area-inset-bottom))}
.modal-bg.on .modal-box{transform:translateY(0)}
.modal-h{width:36px;height:4px;background:#ddd;border-radius:2px;margin:10px auto}
.modal-head{padding:12px 18px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;gap:10px}
.modal-head h3{font-size:16px;font-weight:700;margin:0}
.modal-body{padding:16px 18px}
.modal-body textarea{width:100%;border:1.5px solid #e0e0e0;border-radius:12px;padding:12px;font-size:14px;font-family:inherit;resize:vertical;outline:none;transition:border-color .2s;-webkit-appearance:none}
.modal-body textarea:focus{border-color:#FF6B35}
.modal-foot{padding:12px 18px;display:flex;gap:10px;justify-content:flex-end}
.btn-cancel{background:#f5f5f5;color:#333;padding:11px 20px;border-radius:10px;font-size:14px;font-weight:600;border:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.btn-send{background:#FF6B35;color:#fff;padding:11px 20px;border-radius:10px;font-size:14px;font-weight:600;border:none;cursor:pointer;display:flex;align-items:center;gap:6px;-webkit-tap-highlight-color:transparent}
.btn-red{background:#F44336;color:#fff;padding:11px 20px;border-radius:10px;font-size:14px;font-weight:600;border:none;cursor:pointer;display:flex;align-items:center;gap:6px;-webkit-tap-highlight-color:transparent}
.modal-hint{font-size:13px;color:#666;margin-bottom:12px;line-height:1.5}
.price-inp{display:flex;align-items:center;background:#f5f5f5;border-radius:12px;overflow:hidden;margin-top:8px;border:1.5px solid #e0e0e0}
.price-inp:focus-within{border-color:#FF6B35}
.price-inp span{padding:12px 14px;font-weight:700;color:#888;font-size:15px}
.price-inp input{flex:1;border:none;background:transparent;padding:12px;font-size:16px;outline:none;-webkit-appearance:none}
.stars-input{display:flex;justify-content:center;gap:8px;margin-bottom:14px}
.stars-input i{font-size:34px;color:#ddd;cursor:pointer;transition:color .15s;-webkit-tap-highlight-color:transparent}
.stars-input i.fas{color:#FFC107}

/* Detail Responsive */
@media(min-width:768px){
    .content{padding:20px 24px}
    .price{font-size:32px}
    .title{font-size:24px}
    .gallery-wrap{max-width:532px}
    .hcard{flex:0 0 160px}
    .hcard img{height:120px}
    .btn-o-sm{font-size:13px;padding:8px 14px}
    .hscroll-btn{width:34px;height:34px;font-size:13px}
}

/* Cookie Consent Banner */
.cookie-banner{position:fixed!important;bottom:0!important;left:0!important;right:0!important;background:#fff!important;box-shadow:0 -4px 20px rgba(0,0,0,.15)!important;z-index:99999!important;padding:20px 16px!important;display:none!important;border-top:3px solid #FF6B35!important;margin:0!important;width:100%!important;box-sizing:border-box!important}
.cookie-banner.show{display:block!important}
.cookie-inner{max-width:900px;margin:0 auto;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.cookie-text{flex:1;min-width:250px;font-size:13px;color:#444;line-height:1.6}
.cookie-text a{color:#FF6B35;text-decoration:underline}
.cookie-btns{display:flex;gap:8px;flex-shrink:0}
.cookie-btn{padding:10px 20px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:none;transition:all .2s}
.cookie-btn-accept{background:#FF6B35;color:#fff}
.cookie-btn-accept:hover{background:#e55a2b}
.cookie-btn-settings{background:none;border:1px solid #ccc;color:#555}
.cookie-btn-settings:hover{border-color:#FF6B35;color:#FF6B35}
.cookie-btn-reject{background:#f5f5f5;color:#666;border:1px solid #ddd}
.cookie-btn-reject:hover{background:#e0e0e0;color:#333}

/* Cookie Settings Modal */
.cookie-modal{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;background:rgba(0,0,0,.5)!important;z-index:100000!important;display:none!important;align-items:center;justify-content:center;margin:0!important;padding:20px!important}
.cookie-modal.show{display:flex!important}
.cookie-box{background:#fff;border-radius:16px;padding:24px;max-width:500px;width:100%;max-height:80vh;overflow-y:auto;position:relative;box-shadow:0 10px 40px rgba(0,0,0,.2)}
.cookie-box h3{margin:0 0 8px;font-size:18px;color:#333}
.cookie-box>p{font-size:13px;color:#666;margin-bottom:20px;line-height:1.6}
.cookie-opt{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #f0f0f0}
.cookie-opt:last-of-type{border:none}
.cookie-opt-info{flex:1;margin-right:16px}
.cookie-opt-info label{font-size:14px;color:#333;font-weight:600;display:block;margin-bottom:2px}
.cookie-opt-info small{font-size:12px;color:#888}
.cookie-toggle{position:relative;width:44px;height:24px;flex-shrink:0;display:inline-block}
.cookie-toggle input{opacity:0;width:0;height:0;position:absolute}
.cookie-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#ccc;border-radius:24px;transition:.3s}
.cookie-slider:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.3s}
.cookie-toggle input:checked+.cookie-slider{background:#FF6B35}
.cookie-toggle input:checked+.cookie-slider:before{transform:translateX(20px)}
.cookie-toggle input:disabled+.cookie-slider{opacity:.5;cursor:not-allowed}
.cookie-box-actions{margin-top:20px;display:flex;gap:8px;justify-content:flex-end}

/* Profile Menu */
.profile-menu{display:flex;gap:6px;margin-bottom:20px;flex-wrap:wrap}
.profile-menu-item{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border-radius:8px;font-size:13px;font-weight:500;text-decoration:none;color:var(--text);background:var(--card);border:1px solid var(--border);transition:.2s}
.profile-menu-item:hover{background:var(--primary);color:#fff;border-color:var(--primary)}
.profile-menu-item.active{background:var(--primary);color:#fff;border-color:var(--primary)}

/* Extended Search */
.search-form.search-extended{display:flex;gap:4px;align-items:center}
.search-form.search-extended .search-input{flex:2;min-width:80px;padding:8px 10px;font-size:13px}
.search-form.search-extended .search-select{flex:0 1 auto;padding:8px 8px;border:1px solid var(--border);border-radius:6px;font-size:12px;background:#fff;color:var(--text);max-width:130px}
.search-form.search-extended .search-radius{max-width:80px}
.search-form.search-extended .search-btn{padding:8px 14px;flex-shrink:0}
@media(max-width:900px){.search-form.search-extended{flex-wrap:wrap}.search-form.search-extended .search-select{max-width:100%;flex:1 1 45%}.search-form.search-extended .search-radius{flex:1 1 45%}}
@media(max-width:480px){
    .search-form.search-extended .search-input{flex:1 1 100%;min-width:0;width:100%}
    .search-form.search-extended .search-select{flex:1 1 48%;max-width:100%}
    .search-form.search-extended .search-radius{flex:1 1 100%;max-width:100%}
    .search-form.search-extended .search-btn{flex:1 1 100%;width:100%;justify-content:center;display:flex;align-items:center}
    .search-form.search-extended{gap:6px}
}

/* Chat */
.chat-container{display:grid;grid-template-columns:300px 1fr;height:calc(100vh - 200px);background:white;border-radius:12px;overflow:hidden}
.conversations-list{border-right:1px solid var(--border);overflow-y:auto}
.conversation-item{display:flex;gap:12px;padding:14px 16px;text-decoration:none;color:var(--text);border-bottom:1px solid var(--border);transition:.15s}
.conversation-item:hover{background:var(--bg)}
.conversation-item.active{background:var(--primary);color:#fff}
.conversation-item img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.conversation-info{flex:1;min-width:0}
.conversation-name{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-product{font-size:11px;color:var(--primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-preview{font-size:12px;color:var(--text-light);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.conversation-item.active .conversation-preview{color:rgba(255,255,255,.7)}
.conversation-row{display:flex;align-items:center;border-bottom:1px solid var(--border);position:relative}
.conversation-row .conversation-item{flex:1;border-bottom:none}
.conversation-delete{flex:0 0 auto;padding:0 0 0 14px}
.conversation-delete button{background:transparent;border:none;cursor:pointer;color:var(--text-light);font-size:14px;padding:8px;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:.15s}
.conversation-delete button:hover{color:#e74c3c;background:rgba(231,76,60,.1)}
.conversation-delete button:disabled{opacity:.5;cursor:default}
.conversation-time{font-size:10px;color:var(--text-light);white-space:nowrap}
.chat-area{display:flex;flex-direction:column}
.chat-header{padding:14px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px}
.chat-header img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.chat-back{display:none;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--bg);color:var(--primary);text-decoration:none;font-size:15px;flex-shrink:0}
@media(min-width:769px){.chat-back{display:none!important}}
@media(max-width:768px){.chat-container{display:flex;flex-direction:column;height:calc(100vh - 300px);min-height:420px}.chat-container:not(.chat-open) .chat-area{display:none}.chat-container.chat-open .conversations-list{display:none}.chat-container.chat-open .chat-area{display:flex;flex:1;min-height:0}.chat-back{display:inline-flex}}
.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}
.msg{max-width:75%;padding:10px 14px;border-radius:16px;font-size:14px;line-height:1.5;word-wrap:break-word}
.msg-sent{background:var(--primary);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.msg-received{background:var(--bg);color:var(--text);align-self:flex-start;border-bottom-left-radius:4px}
.msg-time{font-size:10px;opacity:.6;margin-top:4px}
.chat-input{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--border)}
.chat-input input{flex:1;padding:10px 14px;border:1px solid var(--border);border-radius:24px;font-size:14px;outline:none}
.chat-input input:focus{border-color:var(--primary)}
.chat-input button{padding:10px 20px;background:var(--primary);color:#fff;border:none;border-radius:24px;cursor:pointer;font-size:14px}
.no-chat{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-light);flex-direction:column;gap:12px}

/* Star Rating */
.stars{display:flex;gap:4px}
.stars i{color:#DDD;font-size:20px}
.stars i.filled{color:#FFB800}
.star-input i{cursor:pointer;transition:color .2s}
.star-input i:hover,.star-input i.active{color:#FFB800 !important}

/* Galerie-Kauf-Optionen (Modal) */
.gallery-opt{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px;border:1.5px solid var(--primary);border-radius:10px;text-decoration:none;color:var(--text);transition:background .2s;text-align:center}
.gallery-opt:hover{background:rgba(255,107,53,.08)}
.gallery-opt>div:first-child{font-weight:700;font-size:14px}
.gallery-price{color:var(--primary);font-weight:600;font-size:13px}

/* Unread Badge */
.badge-unread{position:absolute;top:-4px;right:-8px;background:#EF4444;color:#fff;font-size:10px;font-weight:700;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px;line-height:1}
/* Avatar Container sicherstellen */
.listing-avatar,
.top-ad-avatar,
.seller img {
    display: block !important;
    overflow: hidden !important;
}

/* Avatar Bild rund erzwingen - WICHTIG für Firefox */
.listing-avatar img,
.top-ad-avatar img,
.seller img {
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    -webkit-user-drag: none !important;
}
