/* ===== BURGER MENU ===== */
.burger-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.mobile-nav.open {
    display: flex;
}


.mobile-nav a {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 12px;
    transition: 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--tm-blue);
    background: var(--tm-blue-light);
}

.mobile-nav .whatsapp-nav {
    color: #25d366;
    border: 2px solid #25d366;
    border-radius: 50px;
    padding: 12px 28px;
    margin-top: 10px;
}

/* ===== BACK BUTTON ===== */
.btn-back {
    background: none;
    border: none;
    color: var(--tm-blue);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.btn-back:hover {
    color: var(--tm-blue-hover);
    transform: translateX(-3px);
}

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    color: #fff;
    text-decoration: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.4s;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-text strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.cookie-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.cookie-text a {
    color: var(--tm-blue);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: var(--tm-blue);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.cookie-btn-accept:hover {
    background: var(--tm-blue-hover);
}

.cookie-btn-reject {
    background: none;
    border: 2px solid #ddd;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
}

.cookie-btn-reject:hover {
    border-color: #999;
    color: #333;
}


/* ===== SUCHBOX ===== */
.suche-wrapper {
    max-width: 560px;
    margin: 28px auto 0;
    position: relative;
    z-index: 200;
}

/* Header-Suchfeld (zwischen Pills und Icons) */
.header-suche-wrapper {
    flex: 1;
    max-width: 420px;
    margin: 0 20px;
    position: relative;
    z-index: 200;
}

.header-suche-wrapper .suche-input {
    padding: 10px 16px 10px 40px;
    font-size: 14px;
    border-radius: 50px !important;
    background: #f0f0f5;
    box-shadow: none;
    border: 1px solid #e0e0e6;
    outline: none;
}

.header-suche-wrapper .suche-input:focus {
    background: #fff;
    box-shadow: 0 2px 12px rgba(46, 43, 203, 0.15);
    border-color: var(--tm-blue);
    border-radius: 50px !important;
    outline: none;
}

.header-suche-wrapper .suche-icon {
    left: 14px;
    font-size: 14px;
}

.header-suche-wrapper .suche-ergebnisse {
    z-index: 9999;
}

@media (max-width: 767px) {
    .header-suche-wrapper {
        display: none;
    }
}

/* Header-Icon-Links (Anmelden, Versandbox) */
.header-icon-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #6b7280;
    transition: color 0.2s;
}

.header-icon-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.header-icon-link i {
    font-size: 22px;
}

.header-icon-link span {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.suche-box {
    position: relative;
}

.suche-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    z-index: 2;
}

.suche-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: none;
    border-radius: 50px !important;
    font-size: 17px;
    font-family: 'Figtree', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    outline: none;
    transition: box-shadow 0.3s;
}

.suche-input:focus {
    box-shadow: 0 4px 32px rgba(46, 43, 203, 0.3);
    border-radius: 50px !important;
    outline: none;
}

.suche-input::placeholder {
    color: #aaa;
}

.suche-ergebnisse {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    max-height: 360px;
    overflow-y: auto;
    display: none;
    z-index: 500;
}

.suche-ergebnisse.active {
    display: block;
}

.suche-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.suche-item:last-child {
    border-bottom: none;
}

.suche-item:hover {
    background: var(--tm-blue-light);
}

.suche-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f0f8, #e8e8f4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-blue);
    font-size: 16px;
    flex-shrink: 0;
}

.suche-item-info {
    flex: 1;
    min-width: 0;
}

.suche-item-modell {
    font-weight: 700;
    color: var(--tm-text);
    font-size: 14px;
    line-height: 1.3;
}

.suche-item-speicher {
    display: inline-block;
    font-weight: 600;
    font-size: 12px;
    color: var(--tm-blue);
    background: var(--tm-blue-light);
    padding: 1px 8px;
    border-radius: 20px;
    margin-left: 4px;
    vertical-align: middle;
}

.suche-item-details {
    font-size: 13px;
    color: var(--tm-muted);
    margin-top: 2px;
}

.suche-item-farbe {
    margin-top: 3px;
}

/* Farb-Dot-Vorschau in Suchergebnissen */
.such-farben-preview {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.such-farbe-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.such-farbe-mehr {
    font-size: 11px;
    color: #888;
    font-weight: 600;
}

.suche-item-preis {
    font-weight: 700;
    color: #16a34a;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.suche-leer {
    padding: 20px;
    text-align: center;
    color: var(--tm-muted);
    font-size: 14px;
}

/* ===== GERÄT NICHT GEFUNDEN FALLBACK ===== */
.geraet-nicht-gefunden {
    background: #f8f8fc;
    border: 2px dashed #d0d0d8;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    margin-top: 24px;
}

.geraet-nicht-gefunden i.fa-question-circle {
    font-size: 36px;
    color: var(--tm-blue);
    margin-bottom: 12px;
}

.geraet-nicht-gefunden strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.geraet-nicht-gefunden p {
    color: var(--tm-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-ankauf-small {
    display: inline-block;
    background: var(--tm-blue);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: 0.3s;
}

.btn-ankauf-small:hover {
    background: var(--tm-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 43, 203, 0.3);
    color: #fff !important;
    text-decoration: none;
}

.oder-text {
    display: inline-block;
    color: var(--tm-muted);
    font-size: 14px;
    margin: 0 12px;
    vertical-align: middle;
}

.btn-whatsapp-small {
    display: inline-block;
    background: #fff;
    color: #25D366 !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    border: 2px solid #25D366;
    text-decoration: none;
    transition: 0.3s;
}

.btn-whatsapp-small:hover {
    background: #25D366;
    color: #fff !important;
    text-decoration: none;
}

