/* Impressum und Datenschutz: gleicher Aufbau wie die Startseite (Header, Überschrift, Footer), ohne externe Ressourcen. */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-roman.var.woff2') format('woff2-variations'), url('../fonts/Inter-roman.var.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --brand-blue: #33a7ff;
    --shell-text: #ffffff;
    --shell-muted: #e2e8f0;
    --shell-glow: rgba(255, 255, 255, 0.42);
    --text: #cbd5e1;
    --text-muted: #94a3b8;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000000;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--brand-blue); color: #ffffff; }

a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---------- Header wie auf der Startseite ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #000000;
    color: var(--shell-text);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.58), 0 20px 48px rgba(0, 0, 0, 0.4);
}

.site-header__bar {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    display: inline-block;
    color: var(--shell-text);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    transform-origin: left center;
    transition: text-shadow 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-brand:hover,
.site-brand:focus-visible {
    transform: scale(1.018);
    text-shadow: 0 0 22px var(--shell-glow);
}

.site-nav {
    display: none;
    align-items: center;
    gap: 2rem;
    font-size: 1rem;
}

.top-nav-link {
    display: inline-block;
    color: var(--shell-muted);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.3s ease;
}

.top-nav-link:hover,
.top-nav-link:focus-visible {
    color: var(--shell-text);
    transform: translateY(-1px);
    text-shadow: -0.35px 0 currentColor, 0.35px 0 currentColor, 0 0 12px var(--shell-glow);
}

.mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--shell-text);
    cursor: pointer;
}

.mobile-menu-button svg { width: 1.5rem; height: 1.5rem; }
.mobile-menu-button .icon-close { display: none; }
.mobile-menu-button[aria-expanded="true"] .icon-open { display: none; }
.mobile-menu-button[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: #000000;
}

.mobile-menu-panel[hidden] { display: none; }

/* ---------- Inhalt ---------- */
main {
    flex: 1;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 8rem 1rem 6rem;
}

.legal-heading {
    margin: 0 0 1.5rem;
    color: #ffffff;
    text-align: left;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: normal;
    overflow-wrap: break-word;
    hyphens: manual;
}

.legal-card {
    max-width: 48rem;
    font-size: 1rem;
    line-height: 1.65;
}

.legal-card > :first-child { margin-top: 0; }
.legal-card > :last-child { margin-bottom: 0; }

.legal-card h2 {
    margin: 2rem 0 0.5rem;
    color: #ffffff;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
}

.legal-card p,
.legal-card ul,
.legal-card address { margin: 0 0 1rem; }

.legal-card ul { padding-left: 1.25rem; }
.legal-card address { font-style: normal; }
.legal-card strong { color: #ffffff; }

.legal-card a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.58);
    text-underline-offset: 0.2em;
}

.legal-card a:hover { text-decoration-color: #ffffff; }

.legal-meta { color: var(--text-muted); }

/* ---------- Footer wie auf der Startseite ---------- */
.site-footer {
    padding: 2rem 0;
    background: #000000;
    color: var(--shell-text);
    box-shadow: 0 -5px 14px rgba(0, 0, 0, 0.58), 0 -20px 48px rgba(0, 0, 0, 0.4);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
}

.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.5rem; }

.footer-legal-link {
    display: inline-block;
    color: var(--shell-text);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.3s ease;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible,
.footer-legal-link[aria-current="page"] {
    text-shadow: 0 0 12px var(--shell-glow);
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible { transform: scale(1.018); }

.footer-legal-link[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    border-radius: 2px;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
    main { padding-left: 1.5rem; padding-right: 1.5rem; }
    .site-footer__inner { flex-direction: row; }
}

@media (min-width: 768px) {
    .site-nav { display: flex; }
    .mobile-menu-button,
    .mobile-menu-panel { display: none !important; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
    main { padding-left: 2rem; padding-right: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .top-nav-link:hover, .site-brand:hover, .footer-legal-link:hover { transform: none; }
}

/* Nur für Screenreader sichtbar (z. B. „öffnet in neuem Tab“) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 404-Seite: Buttons im Stil der Startseite („Arbeiten entdecken“ / „Kontakt“) */
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem !important;
}

.error-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #ffffff;
    color: #000000 !important;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(255, 255, 255, 0.12);
    transition: color 0.24s ease, background-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.error-button:hover,
.error-button:focus-visible {
    background: #000000;
    color: #ffffff !important;
    transform: scale(1.025);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
}

.error-button--secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff !important;
    box-shadow: none;
}

.error-button--secondary:hover,
.error-button--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.015);
}
