        /* 🎨 Farb-Variablen für den Wechsel */
        :root {
            --bg-gradient: radial-gradient(ellipse at top, #1e1b4b 0%, #0f172a 60%, #020617 100%);
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --text-heading: linear-gradient(to right, #ffffff, #e2e8f0, #c084fc);
            --navbar-bg: rgba(15, 23, 42, 0.75);
            --navbar-border: rgba(255, 255, 255, 0.08);
            --card-bg: rgba(255, 255, 255, 0.02);
            --card-bg-hover: rgba(255, 255, 255, 0.04);
            --card-border: rgba(192, 132, 252, 0.25);
            --card-border-hover: rgba(192, 132, 252, 0.6);
            --search-bg: rgba(255, 255, 255, 0.03);
            --search-border: rgba(255, 255, 255, 0.08);
            --footer-bg: rgba(2, 6, 23, 0.6);
            --footer-border: rgba(255, 255, 255, 0.03);
            --footer-links: #475569;
        }

        /* ☀️ Hellen Modus überschreiben */
        [data-theme="light"] {
            --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
            --text-main: #1e293b;
            --text-muted: #64748b;
            --text-heading: linear-gradient(to right, #0f172a, #334155, #7c3aed);
            --navbar-bg: rgba(255, 255, 255, 0.8);
            --navbar-border: rgba(15, 23, 42, 0.08);
            --card-bg: rgba(255, 255, 255, 0.7);
            --card-bg-hover: rgba(255, 255, 255, 0.9);
            --card-border: rgba(124, 58, 237, 0.2);
            --card-border-hover: rgba(124, 58, 237, 0.6);
            --search-bg: rgba(255, 255, 255, 0.8);
            --search-border: rgba(15, 23, 42, 0.1);
            --footer-bg: rgba(248, 250, 252, 0.9);
            --footer-border: rgba(15, 23, 42, 0.05);
            --footer-links: #64748b;
        }

        /* 🌌 Globales Styling mit Variablen */
        body { 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
            background: var(--bg-gradient);
            color: var(--text-main); 
            margin: 0; 
            padding: 0; 
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
            overflow-x: hidden;
            transition: background 0.3s ease, color 0.3s ease;
        }
        /* 👑 Fixed Header mit Glassmorphismus */
        .navbar {
            position: fixed; top: 0; left: 0; width: 100%; height: 70px;
            background: var(--navbar-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--navbar-border); display: flex; justify-content: space-between; align-items: center;
            padding: 0 30px; box-sizing: border-box; z-index: 1000; transition: background 0.3s, border 0.3s;
        }
        .nav-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; background: var(--text-heading); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; }
        .nav-right-container { display: flex; align-items: center; gap: 20px; }
        .nav-menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
        .nav-link { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
        .nav-link:hover { color: #c084fc; }

        /* 🌓 Theme Toggle Button */
        .theme-toggle {
            background: none; border: 1px solid var(--navbar-border); padding: 8px; border-radius: 10px;
            cursor: pointer; color: var(--text-main); display: flex; align-items: center; justify-content: center;
            transition: all 0.2s ease;
        }
        .theme-toggle:hover { border-color: #c084fc; background: rgba(192, 132, 252, 0.1); }
        .theme-toggle .sun-icon { display: none; }
        [data-theme="light"] .theme-toggle .moon-icon { display: none; }
        [data-theme="light"] .theme-toggle .sun-icon { display: block; }

        /* 🍔 Hamburger Mobile Menu */
        .hamburger { display: none; cursor: pointer; background: none; border: none; flex-direction: column; gap: 6px; padding: 5px; }
        .hamburger span { display: block; width: 24px; height: 2px; background-color: var(--text-main); transition: all 0.3s ease; }

        /* 📦 Wrapper & Header */
        .wrapper { max-width: 1000px; margin: 0 auto; padding: 130px 20px 60px 20px; flex-grow: 1; width: 100%; box-sizing: border-box; }
        header { text-align: center; margin-bottom: 50px; max-width: 800px; margin-left: auto; margin-right: auto; }
        h1 { font-size: 42px; font-weight: 800; margin: 0 0 16px 0; letter-spacing: -1px; line-height: 1.2; background: var(--text-heading); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .sub-header { color: var(--text-muted); font-size: 16px; margin: 0; font-weight: 500; }
        .sub-header strong { color: #c084fc; }
        
        /* 🔍 Suchleiste */
        .search-container { position: relative; display: flex; align-items: center; background: var(--search-bg); border: 1px solid var(--search-border); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); max-width: 650px; margin: 0 auto 60px auto; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: all 0.3s ease; }
        .search-container:hover { border-color: rgba(192, 132, 252, 0.4); }
        .search-icon { position: absolute; left: 20px; color: #c084fc; display: flex; align-items: center; pointer-events: none; }
        .search-input { width: 100%; padding: 18px 50px 18px 55px; background: transparent; border: none; font-size: 17px; color: var(--text-main); outline: none; box-sizing: border-box; }
        .search-input::placeholder { color: var(--text-muted); }
        .clear-btn { position: absolute; right: 18px; color: var(--text-muted); background: rgba(255, 255, 255, 0.05); border: none; padding: 6px; border-radius: 999px; cursor: pointer; display: none; align-items: center; justify-content: center; }
        
        /* 📊 Zentriertes Cards-Layout - Kompakt & Eingedampft */
        .section-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 24px 0; display: flex; align-items: center; gap: 8px; }
        .section-title span { background: rgba(192, 132, 252, 0.1); color: #c084fc; padding: 2px 8px; border-radius: 20px; font-size: 11px; }
        .grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
        
        .card { 
            background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 14px 16px; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; flex-direction: column; gap: 10px; 
            text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); 
        }
        .card:hover { border-color: var(--card-border-hover); background: var(--card-bg-hover); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(147, 51, 234, 0.12); }
        
        .card-header-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
        .card-base-tool { color: var(--text-muted); font-weight: 600; font-size: 12px; }
        .card-count { font-weight: 700; color: #34d399; background: rgba(52, 211, 153, 0.1); padding: 3px 8px; border-radius: 6px; }
        .card-count.purple { color: #c084fc; background: rgba(192, 132, 252, 0.1); }
        
        .card-middle { text-align: center; padding: 2px 0; }
        .card-name { font-size: 18px; font-weight: 800; color: var(--text-main); margin: 0; line-height: 1.2; letter-spacing: -0.3px; }
        .card:hover .card-name { color: #c084fc; }
        
        .card-footer-full { border-top: 1px solid var(--navbar-border); padding-top: 10px; text-align: center; }
        .card-badge-full { display: block; width: 100%; background: rgba(147, 51, 234, 0.12); color: #c084fc; font-size: 10px; font-weight: 700; padding: 4px 0; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.8px; box-sizing: border-box; }
        
        .no-results { background: var(--card-bg); border: 1px solid var(--search-border); border-radius: 20px; padding: 40px; text-align: center; color: var(--text-muted); font-weight: 500; grid-column: 1 / -1; }
        .hidden { display: none !important; }
        
        /* Footer & Pfeil */
        footer { padding: 40px 30px; border-top: 1px solid var(--footer-border); background: var(--footer-bg); backdrop-filter: blur(10px); margin-top: auto; transition: all 0.3s; }
        .footer-container { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; }
        .footer-left { flex: 1 1 50%; min-width: 280px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
        .footer-left p { margin: 0 0 10px 0; }
        .footer-right { flex: 1 1 40%; display: flex; gap: 20px; }
        .footer-col { flex: 1; min-width: 120px; }
        .footer-col h5 { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 14px 0; }
        .footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
        .footer-links a { color: var(--footer-links); text-decoration: none; font-size: 13px; transition: color 0.2s; }
        .footer-links a:hover { color: #c084fc; }

        .back-to-top {
            position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background: rgba(192, 132, 252, 0.2);
            border: 1px solid rgba(192, 132, 252, 0.4); border-radius: 12px; color: var(--text-main); display: flex;
            align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 999;
        }
        .back-to-top.show { opacity: 1; visibility: visible; }
        .back-to-top:hover { background: #c084fc; color: #fff; transform: translateY(-3px); }
        .back-to-top svg { width: 20px; height: 20px; }

        @media (max-width: 768px) {
            .hamburger { display: flex; }
            .nav-menu { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: var(--navbar-bg); backdrop-filter: blur(20px); flex-direction: column; align-items: center; padding-top: 40px; gap: 30px; transition: left 0.3s ease; }
            .nav-menu.active { left: 0; }
            .footer-container { flex-direction: column; gap: 40px; }
            .footer-left, .footer-right { flex: 1 1 100%; }
            .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
        }
        
                               /* 💎 ABSOLUT SYNCHRONISIERTES 3-SPALTEN-SUBGRID */
        .pricing-section { margin-top: 80px; margin-bottom: 60px; }
        
        /* ⚡ WICHTIG: Das Haupt-Layout gibt jetzt die Zeilenstruktur für alle Karten vor */
        .pricing-layout { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
            /* Definiert 6 feste Zeilen für: Überschrift, Beschreibung, Testimonial, Preise, Features, Button */
            grid-template-rows: auto auto auto auto 1fr auto;
            gap: 24px; 
            margin-top: 30px; 
        }
        
        /* Jede Karte erstreckt sich über alle 6 Zeilen und teilt sich die Höhen mit den Nachbarkarten */
        .price-card {
            background: var(--card-bg); 
            border: 1px solid var(--card-border); 
            border-radius: 20px;
            padding: 26px 22px; 
            display: grid;
            grid-template-rows: subgrid; /* Holt sich die synchronen Höhen vom Haupt-Layout */
            grid-row: span 6; /* Belegt alle 6 Zeilen */
            gap: 0;
            position: relative;
            backdrop-filter: blur(10px); 
            -webkit-backdrop-filter: blur(10px); 
            transition: all 0.3s ease;
            box-sizing: border-box;
        }
        
        /* Highlight-Effekte für die mittlere Karte */
        .price-card.featured {
            border-color: rgba(192, 132, 252, 0.7);
            box-shadow: 0 15px 45px rgba(147, 51, 234, 0.15);
            transform: scale(1.03);
            /* Verhindert, dass die Skalierung das Subgrid verzerrt */
            grid-row: span 6; 
        }
        .price-card:hover { transform: translateY(-5px); border-color: var(--card-border-hover); }
        .price-card.featured:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 20px 50px rgba(147, 51, 234, 0.25); }
        
        /* Jedes Element wird fest an seine globale Zeilennummer gekoppelt */
        .price-card h3 { grid-row: 1; font-size: 20px; margin: 0 0 8px 0; font-weight: 700; color: var(--text-main); align-self: start; }
        .price-card .price-desc { grid-row: 2; font-size: 13px; color: var(--text-muted); margin: 0 0 16px 0; line-height: 1.4; padding-bottom: 10px; align-self: start; }
        .price-card .card-testimonial { grid-row: 3; margin-bottom: 20px; align-self: stretch; }
        .price-card .staffel-wrapper-box { grid-row: 4; margin-bottom: 20px; align-self: start; }
        .price-card .price-features { grid-row: 5; margin: 0 0 24px 0; align-self: start; }
        .price-card .btn-price { grid-row: 6; align-self: end; }

        .badge-featured {
            position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
            background: linear-gradient(to right, #a855f7, #6366f1); color: #ffffff;
            font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px;
            z-index: 10;
        }
               /* 💬 MINIMALISTISCHE CARD-TESTIMONIALS WITH NEON COLOR & BADGES */
        .card-testimonial {
            padding: 14px;
            background: rgba(255, 255, 255, 0.01); 
            border: 1px dashed var(--navbar-border); 
            border-radius: 14px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-sizing: border-box;
            transition: all 0.3s ease;
        }
        .price-card:hover .card-testimonial {
            background: rgba(255, 255, 255, 0.02);
            border-color: var(--card-border-hover);
        }
        
        /* Basis für die Zitate */
        .testimonial-quote {
            font-size: 13px;
            font-style: italic;
            line-height: 1.5;
            margin: 0 0 12px 0;
            font-weight: 500;
        }
        
                /* 🎨 Individuelle, stylische Farbtrennung je nach Spalte */
        .price-card:nth-child(1) .testimonial-quote { color: #38bdf8; } /* Edles Cyan-Blau für Daten */
        .price-card:nth-child(2) .testimonial-quote { color: #f472b6; } /* Auffälliges Pink-Lila für Mailings */
        .price-card:nth-child(3) .testimonial-quote { color: #fb923c; } /* 🔥 KORREKTUR: Leuchtendes Neon-Orange für Cold-Call */
        
        /* Hellen Modus farblich lesbar halten */
        [data-theme="light"] .price-card:nth-child(1) .testimonial-quote { color: #0284c7; }
        [data-theme="light"] .price-card:nth-child(2) .testimonial-quote { color: #db2777; }
        [data-theme="light"] .price-card:nth-child(3) .testimonial-quote { color: #c2410c; } /* Dunkleres Orange im Lightmode */


        .testimonial-meta {
            font-size: 11px;
            color: var(--text-main);
            line-height: 1.3;
            border-top: 1px solid var(--navbar-border);
            padding-top: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }
        .testimonial-meta strong { color: var(--text-main); }
        
        /* 🏷️ Stylischer, feiner URL-Glas-Badge */
        .testimonial-badge-url {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--navbar-border);
            color: var(--text-muted);
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 10px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
        }
        .testimonial-badge-url:hover {
            color: #c084fc;
            background: rgba(192, 132, 252, 0.1);
            border-color: rgba(192, 132, 252, 0.4);
            box-shadow: 0 0 8px rgba(192, 132, 252, 0.15);
        }
        .testimonial-badge-url svg {
            width: 10px;
            height: 10px;
            opacity: 0.7;
        }

        /* 🎛️ Interaktive Klick-Zeilen für die Preisstaffeln */
        .staffel-select-btn {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.01);
            border: 1px solid var(--navbar-border);
            padding: 10px 14px;
            border-radius: 10px;
            font-size: 13px;
            color: var(--text-main);
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s ease;
            box-sizing: border-box;
        }
        .staffel-select-btn:hover {
            border-color: rgba(192, 132, 252, 0.5);
            background: rgba(192, 132, 252, 0.04);
        }
        .staffel-select-btn.active {
            border-color: #c084fc;
            background: rgba(192, 132, 252, 0.1);
            box-shadow: 0 0 10px rgba(192, 132, 252, 0.2);
        }
        .staffel-select-btn strong {
            color: #34d399;
            font-weight: 700;
        }
        .price-card.featured .staffel-select-btn strong {
            color: #c084fc;
        }

        /* 📋 Listen-Formatierung innerhalb der Karten */
        .price-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
        .price-features li { font-size: 13px; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
        .price-features svg { width: 16px; height: 16px; color: #34d399; flex-shrink: 0; }
        
        /* Primäre Aktions-Buttons unten */
        .btn-price {
            display: block; text-align: center; text-decoration: none; padding: 12px; border-radius: 12px;
            font-size: 14px; font-weight: 700; transition: all 0.2s ease;
            background: rgba(255, 255, 255, 0.03); border: 1px solid var(--navbar-border); color: var(--text-main);
        }
        .price-card.featured .btn-price {
            background: #c084fc; border-color: #c084fc; color: #020617; box-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
        }
        .btn-price:hover { border-color: #c084fc; background: rgba(192, 132, 252, 0.1); color: #fff; }
        .price-card.featured .btn-price:hover { background: #d8b4fe; border-color: #d8b4fe; color: #020617; box-shadow: 0 0 25px rgba(192, 132, 252, 0.6); }

        /* 🌌 STYLISCHE ACCORDION FAQ */
        .faq-section { margin-top: 80px; margin-bottom: 80px; }
        .faq-container { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
        
        .faq-item {
            background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px;
            overflow: hidden; transition: all 0.3s ease;
        }
        .faq-item:hover { border-color: var(--card-border-hover); }
        
        .faq-trigger {
            width: 100%; background: none; border: none; padding: 18px 20px; text-align: left;
            display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--text-main);
            font-family: inherit;
        }
        .faq-question { font-size: 15px; font-weight: 600; margin: 0; padding-right: 15px; line-height: 1.4; }
        .faq-icon { transition: transform 0.3s ease; color: #c084fc; flex-shrink: 0; }
        
        .faq-content {
            max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease;
            padding: 0 20px; color: var(--text-muted); font-size: 14px; line-height: 1.6;
            box-sizing: border-box;
        }
        
        .faq-item.active .faq-icon { transform: rotate(180deg); }
        .faq-item.active .faq-content { padding-bottom: 20px; }

        /* 📱 Responsive Weiche für mobile Endgeräte */
        @media (max-width: 900px) {
            /* Deaktiviert Subgrid im Mobile-Modus, da Spalten untereinander brechen */
            .pricing-layout { 
                grid-template-rows: auto; 
                gap: 30px; 
            }
            .price-card { 
                grid-template-rows: auto; 
                grid-row: auto; 
                gap: 16px; 
            }
            .price-card h3, .price-card .price-desc, .price-card .card-testimonial, 
            .price-card .staffel-wrapper-box, .price-card .price-features, .price-card .btn-price { 
                grid-row: auto; 
            }
        }
        @media (max-width: 768px) {
            #contact-form {
                grid-template-columns: 1fr !important;
                gap: 15px !important;
            }
        }

/* =========================================================================
   🛸 CYBERPUNK STYLES: MARKET PILLS & FLAGS
   ========================================================================= */

/* --- LÄNDER-AUSWAHL BUTTONS (PILLS) --- */
.market-selector-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0 35px 0;
    font-family: 'Courier New', Courier, monospace;
}

.selector-label {
    color: #888888;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: bold;
}

.market-pills {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Umwandlung der Links in Buttons für reibungslose JS-Wechsel */
.market-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #00ffcc;
    border-color: rgba(0, 255, 204, 0.2);
}

.market-pill.active {
    background: rgba(0, 255, 204, 0.12);
    border-color: #00ffcc;
    color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3), inset 0 0 8px rgba(0, 255, 204, 0.1);
}

.pill-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.pill-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 10px;
    color: #777777;
    transition: all 0.2s ease;
}

.market-pill.active .pill-badge {
    background: #00ffcc;
    color: #000000;
}


/* =========================================================================
   🛸 GLOBAL INTELLIGENCE UPDATE: CARDS, FLAGS, PILLS & ELLIPSIS
   ========================================================================= */

/* 1. Schiebt den gesamten Footer-Inhalt nach links und verriegelt die Schutzzone */
.card-footer-full.borderless-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative; 
    width: 100%;
    border-top: none; 
    padding-top: 5px;
    padding-right: 45px !important;    /* Absolute Schutzzone: Kein Text berührt jemals die Flagge */
    box-sizing: border-box !important;
}

/* 2. 🔥 VISUELLE TEXT-KÜRZUNG AUF DREI PUNKTE (...) - MAXIMALER PLATZ NACH RECHTS */
.card-badge-full.align-left {
    margin-right: auto;
    font-size: 0.7rem !important;      
    letter-spacing: 0.5px !important;
    padding: 3px 8px !important;
    
    /* 🔥 Mehr Freiraum: Nutzt 70% der gesamten Card-Breite aus, bevor gekürzt wird */
    max-width: 70% !important;         
    white-space: nowrap !important;     
    overflow: hidden !important;        
    text-overflow: ellipsis !important; 
    
    display: inline-block !important;
}

/* 3. Brutaler Größen- und Positions-Lock für das Flaggen-Bild */
img.card-flag-icon,
.card img.card-flag-icon,
.dynamic-card img.card-flag-icon {
    position: absolute !important;
    bottom: 12px !important;    
    right: 15px !important;     
    
    width: 22px !important;     
    max-width: 22px !important; 
    height: 15.5px !important;    
    max-height: 15.5px !important;
    
    display: inline-block !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    
    /* Sauberer, heller Rahmen statt störendem Neongrün */
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.9) !important;
    
    /* HELLIGKEITS-BOOST: Holt die Flagge aus dem dunklen Schleier der Elternkarte */
    z-index: 99999 !important;   /* Schiebt das Bild vor JEDES verdeckende Overlay */
    opacity: 1.0 !important;     /* Permanente, kristallklare Sichtbarkeit */
    filter: brightness(1.25) contrast(1.1) !important; /* Macht die Flagge knackig hell */
    
    margin: 0 !important;       
    padding: 0 !important;
    transition: all 0.2s ease !important;
}

/* Wenn über die Karte gehovert wird, bleibt die Flagge stabil und strahlend */
.card:hover img.card-flag-icon {
    filter: brightness(1.35) contrast(1.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4) !important;
}

/* --- HOCHAUFLÖSENDES, FREI SCHWEBENDES FLAGGEN-DESIGN --- */

/* 1. Der Kasten um die Buttons wird unsichtbar gemacht */
.market-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    row-gap: 15px !important;

    width: 783px !important;      /* Desktop: Platz für 14 Flaggen */
    max-width: 783px !important;
    margin: 0 auto !important;

    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Die kreisrunden Buttons bekommen einen edlen Glas-Effekt */
.market-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Hover-Effekt */
.market-pill:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Aktiver Markt */
.market-pill.active {
    background: rgba(157, 0, 255, 0.2) !important;
    border-color: #bc13fe !important;
    box-shadow:
        0 0 15px rgba(188, 19, 254, 0.5),
        inset 0 0 8px rgba(188, 19, 254, 0.3) !important;
}

.market-pill.active img.pill-flag-svg {
    border-color: #bc13fe !important;
    box-shadow: 0 0 6px rgba(188, 19, 254, 0.6) !important;
    filter: brightness(1.25) contrast(1.1) !important;
}

/* Flaggen */
img.pill-flag-svg,
.market-pill img {
    width: 24px !important;
    max-width: 24px !important;
    height: 17px !important;
    max-height: 17px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: brightness(1.25) contrast(1.1) !important;
    transition: all 0.2s ease !important;
    z-index: 5 !important;
}

.market-pill:hover img.pill-flag-svg {
    filter: brightness(1.4) contrast(1.15) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

/* =========================
   MOBILE
   ========================= */

@media only screen and (max-width: 991px) {

    html .market-selector-zone .market-pills {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        grid: none !important;
        grid-template-columns: unset !important;
        grid-auto-flow: unset !important;
        width: auto !important;
        max-width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
    }

    html .market-selector-zone .market-pills > * {
        flex: 0 0 auto !important;
    }

}