/* Scrollbar-Platz immer reservieren -> kein horizontales "Springen" beim Seitenwechsel */
html {
    scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
    html {
        overflow-y: scroll;
    }
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.cover-container {
    max-width: 42em;
}

/* Auf grossen Bildschirmen mehr Breite nutzen, statt eine schmale Saeule
   in der Mitte zu lassen. Auf Handy und Tablet bleibt alles wie bisher. */
@media (min-width: 992px) {
    .cover-container {
        max-width: 60em;
    }
}

@media (min-width: 1400px) {
    .cover-container {
        max-width: 76em;
    }
}

body {
    background-image: url('images/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.cover-container main {
    background-color: rgba(0, 0, 0, 0.45);
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.cover-container main .card {
    background-color: rgba(0, 0, 0, 0.55) !important;
}

.nav-pills .nav-link {
    padding: 0.35rem 0.8rem;
    transition: all 0.2s ease-in-out;
}

.nav-pills .nav-link:not(.active) {
    background-color: rgba(0, 123, 255, 0.2);
    border: 1px solid rgba(0, 123, 255, 0.5);
    color: #ffffff !important;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

.nav-pills .nav-link:not(.active):hover {
    background-color: rgba(33, 37, 41, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
}


/* Auf Telefonen frisst die 3-rem-Polsterung zu viel von der ohnehin
   knappen Breite - dort deutlich schmaler. */
@media (max-width: 575.98px) {
    .cover-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .cover-container main {
        padding: 1.25rem;
    }
}

/* Fotos in Fliesstexten nicht auf die volle Containerbreite aufblasen.
   Vor der Verbreiterung war der Container 42em breit, seitdem wurden
   die Bilder auf dem Desktop unangenehm gross. */
.foto-begrenzt {
    max-height: 26rem;
    width: auto;
    max-width: 100%;
}

/* Wetterkacheln verteilen sich jetzt ueber die volle Breite, statt als
   schmale Gruppe in der Mitte zu kleben. */
.wetter-kachel {
    flex: 1 1 96px;
    min-width: 96px;
    max-width: 180px;
}