/* Globale Reset-Regel & Grundlegende Variablen */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
   --bg: #FDF0EC;
   --text: #333333;
   --card: #ffffff;
   --border: #dee2e6;
   --text-muted: #5a5a5a;
   --accent: #0F3A57;
   --headings: #333;
}

/* Dark-Mode-Variablen */
body.dark-mode {
   --bg: #222222;
   --text: #e0e0e0;
   --card: #333333;
   --border: #555555;
   --text-muted: #adb5bd;
   --accent: #82aaff; /* Ein helleres Blau für besseren Kontrast im Dark Mode */
   --headings: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout-Struktur für Sticky Footer */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.not-found-main {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

/* Header & Footer */
.not-found-header, .not-found-footer {
    background-color: var(--card);
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    border-color: var(--border);
    color: var(--text);
}
.not-found-header { border-bottom: 1px solid var(--border); }
.not-found-footer { border-top: 1px solid var(--border); }
.not-found-header a { font-weight: bold; color: var(--accent); text-decoration: none; }

        .footer-content {
            display: flex;
            justify-content: space-between;
            width: 100%;
            align-items: center;
            padding: 0 1rem;
            /* Added padding */
        }

        body.dark-mode .notfound-footer {
            background-color: #444;
            border-top: 1px solid #555;
            color: #fff;
        }

              .notfound-link,
        .notfound-link1 {
            color: #0056b3 !important;
            /* dunkleres Blau für besseren Kontrast */
        }

        body.dark-mode .notfound-link,
        body.dark-mode .notfound-link1 {
            color: #ffffff !important;
            /* weißer Text für besseren Kontrast */
        }

/* 404 Text-Stile */
.not-found-text-404 {
    font-size: clamp(100px, 25vw, 252px);
    margin: -20px 0;
    letter-spacing: -1vw;
    animation: float 3s ease-in-out infinite;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.not-found-content h2, .not-found-content h3 {
    color: var(--text-muted);
    font-size: clamp(1rem, 3vw, 1.5rem);
}
.not-found-content h3 { margin-bottom: 2rem; }
.not-found-content h2 { margin-top: 2rem; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Dark Mode Toggle Stile */
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(26px); }
.dark-mode-lable { position: absolute; top: 50%; right: 100%; margin-right: 10px; transform: translateY(-50%); pointer-events: none; white-space: nowrap; }

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        justify-content: center; /* Zentriert die Elemente im vertikalen Layout */
        gap: 0.75rem; /* Reduziert den Abstand für mobile Ansicht */
    }
}