/* =============================
   RESET & GRUNDSTIL
============================= */
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
}
a { color:#fff; text-decoration:none; transition:color 0.3s; }
a:hover { color:#ff4d4d; }

/* =============================
   STICKY HEADER – modern & transparent
============================= */
.sticky-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: rgba(20,20,20,0.4);          /* noch transparenter */
    backdrop-filter: blur(15px) saturate(150%); /* starker Glass-Effekt */
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    border-radius: 0 0 15px 15px;
    transition: all 0.3s ease;
    z-index: 1000;
}
.sticky-header:hover {
    background: rgba(20,20,20,0.55);
    box-shadow: 0 8px 25px rgba(255,77,77,0.3);
}
.sticky-header .logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s;
}
.sticky-header .logo h1:hover {
    transform: scale(1.07);
    color: #ff4d4d;
    text-shadow: 0 3px 15px rgba(255,77,77,0.7);
}
.sticky-header nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.sticky-header nav ul li a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s;
}
.sticky-header nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #ff4d4d;
    transition: width 0.3s;
}
.sticky-header nav ul li a:hover::after { width: 100%; }
.sticky-header nav ul li a:hover { color: #ff4d4d; }

/* =============================
   HERO-BEREICH
============================= */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-bg-layer {
    position:absolute; top:0; left:0;
    width:100%; height:100%;
    background-image: url('images/header.png');
    background-size: cover;
    background-position: center center;
    transform: scale(1.1);
    animation: parallaxLayer 25s linear infinite alternate;
    z-index:1;
    filter: brightness(0.85);
}
.hero-overlay {
    position:absolute; top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.3);
    z-index:2;
}
.hero-text {
    position: relative;
    text-align: center;
    color:#fff;
    z-index:3;
    max-width:90%;
    animation: fadeInUp 1.5s ease forwards;
}
.hero-text h2 {
    font-size:3.2rem;
    margin-bottom:1rem;
    text-shadow:0 3px 15px rgba(0,0,0,0.7);
}
.hero-text p {
    font-size:1.4rem;
    text-shadow:0 2px 8px rgba(0,0,0,0.7);
}
@keyframes parallaxLayer {
    0% { transform: translateY(0px) scale(1.1); }
    50% { transform: translateY(-20px) scale(1.1); }
    100% { transform: translateY(0px) scale(1.1); }
}
@keyframes fadeInUp {
    0% { opacity:0; transform: translateY(30px); }
    100% { opacity:1; transform: translateY(0); }
}

/* =============================
   SECTIONS
============================= */
.section { padding:5rem 2rem; max-width:1200px; margin:0 auto; }
.section h2 {
    font-size:2.2rem; margin-bottom:2rem; position:relative;
}
.section h2::after {
    content:""; display:block; width:50px; height:3px; background:#ff4d4d; margin-top:5px;
}

/* =============================
   KACHELN / TILES
============================= */
.tile-container {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap:2rem;
}
.tile {
    background: linear-gradient(145deg,#1f1f1f,#282828);
    border-radius:20px;
    padding:2rem;
    text-align:center;
    cursor:pointer;
    box-shadow:0 5px 20px rgba(0,0,0,0.5);
    transition: transform 0.4s, box-shadow 0.4s, background 0.4s;
    position: relative;
    overflow: hidden;
}
.tile::before {
    content:"";
    position:absolute; top:0; left:-100%;
    width:100%; height:100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
    transform: skewX(-25deg);
    transition: all 0.5s;
}
.tile:hover::before { left:200%; }
.tile:hover { transform: translateY(-10px) scale(1.03); box-shadow:0 15px 30px rgba(255,77,77,0.5); }
.tile h3 { margin-bottom:1rem; }
.badge {
    display:inline-block;
    margin-top:10px;
    padding:5px 10px;
    font-size:0.8rem;
    background:#ff4d4d;
    border-radius:20px;
}

/* =============================
   MODAL
============================= */
.modal {
    display:none; position:fixed; z-index:2000; left:0; top:0;
    width:100%; height:100%; overflow:auto;
    background: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}
.modal-content {
    background-color:#1c1c1c; margin:10% auto; padding:2rem;
    border-radius:20px; width:90%; max-width:700px;
    position:relative; color:#fff; transform: translateY(-20px);
    animation: slideIn 0.3s ease forwards;
}
.modal-close { position:absolute; top:15px; right:25px; font-size:2rem; cursor:pointer; }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes slideIn { from {transform:translateY(-30px);opacity:0;} to {transform:translateY(0);opacity:1;} }

/* =============================
   FOOTER
============================= */
footer { text-align:center; padding:2rem; background:#111; color:#888; font-size:0.9rem; }

/* =============================
   RESPONSIVE
============================= */
@media (max-width:768px){
    .sticky-header{ flex-direction:column; align-items:flex-start;}
    .sticky-header nav ul{ flex-direction:column; gap:1rem; margin-top:1rem; }
    .hero-text h2{ font-size:2.6rem;}
    .hero-text p{ font-size:1.1rem;}
    .tile-container{ grid-template-columns:1fr;}
}
@media (max-width:480px){
    .hero{ height:60vh;}
    .hero-text h2{ font-size:2rem;}
    .hero-text p{ font-size:1rem;}
}
