/* Knowledge base pages (Wissen) */

.wissen-main {
    flex: 1;
    padding: 2rem;
    background: #f5f5f5;
    min-height: calc(100vh - 140px);
}

.wissen-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.wissen-content h1 {
    color: #2c3e50;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.wissen-content h2 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.wissen-content h3 {
    color: #2c3e50;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.wissen-content p,
.wissen-content li {
    line-height: 1.7;
    color: #555;
}

.wissen-content p {
    margin-bottom: 0.9rem;
}

.wissen-content ul,
.wissen-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.wissen-content a {
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
}

.wissen-content a:hover {
    text-decoration: underline;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.9rem;
}

.breadcrumb a {
    font-weight: 600;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.25rem 0 1.25rem 0;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    font-size: 0.85rem;
    color: #555;
}

.wissen-search {
    margin: 1rem 0 1.25rem 0;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.wissen-search input[type="search"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.wissen-search input[type="search"]:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.12);
}

.wissen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 0.5rem 0 1.25rem 0;
}

.wissen-card {
    display: block;
    padding: 1rem 1rem 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.wissen-card:hover {
    transform: translateY(-1px);
    border-color: rgba(44, 62, 80, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.wissen-card h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.05rem;
}

.wissen-card p {
    margin: 0 0 0.75rem 0;
    color: #666;
    font-size: 0.95rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid #eee;
    background: #f7f7f7;
    color: #555;
}

.toc {
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    padding: 1rem;
    margin: 1.25rem 0;
}

.toc h2 {
    margin-top: 0;
    font-size: 1rem;
}

.toc ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: 0;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.25rem 0.75rem;
}

.toc a {
    display: inline-block;
    padding: 0.35rem 0;
}

.callout {
    border-left: 4px solid #2c3e50;
    background: #f3f6fa;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.callout strong {
    color: #2c3e50;
}

.codebox {
    background: #0b1320;
    color: #e8eefc;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.deflist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.defitem {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    background: #fff;
}

.defitem dt {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.defitem dd {
    margin-left: 0;
    color: #555;
    line-height: 1.7;
}

.wissen-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.wissen-table th,
.wissen-table td {
    border: 1px solid #eee;
    padding: 0.65rem 0.75rem;
    vertical-align: top;
}

.wissen-table th {
    background: #f7f7f7;
    color: #2c3e50;
    font-weight: 700;
}

.muted {
    color: #777;
    font-size: 0.92rem;
}

details.wissen-details,
details.wissen-faq {
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    padding: 0.9rem 1rem;
    margin: 1rem 0;
}

details.wissen-details[open],
details.wissen-faq[open] {
    background: #fff;
}

details.wissen-details summary,
details.wissen-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: #2c3e50;
    list-style: none;
}

details.wissen-details summary::-webkit-details-marker,
details.wissen-faq summary::-webkit-details-marker {
    display: none;
}

details.wissen-details summary::before,
details.wissen-faq summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 0.5rem;
    color: #2c3e50;
    transform: translateY(-1px);
}

details.wissen-details[open] summary::before,
details.wissen-faq[open] summary::before {
    content: "▾";
}

details.wissen-details > *:last-child,
details.wissen-faq > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .wissen-main {
        padding: 1rem;
    }
    .wissen-content {
        padding: 1.25rem;
    }
    .toc ul {
        grid-template-columns: 1fr;
    }
}
