.kfz-filter-wrap :focus-visible {
    outline: 1px solid orange;
}

form#form-park-v3 input:focus:invalid {
    border-color: #35bc17 !important;
}

#kfz-search-input {
    height: 35px;
    padding: 5px;
    border: 0px solid;
    background: #333333;
    border-radius: 6px;
    color: #fff;
}

#kfz-send-list-btn {
    width: 100%;
    max-width: 21em;
    min-height: 35px;
    background: rgb(248 140 1);
    line-height: 1em;
    cursor: pointer;
    padding: 5px;
    border: 0;
    border-radius: 6px;
}

@media (max-width: 678px) {
    #kfz-send-list-btn {
        line-height: 1.25em;
    }
}

.kfz-watch-wrapper {
    background: #2a2a2a;
    padding: 6px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
}

.kfz-watch-wrapper input {
    border: none;
    border-radius: 3px;
}

.sad-icon {
    width: 65px;
    padding: 10px;
}

.kfz-status-badge {
    max-width: 8em;
    text-align: center;
    position: relative;
    background: red;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    bottom: 10px;
    line-height: 1em;
}

.kfz-card.kfz-locked {
    opacity: 0.8;
    border-color: #555;
}

.kfz-card h3,
.kfz-modal-inner h2,
.kfz-modal-inner form input {
    color: #fff !important;
}

.kfz-card {
    transition: transform 0.2s;
}

.kfz-card:hover {
    transform: translateY(-5px);
    border-color: #0084ff;
}

.kfz-spec-item:last-of-type {
    border-bottom: none;
}

.kfz-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.kfz-filter-wrap {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #333;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.kfz-filter-wrap select {
    max-width: 11em;
    background: #333;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
}

.kfz-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    font-family: sans-serif;
}

.kfz-card {
    background: #1e1e1e;
    border: 1px solid #333;
    max-width: 370px;
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kfz-card img.main-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    margin-bottom: 15px;
    border: 1px solid #444;
}

.kfz-price-tag {
    font-size: 1.6em;
    font-weight: bold;
    color: #2ecc71;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.kfz-spec-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.95em;
}

.kfz-spec-label {
    margin-right: 5px;
    color: #999;
}

.kfz-desc-box {
    background: #2a2a2a;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 1.1em;
    line-height: 1.4;
    color: #ddd;
	min-height: 199px;
    max-height: 210px;
    overflow-y: auto;
	letter-spacing: 0.04em;
    font-weight: 100;
}

.kfz-desc-box strong{
  margin-bottom: 8px;
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 6px 0px;
  background: #202020;
  border-radius: 5px;
  margin-top: -6px;
  color: #9d9d9d;
}

.park-action-btn,
.form-park-v3 .park-action-btn,
#submit-watchlist-btn,
#submit-park-btn {
    background: #23c415;
    color: #fff;
    border: none;
    padding: 14px;
    width: 100%;
    max-width: 100% !important;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1em;
}

/*
.park-action-btn[disabled=""]{
  background: red !important;
}
*/

/* Modale Styles */
.kfz-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.kfz-modal-inner {
    background: #222;
    width: 90%;
    max-width: 1000px;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    color: #fff;
    top: -8em;
}

/* Bilder Gallerie Slider */

#slider-stage img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 8px;
}

.slider-nav {
    display: flex;
    gap: 16px;
    margin-top: 15px;
    overflow-x: scroll;
    padding-bottom: 10px;
    white-space: nowrap;
}

.slider-nav img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.5;
}

.slider-nav img.active {
    opacity: 1;
    border: 2px solid #0084ff;
}

/* Container für das Hauptbild */
#slider-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

#current-slide {
    max-height: 70vh;
    object-fit: contain;
}

/* Die Navigations-Pfeile am Hauptbild */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    user-select: none;
    transition: background 0.3s;
    z-index: 10;
}

.slider-nav-btn:hover {
    background: rgb(217 152 27 / 80%);
}

/* Passend zum roten X */
.slider-nav-btn.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.slider-nav-btn.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* Thumbnail Leiste optimieren */
#slider-thumbs {
    display: flex;
    overflow-x: auto;
    /* Aktiviert horizontales Scrollen */
    gap: 10px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar Design für die Thumbnails */
#slider-thumbs::-webkit-scrollbar {
    height: 6px;
}

#slider-thumbs::-webkit-scrollbar-track {
    background: #333;
}

#slider-thumbs::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.thumb-trigger {
    flex: 0 0 80px;
    /* Feste Breite für Thumbnails */
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.thumb-trigger.active {
    opacity: 1;
    border: 2px solid #dc3545;
}


.kfz-form-v3 input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #333;
    border: 1px solid #444;
    color: #fff;
}

.close-x {
    position: absolute;
    top: -16px;
    right: 10px;
    color: red;
    font-size: 33px;
    cursor: pointer;
    transform: scale(1);
    transition: all 0.4s ease-in-out;
    z-index: 60;
}

.close-x:hover {
    transform: scale(1.1);
}

/* Labels für Kaufen / Mieten */
.kfz-label-buy,
.kfz-label-rent {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
	letter-spacing: 0.08em;
    z-index: 10;
	box-shadow: 1px 2px 18px #000;
}

.kfz-label-buy {
    background-color: #29a172;
}

.kfz-label-rent {
    background-color: #237ebb;
}

/* Anpassung der Card, damit relative positioning passt falls noch nicht */
.kfz-card {
    position: relative;
    background: #1e1e1e;
    border: 1px solid #333;
    max-width: 370px;
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
