/* -------------------------------------------------
   SmartphoneXXL – Stylesheet
   Fokus: Smartphones / Tablets / Zubehör
   ------------------------------------------------- */

/* ============================================
   Design-Variablen
   ============================================ */

:root {
    --sx-bg: #f5f5f7;
    --sx-bg-soft: #ffffff;
    --sx-border: #e5e7eb;
    --sx-border-soft: #f3f4f6;
    --sx-text: #111827;
    --sx-text-muted: #6b7280;

    /* Blau mit minimal Lila-Touch */
    --sx-primary: #2563eb;
    --sx-primary-strong: #1d4ed8;
    --sx-primary-soft: rgba(37, 99, 235, 0.08);

    --sx-accent: #22c55e;
    --sx-radius: 1rem;
    --sx-radius-lg: 1.5rem;
    --sx-shadow-soft: 0 10px 30px rgba(15, 42, 66, 0.08);
    --sx-shadow-subtle: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* ============================================
   Global / Basics
   ============================================ */

html,


body {
    background-color: var(--sx-bg);
    color: var(--sx-text);
        overflow-x: hidden;

}

main {
    min-height: 60vh;
}

.sx-section {
    padding: 3rem 0;
}

@media (max-width: 575.98px) {
    .sx-section {
        padding: 2rem 0;
    }
}

/* Karten / Shadow */

.card {
    border-radius: var(--sx-radius);
    border-color: var(--sx-border-soft);
    background-color: #ffffff;
}

/* Buttons & Inputs – alles schön rounded */

.btn,
.btn-sm,
.btn-lg {
    border-radius: 999px !important;
}

.form-control,
.form-select {
    border-radius: 999px;
    border-color: var(--sx-border-soft);
    box-shadow: none;
}

textarea.form-control {
    border-radius: 1rem;
}

.form-control::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--sx-primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* Bootstrap-Tweak – success-subtle (für Zustand) */

.bg-success-subtle {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

/* ============================================
   Header / Navbar
   ============================================ */

.sx-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

/* Inhalt im Header transparent lassen */

.sx-header .navbar,
.sx-header .sx-nav-secondary {
    background: transparent;
}

/* Logo */

.sx-logo {
    height: 32px;
    width: auto;
}

/* Navbar-Links / Brand */

.sx-header .navbar-brand,
.sx-header .navbar-nav .nav-link,
.sx-header .navbar-text {
    color: #111827 !important;
}

.sx-header .navbar-nav .nav-link {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.9;
}

.sx-header .navbar-nav .nav-link i {
    font-size: 1.05rem;
}

.sx-header .navbar-nav .nav-link:hover {
    opacity: 1;
}

.sx-header .navbar-nav .nav-link.active {
    color: var(--sx-primary) !important;
    font-weight: 600;
}

/* Suche im Header – breite, weiße, runde Leiste */

.sx-navbar-search .input-group-text,
.sx-navbar-search .form-control {
    background-color: #ffffff;
    border-radius: 999px !important;
    border-color: rgba(15, 23, 42, 0.15);
}

.sx-navbar-search .input-group-text {
    color: #6b7280;
}

/* Sekundäre Nav unter Hauptnavbar */

.sx-nav-secondary {
    background: transparent;
}

.sx-nav-links .nav-link {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.sx-nav-links .nav-link:hover {
    color: var(--sx-primary);
}

.sx-nav-links .nav-link.active {
    color: var(--sx-primary) !important;
    font-weight: 600;
}

/* Offcanvas Navigation (Mobile) */

.sx-offcanvas-nav {
    border-radius: 1.5rem 0 0 1.5rem;
}

.sx-offcanvas-nav .offcanvas-header {
    border-bottom: 1px solid var(--sx-border-soft);
}

.sx-offcanvas-nav .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sx-offcanvas-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 0;
    padding-right: 0;
    color: var(--sx-text-muted);
}

/* ============================================
   HERO / Startseite
   ============================================ */

.sx-hero {
    position: relative;
    overflow: hidden;
}

.sx-hero-gradient {
    /* Heller Hero: überwiegend weiß, mit sanftem Übergang in Blau/Lila */
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f9fafb 25%,
        #eef2ff 55%,
        #dbeafe 80%,
        #e0e7ff 100%
    );
    color: #111827;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}


/* kleines Badge im Hero */

.sx-hero-badge {
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.sx-hero-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    margin-right: 0.35rem;
}

/* Hero-Karte rechts */

.sx-hero-card {
    border-radius: var(--sx-radius-lg);
    box-shadow: var(--sx-shadow-subtle);
    border: 1px solid rgba(209, 213, 219, 0.8);
    background: #ffffff;
    color: #111827;
}

/* optional: Texte in der Karte etwas softer */
.sx-hero-card p {
    color: #4b5563;
    font-size: 0.9rem;
}

.sx-hero-card h2,
.sx-hero-card h3 {
    color: #111827;
    font-weight: 600;
}


/* ============================================
   Kategorien-Kacheln (Startseite)
   ============================================ */

.sx-category-grid .card {
    border-radius: 1.1rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    border: 1px solid var(--sx-border-soft);
    background-color: #ffffff;
}

.sx-category-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sx-shadow-subtle);
    border-color: rgba(37, 99, 235, 0.3);
}

/* ============================================
   Produktkarten / Grids / Listen
   ============================================ */

/* Gemeinsame Card-Basis */

.sx-product-card {
    border-radius: 1rem;
    border: 1px solid var(--sx-border-soft);
    background-color: #ffffff;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.sx-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sx-shadow-subtle);
    border-color: rgba(37, 99, 235, 0.22);
}

/* Bild-Wrapper (Grid & List) – verhindert XXL-Bilder */

.sx-product-image-wrap {
    position: relative;
    padding-top: 75%; /* 4:3 Ratio */
    background: #f9fafb;
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sx-product-image {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Listenbild (klassischer <img>-Fallback) */

.sx-product-img-list {
    max-height: 180px;
    object-fit: contain;
    padding: 0.75rem;
    background-color: #f9fafb;
}

/* Titel / Preis */

.sx-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.sx-product-price {
    font-size: 1rem;
    color: var(--sx-primary-strong);
}

/* Badges allgemein */

.sx-product-card .badge {
    font-size: 0.75rem;
    border-radius: 999px;
    max-width: 100%;
}

/* Grid vs. List – Badge-Verhalten:
   - Grid: Kürzen mit … (z.B. Zustand)
   - List: volle Breite */

/* Badges in den Produktkarten (Textüberlauf) */
.sx-product-card .badge {
    white-space: nowrap;        /* Verhindert den Umbruch des Texts */
    overflow: hidden;           /* Versteckt den überschüssigen Text */
    text-overflow: ellipsis;    /* Fügt "..." hinzu, wenn der Text abgeschnitten wird */
    display: inline-block;      /* Verhindert eine horizontale Dehnung des Badges */
    max-width: 100%;            /* Stellt sicher, dass der Badge im Container bleibt */
}

/* Karteninhalt – Flexbox für den Container */
.sx-product-card .card-body {
    display: flex;
    flex-direction: column;     /* Vertikale Anordnung der Elemente */
    justify-content: flex-start; /* Elemente am oberen Rand anordnen */
    overflow: hidden;           /* Verhindert, dass Inhalte über die Karte hinausragen */
}

/* Für die Grid-Ansicht – Kartenhöhe anpassen */
.sx-product-grid .sx-product-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alle Elemente innerhalb der Karte starten oben */
    height: auto;                /* Höhe dynamisch anpassen, je nach Inhalt */
}


/* Grid – Cards auf gleiche Höhe ziehen */

.sx-product-grid .sx-product-card {
    height: 100%;
}

/* Listenansicht – Layout */

.sx-product-list .sx-product-card .card-body {
    padding: 0.9rem 1rem;
}


/* ============================================
   Filter / Sidebar / Active Filter Badges
   ============================================ */

.sx-filter-card {
    border-radius: 1rem;
    border-color: var(--sx-border-soft);
}

.sx-filter-card .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sx-text-muted);
}

.sx-filter-card .form-check-label {
    font-size: 0.85rem;
    color: var(--sx-text-muted);
}

/* Active Filter Badge (über Trefferliste) */

.sx-active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
}

/* Filter-Offcanvas (Mobile) */

.sx-filter-offcanvas {
    border-radius: 1.25rem 0 0 1.25rem;
}

.sx-filter-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--sx-border-soft);
}

.sx-filter-offcanvas .offcanvas-body {
    padding-bottom: 1.25rem;
}

/* ============================================
   View-Toggle (Grid / List)
   ============================================ */

.sx-view-toggle .btn {
    border-radius: 999px !important;
}

.sx-view-toggle .btn i {
    font-size: 1rem;
}

/* ============================================
   Suche / Suchseite / Suggest
   ============================================ */

.sx-search-hero {
    background: #0b1120;
    color: #e5e7eb;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.sx-search-hero .form-control {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: #1f2937;
    color: #e5e7eb;
    border-radius: 999px;
}

.sx-search-hero .form-control::placeholder {
    color: #6b7280;
}

.sx-search-hero .input-group-text {
    border-color: #1f2937;
    background-color: rgba(15, 23, 42, 0.95);
    color: #9ca3af;
    border-radius: 999px;
}

/* Suggest-Dropdown */

.sx-suggest-dropdown {
    position: absolute;
    z-index: 1050;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 0 0 1rem 1rem;
    border: 1px solid var(--sx-border-soft);
    border-top: none;
    box-shadow: var(--sx-shadow-soft);
    max-height: 320px;
    overflow-y: auto;
}

.sx-suggest-item {
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    color: var(--sx-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sx-suggest-item i {
    font-size: 1rem;
    color: var(--sx-text-muted);
}

.sx-suggest-item:hover {
    background-color: #eff6ff;
}

/* ============================================
   Bottom Navigation (Mobile) – Latte + runde Buttons
   ============================================ */

.sx-bottom-nav {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--sx-border-soft);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    overflow-x: hidden;
}

.sx-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.35rem 0.5rem;
    gap: 0.25rem;
}

.sx-bottom-nav-item {
    flex: 1 1 0;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.sx-bottom-nav-item i {
    font-size: 1.2rem;
    line-height: 1;
}

.sx-bottom-nav-item span {
    line-height: 1.1;
}

.sx-bottom-nav-item--primary {
    background: var(--sx-primary);
    color: #ffffff;
    border-color: var(--sx-primary);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.sx-bottom-nav-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.sx-bottom-nav-item--primary:hover {
    background: var(--sx-primary-strong);
    border-color: var(--sx-primary-strong);
}

.sx-bottom-nav-item:active {
    transform: translateY(1px);
}

/* Platz unten für Bottom-Nav auf Mobile */

@media (max-width: 767.98px) {
    body {
        padding-bottom: 72px;
    }
}

/* ============================================
   Footer – helles Layout
   ============================================ */

footer {
    border-top: 1px solid var(--sx-border-soft);
    background-color: #f9fafb;
    color: #111827;
}

/* Spaltenüberschriften im Footer (z.B. Produkte, Tarife & Service, Rechtliches) */
.sx-footer-heading {
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6b7280;
}

/* Normale Footer-Links */
.sx-footer-link {
    color: #4b5563;
    text-decoration: none;
    opacity: 0.95;
    font-size: 0.9rem;
}

.sx-footer-link:hover {
    opacity: 1;
    color: var(--sx-primary);
    text-decoration: underline;
}

/* kleiner Meta-/Hinweistext („Alle Preise in Euro…“, „Weiterleitung direkt zu Partner-Shops“ etc.) */
.sx-footer-meta,
.sx-footer-meta small {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Social Icons Footer – hell, dezent */
.sx-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background-color: #ffffff;
    color: #4b5563;
    font-size: 1rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sx-footer-social-link:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}



/* ============================================
   Kontaktseite
   ============================================ */

.sx-page-header {
    background-color: #ffffff;
}

.sx-page-header .h3,
.sx-page-header h1 {
    font-weight: 700;
}

/* Kontaktformular-Card */

.sx-contact-card {
    border-radius: 1rem;
    border: 1px solid var(--sx-border-soft);
    background-color: #ffffff;
}

.sx-contact-card .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sx-text-muted);
}

.sx-contact-card .alert {
    border-radius: 0.75rem;
}

/* Info-Boxen (z.B. Adresse, Hotline) */

.sx-contact-info-card {
    border-radius: 1rem;
    border: 1px solid var(--sx-border-soft);
    background-color: #ffffff;
}

.sx-contact-info-card a {
    text-decoration: none;
}

.sx-contact-info-card a:hover {
    text-decoration: underline;
}

/* ============================================
   Legal / Impressum / Datenschutz
   ============================================ */

.sx-legal-card {
    font-size: 0.95rem;
    line-height: 1.6;
}

.sx-legal-card h5 {
    margin-top: 1.25rem;
    font-size: 1rem;
}

/* Sidebar-Hinweis & Schnellzugriff */

.sx-legal-aside {
    background: #f9fafb;
}

.sx-legal-aside .text-muted {
    color: #4b5563 !important;
}

.sx-legal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #111827;
    text-decoration: none;
}

.sx-legal-link::before {
    content: "•";
    font-size: 0.9rem;
    color: #9ca3af;
}

.sx-legal-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}