:root{
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #edf0f3;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --shadow2: 0 10px 26px rgba(15, 23, 42, .06);
  --radius: 18px;

  /* DRK-Rot (klassisch nah dran) */
  --drk: #e30613;
  --drk2:#b8050f;

  --focus: rgba(227,6,19,.18);
  --ok: #16a34a;
  --warn:#f59e0b;
  --err:#ef4444;

  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(227,6,19,.10), transparent 55%),
    radial-gradient(900px 420px at 90% -20%, rgba(15,23,42,.06), transparent 55%),
    var(--bg);
}

.container{
  width:min(1080px, calc(100% - 36px));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
  z-index:50;
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}

.brand__logo{
  width:46px;
  height:46px;
  object-fit:contain;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow2);
}

.brand__name{
  font-weight:800;
  letter-spacing:.2px;
}

.brand__sub{
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.topnav{ display:flex; gap:10px; }
.topnav__link{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  text-decoration:none;
  color:var(--text);
  background:#fff;
  box-shadow: var(--shadow2);
  font-weight:600;
}
.topnav__link:hover{ border-color: rgba(227,6,19,.22); }

main.container{ padding:28px 0 42px; }

.hero{
  display:grid;
  place-items:center;
  padding:12px 0;
}

.hero__card{
  width:min(860px, 100%);
  background:var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
}

.hero__title{
  margin:0 0 6px;
  font-size:28px;
  letter-spacing:-.2px;
}
.hero__text{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.55;
}

.notice{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background: #fff;
  border:1px solid var(--line);
  border-radius: 16px;
  padding:14px;
  box-shadow: var(--shadow2);
  margin: 12px 0 18px;
}
.notice__icon{
  width:28px;height:28px;border-radius:10px;
  display:grid;place-items:center;
  font-weight:800;
  color:#fff;
  background: linear-gradient(180deg, var(--drk), var(--drk2));
}
.notice__title{ font-weight:800; margin-bottom:3px; }
.notice__text{ color:var(--muted); line-height:1.45; }

.form{ margin-top:8px; }

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

.field label{
  display:block;
  font-weight:700;
  font-size:13px;
  color:#334155;
  margin:0 0 7px;
}

.field input{
  width:100%;
  padding:13px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  outline:none;
  background:#fff;
  font-size:15px;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.field input:focus{
  border-color: rgba(227,6,19,.35);
  box-shadow: 0 0 0 6px var(--focus);
}

.field__hint{
  color: var(--muted);
  font-size:12px;
  margin-top:7px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn__arrow{ font-weight:900; }

.btn--primary{
  background: linear-gradient(180deg, var(--drk), var(--drk2));
  color:#fff;
  box-shadow: 0 12px 28px rgba(227, 6, 19, .22);
}
.btn--primary:hover{ transform: translateY(-1px); }
.btn--primary:active{ transform: translateY(0); }

.btn--ghost{
  background:#fff;
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow2);
}
.btn--ghost:hover{ border-color: rgba(227,6,19,.22); }

.fineprint{
  margin:14px 0 0;
  color: var(--muted);
  font-size:12px;
  line-height:1.45;
}

.alert{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border-radius: 16px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow2);
  padding:12px 12px;
  margin: 0 0 14px;
}
.alert__dot{
  width:10px;height:10px;border-radius:999px;margin-top:5px;
  background: var(--muted);
}
.alert--success .alert__dot{ background: var(--ok); }
.alert--warning .alert__dot{ background: var(--warn); }
.alert--error   .alert__dot{ background: var(--err); }
.alert__text{ color:#334155; line-height:1.45; }

.footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
}
.footer__inner{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer__hint{
  color: var(--muted);
  line-height:1.45;
}
.footer__copy{
  color:#94a3b8;
  font-size:12px;
}

/* Admin */
.adminbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin: 0 0 14px;
}
.adminbar__title{
  margin:0;
  font-size:22px;
  letter-spacing:-.2px;
}
.adminbar__meta{
  color: var(--muted);
  font-size:13px;
  margin-top:4px;
}
.adminbar__right{ display:flex; gap:10px; flex-wrap:wrap; }

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}

.search{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.search__input{
  flex:1 1 260px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  outline:none;
}
.search__input:focus{
  border-color: rgba(227,6,19,.35);
  box-shadow: 0 0 0 6px var(--focus);
}

.tablewrap{ overflow:auto; border-radius:16px; border:1px solid var(--line); }
.table{
  width:100%;
  border-collapse:collapse;
  min-width: 780px;
  background:#fff;
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:14px;
}
.table th{
  position:sticky;
  top:0;
  background:#fff;
  z-index:1;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#475569;
}
.table tr:hover td{ background: rgba(15,23,42,.02); }
.muted{ color: var(--muted); }

/* Responsive */
@media (max-width: 760px){
  .grid{ grid-template-columns: 1fr; }
  .hero__title{ font-size:24px; }
  .brand__logo{ width:42px;height:42px; }
}
