/*
 * PureLifeOnWheels – STARTSEITEN-HERO
 * Klare Texthierarchie mit feiner weisser Slogan-Kontur.
 * News-Box mit transparentem Markenfarb-Hintergrund.
 * Dezente Navigationslinks für Blog und Touren.
 */

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--hero-height-desktop, 400px);
    margin-bottom: 48px;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-hero-background, var(--color-surface));
    font-family: var(--hero-font-main, var(--font-main));
}

/* Hero-Einstellungen aus Kirby greifen nur bei ausgefüllten Feldern. */

/* ===== REISEFOTO ===== */

.home-hero-image {
    position: absolute;
    inset: 0 0 0 38%;
    z-index: 0;
}

.home-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== NEWS IM HERO ===== */

.home-hero-news {
    position: absolute;
    z-index: 3;
    right: 20px;
    bottom: 20px;
    width: min(340px, 48%);
    padding: 18px 20px;
    border-radius: 12px;

    background: var(--color-hero-news-background, var(--color-secondary));
    background: color-mix(
        in srgb,
        var(--color-hero-news-background, var(--color-secondary)) 50%,
        transparent
    );

    color: var(--color-hero-news-text, #ffffff);
    font-family: var(--hero-font-news, var(--hero-font-main, var(--font-main)));
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* Frei definierbares News-Label */

.home-hero-news-label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-hero-news-text, #ffffff);
    font-size: var(--hero-size-news-label, 1.15rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

/* Formatierter News-Titel */

.home-hero-news-title {
    margin-bottom: 10px;
    color: var(--color-hero-news-text, #ffffff);
    font-size: var(--hero-size-news-title, 0.98rem);
    line-height: 1.4;
}

.home-hero-news-title h1,
.home-hero-news-title h2,
.home-hero-news-title h3,
.home-hero-news-title h4 {
    margin: 0 0 8px;
    color: inherit;
    font-family: var(--hero-font-news, var(--font-heading));
    font-weight: 750;
    line-height: 1.25;
}

.home-hero-news-title h1 {
    font-size: var(--hero-size-news-title, 1.4rem);
}

.home-hero-news-title h2 {
    font-size: var(--hero-size-news-title, 1.25rem);
}

.home-hero-news-title h3,
.home-hero-news-title h4 {
    font-size: var(--hero-size-news-title, 1.1rem);
}

.home-hero-news-title p {
    margin: 0 0 8px;
}

.home-hero-news-title p:last-child {
    margin-bottom: 0;
}

/* Formatierter Nachrichtentext */

.home-hero-news-text {
    color: color-mix(in srgb, var(--color-hero-news-text, #ffffff) 92%, transparent);
    font-size: var(--hero-size-news-text, 0.85rem);
    line-height: 1.55;
}

.home-hero-news-text p {
    margin: 0 0 8px;
}

.home-hero-news-text p:last-child {
    margin-bottom: 0;
}

.home-hero-news-text a {
    color: var(--color-hero-news-text, #ffffff);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Optionaler Aktionslink */

.home-hero-news-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--color-hero-news-text, #ffffff);
    font-size: 0.85rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-hero-news-link:hover,
.home-hero-news-link:focus-visible {
    color: var(--color-hero-news-text, #ffffff);
    text-decoration-thickness: 2px;
}

/* ===== TEXTBEREICH ===== */

.home-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 65%;
    min-height: var(--hero-height-desktop, 400px);
    align-self: stretch;
    padding: 36px 45px;
    background: transparent;
}

/* Schräge weisse Fläche */

.home-hero-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 -2px 0;
    background: var(--color-hero-background, var(--color-surface));
    clip-path: polygon(
        0 0,
        100% 0,
        84% 100%,
        0 100%
    );
}

/* ===== ÜBERTITEL ===== */

.home-hero-eyebrow {
    position: relative;
    margin: 0 0 20px;
    color: var(--color-secondary);
    font-size: var(--hero-size-eyebrow, 0.75rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ===== SLOGAN ===== */

.home-hero h1 {
    position: relative;
    z-index: 2;
    width: max-content;
    max-width: none;
    margin: 0 0 20px;

    color: var(--color-hero-title, var(--color-dark));
    font-family: var(--hero-font-title, var(--font-heading));
    font-size: var(--hero-size-title, clamp(2rem, 2.5vw, 2.8rem));
    font-weight: var(--hero-weight-title, 800);
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;

    /* Feine, scharfe weisse Kontur */
    -webkit-text-stroke: 1px var(--color-hero-outline, #ffffff);
    paint-order: stroke fill;
}

/* ===== EINFÜHRUNGSTEXT ===== */

/*
 * Die Breite bezieht sich auf den verfügbaren
 * Inhalt innerhalb von .home-hero-content,
 * nicht auf die Breite des Browserfensters.
 */

.home-hero-intro {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    width: 85%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 30px;

    color: var(--color-text-muted);
    font-size: var(--hero-size-intro, 1rem);
    line-height: 1.7;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Absätze aus dem Kirby-Writer */

.home-hero-intro p {
    margin: 0 0 10px;
}

.home-hero-intro p:last-child {
    margin-bottom: 0;
}

/* Links und einfache Textformatierungen */

.home-hero-intro a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-hero-intro strong {
    font-weight: 700;
}

/* ===== SCHLAGWORTE UND ICONS ===== */

.home-hero-values {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    max-width: 650px;
}

.home-hero-value {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--color-secondary);
    font-size: var(--hero-size-values, 0.85rem);
    font-weight: 700;
    white-space: nowrap;
}

.home-hero-value svg {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

/* ===== BEREICHSÜBERSCHRIFTEN ===== */

.home-blog h2,
.home-tours h2 {
    margin: 0;
    color: var(--color-dark);
    font-size: var(--font-size-h2);
}

/* Überschrift links, Übersichtslink rechts */

.home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 20px;
}

/* Dezente Navigationslinks */

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.home-section-link span {
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.home-section-link:hover,
.home-section-link:focus-visible {
    color: var(--color-dark);
    text-decoration: none;
}

.home-section-link:hover span,
.home-section-link:focus-visible span {
    transform: translateX(4px);
}

.home-section-link:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ===== TABLET ===== */

@media (max-width: 1000px) {

    .home-hero {
        min-height: var(--hero-height-desktop, 400px);
    }

    .home-hero-content {
        width: 72%;
        min-height: var(--hero-height-desktop, 400px);
        padding: 32px 35px;
    }

    .home-hero-eyebrow {
        margin-bottom: 28px;
    }

    .home-hero h1 {
        margin-bottom: 40px;
        font-size: var(--hero-size-title, clamp(1.7rem, 3vw, 2.4rem));
    }

    .home-hero-intro {
        width: 70%;
        font-size: var(--hero-size-intro, 0.9rem);
    }

    .home-hero-news {
        right: 14px;
        bottom: 14px;
        width: min(280px, 45%);
        padding: 14px 16px;
    }

    .home-hero-news-label {
        font-size: var(--hero-size-news-label, 1rem);
    }
}

/* ===== SMARTPHONE ===== */

@media (max-width: 700px) {

    .home-hero {
        flex-direction: column;
        min-height: var(--hero-height-mobile, 0px);
        margin-bottom: 40px;
    }

    .home-hero-image {
        position: relative;
        inset: auto;
        width: 100%;
        height: 230px;
        order: 1;
    }

    .home-hero-content {
        width: 100%;
        min-height: 0;
        padding: 28px 24px;
        order: 2;
    }

    .home-hero-content::before {
        clip-path: none;
    }

    .home-hero-eyebrow {
        margin: 0 0 22px;
    }

    .home-hero h1 {
        width: 100%;
        margin-bottom: 32px;
        font-size: var(--hero-size-title, clamp(1.5rem, 6vw, 2rem));
        white-space: normal;
        -webkit-text-stroke: 0;
    }

    .home-hero-intro {
        width: 100%;
        max-width: 100%;
        margin-bottom: 26px;
        font-size: var(--hero-size-intro, 0.95rem);
        white-space: normal;
    }

    .home-hero-values {
        gap: 12px 18px;
    }

    .home-hero-news {
        right: 12px;
        bottom: 12px;
        width: min(320px, calc(100% - 24px));
        padding: 12px 14px;
        border-radius: 10px;
    }

    .home-hero-news-label {
        margin-bottom: 7px;
        font-size: var(--hero-size-news-label, 0.95rem);
    }

    .home-hero-news-title h1 {
        font-size: var(--hero-size-news-title, 1.2rem);
    }

    .home-hero-news-title h2 {
        font-size: var(--hero-size-news-title, 1.1rem);
    }

    .home-hero-news-title h3,
    .home-hero-news-title h4 {
        font-size: var(--hero-size-news-title, 1rem);
    }

    .home-hero-news-text {
        font-size: var(--hero-size-news-text, 0.78rem);
    }

    .home-hero-news-link {
        font-size: var(--hero-size-news-link, 0.78rem);
    }

    /* Links unter der Überschrift, wenn wenig Platz ist */

    .home-section-heading {
        align-items: flex-start;
        gap: 8px 16px;
    }

    .home-section-link {
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-section-link,
    .home-section-link span {
        transition: none;
    }
}

/* ===== ENDE HERO.CSS ===== */