* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

:root {
    --color-primary: hsl(0, 0%, 18.82%);
    --color-success: rgb(0, 93, 139);
    --color-warning: rgba(255, 0, 0, 0.164);
    --color-danger: rgba(255, 0, 0, 0.434);
    --color-danger-variant: darkred;
    --color-white: #fff;
    --color-light: #ffffff6e;
    --color-black: #000;
    --color-bg: #1f2641;
    --color-bg1: rgba(128, 128, 128, 0.05);
    --color-bg2: grey;
    --gray-700: #424242;
    --gray-750: #2f2f2f;
    --gray-800: #212121;
    --gray-900: #171717;
    --gray-950: #0d0d0d;

    --container-width-lg: 80%;
    --container-width-md: 90%;
    --container-width-sm: 94%;

    --transition: all 400ms ease;
    
}

body {
    font-family: "Montserrat", serif;
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-black);
    padding-top: 5rem;
    
}

.container {
    width: var(--container-width-lg);
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

h1, 
h2, 
h3, 
h4, 
h5 { 
    line-height: 1.2;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 0.9rem;
}

h4 {
    font-size: 1rem;
}

a {
    color: var(--color-white);
}

img {
    width: 100%;
    max-width: 450px;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: cover;
}

img {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.8);
    border-radius: 10px; /* Abgerundete Ecken */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
img:hover {
    transform: scale(1.05); /* Leichtes Vergrößern beim Hover */
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 1);
}

img {
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


.btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);

}

.btn:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);

}



/* ===================== NAVBAR ====================== */

nav {
    background: transparent;
   
    width: 100vw;
    height: 5rem;
    position: fixed;
    top: 0;
    z-index: 11;
}

/* change navbar styles on scroll using javascript */
nav.window-scroll {
    background: var(--gray-950);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);

}

.nav_container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    

}

nav button {
    display: none;
}

.nav_menu {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nav_menu a {
    font-size: 1rem;
    transition: all 400ms ease; 
}

.nav_menu a:hover {
    color: var(--color-danger);
}

/*--========================= HEADER ============--*/
header {
    position: relative;
    top: 1rem;
    height: 70vh;
    overflow: hidden;

   
}

.header_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    height: 100%;
   
    
}

.header_left p {
    margin: 1rem 0 2.4rem;
}

/*--========================= CATEGORIES ============--*/

.categories {
    background: var(--gray-950);
    height: 35rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 3rem 0;
    box-shadow: inset 0 0 3rem var(--gray-800);
   
}

.categories h1 {
    line-height: 1;
    margin-bottom: 1rem;
}

.categories_container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 1rem;
    
}

.categories_left {
    margin-right: 2rem;
}

.categories_left p {
    margin: 0.5rem 0 0.5rem;
}

.categories_right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.category {
    background: var(--color-bg1);
    padding: 1rem;
    border-radius: 2rem;
    transition: var(--transiton);
}

.category:hover {
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/*category-icon change color 
.category:nth-child(2) .category_icon {
    background: var(--gray-900);
}

.category:nth-child(3) .category_icon {
    background: var(--gray-750);
}

.category:nth-child(4) .category_icon {
    background: var(--color-warning);
}

.category:nth-child(6) .category_icon {
    background: var(--gray-900);
}

.category:nth-child(7) .category_icon {
    background: var(--gray-750);
}

.category:nth-child(8) .category_icon {
    background: var(--color-warning);
}
*/
.category_icon {
    background: var(--color-black);
    padding: 0.7rem;
    border-radius: 0.9rem;
}

.category h5 {
    margin: 1rem 0 1rem;
}

.category p {
    font-size: 0.75rem;
}


/*--========================= POPULAR COURSES =========================--*/

.courses {
    margin-top: 10rem;
    margin-bottom: 5rem;
}

.courses_container {
    
    display: grid;
    grid-template-columns: repeat(3, 5fr);
    gap: 2rem;
    max-width: 1500px;/* Oder max-width: 1200px für eine Begrenzung */
    margin: 0 auto; /* Zentriert das Grid */

    
}

.course {
    background: var(--gray-850);
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
    box-shadow: inset 0 0 0.5rem white;
}

.course:hover {
    background: transparent;
    border-color: var(--color-white);

}

.course_image img {
    width: 100%;
    height: auto;
    filter: brightness(0.4) contrast(1.2);
    transition: filter 0.3s ease;
}

.course:hover .course_image img {
    filter: brightness(0.5) contrast(1.1);
}

.course_info {
    padding: 3rem;
 
}

.course_info p {
    margin: 1.2rem 0 2rem;
    font-size: 0.9rem;
    display: none;

}

.course_info h4 {
    margin-bottom: 1rem;
  
    
}

/*--========================= POPULAR FAQ's =========================--*/
.faqs {
    background: var(--gray-950);
    box-shadow: inset 0 0 3rem var(--gray-800);
}

.faqs_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.faq {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    height: fit-content;
    background: var(--color-bg1);
    cursor: pointer;
}

.faq h4 {
    font-size: 1rem;
    line-height: 2.2;
}

.faq_icon {
    align-self: flex-start;
    font-size: 1.2rem;
}

.faq p {
    margin: 0.8rem;
    display: none;
}

.faq.open p {
    display: block;
}

/*--========================= TESTIMONIALS =========================--*/

.testimonials_container {
    overflow-x: hidden;
    position: relative;
    margin-bottom: 5rem;
}

.mySwiper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.swiper-wrapper {
    max-width: 100%;
}

.testimonial {
    padding-top: 2rem;
}

.avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 45%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 0.2rem solid var(--gray-900);
    align-content:center;
    object-fit: fill;
}

.testimonial_info {
    text-align: center;
}

.testimonial_body {
    background: var(--gray-950);
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
}

.testimonial_body::before {
    content: "";
    display: block;
    background: linear-gradient(135deg,transparent, var(--gray-950), var(--gray-950));
    width: 3rem;
    height: 3rem;
    position: absolute;
    left: 50%;
    top: -1.5rem;
    transform: rotate(45deg);
}

/*--========================= FOOTER =========================--*/
footer {
    background: var(--gray-900);
    padding-top: 5rem;
    font-size: 0.9rem;

}

.footer_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
}

.footer_container > div h4 {
    margin-bottom: 1.2rem;

}

.footer_1 p {
    margin: 0 0 2rem;
}

footer ul li {
    margin-bottom: 0.7rem;
}

.footer ul li a:hover {
    text-decoration: underline;
}

.footer_socials {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

.footer_copyright {
    text-align: center;
    margin-top: 4rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--color-white);
}

/*--========================= MEDIA QUERIES (TABLETS) =========================--*/
@media screen and (max-width: 1024px) {
    .container {
        width: var(--container-width-md);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

/*--========================= NAVBAR =========================--*/
nav button {
    display: inline-block;
    background: transparent;
    font-size: 1.8rem;
    color: var(--color-white);
    cursor: pointer;

}

nav button#close-menu-btn {
    display: none;
}

.nav_menu {
    position: fixed;
    top: 5rem;
    right: 5%;
    height: fit-content;
    width: 18rem;
    flex-direction: column;
    gap: 0;
    display: none;
}

.nav_menu li {
    width: 100%;
    height: 5.8rem;
    animation: animateNavItems 400ms linear forwards;
    transform-origin: top right;
    opacity: 0;
}

.nav_menu li:nth-child(2) {
    animation-delay: 200ms;
}

.nav_menu li:nth-child(3) {
    animation-delay: 400ms;
}

.nav_menu li:nth-child(4) {
    animation-delay: 600ms;
}


@keyframes animateNavItems {
    0% {
        transform: rotateZ(-90deg);
    }

    100% {
        transform: rotateZ(0);
        opacity: 1;
    }
}
.nav_menu li a {
    background: var(--color-primary);
    box-shadow: -4rem 6rem 10rem rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.nav_menu li a:hover {
    background: rgb(14, 0, 0);
    color: var(--color-white);
}

/*--========================= HEADER =========================--*/

header {
    height: 52vh;
    margin-bottom: 4rem;
}

.header_container {
    gap: 0;
    padding-bottom: 3rem;
}
/*--========================= CATEGORIES =========================--*/
.categories {
    height: auto;
}

.categories_container {
    grid-template-columns: 1fr;
    gap: 3rem;
}

.categories_left {
    margin-right: 0;
}

/*--========================= POPULAR COURSES =========================--*/

.courses {
    margin-top: 0;
}

.courses_container {
    grid-template-columns: 1fr 1fr;
}

/*--========================= FAQs =========================--*/
.faqs_container {
    grid-template-columns: 1fr;
}

.faq {
    padding: 1.5rem;
}
/*--========================= FOOTER =========================--*/

.footer_container {
    grid-template-columns: 1fr 1fr;
}
}

/*--========================= MEDIA QUERIES (PHONES) =========================--*/

@media screen and (max-width: 600px) {

    .container {
        width: 2%;
        
    }
/*--========================= NAVBAR =========================--*/
.nav_menu {
    right: 3%;
}

/*--========================= HEADER =========================--*/
header {
    height: 100vh;
}

.header_container {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 0;
}

.header_left p {
    margin-bottom: 1.3rem;

}

/*--========================= CATEGORIES =========================--*/
.categories_right {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.category {
    padding: 1rem;
    border-radius: 1rem;
}

.category_icon {
    margin-top: 4px;
    display: inline-block;
}

/*--========================= POPULAR COURSES =========================--*/
.courses_container {
    grid-template-columns: 1fr;
}

/*--========================= TESTIMONIALS =========================--*/

.testimonial_body {
    padding: 1.2rem;
}

/*--========================= FOOTER =========================--*/
.footer_container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
}

.footer_1 p {
    margin: 1rem auto;
}

.footer_socials {
    justify-content: center;

}
}

/*--========================= LEGAL PAGES STYLING =========================--*/
.legal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.legal-content h3 {
    color: var(--color-primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.2rem;
}

.legal-content h4 {
    color: var(--color-white);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-content ul {
    margin: 1rem 0 1rem 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-white);
}

.contact-info {
    background: var(--color-bg1) !important;
    border: 1px solid var(--color-primary-variant);
}

/* Scrollbar styling for legal content */
.legal-content::-webkit-scrollbar {
    width: 8px;
}

.legal-content::-webkit-scrollbar-track {
    background: var(--color-bg1);
    border-radius: 4px;
}

.legal-content::-webkit-scrollbar-thumb {
    background: var(--color-primary-variant);
    border-radius: 4px;
}

.legal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Hero Image Animation */
@keyframes heroPulse {
    0%, 100% { 
        transform: scale(1); 
        filter: brightness(0.6) contrast(1.1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05); 
        filter: brightness(0.7) contrast(1.2);
        opacity: 0.95;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-950);
    border-top: 1px solid var(--color-white);
    border-left: 1px solid var(--color-white);
    border-right: 1px solid var(--color-white);
    padding: 1.5rem;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: block;
    animation: slideUp 0.9s ease-out;
    border-radius: 0;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content h3 {
    color: var(--color-white);
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.cookie-content p {
    color: var(--color-light);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--color-white);
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cookie-buttons .btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.cookie-buttons .btn-primary:hover {
    background: var(--color-white);
    color: var(--color-danger-variant);
    transform: translateY(-3px);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--gray-750);
}

.cookie-buttons .btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.cookie-buttons .btn-secondary:hover {
    background: var(--color-white);
    color: var(--gray-900);
    transform: translateY(-3px);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.9), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cookie-link {
    color: var(--color-light);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: auto;
    border-bottom: 1px solid var(--color-light);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.cookie-link:hover {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.018);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Responsive Cookie Banner */
@media screen and (max-width: 768px) {
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-link {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* AGB-specific Styles */
.contact-page {
    background: var(--color-black);
    padding: 8rem 0 4rem;
    margin-top: 0;
    text-align: center;
}

.contact-page_container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-page h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contact-page p {
    color: var(--color-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.agb-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-800);
}

.agb-section:last-of-type {
    border-bottom: none;
}

.agb-section h3 {
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.agb-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.agb-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.agb-section li {
    margin-bottom: 0.5rem;
    color: var(--color-light);
}

.agb-section address {
    background: var(--gray-900);
    padding: 1.5rem;
    border-radius: 0;
    border: 2px solid var(--color-white);
    margin: 1rem 0;
    font-style: normal;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.agb-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-white);
    text-align: center;
}

.agb-footer p {
    color: var(--color-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--color-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-white);
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.legal-links a:hover {
    background: var(--color-white);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 768px) {
    .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .legal-links a {
        width: 200px;
        text-align: center;
    }
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top:hover {
    background: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top i {
    color: var(--color-black);
    font-size: 1.5rem;
    font-weight: bold;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* Responsive */
@media screen and (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top i {
        font-size: 1.3rem;
    }
}

