/* =========================================================
   BASE GENERAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #353535;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    font-weight: 300;
    line-height: 1.6;
}

a {
    color: inherit;
}

main {
    width: 100%;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);

    padding: 22px 30px 18px;

    text-align: center;
}


/* LOGO */

.logo {
    font-family:
        "Segoe Script",
        "Brush Script MT",
        cursive;

    font-size: 45px;
    font-weight: normal;

    color: #181818;

    line-height: 1.1;

    max-width: 900px;
    margin: 0 auto 13px;
}


/* LÍNEA FINA */

.navigation {
    max-width: 900px;

    margin: 0 auto;

    padding-top: 13px;

    border-top: 1px solid #777777;

    display: flex;

    align-items: center;
    justify-content: space-around;

    gap: 20px;
}


/* ENLACES */

.navigation a {
    text-decoration: none;

    color: #4d4d4d;

    font-size: 17px;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.navigation a:hover {
    color: #35664b;
    transform: translateY(-1px);
}


/* =========================================================
   START
========================================================= */

.start-section {
    min-height: 580px;

    padding: 75px 30px 60px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background: #ffffff;
}


/* ÁREA DEL TRAZO VERDE */

.welcome-area {
    position: relative;

    width: min(720px, 92%);

    min-height: 300px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* MANCHA VERDE IRREGULAR */

.paint-mark {
    position: absolute;

    width: 520px;
    height: 330px;

    background-image: url("mancha_verde.png.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 0;
    transform: rotate(0deg);
    opacity: 1;
}

/* pequeñas irregularidades para que no parezca un círculo */

.paint-mark::before,
.paint-mark::after {
    content: "";

    position: absolute;

    background: #b7c9ad;

    opacity: 0.9;
}

.paint-mark::before {
    width: 250px;
    height: 175px;

    left: -35px;
    top: 34px;

    border-radius:
        58% 42% 61% 39% /
        50% 60% 40% 50%;

    transform: rotate(-14deg);
}

.paint-mark::after {
    width: 260px;
    height: 170px;

    right: -40px;
    bottom: 15px;

    border-radius:
        40% 60% 45% 55% /
        60% 40% 60% 40%;

    transform: rotate(15deg);
}


/* TEXTO MANUSCRITO */

.welcome-text {
    position: relative;

    z-index: 2;

    font-family:
        "Segoe Script",
        "Brush Script MT",
        cursive;

    font-size: 56px;

    line-height: 1.25;

    color: #161616;

    transform: rotate(-2deg);
}


/* SUBTÍTULO */

.start-subtitle {
    margin: 20px 0 0;

    font-size: 31px;

    line-height: 1.35;

    font-weight: 300;

    color: #333333;
}


/* =========================================================
   FILOSOFÍA
========================================================= */

.philosophy-section {
    max-width: 1120px;

    margin: 0 auto;

    padding: 55px 55px 70px;

    text-align: center;
}

.philosophy-section h2 {
    margin: 0 0 80px;

    font-size: 38px;

    font-weight: 300;

    color: #333333;
}

.philosophy-section p {
    margin: 27px auto;

    max-width: 1050px;

    font-size: 20px;

    line-height: 1.55;
}

.philosophy-section strong {
    font-weight: 650;
}


/* FRASE VERDE */

.philosophy-quote {
    color: #6c846f;

    font-style: italic;

    font-size: 24px !important;

    line-height: 1.5 !important;

    margin-bottom: 42px !important;
}


/* =========================================================
   WIE GEHT DAS?
========================================================= */

.how-section {
    max-width: 930px;

    margin: 0 auto;

    padding: 55px 55px 80px;
}

.how-section h2 {
    margin: 0 0 28px;

    text-align: center;

    font-size: 25px;

    font-weight: 650;
}

.how-section ul {
    margin: 0;

    padding-left: 28px;
}

.how-section li {
    margin: 4px 0;

    font-size: 20px;

    line-height: 1.5;
}

.how-section strong {
    font-weight: 650;
}


/* =========================================================
   ÜBER MICH
========================================================= */

.about-section {
    background: #dfe9dc;

    padding: 65px 45px 90px;

    text-align: center;
}


/* FOTO CIRCULAR */

.portrait-placeholder {
    width: 275px;
    height: 275px;

    margin: 0 auto 30px;

    border-radius: 50%;

    background: #f8f8f8;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #999999;

    font-size: 17px;

    overflow: hidden;
}


/* TÍTULO */

.about-section h2 {
    margin: 15px 0 35px;

    font-size: 62px;

    line-height: 1.1;

    font-weight: 300;

    letter-spacing: 1px;

    color: #315c45;
}


/* TEXTO */

.about-text {
    max-width: 1000px;

    margin: 0 auto;
}

.about-text p {
    margin: 25px auto;

    font-size: 20px;

    line-height: 1.5;
}

.about-highlight {
    font-weight: 700 !important;

    color: #333333;

    margin-top: 38px !important;

    margin-bottom: 38px !important;
}


/* =========================================================
   KURSE
========================================================= */

.courses-section {
    background: #315f45;

    padding: 35px 40px 60px;
}

.courses-section > h2 {
    margin: 0 0 20px;

    text-align: center;

    color: #ffffff;

    font-size: 42px;

    font-weight: 300;

    letter-spacing: 1px;
}


/* DOS TARJETAS */

.course-grid {
    max-width: 1000px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 34px;
}

.course-card {
    background: #ffffff;

    min-height: 320px;

    padding: 20px 25px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* CÍRCULO NATURAL */

.course-nature-image {
    width: 145px;
    height: 145px;

    margin-bottom: 12px;

    border-radius: 50%;

    overflow: hidden;

    background: #e3eadf;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 105px;
}


/* TÍTULOS */

.course-card h3 {
    margin: 0 0 12px;

    font-size: 22px;

    font-weight: 600;
}

.course-name {
    margin: 5px 0 12px;

    font-size: 21px;
}

.course-line {
    width: 85%;

    border-top: 1px solid #8e8e8e;

    margin: 7px auto 18px;
}

.course-card p {
    margin: 7px 0;

    font-size: 17px;

    line-height: 1.45;
}


/* =========================================================
   FAQ
========================================================= */

/*
   El original tiene una fotografía de azulejos a ambos lados.
   Por ahora dejamos la estructura preparada.
   Más adelante ponemos la fotografía real.
*/

.faq-background {
    padding: 0 11%;
    background-image: url("azulejos.jpg.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}


/* CENTRO VERDE */

.faq-section {
    max-width: 930px;

    margin: 0 auto;

    padding: 65px 55px 80px;

    background: #315f45;

    color: #ffffff;
}


/* TÍTULO FAQ */

.faq-section > h2 {
    margin: 0 0 55px;

    font-size: 56px;

    line-height: 1.15;

    font-weight: 300;

    letter-spacing: 0.5px;
}


/* ITEMS */

.faq-item {
    margin-bottom: 34px;
}

.faq-item h3 {
    margin: 0 0 4px;

    font-size: 20px;

    font-weight: 700;
}

.faq-item p,
.faq-item li {
    font-size: 18px;

    line-height: 1.45;
}

.faq-item p {
    margin: 3px 0 10px;
}

.faq-item ul {
    margin-top: 5px;

    padding-left: 25px;
}

.faq-item strong {
    font-weight: 700;
}

.faq-note {
    margin-top: 25px !important;

    font-size: 17px !important;
}


/* =========================================================
   KURSANMELDUNG / WICHTIGE INFO
========================================================= */

.registration-section {
    background: #315f45;

    padding: 25px 12% 80px;
}

.registration-box {
    max-width: 930px;

    margin: 0 auto;

    background: #ffffff;

    padding: 55px 75px;

    text-align: center;

    color: #353535;
}


/* ETIQUETA */

.info-label {
    display: inline-block;

    position: relative;

    margin-bottom: 32px;

    padding: 8px 18px;

    background: #abc89f;

    border-radius: 13px;

    font-size: 27px;

    font-weight: 500;

    transform: rotate(-2deg);
}

.info-label::after {
    content: "";

    position: absolute;

    left: 20px;
    bottom: -11px;

    border-style: solid;

    border-width: 12px 13px 0 0;

    border-color: #abc89f transparent transparent transparent;
}


/* TEXTO */

.registration-box p {
    max-width: 750px;

    margin: 18px auto;

    font-size: 19px;

    line-height: 1.55;
}

.registration-box a {
    color: #444444;

    text-decoration: underline;
}

.registration-box ul {
    width: fit-content;

    margin: 30px auto;

    padding-left: 25px;

    text-align: left;
}

.registration-box li {
    margin: 6px 0;

    font-size: 18px;
}

.registration-signature {
    margin-top: 40px !important;
}


/* =========================================================
   KONTAKT
========================================================= */

.contact-section {
    background: #e5ebe2;

    padding: 60px 0 0;

    text-align: center;
}

.contact-section h2 {
    margin: 0 0 28px;

    font-size: 38px;

    font-weight: 300;

    color: #333333;
}

.contact-section p {
    margin: 9px 0;

    font-size: 21px;

    line-height: 1.5;
}

.contact-section a {
    color: #404040;

    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}


/* MAPA */

.map {
    width: 100%;

    margin-top: 35px;
}

.map iframe {
    display: block;

    width: 100%;
    height: 430px;

    border: 0;

    filter: grayscale(0.75);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #315f45;

    color: #ffffff;

    text-align: center;

    padding: 24px;
}

.site-footer p {
    margin: 0;

    font-size: 14px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .navigation {
        gap: 12px;
    }

    .navigation a {
        font-size: 15px;
    }

    .welcome-text {
        font-size: 48px;
    }

    .paint-mark {
        width: 330px;
        height: 225px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .faq-background {
        padding: 0 5%;
    }

    .registration-section {
        padding-left: 5%;
        padding-right: 5%;
    }

}


/* =========================================================
   TELÉFONO
========================================================= */

@media (max-width: 650px) {

    .site-header {
        position: relative;

        padding: 20px 18px;
    }

    .logo {
        font-size: 36px;
    }

    .navigation {
        flex-direction: column;

        gap: 7px;
    }

    .navigation a {
        font-size: 16px;
    }


    /* START */

    .start-section {
        min-height: 500px;

        padding: 45px 20px;
    }

    .welcome-area {
        min-height: 260px;
    }

    .paint-mark {
        width: 250px;
        height: 190px;
    }

    .paint-mark::before,
    .paint-mark::after {
        width: 170px;
        height: 130px;
    }

    .welcome-text {
        font-size: 37px;
    }

    .start-subtitle {
        font-size: 25px;
    }


    /* FILOSOFÍA */

    .philosophy-section {
        padding: 50px 22px;
    }

    .philosophy-section h2 {
        margin-bottom: 45px;

        font-size: 31px;
    }

    .philosophy-section p {
        font-size: 17px;
    }

    .philosophy-quote {
        font-size: 20px !important;
    }


    /* WIE GEHT DAS */

    .how-section {
        padding: 40px 28px 60px;
    }

    .how-section li {
        font-size: 17px;
    }


    /* ÜBER MICH */

    .about-section {
        padding: 50px 22px 70px;
    }

    .portrait-placeholder {
        width: 220px;
        height: 220px;
    }

    .about-section h2 {
        font-size: 43px;
    }

    .about-text p {
        font-size: 17px;
    }


    /* KURSE */

    .courses-section {
        padding: 55px 20px 70px;
    }

    .course-card {
        padding: 30px 20px;
    }

    .course-nature-image {
        width: 205px;
        height: 205px;

        font-size: 85px;
    }


    /* FAQ */

    .faq-background {
        padding: 0;
    }

    .faq-section {
        padding: 55px 25px 65px;
    }

    .faq-section > h2 {
        font-size: 24px;
        text-align: center;
    }

    .faq-item p,
    .faq-item li {
        font-size: 16px;
    }


    /* REGISTRO */

    .registration-section {
        padding: 25px 0 60px;
    }

    .registration-box {
        padding: 45px 25px;
    }
    .registration-box p,
.registration-box li {
    font-size: 20px;
    line-height: 1.6;
}

    .info-label {
        font-size: 23px;
    }


    /* CONTACTO */

    .contact-section {
        padding-top: 50px;
    }

    .contact-section h2 {
        font-size: 30px;
    }

    .map iframe {
        height: 340px;
    }

}
/* =========================================================
   AJUSTES PARA ACERCARNOS AL MODELO ORIGINAL
========================================================= */

/* Verde claro de ÜBER MICH */
.about-section {
    background-color: #DCE5D8;
}

/* Verde oscuro principal */
.courses-section,
.faq-section,
.registration-section,
.site-footer {
    background-color: #315B43;
}

/* Mancha de pintura de START */
.paint-mark {
    width: 390px;
    height: 245px;

    background-color: #B7C9AD;

    border-radius: 0;

    clip-path: polygon(
        8% 23%,
        20% 10%,
        37% 14%,
        51% 4%,
        72% 12%,
        88% 25%,
        95% 43%,
        89% 61%,
        96% 79%,
        76% 87%,
        57% 96%,
        39% 89%,
        21% 94%,
        9% 76%,
        14% 59%,
        3% 42%
    );

    transform: rotate(4deg);
}

.paint-mark::before,
.paint-mark::after {
    display: none;
}

/* Texto de bienvenida un poco más parecido al original */
.welcome-text {
    font-size: 54px;
    line-height: 1.2;
}
@media (max-width: 650px) {
    .welcome-text {
        font-size: 28px;
    }
}

/* Fondo de contacto */
.contact-section {
    background-color: #E2E8DF;
}
.portrait-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/* =========================================
   BOTÓN – KURSTERMINE 2027
   ========================================= */

.course-info-button {
    margin-top: 18px;
    padding: 10px 20px;

    background-color: transparent;
    color: #315f45;

    border: 1px solid #315f45;
    border-radius: 3px;

    font-family: inherit;
    font-size: 15px;
    font-weight: normal;

    cursor: pointer;

    transition: 0.25s;
}

.course-info-button:hover {
    background-color: #315f45;
    color: white;
}
/* =========================================
   VENTANA EMERGENTE – INFORMACIÓN DE CURSOS
   ========================================= */

.course-modal {
    display: none;
    position: fixed;
    inset: 0;

    background-color: rgba(47, 64, 53, 0.45);

    align-items: center;
    justify-content: center;

    padding: 20px;
    z-index: 9999;
}

.course-modal.show {
    display: flex;
}

.course-modal-content {
    position: relative;

    width: 100%;
    max-width: 520px;

    background-color: #F4EFE7;
    color: #2F4035;

    padding: 40px 35px 35px;

    border-radius: 8px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.course-modal-content h2 {
    margin: 0 40px 20px 0;

    font-size: 28px;
    font-weight: normal;

    color: #315F45;
}

.course-modal-content p {
    line-height: 1.7;
    margin: 8px 0;
}

.course-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;

    border: none;
    background: transparent;

    color: #315F45;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}

.course-modal-close:hover {
    opacity: 0.65;
}

#course-modal-text {
    font-size: 16px;
    line-height: 1.7;
}

/* ALINEAR BOTONES DE LAS TARJETAS DE CURSOS */

.course-info-button {
    margin-top: auto;
}

/* =========================================
   MENÚ MÓVIL
   ========================================= */

.menu-toggle {
    display: none;
}

/* Solo para pantallas pequeñas */
@media (max-width: 600px) {

    .site-header {
        position: relative;
        padding: 20px;
    }

    .logo {
        text-align: center;
    }

    .menu-toggle {
        display: block;

        margin: 15px auto 0;

        border: none;
        background: transparent;

        font-size: 30px;
        color: #315F45;

        cursor: pointer;
    }

    .navigation {
        display: none;

        flex-direction: column;
        align-items: center;

        gap: 14px;

        margin-top: 18px;
    }

    .navigation.show {
        display: flex;
    }

    .navigation a {
        display: block;
        margin: 0;
    }
}

/* =========================================
   MODAL DE CURSOS EN MÓVIL
   ========================================= */

@media (max-width: 600px) {

    .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
}

    .course-modal {
        padding: 12px;
        align-items: center;
    }

    .course-modal-content {
        width: 100%;
        max-width: 340px;

        max-height: 72vh;
        overflow-y: auto;

        padding: 22px 22px 20px;
    }

    .course-modal-content h2 {
        font-size: 25px;
        line-height: 1.2;
        margin-right: 35px;
    }

#course-modal-text {
    font-size: 17px;
    line-height: 1.6;
}

    #course-modal-text p {
        margin: 4px 0;
    }

    .course-modal-close {
        top: 10px;
        right: 12px;
        font-size: 26px;
    }
}

/* =========================================
   TABLET
   ========================================= */

@media (min-width: 601px) and (max-width: 900px) {

    .navigation a {
        font-size: 19px;
    }

    .course-card {
        font-size: 20px;
    }

    .course-card p {
        font-size: 21px;
        line-height: 1.5;
    }
    .course-name {
    font-size: 23px;
    font-weight: 500;
}

    .course-info-button {
        font-size: 18px;
        padding: 12px 20px;
    }

   .faq-section {
    font-size: 19px;
    line-height: 1.6;
}

.faq-section h3,
.faq-item h3 {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.faq-section p,
.faq-section li,
.faq-item p,
.faq-item li {
    font-size: 19px;
    line-height: 1.6;
}

    .course-modal-content {
        max-width: 560px;
        padding: 32px 30px;
    }

    .course-modal-content h2 {
        font-size: 30px;
    }

    #course-modal-text {
        font-size: 19px;
        line-height: 1.6;
    }
}
.start-section {
    min-height: 500px;
    padding: 45px 30px 35px;
}
.philosophy-section {
    padding-top: 0px;
}
#start,
#ueber-mich,
#faqs,
#termine,
#kontakt {
    scroll-margin-top: 140px;
}

/* ==================================================
   MÓVILES MUY PEQUEÑOS
   Optimización para pantallas de hasta 300px
================================================== */

@media (max-width: 300px) {

    /* ÜBER MICH */
    .about-section {
        padding: 35px 16px 55px;
    }

    .portrait-placeholder {
        width: 175px;
        height: 175px;
        margin-bottom: 20px;
    }

    .about-section h2 {
        font-size: 34px;
        line-height: 1.05;
        margin: 10px 0 25px;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* ==================================================
   MÓVILES MUY PEQUEÑOS - hasta 300px
   Ajuste especial de TERMINE
   ================================================== */

@media (max-width: 300px) {

    .courses-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .course-grid {
        width: 100%;
        max-width: 100%;
        gap: 20px;
    }

    .course-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 16px 10px;
        box-sizing: border-box;
        font-size: 15px;
    }

    .course-card p {
        font-size: 15px;
        line-height: 1.4;
    }

    .course-name {
        font-size: 17px;
    }

    .course-nature-image {
        width: 150px;
        height: 150px;
        font-size: 60px;
    }

    .course-info-button {
        max-width: 100%;
        padding: 9px 12px;
        font-size: 14px;
        box-sizing: border-box;
    }
}

/* =========================================
   MÓVILES MUY PEQUEÑOS - WICHTIGE INFO
   ========================================= */

@media (max-width: 300px) {

    .registration-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .registration-box {
        width: 100%;
        max-width: 100%;
        padding: 30px 12px;
        box-sizing: border-box;
    }

    .registration-box p,
    .registration-box li {
        font-size: 16px;
        line-height: 1.5;
    }

    .info-label {
        font-size: 20px;
    }

    .registration-box a {
        font-size: 15px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* =========================================
   MÓVILES MUY PEQUEÑOS - KONTAKT / ANFAHRT
   ========================================= */

@media (max-width: 300px) {

    .contact-section {
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .contact-section p,
    .contact-section a {
        max-width: 100%;
        font-size: 16px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .map {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .map iframe {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 300px;
        border: 0;
    }
}