:root {
    --primary-gradient: linear-gradient(135deg, #0071e3 0%, #00c6ff 100%);
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    --text-color: #1d1d1f;
    --secondary-text: #86868b;
    --card-bg: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-strong: 0 12px 40px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; } /* Wichtig für korrekte Breitenberechnung */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HERO HEADER --- */
header {
    background: #1d1d1f; 
    background: linear-gradient(135deg, #1d1d1f 0%, #002d5e 100%);
    padding: 40px 0; 
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

header::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,113,227,0.15) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
    z-index: 1;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header .container { position: relative; z-index: 2; }

header h1 { 
    margin: 0; font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

header p { color: #a1a1a6; margin: 0 auto; font-size: 1.1rem; max-width: 700px; }

.header-badge {
    display: inline-block; background: rgba(0, 113, 227, 0.15); color: #0071e3;
    padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 10px; border: 1px solid rgba(0, 113, 227, 0.3);
}

/* --- LAYOUT FIX (Das war das Problem) --- */
.intro { padding: 40px 0 20px; text-align: center; }

.main-layout {
    display: flex;
    flex-wrap: nowrap; /* Verhindert das Umbrechen auf Desktop */
    gap: 30px;
    margin-top: 20px;
    align-items: flex-start;
}

.content-area { 
    flex: 1; 
    min-width: 0; /* Zwingt Grid-Inhalt, innerhalb der Spalte zu bleiben */
}

.provider-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px;
    margin-bottom: 60px;
}

/* --- CARD DESIGN --- */
.card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-strong);
}

.card-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 15px;
}

.provider-logo {
    width: 35px; height: 35px; border-radius: 8px;
    background: #f5f5f7; padding: 3px; object-fit: contain;
}

.card h3 { margin: 0; font-size: 1.25rem; font-weight: 600; }

.rating { color: #FFD700; font-size: 1.1rem; margin-bottom: 12px; }

.info-row { 
    font-size: 0.9rem; padding: 10px; background: #f5f5f7;
    border-radius: 10px; margin-bottom: 15px;
}

.btn-link {
    background: var(--primary-gradient); color: #fff; text-align: center;
    padding: 12px; border-radius: 10px; text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
}

.provider-details summary { padding: 12px 0; cursor: pointer; color: #0066cc; font-size: 0.85rem; }
.details-content { background: #fbfbfd; padding: 10px; border-radius: 8px; font-size: 0.85rem; color: #6e6e73; }

/* --- SIDEBAR --- */
.sidebar { 
    width: 280px; 
    flex-shrink: 0; 
}

.sidebar-box {
    background: #fff;
    padding: 24px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
}

/* --- FOOTER & LAYER --- */
.main-footer {
    background: #fff; padding: 60px 0; margin-top: 50px;
    text-align: center; color: var(--secondary-text); border-top: 1px solid #d2d2d7;
}

.cookie-info-layer {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 600px; background: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(15px); color: #fff; padding: 15px 20px;
    border-radius: 16px; z-index: 1000; display: none;
}

.info-container { display: flex; justify-content: space-between; align-items: center; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; }
}

@media (max-width: 600px) {
    .provider-grid { grid-template-columns: 1fr !important; }
}