/* ========================================
       CSS VARIABLES & RESET
    ======================================== */
:root {
    --primary: hsl(345, 87%, 45%);
    --primary-light: hsl(345, 87%, 55%);
    --primary-dark: hsl(345, 87%, 35%);
    --foreground: hsl(0, 0%, 20%);
    --foreground-light: hsl(0, 0%, 45%);
    --background: hsl(0, 0%, 100%);
    --background-alt: hsl(0, 0%, 96%);
    --border: hsl(0, 0%, 90%);
    --white: hsl(0, 0%, 100%);
    --black: hsl(0, 0%, 0%);
    --overlay: hsla(0, 0%, 0%, 0.3);
    --shadow: 0 4px 20px hsla(0, 0%, 0%, 0.1);
    --shadow-lg: 0 10px 40px hsla(0, 0%, 0%, 0.15);
    --radius: 0.5rem;
    --navbar-height: 70px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
       UTILITY CLASSES
    ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 1.5rem;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--foreground-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ========================================
       NAVBAR
    ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: background-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-family: 'Raleway', sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--white);
    transition: color var(--transition);
}

.navbar.scrolled .logo {
    color: var(--foreground);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: var(--foreground);
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: background-color var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--foreground);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* ========================================
       HERO SECTION
    ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
       ABOUT SECTION
    ======================================== */
.about {
    background-color: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.about-content p {
    color: var(--foreground-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-images {
    position: relative;
}

.about-main-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-decorative-image {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    /* border: 4px solid var(--white); */
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-decorative-image {
        display: none;
    }
}

/* ========================================
       PARALLAX SECTION
    ======================================== */
.parallax {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 8rem 2rem;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--overlay);
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.parallax-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.parallax-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
       LESSON STRUCTURE SECTION
    ======================================== */
.lessons {
    background-color: var(--background-alt);
}

.lessons-list {
    max-width: 800px;
    margin: 0 auto;
}

.lesson-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    flex-shrink: 0;
}

.lesson-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.lesson-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.lesson-content p {
    color: var(--foreground-light);
    font-size: 0.95rem;
}

@media (max-width: 768px) {

    .hero,
    .parallax {
        /* 'scroll' statt 'fixed' verhindert den extremen Zoom auf Handys */
        background-attachment: scroll !important;

        /* Optional: Höhe anpassen, falls das Bild auf dem Handy zu klein wirkt */
        height: 50vh;
    }
}

/* ========================================
       COURSES SECTION
    ======================================== */
.courses {
    background-color: var(--background);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.course-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.course-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.course-description {
    color: var(--foreground-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.course-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--foreground-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.course-details {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.course-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    transition: color var(--transition);
}

.course-link:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .course-card {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
       PRICES SECTION
    ======================================== */
.prices {
    background-color: var(--background-alt);
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card.highlighted {
    border: 2px solid var(--primary);
    position: relative;
}

.price-card.highlighted::before {
    content: 'Beliebt';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.price-unit {
    color: var(--foreground-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price-description {
    color: var(--foreground-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.price-features {
    text-align: left;
}

.price-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--foreground-light);
    font-size: 0.9rem;
}

.price-feature svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ========================================
       CONTACT SECTION
    ======================================== */
.contact {
    background-color: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(345, 87%, 45%, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-button {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    transition: background-color var(--transition);
}

.form-button:hover {
    background-color: var(--primary-dark);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item p {
    color: var(--foreground-light);
    line-height: 1.6;
}

.contact-map {
    margin-top: 2rem;
    height: 200px;
    background-color: var(--background-alt);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground-light);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ========================================
       FOOTER
    ======================================== */
.footer {
    background-color: var(--foreground);
    color: var(--white);
    padding: 3rem 1.5rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
}

.footer-logo {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: hsla(0, 0%, 100%, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: hsla(0, 0%, 100%, 0.5);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
       TOAST NOTIFICATION
    ======================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--foreground);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ========================================
       SVG ICONS (inline for simplicity)
    ======================================== */
.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.icon-lg {
    width: 48px;
    height: 48px;
}