/* ============================================================
   Dülle Creative . Error-Seiten (neues Design)
   ============================================================ */

:root {
  --ink: #0d0d0f;
  --muted: #6b7280;
  --accent: #2563eb;
  --card: #ffffff;
  --border: #e7e3df;
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(158deg, #fbf9f7 0%, #f3f6fb 58%, #e9f0fb 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---- Karte ---- */
.err {
  width: 100%;
  max-width: 500px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(20, 30, 50, 0.28),
    0 4px 14px -6px rgba(20, 30, 50, 0.12);
  padding: 40px 36px 34px;
  text-align: center;
}

.err__brand {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}

.err__brand span {
  font-weight: 400;
  color: #9aa0a8;
}

/* ---- Lottie-Animation (Loader cat) ---- */
.err__anim {
  width: 180px;
  height: 128px;
  margin: 0 auto 6px;
}

.err__anim svg {
  display: block;
}

/* ---- Code + Text ---- */
.err__code {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(4rem, 15vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}

.err__title {
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}

.err__text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 384px;
  margin: 0 auto 26px;
}

/* ---- Buttons ---- */
.err__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: #26262b;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: #b9b3ac;
}

/* ---- Footer ---- */
.err__footer {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
}

.err__footer a {
  color: var(--accent);
  font-weight: 500;
}

.err__footer a:hover {
  text-decoration: underline;
}

@media (max-width: 460px) {
  .err {
    padding: 32px 22px 28px;
  }
  .err__actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}

