/* === AAWP PRODUKT-BOXEN: Breite begrenzen === */
.aawp,
.aawp .aawp-product,
.aawp .aawp-product--horizontal {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.aawp .aawp-product__content {
    overflow: hidden !important;
    word-wrap: break-word !important;
}
.aawp .aawp-product__title {
    white-space: normal !important;
    word-break: break-word !important;
}
/* === SECTION DIVIDER (HR) === */
.dk-section-hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 38, 38, 0.15) 15%, 
        #dc2626 50%, 
        rgba(220, 38, 38, 0.15) 85%, 
        transparent 100%);
    margin: 48px auto;
    max-width: 60%;
    position: relative;
}
.dk-section-hr::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white url('https://flagcdn.com/w40/dk.png') no-repeat center center;
    background-size: 24px auto;
    width: 40px;
    height: 24px;
    padding: 0;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
/* === INHALTSVERZEICHNIS === */
.dk-toc {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.95) 100%);
    border: 2px solid rgba(220, 38, 38, 0.15);
    border-radius: 20px;
    padding: 32px 36px;
    margin: 36px 0 20px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.dk-toc-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}
.dk-toc-title img {
    width: 24px !important;
    height: auto !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    margin: 0 !important;
}
.dk-toc ol {
    list-style: none !important;
    counter-reset: toc-counter;
    margin: 0 !important;
    padding: 0 !important;
}
.dk-toc ol li {
    counter-increment: toc-counter;
    margin: 0 !important;
    padding: 0 !important;
}
.dk-toc ol li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    margin: 3px 0;
    border-radius: 12px;
    text-decoration: none !important;
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: all 0.25s ease;
    line-height: 1.4;
}
.dk-toc ol li a::before {
    content: counter(toc-counter, decimal-leading-zero);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.dk-toc ol li a:hover {
    background: rgba(220, 38, 38, 0.06);
    color: #dc2626 !important;
    transform: translateX(4px);
}
html { scroll-behavior: smooth; }
h2[id] { scroll-margin-top: 100px; }
/* === INFO-BOXEN === */
.dk-info-box,
.dk-warning-box,
.dk-success-box,
.dk-tip-box {
    border-radius: 16px;
    padding: 24px 28px;
    margin: 28px 0;
    border-left: 5px solid;
    position: relative;
    line-height: 1.7;
}
.dk-info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
}
.dk-warning-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #dc2626;
}
.dk-success-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #16a34a;
}
.dk-tip-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
}
.dk-info-box .dk-box-title,
.dk-warning-box .dk-box-title,
.dk-success-box .dk-box-title,
.dk-tip-box .dk-box-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dk-info-box .dk-box-title { color: #1e40af !important; }
.dk-warning-box .dk-box-title { color: #991b1b !important; }
.dk-success-box .dk-box-title { color: #166534 !important; }
.dk-tip-box .dk-box-title { color: #92400e !important; }
.dk-info-box p,
.dk-warning-box p,
.dk-success-box p,
.dk-tip-box p {
    margin: 0 0 8px 0 !important;
    font-size: 1rem !important;
    color: #374151 !important;
}
.dk-info-box p:last-child,
.dk-warning-box p:last-child,
.dk-success-box p:last-child,
.dk-tip-box p:last-child {
    margin-bottom: 0 !important;
}
/* === TABELLE === */
.dk-table-wrapper {
    margin: 32px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.15);
}
.dk-table-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 20px 28px;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
}
.dk-table thead th {
    background: #1e293b;
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dk-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: top;
    line-height: 1.6;
}
.dk-table tbody tr:hover {
    background: rgba(220, 38, 38, 0.03);
}
.dk-table .dk-label {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
}
.dk-table .dk-tag {
    display: inline-block;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    margin: 2px;
}
.dk-table .dk-group-row td {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    padding: 12px 18px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.15);
}
/* === RESPONSIVE === */
@media (max-width: 768px) {
    .dk-section-hr { margin: 36px auto; max-width: 80%; }
    .dk-toc { padding: 24px 22px; margin: 28px 0 16px 0; }
    .dk-toc ol li a { padding: 9px 12px; font-size: 0.93rem !important; gap: 12px; }
    .dk-toc ol li a::before { width: 28px; height: 28px; font-size: 0.7rem; border-radius: 8px; }
    .dk-info-box, .dk-warning-box, .dk-success-box, .dk-tip-box { padding: 20px 22px; margin: 20px 0; }
    .dk-table-wrapper { margin: 24px -12px; border-radius: 16px; }
    .dk-table { font-size: 0.85rem; }
    .dk-table thead th, .dk-table tbody td { padding: 10px 12px; }
    .dk-table-header { padding: 16px 20px; font-size: 1.1rem; }
    .dk-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
