/* ==========================================================================
   STYLE2.CSS - Modernes UI-System für Verkehrswertermittlung24.de
   Schrittweise Modernisierung der Website (Qualitätsstandard, Vita, etc.)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Allgemeine Komponenten & Typografie
   -------------------------------------------------------------------------- */
.qs-intro-card,
.vita-intro-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 25px;
    line-height: 1.65;
    color: #333333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
}

.qs-intro-card p,
.vita-intro-card p {
    margin: 0 0 16px 0;
}

.qs-intro-card p:last-child,
.vita-intro-card p:last-child {
    margin-bottom: 0;
}

.qs-section-title,
.vita-section-title {
    font-size: 19px;
    font-weight: 700;
    color: #004883;
    margin: 22px 0 10px 0;
    letter-spacing: 0.5px;
    text-transform: none;
}

.qs-quote {
    background: #f8fafc;
    border-left: 4px solid #0061a6;
    padding: 14px 18px;
    margin: 14px 0 18px 0;
    font-style: italic;
    color: #475569;
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
}

.qs-source {
    display: inline-block;
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
    font-style: normal;
}

.qs-source a {
    color: #0061a6;
    text-decoration: underline;
    word-break: break-all;
}

.qs-source a:hover {
    color: #003366;
}

.qs-decree-box {
    background: #fbfbfb;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 18px 0;
}

.qs-decree-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 15px;
    display: block;
}

/* --------------------------------------------------------------------------
   2. Filter & Toolbar
   -------------------------------------------------------------------------- */
.qs-toolbar {
    background: #f4f6f8;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 30px 0 25px 0;
    border: 1px solid #e2e8f0;
}

.qs-toolbar-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.qs-toolbar-heading {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-transform: none;
}

.qs-badge-count {
    background: #0061a6;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.qs-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 400px;
}

.qs-search-input {
    width: 100%;
    padding: 8px 36px 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.qs-search-input:focus {
    border-color: #0061a6;
    box-shadow: 0 0 0 3px rgba(0, 97, 166, 0.15);
}

.qs-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    display: none;
}

.qs-search-clear:hover {
    color: #334155;
}

.qs-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qs-filter-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.qs-filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.qs-filter-btn.active {
    background: #0061a6;
    color: #ffffff;
    border-color: #0061a6;
}

/* --------------------------------------------------------------------------
   3. Zertifikate Cards & Grid
   -------------------------------------------------------------------------- */
.qs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    padding: 5px 0 20px 0;
}

.qs-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

.qs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.qs-card-thumb {
    position: relative;
    background: #f8fafc;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

.qs-card-thumb a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.qs-card-thumb img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.qs-card:hover .qs-card-thumb img {
    transform: scale(1.05);
}

.qs-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 97, 166, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.qs-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    text-align: center;
}

.qs-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
}

.qs-card-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    font-style: italic;
}

.qs-card-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #0061a6;
    font-weight: 500;
}

.qs-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 15px;
    display: none;
}

/* --------------------------------------------------------------------------
   4. Vita: Profil-Layout & Zeitleiste (Timeline)
   -------------------------------------------------------------------------- */
.vita-profile-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 35px;
}

.vita-author-box {
    flex: 0 0 280px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.vita-author-img {
    width: 220px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto 16px auto;
}

.vita-author-name {
    font-size: 18px;
    font-weight: 700;
    color: #004883;
    margin: 0 0 4px 0;
    text-transform: none;
}

.vita-author-title {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 14px;
}

.vita-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.vita-badge-item {
    background: #f1f5f9;
    color: #1e293b;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: left;
    border-left: 3px solid #0061a6;
}

.vita-timeline-container {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.vita-timeline-heading {
    font-size: 20px;
    font-weight: 700;
    color: #004883;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    text-transform: none;
}

.vita-timeline {
    position: relative;
    padding-left: 28px;
    margin: 0;
    list-style: none;
}

.vita-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 8px;
    width: 2px;
    background: #e2e8f0;
}

.vita-timeline-item {
    position: relative;
    margin-bottom: 16px;
    line-height: 1.5;
}

.vita-timeline-item:last-child {
    margin-bottom: 0;
}

.vita-timeline-marker {
    position: absolute;
    left: -28px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0061a6;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #0061a6;
}

.vita-timeline-year {
    display: inline-block;
    background: #004883;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    letter-spacing: 0.5px;
    min-width: 42px;
    text-align: center;
}

.vita-timeline-text {
    font-size: 14px;
    color: #334155;
    display: inline;
}

/* --------------------------------------------------------------------------
   5. Responsive Anpassungen
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .vita-profile-layout {
        flex-direction: column;
    }
    .vita-author-box {
        flex: 1 1 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .vita-timeline-container {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .qs-toolbar-top {
        flex-direction: column;
        align-items: stretch;
    }
    .qs-search-wrapper {
        max-width: 100%;
    }
    .qs-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
    .qs-card-thumb {
        height: 150px;
    }
    .vita-intro-card,
    .vita-timeline-container {
        padding: 18px 16px;
    }
    .vita-timeline {
        padding-left: 22px;
    }
    .vita-timeline::before {
        left: 5px;
    }
    .vita-timeline-marker {
        left: -22px;
    }
}
