/* Styles CSS pour les Pages Légales avec Tailwind CSS */

/* Import Tailwind CSS */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Variables CSS personnalisées */
:root {
    --primary-color: #0066cc;
    --primary-light: #4d94ff;
    --primary-dark: #003366;
    --secondary-color: #28a745;
    --accent-color: #FFD700;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --background-light: #f8f9fa;
    --border-radius: 12px;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Header styles */
.legal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.legal-header .container {
    position: relative;
    z-index: 2;
}

.legal-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.legal-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Navigation breadcrumb */
.breadcrumb {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: var(--shadow-light);
}

.breadcrumb-item {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Main content */
.legal-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin: 2rem auto 4rem; /* Adjusted top margin from -3rem to 2rem */
    position: relative;
    z-index: 3;
    overflow: hidden;
}

/* Additional margin for Kontakt and Impressum pages */
.legal-content.kontakt,
.legal-content.impressum {
    margin-top: 4rem; /* Increase top margin */
}

/* Header margin adjustment */
.legal-header {
    padding-top: 6rem; /* Increase top padding */
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
}

/* Typography */
.legal-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.legal-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.legal-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.legal-content h4 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Contact form styles */
.contact-form {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

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

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Info boxes */
.info-box {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.success-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Team member cards */
.team-member {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Contact info cards */
.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Footer */
.legal-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.legal-footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.legal-footer a {
    color: #93c5fd;
    text-decoration: none;
    transition: var(--transition);
}

.legal-footer a:hover {
    color: white;
}

.legal-footer .footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Responsive design */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-header p {
        font-size: 1.1rem;
    }
    
    .legal-content {
        margin: -2rem 1rem 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .team-member,
    .contact-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .legal-header {
        padding: 3rem 0 4rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-content {
        margin: -1.5rem 0.5rem 1.5rem;
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .legal-header,
    .breadcrumb,
    .legal-footer {
        display: none;
    }
    
    .legal-content {
        box-shadow: none;
        margin: 0;
    }
    
    body {
        background: white;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f1f5f9;
        --text-light: #94a3b8;
        --background-light: #1e293b;
    }
    
    body {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: var(--text-dark);
    }
    
    .legal-content {
        background: #2d3748;
        color: var(--text-dark);
    }
    
    .contact-form {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        background: #4a5568;
        border-color: #718096;
        color: var(--text-dark);
    }
}

