body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html, body {
    height: auto;
}

#seite {
    text-align: left;
    width: 100%;
    margin: 0;
    color: #000;
    height: auto;
    font-size: 12px;
    border: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#seite > * {
    flex-shrink: 0;
}

footer {
    color: #acacac;
    background-color: #3a434d;
    margin-top: auto !important;
    flex-shrink: 0;
}

footer > .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.main-navigation {
    padding-left: 1rem;
    padding-right: 1rem;
}

.programm-listing {
    padding-left: 1rem;
    padding-right: 0;
}

.gallery-page {
    padding-left: 1rem;
}

.social-icons svg {
    max-width: 25px;
    margin-right: 5px;
}

svg:not(:root) {
    overflow: hidden;
}

.fill-color {
    fill: #acacac;
}

footer .foo-info {
    border-left: 1px solid #707070;
    padding: 0 0 0 20px;
    margin: 0 0 0 20px;
}

.image-section {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-section img {
    width: 100%;
    height: auto;
}

.content-box {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 0px ;
    top: 63%;
    left: 0;
    transform: translate(0, -50%);
    text-align: center;
    width: 100%;
  }

#contact_form input {
    background-color: rgb(245, 245, 245);
    border: 1px;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 10px;
}

#contact_form textarea {
    background-color: rgb(245, 245, 245);
    border: 1px;
    padding-left: 10px;
    padding-top: 15px;
    width: 100%;
}

.contact .row>.col-lg-9:first-child,
.contact .row>.col-lg-3:first-child {
    padding-right: 0;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    margin: 5%;
}

.circle-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wrapper .gallery-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wrapper .gallery-container ul li img {
    display: block;
    height: auto;
    max-width: 100%;
}

.gallery-container ul.mosaic-gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.gallery-container ul.mosaic-gallery li {
    background-position: center center;
    background-size: cover;
    flex: auto;
    height: 15vw;
    margin: 0 0.5rem 1rem;
    max-height: 10rem;
    overflow: hidden;
}

.gallery-container ul.mosaic-gallery li img {
    height: 100%;
    opacity: 0;
}

.gallery-image-delete {
    display: none;
}

.ekko-lightbox-nav-overlay a span {
    text-align: left;
}

#ContainerFrame {
    width: 100%;
    overflow-x: auto;
    text-align: center;
    position: relative;
}

.organigramm-inner {
    display: inline-block;
    position: relative;
}

.new-container .Box {
    box-shadow: 1px 1px 5px 0px #999 !important;
    border: 1px solid #ccc !important;
}

.login-circle{
    border-radius: 50%;
    display: inline-block;
}

.login-circle-small {
    width: 12px;
    height: 12px;
    position: relative;
    top: -4px;
}

.login-circle-big {
    width: 23px;
    height: 23px;
    border-width: 1px;
    border-style: solid;
}

.footer-sticky {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: left;
    z-index: 999;
}

.service-box .card{
    border: 0;
}

.dropdown-toggle::after {
    display: none;
}

.main-navigation li.nav-item a{
    font-size: 12px;
}

.main-navigation li.nav-item a:hover{
    background-color: transparent;
}

.contact-button {
	width: 200px;
    background-color: #0d9ed6;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 14px 6px;
    text-align: center;
    transition-duration: 0.2s;
    transition-property: background-color;
    transition-timing-function: linear;
    height: 40px;
}

div.Gruppe_Label{
    border: 0 !important;
}

.Box hr, .p-hr{
    display: none !important;
}

.Box{
    text-align: left !important;
}

.custom-col {
    float: left;
    padding: 10px;
}

.post-edit-button  a img{
    min-width: 100%;
}

.aspect-4-3 {
    position: relative;
    width: 100%;
    padding-top: 75%;
}

.aspect-4-3 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.field-label {
    width: 150px;
    font-weight: 500;
    padding-right: 8px;
}

.field-value {
    width: 200px;
}

.w-650{
    width: 350px;
}

.personal_material_image{
    min-width: 200px;
    width: 100%;
}

div.year_selector a {
    cursor: pointer;
    color: #0d9ed6 !important;
}

.programm-listing-rows {
    position: relative;
    padding-top: 10px;
}

.programm-month {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    padding: 4px 8px;
    padding-left: 2px;
    border: 0 !important;
}  

.programm-listing-rows .list-group-item{
    border: 0;
    padding: .32rem .75rem;
}

.pdf-invitation {
    width: 23px;
}

.program-table {
    width: auto;
    min-width: 0;
    border-spacing: 0;
}

.program-table td {
    padding: 2px 4px;
}

.prog-col-pdf {
    white-space: nowrap;
    padding: 2px 2px;
    min-width: 29px;
    max-width: 29px;
    width: 29px;
    box-sizing: border-box;
    overflow: hidden;
}

.prog-col-number {
    white-space: nowrap;
    padding: 2px 4px;
}

.prog-col-day {
    white-space: nowrap;
    padding: 2px 2px;
}

.prog-col-date {
    white-space: nowrap;
    padding: 2px 4px;
}

.prog-col-time {
    white-space: nowrap;
    padding: 2px 6px 2px 4px;
}

.prog-col-text {
    white-space: nowrap;
    padding: 2px 6px;
}

.clear{
    clear: both;
}

.personal-container {
    margin: 2rem;
}

.personal-category {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.personal-category-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.personal-card {
    border: 1px solid #f8f9fa;
    padding: 0.25rem;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.personal-image-container {
    margin-bottom: 0.5rem;
    position: relative;
    color: #333;
}

.personal-image {
    width: 100%;
    object-fit: cover;
}

.personal-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.personal-info {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.personal-category-title-styled {
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 20px;
}

.personal-video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Video Popup Styles */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.video-popup-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 150px;
    height: 200px;
    cursor: default;
    background-color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.video-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.video-popup-close:hover {
    background-color: #f5f5f5;
    transform: scale(1.1);
}

.video-popup-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 576px) {
    .mosaic-gallery li {
        width: 100% !important;
    }

    .site_logo img {
        width: clamp(160px, calc(var(--site_logo_width, 60) * 1.6%), 85vw) !important;
        max-width: 180px;
        margin: 0 auto;
        display: block;
    }

    .text-box-pop{
        display: none !important;
    }
    
    /* Keep hamburger on the left (default), push login to the right */
    .main-navigation .navbar-toggler {
        order: 0;
        border: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .main-navigation .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }
    .main-navigation #login-btn-mobile {
        order: 2;
        margin-left: auto;
        padding-top: .5rem;
        padding-bottom: .5rem;
    }
    /* Make collapsible menu take full width and appear below */
    .main-navigation .navbar-collapse {
        order: 3;
        flex-basis: 100%;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    /* Hide login inside collapsed menu on mobile */
    .main-navigation #collapsibleNavbar #login-btn,
    .main-navigation #collapsibleNavbar #login-btn-desktop {
        display: none !important;
    }
    /* Reduce vertical spacing between items */
    .main-navigation .navbar-nav .nav-item .nav-link {
        padding-top: .3rem;
        padding-bottom: .3rem;
        line-height: 1.2;
    }
    .main-navigation .dropdown-menu .dropdown-item {
        padding-top: .3rem;
        padding-bottom: .3rem;
        line-height: 1.2;
    }
     .main-navigation .dropdown-menu{
        border: 0;
        padding-left: 20px;
    }
}

/* Tablet styles - 577px to 768px */
@media (min-width: 577px) and (max-width: 768px) {
    .mosaic-gallery li {
        width: 50% !important;
    }

    .ContainerFrame {
        transform: scale(0.5);
        transform-origin: top left;
        width: 200%;
    }

    .Box {
        font-size: 18px;
    }
}

/* Medium tablet styles - 769px to 992px */
@media (min-width: 769px) and (max-width: 992px) {
    .mosaic-gallery li {
        width: 33.333% !important;
    }
}

/* Large tablet styles - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .ContainerFrame {
        transform: scale(0.75);
        transform-origin: top left;
        width: 133%;
    }
}

.back-to-overview {
    display: inline-block;
    color: #333;
    font-size: 0.9rem;
    text-decoration: none;
}

.back-to-overview:hover {
    color: #0d9ed6;
}