:root {
  --ink: #f3f0e8;
  --muted: #bdb6a8;
  --line: rgba(255, 255, 255, 0.13);
  --brand: #c89a43;
  --brand-dark: #f2c66d;
  --warm: #d8a34d;
  --paper: #0d0d0c;
  --white: #ffffff;
  --danger: #b42318;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(216, 163, 77, 0.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(120, 120, 120, 0.18), transparent 32%),
    linear-gradient(rgba(10, 10, 10, 0.9), rgba(17, 17, 16, 0.94)),
    #0d0d0c;
  line-height: 1.55;
  -webkit-user-select: none;
  user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url("nrw-outline.svg") center 20vh / auto 138vh no-repeat;
  opacity: 0.24;
  pointer-events: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 8, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo {
  position: relative;
  display: block;
  width: clamp(164px, 20vw, 238px);
  height: clamp(54px, 6.4vw, 76px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo::after {
  content: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0.96;
  mix-blend-mode: screen;
  filter: saturate(1.04) contrast(1.06) brightness(1.04) drop-shadow(0 10px 24px rgba(216, 163, 77, 0.16));
}

.links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.links a,
.login-trigger {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: #c6cedd;
  cursor: pointer;
}

.links a:hover,
.login-trigger:hover {
  background: rgba(242, 184, 75, 0.13);
  color: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.96) 0%, rgba(13, 13, 12, 0.86) 62%, rgba(10, 10, 10, 0.97) 100%),
    radial-gradient(circle at 76% 28%, rgba(216, 163, 77, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(216, 163, 77, 0.14), rgba(82, 82, 82, 0.22));
}

.hero-inner,
.section-inner {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #ddd7cc;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.notice {
  max-width: 610px;
  margin: 18px 0 0;
  border-left: 4px solid var(--warm);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7d0c4;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #b88734, #f0c56d);
  color: #11100e;
  box-shadow: 0 14px 30px rgba(216, 163, 77, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d6a34d, #f5d58d);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 46px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

section {
  padding: 78px 0;
}

.section-title {
  max-width: 720px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.section-title p {
  margin: 14px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(22, 21, 19, 0.92);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(242, 184, 75, 0.2);
  color: #8a5b00;
  font-size: 1.25rem;
  font-weight: 900;
}

.card h3 {
  margin: 20px 0 10px;
  font-size: 1.18rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.process {
  background: rgba(8, 8, 7, 0.72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  border-left: 3px solid var(--brand);
  padding: 0 0 0 18px;
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-weight: 900;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.contact-box,
.form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: rgba(22, 21, 19, 0.92);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

label {
  color: #eadfca;
  font-weight: 700;
  font-size: 0.93rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 33, 61, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #14213d;
  user-select: text;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(8, 8, 7, 0.86);
}

.legal {
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.72);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.legal h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

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

.legal-note {
  border-left: 4px solid var(--brand);
  padding-left: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 22px;
  background: rgba(0, 0, 0, 0.78);
}

.modal.open {
  display: flex;
}

.login {
  width: min(640px, calc(100% - 36px));
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(34, 31, 25, 0.96), rgba(14, 13, 12, 0.98)),
    #12110f;
  border: 1px solid rgba(216, 163, 77, 0.34);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.admin-console {
  width: min(960px, calc(100% - 36px));
}

.admin-page {
  min-height: 100vh;
}

.admin-shell-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 8, 0.92);
  backdrop-filter: blur(16px);
}

.admin-userbar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.admin-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(216, 163, 77, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(22, 21, 19, 0.92);
}

.admin-workspace {
  min-width: 0;
}

.admin-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-dashboard-head h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 10px;
  min-width: min(560px, 100%);
}

.admin-kpis div {
  border: 1px solid rgba(216, 163, 77, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-kpis strong,
.admin-kpis span {
  display: block;
}

.admin-kpis strong {
  font-size: 1.55rem;
}

.admin-kpis span {
  color: var(--muted);
  font-size: 0.9rem;
}

.login-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.login h2 {
  font-size: 1.6rem;
}

.close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1b1915;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
}

.login form {
  display: grid;
  gap: 13px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.staff-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}

.rights-grid {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.rights-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.rights-grid input {
  width: auto;
}

.staff-form .btn {
  grid-column: 1 / -1;
}

.field-wide {
  grid-column: 1 / -1;
}

.admin-tab,
.admin-action {
  border: 1px solid rgba(216, 163, 77, 0.28);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.admin-tab.active,
.admin-action.primary {
  background: linear-gradient(135deg, #b88734, #f0c56d);
  color: #11100e;
}

.admin-action.danger {
  border-color: rgba(180, 35, 24, 0.55);
  color: #ffb4a8;
}

.admin-headline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(216, 163, 77, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-card.banned {
  border-color: rgba(180, 35, 24, 0.5);
  background: rgba(180, 35, 24, 0.12);
}

.admin-card-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-card-main span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-edit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid rgba(216, 163, 77, 0.18);
  padding-top: 14px;
}

.inline-edit .admin-action {
  justify-self: start;
}

.empty-state {
  border: 1px dashed rgba(216, 163, 77, 0.26);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

[data-register-form] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-register-form] .btn,
[data-register-form] .success,
[data-register-form] .auth-switch {
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

.auth-switch {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.auth-switch button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #f0c56d;
  cursor: pointer;
  font-weight: 800;
}

.auth-switch button:hover {
  color: #f5d58d;
}

.hint,
.error,
.success {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.error,
.success {
  display: none;
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.success {
  color: #f0c56d;
  font-weight: 700;
}

@media (max-width: 820px) {
  body::before {
    background-position: 50% 50%;
    background-size: auto 128vh;
  }

  .nav,
  .links,
  .actions {
    align-items: stretch;
  }

  .nav {
    flex-direction: column;
    padding: 14px 18px;
  }

  .admin-shell-top {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px;
  }

  .admin-userbar,
  .admin-dashboard-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-kpis {
    grid-template-columns: 1fr;
  }

  .links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .login {
    width: min(100%, calc(100% - 28px));
  }

  .admin-card-main {
    grid-template-columns: 1fr;
  }

  .staff-form {
    grid-template-columns: 1fr;
  }

  .inline-edit {
    grid-template-columns: 1fr;
  }

  [data-register-form] {
    grid-template-columns: 1fr;
  }

  .stats,
  .grid,
  .steps,
  .contact-wrap,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 54px 0;
  }
}

@media print {
  .topbar,
  .modal {
    display: none !important;
  }
}
