/*
    Altdeutsche schrift
*/

@font-face {
    font-family: 'Altdeutsch';
    src: url('fonts/BertholdrMainzerFraktur-RAjE.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Altdeutsch2';
    src: url('fonts/AlteSchwabacher-lgw0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*
    DEMO STYLE
*/

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
}

p,
li.dsgvo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #6d6d6d;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

a.link {
    color: #007bff;
    /* Bootstrap blue */
    text-decoration: underline;
}

a.link:hover {
    color: #0056b3;
    /* Darker blue on hover */
    text-decoration: underline;
}


.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    display: none;
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

i,
span {
    display: inline-block;
}

button.btn,
button.btn.btn-primary,
button.btn.btn-info {
    color: #fff !important;
    background-color: #4f2117 !important;
    border-color: #4f2117 !important;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    height: 100vh;
    color: #fff;
    transition: all 0.3s;
    position: fixed;
    background-image: url('/Bilder/P1820305_Bergbahn_sidebar.jpg');
    background-size: cover;
    border-right: 3px solid white;
    overflow-y: auto;
    overflow-x: hidden;
}

#sidebar.active {
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}

#sidebar.active .sidebar-header h3,
#sidebar.active .CTAs {
    display: none;
}

#sidebar.active .sidebar-header strong {
    display: block;
}

#sidebar ul li a {
    text-align: left;
}

#sidebar.active ul li a {
    padding: 20px 10px;
    text-align: center;
    font-size: 0.85em;
}

#sidebar.active ul li a i {
    margin-right: 0;
    display: block;
    font-size: 1.8em;
    margin-bottom: 5px;
}

#sidebar.active ul ul a {
    padding: 10px !important;
}

#sidebar.active .dropdown-toggle::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

#sidebar .sidebar-header {
    /*padding: 20px;
    background: #4f2117;*/
}

#sidebar .sidebar-header img {
    width: 100%;
}

#sidebar .sidebar-header strong {
    display: none;
    font-size: 1.8em;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid white;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #4f2117;
    background: rgba(255, 255, 255, 0.5);
    ;
}

#sidebar ul li a i {
    margin-right: 10px;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #4f2117;
}

#sidebar .overlay {
    width: 100%;
    height: 100vh;
    position: fixed;
    background: #38342b;
    opacity: 50%;
    min-width: 250px;
    max-width: 250px;
    border-right: 3px solid white;
    overflow: hidden;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #4f2117;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #4f2117;
}

a.article,
a.article:hover {
    background: #4f2117 !important;
    color: #fff !important;
}

.sidebar_icon {
    margin-right: 10px;
    width: 20px;
}

#sidebar .links {
    font-size: 12px;
    padding-left: 0;
    font-weight: bolder;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

#sidebar .links a:hover {
    color: #4f2117;
}

#sidebar .sidebar_holidaycheck img {
    width: 50%;
}

#sidebar .sidebar_holidaycheck a {
    display: flex;
    justify-content: center;
}

.btn-buchen,
.btn-ratings {
    display: inline-block;
    background-color: #4f2117;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: fit-content;
    margin: 0 auto;
    max-width: 100%;
}

.btn-buchen:hover {
    background-color: #6a2d20;
    /* etwas helleres Braun beim Hover */
}

.btn-ratings {
    background-color: rgba(255, 255, 255, 0.5) !important;
    color: #4f2117 !important;
    font-size: 14px;
    text-align: center;
}

.btn-ratings:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
}


/* ---------------------------------------------------
    CONTENT WRAPPER STYLE
----------------------------------------------------- */
#sidebar+#content-wrapper {
    margin-left: 250px;
}

#content-wrapper {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

#content-wrapper #content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#sidebar.active+#content-wrapper {
    margin-left: 80px !important;
}

#notFound_background {
    background-image: url("/Bilder/P1820173_BergeWolkenGSFlieger.jpg");
    opacity: 50%;
    width: 100%;
    height: 100vh;
    background-size: cover;
}

.notFound_text {
    position: absolute;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    flex-direction: column;
}

.notFound_text h2 {
    color: #4f2117;
    font-weight: bold;
    font-size: 40px;
    font-size: 80px;
    margin-bottom: 40px;
}

.notFound_text h3 {
    color: #38342b;
    font-weight: lighter;
    text-align: center;
}

/* ---------------------------------------------------
    SLIDER STYLE
----------------------------------------------------- */
#slider_wrapper {
    position: relative;
}

#slider .carousel-inner {
    height: 250px;
}

#slider_wrapper #slider_overlay {
    position: absolute;
    z-index: 100;
    height: 250px;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    color: white;
}

#slider_wrapper #slider_overlay h1 {
    font-family: 'Altdeutsch';
    font-size: 65px;
    font-weight: bold;
    padding: 20px;
}

#content h1 {
    font-size: 2rem;
}

#slider_overlay .first-red {
    color: #4f2117;
}

#slider_wrapper #slider_overlay .second-font {
    font-family: 'Altdeutsch2';
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content-wrapper #content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.carousel,
img.img-fluid {
    max-width: 700px;
    margin: 0 auto;
}

.carousel.header {
    max-width: none;
}

#roomCarousel .carousel-item {
    height: 500px;
}

#roomCarousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* Modal body: center content */
#imageModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Carousel inner and item: always center images vertically and horizontally */
#imageModal .carousel-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
}

/* Nur das aktive Bild ist sichtbar und zentriert */
#imageModal .carousel-item {
    display: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

#imageModal .carousel-item.active {
    display: flex;
}

/* Images: fit both height AND width */
#imageModal .carousel-inner img {
    max-height: 70vh;
    /* never exceed modal height */
    max-width: 100%;
    /* never exceed modal width */
    width: auto;
    height: auto;
    object-fit: contain;
    /* maintain aspect ratio */
    display: block;
    margin: auto;
    /* center the image */
}


#galleryCarousel {
    height: 100%;
    margin-top: 40px;
}

#galleryCarousel #carouselInner {
    height: 100%;
    align-content: center
}

#imageModal .modal-content {
    height: 80vh !important;
}

.custom-caption {
    background-color: rgba(0, 0, 0, 0.3);
    /* grey with 50% opacity */
    padding: 1rem;
    /* some spacing */
    border-radius: 0.25rem;
    /* optional: rounded corners */
}

.custom-caption p {
    margin: 0;
    /* remove default margin */
    font-weight: bold;
    color: white;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.7);
    /* keep a bit transparent if you like */
    border-radius: 50%;
    padding: 20px;
    /* circle size */
    background-size: 50% 50%;
    /* arrow size inside */
    border: 2px solid #fff;
    /* white border */
}


/* ---------------------------------------------------
    Pricelist style
----------------------------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border: 1px solid #ccc;
    vertical-align: top;
}

th {
    background: #f5f5f5;
}

/* ---------------------------------------------------
    Video Background Style
----------------------------------------------------- */
.video-background,
.image-background {
    position: relative;
    width: 100%;
    height: 40vh;
    margin-bottom: 1rem;
    /* adjust height */
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 20vh;
    height: 40vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Optional transparent overlay */
}

.image-background {
    background: url("/Bilder/P6220276.JPG") center center / cover no-repeat;
    display: none;
    /* hidden by default */
}

/* ---------------------------------------------------
    Galerie Style
----------------------------------------------------- */

.gallery-img {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    object-fit: cover;
    width: 100%;
    height: 200px;
    /* uniform height */
}

.gallery-img:hover {
    transform: scale(1.05);
}

.gallery-item {
    padding: 5px;
    /* space between images */
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 900px) {
    img.img-fluid {
        max-width: 100%
    }
}

@media (max-width: 768px) {
    #sidebar {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        margin-left: -80px !important;
    }

    #sidebar .overlay {
        min-width: 80px;
        max-width: 80px;
    }

    .dropdown-toggle::after {
        top: auto;
        bottom: 10px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }

    #sidebar.active {
        margin-left: 0 !important;
    }

    #sidebar .sidebar-header h3,
    #sidebar .CTAs {
        display: none;
    }

    #sidebar .sidebar-header strong {
        display: block;
    }

    #sidebar ul li a {
        padding: 20px 10px;
    }

    #sidebar ul li a span {
        font-size: 0.85em;
    }

    #sidebar ul li a i {
        margin-right: 0;
        display: block;
    }

    #sidebar ul ul a {
        padding: 10px !important;
    }

    #sidebar ul li a i {
        font-size: 1.3em;
    }

    #sidebar {
        margin-left: 0;
    }

    #sidebarCollapse span {
        display: none;
    }

    #sidebar+#content-wrapper {
        margin-left: 0px;
    }

    #sidebar+#content-wrapper #slider .carousel-inner {
        height: 100px;
    }

    #slider_wrapper #slider_overlay {
        height: 100px;
        justify-content: center;
        display: flex;
        align-items: center;
        color: white;
    }

    #slider_wrapper #slider_overlay h1 {
        font-size: 25px;
    }


    .navbar {
        display: block;
    }

    #sidebar.active ul li a {
        padding: 10px;
    }

    #sidebar .sidebar_holidaycheck img {
        width: 90%;
    }

    #sidebar .links {
        font-size: 10px;
    }

    #sidebar .links a {
        margin-bottom: 5px;
    }

    /*  Icons sidebar */
    #sidebar.active ul li a {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    #sidebar ul li a span {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    #sidebar ul li a span svg {
        margin-bottom: 5px;
    }

    .btn-buchen {
        font-size: 12px;
        padding: 8px 10px;
    }

    .btn-ratings {
        font-size: 10px;
        padding: 8px 10px;
    }

    #roomCarousel .carousel-item {
        max-height: 30vh;
    }

    #imageModal .modal-dialog {
        max-width: 100vw;
        /* allow some responsiveness */
    }

    #imageModal .modal-dialog .modal-content {
        height: 50vh !important;
    }

    .video-background {
        display: none;
    }

    .image-background {
        display: block;
    }
}