* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-green: #0f4f51;
    --tuefteln-green: #7fba45;
}

body {
    font-family: 'Avenir Next', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Placeholder for the background image */
    background-image:
        linear-gradient(rgba(255, 248, 225, 0.14), rgba(255, 248, 225, 0.14)),
        url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #fffaf0;
}

.overlay {
    background-color: rgba(255, 250, 238, 0.05);
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

header {
    z-index: 2;
    margin-bottom: -90px; /* Zieht das Logo in die Box hinein */
}

.logo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5); 
    border: 6px solid rgba(255, 255, 255, 0.95);
    opacity: 0.95;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.32);
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.4); /* Vergrößert nur den Inhalt innerhalb des Kreises */
}

main {
    background: rgba(205, 166, 98, 0.44);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 24px;
    border: 1px solid rgba(255, 228, 168, 0.6);
    padding: 110px 50px 50px; /* Oben Platz lassen für das Logo */
    max-width: 800px;
    box-shadow: 0 12px 28px rgba(67, 38, 10, 0.28);
    z-index: 1;
    color: var(--brand-green);
}

main h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--brand-green);
    text-shadow: 0 1px 2px rgba(255, 235, 194, 0.28);
    letter-spacing: 1px;
}

main p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0 auto 25px;
    text-shadow: none;
}

.contact-info {
    margin-top: 30px;
    margin-bottom: 30px;
    background-color: rgba(236, 207, 145, 0.36);
    padding: 25px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 224, 160, 0.46);
    box-shadow: 0 8px 18px rgba(67, 38, 10, 0.16);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-info a {
    color: var(--brand-green);
    text-decoration: underline;
}

.contact-info a:hover {
    color: #0b3d3f;
    text-decoration: none;
}

.courses-box {
    background: rgba(205, 166, 98, 0.44);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 24px;
    border: 1px solid rgba(255, 228, 168, 0.6);
    padding: 45px 35px;
    width: 100%;
    max-width: 980px;
    box-shadow: 0 12px 28px rgba(67, 38, 10, 0.28);
    z-index: 1;
    margin-top: 24px;
    color: var(--brand-green);
}

.courses-section {
    margin-top: 0;
    text-align: left;
}

.courses-section h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    text-align: center;
}

.courses-section > p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: center;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.course-grid > .course-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 460px);
}

.course-card {
    background: rgba(229, 198, 135, 0.32);
    border: 1px solid rgba(255, 223, 157, 0.44);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(67, 38, 10, 0.14);
}

.course-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.course-meta {
    font-size: 0.95rem;
    color: rgba(15, 79, 81, 0.9);
    margin-bottom: 10px;
}

.course-card p {
    font-size: 1.02rem;
    margin-bottom: 0;
}

.course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tuefteln-green);
    color: var(--brand-green);
    border: 1px solid rgba(40, 92, 22, 0.46);
    border-radius: 999px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.button-alt {
    background: rgba(255, 245, 219, 0.95);
    color: var(--brand-green);
}

footer {
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
    z-index: 2;
    margin-top: 15px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
}

footer a {
    color: rgba(255, 236, 194, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffe4ab;
    text-decoration: underline;
}

.text-page main {
    padding: 60px 40px;
    max-width: 900px;
    margin: auto;
}

.text-page main p {
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.text-page main h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.text-page .back-link {
    color: #ffe4ab;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
}

.text-page .back-link:hover {
    text-decoration: underline;
}

/* Anpassungen für kleinere Bildschirme (Smartphones) */
@media (max-width: 768px) {
    .overlay {
        padding: 30px 15px;
    }

    header {
        margin-bottom: -70px;
    }

    .logo {
        width: 150px;
        height: 150px;
        border-width: 4px;
    }

    .logo-image {
        transform: scale(1.28);
    }

    .logo:hover .logo-image {
        transform: scale(1.34);
    }

    main {
        padding: 90px 25px 30px;
        border-radius: 18px;
    }

    .courses-box {
        padding: 28px 18px;
        border-radius: 18px;
        margin-top: 18px;
    }

    main h1 {
        font-size: 2.2rem;
    }

    main p {
        font-size: 1.15rem;
    }

    .contact-info {
        padding: 20px;
    }

    .courses-section h2 {
        font-size: 1.8rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .course-grid > .course-card:last-child:nth-child(odd) {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }

    .course-card {
        padding: 16px;
    }

    .course-card h3 {
        font-size: 1.15rem;
    }

    .course-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}