* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }

/* Oben über gesamte Seitenbreite: Header & Logo mittig in Originalgröße */
.top-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.top-header-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.top-header img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.top-header h1 { color: #1e3a8a; font-size: 1.7rem; font-weight: 800; }

/* Hauptbereich darunter: 100% Seitenbreite */
.main-wrapper {
    width: 100%;
    margin: 20px 0;
    padding: 0 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Linkes Menü im Stil des MedienKatalogs */
.sidebar {
    width: 270px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
}
.xtc-header {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e3a8a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
    margin: 18px 0 8px 0;
}
.xtc-header:first-child { margin-top: 0; }
.xtc-tree { list-style: none; }
.xtc-tree li { margin-bottom: 3px; }
.xtc-tree li a {
    display: block;
    padding: 6px 10px;
    color: #334155;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.92rem;
    transition: all 0.15s;
}
.xtc-tree li a:hover { background: #f1f5f9; color: #1e3a8a; }
.xtc-tree li a.active {
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
    border-left: 3px solid #1e3a8a;
}

/* Rechter Content-Bereich (dehnt sich auf volle Restbreite aus) */
.content-area {
    flex-grow: 1;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    min-height: 500px;
}     
.content-area h2.page-title {
    color: #1e3a8a;
    font-size: 1.65rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.page-body p { margin-bottom: 14px; }
.page-body a { color: #1e3a8a; text-decoration: underline; font-weight: 600; }
.page-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.page-body table td, .page-body table th { border: 1px solid #cbd5e1; padding: 10px; text-align: left; }
.page-body table th { background: #f1f5f9; font-weight: 700; }

/* Kontaktformular */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; color: #334155; }
.form-control { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.95rem; font-family: inherit; }
.btn-primary { background: #1e3a8a; color: #fff; border: none; padding: 11px 22px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: #16a34a; }

/* Responsive für Mobilgeräte */
@media (max-width: 800px) {
    .main-wrapper { flex-direction: column; padding: 0 15px; }
    .sidebar { width: 100%; }
}

/* Schutz vor überbreiten kopierten Inhalten */
.content-area {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.page-body * {
    max-width: 100%;
    box-sizing: border-box;
}
.page-body h1, .page-body h2, .page-body h3 {
    color: #1e3a8a !important;
    margin-top: 25px;
    margin-bottom: 10px;
}
.page-body h1 { font-size: 1.45rem; }
.page-body h2 { font-size: 1.35rem; }
.page-body h3 { font-size: 1.25rem; }
.page-body hr {
    border: 0;
    border-top: 2px solid #1e3a8a;
    margin: 10px 0 18px 0;
}
/* Tabellen im blauen Theme-Design (Even / Odd Zebra-Look) */
.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}
.page-body table thead th {
    background-color: #1e3a8a;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 14px;
    text-align: left;
    border: 1px solid #1e3a8a;
}
.page-body table tbody td {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}
.page-body table tbody tr:nth-child(odd) {
    background-color: #eff6ff;
}
.page-body table tbody tr:nth-child(even) {
    background-color: #ffffff;
}
.page-body table tbody tr:hover {
    background-color: #dbeafe;
}