/* ========================================
   PrioMatching - Original Design CSS
   Dark Mode Support + pm-panel Style
   ======================================== */

/* CSS Variables - Light Mode */
:root {
    --background: #ffffff;
    --foreground: #171717;
    --pm-panel: #ffffff;
    --pm-panel-border: #e5e7eb;
    
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-schnell: #2563EB;
    --color-gut: #059669;
    --color-guenstig: #F59E0B;
    
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* Dark Mode */
html.dark {
    color-scheme: dark;
    --background: #0b1220;
    --foreground: #ffffff;
    --pm-panel: #0f1e3a;
    --pm-panel-border: rgba(255,255,255,0.08);
    
    --color-gray-50: #1e293b;
    --color-gray-100: #1e293b;
    --color-gray-200: #334155;
    --color-gray-300: #475569;
    --color-gray-400: #64748b;
    --color-gray-500: #94a3b8;
    --color-gray-600: #cbd5e1;
    --color-gray-700: #e2e8f0;
    --color-gray-800: #f1f5f9;
    --color-gray-900: #f8fafc;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--background);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
}

::selection {
    background: rgba(59, 130, 246, 0.25);
    color: inherit;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--foreground);
}

h1 { font-size: clamp(1.875rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.lead {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

html.dark .lead { color: var(--color-gray-300); }

.highlight {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.text-center { text-align: center; }
.hint { color: var(--color-gray-600); font-size: 0.9375rem; margin-top: 1.5rem; }

/* ========================================
   PM Panel (Original Design)
   ======================================== */
.pm-panel {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
}

/* ========================================
   Header (Original Design)
   ======================================== */
.pm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

html.dark .pm-header {
    background: rgba(11, 18, 32, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 24px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.025em;
}

html.dark .logo-text {
    color: #60a5fa;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    text-decoration: none;
}

html.dark .nav-link {
    color: #ffffff;
}

html.dark .nav-link:hover,
html.dark .nav-link.active {
    color: #60a5fa;
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

/* Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(209, 213, 219, 0.6);
    background: transparent;
    cursor: pointer;
    color: var(--color-gray-700);
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: var(--color-gray-100);
}

html.dark .theme-toggle {
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

html.dark .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Show/hide sun/moon icons */
.icon-moon { display: none; }
html.dark .icon-sun { display: none; }
html.dark .icon-moon { display: block; }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(209, 213, 219, 0.6);
    background: transparent;
    cursor: pointer;
    color: var(--color-gray-700);
}

html.dark .mobile-menu-btn {
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-mobile {
    display: none;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

html.dark .nav-mobile {
    background: rgba(11, 18, 32, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.nav-mobile.active {
    display: grid;
    gap: 0.75rem;
}

.nav-mobile .nav-link {
    display: block;
    padding: 0.5rem 0;
}

.nav-mobile .nav-buttons {
    margin-left: 0;
    margin-top: 0.5rem;
}

.nav-mobile .nav-buttons .btn {
    flex: 1;
}

.mobile-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
    color: var(--foreground);
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: inline-flex;
    }
    
    .theme-toggle:not(#theme-toggle-mobile) {
        display: none;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
}

html.dark .btn-primary {
    background: #3b82f6;
}

html.dark .btn-primary:hover {
    background: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.05);
    text-decoration: none;
}

html.dark .btn-outline {
    color: #60a5fa;
    border-color: #60a5fa;
}

html.dark .btn-outline:hover {
    background: rgba(96, 165, 250, 0.1);
}

.btn-white {
    background: #ffffff;
    color: #1d4ed8;
}

.btn-white:hover {
    background: var(--color-gray-100);
    text-decoration: none;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ========================================
   Hero Section (Original Design)
   ======================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 50% -200px, rgba(37, 99, 235, 0.18), transparent 60%), 
                linear-gradient(to bottom, #ffffff, #ffffff);
    padding: 3rem 1rem 4rem;
}

html.dark .hero {
    background: radial-gradient(1200px 600px at 50% -220px, rgba(37, 99, 235, 0.25), transparent 60%), 
                linear-gradient(to bottom, #0b1220, #0b1220);
}

.hero-glow {
    position: absolute;
    top: -112px;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.25);
    filter: blur(48px);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    top: 112px;
    right: -10%;
    width: 288px;
    height: 288px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.15);
    filter: blur(32px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 1152px;
    margin: 0 auto;
    text-align: center;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-logo-img {
    width: 112px;
    height: auto;
}

@media (min-width: 640px) {
    .hero-logo-img {
        width: 144px;
    }
    
    .hero {
        padding: 4rem 1rem 6rem;
    }
}

.hero h1 {
    font-size: clamp(1.875rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-gray-600);
    max-width: 768px;
    margin: 0 auto 1.5rem;
}

html.dark .hero-subtitle {
    color: var(--color-gray-300);
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 5rem 0;
}

.section h2 {
    margin-bottom: 1rem;
}

.section .lead {
    margin-bottom: 2.5rem;
}

.section-navy {
    background: #0f1e3a;
    color: #ffffff;
}

.section-navy h2 {
    color: #ffffff;
}

.section-blue {
    background: var(--color-primary);
    color: #ffffff;
}

.section-blue h2 {
    color: #ffffff;
}

.section-blue .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Problem Section & Bridge
   ======================================== */
.problem-section {
    padding-bottom: 2rem;
}

.solution-bridge {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bridge-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--pm-panel-border) 0%, var(--color-primary) 100%);
}

.bridge-text {
    font-size: 1.125rem;
    color: var(--color-primary);
    margin: 0;
}

html.dark .bridge-text {
    color: #60a5fa;
}

.bridge-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: bounce-down 1.5s ease-in-out infinite;
}

html.dark .bridge-arrow {
    color: #60a5fa;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ========================================
   Epic Priority Picker - Das Herzstück
   ======================================== */
.priority-section {
    padding: 3rem 0 6rem;
    background: linear-gradient(180deg, var(--background) 0%, var(--color-gray-50) 100%);
}

html.dark .priority-section {
    background: linear-gradient(180deg, #0b1220 0%, #0a0f1a 100%);
}

.priority-header {
    text-align: center;
    margin-bottom: 3rem;
}

.priority-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html.dark .priority-label {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.priority-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--color-gray-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.dark .priority-header h2 {
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.priority-header p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
}

html.dark .priority-header p {
    color: var(--color-gray-400);
}

/* Priority Picker Grid */
.priority-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .priority-picker {
        gap: 1.5rem;
    }
}

/* Priority Card */
.prio-card {
    position: relative;
    background: var(--pm-panel);
    border: 2px solid var(--pm-panel-border);
    border-radius: 1.25rem;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@media (min-width: 640px) {
    .prio-card {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }
}

.prio-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.prio-card[data-priority="schnell"] .prio-card-glow {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

.prio-card[data-priority="gut"] .prio-card-glow {
    background: radial-gradient(circle, rgba(5, 150, 105, 0.15) 0%, transparent 70%);
}

.prio-card[data-priority="guenstig"] .prio-card-glow {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

.prio-card:hover .prio-card-glow {
    opacity: 1;
}

.prio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

html.dark .prio-card:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.prio-card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Icon Wrapper */
.prio-icon-wrapper {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

@media (min-width: 640px) {
    .prio-icon-wrapper {
        width: 72px;
        height: 72px;
        border-radius: 1.25rem;
        margin-bottom: 1.25rem;
    }
}

.prio-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 640px) {
    .prio-icon-wrapper svg {
        width: 36px;
        height: 36px;
    }
}

.prio-schnell {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

html.dark .prio-schnell {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.3) 100%);
    color: #60a5fa;
}

.prio-gut {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

html.dark .prio-gut {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2) 0%, rgba(16, 185, 129, 0.3) 100%);
    color: #34d399;
}

.prio-guenstig {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

html.dark .prio-guenstig {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.3) 100%);
    color: #fbbf24;
}

.prio-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

@media (min-width: 640px) {
    .prio-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

.prio-card p {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    display: none;
}

@media (min-width: 640px) {
    .prio-card p {
        display: block;
        font-size: 0.9375rem;
    }
}

html.dark .prio-card p {
    color: var(--color-gray-400);
}

/* Badge - Klein in der Ecke */
.prio-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

@media (min-width: 640px) {
    .prio-badge {
        top: -8px;
        right: -8px;
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

.prio-card[data-priority="schnell"] .prio-badge { background: #2563eb; }
.prio-card[data-priority="gut"] .prio-badge { background: #059669; }
.prio-card[data-priority="guenstig"] .prio-badge { background: #d97706; }

/* Selected State */
.prio-card.selected {
    transform: translateY(-4px);
}

.prio-card.selected .prio-badge {
    opacity: 1;
    transform: scale(1);
}

.prio-card[data-priority="schnell"].selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 20px 40px -15px rgba(37, 99, 235, 0.3);
}

.prio-card[data-priority="gut"].selected {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15), 0 20px 40px -15px rgba(5, 150, 105, 0.3);
}

.prio-card[data-priority="guenstig"].selected {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15), 0 20px 40px -15px rgba(245, 158, 11, 0.3);
}

.prio-card.selected .prio-card-glow {
    opacity: 1;
}

.prio-card.selected .prio-icon-wrapper {
    transform: scale(1.1);
}

/* Selection Counter */
.priority-selection-info {
    text-align: center;
    margin-top: 2rem;
}

.selection-counter {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: 2rem;
    font-size: 0.9375rem;
    color: var(--color-gray-600);
}

html.dark .selection-counter {
    color: var(--color-gray-400);
}

/* Epic CTA Button */
.priority-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-epic {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.5);
}

.btn-epic:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(37, 99, 235, 0.6);
}

.btn-epic svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-epic:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Search Card & Form (Schritt 2)
   ======================================== */
.search-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

@media (min-width: 640px) {
    .search-card {
        padding: 2.5rem;
    }
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--color-gray-200);
    color: var(--color-gray-500);
}

.step.completed .step-number {
    background: #059669;
    color: white;
}

.step.active .step-number {
    background: var(--color-primary);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--foreground);
    font-weight: 500;
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--color-gray-200);
    margin-bottom: 1rem;
}

html.dark .step-number {
    background: var(--color-gray-700);
}

html.dark .step-line {
    background: var(--color-gray-700);
}

/* Search Header */
.search-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.search-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.selected-priorities-inline {
    display: flex;
    justify-content: center;
}

.selected-priorities-inline .priority-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Compact Form */
.form-compact {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .form-compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

.form-compact .form-group {
    margin-bottom: 0;
}

.form-compact label {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.optional {
    color: var(--color-gray-400);
    font-weight: 400;
}

/* Contact Details Accordion */
.contact-details {
    margin: 1rem 0;
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-details summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    background: var(--color-gray-50);
    list-style: none;
}

.contact-details summary::-webkit-details-marker {
    display: none;
}

.contact-details summary::before {
    content: '+ ';
    font-weight: 600;
}

.contact-details[open] summary::before {
    content: '− ';
}

.contact-details[open] summary {
    border-bottom: 1px solid var(--pm-panel-border);
}

html.dark .contact-details summary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-gray-400);
}

.contact-details > .form-compact {
    padding: 1rem;
    grid-template-columns: 1fr 1fr;
}

.contact-hint {
    padding: 0 1rem 1rem;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin: 0;
}

/* Search Form Button */
.search-form .btn-epic {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Search Results */
.search-results-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

html.dark .results-header {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
}

.results-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #059669;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.results-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.125rem;
}

.results-text p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin: 0;
}

html.dark .results-text p {
    color: var(--color-gray-400);
}

/* Provider Results */
.provider-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.provider-result-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    padding-right: 2.5rem;
    background: var(--color-gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--pm-panel-border);
    transition: all 0.2s;
}

.provider-result-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html.dark .provider-result-card {
    background: rgba(255, 255, 255, 0.03);
}

.provider-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.provider-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.provider-info {
    flex: 1;
    min-width: 0;
}

.provider-name {
    font-weight: 600;
    margin-bottom: 0.125rem;
    word-break: break-word;
}

.provider-category {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

.provider-scores {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Mobile: Stack layout */
@media (max-width: 480px) {
    .provider-result-card {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 2.5rem;
        position: relative;
    }
    
    .provider-card-header {
        width: 100%;
    }
    
    .provider-scores {
        margin-top: 0.75rem;
        justify-content: flex-start;
    }
    
    .provider-result-card::after {
        position: absolute;
        top: 1.25rem;
        right: 1rem;
        transform: rotate(90deg);
    }
    
    .provider-result-card.expanded::after {
        transform: rotate(-90deg);
    }
    
    .provider-details {
        width: 100%;
    }
    
    .provider-detail-row {
        flex-wrap: nowrap;
    }
    
    .provider-detail-row span:first-child {
        flex-shrink: 0;
    }
    
    .provider-select-btn {
        margin-top: 1rem;
    }
}

.score-badge-mini {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
}

.score-badge-mini.schnell { background: #2563eb; }
.score-badge-mini.gut { background: #059669; }
.score-badge-mini.guenstig { background: #d97706; }

/* Expandable Provider Card */
.provider-result-card {
    cursor: pointer;
    position: relative;
}

.provider-result-card::after {
    content: '›';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 1.25rem;
    color: var(--color-gray-400);
    transition: transform 0.2s;
}

.provider-result-card.expanded::after {
    transform: translateY(-50%) rotate(-90deg);
}

.provider-result-card.selected {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.05);
}

html.dark .provider-result-card.selected {
    background: rgba(37, 99, 235, 0.1);
}

.provider-details {
    display: none;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--pm-panel-border);
}

.provider-result-card.expanded .provider-details {
    display: block;
}

.provider-detail-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

html.dark .provider-detail-row {
    color: var(--color-gray-400);
}

.provider-detail-row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.provider-description {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-top: 0.75rem;
    line-height: 1.5;
}

html.dark .provider-description {
    color: var(--color-gray-400);
}

.provider-select-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Contact Form Container */
.contact-form-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

html.dark .contact-form-container {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.contact-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.contact-form-header h4 {
    margin: 0;
    font-size: 1rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-gray-500);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.btn-close:hover {
    color: var(--foreground);
}

.contact-form-body .form-group {
    margin-bottom: 1rem;
}

.form-row-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row-compact {
        grid-template-columns: 1fr;
    }
}

/* Inquiry Success */
.inquiry-success {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.inquiry-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #059669;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.inquiry-success h4 {
    margin-bottom: 0.5rem;
    color: #059669;
}

.inquiry-success p {
    color: var(--color-gray-600);
    margin: 0;
}

html.dark .inquiry-success p {
    color: var(--color-gray-400);
}

/* Results Contact Info */
.results-contact-info {
    padding: 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-contact-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

html.dark .results-contact-info {
    background: rgba(255, 255, 255, 0.05);
}

html.dark .results-contact-info p {
    color: var(--color-gray-400);
}

/* Results Actions */
.results-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pm-panel-border);
}

.results-actions .btn {
    min-width: 200px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--color-gray-500);
}

.no-results p {
    margin: 0 0 0.5rem;
}

.no-results .small {
    font-size: 0.875rem;
    color: var(--color-gray-400);
}

/* ========================================
   Form Card
   ======================================== */
.form-card {
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .form-card {
        padding: 2rem;
    }
}

.form-card h2 {
    text-align: center;
}

.form-card .subtitle {
    text-align: center;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

html.dark .form-card .subtitle {
    color: var(--color-gray-300);
}

.selected-priorities {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

html.dark .selected-priorities {
    background: rgba(255, 255, 255, 0.05);
}

.selected-priorities .label {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

html.dark .selected-priorities .label {
    color: var(--color-gray-400);
}

.priority-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.priority-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.priority-tag.schnell {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-schnell);
}

.priority-tag.gut {
    background: rgba(5, 150, 105, 0.1);
    color: var(--color-gut);
}

.priority-tag.guenstig {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-guenstig);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--background);
    color: var(--foreground);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========================================
   Feature Grid
   ======================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

html.dark .feature-card:hover {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.feature-card p {
    color: var(--color-gray-600);
    line-height: 1.6;
}

html.dark .feature-card p {
    color: var(--color-gray-300);
}

/* ========================================
   Stats Row
   ======================================== */
.stats-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .stats-row {
        flex-direction: row;
        justify-content: center;
    }
}

.stat-card {
    background: #ffffff;
    color: var(--color-gray-900);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 384px;
    text-align: center;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 1.125rem;
    color: var(--color-gray-700);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-400);
    padding: 3rem 0 1.5rem;
}

html.dark .footer {
    background: #050a14;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 24px;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #60a5fa;
}

.footer-links h5 {
    color: #ffffff;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
    text-align: center;
}

html.dark .alert-success {
    color: #34d399;
}

.alert-success h3 {
    color: #059669;
    margin-bottom: 0.5rem;
}

.alert-success .success-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

html.dark .alert-error {
    color: #f87171;
}

code {
    background: var(--color-gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
}

html.dark code {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Page Content (Subpages)
   ======================================== */
.page-content {
    padding: 4rem 0;
}

.page-header {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

/* Info Cards */
.info-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    margin-bottom: 0.75rem;
}

.info-card ul {
    margin-left: 1.25rem;
    color: var(--color-gray-700);
}

html.dark .info-card ul {
    color: var(--color-gray-300);
}

.info-card ul li {
    margin-bottom: 0.5rem;
}

.info-card-blue {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
}

.info-card-green {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Prio Cards (Prios erklärt page) */
.prio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.prio-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.prio-gut { border-top: 4px solid var(--color-gut); }
.prio-schnell { border-top: 4px solid var(--color-schnell); }
.prio-guenstig { border-top: 4px solid var(--color-guenstig); }

.prio-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.prio-card-header .prio-icon {
    width: 32px;
    height: 32px;
}

.prio-card-header .prio-icon svg {
    width: 100%;
    height: 100%;
}

.prio-gut .prio-icon { color: var(--color-gut); }
.prio-schnell .prio-icon { color: var(--color-schnell); }
.prio-guenstig .prio-icon { color: var(--color-guenstig); }

.prio-desc {
    color: var(--color-gray-700);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

html.dark .prio-desc {
    color: var(--color-gray-300);
}

.prio-features {
    list-style: none;
    margin-bottom: 1rem;
}

.prio-features li {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
}

html.dark .prio-features li {
    color: var(--color-gray-300);
}

.prio-criteria {
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
}

html.dark .prio-criteria {
    background: rgba(255, 255, 255, 0.05);
}

.prio-criteria h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.prio-criteria ul {
    list-style: none;
}

.prio-criteria li {
    font-size: 0.8125rem;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
}

html.dark .prio-criteria li {
    color: var(--color-gray-300);
}

.prio-hint {
    font-size: 0.8125rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
}

.prio-hint-customer {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.prio-hint-provider {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-card {
    position: relative;
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.pricing-card-featured {
    border: 2px solid var(--color-primary);
}

.pricing-card-wide {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .pricing-card-wide {
        max-width: 50%;
        margin: 0 auto;
    }
}

.pricing-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
}

.pricing-price {
    margin-bottom: 1rem;
}

.pricing-price .price {
    font-size: 2rem;
    font-weight: 800;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--color-gray-500);
}

.pricing-features {
    list-style: none;
    margin-bottom: 1rem;
}

.pricing-features li {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
}

html.dark .pricing-features li {
    color: var(--color-gray-300);
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
}

.pricing-tip {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-bottom: 1rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border-left: 4px solid var(--color-primary);
}

.benefit-card h4 {
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
}

html.dark .benefit-card p {
    color: var(--color-gray-300);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.step-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.step-card h4 {
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

html.dark .step-card p {
    color: var(--color-gray-300);
}

/* FAQ */
.faq-list {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--pm-panel-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--color-gray-500);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    color: var(--color-gray-600);
    font-size: 0.9375rem;
}

html.dark .faq-item p {
    color: var(--color-gray-300);
}

/* Add-ons Grid */
.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.addon-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border-left: 4px solid;
}

.addon-purple { border-left-color: #8b5cf6; }
.addon-blue { border-left-color: var(--color-primary); }
.addon-amber { border-left-color: var(--color-guenstig); }

.addon-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.addon-card p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

html.dark .addon-card p {
    color: var(--color-gray-300);
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Margin utilities */
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Score hint */
.score-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-top: 0.25rem;
}

html.dark .score-hint {
    color: var(--color-gray-400);
}

/* ========================================
   Dashboard & Auth Styles
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    padding: 2rem;
}

.auth-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-card .logo-link {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-card h1 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
}

html.dark .auth-tabs {
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab {
    flex: 1;
    padding: 0.625rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--pm-panel);
    color: var(--foreground);
    box-shadow: var(--shadow);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* Dashboard */
.dashboard-header {
    background: var(--pm-panel);
    border-bottom: 1px solid var(--pm-panel-border);
    padding: 0.75rem 0;
}

.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-content {
    padding: 2rem 0;
    min-height: calc(100vh - 60px);
    background: var(--background);
}

.page-title {
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.page-title p {
    color: var(--color-gray-600);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border-left: 4px solid var(--color-primary);
}

.stat-box.success { border-left-color: #10b981; }
.stat-box.warning { border-left-color: #f59e0b; }
.stat-box.error { border-left-color: #ef4444; }

.stat-box .label {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-bottom: 0.5rem;
}

.stat-box .value {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Tabs */
.tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--pm-panel);
    padding: 0.375rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--pm-panel-border);
}

.btn-delete-all {
    color: #dc2626;
    border-color: #dc2626;
}

.btn-delete-all:hover {
    background: #dc2626;
    color: white;
}

.btn-danger-outline {
    color: #dc2626;
    border-color: #dc2626;
}

.btn-danger-outline:hover {
    background: rgba(220, 38, 38, 0.1);
}

.tab-btn {
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.tab-btn:hover {
    background: var(--color-gray-100);
}

html.dark .tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--color-primary);
    color: #ffffff;
}

/* Lead Cards */
.leads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.lead-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    margin-bottom: 0.75rem;
}

.lead-description {
    background: var(--color-gray-100);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

html.dark .lead-description {
    background: rgba(255, 255, 255, 0.05);
}

.lead-actions {
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.new { background: #dbeafe; color: #1e40af; }
.status-badge.accepted { background: #d1fae5; color: #065f46; }
.status-badge.rejected { background: #fee2e2; color: #991b1b; }

/* Tables */
.table-container {
    overflow-x: auto;
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--pm-panel-border);
}

th {
    background: var(--color-gray-50);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-600);
}

html.dark th {
    background: rgba(255, 255, 255, 0.02);
}

td {
    font-size: 0.875rem;
}

/* Loading & Empty States */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--color-gray-500);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--pm-panel-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-gray-500);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Button Colors */
.btn-success {
    background: #10b981;
    color: #ffffff;
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-secondary {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

html.dark .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--foreground);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* ========================================
   Prio Scores Section (Dashboard)
   ======================================== */
.prio-scores-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.prio-scores-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.prio-scores-hint {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

html.dark .prio-scores-hint {
    color: var(--color-gray-400);
}

.prio-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.prio-score-card {
    background: var(--color-gray-50);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

html.dark .prio-score-card {
    background: rgba(255, 255, 255, 0.03);
}

.prio-score-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.prio-score-icon {
    width: 32px;
    height: 32px;
}

.prio-score-icon svg {
    width: 100%;
    height: 100%;
}

.prio-score-label {
    font-weight: 600;
    flex: 1;
}

.prio-toggle {
    position: relative;
    width: 40px;
    height: 22px;
}

.prio-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.prio-toggle .toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--color-gray-300);
    transition: all 0.2s;
    border-radius: 22px;
}

.prio-toggle .toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.2s;
    border-radius: 50%;
}

.prio-toggle input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

.prio-toggle input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

.prio-score-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.prio-score-value {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-top: 0.5rem;
}

.prio-score-value span {
    font-weight: 700;
    color: var(--foreground);
}

.prio-score-criteria {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.criterion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-gray-700);
}

html.dark .criterion {
    color: var(--color-gray-300);
}

.criterion.inactive {
    color: var(--color-gray-400);
}

html.dark .criterion.inactive {
    color: var(--color-gray-500);
}

.criterion-check {
    color: #10b981;
    font-weight: 700;
}

.criterion-x {
    color: #ef4444;
    font-weight: 700;
}

.prio-scores-note {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-top: 1rem;
    text-align: center;
}

/* ========================================
   Plan Info Bar
   ======================================== */
.plan-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.plan-info-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.plan-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-badge.plan-freemium { background: #e5e7eb; color: #374151; }
.plan-badge.plan-starter { background: #dbeafe; color: #1d4ed8; }
.plan-badge.plan-advanced { background: #d1fae5; color: #047857; }
.plan-badge.plan-pro { background: #fef3c7; color: #b45309; }
.plan-badge.plan-empire { background: #ede9fe; color: #6d28d9; }

.plan-detail {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

html.dark .plan-detail {
    color: var(--color-gray-400);
}

/* ========================================
   Profile Overview
   ======================================== */
.profile-overview {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.profile-overview-header h3 {
    margin: 0;
}

.profile-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .profile-overview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-label {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-value {
    font-weight: 600;
    color: var(--foreground);
}

.profile-prios {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.profile-prio-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-prio-tag.schnell { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.profile-prio-tag.gut { background: rgba(5, 150, 105, 0.1); color: #059669; }
.profile-prio-tag.guenstig { background: rgba(217, 119, 6, 0.1); color: #d97706; }

html.dark .profile-prio-tag.schnell { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
html.dark .profile-prio-tag.gut { background: rgba(5, 150, 105, 0.2); color: #34d399; }
html.dark .profile-prio-tag.guenstig { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }

/* Profile Edit Form */
.profile-edit-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pm-panel-border);
}

.profile-edit-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-edit-form .form-group {
    margin-bottom: 0;
}

.profile-edit-form .form-hint {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-top: 0.25rem;
}

.profile-edit-form .form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ========================================
   Criteria Section
   ======================================== */
.criteria-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.criteria-section h3 {
    margin-bottom: 0.5rem;
}

.criteria-hint {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

html.dark .criteria-hint {
    color: var(--color-gray-400);
}

.criteria-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--pm-panel-border);
    padding-bottom: 0.5rem;
}

.criteria-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.criteria-tab:hover {
    background: var(--color-gray-100);
}

.criteria-tab.active {
    background: var(--color-primary);
    color: white;
}

html.dark .criteria-tab {
    color: var(--color-gray-400);
}

html.dark .criteria-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

html.dark .criteria-tab.active {
    background: var(--color-primary);
    color: white;
}

.criteria-panel {
    display: none;
}

.criteria-panel.active {
    display: block;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.criteria-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.criteria-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.criteria-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.criteria-field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-gray-700);
}

html.dark .criteria-field label {
    color: var(--color-gray-300);
}

.criteria-field input[type="number"] {
    padding: 0.5rem;
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--background);
    color: var(--foreground);
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    accent-color: var(--color-primary);
}

.criteria-note {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin: 1rem 0;
}

/* ========================================
   Certificate Upload
   ======================================== */
.cert-upload-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--color-gray-50);
    border-radius: var(--radius);
}

html.dark .cert-upload-section {
    background: rgba(255, 255, 255, 0.03);
}

.cert-upload-section h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.cert-list {
    margin-top: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--background);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

/* ========================================
   Promotions Section
   ======================================== */
.promo-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--color-gray-50);
    border-radius: var(--radius);
}

html.dark .promo-section {
    background: rgba(255, 255, 255, 0.03);
}

.promo-section h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.promo-quick-add {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.promo-list {
    margin-bottom: 0.75rem;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.promo-name {
    flex: 1;
}

.promo-discount {
    font-weight: 700;
    color: var(--color-gut);
}

.promo-add-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.promo-add-form input {
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    background: var(--background);
    color: var(--foreground);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-gray-400);
    padding: 0.25rem;
    line-height: 1;
}

.btn-icon:hover {
    color: #ef4444;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.empty-text {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    font-style: italic;
}

/* Prio Score Card Active State */
.prio-score-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* ========================================
   Pricing Cards Ergänzungen
   ======================================== */
.pricing-card {
    overflow: hidden;
}

.pricing-card.current {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* ========================================
   Dashboard Header Layout
   ======================================== */
.dashboard-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.provider-name-large {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.back-to-home {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

@media (max-width: 640px) {
    .dashboard-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .provider-name-large {
        font-size: 1rem;
    }
    
    .back-to-home {
        order: 2;
    }
}

/* Current Plan Banner */
.current-plan-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-plan-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Addon Cards */
.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.addon-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.addon-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.addon-card p {
    font-size: 0.875rem;
    margin: 0;
}

.addon-purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6;
}

.addon-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.addon-amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

html.dark .addon-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    color: #c4b5fd;
}

html.dark .addon-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    color: #93c5fd;
}

html.dark .addon-amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    color: #fcd34d;
}

/* ========================================
   Lead Success / Provider List
   ======================================== */
.lead-success-container {
    text-align: center;
}

.success-header {
    margin-bottom: 2rem;
}

.success-header .success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.success-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #059669;
}

html.dark .success-header h3 {
    color: #34d399;
}

.matched-providers {
    text-align: left;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
}

html.dark .matched-providers {
    background: rgba(255, 255, 255, 0.03);
}

.matched-providers h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.provider-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.provider-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius);
}

.provider-rank {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.provider-info {
    flex: 1;
    min-width: 0;
}

.provider-name {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.provider-scores {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.prio-tag {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    text-transform: uppercase;
    font-weight: 600;
}

.prio-tag.prio-schnell {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.prio-tag.prio-gut {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.prio-tag.prio-guenstig {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.provider-score {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

.no-matches {
    text-align: center;
    color: var(--color-gray-500);
    padding: 1rem;
    font-style: italic;
}

.success-info {
    margin: 1.5rem 0;
    color: var(--color-gray-600);
}

html.dark .success-info {
    color: var(--color-gray-400);
}

.success-info .small {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-bottom: 1rem;
}

/* ========================================
   Quick Search Section
   ======================================== */
.section-search {
    background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--background) 100%);
}

html.dark .section-search {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, var(--background) 100%);
}

.quick-search-box {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1.5rem;
}

.search-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 150px;
}

.search-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
    margin-bottom: 0.375rem;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--background);
    color: var(--foreground);
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.search-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.search-tag-label {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.search-tag {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--pm-panel-border);
    border-radius: 9999px;
    background: transparent;
    font-size: 0.8125rem;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s;
}

.search-tag:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Search Results */
.search-results {
    max-width: 800px;
    margin: 2rem auto 0;
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-results-header h3 {
    font-size: 1rem;
    margin: 0;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-result-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow);
}

.search-result-card.expanded {
    border-color: var(--color-primary);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}

.result-main {
    flex: 1;
    min-width: 200px;
}

.result-name {
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.result-category {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.result-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

html.dark .result-meta {
    color: var(--color-gray-400);
}

.result-gewerk {
    background: var(--color-gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius);
}

html.dark .result-gewerk {
    background: rgba(255, 255, 255, 0.1);
}

.result-scores {
    display: flex;
    gap: 0.375rem;
}

.mini-score {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
}

.mini-score.schnell {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.mini-score.gut {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.mini-score.guenstig {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-gray-500);
}

.search-error {
    text-align: center;
    padding: 1rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius);
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--color-gray-500);
}

.no-results .small {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

/* Expand Icon */
.result-expand {
    color: var(--color-gray-400);
    transition: transform 0.2s;
}

.result-expand svg {
    transition: transform 0.2s;
}

/* Provider Details (Expanded) */
.result-details {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--pm-panel-border);
    margin-top: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item.detail-full {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
    font-weight: 600;
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--foreground);
}

.detail-link {
    color: var(--color-primary);
    text-decoration: none;
}

.detail-link:hover {
    text-decoration: underline;
}

.details-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pm-panel-border);
    display: flex;
    gap: 0.75rem;
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--pm-panel);
    border: 1px solid var(--pm-panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    max-width: 360px;
}

.toast.toast-success {
    border-left: 4px solid #10b981;
}

.toast.toast-error {
    border-left: 4px solid #ef4444;
}

.toast.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--foreground);
}

.toast-message {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    margin-top: 0.125rem;
}

html.dark .toast-message {
    color: var(--color-gray-400);
}

.toast-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--color-gray-400);
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--foreground);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast.hiding {
    animation: toastSlideOut 0.2s ease-in forwards;
}

@media (max-width: 480px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
    }
    
    .toast {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .search-row {
        flex-direction: column;
    }
    
    .search-field {
        width: 100%;
    }
    
    .btn-search {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   PWA Install Banner
   ======================================== */
.pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--pm-panel);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border: 1px solid var(--pm-panel-border);
}

.pwa-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pwa-banner.hidden {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.pwa-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.pwa-banner-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
}

.pwa-banner-arrow {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.pwa-banner-close {
    background: none;
    border: none;
    color: var(--color-gray-400);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.25rem;
}

.pwa-banner-close:hover {
    color: var(--foreground);
}

/* PWA Install Section (Footer) */
.pwa-install-section {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--pm-panel-border);
}

html.dark .pwa-install-section {
    background: rgba(255, 255, 255, 0.02);
}

.pwa-install-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pwa-install-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0 0 0.5rem;
}

.pwa-install-desc {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

html.dark .pwa-install-desc {
    color: var(--color-gray-400);
}

.pwa-install-stores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--color-gray-500);
}

.pwa-install-coming {
    color: var(--color-gray-500);
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 480px) {
    .pwa-banner {
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(100px);
        border-radius: var(--radius);
    }
    
    .pwa-banner.visible {
        transform: translateX(0) translateY(0);
    }
    
    .pwa-banner.hidden {
        transform: translateX(0) translateY(100px);
    }
}

/* ========================================
   Hero Video Background
   ======================================== */
.hero-video {
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
}

html.dark .hero-video-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-video .hero-content {
    position: relative;
    z-index: 1;
}

.hero-video h1,
.hero.hero-video h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero-video .hero-subtitle,
.hero.hero-video .hero-subtitle {
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

html.dark .hero-video h1,
html.dark .hero.hero-video h1 {
    color: #ffffff !important;
}

html.dark .hero-video .hero-subtitle,
html.dark .hero.hero-video .hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ========================================
   Video Showcase Section
   ======================================== */
.video-showcase {
    background: var(--color-gray-50);
    padding-bottom: 6rem;
}

html.dark .video-showcase {
    background: rgba(255, 255, 255, 0.02);
}

.video-showcase h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.video-showcase .lead {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

html.dark .video-showcase .lead {
    color: var(--color-gray-400);
}

.video-showcase-wrapper {
    position: relative;
    max-width: 900px;
    margin: 2rem auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-showcase-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.video-showcase-placeholder svg {
    opacity: 0.5;
}

.video-showcase-placeholder span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hide placeholder when video loads */
.showcase-video:not([src=""]) + .video-showcase-placeholder {
    display: none;
}

/* ========================================
   CTA Section (New Style)
   ======================================== */
.cta-section {
    background: var(--background);
}

.cta-card {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 1.5rem;
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cta-actions .btn-primary {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    font-weight: 700;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.cta-actions .btn-primary:hover {
    background: #ffffff !important;
    color: #1e40af !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-actions .btn-outline {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    background: transparent !important;
}

.cta-actions .btn-outline:hover {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
    }
    
    .cta-content p {
        max-width: none;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}
