/* ============================================================
   DETAIL – LAYOUT ONLY (Theme-konform)
============================================================ */

/* ------------------------------------------------------------
   GLOBAL / RESET
------------------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ------------------------------------------------------------
   DETAIL HEADER
------------------------------------------------------------ */
.detail-header {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--zf-border);
    flex-wrap: wrap;
}

.logo-box img {
    width: 120px;
    height: 90px;
    object-fit: contain;
    padding: .3rem;
}

/* Status Punkt (Farbe kommt aus Theme / Inline / Klasse) */
.status-circle {
    width: 10px;
    height: 10px;
    display: inline-block;
}
.info-list.columns-2 {
    columns: 2;
    column-gap: 24px;
}
.klassifikation {
    color: #ac9d6e;
    font-size: 1.1rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.status-ok {
    color: #abb828;;
}
.status-ok.status-circle {
    background: #abb828;;
}
.status-no {
    color: rgb(220 53 69) !important;
}

.status-warn {
    color: #5ba306;
}
.status-warn.status-circle {
    background: #5ba306;
}
.info {
    font-style: italic;
}
.info-one {
    font-weight: 500;
}
.btn-anfrage {
    background: var(--zf-gradient-success);
    border: none;
    color: #ffff !important;
    font-weight: 600;
}

.btn-anfrage:hover {
    filter: brightness(0.95);
}

/* ============================================================
   PREMIUM DETAIL TABS
============================================================ */
.detail-tabs-wrapper {
    background: #fff;                 /* wirklich weiß */
    padding: 0;                       /* kein grauer Rand */
    box-shadow: none;                 /* Schatten weg */
    margin-bottom: 0.4rem;
}

.detail-tabs {
    background: #fff;
    padding: 6px;
    gap: 6px;
}

.detail-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn,
.accordion-button {
    flex: 1 0 auto;
    border: none;
    padding: 0.65rem 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.80rem;
    font-weight: 500;
    color: var(--zf-tab-text);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   DETAIL TABS
------------------------------------------------------------ */

/* Tab Content */
.tab-content {
    display: none;
    padding-top: 1rem;
}

.tab-content.active {
    display: block;
}

/* ------------------------------------------------------------
   INFO BEREICHE
------------------------------------------------------------ */
.info-title {
    font-size: 1.3rem;
    margin-bottom: .4rem;
}

.info-subtitle {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: .3rem;
}
.text-success {
    --bs-text-opacity: 1;
    color: rgb(83 134 23) !important;
}
.info-section {
    background-color: white;
    padding: 1rem;
}
/* ------------------------------------------------------------
   LAGE – CHIPS (layout only)
------------------------------------------------------------ */
.lage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lage-chip-wrap {
    display: inline-block;
}

.lage-chip {
    display: inline-block;
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 5px;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    background-color: #c8c4c4;
}

/* ------------------------------------------------------------
   MAP
------------------------------------------------------------ */
#mapDetail {
    overflow: hidden;
    border-radius: 0px !important;
}

/* ------------------------------------------------------------
   MOBILE – ACCORDION
------------------------------------------------------------ */
@media (max-width: 768px) {

    .accordion-item {
        border: 1px solid var(--zf-border);
        margin-bottom: 12px;
        overflow: hidden;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
        box-shadow: none;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .info-subtitle {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: .4rem;
    }

    .info-list {
        list-style: none;
        padding-left: 0;
        margin-bottom: .6rem;
    }

    .info-list li {
        margin-bottom: 4px;
    }

    .lage-inline-mobile {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* ------------------------------------------------------------
   MOBILE – LAYOUT FIXES
------------------------------------------------------------ */
@media (max-width: 768px) {

    .info-section,
    .accordion {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ------------------------------------------------------------
   KALENDER – TOUCH FIX
------------------------------------------------------------ */
.calendar-container,
#calendar,
.calendar,
.calendar-wrapper {
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.calendar-scroll,
.calendar-grid {
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

/* Kein horizontales Scrollen */
html, body {
    overflow-x: hidden;
}

/* ------------------------------------------------------------
   ANFRAGE MODAL – MOBILE
------------------------------------------------------------ */
#anfrageModal .modal-dialog {
    margin: 0.75rem;
}

#anfrageModal .modal-content {
    overflow: hidden;
}

#anfrageModal .modal-header {
    padding: 1.25rem 1.25rem 0.75rem;
}

#anfrageModal .modal-title {
    font-size: 1.15rem;
    font-weight: 600;
}

#anfrageModal .modal-footer {
    padding: 1rem 1.25rem 1.25rem;
}

#anfrageModal .form-control {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
}

#anfrageModal textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

#anfrageDatum {
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

#anfrageModal .form-check {
    font-size: 0.85rem;
}

#anfrageModal .form-check-input {
    margin-top: 0.2rem;
}

/* Bootstrap Modal Begrenzung */
.modal {
    overflow-x: hidden;
}

.modal-dialog {
    max-width: 100%;
    margin: 0.75rem auto;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}
/* =========================================================
   SIDEBAR – FLAT CARDS
========================================================= */

.sidebar .flat-card {
    background: #f5f5f5;     /* wie bg-light, aber ruhiger */
    padding: 1.25rem;
    margin-bottom: 1.5rem;

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
