/** globale Definitionen **/
:root {
    --fontFamily: BundesSans, sans-serif;

    --borderColor: #999;

    --bulletColor: #000;

    --aColor: #1468a0;
    --aHoverColor: #000;
    --aTelColor: #000;
    --aTelHoverColor: #000;

    --btnBackColor: #1468a0;
    --btnBackHoverColor: #1468a0;
    --btnTextColor: #fff;
    --btnTextHoverColor: #fff;

    --h1Size: 24px;
	--h1LineHeight: calc( var( --h1Size ) * 1.15 );
    --h1Color: var(--textColor);
    --h1BackColor: transparent;
    --h1Margin: 20px 0 0;

    --h1SmallSize: 20px;
	--h1SmallLineHeight: calc( var( --h1SmallSize ) * 1.2 );
    --h1SmallColor: var(--textColor);
    --h1SmallBackColor: transparent;
    --h1SmallMargin: 10px 0 20px 0;

    --h2Size: 18px;
	--h2LineHeight: calc( var( --h2Size ) * 1.2 );
    --h2Color: var(--textColor);
    --h2BackColor: transparent;
    --h2Margin: 20px 0 10px 0;

    --h3Size: 16px;
	--h3LineHeight: calc( var( --h3Size ) * 1.4 );
    --h3Color: var(--textColor);
    --h3BackColor: transparent;
    --h3Margin: 10px 0 0;

    --wrapperPadding: 0 6%;
    --wrapperWidth: 760px;

    --textColor: #000;
    --textPadding: 5px 0;
    --textSize: 16px;
    --textLineHeight: calc( var( --textSize ) * 1.5 );

    --liPadding: 0 0 3px;
}

/* Die Schrift ist ein integraler Bestandteil des Corporate Designs der Bundesregierung
und darf nur von Bundesbehörden verwendet werden, die dem CD der Bundesregierung folgen */

/** Schriften Sans **/
@font-face {
    font-family: "BundesSans";
    src: url("../fonts/BundesSansWeb-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap
}
@font-face {
    font-family: "BundesSans";
    src: url("../fonts/BundesSansWeb-Bold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap
}
@font-face {
    font-family: "BundesSans";
    src: url("../fonts/BundesSansWeb-Italic.woff") format("woff");
    font-weight: normal;
    font-style: italic;
    font-display: swap
}
@font-face {
    font-family: "BundesSans";
    src: url("../fonts/BundesSansWeb-BoldItalic.woff") format("woff");
    font-weight: bold;
    font-style: italic;
    font-display: swap
}

/** Schriften Serif **/
@font-face {
    font-family: "BundesSerif";
    src: url("../fonts/BundesSerifWeb-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap
}
@font-face {
    font-family: "BundesSerif";
    src: url("../fonts/BundesSerifWeb-Bold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap
}
@font-face {
    font-family: "BundesSerif";
    src: url("../fonts/BundesSerifWeb-Italic.woff") format("woff");
    font-weight: normal;
    font-style: italic;
    font-display: swap
}
@font-face {
    font-family: "BundesSerif";
    src: url("../fonts/BundesSerifWeb-BoldItalic.woff") format("woff");
    font-weight: bold;
    font-style: italic;
    font-display: swap
}

/** Reset **/
* {
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    background-color: #fff;
}

p {
    padding: var( --textPadding );
}

ul,
ol {
    padding: 5px 0 5px 20px;
}

p, li {
    font-size: var( --textSize );
    line-height: var( --textLineHeight );
}
li {
    padding: var( --liPadding );
}

/** Standards **/
#wrapper {
    margin: auto;
    max-width: var( --wrapperWidth );
    font-family: var(--fontFamily);
    border: 1px solid var(--borderColor);
    overflow-x: hidden;
}
#wrapper > * {
    margin: var( --wrapperPadding );
}

h2:empty,
h3.empty,
h4.empty,
h5.empty,
h6.empty,
div:empty,
p:empty,
ul.empty,
ol.empty,
section:empty {
    display: none;
}

a[href^="tel:"] {
    white-space: nowrap;
    color: var(--aTelColor);
}
a[href^="tel:"]:hover {
    color: var(--aTelHoverColor);
}
a {
    color: var(--aColor);
    text-decoration: none;
    transition: all ease-in-out 0.3s;
}
a:hover {
    color: var(--aHoverColor);
}
a:hover {
    color: var(--aHoverColor);
}

ul li::marker {
    color: var(--bulletColor);
}

body {
    color: var(--textColor);
}

section {
    clear: both;
}

h1 {
    color: var(--h1Color);
    background-color: var(--h1BackColor);
    margin: var( --h1Margin );
    font-size: var(--h1Size);
	line-height: var(--h1LineHeight);
}
h1 small {
    color: var(--h1SmallColor);
    background-color: var(--h1SmallBackColor);
    margin: var( --h1SmallMargin );
    font-size: var(--h1SmallSize);
	line-height: var(--h1SmallLineHeight);
    display: block;
}
h2 {
    color: var(--h2Color);
    background-color: var(--h2BackColor);
    font-size: var(--h2Size);
	line-height: var(--h2LineHeight);
    margin: var( --h2Margin );
}
h3 {
    color: var(--h3Color);
    background-color: var(--h3BackColor);
    font-size: var(--h3Size);
	line-height: var(--h3LineHeight);
    margin: var( --h3Margin );
}

.btn {
    background-color: var(--btnBackColor);
    color: var(--btnTextColor);
}

.btn:hover {
    background-color: var(--btnBackHoverColor);
    color: var(--btnTextHoverColor);
}

.noWrap {
    white-space: nowrap;
}

.noMg {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* BAV global */
h1 > span {
    display: block;
}
h1 + p {
    font-weight: bold;
}
#damitAllesLaeuft {
    float: left;
    max-width: 146px;
    width: 30%;
    margin: 25px 25px 25px 0;
}
#damitAllesLaeuft + div {
    margin: 15px 0 15px 0;
}
#intro div:has( + div>p>img ) {
    margin: 0 0 20px 0;
}
#title {
    margin-top: 30px;
}
#wrapper > footer {
    margin: 30px 0 0 0;
    padding: var( --wrapperPadding );
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #333;
    font-weight: bold;
    font-size: 90%;
}
footer a,
footer a:hover {
    color: #fff;
}
footer a:last-of-type {
    float: right;
}
footer a p {
    display: inline;
}
header {
    margin-top: 60px !important;
    margin-bottom: 40px !important;
}
body:has( .bsh ) header,
body:has( .kba ) #sublogo {
    margin-top: 0 !important;
}
body:has( .kba ) #logo {
    max-width: 150px;
}
body:has( .lba ) #logo {
    max-width: 460px;
}
body:has( .lba ) #intro img,
body:has( .lba ) #intro img + div {
    display: none !important;
}
header div:nth-child(1) img {
    width: 70%;
    max-width: 340px;
    /* margin: 60px 0 40px 0 */
}
header div:nth-child(2) img {
    width: 70%;
    max-width: 250px;
    margin: 60px 0 40px 0
}

/* WSV / WSA / RZ / ABVT / BAIT / BEU / BEV / BSBK / BSU / GDWS / WNA / HK */
body:has( .wsv ) header {
    display: grid;
    grid-template-columns: 60% 40%;
}
body:has( .wsv ) header div:nth-child(1) {
    order: 2;
    text-align: right;
}
body:has( .wsv ) header div:nth-child(2) {
    order: 1;
}
body:has( .wsv ) #sublogo {
    margin: 0;
}

/* KBA */
body:has( .kba ) header {
    display: grid;
    grid-template-columns: 64% 36%;
}
body:has( .kba ) header div:nth-child(1) {
    order: 2;
    text-align: right;
}
body:has( .kba ) header div:nth-child(2) {
    order: 1;
}
body:has( .kba ) header div:nth-child(2) img {
    width: 100%;
    max-width: 375px;
}

/* LBA */
body:has( .lba ) header {
    display: grid;
    grid-template-columns: 70% 30%;
}
body:has( .lba ) header div:nth-child(1) img {
    width: 100%;
    max-width: 492px;
}
body:has( .lba ) header div:nth-child(2) img {
    width: 70%;
}
body:has( .lba ) header div:nth-child(2) {
    text-align: right;
}

/* EBA / BMDV / BALM / BAF / FBA / BAV */
body:has( .eba ) header {
    display: grid;
    grid-template-columns: 50% 50%;
}
body:has( .eba ) header div:nth-child(1) img {
    width: 80%;
    max-width: 270px;
}
body:has( .eba ) header div:nth-child(2) img {
    width: 70%;
}
body:has( .eba ) header div:nth-child(2) {
    text-align: right;
}

/* DWD */
body:has( .dwd ) header {
    display: grid;
    grid-template-columns: 30% 70%;
}
body:has( .dwd ) header div:nth-child(1) {
    order: 2;
    text-align: right;
}
body:has( .dwd ) header div:nth-child(2) {
    order: 1;
}
body:has( .dwd ) header div:nth-child(1) img {
    width: 90%;
    max-width: 470px;
}

/* BSH */
body:has( .bsh ) header {
    display: grid;
    grid-template-columns: 50% 50%;
}
body:has( .bsh ) header div:nth-child(1) {
    order: 2;
    text-align: right;
}
body:has( .bsh ) header div:nth-child(1) img {
    max-height: 148px;
    width: auto;
    margin-top: 0;
}

/* BFU */
body:has( .bfu ) header {
    display: grid;
    grid-template-columns: 30% 70%;
}
body:has( .bfu ) header div:nth-child(1) {
    order: 2;
    text-align: right;
}
body:has( .bfu ) header div:nth-child(2) {
    order: 1;
}
body:has( .bfu ) header div:nth-child(1) img {
    width: 90%;
    max-width: 340px;
}

/* BFG */
body:has( .bfg ) {
    --textSize: 14px;
    --h1SmallSize: 19px;
    --textLineHeight: 20px;
    --h1Size: 22px;
    --h2Size: 15px;
    --h2LineHeight: 18px;
    --h3Size: 14px;
    --h3LineHeight: 16px;
    --h1SmallMargin: 5px 0 15px 0;
}
h1 + article > h2 {
    /* font-size: 16px; */
    font-weight: bold;
    /* line-height: 22px; */
    margin-top: 0;
}
body:has( .bfg ) * {
    font-family: "Verdana", sans-serif !important;
}
body:has( .bfg ) h2 {
    font-family: "Verdana", sans-serif !important;
}
body:has( .bfg ) header {
    display: grid;
    grid-template-columns: 30% 70%;
}
body:has( .bfg ) header div:nth-child(1) {
    order: 2;
    text-align: right;
}
body:has( .bfg ) header div:nth-child(2) {
    order: 1;
}
body:has( .bfg ) header div:nth-child(1) img {
    width: 90%;
    max-width: 200px;
}

/* BAW */
body:has( .baw ) header {
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: end;
}
body:has( .baw ) header div:nth-child(1) img {
    width: 80%;
    max-width: 320px;
}
body:has( .ebbawa ) header div:nth-child(2) img {
    width: 70%;
}
body:has( .baw ) header div:nth-child(2) {
    text-align: right;
}
body:has( .baw ) .bawTxt {
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    color: #1468a0;
    text-decoration: none;
    position: relative;
    display: block;
    font-weight: bold;
}