/* ========================================
   Mähroboter Vergleich - Hauptstylesheet
   ======================================== */

:root {
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --primary-dark: #1b4332;
    --secondary: #74c69d;
    --accent: #d8f3dc;
    --text: #1a1a1a;
    --text-light: #555;
    --background: #f8f9fa;
    --card-bg: #ffffff;
    --border: #dee2e6;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-top {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    height: 40px;
    box-sizing: border-box;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.15);
}

nav a.header-action {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    gap: 0.5rem;
}

nav a.header-action:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 300px;
}

.hero-bg {
    position: absolute;
    top: -350px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0));
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.7) 0%, rgba(64, 145, 108, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   CONTAINER & GRID
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   FULLWIDTH CONTAINER
   ======================================== */

.container-fullwidth {
    max-width: 100%;
    padding: 0;
}

/* ========================================
   HORIZONTALE FILTER BAR
   ======================================== */

.filter-bar {
    background: var(--card-bg);
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.filter-row:not(:last-child) {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.filter-section-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
}

.radio-group-inline,
.checkbox-group-inline {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.radio-pill,
.checkbox-pill {
    cursor: pointer;
}

.radio-pill input,
.checkbox-pill input {
    display: none;
}

.radio-pill span,
.checkbox-pill span {
    display: block;
    padding: 0.4rem 0.8rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.radio-pill:hover span,
.checkbox-pill:hover span {
    border-color: var(--primary-light);
}

.radio-pill input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.checkbox-pill input:checked + span {
    background: var(--secondary);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.filter-section-inline input[type="range"]:not(.dual-range-container input) {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    vertical-align: middle;
}

.filter-section-inline input[type="range"]:not(.dual-range-container input)::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-top: 0;
}

.filter-section-inline input[type="range"]:not(.dual-range-container input)::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Preis Dual Range Slider */
.filter-preis-range {
    min-width: 200px;
}

.dual-range-container {
    position: relative;
    width: 180px;
    height: 40px;
    display: flex;
    align-items: center;
}

.dual-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    pointer-events: none;
}

.dual-range-progress {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: var(--primary);
    border-radius: 3px;
    pointer-events: none;
}

.dual-range-container input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
}

.dual-range-container input[type="range"]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    height: 100%;
    background: transparent;
}

.dual-range-container input[type="range"]::-moz-range-track {
    height: 100%;
    background: transparent;
}

.dual-range-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.1s;
    margin-top: 10px;
}

.dual-range-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.dual-range-container input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dual-range-values {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.range-value-inline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 60px;
}

.filter-hersteller {
    flex: 1;
    min-width: 200px;
}

/* ========================================
   MULTISELECT DROPDOWN
   ======================================== */

.multiselect-wrapper {
    position: relative;
    display: inline-block;
}

.multiselect-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    min-width: 150px;
    justify-content: space-between;
    transition: all 0.2s;
}

.multiselect-btn:hover {
    border-color: var(--primary-light);
}

.multiselect-btn.active {
    border-color: var(--primary);
}

.multiselect-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.multiselect-dropdown.active {
    display: block;
}

.multiselect-options {
    padding: 0.5rem;
}

.multiselect-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.multiselect-option:hover {
    background: var(--accent);
}

.multiselect-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.multiselect-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.multiselect-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

/* ========================================
   VERGLEICH WRAPPER
   ======================================== */

.compare-wrapper {
    padding: 2rem;
    max-width: 100vw;
    overflow: hidden;
}

.compare-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    max-width: 100%;
}

.compare-scroll-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: white;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.compare-scroll-container::-webkit-scrollbar {
    height: 10px;
}

.compare-scroll-container::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.compare-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

.compare-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.filter-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.25rem;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-group input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
}

.filter-group input[type="range"]::-moz-range-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

.range-value {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Radio Button Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.radio-label:hover {
    background: var(--background);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.radio-label span {
    flex: 1;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ========================================
   PRODUCT GRID
   ======================================== */

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    font-size: 0.95rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--warning);
    color: var(--text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-badge.best {
    background: var(--primary);
    color: white;
}

.product-badge.top3 {
    background: #c9b037;
    color: white;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent) 0%, white 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-image-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

/* Produkt Bild-Platzhalter Styles */
.product-placeholder {
    transition: transform 0.3s ease;
}

.product-card:hover .product-placeholder {
    transform: scale(1.05);
}

.product-image-wrapper {
    transition: all 0.3s ease;
}

.product-image-wrapper img {
    transition: opacity 0.3s ease;
}

/* Hersteller-spezifische Akzente */
.product-image[data-hersteller="Segway"] { --brand-color: #00A651; }
.product-image[data-hersteller="Husqvarna"] { --brand-color: #FF8F00; }
.product-image[data-hersteller="Gardena"] { --brand-color: #F57C00; }
.product-image[data-hersteller="WORX"] { --brand-color: #E53935; }
.product-image[data-hersteller="Dreame"] { --brand-color: #00BCD4; }

.product-content {
    padding: 1.5rem;
}

.product-header {
    margin-bottom: 1rem;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stars {
    color: var(--warning);
}

.rating-count {
    color: var(--text-light);
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.spec-item i {
    color: var(--primary);
    width: 20px;
}

.spec-label {
    color: var(--text-light);
}

.spec-value {
    font-weight: 600;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-badge {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tech-badge.active {
    background: var(--secondary);
}

.tech-badge.inactive {
    background: #e9ecef;
    color: #6c757d;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.product-price .currency {
    font-size: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

/* ========================================
   BESTENLISTE
   ======================================== */

.bestenliste-section {
    margin: 3rem 0;
}

.bestenliste-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.bestenliste-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.bestenliste-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    background: var(--primary);
    border-bottom-right-radius: var(--radius-lg);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}

/* ========================================
   VERGLEICHSTABELLE
   ======================================== */

.compare-section {
    margin: 3rem 0;
}

.compare-section-full {
    margin: 0 0 2rem 0;
}

.compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.compare-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-height: 70vh;
    overflow-y: auto;
}

.compare-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.compare-table-wrapper::-webkit-scrollbar-track {
    background: var(--background);
}

.compare-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.compare-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ========================================
   HORIZONTALE VERGLEICHSTABELLE
   ======================================== */

.horizontal-compare-table {
    display: inline-flex;
    flex-direction: column;
    min-width: 100%;
}

.compare-row {
    display: flex;
    border-bottom: 1px solid var(--border);
    min-width: max-content;
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row:nth-child(even) {
    background: rgba(0,0,0,0.02);
}

.compare-row:hover {
    background: var(--accent);
}

.compare-label {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-dark);
    background: var(--accent);
    display: flex;
    align-items: center;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 2px solid var(--border);
}

.compare-cell {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    padding: 0.75rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid var(--border);
    font-size: 0.9rem;
}

.compare-cell:last-child {
    border-right: none;
}

.compare-cell.bold {
    font-weight: 600;
    font-size: 0.9rem;
}

.compare-cell .product-image-wrapper,
.compare-cell .product-placeholder {
    width: 50px !important;
    height: 50px !important;
}

.compare-cell .product-placeholder {
    font-size: 1.2rem !important;
}

.compare-cell .product-placeholder div:first-child {
    font-size: 1.2rem !important;
}

.compare-cell[data-prop="name"] {
    flex-direction: column;
    gap: 0.25rem;
}

.compare-cell[data-prop="beschreibung"] {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: left;
}

.best-badge {
    background: var(--warning);
    color: var(--text);
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.check-yes {
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.check-no {
    color: #ccc;
}

.compare-cell .stars {
    color: var(--warning);
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

/* Quick Section */
.quick-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   MODAL FÜR FEHLERMELDUNGEN
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--accent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.error-link {
    font-size: 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.error-link:hover {
    background: var(--background);
    color: var(--danger);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table th {
    background: var(--primary-dark);
    color: white;
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.compare-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.compare-table tbody tr {
    transition: background 0.2s;
}

.compare-table tbody tr:hover {
    background: var(--accent);
}

.compare-table tbody tr:nth-child(even) {
    background: rgba(0,0,0,0.02);
}

.compare-table tbody tr:nth-child(even):hover {
    background: var(--accent);
}

.compare-table tbody tr[style*="display: none"] {
    display: none !important;
}

.quick-card .product-image-wrapper,
.quick-card .product-placeholder {
    width: 80px !important;
    height: 80px !important;
}

.quick-card .product-image-wrapper img,
.quick-card .product-placeholder {
    max-width: 70px !important;
    max-height: 70px !important;
}

.quick-card .product-image-placeholder {
    font-size: 2rem !important;
}

.compare-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.compare-selection {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.compare-select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 200px;
}

.compare-table-container {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    background: var(--background);
    font-weight: 600;
    color: var(--primary-dark);
    position: sticky;
    top: 0;
}

.compare-table th.product-col {
    min-width: 200px;
    text-align: center;
}

.compare-table td {
    vertical-align: middle;
}

.compare-table tr:hover {
    background: var(--background);
}

.compare-product {
    text-align: center;
}

.compare-product img {
    max-width: 100px;
    margin-bottom: 0.5rem;
}

.compare-product-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.compare-product-brand {
    font-size: 0.85rem;
    color: var(--text-light);
}

.feature-check {
    color: var(--success);
    font-size: 1.25rem;
}

.feature-x {
    color: var(--danger);
    font-size: 1.25rem;
}

.highlight-best {
    background: rgba(45, 106, 79, 0.1);
}

/* ========================================
   DETAIL PAGE
   ======================================== */

.detail-header {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.detail-image {
    background: linear-gradient(135deg, var(--accent) 0%, white 100%);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image img {
    max-width: 100%;
}

.detail-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.detail-brand {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-price-box {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.detail-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.detail-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.detail-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--background);
    border-radius: var(--radius);
}

.pro-con-list {
    list-style: none;
}

.pro-con-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pro-con-list.pros li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

.pro-con-list.cons li::before {
    content: "✗";
    color: var(--danger);
    font-weight: bold;
}

/* ========================================
   SHOP LINKS
   ======================================== */

.shop-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.shop-link:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.shop-link-main {
    background: linear-gradient(135deg, #FF9900 0%, #FF8800 100%);
    color: white;
    border: none;
}

.shop-link-main:hover {
    background: linear-gradient(135deg, #FF8800 0%, #FF7700 100%);
    color: white;
}

.shop-logo {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
}

.shop-info {
    flex: 1;
}

.shop-name {
    font-weight: 600;
}

.shop-price {
    font-size: 0.9rem;
    color: var(--text-light);
}

.shop-link-main .shop-price {
    color: rgba(255,255,255,0.9);
}

.shop-arrow {
    font-size: 1.25rem;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ========================================
   LOADING & ALERTS
   ======================================== */

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
    }
    
    .detail-header {
        grid-template-columns: 1fr;
    }
    
    .detail-sections {
        grid-template-columns: 1fr;
    }
    
    /* Filter Bar Tablet */
    .filter-bar {
        padding: 0.75rem;
        gap: 0.75rem;
        top: 60px;
    }
    
    .filter-row {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Header Mobile - nicht mehr sticky */
    header {
        position: relative;
    }
    
    .header-top {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    /* Navigation Mobile */
    nav {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    nav ul {
        flex-direction: row;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    nav ul::-webkit-scrollbar {
        display: none;
    }
    
    nav a {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .hero-stat-number {
        font-size: 1.75rem;
    }
    
    /* Filter Bar Mobile - STICKY */
    .filter-bar {
        padding: 0.5rem;
        gap: 0.5rem;
        position: -webkit-sticky;
        position: sticky;
        top: 0 !important;
        overflow-x: auto;
        flex-direction: row;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        z-index: 1000;
        background: var(--card-bg);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .filter-bar::-webkit-scrollbar {
        height: 3px;
    }
    
    .filter-row {
        flex-wrap: nowrap;
        min-width: max-content;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    
    .filter-row:not(:last-child) {
        border-right: 1px solid var(--border);
        padding-right: 0.75rem;
        margin-right: 0.75rem;
    }
    
    .filter-section-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    
    .filter-label {
        font-size: 0.75rem;
    }
    
    .radio-pill span,
    .checkbox-pill span {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Produktgrid Mobile */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Vergleich Mobile */
    .compare-wrapper {
        padding: 0.5rem;
    }
    
    .compare-toolbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 9999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Mobile: Button etwas näher am Rand */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* Reduced motion für Accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: none;
    }
}

/* ========================================
   FORM SECTIONS (für Modell melden Modal)
   ======================================== */

.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Header Action Button */
nav a.header-action {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a.header-action:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}
