:root {
    --primary: #FEBE05;
    --primary-glow: rgba(0, 255, 136, 0.4);
    --cross-color: #FEBE05;
    --cross-glow: rgba(255, 71, 87, 0.4);
    
    --bg: #0b0b0b;
    --bg-secondary: #161616;
    --card-bg: #1e1e1e;
    --text-main: #f0f0f0;
    --danger: #ff3b3b;
    --nav-height: 80px;
}

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

body {
    background-color: var(--bg);
    color: var(--text-main);
    padding-top: var(--nav-height);
}

section { scroll-margin-top: var(--nav-height); }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { width: 100%; height: auto; display: block; }


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


.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
    background: rgba(11, 11, 11, 0.95); backdrop-filter: blur(10px);
    display: flex; justify-content: space-between; align-items: center; padding: 0 5%; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo { font-size: 1.8rem; font-weight: 900; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 30px; }
.nav-links a:hover { color: var(--primary); }


.hero {
    height: calc(100vh - var(--nav-height));
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('background.jpg');
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    animation: fadeIn 1s ease-out;
}
.hero h1 { font-size: 3.5rem; text-transform: uppercase; margin-bottom: 20px; }
.btn {
    padding: 15px 40px; background: var(--primary); color: #000; font-weight: 800;
    text-transform: uppercase; border: none; cursor: pointer; border-radius: 50px; transition: 0.3s;
}
.btn:hover { background: white; transform: scale(1.05); }

.section { padding: 80px 5%; border-bottom: 1px solid #1a1a1a; }
.section-title { text-align: center; font-size: 2.5rem; text-transform: uppercase; margin-bottom: 50px; color: var(--primary); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 egyenlő oszlop */
    gap: 15px;
    width: 100%;
}

.zone-separator {
    text-align: center;
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 900;
    margin: 60px 0 30px 0;
    letter-spacing: 2px;
}

.zone-title-aerobik { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.zone-title-cross { color: var(--cross-color); text-shadow: 0 0 10px var(--cross-glow); }


@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .grid-5 {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .section {
        padding: 30px 15px;
    }

    .hero h1 { font-size: 1.8rem; margin-bottom: 15px; }
    .section-title { font-size: 1.6rem; margin-bottom: 20px; }
    
    .zone-separator {
        font-size: 1.4rem;
        margin: 30px 0 15px 0;
    }

    .schedule-card {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .day-title {
        font-size: 1.1rem;
        border-bottom: 1px solid #333;
        margin-bottom: 5px;
        padding-bottom: 5px;
    }

    .class-row {
        padding: 5px 0;
        font-size: 0.85rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .class-name {
        text-align: right;
        white-space: normal;
        max-width: 65%;
    }

    .navbar {
        padding: 0 10px;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .nav-links {
        gap: 15px;
        padding-right: 20px;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
        margin-right: 15px;
    }
}
/* Kártyák */
.card { background: var(--card-bg); padding: 30px; border-radius: 15px; text-align: center; transition: 0.3s; }
.card:hover { transform: translateY(-10px); border-bottom: 3px solid var(--primary); }

/* Árazás */
.price-card { border: 1px solid #333; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.price-card.popular { border: 2px solid var(--primary); transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 255, 136, 0.1); }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: black; padding: 5px 15px; font-weight: bold; text-transform: uppercase; border-radius: 20px; font-size: 0.8rem; }
.price { font-size: 2.5rem; font-weight: 900; margin: 20px 0; color: white; }
.price-details { list-style: none; margin-bottom: 20px; color: #ccc; line-height: 2; }

.tab-container {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 40px;
}
.tab-btn {
    background: transparent; border: 2px solid #333; color: white;
    padding: 15px 30px; font-size: 1.1rem; cursor: pointer; border-radius: 50px;
    transition: 0.3s; text-transform: uppercase; font-weight: 700;
}
.tab-btn.active {
    background: var(--primary); color: black; border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}
.schedule-view { display: none; animation: fadeIn 0.5s ease-out; }
.schedule-view.active { display: grid; }

.schedule-card { background: var(--bg-secondary); border-radius: 10px; padding: 20px; border-top: 3px solid var(--primary); }
.day-title { font-size: 1.5rem; margin-bottom: 15px; color: white; border-bottom: 1px solid #333; padding-bottom: 10px; }
.class-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #222; }
.class-time { color: var(--primary); font-weight: bold; }

.gallery-img { height: 250px; object-fit: cover; width: 100%; border-radius: 10px; transition: 0.5s; }
.gallery-img:hover { transform: scale(1.05); }

.admin-container { max-width: 800px; margin: 0 auto; background: #1a1a1a; padding: 40px; border-radius: 20px; }
.form-group { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
input, select { padding: 15px; background: #222; border: 1px solid #444; color: white; flex: 1; border-radius: 5px; min-width: 200px; }
.action-btn { background: none; border: none; cursor: pointer; font-weight: bold; padding: 5px 10px; }
.delete-btn { color: var(--danger); } .edit-btn { color: var(--warning); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .price-card.popular { transform: scale(1); margin: 20px 0; }
    .tab-container { flex-direction: column; }
}