/* ==========================================================================
   1. GEMEINSAME BASIS-STYLES (Für alle Seiten gültig)
========================================================================== */

/* Płynne przewijanie */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #fdf6f0;
    /* Sanftes Cremeweiß */
    color: #5a5a5a;
    /* Standard-Textfarbe für die Hauptseite */
}

header {
    background-color: #d4e2d4;
    /* Pastellgrün */
    text-align: center;
    padding: 40px 20px;
}

section {
    padding: 50px 20px;
    /*  geändert von padding: 10px 20px;  */
    max-width: 900px;
    margin: auto;
}

.nav-main,
.nav-blog {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    /* #fff und white ist dasselbe */
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    text-align: center;
}


/* ==========================================================================
   2. STYLES FÜR HAUPTSEITE (index.html)
========================================================================== */

/* Design & Farben */

.nav-main {
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* section {
    padding: 10px 20px;
    max-width: 900px;
    margin: auto;   
} Section vom Blog - prüfen und wegwerfen */

h1 {
    color: #1d4f1d;
    font-size: 2.2em;
}

h2 {
    color: #1d4f1d !important;
    /* !important stellt sicher, dass die Farbe gewinnt */
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Falls gewünscht */
    font-weight: 600;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1.8em;
    font-weight: 600;
}

h3 {
    color: #1d4f1d;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Falls gewünscht */
    font-weight: bold;
    margin-top: 1em;
    font-size: 1.3em;
    font-weight: 600;
}

.h4 {
    /* Diese Werte erbt sie vom Body */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #211b1b;
    font-size: 1.1em;
    font-weight: bold;
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
}

.subtitle {
    font-size: 1.4em;
    font-weight: 650;
    margin-top: 0;
    color: #1d4f1d;
}

.location {
    font-size: 1.9em;
    color: #1d4f1d;
    display: block;
}

/* Lehrer-Bereich */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.teacher-card {
    background: white;
    max-width: 350px;
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.avatar {
    max-width: 100%;
    /* Geändert */
    height: auto;
    /* Geändert, damit das Seitenverhältnis stimmt */
    aspect-ratio: 350 / 600;
    /* Behält dein gewünschtes Format bei */
    /* width: 350px;  /*  /* Das Bild wird nie breiter als die Karte */
    /* height: 600px; /*      /* Die Höhe passt sich automatisch an, nichts wird verzerrt */
    border-radius: 10px;
    /* Ein leicht abgerundeter Rand sieht edler aus als harte Ecken */
    margin: 0 auto 15px;
    /* Zentriert das Bild und gibt Abstand nach unten */
    display: block;
    /* Verhindert kleine Abstände unter dem Bild */
    object-fit: cover;
    /* schneidet das Bild sauber zu */
    object-position: 60% center;
    /* zentriert den Fokus */
}

/* Lageplan-Platzhalter */
.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #d4e2d4;
    /* Pastellgrün */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 2px dashed #8fa98f;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
}

.text-block {
    line-height: 1.6;
    color: #000000;
    text-align: center
}

.polityka-block {
    line-height: 0.95;
    color: #000000;
    text-align: justify
}

.polityka-block h1 {
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 1.5rem;
    text-align: center;
}

.polityka-block h2 {
    font-size: 1.3rem;
    margin-top: 0.8em;
    margin-bottom: 1rem;
    text-align: left;
}

.polityka-block p {
    margin-bottom: 1rem;
}

.polityka-block ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    text-align: left;
}

.polityka-block a {
    color: #2c6fb7;
    text-decoration: none;
    font-weight: 500;
}

.polityka-block a:hover {
    text-decoration: underline;
}

.about-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.6;
    color: #000000;
    font-size: 1.05em;
}

.about-story {
    font-family: sans-serif;
    padding: 40px 20px;
}

#about {
    padding-top: 0;
}

#about-story {
    text-align: center;
}

.center-text {
    text-align: center;
}

.cta-button {
    display: table;
    margin: 25px auto 0 auto;
    text-align: center;
    margin-top: 25px;
    padding: 14px 30px;
    background: #d27d6b;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* HERO IMAGE / SLIDER  */

.hero-slider {
    width: 100%;
    overflow: hidden;
}

.hero-slider img {
    width: 100%;
    display: block;
    margin-bottom: -14px; /* Verdeckt den versehentlich im Bild verbliebenen weißen Rand */
}

/* Hero Slider Animation */

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-image img {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    display: block;
}

/* END HERO IMAGE / SLIDER */

/* TESTIMONIALS */

.testimonial-section {
    background: #d4e2d4;
    width: 100%;
    max-width: 100%;
    padding: 60px 20px;
    overflow: hidden;
    padding-top: 5px;
    padding-bottom: 25px;
    padding-left: 25px;
    padding-right: 25px;
}

.testimonial-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.testimonial-slider {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollTestimonials 60s linear infinite;
}

.testimonial-card {
    width: 320px;
    flex-shrink: 0;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    line-height: 1.6;
    color: #444;
}

.testimonial-card span {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #1d4f1d;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* END TESTIMONIALS */

/* BEGIN LOGO */
.logo {
    position: fixed;
    top: 80px;
    right: 45px;
    z-index: 9999;
}

.logo img {
    width: 190px;
    height: auto;
    display: block;
}

/* END LOGO */

/* BEGIN HAMBURGER MENU */
#menu-button {
    position: fixed;
    top: 65px;
    left: 25px;
    z-index: 9999;
    background: rgba(255, 255, 255, .85);
    border: none;
    border-radius: 12px;
    font-size: 40px;
    font-weight: bold;
    width: 70px;
    height: 70px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

#mobile-menu {
    position: fixed;
    top: 42px;
    left: -300px;
    width: 200px;
    height: 240px;
    background: white;
    transition: .3s;
    padding-top: 140px;
    z-index: 9998;
    box-shadow: 4px 0 20px rgba(0, 0, 0, .15);
}

#mobile-menu.open {
    left: 0;
}

#mobile-menu a {
    display: block;
    padding: 20px 35px;
    text-decoration: none;
    color: #1d4f1d;
    font-size: 22px;
    font-weight: 600;
}

/* END HAMBURGER MENU */


/* ==========================================
   SCHEDULE / PLAN ZAJEC / STUNDENPLAN
========================================== */

.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px auto;
}

.schedule-card {
    padding: 30px;
    border-radius: 18px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.schedule-card h3 {
    text-align: left;
    margin: 8px 0 12px;
}

.schedule-day {
    margin: 0;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-weight: 600;
}

.schedule-card h3 {
    margin: 12px 0;
    font-size: 1.7rem;
}

.schedule-course {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 20px;
}

.schedule-time,
.schedule-phone-text,
.schedule-phone {
    font-size: 1.05rem;
    margin: 8px 0;
}

.schedule-phone a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.schedule-link {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #2c6fb7;
    /* Blau */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.schedule-link:hover {
    color: #1f4f85;
    /* dunkleres Blau */
    text-decoration: underline;
}

/* Pastellfarben */

.monday {
    background: #eef7e8;
}

.wednesday {
    background: #eef7fb;
}

.thursday {
    background: #fff4e8;
}

.massage {
    background: #f8f2eb;
}

/* End schedule */


/* ==========================================================================
   3. STYLES FÜR BLOG (blog.html) UND ARTICLES
========================================================================== */

.blog-post {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px 60px;
    color: #2d2d2d;
    box-sizing: border-box;
}

body.blog-page {
    color: #444;
    /* gilt anstatt der Basis Styles*/
}

section {
    max-width: 1100px;
    margin: auto;
    padding: 25px 30px 20px;
}

.blog-page header {
    padding: 1px 1px;
}

header h1 {
    color: #1d4f1d;
    font-size: 3em;
}

.blog-page header h1 {
    margin: 10px 0 0 0;
}

header p {
    color: #1d4f1d;
    font-size: 1.2em;
}

/**********************
NAVIGATION
**********************/

nav {
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

nav a {
    color: #1d4f1d;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
}

/**********************
HERO
**********************/

.hero {
    position: relative;
    z-index: 0;
}

.hero h1 {
    position: relative;
    left: 10px;
}

.hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/**************************************************
 FEATURED ARTICLE
**************************************************/

.featured-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    margin-bottom: 30px;
}

.featured-post img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-post .content {
    padding: 35px;
}

.featured-post h2 {
    color: #1d4f1d;
    margin-top: 10px;
}


/**********************
POST GRID
**********************/

.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/**********************
CARD
**********************/

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    transition: .3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    width: 90%;
    height: auto;
    object-fit: contain;
    /* sorgt dafür, dass nichts abgeschnitten wird */
    /* cover; - dann wird angeschnitten */
    margin-top: 20px;
    /* Schiebt das Bild um 15 Pixel nach unten */

    margin-left: auto;
    /* Diese beiden Zeilen zentrieren das Bild horizontal: */
    margin-right: auto;
    /* Diese beiden Zeilen zentrieren das Bild horizontal: */

    display: block;
    /* Verhindert unerwünschte Abstände nach unten */
}

.content {
    padding: 25px;
}

.category {
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8em;
}

.card h2 {
    color: #1d4f1d;
    margin-top: 10px;
}

/**********************
TEXT PREVIEW
**********************/

.preview {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

/**********************
BUTTON
**********************/

.readmore {
    display: inline-block;
    margin-top: 20px;
    color: white;
    background: #d27d6b;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

/**********************
FOOTER
**********************/

.footer {
    padding: 30px 20px;
    font-size: 0.9em;
    text-align: center;
    background-color: #efefef;
    /* Minimal dunkleres Grau */
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-social a {
    display: inline-flex;
}

.footer-social img {
    width: 30px;
    height: 30px;
    opacity: 0.9;
    transition: transform .2s ease, opacity .2s ease;
}

.footer-social img:hover {
    opacity: 1;
    transform: scale(1.12);
}

.footer-links {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    font-size: 0.95rem;

    display: flex;
    justify-content: center;
    gap: 0;
}

.footer-links li + li::before {
    content: "|";
    margin: 0 14px;
    opacity: .6;
}

.footer-links a {
    text-decoration: none;
}

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

/**********************************************
Teil vom FOOTER - Vergrößerung einzelner Images
**********************************************/

.footer-social img {       /*** Instagram Icon ***/
    width: 32px;
    height: 32px;
}

.footer-social img.icon-large {   /*** FB Icon ***/
    width: 38px;
    height: 38px;
}

/**********************************************
EIN/AUS SCHALTER für Elemente, z.B. Logo
**********************************************/

/* Desktop */
.logo img {
    width: 220px;
}

/* Tablet */
@media (max-width: 1024px) {
    .logo img {
        width: 160px;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    .logo {
        display: none;
    }
}

/**********************************************
Footer Document Name
**********************************************/
.document-name {
    color: black;
    font-size: 0.7rem;
    text-align: center;
    opacity: 0.5;
    margin-top: 3rem;
}