/* Militärisches Celle – Simple Page */
body.cgm-military-map-page {
    background: #f3f0e8;
}

/* Big Picture gibt Simple Pages standardmäßig Innenabstand.
   Für diese Seite soll der Hero wie bei /digitales-angebot
   direkt von Kante zu Kante laufen. */
body.cgm-military-map-page #content {
    padding: 0;
}

body.cgm-military-map-page #primary {
    max-width: none;
}

.cgm-military-page {
    background: #f3f0e8;
    color: #243b4c;
}

.cgm-military-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.cgm-military-hero {
    padding: clamp(72px, 10vw, 128px) 0 clamp(58px, 7vw, 88px);
    background:
        linear-gradient(120deg, rgba(11,44,69,.96), rgba(11,44,69,.88)),
        #0b2c45;
    color: #fff;
}

.cgm-military-kicker {
    margin: 0 0 10px;
    color: #b49a62;
    font-family: "Hind", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.2;
}

.cgm-military-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-family: "Caudex", serif;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1;
    letter-spacing: -.025em;
}

.cgm-military-lede {
    max-width: 820px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.86);
    font-family: "Hind", sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
}

.cgm-military-main {
    padding: clamp(56px, 7vw, 90px) 0 70px;
}

.cgm-military-intro {
    display: grid;
    grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr);
    gap: clamp(38px, 6vw, 86px);
    align-items: start;
    margin-bottom: 38px;
}

.cgm-military-intro h2 {
    margin: 0;
    color: #0b2c45;
    font-family: "Caudex", serif;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
}

.cgm-military-intro > p {
    margin: 25px 0 0;
    font-size: 18px;
    line-height: 1.65;
}

.cgm-military-map-module {
    overflow: hidden;
    border: 1px solid rgba(11,44,69,.15);
    background: #eee9de;
    box-shadow: 0 18px 42px rgba(11,44,69,.10);
}

.cgm-military-toolbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(11,44,69,.14);
    background: #fffdf8;
}

.cgm-military-toolbar-label {
    display: block;
    margin-bottom: 1px;
    color: #b49a62;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
}

.cgm-military-toolbar strong {
    color: #0b2c45;
    font-family: "Caudex", serif;
    font-size: 21px;
}

.cgm-military-reset,
.cgm-military-load,
.cgm-military-location-chip {
    font-family: "Hind", sans-serif;
    cursor: pointer;
}

.cgm-military-reset {
    padding: 9px 14px;
    border: 1px solid rgba(11,44,69,.3);
    background: transparent;
    color: #0b2c45;
    font-weight: 700;
}

.cgm-military-reset:disabled {
    opacity: .45;
    cursor: default;
}

.cgm-military-grid {
    display: grid;
    grid-template-columns: minmax(0,1.55fr) minmax(330px,.65fr);
    min-height: 630px;
}

.cgm-military-map-wrap {
    position: relative;
    min-height: 630px;
    background: #e8e2d6;
}

.cgm-military-map {
    position: absolute;
    inset: 0;
}

.cgm-military-consent {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        linear-gradient(rgba(243,240,232,.94), rgba(243,240,232,.94)),
        repeating-linear-gradient(45deg, #ede8dc 0 1px, transparent 1px 12px);
}

.cgm-military-consent[hidden] {
    display: none;
}

.cgm-military-consent-inner {
    max-width: 520px;
    text-align: center;
}

.cgm-military-map-icon {
    display: inline-grid;
    width: 56px;
    height: 56px;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(11,44,69,.25);
    border-radius: 50%;
    color: #0b2c45;
    font-size: 28px;
}

.cgm-military-consent h2 {
    margin: 0 0 14px;
    color: #0b2c45;
    font-family: "Caudex", serif;
    font-size: 40px;
}

.cgm-military-consent p:not(.cgm-military-kicker) {
    margin: 0 auto 24px;
    color: #526575;
    font-size: 16px;
    line-height: 1.6;
}

.cgm-military-load {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 13px 18px;
    border: 1px solid #0b2c45;
    background: #0b2c45;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.cgm-military-detail {
    min-width: 0;
    border-left: 1px solid rgba(11,44,69,.14);
    background: #fffdf8;
}

.cgm-military-detail > .cgm-military-kicker,
.cgm-military-detail > h2,
.cgm-military-detail > p {
    margin-left: 30px;
    margin-right: 30px;
}

.cgm-military-detail > .cgm-military-kicker {
    margin-top: 34px;
}

.cgm-military-detail h2,
.cgm-military-detail-content h2 {
    margin-top: 0;
    color: #0b2c45;
    font-family: "Caudex", serif;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
}

.cgm-military-detail p,
.cgm-military-detail-content p {
    font-size: 16px;
    line-height: 1.6;
}

.cgm-military-detail-image {
    margin: 0;
    height: 245px;
    overflow: hidden;
    background: #ddd5c7;
}

.cgm-military-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cgm-military-detail-content {
    padding: 28px 30px 32px;
}

.cgm-military-aliases {
    margin: -3px 0 14px;
    color: #657784;
    font-size: 14px !important;
}

.cgm-military-period {
    color: #b49a62;
    font-weight: 700;
}

.cgm-military-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.cgm-military-detail-actions a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid #0b2c45;
    background: #0b2c45;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.cgm-military-detail-actions a.is-secondary {
    background: transparent;
    color: #0b2c45;
}

.cgm-military-location-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid rgba(11,44,69,.14);
    background: #0b2c45;
}

.cgm-military-location-chip {
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.3);
    background: transparent;
    color: rgba(255,255,255,.88);
    font-size: 13px;
}

.cgm-military-location-chip:hover,
.cgm-military-location-chip:focus,
.cgm-military-location-chip.is-active {
    border-color: #b49a62;
    background: #b49a62;
    color: #fff;
}

.cgm-military-source-note {
    margin: 13px 0 0;
    color: #75828b;
    font-size: 12px;
}

.cgm-military-page .maplibregl-ctrl-attrib {
    font-family: "Hind", sans-serif;
    font-size: 10px;
}

@media (max-width: 900px) {
    .cgm-military-intro,
    .cgm-military-grid {
        grid-template-columns: 1fr;
    }

    .cgm-military-map-wrap {
        min-height: 540px;
    }

    .cgm-military-detail {
        border-left: 0;
        border-top: 1px solid rgba(11,44,69,.14);
    }
}

@media (max-width: 560px) {
    .cgm-military-shell {
        width: min(100% - 28px, 1180px);
    }

    .cgm-military-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .cgm-military-map-wrap {
        min-height: 480px;
    }

    .cgm-military-consent {
        padding: 22px;
    }

    .cgm-military-consent h2 {
        font-size: 34px;
    }

    .cgm-military-detail-content {
        padding: 24px 22px 28px;
    }
}




/* MapLibre core layout rules kept locally to avoid theme/CDN CSS collisions. */
body.cgm-military-map-page #cgm-military-map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 630px !important;
    overflow: hidden !important;
}

body.cgm-military-map-page .cgm-military-map-wrap {
    position: relative !important;
    min-height: 630px !important;
    height: 630px !important;
    overflow: hidden !important;
}

body.cgm-military-map-page .maplibregl-map {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: rgb(0 0 0 / 0%);
    font: 12px/20px Helvetica Neue, Arial, Helvetica, sans-serif;
}

body.cgm-military-map-page .maplibregl-canvas-container,
body.cgm-military-map-page .maplibregl-canvas {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
}

body.cgm-military-map-page .maplibregl-canvas-container {
    width: 100% !important;
    height: 100% !important;
}

body.cgm-military-map-page .maplibregl-canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.cgm-military-map-page .maplibregl-control-container {
    position: static;
}

body.cgm-military-map-page .maplibregl-ctrl-top-left,
body.cgm-military-map-page .maplibregl-ctrl-top-right,
body.cgm-military-map-page .maplibregl-ctrl-bottom-left,
body.cgm-military-map-page .maplibregl-ctrl-bottom-right {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

body.cgm-military-map-page .maplibregl-ctrl-top-left { top: 0; left: 0; }
body.cgm-military-map-page .maplibregl-ctrl-top-right { top: 0; right: 0; }
body.cgm-military-map-page .maplibregl-ctrl-bottom-left { bottom: 0; left: 0; }
body.cgm-military-map-page .maplibregl-ctrl-bottom-right { right: 0; bottom: 0; }

body.cgm-military-map-page .maplibregl-ctrl {
    clear: both;
    pointer-events: auto;
    transform: translate(0);
}

@media (max-width: 900px) {
    body.cgm-military-map-page .cgm-military-map-wrap,
    body.cgm-military-map-page #cgm-military-map {
        height: 540px !important;
        min-height: 540px !important;
    }
}

@media (max-width: 560px) {
    body.cgm-military-map-page .cgm-military-map-wrap,
    body.cgm-military-map-page #cgm-military-map {
        height: 480px !important;
        min-height: 480px !important;
    }
}


/* Standortmarker als DOM-Overlay.
   Dadurch sind die Museumspunkte vollständig unabhängig von
   Glyphen/Fonts und Symbol-Layern des Kartenstils. */
body.cgm-military-map-page .cgm-maplibre-marker {
    position: relative;
    display: block;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0b2c45;
    font: inherit;
    cursor: pointer;
    overflow: visible;
}

body.cgm-military-map-page .cgm-maplibre-marker-pin {
    position: absolute;
    left: 0;
    bottom: 0;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 2px solid #0b2c45;
    border-radius: 50% 50% 50% 0;
    background: #f3f0e8;
    box-shadow: 0 3px 10px rgba(11,44,69,.22);
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

body.cgm-military-map-page .cgm-maplibre-marker-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b49a62;
}

body.cgm-military-map-page .cgm-maplibre-marker-label {
    position: absolute;
    left: 24px;
    bottom: 6px;
    display: block;
    width: max-content;
    max-width: 220px;
    padding: 5px 8px;
    border: 1px solid rgba(11,44,69,.18);
    background: rgba(243,240,232,.96);
    color: #0b2c45;
    font-family: "Caudex", serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(11,44,69,.10);
}

body.cgm-military-map-page .cgm-maplibre-marker:hover .cgm-maplibre-marker-pin,
body.cgm-military-map-page .cgm-maplibre-marker:focus .cgm-maplibre-marker-pin,
body.cgm-military-map-page .cgm-maplibre-marker.is-active .cgm-maplibre-marker-pin {
    border-color: #b49a62;
    background: #fffdf8;
}

body.cgm-military-map-page .cgm-maplibre-marker.is-active .cgm-maplibre-marker-label {
    border-color: #b49a62;
    background: #0b2c45;
    color: #fff;
}


/* Kompakter Einstieg oberhalb der Karte */
body.cgm-military-map-page .cgm-military-intro--compact {
    display: block;
    margin-bottom: 28px;
}

body.cgm-military-map-page .cgm-military-intro--compact h2 {
    margin: 0;
}


/* Finaler Einstieg: nur Überschrift, ohne Kicker und Erklärungstext. */
body.cgm-military-map-page .cgm-military-section-title {
    margin: 0 0 28px;
    color: #0b2c45;
    font-family: "Caudex", serif;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
}
