﻿body {
    font-family: ChesnaGroteskRegular, Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    color: #232422;
    background-color: rgba(255,255,255);
    background-image: url('../images/bg_rauten.svg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center 200px;
    background-size: cover;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

h3, h4, h5, h6 {
    font-size: 1.3rem;
}

a, a.nav-link {
    color: #232422;
}

    a:hover, a.nav-link:hover {
        color: #008fce;
    }

    a.heimatlink {
        font-size: 1.2rem;
        color: #008ecc;
    }

        a.heimatlink:hover {
            color: #93ccec;
            text-decoration: none;
        }

.success {
    color: #00a000;
    background-color: #f9f9f9;
    padding: 0.5em;
    border: 1px solid #d0d0d0;
}

.warning {
    color: #e00000;
    line-height: initial;
}

.text-large {
    font-size: 1.5rem;
    line-height: 1.6;
}

img.teaser {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* =========================
   HERO / SLIDESHOW
   ========================= */

/* Höhe wird NUR über den Container gesteuert */
.carousel-item {
    position: relative;
    height: 50vh;
}

/* Bild passt sich IMMER an den Container an */
.keyvisual-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Text-Overlay */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 2rem;
    background: linear-gradient( 180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 70%, rgba(0,0,0,.85) 100% );
}

.image-overlay-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.image-overlay-text {
    padding: 1rem 0;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

    .image-overlay-text small {
        font-size: 1rem;
        font-weight: 500;
    }

.overlay-logo {
    max-width: 250px;
    height: 250px;
    display: block;
}

/* Einzelnes Bild */
.hero-item {
    position: relative;
    height: 50vh;
}

img.keyvisual-l {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img.keyvisual-sm {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   ANDERE KEYVISUALS
   ========================= */

img.keyvisual-preview {
    width: 320px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* =========================
   LAYOUT / UTILITY
   ========================= */

#readspeaker_player {
    position: fixed;
    top: 6px;
    left: 6px;
    z-index: 9;
}

ul.linklist {
    list-style-image: url('../images/go_next.gif');
    padding-left: 8px;
    margin-left: 8px;
}

.bg-weiss {
    background-color: #ffffff;
}

.bg-hellgrau {
    background-color: #eeeeee;
}

.bg-blau {
    background-color: #9ed3f0;
}

.bg-rauten {
    background: url(../images/raute_overlay_1.svg);
    background-size: cover;
    background-position: right;
}

/* =========================
   NAVIGATION
   ========================= */

.navbar-nav {
    --bs-nav-link-font-size: 1.1rem;
}

.nav {
    --bs-nav-link-font-size: 1rem;
}

.dropdown-menu {
    --bs-dropdown-spacer: 0;
}

/* =========================
   CARDS
   ========================= */

.card-img-top {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.card-icon {
    max-height: 150px;
    width: 150px;
    display: block;
    margin: 2em auto 1em auto;
}

/* =========================
   BUTTONS
   ========================= */

.btn-outline-dark {
    --bs-btn-color: #232422;
    --bs-btn-border-color: #232422;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #008fce;
    --bs-btn-hover-border-color: #008fce;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #008fce;
    --bs-btn-active-border-color: #232422;
    --bs-btn-disabled-color: #232422;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #232422;
    --bs-gradient: none;
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */

@media (max-width: 1399.98px) {

    .carousel-item, .hero-item {
        height: 45vh;
    }

}

@media (max-width: 1199.98px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3, h4, h5, h6 {
        font-size: 1.2rem;
    }
}

@media (max-width: 991.98px) {
    .carousel-item, .hero-item {
        height: 35vh;
    }

    .image-overlay-text {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .overlay-logo {
        max-width: 100px;
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .carousel-ite, .hero-itemm {
        height: 25vh;
    }

    .image-overlay-text {
        font-size: 1.4rem;
        line-height: 1.0;
    }
}
