/**
 * Seitenlayout: Logo-Größe, Content-Breite, Overflow-Schutz
 * Jan Hofer Tennisschule – ohne globales * { max-width: 100% }
 */

/* Overflow nur auf Medien, nicht auf Layout-Container */
img:not(.site-logo__img):not(.camp-showcase-image__img):not(.img-tenniscamp-platz):not(.camp-card__img):not(#hero-lcp-still):not(.training-hero-img),
video:not(#hero-video),
iframe,
svg {
    max-width: 100%;
    height: auto;
}

/* Navigation: Logo fest begrenzen (PNG wirkt sonst riesig) */
.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.site-logo__img {
    display: block;
    height: 2.25rem;
    width: auto;
    max-width: 10.5rem;
    max-height: 2.5rem;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 767px) {
    .site-logo__img {
        height: 2rem;
        max-width: 8.75rem;
    }
}

.site-logo--footer .site-logo__img {
    height: 2.5rem;
    max-width: 11rem;
}

/* Startseite: etwas breitere Lesefläche als max-w-3xl */
.section-content {
    width: 100%;
    max-width: 72rem; /* 1152px – entspricht max-w-6xl */
    margin-left: auto;
    margin-right: auto;
}

.section-content--wide {
    max-width: 80rem; /* 1280px – max-w-7xl */
}

.section-prose {
    width: 100%;
    max-width: 56rem; /* ~896px – Standard-Lesefläche */
    margin-left: auto;
    margin-right: auto;
}

/* Über uns & breitere Story-Blöcke */
.section-prose--wide {
    max-width: 68rem; /* ~1088px – mehr Platz, weiterhin zentriert */
}

/* Über-uns-Foto: Proportionen statt fester Pixelhöhe */
.about-hero-image-frame {
    width: 100%;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
}

/* Tenniscamps-Aufmacher: Portrait 602×1024 – Spieler, Netz, Platz (mittleres unteres Drittel) */
.camp-showcase-image {
    width: 100%;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 4 / 3;
    max-height: 22rem;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .camp-showcase-image {
        max-height: 27rem;
    }
}

@media (min-width: 1024px) {
    .camp-showcase-image {
        max-height: 28rem;
    }
}

.camp-showcase-image > .camp-showcase-image__img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: 50% 65%;
    display: block;
}

/* Hero + Karten auf tenniscamps (h-full-Container) */
.img-tenniscamp-platz {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: 50% 65%;
}

/* Tenniscamps: Fotos in Camp-Karten (site-layout setzt sonst height:auto → Überlappung mit Text) */
.camp-card__media {
    position: relative;
    height: 12rem;
    overflow: hidden;
    flex-shrink: 0;
}

.camp-card__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: 50% 65%;
}

.camp-card__body {
    position: relative;
    z-index: 1;
    background-color: #ffffff;
}

.camp-card__week {
    background-color: #fff7ed;
}

@media (max-width: 767px) {
    .camp-card__body {
        background-color: #ffffff;
    }

    .camp-card__week {
        background-color: #fff7ed;
    }
}

/* Marken-Logos: site-layout.css lädt nach Tailwind – img { height: auto } würde sonst h-* ignorieren */
.footer-partner-logo,
.partner-section-logo,
.review-platform-logo {
    width: auto !important;
    object-fit: contain;
    object-position: center;
}

.footer-partners__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem 1.5rem;
}

.footer-partners__card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    max-height: 4.5rem;
    min-width: 7.5rem;
    max-width: 11rem;
    padding: 0.625rem 1rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.footer-partners__card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.footer-partner-logo {
    height: 3rem !important;
    max-height: 3rem;
    max-width: 9.5rem;
}

.partner-section-logo {
    height: 4rem !important;
    max-height: 4rem;
    max-width: 12rem;
}

.review-platform-logo {
    height: 3rem !important;
    max-height: 3rem;
    max-width: 100%;
}

@media (min-width: 640px) {
    .review-platform-logo {
        height: 3.5rem !important;
        max-height: 3.5rem;
    }
}

/* --- Hero: Vollflächen-Video (Startseite #hero) --- */
#hero .hero-media-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#hero-video,
#hero-lcp-still,
#hero picture img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 767px) {
    #hero {
        min-height: 72vh !important;
        align-items: flex-end !important;
        padding-top: 4.5rem !important;
        padding-bottom: 0 !important;
    }

    #hero .hero-parallax-layer {
        padding-top: 0 !important;
        padding-bottom: 1.25rem !important;
    }

    #hero-video,
    #hero-lcp-still,
    #hero picture img {
        object-position: center 28%;
    }

    /* Oben heller – Sandplatz sichtbar; unten dunkler – Text lesbar */
    #hero .hero-bg-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.18) 38%,
            rgba(0, 0, 0, 0.68) 100%
        ) !important;
    }

    #hero .hero-bg-overlay-accent {
        background: linear-gradient(
            to top,
            rgba(0, 200, 81, 0.22) 0%,
            transparent 50%
        ) !important;
    }

    #hero .hero-vignette {
        background: radial-gradient(
            ellipse 130% 72% at 50% 20%,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.12) 50%,
            rgba(0, 0, 0, 0.38) 100%
        ) !important;
    }

    #hero .hero-subtitle {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Hero: Benefit-Punkte (Abstand Marker ↔ Text, Mobile-Stack) */
.hero-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.5rem;
    row-gap: 0.75rem;
}

.hero-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    max-width: 100%;
    text-align: left;
}

.hero-benefit-marker {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.4rem;
    border-radius: 9999px;
}

.hero-benefit-text {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767px) {
    .hero-benefits-list {
        flex-direction: column;
        align-items: stretch;
        row-gap: 0.875rem;
        max-width: 18.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-benefit-item {
        gap: 1rem;
        padding-left: 0.125rem;
        padding-right: 0.125rem;
    }

    .hero-benefit-marker {
        width: 0.5625rem;
        height: 0.5625rem;
        margin-top: 0.35rem;
    }
}

@media (min-width: 768px) {
    .hero-benefit-item {
        gap: 1rem;
        align-items: center;
    }

    .hero-benefit-marker {
        width: 0.5rem;
        height: 0.5rem;
        margin-top: 0;
    }
}

/* --- Hero: Training-Seite (statisches Bild) --- */
.training-hero .training-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.training-hero-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 767px) {
    .training-hero {
        min-height: 72vh !important;
        align-items: flex-end !important;
        padding-top: 4.5rem !important;
        padding-bottom: 0 !important;
    }

    .training-hero .training-hero-content {
        padding-top: 0 !important;
        padding-bottom: 1.25rem !important;
    }

    .training-hero-img {
        object-position: center 32%;
    }

    .training-hero .training-hero-bg-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.22) 38%,
            rgba(0, 0, 0, 0.72) 100%
        ) !important;
    }

    .training-hero .training-hero-bg-overlay-accent {
        background: linear-gradient(
            to top,
            rgba(0, 200, 81, 0.22) 0%,
            transparent 50%
        ) !important;
    }

    .training-hero .training-hero-badge {
        font-size: 0.8125rem;
        line-height: 1.35;
        padding: 0.5rem 1rem;
        margin-bottom: 0.75rem;
    }

    .training-hero .training-hero-lead {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.92);
    }

    .training-hero .training-hero-trust {
        flex-direction: column;
        align-items: center;
        font-size: 0.75rem;
        gap: 0.5rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .training-hero .training-hero-cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 18rem;
        margin-left: auto;
        margin-right: auto;
        gap: 0.625rem;
    }
}

.training-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Startseite: Fallback-Typografie nur unter 768px (Tailwind skaliert ab sm/md) */
@media (max-width: 767px) {
    .home-section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .home-section-lead {
        font-size: 1rem;
        line-height: 1.6;
    }

    .home-card-title {
        font-size: 1.25rem;
        line-height: 1.35;
    }
}

/* Trainer-Team: Logo-Zeile + Qualifikations-Chips */
.trainer-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.trainer-credential-logos,
.trainer-credential-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.625rem 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trainer-credential-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.5rem;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.trainer-credential-logos a:hover {
    opacity: 0.88;
}

.trainer-credential-logos a:focus-visible {
    outline: 3px solid #00c851;
    outline-offset: 3px;
}

.trainer-credential-logos img {
    width: auto !important;
    height: 2.75rem !important;
    max-height: 2.75rem;
    max-width: 7.5rem;
    object-fit: contain;
    object-position: center;
}

.trainer-credential-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #374151;
    background-color: #f0fdf4;
    border: 1px solid rgba(0, 200, 81, 0.28);
    border-radius: 9999px;
}

@media (min-width: 640px) {
    .trainer-credential-logos img {
        height: 3rem !important;
        max-height: 3rem;
        max-width: 8.5rem;
    }
}
