/* --- BASIS SETUP (Docs-Stil) --- */
:root {
    --bg-main: #f4f7f9;
    --container-bg: #ffffff;
    --text-main: #1f2328;
    --accent-blue: #2563eb;
    --border-color: #d0d7de;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; 
    line-height: 1.6; 
    color: var(--text-main); 
    background-color: var(--bg-main); 
    transition: background-color 0.3s;
    padding: 2rem 0;
}

.container { 
    background: var(--container-bg); 
    padding: 2.5rem; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
    max-width: 1000px;
    margin: 2rem auto;
}

/* --- HEADER & TYPO --- */
header { border-bottom: 4px solid var(--accent-blue); padding-bottom: 1.5rem; margin-bottom: 2.5rem; }

h1 { color: #1e3a8a; font-size: 2.5rem; margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; line-height: 1.1; }

.subtitle { color: #4b5563; font-size: 1.2rem; font-weight: 600; margin-top: 0.4rem; display: block; }

/* --- PLUGIN GRID (Deine Startseiten-Logik) --- */
.plugin-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 1.5rem; 
    margin-top: 2rem; 
}

.plugin-card { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 1.5rem; 
    transition: all 0.2s ease-in-out; 
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.plugin-card:hover { 
    transform: translateY(-4px); 
    border-color: var(--accent-blue); 
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.08); 
}

.plugin-card h3 { 
    margin: 0 0 0.75rem 0; 
    color: #1e40af; 
    font-size: 1.25rem; 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 6px; 
}

/* --- ACCESSIBILITY BUTTON --- */
#a11y-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    padding: 10px 15px;
    background: #ffc107;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- ACCESSIBILITY MODUS --- */
body.accessibility-mode {
    font-size: 1.4rem !important;
    background-color: #000 !important;
    color: #fff !important;
}

body.accessibility-mode .container {
    background-color: #000 !important;
    border: 3px solid #fff !important;
}

body.accessibility-mode h1, 
body.accessibility-mode h3,
body.accessibility-mode .subtitle {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.accessibility-mode .plugin-card {
    background-color: #1a1a1a !important;
    border: 3px solid #ffff00 !important;
    color: #fff !important;
}

body.accessibility-mode .plugin-card p {
    color: #fff !important;
}

/* --- CODE-BLÖCKE & INLINE CODE --- */

/* Der Block (Code-Eingerückt oder mit ```) */
pre, .sourceCode {
    background-color: #f6f8fa; /* Hellgrauer Hintergrund */
    border: 1px solid #d0d7de; /* Dezenter Rahmen */
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 85%;
    line-height: 1.45;
    margin-top: 0;
    margin-bottom: 16px;
}

/* Inline Code (mitten im Satz) */
code {
    background-color: rgba(175, 184, 193, 0.2); /* Ganz leichtes Grau */
    padding: 0.2em 0.4em;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 85%;
}

/* Spezialfall: Code innerhalb von Pre-Blöcken darf keinen eigenen Hintergrund haben */
pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* --- ANPASSUNG FÜR ACCESSIBILITY MODUS --- */
body.accessibility-mode pre, 
body.accessibility-mode .sourceCode {
    background-color: #000 !important;
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
}

body.accessibility-mode code {
    background-color: #333 !important;
    color: #ffff00 !important;
}