/**
 * ============================================================================
 * ERGO Movement - Custom Styles
 * ============================================================================
 * 
 * Project:          ERGO Movement - Ergotherapie Am Leipziger Platz
 * File Location:    /assets/css/style.css
 * File Name:        style.css
 * Functions:        - Custom styling overrides
 *                   - Brand colors
 *                   - Component customization
 *                   - Responsive adjustments
 * 
 * Version:          v1.0.0
 * Generated:        2024-12-07
 * Last Modified:    2024-12-07
 * Framework:        Bootstrap 5.3.2
 * 
 * ============================================================================
 * CHANGE HISTORY
 * ============================================================================
 * v1.0.0 - 2024-12-07
 *   + Initial creation
 *   + Brand color scheme
 *   + Navigation styling
 *   + Component customization
 * 
 * ============================================================================
 */

/* ============================================================================
 * ROOT VARIABLES / BRAND COLORS
 * ============================================================================ */

:root {
    /* Primary Brand Colors */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c3aed;
    
    /* Secondary Colors */
    --secondary-color: #764ba2;
    --secondary-dark: #6b46c1;
    --secondary-light: #9333ea;
    
    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
 * GLOBAL STYLES
 * ============================================================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #ffffff;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

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

.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Mobile navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        margin-top: 1rem;
    }
}

/* ============================================================================
 * BUTTONS
 * ============================================================================ */

.btn {
    font-weight: 500;
    border-radius: var(--radius-lg);
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================================================
 * CARDS
 * ============================================================================ */

.card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    object-fit: cover;
    height: 200px;
}

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

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* ============================================================================
 * FEATURES
 * ============================================================================ */

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    margin: 0 auto;
}

/* ============================================================================
 * FOOTER
 * ============================================================================ */

footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* ============================================================================
 * FORMS
 * ============================================================================ */

.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* ============================================================================
 * ALERTS
 * ============================================================================ */

.alert {
    border-radius: var(--radius-lg);
    border: none;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

/* ============================================================================
 * BADGES
 * ============================================================================ */

.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
}

/* ============================================================================
 * ANIMATIONS
 * ============================================================================ */

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease forwards;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

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

@media (max-width: 767.98px) {
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2rem; }
    .display-3 { font-size: 1.75rem; }
    .display-4 { font-size: 1.5rem; }
    .display-5 { font-size: 1.25rem; }
    .display-6 { font-size: 1rem; }
    
    .hero-section {
        padding: 40px 0;
    }
}

/* ============================================================================
 * LOADING STATES
 * ============================================================================ */

.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.25rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

/* ============================================================================
 * ACCESSIBILITY
 * ============================================================================ */

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: var(--primary-color);
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
