:root {
    --primary-color: #0088cc;
    /* Snow sports blue */
    --hover-color: #005f8f;
    --text-color: #f0f0f0;
    --bg-overlay: rgba(15, 23, 42, 0.65);
    /* Dark slate overlay */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #1a1a1a;
    /* Action-packed Ski Photo from Unsplash (free license) */
    background-image: url('https://images.unsplash.com/photo-1551698618-1dfe5d97d256?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    /* Smooth rendering */
    -webkit-font-smoothing: antialiased;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to make text pop while keeping the snowy vibe */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(0, 136, 204, 0.3) 100%);
    z-index: -1;
}

/* Header */
.header {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.logo-text {
    font-size: 1.8vw;
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    z-index: 10;
    gap: 3rem;
}

.hero {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title span {
    color: var(--primary-color);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: #cbd5e1;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* Tiles Section */
.tiles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    animation: zoomIn 0.8s ease-out 0.6s backwards;
}

.app-tile {
    width: 100%;
    max-width: 340px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.app-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.app-tile:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 136, 204, 0.3);
}

.app-tile:hover::before {
    left: 200%;
}

.tile-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}

.app-tile:hover .tile-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.tile-icon {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

.tile-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.tile-desc {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tile-action {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-tile:hover .tile-action {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.footer-links .divider {
    width: 1px;
    height: 15px;
    background: var(--glass-border);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Content Pages (Impressum, Datenschutz) */
.content-page {
    justify-content: flex-start;
    padding-top: 4rem;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 3rem 4rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    text-align: left;
}

.text-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.text-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.text-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.text-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.text-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 2rem;
    }
}