/* =============================
   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);
    backdrop-filter: blur(15px) saturate(150%);
    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;
}

.sticky-header .logo h1:hover {
    transform: scale(1.07);
    color: #ff4d4d;
}

.sticky-header nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.sticky-header nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 0.3rem 0;
}

.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%;
}

/* =============================
   HERO
============================= */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bg-layer {
    position:absolute;
    width:100%;
    height:100%;
    background-image: url('images/header.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: parallaxLayer 25s linear infinite alternate;
    z-index:1;
    filter: brightness(0.85);
}

.hero-overlay {
    position:absolute;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.3);
    z-index:2;
}

.hero-text {
    position: relative;
    text-align: center;
    z-index:3;
    color:#fff;
}

.hero-text h2 {
    font-size:3.2rem;
    margin-bottom:1rem;
}

.hero-text p {
    font-size:1.4rem;
}

@keyframes parallaxLayer {
    0% { transform: translateY(0px) scale(1.1); }
    50% { transform: translateY(-20px) scale(1.1); }
    100% { transform: translateY(0px) scale(1.1); }
}

/* =============================
   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;
}

/* =============================
   DEFAULT TILE (TOOLS bleiben flexibel)
============================= */
.tile-container {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap:2rem;
}

/* =============================
   KURSE – MAX 2 PRO ZEILE
============================= */
#courses-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* =============================
   LINKS – MAX 2 PRO ZEILE
============================= */
#links-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* =============================
   TILE DESIGN
============================= */
.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;
    position: relative;
    overflow: hidden;
}

.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;
}

/* =============================
   FOOTER
============================= */
footer {
    text-align:center;
    padding:2rem;
    background:#111;
    color:#888;
}

/* =============================
   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;
    }

    /* Kurse + Links auf Handy */
    #courses-container,
    #links-container{
        grid-template-columns: 1fr;
    }
}

@media (max-width:480px){
    .hero{
        height:60vh;
    }

    .hero-text h2{
        font-size:2rem;
    }

    .hero-text p{
        font-size:1rem;
    }
}