/* global */

.ct-featured-image * {
    min-height: 50vh;
    max-height: 80vh;
}
.ct-featured-image figcaption{
  display:none;
}

/* forms */

.wpcf7 label{
  padding: 0.3rem 0 0 0;
}
.screen-reader-response {
  display: none;
}
.wpcf7-response-output {
  background: red;
  color: white;
  padding: 0 5px;
  margin: 0;
  font-style: inherit !important;
  border-radius: 2px;
}

/* leaflet map */

#mapoverlay {
  position: absolute;
  z-index: 999;
  background: rgba(0,0,0,0.8);
  width: 100%;
  height: 480px;
  left: 0;
  text-align: center;
  color: white;
  padding: 10%;
  font-size: 18px;
}
.ba_map_holder {
  margin-bottom: 0 !important;
}
.ba_map_holder.markers{
  width:100%;
  height: 480px;
}
.leaflet-control-attribution{
  display:none !important;
}

/* components */
span.preis {
  font-size: 1.5rem;
}

/* woo pdf voucher */
a.woo_vou_preview_pdf {
  padding: 5px 10px;
  background: #ffc107;
  border-radius: 2px;
  width: 100px;
  text-align: center;
  font-size: 14px;
}

input#datenschutz {
  height: 20px !important;
  width: 20px !important;
}
.hidden-fields-container{
  display:none;
}

.show-on-focus{
	display:none;
}

/* offer card */

.ct-related-posts-items article .post {
    height: 100%; /* Ensure the post element takes full height */
}

.offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
    height: 100% !important;
    box-sizing: border-box;
}

.offer-card * {
    box-sizing: border-box;
}

.offer-card a {
    text-decoration: none;
}

.offer-card__image-container {
    position: relative;
    width: 100%;
}

.offer-card__image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
}

.offer-card__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem;
    border-radius: calc(0.25rem - 1px);
    pointer-events: none;
}

.offer-card__location {
    font-size: 0.875em;
    font-weight: 700;
    color: #fff !important;
    text-shadow: 0px 0px 3px rgba(0, 0, 0.6);
    margin-bottom: 0.5rem;
}

.offer-card__badge {
    display: inline-block;
    padding: 0;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    background-color: #198754 !important;
}

.offer-card__body {
    flex: 1 1 auto;
    padding: 1rem 1.5rem;
    text-align: center !important;
    color: #212529;
}

.offer-card__body h3 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.offer-card__body p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.offer-card__body .author {
    margin-bottom: 0.5rem;
}

.offer-card__body .zeitraum {
    font-size: 0.875em;
    color: #6c757d;
    margin-bottom: 1rem;
}

.offer-card__footer {
    padding: 0.5rem 1rem;
    background-color: #fff !important;
    border-top: 0 !important;
    text-align: center !important;
    border-bottom-left-radius: calc(0.25rem - 1px);
    border-bottom-right-radius: calc(0.25rem - 1px);
}

.trim-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: wrap;
}

/* Custom styles for Single Post Template to replace Bootstrap 5.3.1 */

/* Box Sizing */
.sp-container *, .sp-container *::before, .sp-container *::after {
    box-sizing: border-box;
}

/* Container */
.sp-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

@media (min-width: 576px) { .sp-container { max-width: 540px; } }
@media (min-width: 768px) { .sp-container { max-width: 720px; } }
@media (min-width: 992px) { .sp-container { max-width: 960px; } }
@media (min-width: 1200px) { .sp-container { max-width: 1140px; } }
@media (min-width: 1400px) { .sp-container { max-width: 1320px; } }

.sp-banner {
    width: 100%;
    display: block;
}

/* Grid System */
.sp-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.sp-row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-top: 0;
}
.sp-row-center {
    justify-items: center;
}

.sp-col-half {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .sp-col-half {
        width: 50%;
    }
}

/* Cards */
.sp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}

.sp-card--light {
    background-color: #f8f9fa !important;
}

.sp-p-4 {
    padding: 1.5rem !important;
}

.sp-mb-4 {
    margin-bottom: 1.5rem !important;
}
.sp-mt-4 {
    margin-top: 1.5rem !important;
}
.sp-pt-5 {
    padding-top: 3rem !important;
}

.sp-card-body {
    flex: 1 1 auto;
    padding: 1rem 1rem;
}

.sp-card-image {
    width: 100%;
}
.sp-card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
}

.sp-card-divider {
    margin-top: 0.5rem;
}

/* Typography & Utilities */
.sp-text-center {
    text-align: center !important;
}

.sp-text-decoration-line-through {
    text-decoration: line-through !important;
}

.sp-rounded {
    border-radius: 0.375rem !important;
}

.sp-d-block {
    display: block !important;
}

.sp-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Spacer Utility */
.sp-spacer {
    height: 20px;
}

.sp-container-fluid {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

.sp-col {
    flex: 1 0 0%;
}

.sp-p-2 { padding: 0.5rem !important; }
.sp-pb-4 { padding-bottom: 1.5rem !important; }

.sp-mb-2 { margin-bottom: 0.5rem !important; }
.sp-mb-4 { margin-bottom: 1.5rem !important; }
.sp-mb-5 { margin-bottom: 3rem !important; }

.sp-mt-2 { margin-top: 0.5rem !important; }
.sp-mt-4 { margin-top: 1.5rem !important; }
.sp-mt-5 { margin-top: 3rem !important; }

.sp-p-0 { padding: 0 !important; }

.sp-col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.sp-col-6 {
    flex: 0 0 auto;
    width: 100%;
}

.sp-col-4 {
    flex: 0 0 auto;
    width: 100%;
}

.sp-col-8 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .sp-col-6 {
        width: 50%;
    }
    .sp-col-4 {
        width: 33.33333333%;
    }
    .sp-col-8 {
        width: 66.66666667%;
    }
}

.sp-form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.sp-form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #212529;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.wpcf7-not-valid {
    border: 2px solid red!important;
}
.wpcf7-list-item {
    display: block;
}

.sp-btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.sp-btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.sp-btn-primary {
    color: #fff;
    background-color: var(--wp--preset--color--palette-color-1);;
    border-color: var(--wp--preset--color--palette-color-1);;
}
.sp-btn-primary:hover {
    color: #fff;
    background-color: var(--wp--preset--color--palette-color-1);;
    border-color: var(--wp--preset--color--palette-color-1);
}

.sp-img-fluid {
    max-width: 100%;
    height: auto;
}

.custom-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

@media (min-width: 768px) {
    .custom-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.custom-gallery__item {
    min-width: 0;
}

.custom-gallery__card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 0;
}

.custom-gallery__image {
    max-width: 100%;
    height: auto;
    display: block;
}

.custom-gallery__border {
    border: 1px solid #fff !important;
}



.entries {
    --grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 999.98px) {
 .entries {
    --grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 689.98px) {
 .entries {
    --grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
