/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

/* Landing page specific - prevent scroll */
.container {
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

/* Content area */
.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Logo container */
.logo-container {
    text-align: center;
    animation: logoEntrance 2s cubic-bezier(0.19, 1, 0.22, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.logo-container.no-animation {
    animation: none;
}

.logo {
    max-width: 100%;
    height: auto;
    width: clamp(300px, 50vw, 600px);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    animation: logoFloat 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateY(90deg);
        filter: blur(10px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotateY(-5deg);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
        filter: blur(0);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    }
    25% {
        transform: translateY(-10px) rotateX(-2deg);
        filter: drop-shadow(0 30px 50px rgba(0,0,0,0.2));
    }
    75% {
        transform: translateY(5px) rotateX(2deg);
        filter: drop-shadow(0 15px 35px rgba(0,0,0,0.12));
    }
}

/* Footer */
.footer {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.impressum-link {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.impressum-link:hover {
    opacity: 1;
    color: #333;
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

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

/* Floating particles animation */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        width: clamp(450px, 90vw, 650px);
    }
    
    .footer {
        bottom: 1rem;
        right: 1rem;
    }
    
    .impressum-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: clamp(350px, 95vw, 450px);
    }
    
    .logo-container {
        padding: 0 0.5rem;
    }
    
    .footer {
        bottom: 0.5rem;
        right: 0.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .impressum-link {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid #333;
        color: #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .logo {
        animation: none;
    }
    
    .logo:hover {
        transform: none;
    }
    
    .container::before {
        animation: none;
    }
    
    .impressum-link {
        transition: none;
    }
}

/* ===========================================
   IMPRESSUM PAGE STYLES
   =========================================== */

/* Impressum page specific styles */
.impressum-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.impressum-header {
    max-width: 800px;
    margin: 0 auto 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
    transform: translateX(-2px);
}

.impressum-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: fadeInUp 0.8s ease-out;
}

.impressum-content section {
    margin-bottom: 2.5rem;
}

.impressum-content section:last-child {
    margin-bottom: 0;
}

.impressum-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(79, 70, 229, 0.2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.impressum-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.info-group {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-group p {
    margin: 0;
    line-height: 1.6;
    color: #4a5568;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.info-group strong {
    color: #2d3748;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.info-group a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-group a:hover {
    color: #3730a3;
    text-decoration: underline;
}

.impressum-footer {
    max-width: 800px;
    margin: 2rem auto 0;
    width: 100%;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
    transform: translateY(-2px);
}

/* Impressum responsive design */
@media (max-width: 768px) {
    .impressum-container {
        padding: 1rem;
    }
    
    .impressum-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .impressum-header h1 {
        font-size: 1.5rem;
    }
    
    .impressum-content {
        padding: 1.5rem;
    }
    
    .impressum-content h2 {
        font-size: 1.3rem;
    }
    
    .back-link,
    .home-link {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .impressum-container {
        padding: 0.5rem;
    }
    
    .impressum-content {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .info-group {
        padding: 0.75rem;
    }
    
    .impressum-header h1 {
        font-size: 1.3rem;
    }
}

/* Print styles for impressum */
@media print {
    .impressum-container {
        background: white;
        padding: 1rem;
    }
    
    .impressum-header,
    .impressum-footer {
        display: none;
    }
    
    .impressum-content {
        background: white;
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .info-group {
        background: transparent;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Accessibility improvements for impressum */
@media (prefers-contrast: high) {
    .impressum-content,
    .info-group {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid #333;
    }
    
    .back-link,
    .home-link {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid #333;
        color: #333;
    }
}

@media (prefers-reduced-motion: reduce) {
    .impressum-content {
        animation: none;
    }
    
    .back-link,
    .home-link {
        transition: none;
    }
    
    .back-link:hover,
    .home-link:hover {
        transform: none;
    }
}