/*
 Theme Name:   Twenty Twenty-Five Child
 Theme URI:    https://wordpress.org/themes/twentytwentyfive/
 Description:  Forchbahn AG
 Author:       Fröhlich Info AG
 Author URI:   froehlich.ch
 Template:     twentytwentyfive
 Version:      1.0.0
Text Domain:   twentytwentyfive-child
*/


/*
TODO: define variables
/*

/* --------------------------- */
/* ----- Global Defaults ----- */

html {
  overflow-x: hidden;
}

body {
  hyphens: auto;
  overflow-x: hidden;
}

.limited-max-width {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.padded-content {
    padding-left: 48px !important;
    padding-right: 48px !important;
}


@media (max-width: 768px) {
    .padded-content {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (min-width: 1280px) {
    .limited-max-width, .wp-block-post-content {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.sixteen-by-nine-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    image-rendering: pixelated;
}

/* ----- Global Defaults ----- */
/* --------------------------- */

/* ------------------------------- */
/* ----- Header & Navigation ----- */

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header figure:hover {
    cursor: pointer;
}

#navigation-buttons {
    z-index: 1000;
    position: fixed;
    top: 48px;
    right: 48px;
    transition: top 0.3s; /* Transition effect when sliding down (and up) */
}

@media (max-width: 768px) {
    #navigation-buttons {
        top: 24px;
        right: 24px;
    }
}

#navigation-logo {
    position: absolute;
    z-index: 1001;
    transition: filter 0.2s ease;
    top: 48px;
    left: 48px;
}


@media (min-width: 768px) {
    #navigation-logo {
        filter: none !important;
    }
}

@media (max-width: 768px) {
    #navigation-logo {
        top: 24px;
        left: 24px;
    }
}

.pulse {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    overflow: visible;
  }
  
  .pulse img {
    display: block;
    border-radius: 50%;
    width: 200px;
    height: 200px;
  }
  
  .pulse::before,
  .pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
  }
  
  .pulse::before {
    border: 2px solid #CC2D25;
    opacity: 0;
    animation: ripple 2s infinite;
  }
  
  .pulse::after {
    background: rgba(255, 0, 0, 0.4); /* semi-transparent red glow */
    opacity: 0;
    animation: glow 2s infinite;
    z-index: 1;
  }
  
  @keyframes ripple {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.8;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.8);
      opacity: 0;
    }
  }
  
  @keyframes glow {
    0% {
      opacity: 0;
    }
    5% {
      opacity: 0.5;
    }
    20% {
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }

.single-page-post-image-container {
    height: 100vh;
    /*width: 90vw;*/
    margin: 0;
    padding-left: 48px !important;
    padding-right: 48px !important;
}

.skewed_header_overlay {
    height: 100vh;
    width: 75vw;
    position: absolute;
    background-color: white;
    opacity: 0.75;
    top: 0;
    left: -25%;
    z-index: 1;
    transform: skew(-18.86deg, 0deg);
}

.skewed_header_overlay p{
    padding: 0;
    margin: 0;
}

.single-page-post-image-container p {
    padding: 0;
    margin: 0;
}

.single-page-post-image-container img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
    position: absolute;
    left: 0px;
    top: 0px;
}

.single-page-post-image-container .single-page-post-image-text-overlay {
    position: absolute;
    max-width: 625px;
    width: 48vw;
    top: 25vh;
    z-index: 2;
}

@media (max-width: 768px) {

    .single-page-post-image-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    
}

@media (max-width: 760px) {

    .skewed_header_overlay {
        width: 100%;
        max-width: 100%;
        left: 0;
    }
    .skewed_header_overlay::before {
        content: '';
        position: absolute;
        width: 100vw;
        height: 100%;
        top: 0;
        right: 75%; /* Position it to the left of the skewed element */
        background-color: white;
        opacity: 1;
        /*z-index: 1;*/
    }
    .single-page-post-image-container {
        /*height: 50vh;*/
        /*display: inline-block;*/
    }
    .single-page-post-image-container img {
        /*height: 50vh;*/
    }
    .single-page-post-image-container .single-page-post-image-text-overlay {
        /*width: 100vw;*/
        position: relative;
        width: auto;
        max-width: 90% !important;
        /*left: 0 !important;*/
        margin-left: 0 !important;
        /*top: 0;
        display: none;*/
    }
}

.single-page-post-image-container .single-page-post-image-text-overlay h1 {
    padding: 0;
    margin: 0;

    /* Minimum, preferred, and maximum font sizes */
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.2;
    /* Optional: prevent text from overflowing */
    word-wrap: break-word;
    overflow-wrap: break-word;
}



/* Dasselbe für Seiten */

.start-titel {
    position: absolute;
    max-width: 625px;
    width: 48vw;
    top: 25vh;
    z-index: 2;
}


@media (max-width: 1024px) {
    .start-titel p {
        max-width: 90%;
        margin-left: 0 !important;
    }
    .start-titel .wp-block-buttons {
        max-width: 90%;
        margin-left: 0 !important;
    }

}

@media (max-width: 760px) {
    .start-titel {
        width: 100vw;
    }
    .start-titel h2, .start-titel p{
        margin-left: 0 !important;
    }
    .start-titel .wp-block-buttons {
        max-width: 90%;
    }
}

.start-titel h2 {
    padding: 0;
    margin: 0;
}

/* Navigation "Dropdown Menu": */

#dropdownMenu {
    position: fixed;
    top: 0;
    right: -100%; /*should be -25% when visible, see JavaScript*/
    width: 75.1vw; /* Dynamische Breite */
    height: 100vh; /* Dynamische Höhe */
    background-color: #CC2D25;
    display: flex;
    align-items: flex-start;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /*transform: translateX(100%);*/
    /*transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease-out;*/
    /*transition: 0.4s cubic-bezier(.6,1.6,.5,.8);*/
    transition: 0.4s ease;
    transform: skew(-18.86deg, 0deg);
}

#dropdownMenuContent {
    transform: skew(18.86deg, 0deg);
    width: 50%;
    height: 100vh;
    padding: 160px 0 40px 0;
    right: 25%;
    max-height:100vh;
    overflow: auto;
}

#dropdownMenuContent li {
	padding-left: 2px;
}

#dropdownMenuContent li a {
	padding-left: 3px;
	padding-right: 3px;
}

#dropdownMenuContent .navigation_list_big,
#dropdownMenuContent .navigation_list_small {
    list-style-type: none;
    padding: 0;
}
#dropdownMenuContent .navigation_list_big {
    margin: 0;
}
#dropdownMenuContent .navigation_list_small {
    margin: 48px 0 0 0;
}

#dropdownMenuContent .navigation_list_big li a,
#dropdownMenuContent .navigation_list_small li a {
    color: white;
    text-decoration: none;
}
#dropdownMenuContent .navigation_list_big li a {
    font-size: 28px;
}

#dropdownMenuContent .navigation_list_big li a:hover,
#dropdownMenuContent .navigation_list_small li a:hover {
    text-decoration: underline;
}

@media (max-width: 1300px) {
    #dropdownMenu {
        width: 100vw;
    }
}

@media (max-width: 768px) {
    #dropdownMenu {
        transform: skew(0deg, 0deg);
        right: -100%; /*must be 0 when visible, see JavaScript*/
        width: 100vw;
    }
    #dropdownMenuContent {
        transform: skew(0deg, 0deg);
        padding: 110px 0 40px 0;
        width: 100%;
        right: 0;
        margin-left: 24px !important;
    }
    #dropdownMenuContent .navigation_list_big li a {
        font-size: 24px;
    }
}

/* Sichtbar machen */
#dropdownMenu.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /*transform: translateX(0);*/
}

#dropdownToggle {
    position: relative;
    z-index: 1100;
}

/* ----- Header & Navigation ----- */
/* ------------------------------- */


/* ------------------------------- */
/* ----- Post Content Global ----- */

.post-content img {
    border-radius: 10px;
}

/* ----- Post Content Global ----- */
/* ------------------------------- */



/* -------------------------------------- */
/* ----- Post Content Site specific ----- */

/*
ZVV Contact Forch
& Internationale Reiseberatung:
*/

.info-balken {
    position: relative;
    top: 0vh;
    left: -10%;
    transform: skew(-18.86deg, 0deg);
}

.info-balken .wp-block-columns {
    transform: skew(18.86deg, 0deg);
    width: 90%;
    margin-left: 10% !important;
}

@media (max-width: 768px) {
    .info-balken {
        padding-left: 24px !important;
    }
}

@media (max-width: 1024px) {
    .info-balken {
        left: 0;
        transform: skew(0deg, 0deg);
    }

    .info-balken .wp-block-columns {
        transform: skew(0deg, 0deg);
        width: 100%;
        margin-left: 0 !important;
    }
}

@media (min-width: 1280px) {
    .info-balken .limited-max-width {
        padding-left: 10% !important;
    }

    .info-balken .wp-block-columns {
        margin-left: auto !important;
    }
}

/* Internationale Reiseberatung: */

.berater-name,
.berater-termin {
    width: fit-content;
    padding: 10px 20px;
}

.berater-name {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #CC2D25;
    color: white;
	font-weight: bold;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 0 100%);
}

.berater-termin {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #CC2D25;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15px 100%);
}


/* Multiple Sites */

/* Load More Button */

.mehr-button, #loadMoreTrainsButton {
    display: block;
    text-align: center;
    background-color: #4E4B4A;
    color: white;
    padding: 10px 15px;
    margin: 20px auto;
    width: fit-content;
    border-radius: 500px;
    font-weight: bold;
    cursor: pointer;
}

.mehr-button:hover, #loadMoreTrainsButton:hover {
    background-color: #CC2D25;
}

@media (max-width: 768px) {
    .mehr-button {
        padding: 8px 12px; /* Kleinere Buttons auf mobilen Geräten */
    }
}


/* Posts Preview with Filter */

.beitragsvorschau-container {
    display: grid;
    grid-template-columns: 1fr;
    /*gap: 5vw;*/
    gap: 36px;
    width: 100%;
}

@media (min-width: 768px) {
    .beitragsvorschau-container {
        grid-template-columns: 1fr 1fr;
    }
}

.beitragsvorschau {
    box-sizing: border-box;
    /*background-color: #fff;*/
    border: none;
    padding: 0;
    box-shadow: none;
    transition: opacity 0.3s ease;
    width: 100%;
}



/*alt
.beitragsbild {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
}

.beitragsbild img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
*/

.beitragsbild {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9; /* force container shape */
}

.beitragsbild img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill container */
    display: block;
}

.kategorie {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #CC2D25!important;
    color: white;
    padding: 5px 25px!important;
    border-radius: 0 10px;
}

.kategorie::after {
    width: 30px;
    background: #CC2D25;
    position: absolute;
    height: 100%;
    content: ' ';
    right: -15px;
    top: 0;
    transform: skew(18.86deg);
}

.beitragstext {
    margin-top: 10px;
}

.mehr-lesen {
    margin-bottom: 12px;
    margin-top: 0px !important;
}

.beitragstext h3 {
    margin: 0 0 10px;
    font-weight: bold;
    color: #4E4B4A;
}

.beitragstext p {
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #4E4B4A;
}

.beitragstext a {
    display: inline-block;
    margin-top: 10px;
    color: #CC2D25;
    text-decoration: none;
    font-weight: bold;
}

.beitragstext a:hover {
    text-decoration: underline;
}

.kategoriefilter {
    margin-bottom: 20px;
}

.filter-button {
    background-color: #fff;
    border: 1px solid #CC2D25;
    color: #CC2D25;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 500px;
	font-size: 15px;
  text-decoration: none;
}

.filter-button.active {
    background-color: #CC2D25;
    color: white;
}

@media (max-width: 1024px) {
    .beitragsvorschau {
        flex: 1 1 calc(50% - 20px); /* 2 Spalten bei mittleren Bildschirmen */
    }
}

@media (max-width: 768px) {
    .beitragsvorschau {
        flex: 1 1 100%; /* 1 Spalte bei kleinen Bildschirmen */
    }
}

@media (max-width: 480px) {
    .filter-button {
        padding: 8px 16px; /* Kleinere Buttons auf kleinen Bildschirmen */
    }
}

.kategoriefilter {
    margin-bottom: 20px;
}


@media (max-width: 1024px) {
    .beitragsvorschau {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .beitragsvorschau {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .filter-button {
        padding: 8px 16px;
    }
}

.kategoriefilter {
    margin-bottom: 20px;
}


/* Jobs: */

.jobs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Kleinere min-Breite */
    gap: 5vw;
    max-width: 100vw; /* Maximale Breite verhindern */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .jobs-container {
        gap: 20px; /* Weniger Abstand auf mobilen Geräten */
        padding: 0 0px; /* Zusätzliche Polsterung links/rechts für kleine Geräte */
    }

    .job-box {
        padding: 15px; /* Weniger Padding für mobile Geräte */
    }
}

.job-box {
    background: #F0E9DA;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 4px;
    flex-direction: row;
    justify-content: space-between;
    position: relative; /* Damit der Button sich relativ zur Box positionieren kann */
    min-height: 250px;
}


.job-content-left {
    width: 60%;
}

.job-content-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 132px;
}

.job-title {
    font-size: inherit;
    font-weight: bold;
    margin-bottom: 5px;
}

.job-date {
    font-size: 14px;
    color: #4E4B4A;
    margin-bottom: 10px;
}

.job-excerpt {
    font-size: inherit;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-button {
    /*position: absolute;
    bottom: 20px;
    right: 20px;*/
    background-color: #c42e26;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 500px;
    font-size: 14px;
}


.job-button:hover {
    background-color: #a0211b;
}

/* Erlebnisfahrten: */

.quote-banner-with-image {
    padding-right: 240px;
}

@media (max-width: 768px) {
    .erlebnisfahrt-box {
        padding: 15px; /* Weniger Padding für mobile Geräte */
    }
    .quote-banner-with-image {
        padding-right: 24px;
    }
}

.erlebnisfahrt-box {
    background: #F0E9DA;
    padding: 36px;
    border-radius: 10px;
    display: flex;
    gap: 4px;
    flex-direction: row;
    justify-content: space-between;
    position: relative; /* Damit der Button sich relativ zur Box positionieren kann */
    min-height: 250px;
}

.erlebnisfahrt-box p, .erlebnisfahrt-box h3 {
    margin: 0;
    padding: 0;
}

.erlebnisfahrt-box h3 {
    font-size: 24px;
    padding-bottom: 8px;
}

.erlebnisfahrt-content-left {
    display: flex;
    flex-direction: column;
    width: 70%;
    justify-content: space-between !important;
}

.erlebnisfahrt-content-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
}

.erlebnisfahrt-title {
    font-size: inherit;
    font-weight: bold;
    margin-bottom: 5px;
}

.erlebnisfahrt-date {
    font-size: 14px;
    color: #4E4B4A;
    margin-bottom: 10px;
}

.erlebnisfahrt-excerpt {
    font-size: inherit;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erlebnisfahrt-button {
    /*position: absolute;
    bottom: 20px;
    right: 20px;*/
    background-color: #c42e26;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 500px;
    font-size: 14px;
}


.erlebnisfahrt-button:hover {
    background-color: #a0211b;
}



.erlebnisfahrten-trains-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.erlebnisfahrten-trains-container
.hidden {
    display: none !important;
}

.erlebnisfahrten-trains-container 
.train-container {
    display: flex;
    gap: 36px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.erlebnisfahrten-trains-container 
    .train-container
    .image-container,
.erlebnisfahrten-trains-container 
    .train-container
    .text-container {
    flex: 1 1 calc(50% - 18px);
    box-sizing: border-box;
    padding: 10px;
}

.erlebnisfahrten-trains-container 
    .train-container
    .image-container {
    position: relative;
    padding: 0;
}

.erlebnisfahrten-trains-container 
    .train-container
    .image-container
    .train-image {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.erlebnisfahrten-trains-container 
    .train-container
    .image-container
    .technical-details-box {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 16/9;
    background-color: white;
    position: absolute;
    left: 0;
    top: 0;
    display: none;
    box-sizing: border-box;
    overflow: hidden;
}
.erlebnisfahrten-trains-container 
    .train-container
    .image-container
    .technical-details-box
    .scrollable-innie {
        position: absolute;
        inset: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        padding: 48px 4% 24px 4%;
        box-sizing: border-box;
}
.datasheet {
    width: 100%;
    border-collapse: collapse;
}

.datasheet td {
    padding: 8px 12px;
    border-bottom: 1px solid #ccc;
}

.datasheet tr:last-child td {
    border-bottom: none;
}

.erlebnisfahrten-trains-container 
    .train-container
    .text-container 
    h3 {
    padding: 0;
    margin: 0;
}



@media (max-width: 768px) {

    .erlebnisfahrten-trains-container 
        .train-container {
        gap: 12px;
    }
    
    .erlebnisfahrten-trains-container 
        .train-container
        .image-container,
    .erlebnisfahrten-trains-container 
        .train-container
        .text-container {
        flex: 1 1 100%;
    }
}

.erlebnisfahrten-trains-container 
.train-container
.image-container 
.technical-details-banner:hover {
    cursor: pointer;
}


.erlebnisfahrten-trains-container 
.train-container
.image-container 
.technical-details-banner {
    z-index: 900;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #CC2D25 !important;
    color: white;
    padding: 8px 18px 8px 10px!important;
    border-radius: 0 10px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.erlebnisfahrten-trains-container 
.train-container
.image-container 
.technical-details-banner::before {
    width: 20px;
    background: #CC2D25;
    position: absolute;
    height: 100%;
    content: ' ';
    left: -12px;
    top: 0;
    transform: skew(18.86deg);
}









/* Über uns (FLOTTE TECHNICAL DETAILS */

.ueber-uns-flotte-trains-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
}

.ueber-uns-flotte-trains-container
.hidden {
    display: none !important;
}

.ueber-uns-flotte-trains-container
.train-container {
    width: calc(50% - 12px);
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
}


.ueber-uns-flotte-trains-container
    .train-container
    .image-container {
    box-sizing: border-box;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    height: auto;
}

.ueber-uns-flotte-trains-container
    .train-container
    .image-container
    img.train-image {
        display: block;
        width: 100%;
        height: auto;
}


.ueber-uns-flotte-trains-container 
    .train-container
    .image-container
    .train-image {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 16/9;
    object-fit: cover;
    height: auto;
}

.ueber-uns-flotte-trains-container
    .train-container
    .image-container
    .technical-details-box {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 16/9;
    background-color: white;
    position: absolute;
    left: 0;
    top: 0;
    display: none;
    box-sizing: border-box;
    overflow: hidden;
}
.ueber-uns-flotte-trains-container
    .train-container
    .image-container
    .technical-details-box
    .scrollable-innie {
        position: absolute;
        inset: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        padding: 48px 4% 48px 4%;
        box-sizing: border-box;
}
.datasheet {
    width: 100%;
    border-collapse: collapse;
}

.datasheet td {
    padding: 8px 12px;
    border-bottom: 1px solid #ccc;
}

.datasheet tr:last-child td {
    border-bottom: none;
}



.title-bottom-left-banner {
    padding: 0 5px;
}

.title-bottom-left-banner span {
    color: white;
    font-weight: bold;
}

.title-bottom-left-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #CC2D25;
    padding: 6px 20px 6px 12px;
    border-radius: 0 10px;
    max-width: 72%;
}

.title-bottom-left-banner::after {
    width: 30px;
    background: #CC2D25;
    position: absolute;
    height: 100%;
    content: ' ';
    right: -15px;
    top: 0;
    transform: skew(18.86deg);
}



@media (max-width: 768px) {

    .ueber-uns-flotte-trains-container 
        .train-container {
        gap: 12px;
    }

    .ueber-uns-flotte-trains-container
.train-container {
    display: flex;
    gap: 36px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}
    
    .ueber-uns-flotte-trains-container 
        .train-container
        .image-container{
        flex: 1 1 100%;
    }
}

.ueber-uns-flotte-trains-container 
.train-container
.image-container 
.technical-details-banner:hover {
    cursor: pointer;
}


.ueber-uns-flotte-trains-container 
.train-container
.image-container 
.technical-details-banner {
    z-index: 900;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #CC2D25 !important;
    color: white;
    padding: 8px 18px 8px 10px!important;
    border-radius: 0 10px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.ueber-uns-flotte-trains-container
.train-container
.image-container 
.technical-details-banner::before {
    width: 20px;
    background: #CC2D25;
    position: absolute;
    height: 100%;
    content: ' ';
    left: -12px;
    top: 0;
    transform: skew(18.86deg);
}


/* Über uns Geschäftsberichte */
/* Container for the dropdown and button */
.annual-report-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Ensure the dropdown and button move to a new line on mobile */
@media (max-width: 768px) {
    .annual-report-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

.annual-report-select-container {
    display: flex;
    gap: 24px;
}

/* Style the dropdown */
#annual-report-select, #network-status-report-select {
    flex-grow: 1 !important;
    border: 1px solid #CC2D25;
    color: #CC2D25;
    background-color: white;
    border-radius: 10px;
    padding: 8px;
    font-size: 16px;
    cursor: pointer;
}

#annual-report-btn, #network-status-report-btn {
    background-color: gray;
    color: white;
    border: 1px solid gray;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-family: sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-block;
}

#annual-report-btn:not([disabled]), #network-status-report-btn:not([disabled]) {
    background-color: #CC2D25;
    border: 1px solid #CC2D25;
}

#annual-report-btn:hover, #network-status-report-btn:hover {
    cursor: default;
}

#annual-report-btn:not([disabled]):hover, #network-status-report-btn:not([disabled]):hover {
    background-color: white;
    color: #c42e26;
    border: 1px solid #c42e26;
    cursor: pointer;
}



/* Über uns & Erlebnisfahrten: */

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: space-between;
}

.team-member {
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

@media (min-width: 768px) {
    .team-member {
        flex: 1 1 calc(50% - 24px);
        max-width: calc(50% - 24px);
    }
}

.member-photo {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 10px;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-info {
    padding: 0 5px;
}
  
.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #CC2D25;
    padding: 6px 20px 6px 12px;
    border-radius: 0 10px;
    max-width: 72%;
}

.member-info::after {
    width: 30px;
    background: #CC2D25;
    position: absolute;
    height: 100%;
    content: ' ';
    right: -15px;
    top: 0;
    transform: skew(18.86deg);
}

.member-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.member-name {
    font-weight: bold;
}

.member-role {
    font-weight: normal;
}

.member-name, .member-role {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.member-separator {
    height: 12px;
    border-left: 1px solid white;
}


.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
    background-color: white;
    border-radius: 10px;
    border: 2px solid white;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    color: #000;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border: 2px solid #c42e26;
  outline: none;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: grey;
    opacity: 1;
}

.wpcf7 textarea {
    font-family: sans-serif;
}

.wpcf7 form label {
    display: none;
}

.wpcf7 .form-row {
    display: flex;
    gap: 20px;
    width: 100% !important;
    box-sizing: border-box;
}

.wpcf7 .form-row input {
    flex: 2;
    width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 textarea{
    margin-bottom: 0;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.wpcf7-not-valid-tip {
    font-size: 14px;
    color: #c42e26;
    margin-top: 5px;
}

.wpcf7 input,
.wpcf7 textarea,
.wpcf7-not-valid-tip {
    font-family: sans-serif;
    font-size: 14px;
}

.wpcf7 input[type="submit"] {
    background-color: #c42e26;
    color: white;
    border: 1px solid #c42e26;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-family: sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-block;
    float: right; /* Align right */
}

.wpcf7 input[type="submit"]:hover {
    background-color: white;
    color: #c42e26;
    border: 1px solid #c42e26; /* Optional: add a border for definition */
}

.no-image-page-title {
    margin-top: 120px !important;
}

#kontaktformular {
    margin-left: 48px !important;
    margin-right: 48px !important;
}

#buchungsformular {
    margin-left: 48px !important;
    margin-right: 48px !important;
    margin-top: 92px;
}

@media (max-width: 768px) {
    #kontaktformular,
    #buchungsformular {
        margin-left: 24px !important;
        margin-right: 24px !important;
    }
}

#kontaktformular a,
#buchungsformular a {
    color: #c42e26;
    text-decoration: none;
}

#kontaktformular a:hover,
#buchungsformular a:hover {
    text-decoration: underline;
}











/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ################################# */
/* ##### YET TO BE STRUCTURED: ##### */


/*Slider Geschichte*/

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 33.33%;
    position: relative;
    text-align: center;
    transition: transform 0.5s ease, z-index 0s ease;
}

.slide img {
    width: 350px;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    width: 100%;
    text-align: center;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev, .next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.7);
}


.slider .slide.active {
    transform: scale(1.5) translateZ(0);
    z-index: 10;
}

.slider .slide.prev, .slider .slide.next {
    transform: scale(0.8) translateZ(0);
    z-index: 5;
}

.slider .slide.prev {
    transform: scale(0.9) translateX(-50%) translateY(20px);
}

.slider .slide.next {
    transform: scale(0.9) translateX(50%) translateY(20px);
}


.slider .slide:not(.active):not(.prev):not(.next) {
    transform: scale(0.8) translateZ(0); /* Normaler Zustand */
    z-index: 1; /* Normaler Z-Index */
}





/*Slider Forchbahn in Zahlen*/


.zahlen-slider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-container {
  display: flex;
  overflow: hidden;  /* Verhindert, dass zusätzliche Slides sichtbar sind */
  width: 100%;  /* Volle Breite des Containers */
}

.slide {
  flex: 0 0 auto;
  transition: transform 0.5s ease;
  width: 100%;  /* Breite einer einzelnen Slide auf mobile */
}

/* Desktop - max 3 Slides anzeigen */
@media (min-width: 768px) {
  .slide {
    width: 33.33%; /* 3 Slides nebeneinander auf Desktop */
  }
}

/* Mobile - nur 1 Slide */
@media (max-width: 768px) {
  .slide {
    width: 100%; /* Nur ein Slide auf mobilen Geräten */
  }
}

/* Pfeile */
.pfeil-links,
.pfeil-rechts {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;  /* Korrektur: border-radius statt corner-radius */
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.pfeil-links {
  left: 10px;
}

.pfeil-rechts {
  right: 10px;
}

.pfeil-links svg,
.pfeil-rechts svg {
  width: 30px; /* Größe der Pfeile anpassen */
  height: auto;
}




/*technische Daten der Fahrzeuge*/


.technische-daten {
    max-height: 0;
    opacity: 0;
    overflow: hidden; /* Startet ohne Scroll */
    transition: opacity 0.5s ease-out;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
}

.technische-daten.aktiv {
    max-height: 500px; /* Fixe Höhe, damit Scrollen funktioniert */
    opacity: 1;
    overflow: auto; /* Aktiviert Scrollen */
}



/* CHATGPT CSS FÜR Beiträge laden auf der Startseite */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.post-preview {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-preview img {
    width: 100%;
    border-radius: 8px;
}

.load-more-btn {
    display: block;
    margin: 2rem auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.load-more-btn:hover {
    background: #005e8a;
}

.footer-container a {
    text-decoration: none;
}

.footer-container a:hover {
    text-decoration: underline;
}





/* New image slider with help */

.slider-image {
    position: relative;
    display: inline-block;
}

.slider-image img {
    display: block;
    width: 100%;
    height: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgba(0, 0, 0, 1); /* optional, for visibility */
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.slider-btn.left {
    left: -20px;
}

.slider-btn.right {
   right: -20px;
}





.slider-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }
  
  .slider-btn.left {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23c42e26" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>');
  }
  
  .slider-btn.right {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23c42e26" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>');
  }
  

.slider-btn:disabled {
    background-color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.slider-btn:hover:not(:disabled) {
    background-color: #F0E9DA;
}














.image-textbox-slider-container .not-focused button,
.image-textbox-slider-container .hidden button {
    display: none;
}


.image-textbox-slider-container {
    /*background-color: lightgrey;*/
    display: flex;
    flex-direction: row;
}

.image-textbox-slider-container 
    .slider-item {
    /*background-color: gray;*/
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.image-textbox-slider-container 
    .focused {
    width: 50%;
    z-index: 900;
}

.image-textbox-slider-container 
    .not-focused {
    width: 25%;
}

.image-textbox-slider-container 
    .pseudo {
}

.image-textbox-slider-container 
    .hidden {
    display: none;
}

.image-textbox-slider-container 
    .not-focused
    .slider-textbox {
    display: none;
}

.image-textbox-slider-container 
    .slider-item 
    .slider-image {
    /*background-color: blue;*/
    text-align: center;
    width: 100%;
}

.image-textbox-slider-container 
    .slider-item 
    .slider-image
    img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
}


.image-textbox-slider-container 
    .focused 
    .slider-image {
}

.image-textbox-slider-container 
    .not-focused 
    .slider-image {
    transform: scale(1.5);
    transform-origin: top center;
    padding-top: 10%;
}

.image-textbox-slider-container 
    .slider-item 
    .slider-textbox {
    background-color: #F0E9DA;
    border-radius: 10px;
    padding: 24px;
}

.image-textbox-slider-container 
    .slider-item 
    .slider-textbox h3 {
    color: #c42e26;
    margin: 0;
    padding: 0 0 20px 0;
}

.image-textbox-slider-container 
    .slider-item 
    .slider-textbox p {
    margin: 0;
    padding: 0;
    line-height: 1.5em;
    min-height: 7.5em;
}


.scaled { /* the parent */
    transform: scale(2,3);
    transform-origin:top left;
 }

.scaled * { /* the children */
   transform: scale(.5, .33); 
}










/*Forchbahn in Zahlen Slider with help based on other slider */
.textbox-slider-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    /*margin-bottom: 140px;*/
  }

  .textbox-slider-container .slider2-item {
    flex: 1;
    display: none;
    position: relative;
    box-sizing: border-box;
  }

  .textbox-slider-container .slider2-item.focused {
    display: block;
    width: 45%;
    z-index: 900;
  }

  .textbox-slider-container .slider2-item.not-focused {
    display: block;
    width: 25%;
    opacity: 0.5; /* Make the not-focused items smaller and a little faded */
  }

  .textbox-slider-container .slider2-textbox {
    background-color: #F0E9DA;
    border-radius: 10px;
    padding: 24px;
    position: relative;
  }

  .textbox-slider-container .slider2-textbox .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .textbox-slider-container .slider2-textbox .row h3 {
    color: #c42e26;
    margin: 0;
  }

  .textbox-slider-container .slider2-textbox .row img {
    height: 46px;
  }

  .textbox-slider-container .slider2-textbox p {
    margin: 0;
    padding: 24px 0 0 0;
    font-weight: bold;
    line-height: 1.5em;
    min-height: 9em;
  }

  /* Buttons - scoped from original */
  .textbox-slider-container .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }

  .textbox-slider-container .slider-btn.left {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23c42e26" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>');
    left: -20px;
  }

  .textbox-slider-container .slider-btn.right {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23c42e26" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>');
    right: -20px;
  }

  .textbox-slider-container .slider-btn:disabled {
    background-color: white;
    cursor: not-allowed;
    opacity: 0.7;
  }

  .textbox-slider-container .slider-btn:hover:not(:disabled) {
    background-color: #F0E9DA;
  }


  .textbox-slider-container .slider2-item.hidden {
    display: none;
  }
/*
  .textbox-slider-container .slider2-item.pseudo {
    display: none;
  }
*/




/*"Friedas Zukunft" oder "Projekte"*/
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: space-between;
}

.projects-item {
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}



@media (min-width: 768px) {
    .projects-item {
        flex: 1 1 calc(50% - 24px);
        max-width: calc(50% - 24px);
    }
}

/*alt
.projects-item-photo {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
}

.projects-item-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}*/

.projects-item-photo {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
}

.projects-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projects-category-banner {
    padding: 0 5px;
}

.projects-category-banner span {
    color: white;
}
  
.projects-category-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #CC2D25;
    padding: 6px 20px 6px 12px;
    border-radius: 0 10px;
    max-width: 72%;
}

.projects-category-banner::after {
    width: 30px;
    background: #CC2D25;
    position: absolute;
    height: 100%;
    content: ' ';
    right: -15px;
    top: 0;
    transform: skew(18.86deg);
}

.title-right-top-banner {
    z-index: 900;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #CC2D25 !important;
    color: white;
    padding: 8px 18px 8px 10px!important;
    border-radius: 0 10px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.title-right-top-banner a {
    color: white;
    text-decoration: none;
}

.title-right-top-banner::before {
    width: 20px;
    background: #CC2D25;
    position: absolute;
    height: 100%;
    content: ' ';
    left: -12px;
    top: 0;
    transform: skew(18.86deg);
}




/*Reiseberatung People */
.consultants-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: flex-start;
}

.consultant-container {
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.consultant-item-top {
    width: 100%;
    position: relative;
}

/*@media (min-width: 768px) {
    .consultant-container {
        flex: 1 1 calc(50% - 24px);
        max-width: calc(50% - 24px);
    }
}*/

/* Tablet - 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .consultant-container {
        flex: 1 1 calc(50% - 24px);
        max-width: calc(50% - 24px);
    }
}

/* Desktop - 3 columns */
@media (min-width: 1024px) {
    .consultant-container {
        flex: 1 1 calc(33.333% - 32px);
        max-width: calc(33.333% - 32px);
    }
}


.consultant-item-photo {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
}

.consultant-item-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.consultant-category-banner {
    padding: 0 5px;
}

.consultant-category-banner span {
    color: white;
}
  
.consultant-category-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #CC2D25;
    padding: 6px 20px 6px 12px;
    border-radius: 0 10px;
    max-width: 72%;
}

.consultant-category-banner::after {
    width: 30px;
    background: #CC2D25;
    position: absolute;
    height: 100%;
    content: ' ';
    right: -15px;
    top: 0;
    transform: skew(18.86deg);
}

.title-right-top-banner {
    z-index: 900;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #CC2D25 !important;
    color: white;
    padding: 8px 18px 8px 10px!important;
    border-radius: 0 10px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.title-right-top-banner a {
    color: white;
}

.title-right-top-banner::before {
    width: 20px;
    background: #CC2D25;
    position: absolute;
    height: 100%;
    content: ' ';
    left: -12px;
    top: 0;
    transform: skew(18.86deg);
}






/*delete the following? I think so... */

.member-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.member-name {
    font-weight: bold;
}

.member-role {
    font-weight: normal;
}

.member-name, .member-role {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.member-separator {
    height: 12px;
    border-left: 1px solid white;
}


/*Störmeldungen:*/

/* Overlay */
#s18-him-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

/* Modal container */
#s18-him-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  max-width: 600px;
  width: 90%;
  display: flex;
  opacity: 0;
  transition: opacity 0.3s ease;
  justify-content: center;
  align-items: center;
}

#s18-him-modal.visible {
  opacity: 1;
}

/* Modal content */
.s18-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeInScale 0.3s ease;
}

/* Close button */
.s18-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}

.s18-close:hover {
  color: #000;
}

/* Individual message */
.s18-message {
  padding: 10px;
  margin-bottom: 12px;
  border-left: 4px solid #e63946;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.4em;
}

/* Störmeldungen Message Items */
.s18-message-item {
    padding: 15px 0;
}

.s18-message-item h3 {
    color: #CC2D25;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.s18-date-range {
    margin: 8px 0;
    color: #333;
}

.s18-link {
    margin: 8px 0;
}

.s18-link a {
    color: #CC2D25;
    text-decoration: none;
    font-weight: 600;
    transition: text-decoration 0.2s;
}

.s18-link a:hover {
    text-decoration: underline;
}

.s18-separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

#s18-messages-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 0;
}

@keyframes fadeInScale {
  from { 
    transform: translate(-50%, -50%) scale(0.95); 
    opacity: 0; 
  }
  to { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 1; 
  }
}


.zvv-contact-logo img {
    margin-left: -6px;
}




/* MailPoet Styling */

/* MailPoet Form – Match Contact Form Styling */
.mailpoet_text,
.mailpoet_textarea,
.mailpoet_select,
.mailpoet_date_month,
.mailpoet_date_day,
.mailpoet_date_year,
.mailpoet_date {
    background-color: white;
    border-radius: 10px;
    border: 2px solid white;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    color: #000;
    font-family: sans-serif;
    font-size: 14px;
}

.mailpoet_text:focus,
.mailpoet_textarea:focus,
.mailpoet_select:focus,
.mailpoet_date_month:focus,
.mailpoet_date_day:focus,
.mailpoet_date_year:focus,
.mailpoet_date:focus {
    border: 2px solid #c42e26;
    outline: none;
}

/* Placeholder styling */
.mailpoet_text::placeholder,
.mailpoet_textarea::placeholder {
    color: grey;
    opacity: 1;
}

/* Hide labels like in CF7 */
.mailpoet_text_label,
.mailpoet_textarea_label,
.mailpoet_select_label,
.mailpoet_date_label,
.mailpoet_checkbox_label {
    display: none;
}

/* Paragraph wrapper */
.mailpoet_paragraph {
    margin-bottom: 20px;
}

/* MailPoet Submit button - Updated */
.mailpoet_submit,
.mailpoet_submit input[type="submit"],
.mailpoet_form input[type="submit"],
input.mailpoet_submit {
    background-color: #c42e26;
    color: white;
    border: 1px solid #c42e26;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-family: sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-block;
    float: right;
}

.mailpoet_submit:hover,
.mailpoet_submit input[type="submit"]:hover,
.mailpoet_form input[type="submit"]:hover,
input.mailpoet_submit:hover {
    background-color: white;
    color: #c42e26;
    border: 1px solid #c42e26;
}

/* Clear floats after the form */
.mailpoet_form::after {
    content: "";
    display: table;
    clear: both;
}

/* Remove MailPoet form padding */
.mailpoet_form {
    padding: 0 !important;
}

/* Also target possible wrapper elements */
.mailpoet_form_wrapper,
.mailpoet-form,
.mailpoet_widget_wrapper {
    padding: 0 !important;
}

/* If the form is inside a widget or container that adds padding */
.widget_mailpoet_form,
.mailpoet_form_widget {
    padding: 0 !important;
}



/*_ _ _ _ _ _ _ _ _ _  _ _ _ _ _  _ _ _ _ _ _ _ _ _ _ _*/
/*________________Mediamitteilungen____________________*/
/*_ _ _ _ _ _ _  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */

/* Mediamitteilungen Styles */
.mediamitteilungen-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
  padding: 20px 0;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 992px) {
  .mediamitteilungen-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 768px) {
  .mediamitteilungen-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.mediamitteilung-item {
  background: #F0E9DA; 
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

/* .mediamitteilung-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
} */

.mediamitteilung-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.mediamitteilung-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.mediamitteilung-item:hover .mediamitteilung-image img {
  transform: scale(1.05);
}

.mediamitteilung-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mediamitteilung-date {
  color: #666;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

.mediamitteilung-content h2 {
  margin-bottom: 15px;
  font-size: clamp(1.3rem, 1.3rem + ((1vw - 0.2rem) * 0.875), 2rem);
  line-height: 1.2;
  color:  #4E4B4A;
}

.mediamitteilung-text {
  margin-bottom: 20px;
  line-height: 1.4;
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.25), 1.05rem);
  color:  #4E4B4A;
  flex: 1;
}

/* Limit text to 3 lines with ellipsis */
.mediamitteilung-text p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.mediamitteilung-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.mediamitteilung-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #CC2D25;
  color: white;
  text-decoration: none;
  border-radius: 500px;
  font-weight: 400;
  font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.25), 1.2rem);
  transition: background-color 0.3s;
  text-align: center;
}


.media-titel4{
font-weight: 500;
font-size: 18px;
margin-top: 0.5em;
}


