* {
    box-sizing: border-box;
}

body {
    width: 80%;
    margin: 0 auto;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    /* Ein tiefer, winterlicher Mesh-Gradient */
    background-color: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.5) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(88, 28, 135, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 23, 42, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(17, 94, 89, 0.3) 0px, transparent 50%);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Hinter den Text legen */
    pointer-events: none;
}

header {
    text-align: center;
    padding: 60px 20px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 40px 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Die klickbare Karte */
.gallery-item {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* Glas-Effekt */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.15);
}

.image-wrapper {
    height: 220px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .image-wrapper img {
    transform: scale(1.1) rotate(2deg);
}
/* Ein kleiner Lichtstreifen-Effekt */
.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.7s;
}

.gallery-item:hover .image-wrapper::after {
    left: 125%;
}

.gallery-content {
    padding: 20px;
}

.gallery-content h3 {
    margin: 0;
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-content h3 {
    color: #00d2ff;
    transform: translateX(5px); /* Kleiner Ruck nach rechts */
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}
footer {
    margin-top: 50px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05); /* Sehr transparent */
    backdrop-filter: blur(15px); /* Starker Weichzeichner */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 10; /* Über den Schneeflocken */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #00d2ff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-shadow: 0 0 8px #00d2ff;
}

.social-icons {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 780px) {
    .logo {
        height: 65px;
        top: 15px;
        position: fixed;
        left: 230px
    }
}
@media (max-width: 779px) {
    .logo {
        top: 10px;
        width: 100%;
    }
}

.legal-container {
    max-width: 800px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.legal-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.legal-card h2 {
    color: #00d2ff;
    margin-top: 30px;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    padding-bottom: 5px;
}

.legal-card p {
    margin-bottom: 20px;
}

/* Fix für das Logo im Header (falls du es im CSS noch nicht hattest) */
.logo {
    height: 70px;
    position: relative;
    top: 100px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(4);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #00d2ff;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: #00d2ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.contact-info {
    margin-top: 25px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-info a {
    color: #00d2ff;
    text-decoration: none;
}