/* Celler Garnison-Museum: /about
   Same editorial system as /digitales-angebot.
   Scope: About Simple Page only. */

body.cgm-about-page #content {
    padding: 0;
}

body.cgm-about-page .cgm-about-page-wrap {
    background: #f3f0e8;
    color: #102f48;
}

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

body.cgm-about-page .cgm-about-kicker {
    margin: 0 0 12px;
    color: #d1b476;
    font-family: "Hind", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .20em;
    line-height: 1.25;
    text-transform: uppercase;
}

/* Hero: same dimensions and rhythm as /digitales-angebot */
body.cgm-about-page .cgm-about-hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #092a42;
    color: #fff;
    isolation: isolate;
}

body.cgm-about-page .cgm-about-hero-slides,
body.cgm-about-page .cgm-about-hero-slide,
body.cgm-about-page .cgm-about-hero-shade {
    position: absolute;
    inset: 0;
}

body.cgm-about-page .cgm-about-hero-slide {
    opacity: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.01);
    transition: opacity 900ms ease;
}

body.cgm-about-page .cgm-about-hero-slide.is-active {
    opacity: 1;
}

body.cgm-about-page .cgm-about-hero-slide--gesamt {
    background-image: url('../images/landing/about/about-gebaeude-gesamt.jpg');
    background-position: 50% 54%;
}

body.cgm-about-page .cgm-about-hero-slide--denkmal-front {
    background-image: url('../images/landing/about/about-denkmal-front.jpg');
    background-position: 52% 48%;
}

body.cgm-about-page .cgm-about-hero-slide--denkmal-seite {
    background-image: url('../images/landing/about/about-denkmal-seite.jpg');
    background-position: 52% 50%;
}

body.cgm-about-page .cgm-about-hero-shade {
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(5, 28, 46, .94) 0%,
            rgba(5, 28, 46, .86) 30%,
            rgba(5, 28, 46, .50) 53%,
            rgba(5, 28, 46, .12) 77%,
            rgba(5, 28, 46, .05) 100%),
        linear-gradient(0deg,
            rgba(4, 24, 39, .30) 0%,
            rgba(4, 24, 39, 0) 45%);
    pointer-events: none;
}

body.cgm-about-page .cgm-about-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding-top: 44px;
    padding-bottom: 78px;
}

body.cgm-about-page .cgm-about-hero-copy {
    width: min(650px, 65%);
}

body.cgm-about-page .cgm-about-hero h1 {
    margin: 0;
    color: #fff;
    font-family: "Caudex", serif;
    font-size: clamp(44px, 5.2vw, 76px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.02;
}

body.cgm-about-page .cgm-about-hero-controls {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 26px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

body.cgm-about-page .cgm-about-hero-arrow {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(5, 28, 46, .30);
    color: #fff;
    font: 400 25px/34px "Hind", sans-serif;
    text-align: center;
    cursor: pointer;
}

body.cgm-about-page .cgm-about-hero-arrow:hover,
body.cgm-about-page .cgm-about-hero-arrow:focus {
    border-color: #d1b476;
    background: rgba(5, 28, 46, .72);
    outline: none;
}

body.cgm-about-page .cgm-about-hero-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

body.cgm-about-page .cgm-about-hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.80);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

body.cgm-about-page .cgm-about-hero-dot.is-active {
    border-color: #d1b476;
    background: #d1b476;
}

/* Editorial layout mirrors /digitales-angebot */
body.cgm-about-page .cgm-about-copy-section {
    padding: 72px 0 0;
}

body.cgm-about-page .cgm-about-copy-section--continuation {
    padding-top: 0;
    padding-bottom: 76px;
}

body.cgm-about-page .cgm-about-copy {
    font-family: "Hind", sans-serif;
    font-size: 18px;
    line-height: 1.68;
}

body.cgm-about-page .cgm-about-editorial-row {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(48px, 7vw, 104px);
    align-items: start;
    padding: 0 0 58px;
}

body.cgm-about-page .cgm-about-copy-section--continuation .cgm-about-editorial-row {
    padding-top: 58px;
    border-top: 1px solid rgba(16, 47, 72, .14);
}

body.cgm-about-page .cgm-about-copy-section--continuation .cgm-about-editorial-row:first-child {
    padding-top: 24px;
    border-top: 0;
}

body.cgm-about-page .cgm-about-copy-section--continuation .cgm-about-editorial-row--last {
    padding-bottom: 0;
}

body.cgm-about-page .cgm-about-editorial-heading h2 {
    margin: 0;
    color: #0b2c45;
    font-family: "Caudex", serif;
    font-size: clamp(31px, 3vw, 43px);
    font-weight: 700;
    letter-spacing: -.018em;
    line-height: 1.08;
}

body.cgm-about-page .cgm-about-editorial-body {
    max-width: 720px;
}

body.cgm-about-page .cgm-about-editorial-body p {
    margin: 0 0 20px;
}

body.cgm-about-page .cgm-about-editorial-body p:last-child {
    margin-bottom: 0;
}

body.cgm-about-page .cgm-about-editorial-body ul {
    margin: 0;
    padding-left: 1.25em;
}

body.cgm-about-page .cgm-about-editorial-body li {
    margin: 0 0 8px;
}

body.cgm-about-page .cgm-about-editorial-body li:last-child {
    margin-bottom: 0;
}

body.cgm-about-page .cgm-about-editorial-body li::marker {
    color: #b49a62;
}

body.cgm-about-page .cgm-about-editorial-body a {
    color: #0b2c45;
    font-weight: 700;
    text-decoration-color: #b49a62;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

body.cgm-about-page .cgm-about-editorial-body a:hover,
body.cgm-about-page .cgm-about-editorial-body a:focus {
    color: #8d7136;
}

/* Full-width statement band in the same visual language as the digital page. */
body.cgm-about-page .cgm-about-statement {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 48px 0 50px;
    box-sizing: border-box;
    background: #0b2c45;
    color: #fff;
}

body.cgm-about-page .cgm-about-statement::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(24px, calc((100% - 1180px) / 2));
    width: 4px;
    background: #b49a62;
}

body.cgm-about-page .cgm-about-statement p {
    max-width: 1040px;
    margin: 0;
    padding-left: 30px;
    color: #fff;
    font-family: "Caudex", serif;
    font-size: clamp(23px, 2.25vw, 32px);
    line-height: 1.42;
}

body.cgm-about-page .cgm-about-statement strong {
    color: #fff;
    font-weight: 700;
}

/* Match the tightened spacing around the navy band used on the digital page. */
body.cgm-about-page .cgm-about-copy-section:not(.cgm-about-copy-section--continuation) .cgm-about-editorial-row:last-child {
    padding-bottom: 22px;
}

body.cgm-about-page .cgm-about-copy-section--continuation .cgm-about-editorial-row:first-child {
    padding-top: 24px;
}

@media screen and (max-width: 900px) {
    body.cgm-about-page .cgm-about-editorial-row {
        grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
        gap: 40px;
    }
}

@media screen and (max-width: 720px) {
    body.cgm-about-page .cgm-about-shell {
        width: min(100% - 36px, 1180px);
    }

    body.cgm-about-page .cgm-about-hero,
    body.cgm-about-page .cgm-about-hero-inner {
        min-height: 420px;
    }

    body.cgm-about-page .cgm-about-hero-copy {
        width: 82%;
    }

    body.cgm-about-page .cgm-about-copy-section {
        padding-top: 48px;
    }

    body.cgm-about-page .cgm-about-copy-section--continuation {
        padding-top: 0;
        padding-bottom: 54px;
    }

    body.cgm-about-page .cgm-about-editorial-row,
    body.cgm-about-page .cgm-about-copy-section--continuation .cgm-about-editorial-row {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 0 42px;
        border-top: 0;
    }

    body.cgm-about-page .cgm-about-copy-section--continuation .cgm-about-editorial-row {
        padding-top: 36px;
        border-top: 1px solid rgba(16, 47, 72, .14);
    }

    body.cgm-about-page .cgm-about-copy-section--continuation .cgm-about-editorial-row:first-child {
        padding-top: 24px;
        border-top: 0;
    }

    body.cgm-about-page .cgm-about-editorial-heading h2 {
        font-size: clamp(30px, 8vw, 40px);
    }

    body.cgm-about-page .cgm-about-statement {
        padding: 38px 0 40px;
    }
}

@media screen and (max-width: 520px) {
    body.cgm-about-page .cgm-about-shell {
        width: calc(100% - 32px);
    }

    body.cgm-about-page .cgm-about-hero,
    body.cgm-about-page .cgm-about-hero-inner {
        min-height: 380px;
    }

    body.cgm-about-page .cgm-about-hero-inner {
        align-items: flex-end;
        padding-bottom: 88px;
    }

    body.cgm-about-page .cgm-about-hero-copy {
        width: 100%;
    }

    body.cgm-about-page .cgm-about-hero h1 {
        font-size: clamp(38px, 13vw, 50px);
    }

    body.cgm-about-page .cgm-about-copy {
        font-size: 16px;
    }

    body.cgm-about-page .cgm-about-statement p {
        padding-left: 22px;
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.cgm-about-page .cgm-about-hero-slide {
        transition: none;
    }
}


/* Membership CTA */
body.cgm-about-page .cgm-about-membership {
    padding: 0 0 54px;
    background: #f3f0e8;
}

body.cgm-about-page .cgm-about-membership-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    min-height: 154px;
    padding: 28px 34px;
    box-sizing: border-box;
    border-left: 4px solid #b49a62;
    background: #0b2c45;
    color: #fff;
    text-decoration: none;
    transition: background-color 180ms ease, transform 180ms ease;
}

body.cgm-about-page .cgm-about-membership-link:hover,
body.cgm-about-page .cgm-about-membership-link:focus {
    background: #123a58;
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

body.cgm-about-page .cgm-about-pdf-icon {
    position: relative;
    display: flex;
    width: 70px;
    height: 84px;
    align-items: flex-end;
    justify-content: center;
    padding: 0 8px 12px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, .92);
    color: #fff;
    font-family: "Hind", sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
}

body.cgm-about-page .cgm-about-pdf-icon::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 21px;
    height: 21px;
    border-left: 2px solid rgba(255, 255, 255, .92);
    border-bottom: 2px solid rgba(255, 255, 255, .92);
    background: #0b2c45;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

body.cgm-about-page .cgm-about-membership-link:hover .cgm-about-pdf-icon::before,
body.cgm-about-page .cgm-about-membership-link:focus .cgm-about-pdf-icon::before {
    background: #123a58;
}

body.cgm-about-page .cgm-about-membership-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

body.cgm-about-page .cgm-about-membership-kicker {
    margin-bottom: 5px;
    color: #d1b476;
    font-family: "Hind", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.2;
}

body.cgm-about-page .cgm-about-membership-copy strong {
    color: #fff;
    font-family: "Caudex", serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.1;
}

body.cgm-about-page .cgm-about-membership-action {
    margin-top: 7px;
    color: rgba(255,255,255,.78);
    font-family: "Hind", sans-serif;
    font-size: 15px;
    line-height: 1.3;
}

body.cgm-about-page .cgm-about-membership-arrow {
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    color: #fff;
    font-family: "Hind", sans-serif;
    font-size: 27px;
    line-height: 1;
}

/* Bottom building slider */
body.cgm-about-page .cgm-about-house-slider {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #092a42;
    isolation: isolate;
}

body.cgm-about-page .cgm-about-house-slides,
body.cgm-about-page .cgm-about-house-slide,
body.cgm-about-page .cgm-about-house-shade {
    position: absolute;
    inset: 0;
}

body.cgm-about-page .cgm-about-house-slide {
    opacity: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.01);
    transition: opacity 900ms ease;
}

body.cgm-about-page .cgm-about-house-slide.is-active {
    opacity: 1;
}

body.cgm-about-page .cgm-about-house-slide--gesamt {
    background-image: url('../images/landing/about/about-gebaeude-gesamt.jpg');
    background-position: 50% 54%;
}

body.cgm-about-page .cgm-about-house-slide--front {
    background-image: url('../images/landing/about/about-gebaeude-front.jpg');
    background-position: 50% 45%;
}

body.cgm-about-page .cgm-about-house-slide--eingang {
    background-image: url('../images/landing/about/about-eingang.jpg');
    background-position: 50% 58%;
}

body.cgm-about-page .cgm-about-house-shade {
    z-index: 1;
    background:
        linear-gradient(0deg, rgba(4, 24, 39, .62) 0%, rgba(4, 24, 39, .08) 42%, rgba(4, 24, 39, 0) 70%),
        linear-gradient(90deg, rgba(5, 28, 46, .18) 0%, rgba(5, 28, 46, 0) 58%);
    pointer-events: none;
}

body.cgm-about-page .cgm-about-house-controls {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 28px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

body.cgm-about-page .cgm-about-house-arrow {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 50%;
    background: rgba(5, 28, 46, .34);
    color: #fff;
    font: 400 25px/34px "Hind", sans-serif;
    text-align: center;
    cursor: pointer;
}

body.cgm-about-page .cgm-about-house-arrow:hover,
body.cgm-about-page .cgm-about-house-arrow:focus {
    border-color: #d1b476;
    background: rgba(5, 28, 46, .74);
    outline: none;
}

body.cgm-about-page .cgm-about-house-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

body.cgm-about-page .cgm-about-house-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

body.cgm-about-page .cgm-about-house-dot.is-active {
    border-color: #d1b476;
    background: #d1b476;
}

@media screen and (max-width: 720px) {
    body.cgm-about-page .cgm-about-membership {
        padding-bottom: 38px;
    }

    body.cgm-about-page .cgm-about-membership-link {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 20px;
        padding: 24px 22px;
    }

    body.cgm-about-page .cgm-about-membership-arrow {
        display: none;
    }

    body.cgm-about-page .cgm-about-pdf-icon {
        width: 58px;
        height: 70px;
        font-size: 14px;
    }

    body.cgm-about-page .cgm-about-house-slider {
        min-height: 430px;
    }
}

@media screen and (max-width: 520px) {
    body.cgm-about-page .cgm-about-membership-link {
        grid-template-columns: 1fr;
    }

    body.cgm-about-page .cgm-about-pdf-icon {
        width: 54px;
        height: 66px;
    }

    body.cgm-about-page .cgm-about-house-slider {
        min-height: 380px;
    }

    body.cgm-about-page .cgm-about-house-slide--front,
    body.cgm-about-page .cgm-about-house-slide--eingang {
        background-position: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.cgm-about-page .cgm-about-membership-link {
        transition: none;
    }

    body.cgm-about-page .cgm-about-house-slide {
        transition: none;
    }
}
