/* Start page: Ausstellungen + Sammlungen gateway
   Scoped to body.cgm-landing only. */

body.cgm-landing .cgm-discovery {
    padding-top: clamp(64px, 8vw, 104px);
    padding-bottom: clamp(64px, 8vw, 104px);
    background: #f3f0e8;
}

body.cgm-landing .cgm-discovery-heading {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

body.cgm-landing .cgm-discovery-heading .cgm-kicker {
    margin-bottom: 12px;
}

body.cgm-landing .cgm-discovery-heading h2 {
    margin: 0;
    color: #0b2c45;
    font-family: "Caudex", serif;
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.04;
}

body.cgm-landing .cgm-discovery-heading > p:last-child {
    max-width: 720px;
    margin: 18px auto 0;
    color: #43596a;
    font-family: "Hind", sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

body.cgm-landing .cgm-discovery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 38px);
    align-items: stretch;
}

body.cgm-landing .cgm-discovery-card {
    overflow: hidden;
    border: 1px solid rgba(180,154,98,.68);
    border-radius: 4px;
    background: #0b2c45;
    box-shadow: 0 12px 28px rgba(10,34,52,.10);
}

body.cgm-landing .cgm-discovery-visual-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

body.cgm-landing .cgm-exhibit-collage {
    display: grid;
    grid-template-columns: 1.28fr .72fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    height: clamp(320px, 36vw, 455px);
    overflow: hidden;
    background: #e8e0cf;
}

body.cgm-landing .cgm-exhibit-collage > div {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.cgm-landing .cgm-exhibit-collage-main {
    grid-row: 1 / span 2;
    background-image: url('../images/landing/discovery/uniform-ingenieur-1705.jpg');
    background-position: 50% 28% !important;
}

body.cgm-landing .cgm-exhibit-collage-small--one {
    background-image: url('../images/landing/discovery/uniform-grenadier-1759.jpg');
    background-position: 50% 32% !important;
}

body.cgm-landing .cgm-exhibit-collage-small--two {
    background-image: url('../images/landing/discovery/uniform-artillerie-1700.jpg');
    background-position: 50% 26% !important;
}

body.cgm-landing .cgm-discovery-copy {
    padding: 30px 34px 34px;
    color: #fff;
}

body.cgm-landing .cgm-discovery-label {
    margin: 0 0 7px;
    color: #d1b476;
    font-family: "Hind", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.2;
}

body.cgm-landing .cgm-discovery-copy h3 {
    margin: 0;
    color: #fff;
    font-family: "Caudex", serif;
    font-size: clamp(34px, 3.3vw, 48px);
    font-weight: 700;
    line-height: 1.08;
}

body.cgm-landing .cgm-discovery-copy h3::after {
    content: "";
    display: block;
    width: 58px;
    height: 2px;
    margin: 16px 0 17px;
    background: #d1b476;
}

body.cgm-landing .cgm-discovery-copy > p:not(.cgm-discovery-label) {
    min-height: 3.1em;
    margin: 0 0 24px;
    color: rgba(255,255,255,.86);
    font-family: "Hind", sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

body.cgm-landing .cgm-discovery-button {
    display: inline-flex;
    min-width: 205px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 18px;
    border: 1px solid rgba(255,255,255,.28);
    background: #b49a62;
    color: #fff;
    font-family: "Hind", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease;
}

body.cgm-landing .cgm-discovery-button:hover,
body.cgm-landing .cgm-discovery-button:focus {
    background: #c1a970;
    color: #fff;
    transform: translateY(-1px);
}

/* Dynamic collection carousel */
body.cgm-landing .cgm-collection-feature-slider {
    position: relative;
    height: clamp(320px, 36vw, 455px);
    overflow: hidden;
    background: #182e42;
    isolation: isolate;
}

body.cgm-landing .cgm-collection-feature-slides,
body.cgm-landing .cgm-collection-feature-slide {
    position: absolute;
    inset: 0;
}

body.cgm-landing .cgm-collection-feature-slide {
    display: block;
    opacity: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    text-decoration: none;
    transition: opacity 700ms ease;
}

body.cgm-landing .cgm-collection-feature-slide.is-active {
    z-index: 1;
    opacity: 1;
}

body.cgm-landing .cgm-collection-feature-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(5,26,42,.78) 0%, rgba(5,26,42,.12) 44%, rgba(5,26,42,0) 72%),
        linear-gradient(90deg, rgba(5,26,42,.16), rgba(5,26,42,0) 60%);
}

body.cgm-landing .cgm-collection-feature-title {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 30px;
    left: 30px;
    color: #fff;
    font-family: "Caudex", serif;
    font-size: clamp(25px, 2.6vw, 37px);
    font-weight: 700;
    line-height: 1.12;
    text-shadow: 0 2px 12px rgba(0,0,0,.32);
}

body.cgm-landing .cgm-collection-feature-controls {
    position: absolute;
    z-index: 4;
    right: 22px;
    top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.cgm-landing .cgm-collection-feature-arrow {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 50%;
    background: rgba(5,26,42,.48);
    color: #fff;
    font: 400 23px/31px "Hind", sans-serif;
    cursor: pointer;
}

body.cgm-landing .cgm-collection-feature-dots {
    display: flex;
    gap: 7px;
}

body.cgm-landing .cgm-collection-feature-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

body.cgm-landing .cgm-collection-feature-dot.is-active {
    border-color: #d1b476;
    background: #d1b476;
}

body.cgm-landing .cgm-collection-feature-slide--fallback-1 {
    background-image: url('../images/landing/discovery/militaerisches-celle-karte.jpg');
}
body.cgm-landing .cgm-collection-feature-slide--fallback-2 {
    background-image: url('../images/landing/hero/hero-heidekaserne.jpg');
}
body.cgm-landing .cgm-collection-feature-slide--fallback-3 {
    background-image: url('../images/landing/hero/hero-reichswehr-cd-kaserne.jpg');
}
body.cgm-landing .cgm-collection-feature-slide--fallback-4 {
    background-image: url('../images/landing/hero/hero-vampire-wietzenbruch.jpg');
}
body.cgm-landing .cgm-collection-feature-slide--fallback-5 {
    background-image: url('../images/landing/hero/hero-scheibenkommando.jpg');
}

@media screen and (max-width: 820px) {
    body.cgm-landing .cgm-discovery-grid {
        grid-template-columns: 1fr;
    }

    body.cgm-landing .cgm-exhibit-collage,
    body.cgm-landing .cgm-collection-feature-slider {
        height: min(72vw, 480px);
    }

    body.cgm-landing .cgm-discovery-copy > p:not(.cgm-discovery-label) {
        min-height: 0;
    }
}

@media screen and (max-width: 560px) {
    body.cgm-landing .cgm-discovery-heading {
        margin-bottom: 30px;
    }

    body.cgm-landing .cgm-exhibit-collage {
        grid-template-columns: 1.15fr .85fr;
        height: 390px;
    }

    body.cgm-landing .cgm-collection-feature-slider {
        height: 390px;
    }

    body.cgm-landing .cgm-discovery-copy {
        padding: 25px 24px 28px;
    }

    body.cgm-landing .cgm-collection-feature-title {
        right: 22px;
        bottom: 24px;
        left: 22px;
    }

    body.cgm-landing .cgm-collection-feature-controls {
        right: 14px;
        top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.cgm-landing .cgm-collection-feature-slide,
    body.cgm-landing .cgm-discovery-button {
        transition: none;
    }
}


/* Start page: compact link from the hero to /about */
body.cgm-landing .cgm-hero-about {
    margin: 22px 0 0;
}

body.cgm-landing .cgm-hero-about a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: "Hind", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 4px;
    background: rgba(255,255,255,.06);
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

body.cgm-landing .cgm-hero-about a:hover,
body.cgm-landing .cgm-hero-about a:focus {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.9);
}

/* Start page: wide teaser for the interactive "Militärisches Celle" map. */
body.cgm-landing .cgm-military-teaser {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    min-height: 310px;
    margin-top: clamp(24px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(180,154,98,.68);
    border-radius: 4px;
    background: #0b2c45;
    box-shadow: 0 12px 28px rgba(10,34,52,.10);
}

body.cgm-landing .cgm-military-teaser-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 4.5vw, 58px);
    color: #fff;
}

body.cgm-landing .cgm-military-teaser-copy h3 {
    margin: 0;
    color: #fff;
    font-family: "Caudex", serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.06;
}

body.cgm-landing .cgm-military-teaser-copy h3::after {
    content: "";
    display: block;
    width: 58px;
    height: 2px;
    margin: 16px 0 17px;
    background: #d1b476;
}

body.cgm-landing .cgm-military-teaser-copy > p:not(.cgm-discovery-label) {
    max-width: 620px;
    margin: 0 0 26px;
    color: rgba(255,255,255,.86);
    font-family: "Hind", sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

body.cgm-landing .cgm-military-teaser-copy .cgm-discovery-button {
    align-self: flex-start;
}

body.cgm-landing .cgm-military-teaser-visual {
    position: relative;
    display: block;
    min-height: 310px;
    overflow: hidden;
    background-image: url('../images/landing/discovery/militaerisches-celle-karte.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    text-decoration: none;
}

body.cgm-landing .cgm-military-teaser-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11,44,69,.78) 0%, rgba(11,44,69,.26) 40%, rgba(11,44,69,.08) 100%),
        linear-gradient(0deg, rgba(5,26,42,.64) 0%, rgba(5,26,42,0) 58%);
}




body.cgm-landing .cgm-military-teaser-caption {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 24px;
    left: 28px;
    color: #fff;
    font-family: "Caudex", serif;
    font-size: clamp(22px, 2.1vw, 31px);
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

body.cgm-landing .cgm-military-teaser-visual:hover .cgm-military-teaser-caption,
body.cgm-landing .cgm-military-teaser-visual:focus .cgm-military-teaser-caption {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

@media screen and (max-width: 820px) {
    body.cgm-landing .cgm-military-teaser {
        grid-template-columns: 1fr;
    }

    body.cgm-landing .cgm-military-teaser-visual {
        min-height: min(64vw, 410px);
        order: -1;
    }
}


/* ==========================================================
   Startseite – fourth visual gateway: Virtueller Rundgang
   Inserted directly after "Militärisches Celle" by cgm-hero-slider.js.
   ========================================================== */

body.cgm-landing .cgm-panorama-home-teaser {
    display: grid;
    grid-template-columns: minmax(360px, 1.1fr) minmax(0, .9fr);
    min-height: 310px;
    margin-top: clamp(24px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(180,154,98,.68);
    border-radius: 4px;
    background: #0b2c45;
    box-shadow: 0 12px 28px rgba(10,34,52,.10);
}

body.cgm-landing .cgm-panorama-home-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 4.5vw, 58px);
    color: #fff;
}

body.cgm-landing .cgm-panorama-home-copy h3 {
    margin: 0;
    color: #fff;
    font-family: "Caudex", serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.06;
}

body.cgm-landing .cgm-panorama-home-copy h3::after {
    content: "";
    display: block;
    width: 58px;
    height: 2px;
    margin: 16px 0 17px;
    background: #d1b476;
}

body.cgm-landing .cgm-panorama-home-copy > p:not(.cgm-discovery-label) {
    max-width: 620px;
    margin: 0 0 26px;
    color: rgba(255,255,255,.86);
    font-family: "Hind", sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

body.cgm-landing .cgm-panorama-home-copy .cgm-discovery-button {
    align-self: flex-start;
}

/* Three real room views rather than a decorative stock image. */
body.cgm-landing .cgm-panorama-home-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    min-height: 310px;
    overflow: hidden;
    background: #071f31;
    color: #fff;
    text-decoration: none;
}

body.cgm-landing .cgm-panorama-home-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.cgm-landing .cgm-panorama-home-image--main {
    grid-row: 1 / span 2;
    background-image: url('../images/panorama/room-bundeswehr.jpg');
}

body.cgm-landing .cgm-panorama-home-image--british {
    background-image: url('../images/panorama/room-britische-garnison.jpg');
}

body.cgm-landing .cgm-panorama-home-image--signals {
    background-image: url('../images/panorama/room-fernmelde-4.jpg');
}

body.cgm-landing .cgm-panorama-home-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(0deg, rgba(5,26,42,.68) 0%, rgba(5,26,42,.04) 56%),
        linear-gradient(90deg, rgba(5,26,42,.08), rgba(5,26,42,0) 60%);
    pointer-events: none;
}

body.cgm-landing .cgm-panorama-home-caption {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 24px;
    left: 28px;
    color: #fff;
    font-family: "Caudex", serif;
    font-size: clamp(22px, 2.1vw, 31px);
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,.48);
}

body.cgm-landing .cgm-panorama-home-visual:hover .cgm-panorama-home-caption,
body.cgm-landing .cgm-panorama-home-visual:focus .cgm-panorama-home-caption {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

@media screen and (max-width: 820px) {
    body.cgm-landing .cgm-panorama-home-teaser {
        grid-template-columns: 1fr;
    }

    body.cgm-landing .cgm-panorama-home-visual {
        min-height: min(64vw, 410px);
    }
}

@media screen and (max-width: 560px) {
    body.cgm-landing .cgm-panorama-home-visual {
        min-height: 340px;
        grid-template-columns: 1.15fr .85fr;
    }

    body.cgm-landing .cgm-panorama-home-copy {
        padding: 30px 24px 32px;
    }

    body.cgm-landing .cgm-panorama-home-caption {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.cgm-landing .cgm-panorama-home-visual {
        scroll-behavior: auto;
    }
}


/* ==========================================================
   Startseite – Digitales Angebot in die Hero-Aktionsleiste
   Der bisherige große Banner entfällt vollständig.
   ========================================================== */

/* Sofort ausblenden – JS entfernt den alten Banner anschließend aus dem DOM. */
body.cgm-landing .cgm-digital-offer {
    display: none !important;
}

/* "Mehr über das Museum" + "Digitales Angebot" als gleichwertige Box-Links. */
body.cgm-landing .cgm-hero-about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 22px 0 0;
}

body.cgm-landing .cgm-hero-about a {
    margin: 0;
}

/* Auf kleinen Displays sauber umbrechen, ohne die Buttons künstlich zu strecken. */
@media screen and (max-width: 480px) {
    body.cgm-landing .cgm-hero-about {
        gap: 9px;
    }
}
