/* ==========================================================================
   Dunkleres / Kontrastreicheres Design für style.css
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body { 
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif; 
    line-height: 1.6; 
    color: #1e293b; /* Dunklerer, sehr gut lesbarer Text */
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 30px; 
    background-color: #e2e8f0; /* Abgedunkelter Seitenhintergrund statt zu hellem Weiß/Hellgrau */
}

/* ==========================================================================
   Header & Navigation (Einheitliches Dunkelblau)
   ========================================================================== */
.page-header {
    background-color: #0f172a; /* Tiefes Dunkelblau */
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-header h1 {
    color: #ffffff;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 10px;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.header-nav {
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
    padding: 0;
}

.header-nav a {
    color: #f8fafc;
    margin: 0 6px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.header-nav a.nav-active {
    color: #ef4444;
    font-weight: bold;
    border-bottom: 2px solid #ef4444;
    padding-bottom: 2px;
}

/* ==========================================================================
   Überschriften im Inhaltsbereich
   ========================================================================== */
h1 { 
    color: #0f172a; 
    border-bottom: 3px solid #2563eb; 
    padding-bottom: 10px; 
    font-size: 24px; 
    margin-top: 0;
}

h2 { 
    color: #0f172a; 
    font-size: 20px; 
    margin-top: 40px; 
    border-bottom: 2px solid #cbd5e1; 
    padding-bottom: 5px;
}

h3 { 
    color: #1d4ed8; 
    font-size: 18px; 
    margin-top: 25px; 
}

/* ==========================================================================
   Infoboxen & Mängel-Hervorhebungen
   ========================================================================== */
.purpose-box { 
    background: #ffffff; 
    border: 1px solid #93c5fd; 
    border-left: 8px solid #2563eb; 
    padding: 20px; 
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.mangel-box { 
    background: #ffffff; 
    border-left: 6px solid #dc2626; 
    padding: 15px; 
    margin: 20px 0; 
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); 
}

.norm-info { 
    background: #dbeafe; 
    border: 1px solid #60a5fa; 
    padding: 15px; 
    border-radius: 6px; 
    margin: 15px 0; 
}

.norm-title { 
    font-weight: bold; 
    color: #1e40af; 
    display: block; 
    margin-bottom: 5px; 
}

.norm-label { 
    font-weight: bold; 
    color: #b91c1c; 
    white-space: nowrap; 
}

.status { 
    color: #dc2626; 
    font-weight: bold; 
}

.highlight-text { 
    background-color: #fef08a; 
    padding: 2px 5px; 
    border-radius: 3px; 
}

/* ==========================================================================
   Tabellen
   ========================================================================== */
table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #ffffff; 
    margin: 20px 0; 
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

th, td { 
    border: 1px solid #cbd5e1; 
    padding: 15px; 
    text-align: left; 
    vertical-align: top; 
    font-size: 15px;
}

th { 
    background-color: #1e293b; 
    font-weight: bold; 
    color: #ffffff; 
}

tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* ==========================================================================
   Navigationskacheln der Hauptseite (index.html)
   ========================================================================== */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.nav-card {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.nav-card:hover,
.nav-card:focus {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-card .icon {
    font-size: 28px;
    margin-right: 18px;
    width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.nav-card .title {
    font-weight: 600;
    font-size: 1.05em;
}

/* ==========================================================================
   Bilder-Flow
   ========================================================================== */
.image-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 420px;
}

.image-flow img {
    width: calc(33.33% - 6px);
    height: 110px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    transition: transform 0.2s;
}

.image-flow img:hover { 
    transform: scale(1.1); 
    border-color: #2563eb; 
    z-index: 10;
    position: relative;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.footer, .footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #cbd5e1;
    text-align: center;
    font-size: 0.85em;
    color: #475569;
}

footer.footer a, .footer a {
    color: #1e293b;
    text-decoration: underline;
    font-weight: 600;
}

footer.footer a:hover, .footer a:hover {
    color: #2563eb;
}