/* ======================================
   CSS Variables - Color Palette & Spacing
   ====================================== */
:root {
    /* Colors - Minecraft inspired, modernized */
    --sky-blue-light: #87CEEB;
    --sky-blue-deep: #5DADE2;
    --grass-green: #7CB342;
    --grass-green-dark: #689F38;
    --dirt-brown: #8B6F47;
    --dirt-brown-dark: #6B5436;
    --command-purple: #9C7FBF;
    --cloud-white: #F8F9FA;
    --text-dark: #2C3E50;
    --text-medium: #546E7A;
    --stone-gray: #95A5A6;
    --redstone-red: #DC3545;
    --grass-dark: #5A8C2E;

    /* Spacing scale (8px base unit) */
    --space-xs: 0.5rem;    /* 8px */
    --space-s: 1rem;       /* 16px */
    --space-m: 1.5rem;     /* 24px */
    --space-l: 2.5rem;     /* 40px */
    --space-xl: 4rem;      /* 64px */
    --space-xxl: 6rem;     /* 96px */

    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ======================================
   Reset & Base Styles
   ====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(
        to bottom,
        var(--sky-blue-light) 0%,
        var(--sky-blue-deep) 40%,
        var(--sky-blue-deep) 85%,
        #6FA84D 100%
    );
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ======================================
   Disclaimer Banner
   ====================================== */
.disclaimer-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-dark);
    color: var(--cloud-white);
    padding: var(--space-xs) var(--space-m);
    font-size: 0.875rem;
    z-index: 9999;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.disclaimer-banner.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.disclaimer-close {
    background-color: transparent;
    color: var(--cloud-white);
    border: 1px solid var(--cloud-white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.disclaimer-close:hover {
    background-color: var(--cloud-white);
    color: var(--text-dark);
}

.disclaimer-close:active {
    transform: scale(0.95);
}

/* ======================================
   Background Elements
   ====================================== */
.background-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    z-index: 0;
    perspective: 1000px;
}

.cloud {
    position: absolute;
    display: block;
    opacity: 0.9;
    pointer-events: auto;
    cursor: pointer;
    transform-origin: center center;
    will-change: transform;
}

.cloud-1 {
    top: 8%;
    left: 10%;
    animation: cloudFloat1 50s ease-in-out infinite alternate;
    animation-delay: -20s;
}

.cloud-2 {
    top: 20%;
    right: 15%;
    animation: cloudFloat2 60s ease-in-out infinite alternate;
    animation-delay: -10s;
}

.cloud-3 {
    top: 35%;
    left: 70%;
    animation: cloudFloat3 45s ease-in-out infinite alternate;
    animation-delay: -30s;
}

.cloud-4 {
    top: 15%;
    left: 45%;
    animation: cloudFloat4 55s ease-in-out infinite alternate;
    animation-delay: -0s;
}

.cloud-5 {
    top: 30%;
    right: 5%;
    animation: cloudFloat5 65s ease-in-out infinite alternate;
    animation-delay: -40s;
}

.cloud-6 {
    top: 25%;
    left: 35%;
    animation: cloudFloat6 52s ease-in-out infinite alternate;
    animation-delay: -18s;
}

@keyframes cloudFloat1 {
    from { transform: translateX(0); }
    to { transform: translateX(150px); }
}

@keyframes cloudFloat2 {
    from { transform: translateX(0); }
    to { transform: translateX(-120px); }
}

@keyframes cloudFloat3 {
    from { transform: translateX(0); }
    to { transform: translateX(-180px); }
}

@keyframes cloudFloat4 {
    from { transform: translateX(0); }
    to { transform: translateX(100px); }
}

@keyframes cloudFloat5 {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}

@keyframes cloudFloat6 {
    from { transform: translateX(0); }
    to { transform: translateX(-140px); }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .cloud {
        animation: none !important;
    }
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ======================================
   Typography
   ====================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--space-m);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: var(--space-m);
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: var(--space-s);
}

h4 {
    font-size: 1.375rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5em;
    max-width: 75ch;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--grass-green);
    text-decoration: none;
    transition: color 0.2s ease-out;
}

a:hover {
    color: var(--grass-green-dark);
    text-decoration: underline;
}

a:focus {
    outline: 3px solid var(--grass-green);
    outline-offset: 2px;
}

strong {
    font-weight: 600;
}

/* ======================================
   Layout Container
   ====================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-s);
}

main {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    pointer-events: none;
}

/* Only enable pointer events on actual content and interactive elements */
main .content-card,
main .benefit-card,
main .signup-card,
main button,
main a,
main input,
main textarea,
main select {
    pointer-events: auto;
}

section {
    padding: var(--space-xl) 0;
}

/* ======================================
   Buttons
   ====================================== */
.btn-primary {
    display: inline-block;
    background: var(--grass-green);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
    transition: all 0.2s ease-out;
}

.btn-primary:hover {
    background: var(--grass-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 179, 66, 0.4);
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.3);
}

.btn-primary:focus {
    outline: 3px solid var(--grass-green);
    outline-offset: 2px;
}

/* ======================================
   Hero Section
   ====================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xxl) 0 calc(var(--space-xxl) + 12vh);
    position: relative;
}

.hero .container {
    position: relative;
}

.scroll-arrow {
    position: absolute;
    bottom: calc(3rem + 6vh);
    left: 50%;
    animation: scrollBounce 1.6s ease-in-out infinite;
    transition: opacity 0.6s ease;
}

.scroll-arrow.hidden {
    opacity: 0;
}

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

.command-block-hero {
    width: 420px;
    height: auto;
    margin: 0 auto -58px;
    filter: drop-shadow(0 0 30px rgba(156, 127, 191, 0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero h1 {
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--space-m);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #FFFFFF;
    max-width: 700px;
    margin: 0 auto var(--space-l);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* ======================================
   Content Cards
   ====================================== */
.content-card {
    background: var(--cloud-white);
    padding: var(--space-l);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    max-width: 900px;
}

.content-card.has-mehr {
    position: relative;
    padding-bottom: 48px;
    overflow: hidden;
}

.content-extra {
    max-height: 0;
    overflow: hidden;
}

.content-mehr-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 12px;
    padding-top: 8px;
    background: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.content-mehr {
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-mehr::after {
    content: '';
    display: block;
    width: 11px;
    height: 11px;
    border-right: 2.5px solid var(--grass-green);
    border-bottom: 2.5px solid var(--grass-green);
    transform: rotate(45deg);
    margin-top: -5px;
}

.content-card.has-mehr.expanded {
    padding-bottom: var(--space-l);
    overflow: visible;
}

.content-card.has-mehr.expanded .content-extra {
    max-height: none;
    overflow: visible;
    opacity: 1;
}

.content-card.has-mehr.expanded .content-mehr-overlay {
    display: none;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-l);
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* ======================================
   Vibe-Coding Section
   ====================================== */
.section-vibe-coding {
    background: transparent;
}

.faq-lerne-mehr {
    display: block;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.75em;
    font: inherit;
    color: var(--grass-green, #7CB342);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-align: left;
}

.faq-lerne-mehr-content {
    display: none;
    margin-top: var(--space-m);
}

.faq-lerne-mehr-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75em;
}

.faq-lerne-mehr-content.open {
    display: block;
}

/* ======================================
   Learning/Benefits Section
   ====================================== */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
    margin-top: var(--space-l);
    align-items: start;
}

.benefit-card {
    border-radius: 12px;
    background: var(--cloud-white);
    border: 2px solid rgba(0, 0, 0, 0.10);
    border-left: 4px solid var(--grass-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: box-shadow 0.18s, border-left-color 0.18s;
}

.benefit-card:hover {
    box-shadow: 0 4px 16px rgba(124, 179, 66, 0.18);
    border-left-color: #5a9a1f;
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-m);
    text-align: left;
    font-family: inherit;
}

.benefit-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.benefit-title {
    flex: 1;
    font-family: 'Poppins', 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--grass-green);
    line-height: 1.2;
}

.benefit-chevron {
    font-size: 1.1rem;
    color: var(--grass-green);
    transition: transform 0.25s;
    flex-shrink: 0;
    line-height: 1;
}

.benefit-card.expanded .benefit-chevron {
    transform: rotate(180deg);
}

.benefit-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--space-m);
}

.benefit-card.expanded .benefit-body {
    max-height: 200px;
    padding: 0 var(--space-m) var(--space-m);
}

.benefit-body p {
    margin: 0;
    font-size: 0.9rem;
    color: #222222;
    line-height: 1.6;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding-top: var(--space-s);
}

/* ======================================
   Details Section
   ====================================== */
.details-layout {
    display: flex;
    gap: var(--space-m);
    align-items: stretch;
}

.details-info-card {
    flex: 1 1 0;
    min-width: 0;
}

.details-card-title {
    color: var(--text-dark);
    text-align: left;
    margin-bottom: var(--space-xs);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.details-subtitle {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-m);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-s);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-s);
    padding: var(--space-s);
    background: rgba(124, 179, 66, 0.06);
    border: 1px solid rgba(124, 179, 66, 0.18);
    border-radius: 8px;
}

.detail-icon {
    font-size: 1.375rem;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 2px;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-content strong {
    color: var(--text-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-content span {
    color: var(--text-medium);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.details-partner-card {
    flex: 1 1 0;
    background: rgb(170, 192, 240);
    border: 3px solid rgba(138, 56, 245, 1);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.section-partner-mobile {
    display: none;
}

.details-partner-card > p:first-of-type {
    margin-top: calc(var(--space-s) * 1.5);
}

.details-partner-card > p + p {
    margin-top: 0.3rem;
}

.partner-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.powered-by-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-medium);
}

.partner-identity {
    display: flex;
    align-items: center;
    gap: calc(var(--space-s) * 1.8);
}

/*
 * Optical centering of logo against "neuland.ai" text:
 * align-items: center aligns the CSS *boxes*, not the visual content.
 * The line box for the text reserves space below the baseline for descenders
 * (g, j, y…) even though "neuland.ai" has none — this drags the geometric
 * center of the line box upward, making the logo appear too high.
 * translateY nudges the logo down to match the optical/visual center of the
 * letter bodies. margin/padding was avoided because those affect layout and
 * would shift the "Camp Details" alignment in the adjacent card.
 */
.partner-logo {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    transform: translateY(3px);
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 2.31rem;
    font-weight: 600;
    color: #8a38f5;
    line-height: 1.2;
}

.details-partner-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.65;
}

.partner-link {
    align-self: flex-start;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8a38f5;
    text-decoration: none;
    margin-top: 0.4rem;
}

.partner-link:hover {
    text-decoration: underline;
}

.about-instructor {
    padding-top: var(--space-l);
    border-top: 2px solid var(--stone-gray);
    margin: 0;
}

/* ======================================
   Signup Section
   ====================================== */
.section-signup {
    background: transparent;
}

.signup-card {
    background: var(--cloud-white);
    padding: var(--space-l);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.signup-card h2 {
    color: var(--grass-green);
}

.signup-subtitle {
    margin-bottom: var(--space-l);
    color: var(--text-medium);
}

.signup-form {
    margin-bottom: var(--space-m);
}

.form-group {
    display: flex;
    gap: var(--space-s);
    margin-bottom: var(--space-s);
}

.form-group input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--stone-gray);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--text-dark);
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.form-group input::placeholder {
    color: var(--stone-gray);
}

.form-group input:focus {
    outline: none;
    border-color: var(--grass-green);
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: var(--redstone-red);
}

.form-message {
    padding: var(--space-s);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(124, 179, 66, 0.1);
    color: var(--grass-green-dark);
    border: 2px solid var(--grass-green);
}

.form-message.error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    color: var(--redstone-red);
    border: 2px solid var(--redstone-red);
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin: 0;
}

/* ======================================
   Session Date Cards
   ====================================== */
.session-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
    margin-top: var(--space-m);
    text-align: left;
    padding-bottom: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.session-card {
    --depth-color: #8a8a8a;
    border-radius: 12px;
    overflow: hidden;
    background: #f6f6f6;
    box-shadow:
        0 5px 0 0 var(--depth-color),
        0 8px 20px rgba(0, 0, 0, 0.13);
    transform: translateY(0);
    transition: transform 0.13s ease, box-shadow 0.13s ease;
}

.session-card.status-green {
    --depth-color: var(--grass-dark);
    border-left: 5px solid var(--grass-green);
    background: linear-gradient(to right, #c4f082 0%, #cdf098 10%, #a2edde 70%, #c8cae8 95%, #d8cde8 100%);
}
    /*background: linear-gradient(to right, #b7ed70 0%, #c1ee86 10%, #8cead8 70%, #b7bae1 95%, #ccbde0 100%);*/
.session-card.status-yellow {
    --depth-color: #b36b00;
    border-left: 5px solid #F9A825;
    background: linear-gradient(to right, #ede870 0%, #f2ec90 10%, #f0b080 70%, #e0a8d8 95%, #d8cde8 100%);
}

.session-card.status-full {
    --depth-color: #9e9e9e;
    background: #f2f2f2;
    opacity: 0.55;
}

.session-card:not(.status-full):not(.open):hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 0 0 var(--depth-color),
        0 13px 30px rgba(0, 0, 0, 0.18);
}

.session-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-m) var(--space-l);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    transition: background 0.15s ease;
}

.session-card.status-full .session-card-header { cursor: default; }
.session-card:not(.status-full):not(.open) .session-card-header:hover { background: rgba(255, 255, 255, 0.5); }

.session-info {
    display: flex;
    align-items: center;
    gap: var(--space-s);
}

.session-right {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    flex-shrink: 0;
}

.session-status-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--stone-gray);
    flex-shrink: 0;
    transition: background 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.status-green .session-status-dot { background: var(--grass-green); }
.status-yellow .session-status-dot { background: #F9A825; }

.session-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.session-weekday {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.session-date-text {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.session-right-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.session-spots-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    white-space: nowrap;
}

.status-green .session-spots-label { color: var(--grass-green-dark); }

.session-price-label {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.session-price-free { color: var(--grass-green-dark); }
.session-price-paid { color: var(--text-dark); }

.session-chevron {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-right: 2.5px solid var(--stone-gray);
    border-bottom: 2.5px solid var(--stone-gray);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.22s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.status-green .session-chevron { border-color: var(--grass-green-dark); }
.status-yellow .session-chevron { border-color: #9a5500; }

.session-card.open .session-chevron {
    transform: rotate(-135deg) translateY(-2px);
}
.status-yellow .session-spots-label { color: #9a5500; }

.session-form-wrapper {
    padding: var(--space-m) var(--space-l);
    background: transparent;
}

.session-form-wrapper .signup-form {
    margin-bottom: var(--space-xs);
}

.session-confirm-notice {
    color: var(--grass-green-dark);
    font-weight: 600;
    padding: var(--space-s) 0;
    margin: 0;
}

@media (max-width: 768px) {
    .session-card-header {
        padding: var(--space-m);
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .session-form-wrapper {
        padding: var(--space-m);
    }
}

.session-hinweis {
    font-size: 0.8rem;
    color: var(--text-muted, #666);
    margin-top: var(--space-s);
    text-align: center;
}

/* ======================================
   Footer
   ====================================== */
.footer {
    background: linear-gradient(to bottom, var(--dirt-brown) 0%, var(--dirt-brown-dark) 100%);
    position: relative;
    margin-top: var(--space-xxl);
    padding-top: 0;
}

.grass-strip {
    background: var(--grass-green);
    height: 50px;
    position: relative;
    overflow: visible;
}

.grass-strip .grass-blades {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background-image: url('../assets/svg/grass-blades.svg');
    background-repeat: repeat-x;
    background-position: bottom left;
    background-size: auto 100%;
}

.grass-strip .flowers {
    width: 100%;
    height: 60px;
    position: absolute;
    bottom: 50px;
    left: 0;
    z-index: 2;
    background-image: url('../assets/svg/flowers.svg');
    background-repeat: repeat-x;
    background-position: bottom left;
    background-size: auto 100%;
}

.footer-content {
    padding: var(--space-l) 0;
    color: var(--cloud-white);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-l);
    margin-bottom: var(--space-s);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--cloud-white);
    font-size: 0.875rem;
    text-decoration: none;
    transition: opacity 0.2s ease-out;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-links a:focus {
    outline: 3px solid var(--cloud-white);
    outline-offset: 2px;
}

.copyright {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.9;
}

/* ======================================
   Legal Pages (Impressum, Datenschutz, Kontakt)
   ====================================== */
body:has(.legal-page) {
    background: linear-gradient(
        to bottom,
        var(--sky-blue-light) 0%,
        var(--sky-blue-deep) 40%,
        var(--sky-blue-deep) 92.5%,
        #6FA84D 100%
    );
}

body:has(#datenschutz) {
    background: linear-gradient(
        to bottom,
        var(--sky-blue-light) 0%,
        var(--sky-blue-deep) 40%,
        var(--sky-blue-deep) 94%,
        #6FA84D 100%
    );
}

body:has(#impressum) {
    background: linear-gradient(
        to bottom,
        var(--sky-blue-light) 0%,
        var(--sky-blue-deep) 40%,
        var(--sky-blue-deep) 60%,
        #6FA84D 100%
    );
}

body:has(#kontakt) {
    background: linear-gradient(
        to bottom,
        var(--sky-blue-light) 0%,
        var(--sky-blue-deep) 40%,
        var(--sky-blue-deep) 70%,
        #6FA84D 100%
    );
}

.legal-page {
    min-height: 80vh;
    padding: var(--space-xl) 0;
}

.legal-page .content-card {
    max-width: 800px;
}

.legal-page h1 {
    color: var(--grass-green);
    margin-top: var(--space-m);
}

.legal-page h2 {
    color: var(--grass-green);
    font-size: 1.5rem;
    margin-top: var(--space-l);
}

.back-link {
    display: inline-block;
    color: var(--grass-green);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: var(--space-m);
    transition: all 0.2s ease-out;
}

.back-link:hover {
    color: var(--grass-green-dark);
    transform: translateX(-4px);
}

.back-link:focus {
    outline: 3px solid var(--grass-green);
    outline-offset: 2px;
}

/* ======================================
   Accessibility
   ====================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Skip to main content link (for keyboard users) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--grass-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ======================================
   Responsive Design - Tablet
   ====================================== */
/* Layout changes at tablet: benefit grid single-col, details stacked, partner card swap */
@media (max-width: 1199px) and (min-width: 768px) {
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .details-layout {
        flex-direction: column;
    }

    .partner-desktop-only {
        display: none;
    }

    .section-partner-mobile {
        display: block;
    }
}

/* Container margin: full 15% from 900px up to desktop breakpoint */
@media (max-width: 1199px) and (min-width: 900px) {
    .container {
        padding: 0 15%;
    }

}

/* Container margin: linearly fade from 15% at 900px down to phone default at 550px */
@media (max-width: 899px) and (min-width: 550px) {
    .container {
        padding: 0 calc(var(--space-s) + 0.34 * (100vw - 550px));
    }
}

/* ======================================
   Responsive Design - Mobile
   ====================================== */
@media (max-width: 767px) {
    :root {
        --space-xl: 3rem;
        --space-xxl: 4rem;
    }

    html {
        font-size: 16px;
    }

    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    .hero {
        min-height: min(100vh, 850px);
        padding: var(--space-l) 0 calc(var(--space-l) + 12vh);
    }

    .scroll-arrow {
        bottom: calc(1.5rem + 6vh);
    }

    .command-block-hero {
        width: 280px;
        height: auto;
        margin-bottom: -43px;
    }

    .content-card {
        padding: var(--space-m);
        border-radius: 8px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
        gap: var(--space-s);
    }

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

    .signup-card {
        padding: var(--space-m);
    }

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

    .form-group input,
    .form-group button {
        width: 100%;
    }

    .footer-links {
        flex-direction: row;
        gap: var(--space-m);
    }

    /* Simplify cloud animations on mobile */
    .cloud-4,
    .cloud-5 {
        display: none;
    }

    /* Scale clouds to ~50% and spread to avoid overlap */
    .cloud-1 { width: 100px; top: 5%; left: 5%; }
    .cloud-2 { width: 80px; top: 22%; right: 4%; }
    .cloud-3 { width: 75px; top: 44%; left: 60%; }
    .cloud-6 { width: 70px; top: 12%; left: 40%; }

    /* Shrink grass decoration */
    .grass-strip { height: 35px; }
    .grass-strip .flowers { height: 38px; bottom: 35px; }

    section {
        padding: var(--space-l) 0;
    }

    .details-layout {
        flex-direction: column;
    }

    .partner-desktop-only {
        display: none;
    }

    .section-partner-mobile {
        display: block;
    }
}

/* Hero fluid scaling: all elements scale together 550px → 1199px */
@media (min-width: 550px) and (max-width: 1199px) {
    .hero h1 {
        font-size: calc(2.462vw + 22.46px);   /* 36px → 52px */
    }
    .hero-subtitle {
        font-size: calc(1.54vw + 15.53px);    /* 24px → 34px */
    }
    .hero .btn-primary {
        font-size: calc(0.77vw + 11.76px);    /* 16px → 21px */
        padding: 0.75em 1.75em;
    }
    .command-block-hero {
        width: calc(21.57vw + 161.37px);          /* 280px → 420px */
        margin-bottom: calc(-2.31vw - 30.3px);    /* -43px → -58px */
    }
}

/* ======================================
   Short Viewport — landscape tablets/phones (covers Galaxy Tab 800px, iPad 768px)
   ====================================== */
@media (max-height: 850px) {
    .hero {
        padding-top: 1.5rem;
        padding-bottom: calc(1.5rem + 60px);
    }
    .scroll-arrow {
        bottom: 0.75rem;
    }
}

/* ======================================
   Tall Portrait Tablets — cap hero so sky doesn't dominate (768px–1199px wide)
   ====================================== */
@media (min-width: 768px) and (max-width: 1199px) and (min-height: 900px) {
    .hero {
        min-height: min(100vh, 900px);
        padding-bottom: calc(var(--space-xxl) + 5vh);
    }
}

/* ======================================
   Desktop Scaling (+10%)
   ====================================== */
@media (min-width: 1200px) {
    html {
        font-size: 17.6px;
    }

    .command-block-hero {
        width: 462px;
        margin-bottom: -64px;
    }

    /* Pin footer to original sizes */
    .footer-links a,
    .copyright {
        font-size: 14px;
    }

    .footer-content {
        padding: 40px 0;
    }
}

/* ======================================
   Print Styles
   ====================================== */
@media print {
    .background-sky,
    .cloud,
    .command-block-hero,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* ======================================
   FAQ Section
   ====================================== */
.section-faq {
    background: transparent;
}

.faq-list {
    padding: 0;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.faq-link-item {
    border-bottom: 3px solid rgba(104, 149, 56, 0.35);
}

.faq-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-m);
    padding: var(--space-m) var(--space-l);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--grass-green-dark);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.faq-link:hover {
    background: rgba(124, 179, 66, 0.08);
    color: var(--grass-green);
}

.faq-link-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--grass-green);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-m);
    padding: var(--space-m) var(--space-l);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: background 0.15s ease;
}

.faq-question:hover {
    background: rgba(124, 179, 66, 0.06);
}

.faq-arrow {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--grass-green);
    transition: transform 0.22s ease-out;
    display: inline-block;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
    height: 0;
    transition: height 0.22s ease-out;
}

.faq-answer-inner {
    padding: 0 var(--space-l) var(--space-m);
    color: var(--text-medium);
}

.faq-answer-inner p {
    margin-bottom: 0.75em;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner strong {
    color: var(--text-dark);
}

@media (max-width: 767px) {
    .faq-question {
        padding: var(--space-m);
        font-size: 1rem;
    }

    .faq-link {
        padding: var(--space-m);
        font-size: 1rem;
    }

    .faq-answer-inner {
        padding: 0 var(--space-m) var(--space-m);
    }
}

/* ======================================
   Contact Page Styles
   ====================================== */

.contact-page .contact-intro {
    margin-bottom: var(--space-l);
    line-height: 1.7;
}

.contact-page .contact-intro p:first-child {
    font-size: 1.125rem;
    color: var(--text-dark);
}

.contact-form {
    margin-bottom: var(--space-l);
}

.contact-form .form-group {
    display: block;
    margin-bottom: var(--space-m);
}

.contact-form .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-form .form-group input[type="email"],
.contact-form .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--stone-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.contact-form .form-group input[type="email"]:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--grass-green);
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

.contact-form .form-group input[type="email"]::placeholder,
.contact-form .form-group textarea::placeholder {
    color: var(--stone-gray);
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-top: 0.25rem;
}

.error-message {
    display: block;
    color: var(--redstone-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.input-error {
    border-color: var(--redstone-red) !important;
}

.form-messages {
    margin-top: var(--space-m);
}

.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: var(--space-m);
    border-radius: 8px;
    margin-bottom: var(--space-m);
}

.error-message-box {
    background: #f8d7da;
    border: 2px solid var(--redstone-red);
    color: #721c24;
    padding: var(--space-m);
    border-radius: 8px;
    margin-bottom: var(--space-m);
}

.error-message-box a {
    color: #721c24;
    text-decoration: underline;
}

.contact-info {
    margin-bottom: var(--space-m);
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: var(--space-s);
    color: var(--text-dark);
}

.contact-info a {
    color: var(--grass-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #689F38;
    text-decoration: underline;
}

.response-time {
    margin-top: var(--space-s);
    font-style: italic;
    color: var(--text-medium);
}

.privacy-notice {
    border-top: 1px solid var(--stone-gray);
    padding-top: var(--space-s);
    color: var(--text-medium);
}

.privacy-notice a {
    color: var(--grass-green);
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* Contact form button override */
.contact-form .btn-primary {
    width: 100%;
    max-width: 300px;
    margin: var(--space-m) auto 0;
    display: block;
}

.contact-form .btn-primary:disabled {
    background: var(--stone-gray);
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .contact-form .btn-primary {
        max-width: 100%;
    }
}

/* ======================================
   About Instructor Section (Banner with Text Overlay)
   ====================================== */
.section-about-instructor {
    padding: var(--space-xl) 0;
}

.about-banner {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-l);
    min-height: 260px;
}

.about-text {
    max-width: 63%;
    background: transparent;
    padding: 0;
    padding-left: var(--space-l);
    margin-top: calc(var(--space-l) * 0.4);
}

.about-details {
    max-width: 89.3%; /* of .about-text → ≈56.25% of banner */
}

.about-heading {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    margin-bottom: calc(var(--space-m) * 0.7);
}

.about-profile-photo {
    display: none;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--grass-green);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--sky-blue-light);
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-left: 0;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #FFFFFF;
    margin: 0 0 0.56rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.about-intro {
    font-weight: 600;
    margin: 0.42rem 0 0.56rem 0; /* reduced original gaps by ~30% */
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.about-text li {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: 0.7rem; /* reduced 30% from var(--space-s) */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding-left: 1.5rem;
    position: relative;
}

.about-text li:last-child {
    margin-bottom: 0;
}

.about-text li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--sky-blue-light);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .about-text {
        max-width: 77%;
        padding-left: var(--space-l);
        margin-top: calc(var(--space-l) * 0.7);
    }

    .about-text h2 {
        font-size: 2.16rem;
    }

    .about-text p {
        font-size: 1.15rem;
    }
}

@media (max-width: 949px) {
    /* Separate photo and text: text card on top, image below */
    .about-banner {
        display: flex;
        flex-direction: column;
        overflow: visible;
        background: var(--cloud-white);
    }

    .banner-image {
        display: none;
    }

    .banner-overlay {
        position: static;
        min-height: auto;
        padding: var(--space-m);
        border-radius: 8px;
    }

    .about-text {
        max-width: 100%;
        padding: 0;
        margin-top: 0;
    }

    .about-heading {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .about-profile-photo {
        display: block;
        border-color: var(--grass-green);
        border-width: 1.5px;
        width: 72px;
        height: 72px;
    }

    .about-text h2 {
        font-size: 1.75rem;
        color: var(--grass-green);
        text-shadow: none;
    }

    .about-text p {
        font-size: 1rem;
        color: var(--text-dark);
        text-shadow: none;
    }

    .about-text li {
        font-size: 1rem;
        color: var(--text-dark);
        text-shadow: none;
    }

    .about-text li::before {
        color: var(--grass-green);
    }
}

/* Anchor image left at mid-range widths: crops ~90px from right, shifts person rightward */
@media (min-width: 950px) and (max-width: 1399px) {
    .banner-image {
        object-position: 32% center;
    }
}
