/* ============================
   ChemExchange — Global Styles
   ============================ */

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --border: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(148, 163, 184, 0.25);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --green: #10b981;
    --green-dark: #059669;
    --green-glow: rgba(16, 185, 129, 0.15);
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.15);
    --red: #ef4444;
    --yellow: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

html { background: var(--bg-primary); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }

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

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.9rem; cursor: pointer; transition: all var(--transition);
    border: none; font-family: inherit; white-space: nowrap;
}
.btn-primary {
    background: var(--green); color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary {
    background: transparent; color: var(--green); border: 1.5px solid var(--green);
}
.btn-secondary:hover { background: var(--green-glow); }
.btn-ghost {
    background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* Inputs */
.input, .select {
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--bg-secondary); border: 1.5px solid var(--border);
    color: var(--text-primary); font-family: inherit; font-size: 0.9rem;
    transition: border-color var(--transition); width: 100%;
}
.input:focus, .select:focus { outline: none; border-color: var(--green); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
textarea.input { min-height: 100px; resize: vertical; }

label { font-weight: 500; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; display: block; }

/* ============ HEADER ============ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); height: 64px;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.2rem; color: var(--text-primary); font-weight: 300; letter-spacing: -0.5px;
}
.logo strong { font-weight: 700; }
.logo:hover { color: var(--text-primary); }

.nav { display: flex; gap: 4px; }
.nav-link {
    color: var(--text-secondary); padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500; transition: all var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.header-actions { display: flex; gap: 8px; }

.hamburger {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
    width: 24px; height: 2px; background: var(--text-secondary); border-radius: 2px;
    transition: all var(--transition);
}

.mobile-nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary); z-index: 999; flex-direction: column;
    padding: 24px; gap: 8px;
}
.mobile-nav a {
    color: var(--text-primary); font-size: 1.1rem; padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.mobile-nav hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.mobile-nav.active { display: flex; }

@media (max-width: 768px) {
    .nav, .header-actions { display: none; }
    .hamburger { display: flex; }
}

/* ============ HERO ============ */
.hero {
    padding: 140px 0 64px; text-align: center; position: relative; overflow: hidden;
    background: transparent;
}
.page-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
/* Sections are above canvas but have transparent backgrounds */
.hero, .section, .cta-section, .cat-nav, .page-header { position: relative; z-index: 1; }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 3rem; font-weight: 700; letter-spacing: -1px;
    line-height: 1.15; margin-bottom: 16px; max-width: 700px; margin-left: auto; margin-right: auto;
    color: #f1f5f9;
}
.hero .subtitle {
    font-size: 1.15rem; color: rgba(255,255,255,0.6); max-width: 520px;
    margin: 0 auto 32px; font-weight: 400; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    margin-top: 32px; display: flex; justify-content: center; gap: 8px;
    font-size: 0.9rem; color: rgba(255,255,255,0.45);
}
.hero-stats strong { color: rgba(255,255,255,0.7); font-weight: 600; }
.hero-stats-sep { opacity: 0.3; }

@media (max-width: 768px) {
    .hero { padding: 110px 0 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 1rem; }
}

/* Stats are now inline in the hero — old stat cards removed */

/* ============ SECTIONS ============ */
.section { padding: 48px 0; background: transparent; }
.section-alt {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-title {
    font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.3px;
}
.section-subtitle { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 40px; }
.section-header { text-align: center; margin-bottom: 40px; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card {
    text-align: center; padding: 32px 24px;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius); transition: border-color var(--transition);
}
.step-card:hover {
    border-color: var(--border-hover);
}
.step-number {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(15, 23, 42, 0.8); border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.9rem; margin: 0 auto 16px; color: var(--text-secondary);
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 600; text-align: center; }
.step-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 16px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--transition);
    color: inherit;
}
.cat-card:hover { border-color: var(--border-hover); color: inherit; }
.cat-name { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.cat-card small { color: var(--text-muted); font-size: 0.78rem; line-height: 1.4; }

@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ LISTING CARDS ============ */
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.listing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all 0.3s ease; cursor: pointer; position: relative;
}
.listing-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.listing-card-img {
    width: 100%; height: 160px; overflow: hidden; background: var(--bg-secondary);
}
.listing-card-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.3s ease;
}
.listing-card:hover .listing-card-img img { transform: scale(1.04); }
.listing-card-body { padding: 20px; }
.listing-card .badge-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

.badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: 100px; font-size: 0.75rem; font-weight: 600;
}
.badge-kategorie { background: rgba(6,182,212,0.15); color: var(--cyan); }
.badge-mhd-green { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-mhd-yellow { background: rgba(245,158,11,0.15); color: var(--yellow); }
.badge-mhd-red { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-auktion { background: rgba(168,85,247,0.15); color: #a855f7; }

.listing-card h3 {
    font-size: 1.05rem; font-weight: 600; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.listing-card .hersteller { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.listing-card .meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
.listing-card .meta-item { font-size: 0.85rem; }
.listing-card .meta-item .meta-label { color: var(--text-muted); font-size: 0.75rem; }
.listing-card .meta-item .meta-value { font-weight: 600; }
.listing-card .price {
    font-size: 1.3rem; font-weight: 700; color: var(--green);
}
.listing-card .price small { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.listing-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-top: 1px solid var(--border);
}
.listing-card .location { color: var(--text-muted); font-size: 0.8rem; display: flex; align-items: center; gap: 4px; }

@media (max-width: 1024px) { .listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .listings-grid { grid-template-columns: 1fr; } }

/* ============ TESTIMONIALS ============ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    padding: 28px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.testimonial-card .quote { color: var(--text-secondary); font-size: 0.95rem; font-style: italic; margin-bottom: 16px; line-height: 1.6; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; color: #fff;
}
.testimonial-card .author-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-card .author-role { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ============ CTA ============ */
.cta-section {
    text-align: center; padding: 56px 0;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px);
}
.cta-section h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 10px; }
.cta-section p { color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ MARKTPLATZ PAGE ============ */

.filter-bar {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
    padding: 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); margin-bottom: 32px;
}
.filter-bar .select { max-width: 200px; }
.filter-bar .results-count { margin-left: auto; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 768px) {
    .filter-bar { flex-direction: column; }
    .filter-bar .select { max-width: 100%; }
    .filter-bar .results-count { margin-left: 0; }
}

/* ============ DETAIL PAGE ============ */
.detail-hero {
    padding: 100px 0 40px;
    background: linear-gradient(180deg, rgba(16,185,129,0.05), transparent);
}
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.detail-main { }
.detail-sidebar { }

.detail-header { margin-bottom: 32px; }
.detail-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 4px; }
.detail-header .hersteller { color: var(--text-secondary); font-size: 1.05rem; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }

.spec-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 12px 16px; font-size: 0.9rem; }
.spec-table td:first-child { color: var(--text-muted); font-weight: 500; width: 45%; }
.spec-table td:last-child { font-weight: 600; }

.price-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px;
}
.price-box .current-price { font-size: 2.2rem; font-weight: 800; color: var(--green); }
.price-box .current-price small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.mhd-countdown {
    padding: 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 24px; text-align: center;
}
.mhd-countdown .days { font-size: 2.5rem; font-weight: 800; }
.mhd-countdown .days-label { color: var(--text-secondary); font-size: 0.9rem; }

.action-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.seller-box {
    padding: 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 24px;
}
.seller-box h4 { margin-bottom: 8px; font-size: 0.95rem; }
.seller-box p { color: var(--text-secondary); font-size: 0.85rem; }

.chart-container {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; margin: 32px 0;
}
.chart-container h3 { margin-bottom: 16px; font-size: 1.1rem; }
.chart-placeholder {
    height: 200px; position: relative; display: flex; align-items: flex-end; gap: 4px; padding-top: 20px;
}
.chart-bar {
    flex: 1; border-radius: 4px 4px 0 0; transition: all var(--transition);
    position: relative; min-height: 10px;
}
.chart-bar:hover { opacity: 0.8; }
.chart-labels { display: flex; justify-content: space-between; margin-top: 8px; }
.chart-labels span { font-size: 0.7rem; color: var(--text-muted); }

.shipping-calc {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
}
.shipping-calc h4 { margin-bottom: 12px; }
.shipping-result { margin-top: 12px; font-weight: 600; color: var(--cyan); display: none; }

.similar-section { margin-top: 48px; }

@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
}

/* ============ FORMS (Verkaufen / Suchabo) ============ */
.form-page { padding: 100px 0 60px; }
.form-container { max-width: 700px; margin: 0 auto; }

.form-steps {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 40px;
}
.form-step {
    display: flex; align-items: center; gap: 8px; padding: 8px 16px;
    border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500;
    color: var(--text-muted); transition: all var(--transition);
}
.form-step.active { color: var(--green); background: var(--green-glow); }
.form-step .step-dot {
    width: 24px; height: 24px; border-radius: 50%; font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--text-muted); font-weight: 700;
}
.form-step.active .step-dot { border-color: var(--green); background: var(--green); color: #fff; }
.form-step.completed .step-dot { border-color: var(--green); background: var(--green); color: #fff; }

.form-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; display: none;
}
.form-panel.active { display: block; }
.form-panel h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-actions { display: flex; justify-content: space-between; margin-top: 24px; }

.ai-hint {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px;
    background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.2);
    border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.85rem;
}
.ai-hint .ai-icon { font-size: 1.2rem; flex-shrink: 0; }
.ai-hint p { color: var(--text-secondary); }

.upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 32px; text-align: center; cursor: pointer;
    transition: border-color var(--transition); color: var(--text-muted);
}
.upload-zone:hover { border-color: var(--green); }

/* Preview box for Suchabo */
.preview-box {
    background: rgba(16,185,129,0.05); border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--radius); padding: 20px; margin-top: 24px;
}
.preview-box h4 { color: var(--green); margin-bottom: 8px; }

/* ============ PRICING PAGE ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 28px;
    text-align: center; transition: all 0.3s ease; position: relative;
}
.pricing-card.featured {
    border-color: var(--green);
    background: linear-gradient(180deg, rgba(16,185,129,0.08), var(--bg-card));
}
.pricing-card.featured::before {
    content: 'Beliebt'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: #fff; padding: 4px 16px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pricing-card .price-tag { font-size: 2.5rem; font-weight: 800; margin: 16px 0; }
.pricing-card .price-tag small { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.pricing-card .price-tag .currency { font-size: 1.2rem; }
.pricing-features { list-style: none; text-align: left; margin: 24px 0; }
.pricing-features li {
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: 0.9rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.pricing-features li.disabled { opacity: 0.4; }
.pricing-features li.disabled::before { content: '—'; color: var(--text-muted); }

@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; } }

/* ============ ABOUT PAGE ============ */
.about-hero { padding: 120px 0 60px; text-align: center; }
.about-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.about-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 650px; margin: 0 auto; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }

.about-image {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); height: 300px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.9rem;
}

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-avatar {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--green-glow), var(--cyan-glow));
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.team-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
.team-card p { font-size: 0.8rem; color: var(--text-muted); }

.partners-grid { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.partner-logo {
    width: 160px; height: 60px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.8rem; font-weight: 500;
}

.contact-form {
    max-width: 600px; margin: 0 auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ FOOTER ============ */
.footer {
    padding: 40px 0 24px; border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { margin-bottom: 12px; }
.footer-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-top: 8px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.85rem; padding: 3px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px; border-top: 1px solid var(--border);
    font-size: 0.8rem; color: var(--text-muted);
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text-primary); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mt-8 { margin-top: 64px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }


/* ── Watchlist icon button ── */
.watchlist-icon-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    color: var(--text-muted); background: transparent;
    transition: all var(--transition);
}
.watchlist-icon-btn:hover { color: #ef4444; background: rgba(239,68,68,0.1); }
.watchlist-icon-btn svg { display: block; }
.watchlist-count {
    position: absolute; top: -2px; right: -2px;
    background: #ef4444; color: #fff;
    font-size: 0.6rem; font-weight: 700; line-height: 1;
    min-width: 16px; height: 16px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}

/* ============ USER MENU ============ */
.user-menu { position: relative; }
.user-avatar-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--green);
    background: linear-gradient(135deg, var(--green-glow), var(--cyan-glow));
    color: var(--green); font-weight: 700; font-size: 0.75rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); font-family: inherit;
}
.user-avatar-btn:hover { border-color: var(--cyan); transform: scale(1.05); }
.user-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius); min-width: 200px; box-shadow: var(--shadow-lg);
    z-index: 1001; overflow: hidden;
}
.user-dropdown.show { display: block; }
.user-dropdown .dropdown-header {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column;
}
.user-dropdown .dropdown-header strong { font-size: 0.9rem; }
.user-dropdown .dropdown-header small { color: var(--text-muted); font-size: 0.8rem; }
.user-dropdown a {
    display: block; padding: 10px 16px; color: var(--text-secondary);
    font-size: 0.9rem; transition: all var(--transition);
}
.user-dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============ TOASTS ============ */
.toast-container {
    position: fixed; top: 80px; right: 24px; z-index: 2000;
    display: flex; flex-direction: column; gap: 8px; max-width: 400px;
}
.toast {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; border-radius: var(--radius-sm);
    background: var(--bg-secondary); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg); font-size: 0.9rem;
    animation: toastSlide 0.3s ease-out, toastFade 0.5s 4s ease-in forwards;
    cursor: pointer;
}
.toast-success { border-left: 3px solid var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-info { border-left: 3px solid var(--cyan); }
.toast-warning { border-left: 3px solid var(--yellow); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-close {
    margin-left: auto; background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 1.2rem; padding: 0 0 0 12px; line-height: 1;
}
@keyframes toastSlide { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastFade { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
    font-size: 0.85rem; color: var(--text-muted); padding: 8px 0;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span { color: var(--text-secondary); }

/* ============ FORM ERRORS ============ */
.form-error { color: var(--red); font-size: 0.8rem; display: block; margin-top: 4px; }

/* ============ LISTING STATS ============ */
.listing-stats {
    display: flex; gap: 16px; margin-top: 12px; font-size: 0.85rem; color: var(--text-muted);
}
.card-stats {
    display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-muted); margin-top: 8px;
}

/* ============ INQUIRY BOX ============ */
.inquiry-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center; padding: 60px 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }

/* ============ SEARCH FORM ============ */
.search-form { margin-bottom: 0; }

/* ============ DASHBOARD ============ */
.dash-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px;
}
.dash-stat-card {
    text-align: center; padding: 24px 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: all var(--transition);
}
.dash-stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.dash-stat-number {
    font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dash-stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

@media (max-width: 768px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

.dash-table-wrap {
    overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.dash-table {
    width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.dash-table th {
    text-align: left; padding: 12px 16px; font-weight: 600; font-size: 0.8rem;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.15);
}
.dash-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ============ INQUIRIES LIST ============ */
.inquiries-list { display: flex; flex-direction: column; gap: 16px; }
.inquiry-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    transition: all var(--transition);
}
.inquiry-card.inquiry-new { border-left: 3px solid var(--yellow); }
.inquiry-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.inquiry-message {
    color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6;
    margin-bottom: 12px; padding: 12px; background: rgba(0,0,0,0.15);
    border-radius: var(--radius-sm);
}
.inquiry-reply {
    color: var(--text-secondary); font-size: 0.85rem; padding: 12px;
    background: rgba(16,185,129,0.05); border: 1px solid rgba(16,185,129,0.15);
    border-radius: var(--radius-sm); margin-bottom: 12px;
}
.inquiry-reply-form { margin-top: 8px; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.listing-card { animation: fadeInUp 0.4s ease-out backwards; }
.listing-card:nth-child(1) { animation-delay: 0s; }
.listing-card:nth-child(2) { animation-delay: 0.05s; }
.listing-card:nth-child(3) { animation-delay: 0.1s; }
.listing-card:nth-child(4) { animation-delay: 0.15s; }
.listing-card:nth-child(5) { animation-delay: 0.2s; }
.listing-card:nth-child(6) { animation-delay: 0.25s; }

/* Disabled button */
button[disabled] {
    opacity: 0.5; cursor: not-allowed; pointer-events: none;
}

/* ============ AUTOCOMPLETE DROPDOWN ============ */
.autocomplete-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: rgba(30, 41, 59, 0.95); backdrop-filter: blur(20px);
    border: 1px solid var(--border-hover); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); z-index: 100; max-height: 400px; overflow-y: auto;
}
.ac-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; cursor: pointer; transition: all var(--transition);
    border-bottom: 1px solid var(--border); gap: 12px;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: rgba(16, 185, 129, 0.08); }
.ac-item-main { flex: 1; min-width: 0; }
.ac-item-name { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item-meta {
    display: flex; gap: 8px; margin-top: 3px; flex-wrap: wrap;
    font-size: 0.78rem; color: var(--text-muted);
}
.ac-kat { color: var(--cyan); }
.ac-cas { color: var(--text-secondary); font-family: monospace; }
.ac-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.ac-ghs { display: flex; gap: 3px; }
.ac-badge {
    display: inline-flex; align-items: center; padding: 2px 8px;
    border-radius: 100px; font-size: 0.7rem; font-weight: 600; white-space: nowrap;
}
.ac-badge-chemex { background: rgba(16,185,129,0.15); color: var(--green); }
.ac-badge-pubchem { background: rgba(6,182,212,0.15); color: var(--cyan); }
.ac-empty { padding: 16px; text-align: center; }

/* ============ COMPLIANCE ALERTS ============ */
.compliance-alert {
    border-radius: var(--radius); padding: 16px 20px; font-size: 0.9rem;
}
.compliance-clean {
    background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.3);
    color: var(--green); display: flex; align-items: center; gap: 10px;
}
.compliance-warning {
    background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.3);
}
.compliance-blocked {
    background: rgba(239,68,68,0.06); border: 2px solid rgba(239,68,68,0.5);
}
.compliance-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: 1rem;
}
.compliance-icon { font-size: 1.3rem; flex-shrink: 0; }
.compliance-body { display: flex; flex-direction: column; gap: 10px; }
.compliance-entry {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
    border-radius: var(--radius-sm); font-size: 0.85rem;
}
.compliance-entry-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.compliance-red { background: rgba(239,68,68,0.08); border-left: 3px solid var(--red); }
.compliance-orange { background: rgba(245,158,11,0.08); border-left: 3px solid var(--yellow); }
.compliance-yellow { background: rgba(245,158,11,0.06); border-left: 3px solid rgba(245,158,11,0.5); }
.compliance-detail { color: var(--text-secondary); font-size: 0.82rem; margin-top: 2px; }
.compliance-ref { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; font-style: italic; }
.compliance-footer {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
    font-size: 0.82rem; color: var(--text-muted);
}

/* Compliance section on listing detail */
.compliance-section { }
.compliance-section-detail { margin-bottom: 32px; }
.compliance-summary {
    cursor: pointer; padding: 14px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
    list-style: none; display: flex; align-items: center; gap: 8px;
}
.compliance-summary::-webkit-details-marker { display: none; }
.compliance-summary::before { content: '▶'; font-size: 0.7rem; transition: transform 0.2s; }
details[open] .compliance-summary::before { transform: rotate(90deg); }
.compliance-details {
    padding: 16px 20px; background: var(--bg-card);
    border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex; flex-direction: column; gap: 8px;
}

/* Compliance badges on listing cards */
.badge-compliance-warn { background: rgba(245,158,11,0.15); color: var(--yellow); font-size: 0.7rem; }
.badge-compliance-red { background: rgba(239,68,68,0.15); color: var(--red); font-size: 0.7rem; }
.badge-compliance-orange { background: rgba(245,158,11,0.15); color: var(--yellow); font-size: 0.7rem; }
.badge-compliance-yellow { background: rgba(245,158,11,0.1); color: var(--yellow); font-size: 0.7rem; }

/* Category count on index page */
.cat-count {
    font-size: 0.72rem; color: var(--text-muted); margin-top: 2px;
    background: rgba(148,163,184,0.1); padding: 2px 8px; border-radius: 100px;
}

/* ============================================================
   FACETED SEARCH — Marktplatz Sidebar
   ============================================================ */

/* ── Category navigation ── */
.cat-nav { border-bottom: 1px solid var(--border); }
.cat-nav-row {
    display: flex; align-items: center; gap: 4px;
    overflow-x: auto; scrollbar-width: none;
    padding: 10px 0; -webkit-overflow-scrolling: touch;
}
.cat-nav-row::-webkit-scrollbar { display: none; }

.cat-chip {
    flex-shrink: 0; padding: 6px 14px; border-radius: 100px;
    font-size: 0.8rem; font-weight: 500; white-space: nowrap;
    color: var(--text-muted); background: transparent;
    border: 1px solid transparent; transition: all var(--transition);
    text-decoration: none;
}
.cat-chip:hover { color: var(--text-primary); border-color: var(--border); }
.cat-chip.active {
    color: var(--text-primary); background: rgba(255,255,255,0.08);
    border-color: var(--border-hover); font-weight: 600;
}

/* Subcategory row (appears when group is active) */
.cat-sub-row {
    display: flex; gap: 6px; flex-wrap: wrap;
    padding: 0 0 12px; border-top: 1px solid var(--border);
    padding-top: 10px; margin-top: 2px;
}
.cat-sub {
    padding: 4px 12px; border-radius: 100px; font-size: 0.78rem;
    color: var(--text-muted); border: 1px solid var(--border);
    transition: all var(--transition); white-space: nowrap;
}
.cat-sub:hover { color: var(--text-primary); border-color: var(--border-hover); }
.cat-sub.active { color: var(--text-primary); background: rgba(255,255,255,0.08); border-color: var(--border-hover); }

/* Inline search (end of chip row) */
.cat-search-inline { flex-shrink: 0; position: relative; margin-left: auto; }
.cat-search-inline input {
    width: 160px; padding: 6px 12px; font-size: 0.8rem;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 100px; color: var(--text-primary); font-family: inherit;
    transition: all var(--transition);
}
.cat-search-inline input::placeholder { color: var(--text-muted); }
.cat-search-inline input:focus { outline: none; border-color: var(--border-hover); width: 240px; }

.cat-search-results {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    width: 320px; background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    z-index: 200; max-height: 300px; overflow-y: auto;
}
.cat-search-results.open { display: block; }
.csr-item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 14px; font-size: 0.84rem; color: var(--text-secondary);
    border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.csr-item:last-child { border-bottom: none; }
.csr-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.csr-item mark { background: rgba(16,185,129,0.25); color: inherit; border-radius: 2px; padding: 0 1px; }
.csr-sub { font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; }
.csr-empty { padding: 14px; text-align: center; color: var(--text-muted); font-size: 0.84rem; }

@media (max-width: 768px) {
    .cat-search-inline input { width: 120px; }
    .cat-search-inline input:focus { width: 180px; }
    .cat-search-results { width: 280px; }
    .cat-sub-row { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .cat-sub-row::-webkit-scrollbar { display: none; }
}

/* ── Top bar ── */
.filter-topbar {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); margin-bottom: 24px;
    backdrop-filter: blur(12px);
}
.filter-topbar-search { flex: 1; min-width: 200px; }
.filter-topbar-search .input { width: 100%; }
.filter-topbar-sort { width: 200px; flex-shrink: 0; }
.filter-topbar-sort .select { width: 100%; }
.btn-search-submit { flex-shrink: 0; }
.btn-filter-toggle { display: none; flex-shrink: 0; }

@media (max-width: 768px) {
    .filter-topbar { flex-direction: column; }
    .filter-topbar-sort { width: 100%; }
    .btn-search-submit { width: 100%; }
    .btn-filter-toggle { display: inline-flex; width: 100%; justify-content: center; }
}

/* ── Layout: sidebar + content ── */
.marktplatz-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
    position: relative;
}

@media (max-width: 960px) {
    .marktplatz-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Sidebar ── */
.filter-sidebar {
    position: sticky; top: 80px;
    max-height: calc(100vh - 96px);
    overflow-y: auto; overflow-x: hidden;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.filter-sidebar-inner { padding: 8px 0; }

.filter-drawer-header { display: none; }
.filter-drawer-footer { display: none; }

@media (max-width: 960px) {
    .filter-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 85vw;
        z-index: 1100; border-radius: 0; max-height: 100vh;
        transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        background: var(--bg-secondary);
    }
    .filter-sidebar.drawer-open { transform: translateX(0); }
    .filter-sidebar-inner { padding: 0 0 80px 0; }
    .filter-drawer-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 20px; border-bottom: 1px solid var(--border);
        position: sticky; top: 0; background: var(--bg-secondary); z-index: 2;
    }
    .filter-drawer-title { font-size: 1.1rem; font-weight: 700; }
    .filter-drawer-footer {
        display: block; position: sticky; bottom: 0;
        padding: 16px 20px; background: var(--bg-secondary);
        border-top: 1px solid var(--border);
    }
    .filter-backdrop {
        display: none; position: fixed; inset: 0; z-index: 1099;
        background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    }
    .filter-backdrop.active { display: block; }
}
@media (min-width: 961px) {
    .filter-backdrop { display: none !important; }
}

.drawer-body-lock { overflow: hidden; }

/* ── Filter sections ── */
.filter-section {
    border-bottom: 1px solid var(--border);
}
.filter-section:last-of-type { border-bottom: none; }

.filter-section-header {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 20px; background: none; border: none;
    color: var(--text-primary); font-size: 0.9rem; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: color var(--transition);
}
.filter-section-header:hover { color: var(--green); }

.filter-chevron {
    font-size: 0.75rem; transition: transform 0.25s ease; color: var(--text-muted);
}
.filter-section.collapsed .filter-chevron { transform: rotate(-90deg); }

.filter-section-body {
    padding: 0 20px 14px; display: flex; flex-direction: column; gap: 4px;
    max-height: 600px; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
    opacity: 1;
}
.filter-section.collapsed .filter-section-body {
    max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0;
    overflow: hidden;
}

/* ── Category groups ── */
.filter-cat-group { margin-bottom: 2px; }
.filter-cat-group-header {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 8px 8px; background: none; border: none;
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
    cursor: pointer; font-family: inherit; border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.filter-cat-group-header:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }

.filter-chevron-sm {
    font-size: 0.65rem; margin-left: auto; transition: transform 0.2s ease; color: var(--text-muted);
}
.filter-cat-group.expanded .filter-chevron-sm { transform: rotate(90deg); }

.filter-cat-group-body {
    max-height: 0; overflow: hidden; padding-left: 12px;
    transition: max-height 0.3s ease;
}
.filter-cat-group.expanded .filter-cat-group-body {
    max-height: 500px;
}

/* ── Custom checkboxes ── */
.filter-checkbox {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.85rem; transition: background var(--transition);
    user-select: none; position: relative;
}
.filter-checkbox:hover { background: rgba(255,255,255,0.04); }

.filter-checkbox input[type="checkbox"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.filter-checkbox-mark {
    width: 18px; height: 18px; flex-shrink: 0;
    border: 2px solid var(--border-hover); border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease; background: transparent;
}
.filter-checkbox input:checked + .filter-checkbox-mark {
    background: var(--green); border-color: var(--green);
}
.filter-checkbox input:checked + .filter-checkbox-mark::after {
    content: '✓'; color: #fff; font-size: 0.7rem; font-weight: 700;
}
.filter-checkbox-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Custom radio buttons ── */
.filter-radio {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.85rem; transition: background var(--transition);
    user-select: none; position: relative;
}
.filter-radio:hover { background: rgba(255,255,255,0.04); }

.filter-radio input[type="radio"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.filter-radio-mark {
    width: 18px; height: 18px; flex-shrink: 0;
    border: 2px solid var(--border-hover); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease;
}
.filter-radio input:checked + .filter-radio-mark {
    border-color: var(--green);
}
.filter-radio input:checked + .filter-radio-mark::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.filter-radio-label { flex: 1; }

/* ── Filter count badges ── */
.filter-count {
    font-size: 0.75rem; color: var(--text-muted); margin-left: auto; flex-shrink: 0;
    background: rgba(148,163,184,0.1); padding: 1px 7px; border-radius: 100px;
    font-weight: 500;
}
.mhd-count-red { background: rgba(239,68,68,0.15); color: var(--red); }
.mhd-count-yellow { background: rgba(245,158,11,0.15); color: var(--yellow); }
.mhd-count-green { background: rgba(16,185,129,0.15); color: var(--green); }

/* ── Price inputs ── */
.price-inputs {
    display: flex; align-items: center; gap: 8px;
}
.price-input { width: 100%; padding: 8px 12px !important; font-size: 0.85rem !important; }
.price-separator { color: var(--text-muted); font-weight: 500; }
.price-range-info { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* ── Show more / Search within ── */
.filter-extra { display: none; }

.filter-show-more {
    background: none; border: none; color: var(--green); font-size: 0.8rem;
    cursor: pointer; padding: 6px 8px; font-family: inherit; font-weight: 500;
    transition: color var(--transition);
}
.filter-show-more:hover { color: var(--cyan); }

.filter-search-within {
    margin-bottom: 8px; padding: 6px 12px !important; font-size: 0.82rem !important;
}

/* ── Reset button ── */
.filter-reset-wrap { padding: 14px 20px; }

/* ── Active filter tags ── */
.active-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
    align-items: center;
}
.active-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
    color: var(--green); white-space: nowrap;
}
.active-tag a {
    color: var(--green); font-weight: 700; font-size: 0.9rem;
    opacity: 0.7; transition: opacity var(--transition); line-height: 1;
}
.active-tag a:hover { opacity: 1; }
.active-tag-kat { background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.25); color: var(--cyan); }
.active-tag-kat a { color: var(--cyan); }
.active-tag-hersteller { background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.25); color: #a855f7; }
.active-tag-hersteller a { color: #a855f7; }
.active-tag-standort { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); color: var(--yellow); }
.active-tag-standort a { color: var(--yellow); }
.active-tag-preis { background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.25); color: var(--cyan); }
.active-tag-preis a { color: var(--cyan); }
.active-tag-mhd { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); color: var(--red); }
.active-tag-mhd a { color: var(--red); }
.active-tag-clear {
    font-size: 0.8rem; color: var(--text-muted); margin-left: 4px; font-weight: 500;
}
.active-tag-clear:hover { color: var(--text-primary); }

/* ── Results header ── */
.results-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding: 0 4px;
}
.results-count-text { font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); }
.results-page-info { font-size: 0.85rem; color: var(--text-muted); }

/* ── Pagination ── */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 40px; padding: 20px 0;
}
.pagination-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary); background: var(--bg-card);
    border: 1px solid var(--border); cursor: pointer;
    transition: all var(--transition); text-decoration: none;
}
.pagination-btn:hover { border-color: var(--green); color: var(--green); }
.pagination-active {
    background: var(--green) !important; color: #fff !important;
    border-color: var(--green) !important; cursor: default;
}
.pagination-dots { color: var(--text-muted); padding: 0 4px; }

/* ── Content area within layout ── */
.marktplatz-content { min-width: 0; }

/* ── Override listing grid for 2-col in sidebar layout ── */
.marktplatz-content .listings-grid {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1200px) {
    .marktplatz-content .listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .marktplatz-content .listings-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITY CLASSES — replaces inline styles in templates
   ============================================================ */

/* Body text utility */
.body-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Header logo image ── */
.logo-img {
    height: 44px; width: auto; display: block;
    filter: brightness(1.15) drop-shadow(0 0 6px rgba(16,185,129,0.18));
    border-radius: 6px;
}
.logo-img-footer {
    height: 32px; width: auto; display: block;
    filter: brightness(1.1);
}

/* ── Toast icon text replacement ── */
.toast-icon-success::before { content: '✓'; }
.toast-icon-error::before { content: '✕'; }
.toast-icon-info::before { content: 'i'; }

/* ── Admin link color ── */
.nav-link-admin { color: var(--yellow) !important; }

/* ── Listing card link wrapper ── */
.listing-card-link {
    text-decoration: none; color: inherit; display: block;
}

/* ── Section with background alt (replaces inline style) ── */

/* ── Listing stats icon-free ── */
.stat-label { color: var(--text-muted); }

/* ── Detail page — description ── */
.detail-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ── GHS safety box ── */
.ghs-box {
    background: var(--bg-card);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}
.ghs-box-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
}
.ghs-box-header a {
    font-size: 0.8rem;
    color: var(--cyan);
    font-weight: 400;
    margin-left: auto;
}
.ghs-pictograms {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ghs-pictogram { text-align: center; }
.ghs-pictogram img {
    width: 64px; height: 64px;
    background: white;
    border-radius: 6px;
    padding: 3px;
    display: block;
}
.ghs-pictogram-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.ghs-signal {
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 0.95rem;
}
.ghs-signal-danger { color: var(--red); }
.ghs-signal-warning { color: var(--yellow); }
.ghs-statements-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.ghs-hazard-list {
    margin: 0 0 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.ghs-pcodes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ghs-pcode {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ── Molecular info cards ── */
.mol-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.mol-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: var(--radius-sm);
}
.mol-info-card.span-2 { grid-column: span 2; }
.mol-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.mol-info-value {
    font-weight: 600;
    font-size: 1.05rem;
}
.mol-info-value-sm {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ── Spec table headings ── */
.spec-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* ── Price box internals ── */
.price-box-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.price-box-total {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}
.price-box-total strong { color: var(--text-primary); }

/* ── MHD countdown color classes ── */
.days-red { color: var(--red); }
.days-yellow { color: var(--yellow); }
.days-green { color: var(--green); }

/* ── Inquiry box heading ── */
.inquiry-box h4 { margin-bottom: 12px; font-size: 0.95rem; }
.inquiry-login-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* ── Seller box ── */
.seller-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.seller-location { color: var(--text-secondary); font-size: 0.85rem; }

/* ── Shipping calc ── */
.shipping-calc h4 { margin-bottom: 8px; }
.shipping-select-wrap { margin-top: 8px; }

/* ── Similar products heading ── */
.similar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.similar-listings-grid { grid-template-columns: repeat(3, 1fr); }
.chart-desc { margin-bottom: 16px; }

/* ── About page ── */
.about-image-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.about-image-wrap img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    display: block;
}
.about-image-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 40px;
    text-align: center;
}

/* Team "growing" placeholder */
.team-growing {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    grid-column: 1 / -1;
}
.team-growing p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}
.team-cta-btn { margin-top: 20px; }

/* ── About contact replacement ── */
.contact-email-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.contact-email-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.contact-email-box .email-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--green);
}

/* ── Pricing ── */
.pricing-note {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ── FAQ list ── */
.faq-list { max-width: 700px; margin: 0 auto; }

/* ── FAQ card ── */
.faq-card {
    margin-bottom: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.faq-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.faq-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ── Pricing card description ── */
.pricing-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ── Section no-top-pad ── */
.section-notop { padding-top: 0; }

/* ── Page header ── */
.page-header {
    padding: 100px 0 32px; text-align: center;
    background: linear-gradient(180deg, rgba(16,185,129,0.05), transparent);
}
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.page-header p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── Marktplatz page header ── */
.page-header-breadcrumbs { margin-bottom: 12px; }

/* ── Listing card location text ── */
.location-text { color: var(--text-muted); font-size: 0.8rem; }

/* ── Stats item icons removed ── */
.stat-views::before { content: ''; }
.stat-inquiries::before { content: ''; }

/* ── Gradient span for about hero ── */
.gradient {
    background: linear-gradient(135deg, var(--green), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── About page stats row ── */
.about-stats-row {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.about-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    flex: 1;
    min-width: 120px;
}
.about-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 4px;
}
.about-stat-label { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* ── About checkmarks ── */
.about-checkmarks {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.about-checkmarks li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.about-checkmarks li:last-child { border-bottom: none; }

/* ── About mission box ── */
.about-mission-box {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.mission-icon { font-size: 2.5rem; margin-bottom: 16px; }
.about-mission-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.about-mission-box p { color: var(--text-secondary); line-height: 1.8; }

/* ── Team grid (real) ── */
.team-grid-real {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.team-card-real {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px 24px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.team-card-real:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.team-avatar-real {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700; color: #fff;
    margin: 0 auto 14px;
}
.team-avatar-teal { background: linear-gradient(135deg, #14b8a6, #0891b2); }
.team-avatar-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.team-avatar-green { background: linear-gradient(135deg, #10b981, #14b8a6); }
.team-avatar-blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.team-card-real h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.team-role { font-size: 0.78rem; color: var(--green); font-weight: 600; margin-bottom: 10px; }
.team-bio { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ── Team hiring banner ── */
.team-hiring-banner {
    text-align: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(20,184,166,0.08), rgba(6,182,212,0.08));
    border: 1px solid var(--green);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.team-hiring-banner span { font-weight: 700; color: var(--text-primary); }
.team-hiring-link {
    display: inline-block;
    margin-left: 12px;
    color: var(--green);
    font-weight: 600;
    font-size: 0.88rem;
}
.team-hiring-link:hover { text-decoration: underline; }

/* ── Contact grid ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 24px;
}
.contact-email-box {
    padding: 28px 24px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.contact-icon { font-size: 1.8rem; margin-bottom: 12px; }
.contact-email-box h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.contact-email-box .email-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--green);
    word-break: break-all;
}
.contact-email-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.contact-address {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .team-grid-real { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 600px) {
    .team-grid-real { grid-template-columns: 1fr 1fr; gap: 16px; }
    .about-stats-row { flex-direction: column; }
}

/* ── Mobile-friendly ── */
@media (max-width: 375px) {
    .hero h1 { font-size: 1.8rem; }
    .container { padding: 0 16px; }
    .pricing-grid { max-width: 100%; }
    .mol-info-card.span-2 { grid-column: span 1; }
    .team-grid-real { grid-template-columns: 1fr; }
}

/* ── Watchlist Button ── */
.listing-card { position: relative; }
.watchlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15,23,42,0.75);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.watchlist-btn:hover,
.watchlist-btn.saved {
    color: #ef4444;
    background: rgba(239,68,68,0.18);
}
.watchlist-btn-detail {
    position: static;
    width: 100%;
    border-radius: var(--radius-sm);
    height: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.watchlist-btn-detail:hover,
.watchlist-btn-detail.saved {
    border-radius: var(--radius-sm);
    width: 100%;
    height: 40px;
}

/* ── Global Instant Search ── */
.global-search-wrap {
    position: relative;
    flex: 0 1 240px;
}
.global-search-wrap input {
    width: 100%;
    padding: 7px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: inherit;
    box-sizing: border-box;
}
.global-search-wrap input:focus {
    outline: none;
    border-color: var(--border-hover);
}
.global-search-drop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    overflow: hidden;
}
.gsd-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.83rem;
    transition: background 0.15s;
    text-decoration: none;
}
.gsd-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
}
.gsd-name {
    font-weight: 500;
    color: var(--text-primary);
}
.gsd-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.gsd-more {
    display: block;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--green);
    text-align: center;
    text-decoration: none;
}
.gsd-more:hover {
    background: rgba(255,255,255,0.03);
}

@media (max-width: 768px) {
    .global-search-wrap { display: none; }
}
