/* ========================================
   HAUSVERWALTUNG DOLL - MAIN STYLESHEET
   Premium Design mit CI-Farbe #2a50db
   Überschreibt Tailwind CSS mit Custom Colors
   ======================================== */

/* ========================================
   COLOR OVERRIDES FÜR TAILWIND
   ======================================== */

/* Primary Color (Blau #2a50db) Overrides */
.bg-primary-50 { background-color: #eff6ff !important; }
.bg-primary-100 { background-color: #dbeafe !important; }
.bg-primary-400 { background-color: #60a5fa !important; }
.bg-primary-500 { background-color: #2a50db !important; }
.bg-primary-600 { background-color: #2442be !important; }
.bg-primary-700 { background-color: #1e3a9e !important; }
.bg-primary-800 { background-color: #1a3282 !important; }
.bg-primary-900 { background-color: #172a6b !important; }

.text-primary-400 { color: #60a5fa !important; }
.text-primary-500 { color: #2a50db !important; }
.text-primary-600 { color: #2a50db !important; }
.text-primary-700 { color: #1e3a9e !important; }

.border-primary-100 { border-color: #dbeafe !important; }
.border-primary-500 { border-color: #2a50db !important; }
.border-primary-600 { border-color: #2442be !important; }

/* Accent Color (Gold) Overrides */
.bg-accent-400 { background-color: #fbbf24 !important; }
.bg-accent-500 { background-color: #f59e0b !important; }
.bg-accent-600 { background-color: #d97706 !important; }

.text-accent-400 { color: #fbbf24 !important; }
.text-accent-500 { color: #f59e0b !important; }
.text-accent-600 { color: #d97706 !important; }

/* Focus States */
.focus\:border-primary-500:focus { border-color: #2a50db !important; }
.focus\:ring-primary-500:focus { --tw-ring-color: #2a50db !important; }

/* Hover States */
.hover\:text-primary-400:hover { color: #60a5fa !important; }
.hover\:text-primary-600:hover { color: #2a50db !important; }
.hover\:bg-primary-50:hover { background-color: #eff6ff !important; }

/* Gradients */
.bg-gradient-to-r.from-primary-600 {
    background-image: linear-gradient(to right, #2442be, #2a50db) !important;
}

.bg-gradient-to-r.from-primary-600.to-primary-500 {
    background-image: linear-gradient(to right, #2442be, #2a50db) !important;
}

.bg-gradient-to-r.from-primary-600.via-primary-500 {
    background-image: linear-gradient(to right, #2442be, #2a50db, #2442be) !important;
}

.bg-gradient-to-br.from-primary-500 {
    background-image: linear-gradient(to bottom right, #2a50db, #2442be, #1e3a9e) !important;
}

.bg-gradient-to-br.from-primary-400 {
    background-image: linear-gradient(to bottom right, #60a5fa, #2a50db) !important;
}

.bg-gradient-to-br.from-accent-500 {
    background-image: linear-gradient(to bottom right, #f59e0b, #d97706) !important;
}

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.6;
}

.font-display {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-feature-settings: 'ss01', 'ss02';
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-feature-settings: 'ss01', 'ss02';
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

@media (min-width: 1024px) {
    h1 {
        font-size: 4.5rem;
    }
    h2 {
        font-size: 3.75rem;
    }
    h3 {
        font-size: 2.5rem;
    }
}

/* ========================================
   COLOR VARIABLES
   ======================================== */

:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #2a50db;
    --primary-600: #2442be;
    --primary-700: #1e3a9e;
    --primary-800: #1a3282;
    --primary-900: #172a6b;

    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --accent-600: #d97706;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400), var(--accent-500));
    z-index: 9999;
    transform-origin: left;
    width: 0;
}

/* ========================================
   NAVIGATION
   ======================================== */

nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    transition: all 0.5s;
}

nav .nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(42, 80, 219, 0.1);
}

.shadow-premium {
    box-shadow:
        0 1px 2px 0 rgba(0, 0, 0, 0.05),
        0 10px 30px -5px rgba(42, 80, 219, 0.15),
        0 15px 40px -10px rgba(42, 80, 219, 0.1);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s;
}

.logo:hover {
    transform: translateY(-4px);
}

.logo-icon {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(to bottom right, var(--primary-500), var(--primary-600), var(--primary-700));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -5px rgba(42, 80, 219, 0.15);
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), transparent);
}

.logo-icon span {
    position: relative;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.logo-text h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--gray-900);
    letter-spacing: -0.025em;
    line-height: 1;
    margin: 0;
}

.logo-text p {
    font-size: 0.625rem;
    color: var(--primary-600);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

/* Desktop Menu */
.nav-menu {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-500), var(--primary-600));
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 1rem;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(to right, var(--primary-600), var(--primary-500));
    color: white;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 10px 30px -5px rgba(42, 80, 219, 0.15);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px -10px rgba(42, 80, 219, 0.25);
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.nav-cta:hover::before {
    left: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    padding: 0.625rem;
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: var(--primary-50);
    transform: translateY(-4px);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: var(--gray-700);
}

/* Mobile Menu */
.mobile-menu {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    border-top: 1px solid rgba(42, 80, 219, 0.1);
    padding: 1rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.mobile-menu a:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

.mobile-menu .mobile-cta {
    background: linear-gradient(to right, var(--primary-600), var(--primary-500));
    color: white;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 10px 30px -5px rgba(42, 80, 219, 0.15);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background-color: var(--primary-500);
    background-image:
        radial-gradient(at 40% 20%, rgba(42, 80, 219, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(96, 165, 250, 0.3) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(245, 158, 11, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(42, 80, 219, 0.3) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(96, 165, 250, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(42, 80, 219, 0.3) 0px, transparent 50%);
}

/* Animated Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: blob 20s infinite;
}

.blob-1 {
    width: 384px;
    height: 384px;
    background: var(--primary-400);
    top: 80px;
    left: 40px;
}

.blob-2 {
    width: 320px;
    height: 320px;
    background: var(--accent-400);
    top: 160px;
    right: 80px;
    animation-delay: 2s;
}

.blob-3 {
    width: 288px;
    height: 288px;
    background: var(--primary-500);
    bottom: 80px;
    left: 33%;
    animation-delay: 4s;
}

@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -50px) scale(1.1); }
    50% { transform: translate(-20px, -20px) scale(0.9); }
    75% { transform: translate(50px, 20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

.hero-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

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

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-400);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title .block {
    display: block;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-title .accent {
    color: var(--accent-400);
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 42rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-700);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 9999px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.5);
}

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

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

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 9999px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1.4;
}

.stat-stars {
    display: flex;
    justify-content: center;
    gap: 0.125rem;
    color: var(--accent-400);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Visual Cards */
.hero-visual {
    display: none;
    position: relative;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: block;
    }
}

.floating-cards {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.floating-card:last-child {
    transform: translateX(3rem);
    margin-bottom: 0;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon.accent {
    background: var(--accent-400);
}

.card-icon.white {
    background: white;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.card-icon.accent svg {
    color: white;
}

.card-icon.white svg {
    color: var(--primary-600);
}

.card-text {
    color: white;
}

.card-title {
    font-weight: 900;
    font-size: 1.125rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-500), var(--primary-400));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-600), var(--primary-500));
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 1023px) {
    .lg-hidden {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg-block {
        display: block;
    }
    .lg-hidden {
        display: none !important;
    }
}
