.cover-image {
    width: 100vw;
    height: 350px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/*Header*/
.ketm-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 1rem 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Linke Seite mit Logo */
.ketm-header-left {
  width: 30%;
  display: flex;
}

.ketm-logo {
  height: 61px;
  width: auto;
  object-fit: contain;
  padding: 10px;
}

/* Rechte Seite mit Buttons */
.ketm-header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px; /* exakt 1px Abstand zwischen Buttons */
  flex-wrap: wrap;
  flex-grow: 1;
}

/* Style für Button-Navigation */
.ketm-header-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  background-color: #005E86;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  width: 200px;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
  border-radius: 0; /* default, wird gezielt überschrieben */
}

/* Erstes und letztes Button: individuelle Border-Radii */
.ketm-header-button:first-child {
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
}

.ketm-header-button:last-child {
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  background-color: #6EC1E4;

}

.ketm-header-button i {
  color: #ffffff;
  font-size: 1rem;
}

/* Hover-Zustand */
.ketm-header-button:hover {
  background-color: #ffffff;
  color: #005E86;
  border: 1px solid #005E86;
}

.ketm-header-button:hover i {
  color: #005E86;
}

/* Responsiv */
@media (max-width: 768px) {
  .ketm-header-container {
    flex-direction: column;
    align-items: center;
  }

  .ketm-header-left {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .ketm-header-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ⛔ Abrundung auf Mobilgeräten entfernen */
  .ketm-header-button:first-child,
  .ketm-header-button:last-child {
  border-radius: 0;
  }
}

.ketm-header-divider {
    height: 1px;
    background-color: #005E86;
    width: 100%;
    margin: 0;
    margin-bottom: 50px;
}

h1 {
    text-align: center;
    margin-top: 50px;
}

/* Container für Filter und Grid */
.archive-container {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* Filterbereich links */
.archive-filter {
    width: 25%;
    padding: 20px;
    box-sizing: border-box;
    border-right: 1px solid #ddd;
}

/* Neuer Wrapper für den rechten Inhalt */
.archive-content-wrapper {
    width: 75%; /* Nimmt den restlichen Platz rechts ein */
    box-sizing: border-box;
    padding-left: 20px; /* Optional: Abstand zum Filter */
}

/* Featured Offers Bereich */
.featured-offers-wrapper {
    width: 100%; /* Nimmt die volle Breite des rechten Bereichs ein */
    margin-bottom: 30px;
}

/* Grid-Bereich rechts (Archiv / Suchergebnisse) */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    box-sizing: border-box;
    padding-top: 20px; /* Optional: Abstand zu den Featured Offers */
}

@media (max-width: 600px) {
    .archive-container {
        flex-direction: column;
    }

    .archive-filter,
    .archive-content-wrapper,
    .archive-grid {
        flex: 1 0 100%;
        width: 100%;
    }

    .archive-filter {
        margin-bottom: 20px;
        border-right: none; /* Entferne die rechte Linie auf Mobilgeräten */
        border-bottom: 1px solid #ddd; /* Füge eine untere Linie hinzu */
    }

    .archive-content-wrapper {
        padding-left: 0; /* Entferne den linken Abstand auf Mobilgeräten */
    }

    .archive-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 0; /* Entferne den oberen Abstand auf Mobilgeräten */
    }
    
    .featured-swiper .swiper-slide {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 10px;
        box-sizing: border-box;
   }
}

/* Gemeinsame Stile für beide Grid-Item Typen */
.grid-item,
.featured-offer.grid-item {
    display: flex;
    flex-direction: column;
    max-width: 350px; /* Übernimmt den Wert vom Archiv-Grid */
    justify-content: space-between; /* Vertikale Verteilung der Inhalte */
    background: #fff;
    padding: 0px; /* Übernimmt den Wert vom Archiv-Grid */
    border: 1px solid #ddd; /* Übernimmt den Wert vom Archiv-Grid */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.grid-item {
    max-height: 450px; /* Behält die maximale Höhe für Archiv-Items */
}

.featured-offer.grid-item {
    height: 100%; /* Damit Featured Offers die gleiche Höhe wie die Swiper-Slides haben */
}

.grid-item:hover,
.featured-offer.grid-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.post-thumbnail img {
    width: 100%; /* Macht das Bild responsiv innerhalb des Containers */
    height: 200px;
    object-fit: cover; /* schneidet das Bild ggf. passend zu */
}

.post-author-avatar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.avatar-wrapper {
    flex-shrink: 0;
}

.post-author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #ddd;
    margin-left: 20px;
    margin-top: -40px;
    margin-bottom: 15px;
}

.request-count {
    padding-right: 15px;
}

.grid-item h2,
.featured-offer.grid-item h2 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    padding-left: 15px;
}

.grid-item .post-type,
.featured-offer.grid-item .post-type {
    display: block;
    font-size: 0.9em;
    color: #555;
    padding-left: 15px;
}

.gd-ribbon-container {
    margin-bottom: 0 !important;
}

.post-meta-container {
    margin-top: 0 !important;
    padding: 5px 15px 5px 15px;
    border-top: 1px solid #ddd;
}

.archive-grid.loading {
    opacity: 0.4;
    pointer-events: none;
    position: relative;
}

.archive-grid.loading::after {
    content: "";
    position: fixed; /* oder absolute, je nach gewünschter Platzierung */
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px; /* halbe Breite */
    margin-top: -25px;  /* halbe Höhe */
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Label und Felder in separaten Zeilen mit Abstand */
#archiveFilterForm label {
    display: block;
    margin-bottom: 0.5em;
}

#archiveFilterForm input,
#archiveFilterForm select,
#archiveFilterForm button {
    margin-bottom: 1em;
    width: 100%; /* Optional: sorgt dafür, dass die Felder die volle Breite nutzen */
    box-sizing: border-box;
}

.my-checkbox-group .my-checkbox-item {
    display: block !important;
    margin-bottom: 15px !important; /* Erhöht den Abstand zwischen den Checkbox-Zeilen */
}

/* Label als Flex-Container, um Inhalt horizontal zu ordnen */
.my-checkbox-label {
    display: flex !important;
    align-items: center !important;
}

/* Checkbox: Feste Dimensionen festlegen */
.my-checkbox-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

/* Text neben der Checkbox */
.my-checkbox-label .my-checkbox-text {
    margin-left: 5px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.sort-container {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.sort-select {
    flex: 1; /* Nimmt den gesamten verfügbaren Platz ein */
    margin-right: 10px;
}

.sort-select select {
    width: 100%;
    padding: 8px 12px;
    font-size: 1em;
    box-sizing: border-box;
}

.sort-button {
    flex: none; /* Keine automatische Größenzuweisung */
}

.sort-button button {
    padding: 8px 12px;
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    box-sizing: border-box;
}

/* Pagination-Container als Kind des Grids */
.custom-pagination {
    grid-column: 1 / -1;  /* Spanne über alle Spalten */
    text-align: right;     /* Richte den Inhalt rechts aus – falls gewünscht, kannst du auch center verwenden */
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.custom-pagination a,
.custom-pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    color: #0073aa;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.custom-pagination a:hover {
    background-color: #f1f1f1;
}

.custom-pagination .current {
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
    border-color: #0073aa;
}

.custom-pagination .disabled {
    color: #aaa;
    border-color: #eee;
    cursor: default;
}

.custom-pagination .page-first,
.custom-pagination .page-prev,
.custom-pagination .page-next,
.custom-pagination .page-last {
    min-width: 70px;
}

/* Gemeinsame Stile für beide Buttons */
button[type="submit"],
#reset-filters {
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    font-size: 1em;
    box-sizing: border-box;
}

/* Spezifisch für den Reset-Button */
#reset-filters {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#reset-filters:hover {
    background-color: #ccc; /* Dunkleres Grau beim Hover */
}

.featured-offers-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.featured-heading {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.featured-swiper {
    position: relative;
    overflow: visible; /* Wichtig: damit Pagination sichtbar bleibt */
    padding-bottom: 60px; /* Platz für Pagination schaffen */
}

.featured-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch; /* 🟢 alle Slides gleich hoch */
}

.featured-swiper .swiper-slide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px; /* Behält die maximale Breite */
    box-sizing: border-box;
    padding: 0 5px; /* Behält den horizontalen Abstand zwischen den Slides */
    height: auto;
}

.featured-offer.grid-item {
    /* Stile werden jetzt durch die kombinierten Regeln oben gesteuert */
    border: 2px solid #0073aa; /* Diese spezifische Farbe kannst du bei Bedarf beibehalten */
    box-shadow: 0 4px 6px rgba(0, 115, 170, 0.1); /* Diesen spezifischen Schatten kannst du bei Bedarf beibehalten */
    background: #fff; /* Stellt sicher, dass der Hintergrund weiß ist */
}

.swiper-button-prev,
.swiper-button-next {
    color: #0073aa;
    width: 30px;
    height: 30px;
    position: absolute; /* <-- Wichtig */
    top: 35%;
    z-index: 11;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: #0073aa;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px; /* oder 20px */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: auto; /* Falls Klicks nicht gehen */
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #005177;
}

/* Innovation Offer Map Button Styling */
.btn.innovation-map-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin-top: 15px; /* Abstand nach oben zu anderen Buttons */
    border: none;
    background-color: #0073aa; /* gleiche Farbe wie andere Buttons */
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
}

.btn.innovation-map-button i {
    margin-right: 8px;
    font-size: 16px;
}

.btn.innovation-map-button:hover {
    background-color: #006799;
    text-decoration: none;
}
