:root {
    --pm-color-orange: #F59E01;
    --pm-color-orange-strong: #E98700;
    /* --pm-color-orange and --pm-color-orange-strong measure ~2.1:1 and
       ~2.6:1 against --pm-color-paper - both fail WCAG 1.4.3 (needs 4.5:1
       for normal text, 3:1 for large text) badly. Fine as text on the dark
       --pm-color-ink background (~9:1), but any kicker/label/accent text
       that sits on a light/paper section must use this darker variant
       instead - 5.56:1 against --pm-color-paper, still clears 4.5:1 even
       on the palest tinted badge backgrounds in use (e.g. image-checklist's
       rgba(245,158,1,0.14) icon circle, ~5.0:1) - see the accessibility
       pass notes. */
    --pm-color-orange-on-light: #9C5700;
    --pm-color-anthrazit: #3D4654;
    --pm-color-ink: #0B0D10;
    --pm-color-paper: #FFFDF8;
    --pm-color-cyan: #72D8FF;
    --pm-color-line-dark: rgba(255, 255, 255, 0.16);
    --pm-radius: 8px;
    --pm-container-wide: 1680px;
    /* Per the CSS Custom Properties spec, a relative url() inside a variable's
       value resolves relative to the stylesheet where var() is USED, not where
       it's declared - and every real consumer is a Content Block CSS file at
       ContentBlocks/piccomedia/<block>/<block>.css (3 levels under the shared
       published hash root), not this file's own Css/ location. Path is written
       relative to that common consumer depth. */
    --pm-wallpaper-image: url("../../../Images/Brand/piccomedia-wallpaper-1920w.jpg");
    /* bootstrap_package maps its $link-color SCSS variable straight to our
       brand orange (settings.yaml scss.primary), so EVERY unstyled <a> tag
       sitewide - breadcrumbs, inline RTE links, the Datenschutz-consent link
       in the contact form - inherits the same ~2.1:1-on-paper failure the
       kickers had. Overriding the safe default here fixes all of those in
       one place; known dark sections restore the vivid orange below since
       it's fully accessible there (~9:1). Bootstrap 5's own base rule reads
       `--bs-link-color-rgb` (an R,G,B triplet, consumed via
       `rgba(var(--bs-link-color-rgb), var(--bs-link-opacity,1))`), not
       `--bs-link-color` itself directly - both are set here since some
       other component may reference either. */
    --bs-link-color: var(--pm-color-orange-on-light);
    --bs-link-color-rgb: 156, 87, 0;
}

.subhero,
.text-note-section,
.operating-system-section,
.home-media-section,
.stance-board-section,
.error-404-section,
.mission-control,
.agency-stack,
.reference-radar-section,
.pm-linkhub-section,
.reference-matrix-section,
.pm-footer,
.contact-aside,
.pm-feature-stack-dark,
.comparison-panel-dark,
.capability-card-dark,
.pm-reference-grid-dark,
.featured-case-section--dark,
.agency-card-ai {
    --bs-link-color: var(--pm-color-orange);
    --bs-link-color-rgb: 245, 158, 1;
}

@supports (background-image: image-set(url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBTAA7") type("image/gif") 1x)) {
    :root {
        --pm-wallpaper-image: image-set(
            url("../../../Images/Brand/piccomedia-wallpaper-768w.webp") type("image/webp") 1x,
            url("../../../Images/Brand/piccomedia-wallpaper-1280w.webp") type("image/webp") 1.5x,
            url("../../../Images/Brand/piccomedia-wallpaper-1920w.webp") type("image/webp") 2x
        );
    }
}

/*
 * Logo shrinks together with the navbar height (--mainnavigation-nav-height
 * is set by Bootstrap Package per breakpoint, and reduced further once
 * .navbar-transition is toggled on scroll > 120px, see bootstrap_package's
 * navbar/_fixed.scss + navbar/_transition.scss + bootstrap.stickyheader.js).
 * Bootstrap Package's own rule is only a max-height cap, which our fixed
 * logo height attribute never reached - this makes it actually responsive.
 */
.navbar-brand-logo-normal {
    height: calc(var(--mainnavigation-nav-height, 70px) * 0.33);
    width: auto;
    transition: height 0.27s cubic-bezier(0, 0, 0.58, 1);
}

/*
 * Bootstrap Package's own `.navbar-brand` has a small FIXED height (tied to
 * --mainnavigation-link-height, sized for a single line of nav-link text,
 * see components/_navbar.scss) - a stacked logo+tagline overflows that box
 * and gets clipped/invisible if laid out in normal flow (tried a flex-column
 * approach first; the tagline vanished entirely because of this). Taking
 * the tagline out of flow with `position: absolute` sidesteps the fixed
 * height instead of fighting it - it just sits below the brand box,
 * independent of how tall that box is.
 */
.navbar-brand-image {
    position: relative;
}

.navbar-brand-tagline {
    position: absolute;
    left: 0;
    top: 100%;
    display: block;
    color: var(--pm-color-anthrazit);
    opacity: 0.68;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.27s cubic-bezier(0, 0, 0.58, 1);
}

.navbar-brand-tagline strong {
    color: var(--pm-color-orange-on-light);
    font-weight: 900;
}

/*
 * Scrolling past 120px adds .navbar-transition to the fixed header
 * (bootstrap.stickyheader.js) and shrinks the logo via
 * --mainnavigation-nav-height - the tagline no longer fits underneath it
 * at that reduced height, so collapse it away in the same transition
 * instead of letting it overlap the logo.
 */
.navbar-transition .navbar-brand-tagline {
    opacity: 0;
    transform: translateY(-4px);
}

@media (max-width: 480px) {
    .navbar-brand-tagline {
        display: none;
    }
}

/*
 * Bootstrap Package's own submenu-toggle button (the small chevron next to
 * a nav item with children, e.g. "Leistungen") ships with no explicit
 * padding of its own beyond the base .nav-link's horizontal padding - just
 * enough box for the tiny indicator glyph. Lighthouse flags it as an
 * insufficient touch target (too small, too close to the adjacent text
 * link). Pad it out to a comfortable tap target without changing its
 * visual size (the glyph itself is untouched, only the invisible hit area
 * grows) and nudge it slightly away from the text link.
 */
.navbar-mainnavigation .nav-link-toggle {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    margin-left: 0.25rem;
}

/* ---------------------------------------------------------------------- */
/* Site footer                                                            */
/* ---------------------------------------------------------------------- */

.pm-footer {
    position: relative;
    overflow: hidden;
    background: var(--pm-color-ink);
    color: var(--pm-color-paper);
}

.pm-footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(100deg, var(--pm-color-ink) 0%, rgba(11, 13, 16, 0.55) 32%, transparent 58%),
        url("../Images/Footer/footer-bg-2560w.jpg") right bottom / cover no-repeat;
}

/*
 * The source artwork is almost entirely warm/orange - this layer screens in
 * a cyan glow over the lower-left tendril of the wave (where the artwork
 * already has faint bluish dots) so the brand's orange+cyan duo still reads,
 * without touching the source pixels. `mix-blend-mode` only blends against
 * what's behind the element, so this needs its own stacked pseudo-element
 * rather than a third `background:` layer on `.pm-footer-bg` itself.
 */
.pm-footer-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(55% 75% at 10% 95%, rgba(114, 216, 255, 0.55) 0%, rgba(114, 216, 255, 0.22) 38%, transparent 68%);
    mix-blend-mode: screen;
}

@supports (background-image: image-set(url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBTAA7") type("image/gif") 1x)) {
    .pm-footer-bg {
        background:
            linear-gradient(100deg, var(--pm-color-ink) 0%, rgba(11, 13, 16, 0.55) 32%, transparent 58%),
            image-set(
                url("../Images/Footer/footer-bg-1280w.webp") type("image/webp") 1x,
                url("../Images/Footer/footer-bg-2560w.webp") type("image/webp") 2x
            ) right bottom / cover no-repeat;
    }
}

.pm-footer-top,
.pm-footer-bottom {
    position: relative;
    z-index: 1;
}

.pm-footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding-block: clamp(48px, 7vw, 96px) 40px;
}

.pm-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 320px;
}

.pm-footer-logo-link {
    display: inline-block;
}

.pm-footer-logo {
    height: 26px;
    width: auto;
    display: block;
}

.pm-footer-tagline {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--pm-color-paper);
    opacity: 0.72;
}

.pm-footer-tagline strong {
    color: var(--pm-color-orange);
    font-weight: 600;
}

.pm-footer-nav-groups {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(40px, 6vw, 96px);
    margin-right: clamp(0px, 8vw, 140px);
}

.pm-footer-nav-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.pm-footer-nav-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--pm-color-orange);
    opacity: 0.9;
    margin-bottom: 4px;
}

.pm-footer-link {
    color: var(--pm-color-paper);
    opacity: 0.8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.pm-footer-link:hover,
.pm-footer-link:focus-visible {
    opacity: 1;
    color: var(--pm-color-cyan);
}

.pm-footer-bottom {
    border-top: 1px solid var(--pm-color-line-dark);
    padding-block: 20px;
}

.pm-footer-copyright {
    margin: 0;
    font-size: 0.82rem;
    color: var(--pm-color-paper);
    opacity: 0.56;
}

@media (max-width: 767.98px) {
    .pm-footer-bg {
        background-position: right bottom;
        background-size: 220% auto;
    }

    .pm-footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .pm-footer-nav-groups {
        gap: 32px;
    }
}

/* ---------------------------------------------------------------------- */
/* Cookie consent (we_cookie_consent / Klaro)                             */
/* ---------------------------------------------------------------------- */

/*
 * Klaro (the underlying open-source library) always renders its own
 * "powered by" credit link, regardless of the extension's `poweredBy`
 * config value - that setting only swaps the link *target* (falls back to
 * Klaro's own site if left empty), it does not gate whether the element
 * itself renders (confirmed in the vendored klaro.js: the <a> is built
 * unconditionally, only its href is conditional). No license requires
 * keeping it (GPL-2.0, we_cookie_consent's own `poweredBy` setting is
 * explicitly documented as user-configurable) - hidden here in CSS rather
 * than patching vendor code.
 */
.cm-powered-by {
    display: none;
}

/* ---------------------------------------------------------------------- */
/* Article detail pages (standard bootstrap_package textpic + text)       */
/* ---------------------------------------------------------------------- */

/*
 * Used for the "Mehr erfahren" detail pages (TYPO3, WordPress, Hosting,
 * KI-Anwendungen etc.) - a small supporting logo/icon floated beside the
 * long-form body text. Bootstrap Package's own imageorient=25/26 templates
 * (TextpicRight/TextpicLeft) size the image at 50% of the content width by
 * default (see contentelements.textpic.left/right multiplier in its own
 * TypoScript) - far too large for a small icon-style graphic, hence the
 * explicit cap here.
 */
.textpic-left,
.textpic-right {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 48px);
    align-items: flex-start;
    width: min(100%, 820px);
    margin-inline: auto;
}

.textpic-left {
    flex-direction: row;
}

.textpic-right {
    flex-direction: row-reverse;
}

.textpic-left .textpic-gallery,
.textpic-right .textpic-gallery {
    flex: 0 0 auto;
    width: 140px;
}

.textpic-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.textpic-text {
    flex: 1 1 320px;
    min-width: 0;
}

.textpic-text h2,
.frame-type-text h2 {
    margin: 40px 0 14px;
    color: var(--pm-color-anthrazit);
    font-size: clamp(21px, 2.2vw, 26px);
    font-weight: 900;
}

.textpic-text h2:first-child,
.frame-type-text h2:first-child {
    margin-top: 0;
}

.textpic-text p,
.frame-type-text p {
    margin: 0 0 18px;
    color: rgba(61, 70, 84, 0.86);
    font-size: 17px;
    line-height: 1.6;
}

/* Plain "text" elements (no accompanying image) still get the same
   comfortable reading width as textpic's text column. */
.frame-type-text .frame-inner {
    width: min(100%, 780px);
    margin-inline: auto;
}

@media (max-width: 700px) {
    .textpic-left,
    .textpic-right {
        flex-direction: column;
    }

    .textpic-left .textpic-gallery,
    .textpic-right .textpic-gallery {
        width: 96px;
    }
}
