/* Kinderyoga Passau – Farben aus Logo-SVG */
:root {
    /* Drei Farben aus dem Logo – je eine pro Kurs */
    --color-course-1: #83b2ac;   /* Teal/Mint – Kurs 3–4 Jahre */
    --color-course-2: #ec9178;   /* Coral – Kurs 4–6 Jahre */
    --color-course-3: #f4c76d;   /* Gold – Kurs 6–8 Jahre */
    /* Globale Nutzung */
    --color-primary: #ec9178;
    --color-primary-dark: #d97d63;
    --color-secondary: #f5ebe0;
    --color-bg: #faf9f7;
    --color-accent: #83b2ac;
    --color-text: #3d3d3d;
    --color-text-light: #5c5c5c;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --max-width: 960px;
    --spacing: 1.5rem;
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

body.modal-open {
    overflow: hidden;
}

.main-content {
    min-height: 60vh;
    padding-bottom: 2rem;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing) 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing);
}

.logo {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: 2.25rem;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
}

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

.btn-cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-cta:hover {
    background: var(--color-primary-dark);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233d3d3d' stroke-width='2'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E") center no-repeat;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .main-nav {
        width: 100%;
        display: none;
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Hero – zweigeteilt mit Wellen-Trenner (Design-Inspiration) */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 85vh;
    position: relative;
    overflow: hidden;
}

.hero-split__content {
    background: #f8f5ee;
    display: flex;
    align-items: center;
    padding: 2rem 2.5rem;
    position: relative;
    z-index: 2;
}

.hero-split__content-inner {
    max-width: 28rem;
    animation: heroFadeIn 0.8s ease-out both;
}

.hero-split__badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin: 0 0 1.25rem;
    animation: heroFadeIn 0.6s ease-out 0.1s both;
}

.hero-split__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.25;
    margin: 0 0 0.75rem;
    animation: heroFadeIn 0.6s ease-out 0.2s both;
}

.hero-split__title-accent {
    position: relative;
    display: inline-block;
}

.hero-split__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.15em;
    width: 100%;
    height: 0.25em;
    background: var(--color-course-2);
    border-radius: 2px;
    opacity: 0.85;
    animation: heroUnderline 0.6s ease-out 0.5s both;
}

.hero-split__subline {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin: 0 0 1.5rem;
    line-height: 1.5;
    animation: heroFadeIn 0.6s ease-out 0.3s both;
}

.hero-split__cta {
    animation: heroFadeIn 0.6s ease-out 0.4s both;
}

.hero-split__scroll {
    display: inline-flex;
    margin-top: 2rem;
    color: var(--color-text-light);
    text-decoration: none;
    animation: heroFadeIn 0.6s ease-out 0.6s both, scrollBounce 2s ease-in-out 1.2s infinite;
}

.hero-split__scroll:hover {
    color: var(--color-primary);
}

.hero-split__scroll-icon {
    width: 2rem;
    height: 2rem;
}

/* Wellen-Trenner zwischen Content und Visual */
.hero-split__wave {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 60vw;
    max-width: 55rem;
    margin-left: -30vw;
    pointer-events: none;
    z-index: 1;
    color: #f8f5ee;
}

.hero-split__wave svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-split__wave-path {
    animation: waveFloat 8s ease-in-out infinite;
}

.hero-split__visual {
    background: linear-gradient(160deg, var(--color-secondary) 0%, rgba(244, 199, 109, 0.15) 50%, rgba(131, 178, 172, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 0;
}

.hero-split__visual-inner {
    width: 100%;
    max-width: 28rem;
    animation: heroFadeIn 0.8s ease-out 0.3s both;
}

.hero-split__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.hero-split__placeholder {
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(236, 145, 120, 0.2) 0%, rgba(131, 178, 172, 0.25) 50%, rgba(244, 199, 109, 0.2) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

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

@keyframes heroUnderline {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes waveFloat {
    0%, 100% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(-2%) scaleY(1.02); }
}

/* Hero responsive: untereinander auf kleinen Screens */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
    }

    .hero-split__content {
        padding: 2.5rem 1.5rem;
        min-height: 50vh;
        border-radius: 0 0 2rem 2rem;
    }

    .hero-split__content-inner {
        max-width: none;
    }

    .hero-split__wave {
        display: none;
    }

    .hero-split__visual {
        min-height: 40vh;
        padding: 2rem 1.5rem;
        border-radius: 2rem 2rem 0 0;
        margin-top: -1rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Sections */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.section--alt {
    background: var(--color-secondary);
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section--alt .section-title {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.section--cta {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.section--cta .section-title {
    margin-bottom: 0.75rem;
}

.btn--large {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

.teaser-cta {
    margin-top: 1.5rem;
}

.teaser.section p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Schnellzugriff: Kurse, Über mich, FAQ, Formular im Modal */
.quick-access {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0.5rem 1rem;
}

.quick-access__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.quick-access__label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-right: 0.25rem;
}

.quick-access__link {
    font-size: 0.95rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.quick-access__link:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.quick-access__link--cta {
    background: var(--color-primary);
    color: #fff !important;
    font-weight: 600;
}

.quick-access__link--cta:hover {
    background: var(--color-primary-dark);
    color: #fff !important;
}

/* Modal: Kurse, Über mich, FAQ, Formular */
.modal-content-source {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal[hidden] {
    display: none;
}

.modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    cursor: pointer;
}

.modal__box {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 2rem);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
    background: var(--color-secondary);
    color: var(--color-text);
}

.modal__body {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal__body .page-content.section,
.modal__body .section {
    max-width: none;
    margin: 0;
    padding: 0;
}

.modal__body h1 {
    font-size: 1.5rem;
    margin-top: 0;
    padding-right: 2.5rem;
}

.page-content.section h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 1.5rem;
    color: var(--color-text);
}

.subsection {
    margin-bottom: 2rem;
}

.subsection h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: var(--color-text);
}

.cta-block {
    margin-top: 2rem;
}

/* Age teaser / course cards */
.age-teaser,
.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing);
    margin-top: 1.5rem;
}

.age-card,
.course-card {
    background: #fff;
    padding: 0;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 3px solid var(--color-primary);
    overflow: hidden;
}

.age-card__img,
.course-card__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.age-card > h2,
.age-card > h3,
.course-card > h3 {
    padding: 1rem 1.25rem 0.25rem;
}

.age-card > p,
.course-card > p {
    padding: 0 1.25rem;
    margin: 0 0 0.75rem;
}

.age-card > a,
.course-card > a {
    display: inline-block;
    padding: 0 1.25rem 1.25rem;
}

/* Je Kurs eine Farbe aus dem Logo */
.age-card--1,
.course-card--1 {
    border-top-color: var(--color-course-1);
}
.age-card--1 h2,
.age-card--1 a,
.course-card--1 h3 {
    color: var(--color-course-1);
}

.age-card--2,
.course-card--2 {
    border-top-color: var(--color-course-2);
}
.age-card--2 h2,
.age-card--2 a,
.course-card--2 h3 {
    color: var(--color-course-2);
}

.age-card--3,
.course-card--3 {
    border-top-color: var(--color-course-3);
}
.age-card--3 h2,
.age-card--3 a,
.course-card--3 h3 {
    color: var(--color-course-3);
}

.age-card--1 a:hover { filter: brightness(0.85); }
.age-card--2 a:hover { filter: brightness(0.9); }
.age-card--3 a:hover { filter: brightness(0.9); }

.age-card h2,
.course-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.age-card p,
.course-card p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.age-card a,
.course-card a {
    color: var(--color-primary);
    font-size: 0.9rem;
    text-decoration: none;
}

.age-card a:hover,
.course-card a:hover {
    text-decoration: underline;
}

/* Form */
.form-anmeldung {
    max-width: 420px;
    margin-top: 1.5rem;
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(201, 123, 106, 0.2);
}

.turnstile-wrap {
    margin: 1rem 0;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0.5rem 0 0;
}

.form-actions {
    margin-top: 1.5rem;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.form-message--success {
    background: #e8f5e9;
    color: #2e7d32;
}

.form-message--error {
    background: #ffebee;
    color: #c62828;
}

.form-message--info {
    background: var(--color-secondary);
    color: var(--color-text);
}

.intro {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.footer-links {
    margin-top: 2rem;
    font-size: 0.95rem;
}

/* FAQ */
.faq-list {
    margin-top: 1rem;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    background: #fff;
    overflow: hidden;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin: 0;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    padding-right: 2.5rem;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--color-primary);
}

.faq-item.is-open .faq-question::after {
    content: '−';
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1rem;
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    padding-top: 0.25rem;
}

/* Legal pages */
.legal .subsection h2,
.legal h2 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-cta {
    margin: 0 0 0.5rem;
}

.footer-cta a {
    color: var(--color-primary);
    text-decoration: none;
}

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

.footer-legal {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.footer-legal a {
    color: var(--color-text-light);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--color-primary);
}

/* Links in content */
.page-content a,
.teaser a {
    color: var(--color-primary);
    text-decoration: none;
}

.page-content a:hover,
.teaser a:hover {
    text-decoration: underline;
}

@media (min-width: 769px) {
    .hero {
        padding: 4rem 1.5rem;
    }
    .section {
        padding: 2.5rem 1.5rem;
    }
}
