<?php
// /errors/500.php
?>
<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <title>500 – Cylone Database Error</title>
    <style>
        body { background:#111; color:#eee; font-family: monospace; padding:20px; }
        .err { border-left:5px solid #c00; padding:15px; background:#1e1e1e; }
        pre { white-space: pre-wrap; }
    </style>
</head>
<body>

<h1>500 – Database Error</h1>

<div class="err">
    <strong>Fehler:</strong>
    <pre><?= htmlspecialchars($dbError['message'] ?? 'Unbekannt') ?></pre>

    <strong>SQL:</strong>
    <pre><?= htmlspecialchars($dbError['query'] ?? '') ?></pre>

    <strong>Parameter:</strong>
    <pre><?= htmlspecialchars(print_r($dbError['params'] ?? [], true)) ?></pre>
</div>

</body>
</html>
