/**
 * format Software GmbH — theme refinements on top of bk2k/bootstrap-package.
 * Palette and the dot-grid signature are lifted directly from the company
 * logo (logo.format.svg): brand red #ED0606 + graphite #444443 on paper.
 */

@font-face {
    font-family: "Source Sans 3";
    src: url("../Fonts/SourceSans3-Variable.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #ffffff;
    --paper-soft: #f5f3ef;
    --ink: #29282a;
    --ink-soft: #46453f;
    --line: #e3ded4;
    --brand-red: #ed0606;
    --footer-ink: #1d1c1b;
    --footer-ink-deep: #141312;
    --footer-ink-soft: rgba(255, 255, 255, .68);
    --footer-line: rgba(255, 255, 255, .14);

    /* self-hosted variable font (weight axis 200-900, covers regular + bold
       natively); fallbacks are OS system fonts only - no third-party requests */
    --font-display: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;

    /* the logo's own 3x3 module, reused as a signature mark
       (served as same-origin SVG files so the img-src 'self' CSP policy allows them) */
    --dot-mark: url("../Icons/dot-mark.svg");
    --dot-mark-watermark: url("../Icons/dot-mark-watermark.svg");
}

body {
    font-family: var(--font-display);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* bootstrap-package sets $headings-font-weight: 300 (Light) for h1-h6; with
   a real variable font like Source Sans 3 that renders visibly thin/washed
   out. Give plain RTE content headings a heavier weight. Elements with their
   own explicit weight (.element-header, .card-header, ...) are unaffected,
   since those class-based selectors are more specific and win regardless. */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

/* ---------------------------------------------------------------- */
/* Header / navigation                                               */
/* ---------------------------------------------------------------- */
.bp-page-header.navbar-mainnavigation {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}

.navbar-brand-logo-normal {
    height: 3.8rem;
    width: auto;
}

.navbar-mainnavigation .nav-link-text {
    font-family: var(--font-display);
    letter-spacing: .04em;
    color: var(--ink);
    position: relative;
}

.navbar-mainnavigation .nav-link-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5px;
    height: 5px;
    background: var(--brand-red);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .18s ease, transform .18s ease;
}

.navbar-mainnavigation .nav-link:hover .nav-link-text::after,
.navbar-mainnavigation .nav-link[aria-current="true"] .nav-link-text::after,
.navbar-mainnavigation .dropdown:hover > .nav-link .nav-link-text::after {
    opacity: 1;
    transform: scale(1);
}

/* ---------------------------------------------------------------- */
/* Section headings ("Aktuelles" etc.) + hero caption                */
/* ---------------------------------------------------------------- */
.element-header {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--ink);
    position: relative;
}



h1.element-header {
    font-size: clamp(1.5rem, 3.4vw, 1.8rem);
    line-height: 1.18;
}
.frame-group-container h1.element-header {
    font-size: clamp(1.7rem, 3.4vw, 2rem);
}

h2.element-header {
    font-size: clamp(1.4rem, 2.2vw, 1.5rem);
    line-height: 1.25;
}

.element-subheader {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brand-red);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    letter-spacing: .01em;
    margin-top: .6rem;
}

/* ---------------------------------------------------------------- */
/* Hero / highlighted band                                           */
/* ---------------------------------------------------------------- */
.frame-background-light {
    --frame-background: var(--paper-soft);
    --frame-color: var(--ink);
}

/* bootstrap-package renders the actual visible box for "embedded" frames
   on .frame-group-inner (the outer .frame itself stays transparent), so
   the highlight panel needs to be styled there, not on .frame directly */
.frame-layout-embedded.frame-background-light > .frame-group-container > .frame-group-inner {
    background: var(--paper-soft) !important;
    position: relative;
    overflow: hidden;
    padding: 3rem 1.75rem !important;
}

.frame-layout-embedded.frame-background-light > .frame-group-container > .frame-group-inner::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: var(--dot-mark-watermark);
    background-repeat: repeat;
    opacity: .08;
    mask-image: linear-gradient(to bottom left, #000 0%, transparent 60%);
    pointer-events: none;
}

.frame-background-light .frame-header {
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------------- */
/* Quick links row (texticon)                                        */
/* ---------------------------------------------------------------- */
.texticon {
    padding: 1.35rem 0;
    border-top: 1px solid var(--line);
    align-items: center;
    gap: 1.1rem;
}

.texticon-icon {
    font-size: 1.5em;
    color: var(--ink);
}

.texticon-content {
    font-family: var(--font-display);
    font-weight: 600;
}

.texticon-content a {
    color: var(--ink);
    text-decoration: none;
    transition: color .15s ease;
}

.texticon-content a::after {
    content: "\2192";
    display: inline-block;
    margin-left: .4em;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

.texticon-content a:hover {
    color: var(--brand-red);
}

.texticon-content a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ---------------------------------------------------------------- */
/* "Aktuelles" changelog list (Panel content element)                 */
/* ---------------------------------------------------------------- */
.card-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.card-panel .card-header {
    background: transparent !important;
    color: var(--ink) !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem !important;
    padding: 1.6rem 0 .6rem !important;
    position: relative;
    padding-left: 1.15rem !important;
    margin-bottom: 10px;
}

.card-panel .card-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.95rem;
    width: 8px;
    height: 8px;
    background-image: var(--dot-mark);
    background-size: contain;
}

.card-panel .card-body {
    padding: 0 0 1.75rem;
    color: var(--ink);
}

.card-panel .card-body p {
}

/* ---------------------------------------------------------------- */
/* Footer                                                             */
/* ---------------------------------------------------------------- */
.footer-section-content {
    background: var(--footer-ink) !important;
}

.footer-section-meta {
    background: var(--footer-ink-deep) !important;
    position: relative;
    overflow: hidden;
}

.footer-section-meta::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 170px;
    height: 170px;
    background-image: var(--dot-mark-watermark);
    background-repeat: repeat;
    opacity: .1;
    mask-image: linear-gradient(to top left, #000 0%, transparent 70%);
    pointer-events: none;
}

.footer-menu-section,
.footer-info-section {
    position: relative;
    z-index: 1;
}

.footer-navigation-link-level-1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    color: var(--footer-ink-soft) !important;
    transition: color .15s ease;
}

.footer-navigation-link-level-1:hover {
    color: #fff !important;
}

.footer-contact-headline {
    font-family: var(--font-display);
    letter-spacing: .06em;
    color: var(--footer-ink-soft);
    position: relative;
    padding-left: 1.15rem;
}

.footer-contact-headline::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 8px;
    height: 8px;
    background-image: var(--dot-mark);
    background-size: contain;
}

.footer-contact .address-phone a,
.footer-contact .address-email a {
    font-family: var(--font-mono);
    font-size: .95rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--footer-line);
}

.footer-contact .address-phone a:hover,
.footer-contact .address-email a:hover {
    border-color: var(--brand-red);
}

@media (prefers-reduced-motion: reduce) {
    .navbar-mainnavigation .nav-link-text::after,
    .texticon-content a::after,
    .footer-navigation-link-level-1 {
        transition: none;
    }
}
