.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;
}

/* Karten-Titel als klickbarer Link */
.kfz-card-title-link {
    color: inherit;
    text-decoration: none;
}
.kfz-card-title-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.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;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 5px;
}

.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;
}

@media (max-width: 578px) {
.filter-text{
	width:100%;
}
}

.kfz-filter-wrap select {
    max-width: 13.5em;
    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: 400px;
max-width: 325px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    margin-bottom: 15px;
    border: 1px solid #444;
}

.kfz-thumb-wrap {
    position: relative;
}

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

.kfz-price-tag-offer {
    display: flex;
    flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
    gap: 5px;
}

.kfz-price-old {
  color: #ff5f5f;
  font-size: 0.72em;
  font-weight: 500;
}

.kfz-price-old::after {
  content: '';
  position: relative;
  display: block;
  width: calc(95% + 8px);
  height: 1.5px;
  left: -2px;
  bottom: 1em;
  background: #ff1111;
  transform: rotate(-12deg);
  }

.kfz-price-new {
    color: #2ecc71;
    font-size: 0.85em;
    font-weight: 800;
}

.kfz-price-euro {
    color: #9aa3b2;
}

.kfz-vermittlungsauftrag-note {
    color: #aeb5c8;
    font-size: 12px;
    letter-spacing: 0.02em;
    margin: -8px 0px 10px 0px;
}

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

.kfz-spec-label {
    margin-right: 1em;
    color: #999;
}

.kfz-desc-box {
    background: #2a2a2a;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 1.1em;
    line-height: 1.4;
    color: #fff;
	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%;
    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,
.kfz-form-v3 select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #333;
    border: 1px solid #444;
    color: #fff;
}

.kfz-form-v3 input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    accent-color: #23c415;
    cursor: pointer;
}

.kfz-dsgvo-wrap {
    margin-bottom: 14px;
}

.kfz-dsgvo-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.88em;
    line-height: 1.45;
}

.kfz-dsgvo-label a {
    color: #23c415;
    text-decoration: underline;
}

.kfz-time-row {
    display: flex;
    gap: 10px;
}

.kfz-time-row select {
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .kfz-time-row {
        flex-direction: column;
        gap: 0;
    }
}

.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-card-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 12;
}

.kfz-label-buy,
.kfz-label-rent {
    position: relative;
    padding: 5px 10px;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
	letter-spacing: 0.08em;
    z-index: 1;
	box-shadow: 1px 2px 18px #000;
}

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

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

.kfz-label-new {
    padding: 5px 10px;
    border-radius: 50px;
    background: #ff7e1f;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    box-shadow: 1px 2px 18px #000;
}

.kfz-top-offer-badge {
  position: absolute;
  bottom: 0px;
  right: -9px;
  background: #ff3dfbd6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 81%);
  z-index: 9;
  backdrop-filter: blur(5px);
}

@media (max-width: 520px) {
    .kfz-card-badges {
        gap: 6px;
        right: 8px;
        top: 8px;
    }

    .kfz-label-buy,
    .kfz-label-rent,
    .kfz-label-new {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* 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;
}

/* ==========================================================================
   GALERIE-BADGE & BESCHREIBUNGS-BUTTON
   ========================================================================== */

/* Galerie-Foto-Zähler über dem Thumbnail */
.kfz-gallery-badge {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: zoom-in;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
    z-index: 5;
    user-select: none;
}

.kfz-gallery-badge:hover {
    background: rgba(0, 132, 255, 0.72);
}

/* "Beschreibung anzeigen"-Button in der Card */
.kfz-desc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #383838;
    border-radius: 8px;
    color: #9aa3b2;
    font-size: 0.88em;
    font-weight: 600;
    padding: 11px 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    letter-spacing: 0.02em;
    margin-top: 10px;
    margin-bottom: 15px;
}

.kfz-desc-btn:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}

/* ==========================================================================
   VERKAUF-FORMULAR  [auto_verkaufen]
   ========================================================================== */

.kfz-vf-wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    font-family: sans-serif;
}

.kfz-vf-inner {
    background: #222;
    border-radius: 15px;
    padding: 32px;
    color: #fff;
}

.kfz-vf-header {
    margin-bottom: 28px;
}

.kfz-vf-title {
    margin: 0 0 10px;
    font-size: 1.6em;
    font-weight: 800;
    color: #fff;
}

.kfz-vf-intro {
    margin: 0;
    color: #aeb5c8;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Abschnitte */
.kfz-vf-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #333;
}

.kfz-vf-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.kfz-vf-section-title {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9aa3b2;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

/* Felder */
.kfz-vf-field {
    margin-bottom: 14px;
}

.kfz-vf-field:last-child {
    margin-bottom: 0;
}

.kfz-vf-label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #9aa3b2;
    margin-bottom: 6px;
}

.kfz-vf-req {
    color: #e05252;
}

.kfz-vf-form input[type="text"],
.kfz-vf-form input[type="tel"],
.kfz-vf-form input[type="email"],
.kfz-vf-form select,
.kfz-vf-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 0;
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95em;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.kfz-vf-form input:focus,
.kfz-vf-form select:focus,
.kfz-vf-form textarea:focus {
    outline: none;
    border-color: #23c415;
}

.kfz-vf-form textarea {
    resize: vertical;
    min-height: 100px;
}

.kfz-vf-form select option {
    background: #333;
    color: #fff;
}

/* 3-Spalten-Grid für Fahrzeug- und Kontaktfelder */
.kfz-vf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

/* Volle Breite (z.B. Textarea, Erreichbar) */
.kfz-vf-col-full {
    grid-column: 1 / -1;
}

/* Zwei Spalten breit */
.kfz-vf-col-2 {
    grid-column: span 2;
}

/* Abstand zwischen Fahrzeug-Grid und Kontakt-Grid */
.kfz-vf-grid + .kfz-vf-grid {
    margin-top: 20px;
}

/* Upload-Sektion Abstand */
.kfz-vf-upload-section {
    margin-top: 20px;
}

/* Zweispaltig (Legacy, Vorname / Nachname) */
.kfz-vf-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Drag & Drop Upload */
.kfz-vf-dropzone {
    border: 2px dashed #444;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #2a2a2a;
}

.kfz-vf-dropzone:hover,
.kfz-vf-dz-over {
    border-color: #23c415;
    background: #2a3a2a;
}

.kfz-vf-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.kfz-vf-dz-icon {
    width: 48px;
    height: 48px;
    color: #666;
    flex-shrink: 0;
}

.kfz-vf-dz-text {
    font-size: 0.95em;
    color: #ccc;
}

/* Klickbarer Link-Text im Dropzone */
.kfz-vf-dz-link {
    color: #23c415;
    text-decoration: underline;
    cursor: pointer;
    pointer-events: auto;
}

.kfz-vf-dropzone small {
    color: #777;
    font-size: 0.8em;
}

/* Bild-Vorschau */
.kfz-vf-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.kfz-vf-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #444;
}

.kfz-vf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kfz-vf-thumb-del {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kfz-vf-thumb-name {
    display: none;
}

/* Rückmeldung */
.kfz-vf-response {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.9em;
    font-weight: 500;
}

.kfz-vf-msg-success {
    background: #1a3a1a;
    border: 1px solid #23c415;
    color: #7de87d;
}

.kfz-vf-msg-error {
    background: #3a1a1a;
    border: 1px solid #e05252;
    color: #f5a0a0;
}

/* Untere Zeile: DSGVO links, Button rechts */
.kfz-vf-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.kfz-vf-dsgvo {
    flex: 1 1 280px;
}

/* Submit-Button (Pill-Form) */
#submit-verkauf-btn,
.kfz-vf-btn {
    background: #23c415;
    color: #fff;
    border: none;
    padding: 13px 32px;
    width: auto;
    min-width: 180px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

#submit-verkauf-btn:hover,
.kfz-vf-btn:hover {
    background: #1da012;
}

#submit-verkauf-btn:disabled,
.kfz-vf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive: Tablet → 2 Spalten */
@media (max-width: 900px) {
    .kfz-vf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Beim 2-Spalter: col-full bleibt voll, col-2 auch */
    .kfz-vf-col-full {
        grid-column: 1 / -1;
    }

    .kfz-vf-col-2 {
        grid-column: 1 / -1;
    }
}

/* Responsive: Mobil → 1 Spalte */
@media (max-width: 560px) {
    .kfz-vf-inner {
        padding: 20px 16px;
    }

    .kfz-vf-grid {
        grid-template-columns: 1fr;
    }

    .kfz-vf-col-full,
    .kfz-vf-col-2 {
        grid-column: 1 / -1;
    }

    .kfz-vf-row-2 {
        grid-template-columns: 1fr;
    }

    .kfz-vf-bottom-row {
        flex-direction: column;
        align-items: stretch;
    }

    #submit-verkauf-btn,
    .kfz-vf-btn {
        width: 100%;
        text-align: center;
    }
}
