/* Generiek Lijstje Component CSS */

/* Verberg H2's die buiten containers staan op de homepage */
.row > .col > h2 {
    display: none !important;
}

/* Extra veiligheid - verberg alle H2's voor lijstjes die buiten containers staan */
.col h2:not(.generiek-lijstje h2):not(.generiek-lijstje-container h2) {
    display: none !important;
}

.generiek-lijstje-titel-extern {
    display: none; /* Verberg externe titels - we willen ze binnen de containers */
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #336699;
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.generiek-lijstje-container {
    margin-bottom: 0px;
}

.generiek-lijstje-container h1,
.generiek-lijstje-container h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #336699;
    text-transform: lowercase;
    line-height: 1.3;
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.lijstje-titel {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 10px;
    color: #333;
    text-transform: lowercase;
    line-height: 1.2;
}

.lijstje-ondertitel {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin: 0;
    text-transform: none;
    display: inline;
}

.generiek-lijstje {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.generiek-lijstje:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Horizontale meting item layout (zoals info-blok rijen) */
.meting-item-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.meting-item-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.meting-item-main {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.meting-item-sub {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 2px;
    line-height: 1.1;
}

.meting-item-right {
    font-weight: 400;
    font-size: 16px;
    text-align: right;
    margin-left: 15px;
    flex-shrink: 0;
}

.meting-item-main .lijstje-link,
.meting-item-main .lijstje-adres {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 400;
}

.meting-item-main .lijstje-link:hover {
    color: #336699 !important;
    text-decoration: none !important;
}

.meting-item-right .lijstje-waarde {
    color: #336699;
    font-weight: 400;
}

/* Lijst styling */
.lijstje-items {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lijstje-counter;
}

/* Ordered list styling */
.generiek-lijstje ol.lijstje-items {
    counter-reset: lijstje-counter;
}

.generiek-lijstje ol.lijstje-items .lijstje-item {
    counter-increment: lijstje-counter;
    position: relative;
    padding-left: 50px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.generiek-lijstje ol.lijstje-items .lijstje-item::before {
    content: counter(lijstje-counter);
    position: absolute;
    left: 15px;
    top: 17px;
    font-weight: 600;
    color: white;
    font-size: 14px;
    line-height: 1;
    background: #336699;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Unordered list styling */
.generiek-lijstje ul.lijstje-items .lijstje-item {
    padding-left: 20px;
    position: relative;
}

.generiek-lijstje ul.lijstje-items .lijstje-item::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #336699;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.4;
}

/* Lijstje items */
.lijstje-item {
    padding: 12px 0;
    border-bottom: 1px dotted #ddd;
    line-height: 1.5;
    position: relative;
    transition: background-color 0.2s ease;
}

/* Hover effect voor hele regel (alleen als er een link is) */
.lijstje-item:has(.lijstje-link) {
    cursor: pointer;
    border-radius: 6px;
    margin: 0 -15px;
    padding: 15px 15px 15px 50px;
}

.lijstje-item:has(.lijstje-link):hover {
    background-color: rgba(51, 102, 153, 0.05);
}

/* Fallback voor browsers zonder :has() ondersteuning */
.lijstje-item.klikbaar {
    cursor: pointer;
    border-radius: 6px;
    margin: 0 -15px;
    padding: 15px 15px 15px 50px;
}

.lijstje-item.klikbaar:hover {
    background-color: rgba(51, 102, 153, 0.05);
}

.lijstje-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lijstje-item:first-child {
    padding-top: 0;
}

/* Item onderdelen */
.lijstje-waarde {
    color: #336699;
    font-weight: 700;
    font-size: 14px;
}

.lijstje-meta {
    color: #666;
    font-size: 12px;
    font-weight: 400;
    margin-right: 8px;
}

.lijstje-link {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    font-weight: 400;
    font-size: 14px;
}

.lijstje-adres {
    color: #333;
    font-weight: 400;
    font-size: 14px;
}

.lijstje-link:hover {
    color: #333 !important;
    text-decoration: none !important;
}

.lijstje-titel-item {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.lijstje-datum {
    color: #888;
    font-size: 12px;
}

.lijstje-index {
    font-weight: 600;
    color: #336699;
    margin-right: 8px;
}

.lijstje-footer {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Thema's */
.generiek-lijstje-blauw {
    background: #336699;
    color: white;
    border: 1px solid #2a5580;
}

.generiek-lijstje-blauw .lijstje-waarde {
    color: #fff;
}

.generiek-lijstje-blauw .lijstje-link {
    color: #b3d9ff;
}

.generiek-lijstje-blauw .lijstje-link:hover {
    color: #ffffff;
}

.generiek-lijstje-blauw .lijstje-adres {
    color: #e6f0ff;
}

.generiek-lijstje-blauw .lijstje-titel-item {
    color: #ccddee;
}

.generiek-lijstje-blauw .lijstje-datum {
    color: #b3c7dd;
}

.generiek-lijstje-blauw .lijstje-item {
    border-bottom-color: rgba(255,255,255,0.3);
}

.generiek-lijstje-blauw ol.lijstje-items .lijstje-item::before,
.generiek-lijstje-blauw ul.lijstje-items .lijstje-item::before,
.generiek-lijstje-blauw .lijstje-index {
    color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .generiek-lijstje {
        padding: 15px;
        margin: 0;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .generiek-lijstje:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .generiek-lijstje-container h1,
    .generiek-lijstje-container h2 {
        font-size: 16px;
    }
    
    .lijstje-titel {
        font-size: 20px;
    }
    
    .lijstje-ondertitel {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .lijstje-item {
        padding: 10px 0;
    }
    
    /* Hover gebieden kleiner maken op tablets */
    .lijstje-item:has(.lijstje-link),
    .lijstje-item.klikbaar {
        margin: 0 -10px;
        padding: 12px 10px 12px 40px;
    }
    
    .generiek-lijstje ol.lijstje-items .lijstje-item {
        padding-left: 50px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .generiek-lijstje ol.lijstje-items .lijstje-item::before {
        left: 15px;
        top: 12px;
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
    
    .lijstje-waarde {
        font-size: 14px;
    }
    
    .lijstje-link,
    .lijstje-adres {
        font-size: 14px;
    }
    
    .lijstje-datum {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .generiek-lijstje {
        padding: 12px;
        margin: 0;
        border-radius: 4px;
    }
    
    .generiek-lijstje-container h1,
    .generiek-lijstje-container h2 {
        font-size: 16px;
    }
    
    .lijstje-titel {
        font-size: 18px;
    }
    
    .lijstje-ondertitel {
        font-size: 13px;
    }
    
    .lijstje-item {
        padding: 8px 0;
    }
    
    /* Nog kleinere hover gebieden op mobiel */
    .lijstje-item:has(.lijstje-link),
    .lijstje-item.klikbaar {
        margin: 0 -8px;
        padding: 10px 8px 10px 35px;
        border-radius: 4px;
    }
    
    .generiek-lijstje ol.lijstje-items .lijstje-item {
        padding-left: 48px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .generiek-lijstje ol.lijstje-items .lijstje-item::before {
        left: 12px;
        top: 10px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .lijstje-waarde {
        font-size: 13px;
    }
    
    .lijstje-link,
    .lijstje-adres {
        font-size: 13px;
    }
    
    .lijstje-footer {
        font-size: 12px;
        margin-top: 10px;
    }
    
    .generiek-lijstje ul.lijstje-items .lijstje-item {
        padding-left: 15px;
    }
}

/* Print styling */
@media print {
    .generiek-lijstje {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .lijstje-link {
        color: #333 !important;
        text-decoration: none !important;
    }
    
    .lijstje-link:after {
        content: " (" attr(href) ")";
        font-size: 10px;
        color: #666;
    }
}