/* Home – erweitert landing-kaffeemuehle.css unter .home-new */

.home-new.landing-kaffeemuehle .landing-section {
    margin: 28px 0;
}

.home-new.landing-kaffeemuehle .landing-section--panel {
    padding-top: 12px;
}

.home-new .landing-video-overlay {
    display: none;
}

/* Ohne top: 0 rutscht die Leiste nach dem ersten Scroll unter/über das Video. */
.header-container,
.header {
    top: 0;
}

.home-new .home-video-stage {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.home-new .stoerer {
    top: 10px;
    margin-top: 0 !important;
    line-height: 1.4;
}

.home-new .banner.landing-kaffeemuehle-header {
    padding-top: var(--home-header-offset, 93px);
}

@media (max-width: 1185px) {
    .home-new .banner.landing-kaffeemuehle-header {
        padding-top: var(--home-header-offset, 84px);
    }
}

.home-new .landing-kaffeemuehle-header video {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    object-fit: contain;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
}

.home-new .landing-hero-text {
    padding-top: 40px;
    padding-bottom: 12px;
}

.home-new .landing-hero-text .landing-hero-subtitle {
    font-size: 3rem;
    margin-bottom: 14px;
}

.home-new .landing-hero-text .landing-hero-tagline {
    font-size: 1.35rem;
    font-weight: 400;
    max-width: 760px;
    margin-bottom: 28px;
}

.home-new .landing-pillars {
    margin-top: 32px;
}

.home-new .landing-pillar-title {
    font-size: 1.55rem;
}

.home-new .landing-autoupdate {
    display: none !important;
}

.home-new .home-projects-section {
    margin-top: 0;
    margin-bottom: 28px;
}

.home-new .landing-cta-primary {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.home-new .home-project-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Feste Bildproportion: gleich hohe Karten, kein Springen bei fehlendem Bild */
.home-new .home-project-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--lp-panel);
}

.home-new .home-project-caption {
    margin: 14px 0 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--lp-ink);
    text-align: left;
}

.home-new .home-project-caption strong {
    display: block;
    font-size: 1.08rem;
    margin-bottom: 2px;
}

.home-new .home-project-caption span {
    display: block;
}

.home-new .home-references-headline {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 28px;
    line-height: 1.1;
    text-transform: none;
}

/* Feste Mindestbreite, damit die zentrierte Headline beim Hochzählen nicht wandert */
.home-new .home-references-headline #counter,
.home-new .js-refletter-count {
    display: inline-block;
    min-width: 3ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.home-new .landing-quote-card .landing-quote-body .more {
    display: none;
}

.home-new .home-blv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-new .home-blv-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    min-height: 300px;
}

.home-new .home-blv-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.home-new .home-blv-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.62) 100%);
}

/* Diagonale Banderole über der linken oberen Ecke, mittig auf der Diagonalen.
   top/left bestimmen, wie lang der sichtbare Abschnitt der Banderole ist –
   der Text muss in diesen Abschnitt passen. */
.home-new .home-blv-badge {
    position: absolute;
    top: 46px;
    left: -94px;
    z-index: 2;
    width: 320px;
    padding: 9px 0;
    background: var(--lp-navy);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transform: rotate(-45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.home-new .home-blv-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px;
}

.home-new .home-blv-label {
    margin: 0 0 4px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.home-new .home-blv-copy h3 {
    margin: 0 0 6px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: none;
}

.home-new .home-blv-copy p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.home-new .home-refcategory-card {
    display: block;
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.home-new .home-refcategory-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--lp-panel);
}

.home-new .home-refcategory-card h3 {
    margin: 14px 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: none;
}

.home-new .landing-btn-references {
    display: inline-block;
    background: var(--lp-olive);
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: none;
}

.home-new .landing-btn-references:hover,
.home-new .landing-btn-references:focus {
    background: var(--lp-olive-dark);
    color: #fff;
}

.home-new .startcrefozert .crefo-blv {
    font-size: 2.4rem;
    text-align: center;
    text-transform: none;
}

.home-new .landing-contact-section {
    margin-top: 20px !important;
    padding-bottom: 0 !important;
}

.home-new .landing-contact-section .landing-section-title {
    margin-bottom: 0;
}

/* Die Pfeile sind weiß und würden auf hellem Hintergrund verschwinden. */
.home-new .landing-slider-shell .landing-slidePrev span,
.home-new .landing-slider-shell .landing-slideNext span {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* Bootstrap setzt für Buttons einen Fokusrahmen, der auch beim Klicken mit der
   Maus stehen bleibt. Für Tastaturbedienung bleibt er über :focus-visible erhalten. */
.home-new .landing-slider-shell .landing-slidePrev:focus,
.home-new .landing-slider-shell .landing-slideNext:focus {
    outline: 0;
}

.home-new .landing-slider-shell .landing-slidePrev:focus-visible,
.home-new .landing-slider-shell .landing-slideNext:focus-visible {
    outline: 2px solid var(--lp-olive);
    outline-offset: -4px;
}

@media (max-width: 991px) {
    .home-new .landing-hero-text .landing-hero-subtitle {
        font-size: 2.4rem;
    }

    .home-new .landing-hero-text .landing-hero-tagline {
        font-size: 1.2rem;
    }

    .home-new .landing-pillar-text {
        color: #000;
    }

    .home-new .landing-map-checklist .landing-map {
        display: none;
    }
}

@media (max-width: 767px) {
    .home-new.landing-kaffeemuehle .landing-section {
        margin: 16px 0;
    }

    .home-new .home-blv-grid {
        grid-template-columns: 1fr;
    }

    .home-new .home-references-headline {
        font-size: 2rem;
    }

    .home-new .landing-hero-text .landing-hero-subtitle {
        font-size: 2rem;
    }

    .home-new .home-blv-badge {
        top: 40px;
        left: -92px;
        width: 290px;
        font-size: 0.62rem;
        padding: 8px 0;
    }

    .home-new .home-blv-copy h3 {
        font-size: 1.8rem;
    }

    .home-new .landing-pillars {
        margin-top: 20px;
    }
}

/* ------------------------------------------------------------------ */
/* Mobile-Korrekturen                                                  */
/* ------------------------------------------------------------------ */

/* Wörter nur an Leerzeichen umbrechen, nicht mitten im Wort */
.home-new.landing-kaffeemuehle .landing-section-title,
.home-new .home-references-headline,
.home-new .landing-checklist-title,
.home-new .home-blv-copy h3,
.home-new .home-refcategory-card h3 {
    overflow-wrap: normal;
    hyphens: none;
}

.home-new .startcrefozert a {
    display: inline-block;
    padding: 12px 0;
}

@media (max-width: 991px) {
    /* Split-Spalten dürfen nie breiter werden als ihr Container.
       Ohne dies zieht die Hausbaukarte die Zeile auf ihre Bildbreite (942px). */
    .home-new .landing-split > .landing-split-col {
        max-width: 100%;
        min-width: 0;
    }

    .home-new .landing-map-checklist .landing-split {
        flex-direction: column;
    }

    .home-new .landing-map img {
        width: 100%;
        height: auto;
    }

    .home-new .home-blv-copy {
        padding: 18px 16px;
    }

    .home-new .home-blv-copy h3 {
        font-size: clamp(1.25rem, 6vw, 1.8rem);
    }
}

@media (min-width: 480px) and (max-width: 991px) {
    .home-new .landing-pillars {
        justify-content: flex-start;
    }

    .home-new .landing-pillar:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 767px) {
    /* Pfeile nur über dem Bildbereich, damit Bildunterschrift und Link tapbar bleiben */
    .home-new .landing-slider-shell .landing-slidePrev,
    .home-new .landing-slider-shell .landing-slideNext {
        top: 0;
        bottom: auto;
        height: 66%;
        width: 44px;
    }
}

@media (max-width: 479px) {
    .home-new.landing-kaffeemuehle .landing-section-title,
    .home-new .home-references-headline {
        font-size: 1.7rem;
    }
}

/* ------------------------------------------------------------------ */
/* Störer-Popup (nur Mobile / Tablet)                                  */
/* ------------------------------------------------------------------ */
.home-stoerer-popup,
.home-stoerer-popup-handle {
    display: none;
}

@media (max-width: 1100px) {
    body.home-stoerer-popup-open {
        overflow: hidden;
    }

    .home-stoerer-popup {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 5000;
        align-items: flex-start;
        justify-content: center;
        padding: 12px 12px 24px;
        pointer-events: none;
        line-height: 1.4;
    }

    .home-stoerer-popup-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        transition: opacity 0.35s ease;
        pointer-events: none;
    }

    .home-stoerer-popup-panel {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 520px;
        max-height: calc(100vh - 24px);
        overflow: hidden;
        margin-top: 0;
        padding: 0;
        background: #fff;
        color: #111;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
        transform: translateY(-110%);
        transition: transform 0.4s ease-out;
        pointer-events: auto;
        text-align: left;
    }

    .home-stoerer-popup-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        overscroll-behavior: contain;
        padding: 52px 20px 20px;
        -webkit-overflow-scrolling: touch;
    }

    .home-stoerer-popup-panel.has-more .home-stoerer-popup-scroll {
        padding-bottom: 52px;
    }

    .home-stoerer-popup.is-open {
        pointer-events: auto;
    }

    .home-stoerer-popup.is-open .home-stoerer-popup-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .home-stoerer-popup.is-open .home-stoerer-popup-panel {
        transform: translateY(0);
    }

    .home-stoerer-popup-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 3px solid #fff;
        border-radius: 50%;
        background: #cc0000;
        color: #fff;
        font-size: 36px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
        z-index: 2;
    }

    .home-stoerer-popup-close span {
        display: block;
        margin-top: -2px;
    }

    .home-stoerer-popup-badge {
        display: inline-block;
        margin: 0 56px 12px 0;
        padding: 6px 12px;
        background: #cc0000;
        color: #fff;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1.2;
        text-transform: uppercase;
        border-radius: 4px;
    }

    .home-stoerer-popup-panel h3 {
        margin: 0 0 12px;
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .home-stoerer-popup-panel h3 a {
        color: #111;
        text-decoration: none;
    }

    .home-stoerer-popup-item + .home-stoerer-popup-item {
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid #e4e4e4;
    }

    .home-stoerer-popup-image {
        display: block;
        margin: 0 0 12px;
        background: #f4f4f4;
        text-align: center;
    }

    .home-stoerer-popup-image img {
        display: block;
        max-width: 100%;
        width: auto;
        height: auto;
        max-height: min(42vh, 320px);
        margin: 0 auto;
        object-fit: contain;
        object-position: center;
    }

    .home-stoerer-popup-body {
        font-size: 0.95rem;
        line-height: 1.45;
        color: #111;
        margin-bottom: 14px;
    }

    .home-stoerer-popup-link {
        display: inline-block;
        margin-top: 4px;
        color: #232a5c;
        font-weight: 700;
        text-decoration: underline;
    }

    .home-stoerer-popup-handle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 5px;
        right: 5px;
        z-index: 20;
        width: 28px;
        height: 28px;
        margin: 0;
        padding: 0;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #cc0000;
        color: #fff;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 16px;
        font-style: italic;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        cursor: pointer;
        pointer-events: auto;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    .home-stoerer-popup-handle span {
        display: block;
        margin-top: -1px;
    }

    .home-stoerer-popup-more {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        height: 56px;
        padding-bottom: 20px;
        background: linear-gradient(to top, #fff 38%, rgba(255, 255, 255, 0));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .home-stoerer-popup-panel.has-more .home-stoerer-popup-more {
        opacity: 1;
        visibility: visible;
    }

    .home-stoerer-popup-more span {
        display: block;
        width: 14px;
        height: 14px;
        margin-bottom: 2px;
        border-right: 2.5px solid #cc0000;
        border-bottom: 2.5px solid #cc0000;
        transform: translateY(0) rotate(45deg);
        animation: home-stoerer-more-bounce 1.35s ease-in-out infinite;
    }

    @keyframes home-stoerer-more-bounce {
        0%, 100% {
            transform: translateY(0) rotate(45deg);
            opacity: 0.45;
        }
        50% {
            transform: translateY(7px) rotate(45deg);
            opacity: 1;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .home-stoerer-popup-more span {
            animation: none;
            opacity: 1;
        }
    }
}
