/* AVM Knowledge Base - Modern Styling */

.avm-kb-controls-second {
    display: none;
}
.avm-kb-controls-first {
    width: 100%;
}
#avm-kb-product{
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
#avm-kb-search{
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.avm-kb-controls-third {
    display: none; /* bleibt versteckt, bis Produkt ausgewählt */
    width: 100%;
    gap: 6px;
    flex-wrap: wrap; /* bei kleinen Bildschirmen umbrechen */
}

#avm-kb-search {
    flex: 1; /* Suchfeld nimmt den restlichen Platz ein */
    min-width: 150px; /* Mindestbreite */
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

#avm-kb-search + button {
    flex: 0 0 auto; /* Buttons behalten ihre Größe */
}
#avm-kb-app {
    font-family: 'Inter', Arial, sans-serif;
    max-width: 980px;
    margin: 20px auto;
    color: #222;
}

.avm-kb-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.avm-kb-controls-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 240px;
}

.avm-kb-controls-first select,
.avm-kb-controls-first input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.avm-kb-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.avm-kb-switch-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    background: #f4f4f4;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.avm-kb-switch-label:hover {
    background: #e0e0e0;
}

.avm-kb-switch-label input {
    cursor: pointer;
    accent-color: #0073aa;
}

.avm-kb-controls-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avm-kb-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.avm-kb-btn:hover {
    background: #005f8d;
}

.avm-kb-reset {
    background: #e0e0e0;
    color: #222;
}

.avm-kb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
}

.avm-kb-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.avm-kb-list a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.avm-kb-list a:hover {
    text-decoration: underline;
}

#avm-kb-pagination {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#avm-kb-pagination button {
    margin: 2px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

#avm-kb-pagination button.active,
#avm-kb-pagination button:disabled {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.avm-kb-article h1 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.avm-kb-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.avm-kb-content {
    line-height: 1.6;
    margin-bottom: 20px;
}

.avm-kb-debug {
    margin-top: 20px;
    background: #fff8f0;
    border: 1px solid #f2c2c2;
    padding: 12px;
    font-size: 12px;
    overflow: auto;
    max-height: 320px;
}

/* Responsive */
@media(max-width:768px){
    .avm-kb-controls {
        flex-direction: column;
    }
    .avm-kb-controls-right {
        flex-direction: row;
        gap: 12px;
    }
    .avm-kb-controls-left {
        width: 100%;
    }
    #avm-kb-category-container {
        flex-wrap: wrap;
    }
}