/*! Place your custom styles here */

/* Hero Section H1 Styling */
h1 {
    font-family: 'Fjalla One', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Headline Box - halbtransparenter Hintergrund für bessere Lesbarkeit */
.hero-headline-box {
    background-color: rgba(250, 250, 250, 0.75);
    padding: 15px 20px;
    border-radius: 6px;
    display: inline-block;
}

.hero-headline-box h1 {
    margin: 0;
    color: #333 !important;
}

/* Positionierung unten in der Hero-Sektion */
section.imagebg.cover {
    position: relative !important;
}

.pos-vertical-bottom {
    position: absolute !important;
    top: auto !important;
    bottom: 30px !important;
    transform: none !important;
    -webkit-transform: none !important;
    left: 0;
    right: 0;
}

@media all and (max-width: 767px) {
    .pos-vertical-bottom {
        bottom: 15px !important;
    }
}

    @media all and (max-width: 570px) {
        .mobile-center {
            justify-content: center;
            margin-bottom: 25px;
        }

        .no-display-mobile {
            display: none;
        }

        .no-padding-xs {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .mobile-flex {
            display: flex;
            flex-direction: column;
        }

        .mobile-quote {
            padding: 50px 15px;
        }

        footer a.type--fine-print:not(:first-child) {
            margin-left: 0;
        }
    }


    /*IE 11 only Styles*/

    @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
        .ie-11-block {
            display: block !important;
        }
        .ie-11-padding {
            padding-top: 7.5em;
            padding-bottom: 7.5em;
        }
        .ie-11-displayblock {
            display: block !important;
        }
        .ie-11-menu {
            margin-top: 70px;
        }
    }


    /* Profile Pictures */
    .profile-picture-md {
        width: 130px;
        height: 130px;
        border-radius: 50%;
        position: relative;
        overflow: hidden;
    }

    .profile-picture-sm {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        position: relative;
        overflow: hidden;
    }

    .profile-picture-md .profile-picture-sm img {
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-20%, -20%);
        -moz-transform: translate(-20%, -20%);
        -ms-transform: translate(-20%, -20%);
        transform: translate(-20%, -20%);
    }


    .cookie-alert {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 430px;
        margin: 0 !important;
        /* Remove white background and padding around the notification */
        background: none;
        padding: 0;
        z-index: 999;
        opacity: 0;
        transform: translateY(100%);
        transition: all 500ms ease-out;
    }

    .cookie-alert.show {
        opacity: 1;
        transform: translateY(0%);
        transition-delay: 1000ms;
    }

@media (max-width: 500px) {
    .cookie-alert {
        width: 90%;
        right: 5%;
        left: 5%;
    }
}

/* Flip cards layout and styling */
.centerflipcards1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}
@media (min-width: 768px) {
    .centerflipcards1 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .centerflipcards1 {
        grid-template-columns: repeat(3, 1fr);
    }
}
.centerflipcards1 .square3-flip {
    perspective: 1000px;
}
.centerflipcards1 .square,
.centerflipcards1 .square2 {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    overflow: hidden;
}
.centerflipcards1 .square {
    background: rgba(255,255,255,0.5);
    color: var(--blue);
}
.centerflipcards1 .square2 {
    background: rgba(255,255,255,0.5);
    color: #333;
    transform: rotateY(180deg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: absolute;
    top: 0;
    left: 0;
}
.centerflipcards1 .square3-flip:hover .square,
.centerflipcards1 .square3-flip.flipped .square {
    transform: rotateY(180deg);
}
.centerflipcards1 .square3-flip:hover .square2,
.centerflipcards1 .square3-flip.flipped .square2 {
    transform: rotateY(0deg);
}
.centerflipcards1 .square-container,
.centerflipcards1 .square-container2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.centerflipcards1 .square-container h2,
.centerflipcards1 .square-container2 h3 {
    margin: 0;
}

/* Increase letter size on Jobs page flip cards */
.centerflipcards1 .square-container h2 {
    font-size: 4rem;
    line-height: 1;
    font-family: 'Fjalla One', sans-serif;
    font-weight: 600;
}
.centerflipcards1 .square-container2 p {
    margin-top: 1rem;
}

/* ===== Mobiles Vollbild-Overlay-Menü ===== */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    height: 60px;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    align-items: center;
}
.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    padding: 0 16px;
    box-sizing: border-box;
}
.mobile-header-logo {
    display: flex;
    align-items: center;
    height: 60px;
}
.mobile-header-logo img {
    max-height: 36px;
    display: block;
}
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 44px;
    flex-shrink: 0;
}
.mobile-menu-toggle:focus {
    outline: none;
}
.mobile-menu-toggle .mobile-icon-menu,
.mobile-menu-toggle .mobile-icon-close {
    font-size: 28px;
    line-height: 1;
    font-style: normal;
    font-weight: 400;
}

/* Vollbild-Overlay */
.mobile-nav-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #fff;
    overflow-y: auto;
    padding: 80px 24px 40px;
}
.mobile-nav-overlay.is-open {
    display: block !important;
}
.mobile-nav-overlay nav ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
    text-align: left;
}
.mobile-nav-overlay nav > ul > li {
    margin: 0;
    border-top: 1px solid #777 !important;
}
.mobile-nav-overlay nav > ul > li:last-child {
    border-bottom: 1px solid #777 !important;
}
.mobile-nav-overlay nav > ul > li > a,
.mobile-nav-overlay nav > ul > li > span.mobile-group-label {
    display: block;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #333 !important;
    text-decoration: none;
    padding: 12px 0;
    transition: color .2s;
}
.mobile-nav-overlay nav > ul > li > a:hover {
    color: #2275d7 !important;
}
.mobile-nav-overlay nav > ul > li > span.mobile-group-label {
    font-weight: 600 !important;
    cursor: default;
}
.mobile-nav-overlay .mobile-subnav {
    list-style: none !important;
    margin: 0;
    padding: 0;
}
.mobile-nav-overlay .mobile-subnav li {
    border: none !important;
}
.mobile-nav-overlay .mobile-subnav li a {
    display: block;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: #555 !important;
    text-decoration: none;
    padding: 8px 0 8px 32px;
    transition: color .2s;
}
.mobile-nav-overlay .mobile-subnav li a:hover {
    color: #2275d7 !important;
}

@media (max-width: 767px) {
    .mobile-header {
        display: flex;
    }
    /* Platz für die fixe mobile Header-Bar */
    body {
        padding-top: 60px;
    }
}

/* ===== Standort-Overlay ===== */

.station-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.station-overlay.is-open {
    display: block !important;
}
.station-overlay-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1101;
    background: rgba(255,255,255,0.92);
    border: none;
    cursor: pointer;
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    color: #333;
    transition: background .2s;
}
.station-overlay-close:hover {
    background: #fff;
}
.station-overlay-loading {
    padding: 60px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    color: #777;
}
@media (max-width: 767px) {
    .station-overlay-close {
        top: 8px;
    }
}

/* ===== Stations-Übersichtskarte ===== */

.station-map-container {
    height: 500px;
}
@media (max-width: 767px) {
    .station-map-container {
        height: 100vw;
    }
}

/* ===== Karten-Gesten-Hinweis ===== */

.map-gesture-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.map-gesture-hint.active {
    opacity: 1;
}

/* Mobile Optimierung für Header-Bilder - Jetzt Komplettes Bild ohne Beschnitt */
@media all and (max-width: 767px) {
    .imagebg.parallax-disable-mobile .background-image-holder {
        top: 0 !important;
        height: 100% !important;
        background-position: top center !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
    }
    .imagebg.parallax-disable-mobile.height-70,
    .imagebg.parallax-disable-mobile.height-60 {
        min-height: 300px;
        height: auto;
    }
}

a[href^="mailto:"],
a.station-overlay-trigger {
    color: #2275d7 !important;
}

/* Flickity-Slider: auf Touch-Geraeten nur horizontales Ziehen zulassen,
   vertikales Scrollen der Seite bleibt dem Browser ueberlassen (statt
   Flickity, das sonst auch bei diagonalen Wischgesten den Slider zieht) */
.flickity-viewport {
    touch-action: pan-y;
}

/* Flickity-Page-Dots: Tipp-Flaeche auf Mobile vergroessern, ohne die
   sichtbare Punktgroesse zu veraendern */
@media all and (max-width: 767px) {
    .flickity-page-dots .dot {
        position: relative;
    }
    .flickity-page-dots .dot::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 34px;
        height: 34px;
        transform: translate(-50%, -50%);
    }
}
