/*
Theme Name:   Angehoerigen-Spitex-Theme
Author:       Stanga1
Author URI:   https://stanga.net
Version:      1.0
Text Domain:  angehoerigenspitex
*/

header.header {
    padding: 28px 0;
}

header.header>.wrapper {
    position: static;
}

header .logo-white {
    position: absolute;
    top: 0;
    left: 8%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 340px;
    height: 100px;
    padding: 0;
    background-color: #68999D;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    z-index: 30;
}

header .logo-white img {
    display: block;
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 70%;
}

@media (max-width: 1023px) {
    header .logo-white {
        width: 340px;
        height: 100px;
    }
}

@media (max-width: 767px) {
    header.header {
        padding: 16px 0;
    }

    header .logo-white {
        left: 16px;
        width: 180px;
        height: 60px;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    header .logo-white img {
        max-width: 80%;
        max-height: 60%;
    }
}

header.active .logo-white {
    display: none;
}

header.active .logo-green {
    display: block;
}

/* Hero-Section: 75vh Desktop, fix kleiner auf Mobile */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 480px;
}

.hero-section>.wrapper {
    position: static;
}

/* Hero Headline — Desktop: unten zentriert über Widget */
.hero-section .hero-content-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 8% 270px;
    pointer-events: none;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    width: auto;
}

.hero-section .hero-content-container h1 {
    margin: 0;
    color: #fff;
    font-size: 64px;
    line-height: 1.15;
    font-weight: 500;
    text-align: center;
    max-width: 1100px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

@media (max-width: 1279px) {
    .hero-section .hero-content-container h1 {
        font-size: 52px;
    }
}

@media (max-width: 1023px) {
    .hero-section .hero-content-container {
        padding-bottom: 220px;
    }

    .hero-section .hero-content-container h1 {
        font-size: 42px;
    }
}

/* Mobile — Hero kürzer, Headline mittig, Widget unter Hero */
@media (max-width: 767px) {
    .hero-section {
        height: auto;
        min-height: 0;
    }

    .hero-section .hero-image,
    .hero-section .hero-image img {
        height: 60vh;
        min-height: 380px;
    }

    .hero-section .hero-content-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60vh;
        min-height: 380px;
        bottom: auto;
        align-items: center;
        padding: 80px 20px 20px;
    }

    .hero-section .hero-content-container h1 {
        font-size: 26px;
        line-height: 1.25;
    }
}

/* Bottom-Right Widget — Desktop bündig im Hero, Mobile unter Hero */
.hero-widget {
    position: absolute;
    bottom: 0;
    right: 5%;
    z-index: 25;
    width: 330px;
    height: 200px;
    padding: 22px 24px;
    background-color: #68999D;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.hero-widget__title {
    font-size: 25px;
    line-height: 1.35;
    font-weight: 400;
    margin: 0;
    color: #fff;
}

.hero-widget__cta {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    border: 1.5px solid #fff;
    border-radius: 999px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.hero-widget__cta:hover {
    background-color: #fff;
    color: #68999D;
}

@media (max-width: 1023px) {
    .hero-widget {
        width: 300px;
        height: 180px;
        right: 4%;
        padding: 20px 22px;
        gap: 14px;
    }

    .hero-widget__title {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .hero-widget {
        position: relative;
        bottom: auto;
        right: auto;
        width: calc(100% - 32px);
        height: auto;
        max-width: 420px;
        margin: 16px auto 24px;
        padding: 24px 28px;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        gap: 16px;
    }

    .hero-widget__title {
        font-size: 18px;
    }

    .hero-widget__cta {
        padding: 11px 28px;
        font-size: 14px;
    }
}