Quelltext des aktuellen Standes
<?php $this->layout('layouts/main', ['page_title' => 'Seite nicht gefunden', 'breadcrumbs' => [], 'full_width' => true]); ?>
<div class="error-fullwidth">
<div class="error-scene">
<div class="error-card">
<!-- Linke Spalte: Icon + Code -->
<div class="error-left">
<div class="error-icon-wrap error-icon-404">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"/>
<line x1="21" y1="21" x2="16.65" y2="16.65"/>
<line x1="8" y1="11" x2="14" y2="11"/>
</svg>
</div>
<div class="error-code">404</div>
</div>
<!-- Rechte Spalte: Text + Details + Aktionen -->
<div class="error-right">
<h1><?= $this->te('Seite nicht gefunden') ?></h1>
<p class="error-desc">
<?= $this->te('Die angeforderte Seite existiert nicht oder wurde verschoben.') ?>
</p>
<div class="error-detail">
<div class="detail-row">
<span class="detail-label"><?= $this->te('Angeforderte Seite') ?></span>
<span class="detail-value"><?= $this->e($_SERVER['REQUEST_URI'] ?? '/') ?></span>
</div>
<div class="detail-row">
<span class="detail-label"><?= $this->te('Status') ?></span>
<span class="detail-badge badge-notfound"><?= $this->te('Nicht gefunden') ?></span>
</div>
</div>
<p class="error-hint">
<?= $this->te('Prüfen Sie die URL oder nutzen Sie die Suche, um die gewünschte Seite zu finden.') ?>
</p>
<div class="error-actions">
<a href="/" class="btn-err btn-err-primary">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="18" height="18"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9,22 9,12 15,12 15,22"/></svg>
<?= $this->te('Startseite') ?>
</a>
<a href="/topics" class="btn-err btn-err-secondary">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="18" height="18"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>
<?= $this->te('Themengebiete') ?>
</a>
<a href="javascript:history.back()" class="btn-err btn-err-ghost">
<?= $this->te('← Zurück') ?>
</a>
</div>
</div>
</div>
</div>
</div>
<style>
.error-fullwidth {
padding: 2rem 1rem;
background: var(--slate-50);
display: flex;
justify-content: center;
}
.error-scene {
width: 100%;
max-width: 720px;
}
.error-card {
background: var(--color-bg);
border-radius: 1rem;
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 20px 40px -8px rgba(0,0,0,0.08);
padding: 2rem 2rem 2rem 2rem;
display: flex;
gap: 2rem;
align-items: flex-start;
}
/* Left column: icon + error code */
.error-left {
display: flex;
flex-direction: column;
align-items: center;
flex-shrink: 0;
min-width: 100px;
padding-top: 0.25rem;
}
/* Right column: everything else */
.error-right {
flex: 1;
min-width: 0;
}
.error-icon-wrap {
width: 64px;
height: 64px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.75rem;
}
.error-icon-wrap svg {
width: 30px;
height: 30px;
}
.error-icon-404 {
background: var(--amber-100);
color: var(--amber-600);
}
.error-code {
font-size: 2.75rem;
font-weight: 800;
letter-spacing: -0.04em;
background: linear-gradient(135deg, var(--amber-600), var(--amber-400));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1;
}
.error-right h1 {
font-size: 1.2rem;
font-weight: 700;
color: var(--gray-900);
margin: 0 0 0.5rem;
}
.error-desc {
font-size: 0.9rem;
color: var(--gray-500);
line-height: 1.5;
margin: 0 0 1rem;
}
.error-detail {
background: var(--gray-50);
border-radius: 0.625rem;
padding: 0.625rem 0.875rem;
margin-bottom: 1rem;
}
.detail-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.3rem 0;
}
.detail-row + .detail-row {
border-top: 1px solid var(--gray-100);
}
.detail-label {
font-size: 0.8rem;
color: var(--gray-500);
font-weight: 500;
flex-shrink: 0;
margin-right: 1rem;
}
.detail-value {
font-size: 0.8rem;
color: var(--gray-900);
font-weight: 500;
font-family: ui-monospace, 'SF Mono', monospace;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
text-align: right;
}
.detail-badge {
font-size: 0.7rem;
font-weight: 700;
padding: 0.15rem 0.5rem;
border-radius: 9999px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.badge-notfound {
background: var(--amber-100);
color: var(--amber-600);
}
.error-hint {
font-size: 0.82rem;
color: var(--gray-400);
margin: 0 0 1.25rem;
}
.error-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.btn-err {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 500;
border-radius: 0.5rem;
text-decoration: none;
transition: all 0.15s;
}
.btn-err:hover { text-decoration: none; }
.btn-err-primary { background: var(--blue-600); color: var(--color-on-accent); }
.btn-err-primary:hover { background: var(--blue-700); }
.btn-err-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-err-secondary:hover { background: var(--gray-200); }
.btn-err-ghost { background: transparent; color: var(--gray-500); }
.btn-err-ghost:hover { color: var(--gray-900); background: var(--gray-50); }
@media (max-width: 540px) {
.error-card {
flex-direction: column;
gap: 1rem;
padding: 1.5rem;
}
.error-left {
flex-direction: row;
min-width: 0;
gap: 1rem;
align-items: center;
}
.error-icon-wrap { margin-bottom: 0; }
.error-actions { flex-direction: column; }
.btn-err { justify-content: center; }
}
</style>