/* Hero Section */
#hero {
    background-color: var(--bg-accent); /* Light background for hero */
    text-align: center;
    padding-top: 40px; /* Less padding if header is sticky */
    padding-bottom: 40px;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.hero-text h2 {
    color: var(--text-primary); /* Override default h2 color for Hero */
    font-size: 2.5rem;
}
.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Price Info Banner */
.price-info-banner {
    margin: 2rem 0;
    padding: 0.75rem 1rem;
    background-color: rgba(var(--accent-main-rgb, 255, 219, 88), 0.5);
    border-left: 4px solid var(--accent-main);
    border-radius: var(--border-radius);
    text-align: center;
}
html[data-theme="dark"] .price-info-banner {
    background-color: rgba(var(--accent-main-rgb, 255, 219, 88), 0.3);
}
.price-info-banner .price-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Levels Section (Tiles) */
.levels-section h2 { text-align: center; }
.tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background-color: var(--bg-secondary); /* Use theme variable */
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-color), 0 0 15px var(--accent-main), 0 0 20px var(--card-glow-color);
}

.tile h3 {
    color: #B9943C; /* Updated color as requested */
    margin-bottom: 0.5em;
}
.tile p {
    color: var(--text-secondary);
    margin-bottom: 1rem; /* Add some space before the button */
}

.tile .btn-tile-cta {
    margin-top: auto; /* Pushes button to the bottom if tile content varies */
    width: 100%; /* Make button full width of tile */
    padding: 0.6rem 1rem; /* Slightly smaller padding for tile buttons */
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    background-color: var(--bg-secondary); /* Use theme variable if it's an "even" section, or var(--bg-primary) if odd */
    text-align: center; /* Center the button */
}
section:nth-child(odd).about-section { /* If it's an odd section */
    background-color: var(--bg-primary);
}
section:nth-child(even).about-section { /* If it's an even section */
     background-color: var(--bg-secondary);
}

.about-section p {
    max-width: 800px; /* Improve readability */
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    color: var(--text-secondary);
}
.about-section h2 { text-align: center; }

#about-summary p {
    margin-bottom: 1em;
}

.about-full-content-hidden {
    display: none;
    margin-top: 1.5rem; /* Space above the full content when shown */
    margin-bottom: 1.5rem; /* Space below full content before button */
}

.about-full-content-shown {
    display: block; /* Default block display, can be flex/grid if needed for layout */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-image-container {
    max-width: 300px; /* Control image size */
    margin: 0 auto 1.5rem auto; /* Center image and add space below */
    border-radius: var(--border-radius);
    overflow: hidden; /* To respect border-radius on image */
    /*box-shadow: 0 4px 8px var(--shadow-color);*/
    box-shadow: 0 4px 6px var(--shadow-color), 0 0 15px var(--accent-main), 0 0 20px var(--card-glow-color);
}

#michelle-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius); /* If image itself needs rounding */
}

.about-full-text p {
    text-align: justify;
    margin-bottom: 1em;
}

#read-more-about-btn {
    margin-top: 1rem; /* Space above the button */
    display: inline-block; /* To allow centering via text-align on parent */
}

/* Contact Section */
.contact-section h2 { text-align: center; }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.form-column {
    display: flex; /* Allows button and form wrapper to stack nicely */
    flex-direction: column;
    align-items: center; /* Center the button and character container */
}

.btn-book-classes {
    width: 100%; /* Make the button take full width of its column */
    margin-bottom: 1.5rem; /* Space below the button when form is hidden */
}

.form-hidden {
    display: none;
}

.contact-form-container {
    background-color: var(--bg-secondary); /* Use theme variable */
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-color), 0 0 15px var(--accent-main), 0 0 20px var(--card-glow-color);
    transition: background-color 0.3s ease;
    position: relative; /* For close button and corner decorations */
    overflow: hidden; /* To contain the corner decorations */
}

.contact-form-container::before,
.contact-form-container::after {
    content: '';
    position: absolute;
    width: 70px; /* Adjusted size for the image */
    height: 70px; /* Adjusted size for the image */
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1; /* Below form content */
    pointer-events: none; /* Make sure they don't block clicks */
}

.contact-form-container::before {
    top: -5px; /* Position slightly outside */
    left: -5px; /* Position slightly outside */
    background-image: url('/corner-top-left.png');
}

.contact-form-container::after {
    bottom: -5px; /* Position slightly outside */
    right: -5px; /* Position slightly outside */
    background-image: url('/corner-bottom-right.png');
}

.contact-form-container h3, .direct-contact-container h3 {
    margin-top: 0;
    color: var(--accent-secondary);
}
.contact-form-container p, .direct-contact-container p {
    color: var(--text-secondary);
}

.direct-contact-container .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}
.dynamic-link {
    margin-top: 0.5rem; /* Space above the action link */
}
.contact-details-text {
    margin-top: 1rem;
    font-weight: bold;
    text-align: center;
    color: var(--text-primary);
}

/* Character Tile Styles */
.character-container {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.character-speech-bubble {
    position: relative;
    background: var(--bg-accent);
    border-radius: 15px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    width: 90%;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease, opacity 0.2s ease-in-out;
}

.character-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: var(--bg-accent);
    border-bottom: 0;
    margin-left: -10px;
    margin-bottom: -10px;
    transition: border-top-color 0.3s ease;
}

.character-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.character-container:hover .character-image {
    transform: scale(1.05);
}

/* Responsive Section Adjustments */
@media (min-width: 769px) { 
    .contact-layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* About section layout for larger screens */
    .about-full-content-shown {
        display: flex;
        align-items: flex-start; /* Align items to the top */
        gap: 2rem;
    }
    .about-image-container {
        flex: 0 0 250px; /* Fixed width for image container, no grow, no shrink */
        margin: 0; /* Reset margin as flex handles alignment */
    }
    .about-full-text {
        flex: 1; /* Text takes remaining space */
        text-align: left; /* Align text to left when next to image */
    }
    .about-full-text p {
        text-align: justify; /* Justify text within its container */
    }
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse; /* Image above text on mobile often good */
    }
    .contact-layout {
        grid-template-columns: 1fr; /* Stack contact form and direct contact */
    }
}

@media (max-width: 600px) {
    .hero-text h2 { font-size: 1.8rem; }
    .tile-container {
        grid-template-columns: 1fr; /* Stack tiles on very small screens */
    }
    .price-info-hero {
        display: none; /* This class is no longer used, hiding just in case. */
    }
    .price-text {
        font-size: 1rem;
        flex-wrap: wrap; /* Allow promo to wrap if needed on small screens */
        justify-content: center; /* Center items if they wrap */
    }
}

/* Hero themed heading: German/Fraktur style and per-word color */
@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook&display=swap');

.hero-themed {
    font-family: 'UnifrakturCook', 'Cinzel', Georgia, serif;
    font-size: 3rem;
    line-height: 1;
    letter-spacing: 0.02em;
    display: inline-flex;
    gap: 0.6rem;
    justify-content: center;
    align-items: baseline;
    margin: 0.25rem 0;
}
.hero-word { display: inline-block; padding: 0 0.15rem; }
.hero-learn { color: #000000; font-weight: 700; }
.hero-deutsch { color: #DD0000; font-weight: 700; }
.hero-shaelle { color: #FFCE00; font-weight: 700; text-shadow: 0 0 3px rgba(0,0,0,0.12); }

@media (max-width: 900px) {
    .hero-themed { font-size: 2rem; }
}
