@charset "utf-8";

/* ==========================================================================
   base.css – Grundlagen (Reset, Typografie, Layoutraster)
   Eigenständig, ohne externes CSS-Framework.
   ========================================================================== */

/* --- Reset / Grundeinstellungen ------------------------------------------ */

html {
    box-sizing: border-box;
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-overflow-style: scrollbar;
    -webkit-tap-highlight-color: transparent;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

article, aside, figcaption, figure, footer, header, main, nav, section {
    display: block;
}

body {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
}

[tabindex="-1"]:focus {
    outline: none !important;
}

/* --- Typografie ---------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol, ul, dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol ol, ul ul, ol ul, ul ol {
    margin-bottom: 0;
}

blockquote {
    margin: 0 0 1rem;
}

b, strong {
    font-weight: bolder;
}

small,
.kleingedruckt {
    font-size: 80%;
    font-weight: 400;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- Links --------------------------------------------------------------- */

a {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

a:not([href]):not([tabindex]) {
    color: inherit;
    text-decoration: none;
}

a:not([href]):not([tabindex]):focus,
a:not([href]):not([tabindex]):hover {
    color: inherit;
    text-decoration: none;
}

a:not([href]):not([tabindex]):focus {
    outline: 0;
}

/* --- Medien -------------------------------------------------------------- */

img {
    vertical-align: middle;
    border-style: none;
}

svg:not(:root) {
    overflow: hidden;
}

/* --- Layoutraster --------------------------------------------------------- */

.seitenbreite,
.seitenbreite-voll {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 576px) {
    .seitenbreite { max-width: 540px; }
}

@media (min-width: 768px) {
    .seitenbreite { max-width: 720px; }
}

@media (min-width: 992px) {
    .seitenbreite { max-width: 960px; }
}

@media (min-width: 1200px) {
    .seitenbreite { max-width: 1140px; }
}

.zeile {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.spalte {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

/* --- Kopfleiste ----------------------------------------------------------- */

.kopfleiste {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.kopfleiste > .seitenbreite,
.kopfleiste > .seitenbreite-voll {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.kopfleiste-logo {
    display: inline-block;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
}

.kopfleiste-logo:focus,
.kopfleiste-logo:hover {
    text-decoration: none;
}

/* --- Druckausgabe --------------------------------------------------------- */

@media print {
    *,
    *::before,
    *::after {
        text-shadow: none !important;
        box-shadow: none !important;
    }

    a:not(.kopfleiste-logo) {
        text-decoration: underline;
    }

    tr, img {
        page-break-inside: avoid;
    }

    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    .kopfleiste {
        display: none;
    }
}
