/**
 * Bauphysik – Nachbau des bisherigen Erscheinungsbildes.
 *
 * Das Ursprungstemplate war ein 750 px breites Tabellenlayout. Aufteilung,
 * Farben und Menueoptik sind uebernommen, das Raster ist auf 1000 px
 * verbreitert und ab 860 px Fensterbreite einspaltig.
 */

:root {
    --bp-blue-dark: #0067af;
    --bp-blue-mid: #3083be;
    --bp-blue-light: #80b3d7;
    --bp-content-bg: #f2f7fb;
    --bp-text: #333;
    --bp-gap: 3px;
    --bp-aside-width: 278px;
}

body.bp-site {
    margin: 0;
    padding: 16px 12px;
    background-color: #fff;
    color: var(--bp-text);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.bp-page {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bp-skip {
    position: absolute;
    left: -9999px;
}

.bp-skip:focus {
    position: static;
    display: inline-block;
    padding: 6px 12px;
    background: var(--bp-blue-dark);
    color: #fff;
}

/* ---------- Kopfleiste: Pfadangabe links, Servicelinks rechts ---------- */

.bp-bar,
.bp-header,
.bp-main,
.bp-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--bp-aside-width);
    gap: var(--bp-gap);
}

.bp-bar__crumbs {
    background-color: var(--bp-blue-mid);
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #fff;
}

.bp-bar__service {
    background-color: var(--bp-blue-dark);
    min-height: 30px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bp-bar a,
.bp-bar .breadcrumb-item,
.bp-bar .breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.bp-bar a:hover {
    color: #ff9900;
    text-decoration: none;
}

.bp-bar .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
}

.bp-bar .breadcrumb-item + .bp-bar .breadcrumb-item::before,
.bp-bar .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.65);
}

.bp-bar__service ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 14px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
}

.bp-bar__service li::before {
    content: none;
}

/* ---------- Kopfbereich mit Firmenschriftzug und Wortmarke ---------- */

.bp-header__brand {
    background-color: var(--bp-blue-dark);
    display: flex;
    align-items: center;
    padding: 6px 14px;
    min-height: 54px;
}

.bp-header__brand a {
    text-decoration: none;
    color: #fff;
    display: block;
}

.bp-header__name {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.bp-header__tagline {
    display: block;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.bp-header__logo {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 54px;
}

.bp-header__logo img {
    max-width: 100%;
    height: auto;
}

/* ---------- Inhalt und rechte Spalte ---------- */

.bp-content {
    background-color: var(--bp-content-bg);
    padding: 14px 16px;
    min-width: 0;
}

.bp-aside {
    background-color: var(--bp-blue-mid);
    padding: 24px 12px 24px;
}

.bp-banner,
.bp-bottom {
    background-color: var(--bp-content-bg);
    padding: 10px 16px;
}

.bp-content h1,
.bp-content h2,
.bp-content .page-header h1,
.bp-content .page-header h2 {
    margin: 0 0 0.6em;
    padding-bottom: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--bp-text);
    background-image: url("../images/underline.gif");
    background-repeat: repeat-x;
    background-position: bottom left;
}

/* Artikeltitel waren im Ursprungstemplate nicht farblich hervorgehoben. */
.bp-content h1 a,
.bp-content h2 a,
.bp-content h3 a {
    color: inherit;
    text-decoration: none;
}

.bp-content h1 a:hover,
.bp-content h2 a:hover,
.bp-content h3 a:hover {
    text-decoration: underline;
}

.bp-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.4em 0 0.5em;
}

.bp-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.2em 0 0.4em;
}

.bp-content p {
    margin: 0 0 0.7em;
}

.bp-content a {
    color: var(--bp-blue-dark);
    text-decoration: none;
}

.bp-content a:hover {
    text-decoration: underline;
}

.bp-content img {
    max-width: 100%;
    height: auto;
}

.bp-content .com-content-article__body table,
.bp-content .item-page table {
    max-width: 100%;
}

/* ---------- Weiterlesen-Link ---------- */

.bp-content p.readmore {
    margin: 14px 0 0;
}

.bp-content .readmore .btn {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: baseline;
    gap: 7px;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: inherit;
    color: var(--bp-blue-dark);
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.bp-content .readmore .btn:hover,
.bp-content .readmore .btn:focus {
    color: var(--bp-blue-mid);
    text-decoration: underline;
    background: none;
}

.bp-content .readmore .btn [class^="icon-"] {
    font-size: 0.75em;
}

/* ---------- Kontaktangaben ---------- */

.bp-content .bp-contact__company {
    margin: -6px 0 0;
    font-weight: 700;
}

.bp-content .bp-contact dt {
    font-weight: 700;
    color: var(--bp-blue-dark);
}

/* Trennt die Angaben voneinander, ohne vor der ersten Luft zu lassen. */
.bp-content .bp-contact dd + dt {
    margin-top: 12px;
}

.bp-content .bp-contact dd {
    margin: 0;
}

/* ---------- Weitere Beitraege und Blaetternavigation ---------- */

.bp-content .items-more,
.bp-content .com-content-category-blog__navigation {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--bp-blue-light);
}

.bp-content .com-content-blog__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bp-content .com-content-blog__link {
    position: relative;
    margin: 0 0 4px;
    padding-left: 16px;
}

.bp-content .com-content-blog__link::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.5em;
    border-left: 6px solid var(--bp-blue-mid);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.bp-content .com-content-category-blog__navigation {
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
}

.bp-content .com-content-category-blog__counter {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    font-size: 0.8rem;
    color: #67788a;
}

.bp-content .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.bp-content .pagination .page-item {
    margin: 0;
}

.bp-content .pagination .page-item::before {
    content: none;
}

.bp-content .pagination .page-link {
    display: block;
    min-width: 28px;
    padding: 3px 8px;
    font-size: 0.85rem;
    text-align: center;
    color: #fff;
    text-decoration: none;
    background-image: linear-gradient(180deg, #4a9ad4 0%, #1f7cba 55%, #0067af 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bp-content .pagination .page-link:hover {
    color: #333;
    text-decoration: none;
    background-image: linear-gradient(180deg, #6fb2e0 0%, #3f8fc9 55%, #1a75b8 100%);
}

.bp-content .pagination .active .page-link {
    font-weight: 700;
    background-image: linear-gradient(180deg, #6fb2e0 0%, #3f8fc9 55%, #1a75b8 100%);
}

.bp-content .pagination .disabled .page-link {
    color: #8fa3b2;
    background: #dce8f1;
    border-color: #cfdce6;
}

/* ---------- Hauptmenue in der rechten Spalte ---------- */

.bp-aside ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bp-aside li {
    margin: 0 0 5px;
    padding: 0;
}

.bp-aside li::before {
    content: none;
}

.bp-aside a {
    position: relative;
    display: block;
    padding: 5px 8px 5px 30px;
    color: #fff;
    font-size: 0.92rem;
    text-decoration: none;
    background-image: linear-gradient(180deg, #4a9ad4 0%, #1f7cba 55%, #0067af 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bp-aside a::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 7px solid #fff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.bp-aside .current > a,
.bp-aside .active > a {
    background-image: linear-gradient(180deg, #6fb2e0 0%, #3f8fc9 55%, #1a75b8 100%);
}

.bp-aside a:hover,
.bp-aside a:focus {
    color: #333;
    background-image: linear-gradient(180deg, #6fb2e0 0%, #3f8fc9 55%, #1a75b8 100%);
}

/*
 * Das Ursprungsmenue kannte keinen Aufklappschalter: Untermenues wurden nur
 * im aktiven Zweig gezeigt, als weisser Kasten unter dem Elternpunkt.
 */
.bp-aside .mod-menu__toggle-sub {
    display: none;
}

.bp-aside li ul {
    background-color: #fff;
    border: 1px solid var(--bp-blue-light);
    border-top: 0;
    padding: 6px 0;
    margin: -5px 0 5px;
}

.bp-aside li ul li {
    margin: 0;
}

.bp-aside li ul a,
.bp-aside li ul .current > a,
.bp-aside li ul .active > a,
.bp-aside li ul a:hover {
    background: none;
    border: 0;
    color: #000;
    padding: 4px 10px 4px 22px;
    font-size: 0.9rem;
}

.bp-aside li ul a::before {
    content: none;
}

.bp-aside li ul .current > a,
.bp-aside li ul .active > a {
    font-weight: 700;
}

.bp-aside li ul a:hover {
    text-decoration: underline;
}

.bp-aside .moduletable,
.bp-aside .card {
    background: none;
    border: 0;
    margin-bottom: 18px;
}

.bp-aside h3,
.bp-aside .card-header {
    background: none;
    border: 0;
    color: #fff;
    font-size: 1rem;
    padding: 0 0 6px;
    margin: 0 0 6px;
}

/* ---------- Fusszeile ---------- */

.bp-footer__spacer {
    background-color: var(--bp-blue-mid);
    min-height: 24px;
}

.bp-footer__note {
    background-color: var(--bp-blue-dark);
    min-height: 24px;
    padding: 4px 8px;
    text-align: right;
    font-size: 0.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bp-footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.bp-footer a:hover {
    color: #ff9900;
}

/* ---------- Schmale Fenster: einspaltig, Navigation zuerst ---------- */

@media (max-width: 860px) {
    .bp-bar,
    .bp-header,
    .bp-main,
    .bp-footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .bp-main .bp-aside {
        order: -1;
        padding: 12px;
    }

    .bp-header__logo {
        justify-content: center;
        padding: 8px 0;
    }

    .bp-bar__service {
        justify-content: flex-start;
    }

    .bp-footer__spacer {
        display: none;
    }

    .bp-footer__note {
        justify-content: center;
    }
}
