/* ========================================
   Modern CSS Reset & Base Styles
   ======================================== */

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

:root {
    --primary-color: #6e00ff;
    --secondary-color: #00d4ff;
    --dark-bg: #0a0a0a;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    overflow-x: hidden;
}

/* ========================================
   Loading Screen
   ======================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Canvas Background */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Dosis', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3),
                 0 0 60px rgba(110, 0, 255, 0.2);
}

.hero-subtitle {
    font-family: 'Dosis', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-copyright {
    font-size: 0.9rem;
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

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

/* Vienna Time & Date */
.vienna-time {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 4;
    text-align: left;
    animation: fadeInUp 1s ease-out 1s both;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(110, 0, 255, 0.3);
    min-width: 180px;
}

.time-location {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.time-display {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(110, 0, 255, 0.5);
    margin-bottom: 4px;
    min-width: 120px;
    display: inline-block;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.date-display {
    font-size: 0.85rem;
    color: rgba(0, 212, 255, 0.8);
    letter-spacing: 0.05em;
    min-width: 160px;
    display: inline-block;
    text-align: left;
}

/* Kottingbrunn Weather Widget */
.weather-widget {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 4;
    text-align: left;
    animation: fadeInUp 1s ease-out 1.2s both;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.weather-location {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.weather-main {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.weather-temp {
    font-family: 'Courier New', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    margin-bottom: 4px;
}

.weather-desc {
    font-size: 0.9rem;
    color: rgba(0, 212, 255, 0.95);
    letter-spacing: 0.05em;
    text-transform: capitalize;
    font-weight: 400;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.3s ease;
}

.weather-detail-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.detail-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.detail-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.detail-value {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ========================================
   Impressum Section
   ======================================== */

.impressum-section {
    min-height: 100vh;
    padding: 80px 20px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
    position: relative;
}

.impressum-title {
    font-family: 'Dosis', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.impressum-content {
    max-width: 900px;
    margin: 0 auto;
}

.impressum-box {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(110, 0, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.impressum-box h3 {
    font-family: 'Dosis', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.impressum-box h4 {
    font-family: 'Dosis', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(0, 212, 255, 0.9);
    margin-top: 30px;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.impressum-data,
.impressum-contact,
.impressum-disclaimer,
.impressum-copyright {
    margin-bottom: 30px;
}

.impressum-box p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.impressum-box strong {
    color: rgba(0, 212, 255, 0.95);
    font-weight: 600;
}

.impressum-box a {
    color: rgba(0, 212, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.impressum-box a:hover {
    color: #ffffff;
    border-bottom-color: rgba(0, 212, 255, 0.6);
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.6s ease, opacity 0.4s ease, right 0.6s ease, left 0.6s ease, transform 0.6s ease;
    padding: 0;
    background: none;
    border: none;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%) translateY(-3px);
    gap: 6px;
}

.scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.scroll-indicator:hover span {
    font-size: 0.75rem;
    opacity: 1;
}

.scroll-indicator svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.scroll-indicator:hover svg {
    width: 20px;
    height: 20px;
    opacity: 1;
    animation: bounce-arrow 1s ease-in-out infinite;
}

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

/* Hide scroll indicator when in impressum section */
.scroll-indicator.hidden {
    opacity: 0;
    right: -100px;
    left: auto;
    transform: translateX(0);
    pointer-events: none;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 12vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.5rem);
    }
    
    .vienna-time {
        bottom: 20px;
        left: 20px;
        padding: 12px 16px;
        min-width: 160px;
    }
    
    .time-display {
        font-size: 1.3rem;
        min-width: 110px;
    }
    
    .date-display {
        min-width: 150px;
    }
    
    .weather-widget {
        bottom: 20px;
        right: 20px;
        padding: 15px 18px;
        min-width: 260px;
    }
    
    .weather-temp {
        font-size: 1.9rem;
    }
    
    .weather-desc {
        font-size: 0.85rem;
    }
    
    .weather-details {
        gap: 8px;
    }
    
    .weather-detail-item {
        padding: 6px;
    }
    
    .detail-icon {
        font-size: 1rem;
    }
    
    .detail-label {
        font-size: 0.6rem;
    }
    
    .detail-value {
        font-size: 0.8rem;
    }
    
    .impressum-section {
        padding: 60px 20px;
    }
    
    .impressum-box {
        padding: 30px;
    }
    
    .impressum-box h3 {
        font-size: 0.75rem;
    }
    
    .impressum-box h4 {
        font-size: 1.1rem;
    }
    
    .impressum-box p {
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 35px;
    }
}

@media (max-width: 480px) {
    .loader-logo {
        max-width: 150px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .vienna-time {
        bottom: 15px;
        left: 15px;
        padding: 10px 14px;
        min-width: 140px;
    }
    
    .time-location {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }
    
    .time-display {
        font-size: 1.1rem;
        min-width: 100px;
    }
    
    .date-display {
        font-size: 0.75rem;
        min-width: 130px;
    }
    
    .weather-widget {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        min-width: 240px;
    }
    
    .weather-location {
        font-size: 0.6rem;
        margin-bottom: 8px;
    }
    
    .weather-main {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .weather-temp {
        font-size: 1.7rem;
    }
    
    .weather-desc {
        font-size: 0.8rem;
    }
    
    .weather-details {
        gap: 6px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .weather-detail-item {
        padding: 6px;
    }
    
    .detail-icon {
        font-size: 0.9rem;
    }
    
    .detail-label {
        font-size: 0.55rem;
    }
    
    .detail-value {
        font-size: 0.75rem;
    }
    
    .impressum-section {
        padding: 50px 15px;
    }
    
    .impressum-box {
        padding: 20px;
    }
    
    .impressum-box h3 {
        font-size: 0.7rem;
    }
    
    .impressum-box h4 {
        font-size: 1rem;
        margin-top: 20px;
    }
    
    .impressum-box p {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    .scroll-indicator {
        bottom: 25px;
    }
    
    .scroll-indicator span {
        font-size: 0.6rem;
    }
    
    .scroll-indicator:hover span {
        font-size: 0.65rem;
    }
    
    .scroll-indicator svg {
        width: 14px;
        height: 14px;
    }
    
    .scroll-indicator:hover svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   Accessibility & Performance
   ======================================== */

@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;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .loader {
        display: none;
    }
}

