/* ==========================================================================
   Bootstrap 5 – Kompatibilitätsschicht für den BS3-Bestand
   Zweck: Optik wie mit Bootstrap 3.0.2 erhalten, ohne Templates umzubauen.
   Reihenfolge: bootstrap5.min.css -> diese Datei -> styles.css
   ========================================================================== */

/* 1) Typografie wie BS3 (14px-Basis statt 16px, BS3-Zeilenhöhe) */
body {
    font-size: 14px;
    line-height: 1.42857143;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.1;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

p {
    margin: 0 0 10px;
}

small { font-size: 85%; }

/* 2) Grid-Rinnen wie BS3 (30px statt 24px) */
.row {
    --bs-gutter-x: 30px;
}

/* 3) .hidden gibt es in BS5 nicht mehr – wird im Bestand aber als
      "unsichtbar, aber im DOM" benutzt (Formularfelder, Sprungmarken) */
.hidden {
    display: none !important;
}

/* 4) Media-Object (in BS4/5 entfernt) – genutzt auf den Fehlerseiten */
.media {
    display: flex;
    align-items: flex-start;
}

.media-left {
    margin-right: 10px;
}

.media-right {
    margin-left: 10px;
}

.media-body {
    flex: 1 1 auto;
}

.media-heading {
    margin-top: 0;
    margin-bottom: 5px;
}

.media-object {
    display: block;
}

/* 5) Kleinkram aus BS3, das in BS5 umbenannt wurde */
.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.pull-left { float: left !important; }
.pull-right { float: right !important; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
    padding: 5px;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.label {
    display: inline-block;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

.panel-body { padding: 15px; }

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.panel-default { border-color: #ddd; }
.panel-default > .panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}
