/*
 * bootstrap3-compat.css
 *
 * Die Seite lief bis 2026 mit Bootstrap 3.3.5 und nutzt jetzt Bootstrap 5.3.9
 * (assets/vendor/bootstrap-5.3.9). Diese Datei stellt das Bootstrap-3-Erscheinungsbild
 * fuer genau die Elemente und Klassen wieder her, die auf thefirstpc.com vorkommen,
 * damit die Seiten nach dem Update pixelgleich aussehen.
 *
 * Reihenfolge der Stylesheets: bootstrap.min.css -> diese Datei -> Theme-CSS (style*.css, theme-*.css).
 * Das Theme ueberschreibt also weiterhin, was es schon unter Bootstrap 3 ueberschrieben hat.
 */

/* ---------- Grundlagen (Bootstrap 3 scaffolding / type) ---------- */

:root {
    scroll-behavior: auto;              /* BS5 scrollt Anker weich; BS3 sprang direkt */
}

/* font-size bleibt bei 16px (BS5 rechnet in rem); BS3 setzte 10px, nutzte rem aber selbst nicht. */
html {
    font-family: sans-serif;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}
h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; }
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;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 10px;
    padding-left: 40px;
}
ul ul, ul ol, ol ul, ol ol {
    margin-bottom: 0;
}

b, strong {
    font-weight: 700;
}

small {
    font-size: 85%;
}

address {
    margin-bottom: 20px;
    font-style: normal;
    line-height: 1.42857143;
}

a {
    color: #337ab7;
    text-decoration: none;
}
a:hover,
a:focus {
    color: #23527c;
    text-decoration: underline;
}
a:focus {
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

.text-justify {
    text-align: justify;
}

/* ---------- Grid: Bootstrap-3-Breiten und 30px-Gutter ---------- */

.container,
.container-fluid,
.row {
    --bs-gutter-x: 30px;
}

.container {
    max-width: none;
}
.container::before,
.container::after {
    display: table;
    content: " ";
}
.container::after {
    clear: both;
}
@media (min-width: 768px) {
    .container { width: 750px; }
}
@media (min-width: 992px) {
    .container { width: 970px; }
}
@media (min-width: 1200px) {
    .container { width: 1170px; }
}

/* Spalten wie in BS3: Innenabstand auch ausserhalb einer .row, Float ab dem jeweiligen Breakpoint
   (in einer Flex-.row ist float wirkungslos). */
.col-6, .col-md-9, .col-md-12, .col-lg-4, .col-lg-6, .col-lg-12, .col-xl-3 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
.col-6 { float: left; }
@media (min-width: 768px) {
    .col-md-9, .col-md-12 { float: left; }
}
@media (min-width: 992px) {
    .col-lg-4, .col-lg-6, .col-lg-12 { float: left; }
}
@media (min-width: 1200px) {
    .col-xl-3 { float: left; }
}

/* ---------- Jumbotron (in BS5 entfallen) ---------- */

.jumbotron {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    color: inherit;
    background-color: #eee;
}
.jumbotron h1 {
    color: inherit;
}
.jumbotron p {
    margin-bottom: 15px;
    font-size: 21px;
    font-weight: 200;
}
.container .jumbotron,
.container-fluid .jumbotron {
    padding-right: 15px;
    padding-left: 15px;
    border-radius: 6px;
}
.jumbotron .container {
    max-width: 100%;
}
@media screen and (min-width: 768px) {
    .jumbotron {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .container .jumbotron,
    .container-fluid .jumbotron {
        padding-right: 60px;
        padding-left: 60px;
    }
    .jumbotron h1 {
        font-size: 63px;
    }
}

/* ---------- Thumbnail (in BS5 entfallen) ---------- */

.thumbnail {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: border .2s ease-in-out;
    transition: border .2s ease-in-out;
}
.thumbnail > img,
.thumbnail a > img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
    border-color: #337ab7;
}

/* ---------- Buttons (BS3-Masse und -Farben) ---------- */

.btn {
    --bs-btn-padding-x: 12px;
    --bs-btn-padding-y: 6px;
    --bs-btn-font-size: 14px;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.42857143;
    --bs-btn-border-radius: 4px;
    --bs-btn-focus-box-shadow: none;
    white-space: nowrap;
}
.btn:focus,
.btn:active:focus,
.btn.active:focus {
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}
.btn:active,
.btn.active {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #5cb85c;
    --bs-btn-border-color: #4cae4c;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #449d44;
    --bs-btn-hover-border-color: #398439;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #449d44;
    --bs-btn-active-border-color: #398439;
}

/* ---------- Carousel ---------- */

.carousel-caption {
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
@media screen and (min-width: 768px) {
    .carousel-caption {
        right: 20%;
        left: 20%;
        padding-bottom: 30px;
    }
}

/* Das Theme blendet die Slides von #bootstrap-carousel-animated per Opacity ueber (Klassen .next/.prev/.left/.right
   aus BS3). Hier dieselbe Ueberblendung mit den BS5-Zustandsklassen; Slides verschieben sich nicht
   (translate3d(0,0,0) wie im Theme fuer BS3).
   Die erste Transition-Dauer (0.6s) bestimmt, wann BS5 den Wechsel abschliesst - wie BS3 nach 600 ms. */
#bootstrap-carousel-animated .carousel-item.item {
    -webkit-transition: transform .6s ease-in-out, opacity .8s ease-in-out;
    transition: transform .6s ease-in-out, opacity .8s ease-in-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}
/* ".carousel-inner >" hebt die Spezifitaet ueber die Theme-Regel "#... .carousel-inner > .item.active { opacity:1 }". */
#bootstrap-carousel-animated .carousel-inner > .carousel-item.item,
#bootstrap-carousel-animated .carousel-inner > .carousel-item-next.carousel-item-start.item,
#bootstrap-carousel-animated .carousel-inner > .carousel-item-prev.carousel-item-end.item,
#bootstrap-carousel-animated .carousel-inner > .active.carousel-item-start.item,
#bootstrap-carousel-animated .carousel-inner > .active.carousel-item-end.item {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
#bootstrap-carousel-animated .carousel-inner > .carousel-item-next.carousel-item-start.item,
#bootstrap-carousel-animated .carousel-inner > .carousel-item-prev.carousel-item-end.item {
    opacity: 1;
    z-index: 1;
}
#bootstrap-carousel-animated .carousel-inner > .active.carousel-item-start.item,
#bootstrap-carousel-animated .carousel-inner > .active.carousel-item-end.item {
    opacity: 0;
    z-index: 2;
}
