/*
 * shared.css — Gemeinsame Stile fuer alle checkr App-Seiten
 * Eingebunden via: <link rel="stylesheet" href="/static/shared.css">
 */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ── */
:root {
  --red: #991b1b; --red-dark: #7f1d1d; --red-mid: #b91c1c;
  --red-light: #fee2e2; --red-xlight: #fff5f5;
  --ink: #111827; --ink-2: #374151; --ink-3: #6b7280; --ink-4: #9ca3af;
  --line: #e5e7eb; --bg: #ffffff; --bg-tint: #f9fafb;
  --radius: 12px; --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --font: 'Nunito', system-ui, sans-serif;
  --green: #16a34a; --green-light: #dcfce7;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-tint); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh; }

/* ── Header / Nav ── */
header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1060px; margin: 0 auto; padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; position: relative; }

/* ── Hamburger ── */
.hamburger-btn { background: none; border: none; cursor: pointer; padding: 6px; display: flex; flex-direction: column; gap: 5px; border-radius: 8px; transition: background .15s; }
.hamburger-btn:hover { background: var(--red-xlight); }
.hamburger-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.hamburger-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12); min-width: 220px; z-index: 200; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .15s, transform .15s; }
.hamburger-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hmenu-item { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 0.88rem; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; transition: background .12s; }
.hmenu-item:hover { background: var(--red-xlight); color: var(--red); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.45rem 1.1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 700; cursor: pointer; border: none; font-family: var(--font); text-decoration: none; transition: opacity 0.15s; }
.btn:hover { opacity: 0.82; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }

/* ── Error Banner ── */
.error-banner { display: none; background: #fef2f2; border: 1.5px solid #fca5a5; border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 1.25rem; font-size: 0.875rem; font-weight: 700; color: #991b1b; align-items: center; justify-content: space-between; gap: 1rem; }
.error-banner.visible { display: flex; }
.error-banner button { background: none; border: none; cursor: pointer; color: #991b1b; font-size: 1.1rem; padding: 0; line-height: 1; flex-shrink: 0; }

/* ── Skip Link (WCAG 2.4.1) ── */
.skip-link { position: absolute; top: -100%; left: 8px; padding: 6px 12px; background: #fff; color: #111; font-weight: 700; border: 2px solid #111; border-radius: 4px; font-size: 0.9rem; z-index: 9999; text-decoration: none; }
.skip-link:focus { top: 8px; }
