/* Search Bar */
.suche-search-container 
{ 
    max-width: 490px;
    width: 100%;
    margin: 10px auto; 
}
.suche-search-wrapper 
{ 
    position: relative; 
}
.suche-search-input {
    width: 100%;
    padding: 8px 20px 8px 20px!important;
    font-size: 18px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0px 3px 6px #00000029!important;
    border-radius: 12px!important;
}

.suche-search-input:focus {
    border-color: #00CD50;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.suche-search-icon {
    position: absolute;
    right: 18px;
    top: 60%;
    transform: translateY(-50%);
    color: #376EE1;
    cursor: pointer;
}
.suche-search-icon svg 
{ 
    width: 20px; 
    height: 20px; 
}
.suche-search-input::-webkit-search-cancel-button 
{ 
    display: none; 
}

/* Know-How Hub - Fixed Container */
.knowhow-hub {
    max-width: 1250px;           /* Restore proper max-width */
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: montserrat, sans-serif;
}

/* List Container - Contained and Centered */
.knowhow-list-container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;

    box-sizing: border-box;
}

/* Header */
.knowhow-search-header 
{ 
    margin-bottom: 40px; 
    text-align: start;
}
.knowhow-search-header h2 
{ 
    font-size: 24px; 
    color: #004664;
    margin: 0; 
    font-weight: bold; 
}
.knowhow-search-query 
{ 
    font-weight: bold; 
    color: #004664
}

/* Filters */
.knowhow-filters {
    display: flex;
    gap: 30px; 
    flex-wrap: wrap; 
    margin-bottom: 40px; 
    justify-content: start; /* Better centering */
}

/* Filter Groups */
.knowhow-filter-group { 
    width: 240px;
    flex-shrink: 0;
}
.knowhow-filter-wrap { 
    position: relative; 
}
.knowhow-filter-select {
    width: 100%;
    padding: 12px 40px 12px 16px; 
    border-radius: 12px; 
    border: 1px solid #e5e7eb;
    background: #fff; 
    font-size: 14px; 
    font-weight: 500; 
    cursor: pointer; 
    appearance: none;
    box-shadow: 0px 3px 6px #00000029;
}
.knowhow-filter-select:focus { 
    border-color: #00CD50; 
}
.knowhow-filter-wrap::after {
    content: ""; 
    position: absolute; 
    top: 50%; 
    right: 16px; 
    width: 10px; 
    height: 10px;
    border-right: 2px solid #376EE1;
    border-bottom: 2px solid #376EE1;
    transform: translateY(-60%) rotate(45deg); 
    pointer-events: none;
}

/* List Items - Prevent Overflow & Break Layout */
.knowhow-item {
    padding: 30px 0;
    border-bottom: 3px solid #e7e7e7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
.knowhow-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.knowhow-label {
    font-size: 20px; 
    font-weight: bold; 
}
.knowhow-title {
    font-size: 20px;
    margin: 10px 0;
    line-height: 1.4;
    word-break: break-word;
}
.knowhow-title a {
    color: #004664; 
    text-decoration: none;
}
.knowhow-title a:hover {
    color: #0066cc;
}
.knowhow-excerpt { 
    color: #004664; 
    font-size: 20px; 
    line-height: 1.6; 
    word-break: break-word;
}

/* Pagination */
.knowhow-pagination { 
    text-align: center;
    margin: 50px 0; 
}
.knowhow-pagination .page-numbers {
    display: inline-block; 
    width: 40px; 
    height: 40px; 
    line-height: 38px; 
    margin: 0 5px;
    border: 1px solid #00CD50;
    border-radius: 50%;
    color: #333; 
    text-decoration: none;
}
.knowhow-pagination .current { 
    background: #00CD50; 
    color: #fff; 
    border-color: #00CD50; 
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Large Screens (>1200px) - Optimal Width */
@media screen and (min-width: 1201px) {
    .knowhow-hub,
    .knowhow-list-container {
        max-width: 1250px;
        
    }
    .knowhow-item {
        padding: 35px 0;
    }
}

/* 1200px and below */
@media screen and (max-width: 1200px) {
    .knowhow-hub,
    .knowhow-list-container {
        max-width: 1000px;
        
    }
    .knowhow-filters {
        gap: 25px;
    }
}

/* Tablet Landscape */
@media screen and (max-width: 1024px) {
    .knowhow-hub,
    .knowhow-list-container {
        padding: 0 20px;
    }
    .suche-search-container {
        max-width: 550px;
    }
    .knowhow-filter-group {
        width: 220px;
    }
}

/* Tablet Portrait */
@media screen and (max-width: 768px) {
    .knowhow-search-header h2 {
        font-size: 22px;
    }
    .suche-search-input {
        font-size: 16px;
        padding: 14px 18px 14px 45px;
    }
    .knowhow-filters {
        gap: 20px;
        justify-content: center;
    }
    .knowhow-filter-group {
        width: 200px;
        min-width: 200px;
        flex: 1;
    }
    .knowhow-filter-select {
        font-size: 16px;
        padding: 13px 45px 13px 16px;
    }
    .knowhow-title {
        font-size: 17px;
    }
}

/* Mobile Landscape */
@media screen and (max-width: 600px) {
    .suche-search-container {
        max-width: 100%;
        margin: 15px 0;
    }
    .suche-search-input {
        padding: 13px 55px 13px 16px;
        font-size: 16px;
    }
    .knowhow-search-header h2 {
        font-size: 20px;
    }
    .knowhow-filters {
        flex-direction: column;
        gap: 15px;
    }
    .knowhow-filter-group {
        width: 100%;
    }
    .knowhow-item {
        padding: 25px 0;
    }
    .knowhow-pagination .page-numbers {
        width: 38px;
        height: 38px;
        line-height: 36px;
        margin: 0 3px;
    }
}

/* Mobile Portrait */
@media screen and (max-width: 480px) {
    .suche-search-input {
        padding: 12px 50px 12px 14px;
        font-size: 15px;
        border-radius: 40px;
    }
    .suche-search-icon {
        right: 15px;
    }
    .suche-search-icon svg {
        width: 18px;
        height: 18px;
    }
    .knowhow-search-header h2 {
        font-size: 18px;
    }
    .knowhow-label {
        font-size: 14px;
    }
    .knowhow-title {
        font-size: 16px;
    }
    .knowhow-excerpt {
        font-size: 14px;
    }
}

/* Extra Small */
@media screen and (max-width: 320px) {
    .suche-search-input {
        padding: 11px 45px 11px 12px;
        font-size: 14px;
    }
    .knowhow-search-header h2 {
        font-size: 17px;
    }
}