/* Kurzlinks — ohne externe Schriften oder andere Abhängigkeiten */
:root {
  color-scheme: light;
  --ink: #243731;
  --muted: #586b63;
  --accent: #215c48;
  --accent-hover: #174635;
  --line: #d9e2db;
  --surface: #fffdf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f3f1e9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: clamp(20px, 5vw, 72px) 20px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 8% 0%, #dce9de 0, transparent 48%),
    radial-gradient(ellipse at 95% 18%, #f4e3cc 0, transparent 44%),
    #f3f1e9;
  line-height: 1.6;
}
main {
  position: relative;
  max-width: 1120px;
  margin: auto;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #ffffff;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 64px #304b3610, 0 3px 12px #304b3608;
}
h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.045em;
}
h1::before {
  content: "↗";
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 52px;
  border-radius: 16px;
  color: #fffdf8;
  background: var(--accent);
  font-size: 32px;
  font-weight: 500;
  box-shadow: 0 6px 14px #215c481a;
}
h2 {
  margin: 36px 0 16px;
  font-size: 20px;
  letter-spacing: -0.025em;
  font-weight: 700;
}
p { margin: 14px 0; }
main > p { color: var(--muted); }
label { font-size: 14px; font-weight: 600; }
input, button { font: inherit; }
input:not([type="hidden"]):not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid #c7d3cb;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #748078; opacity: 1; }
input:not([type="checkbox"]):hover { border-color: #91aa9a; }
input:focus-visible {
  outline: 3px solid #215c4833;
  outline-offset: 2px;
  border-color: var(--accent);
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0 6px 0 0;
  accent-color: var(--accent);
  vertical-align: middle;
}
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
button:hover { background: var(--accent-hover); box-shadow: 0 4px 12px #215c481c; }
button:focus-visible, a:focus-visible {
  outline: 3px solid #b36d22;
  outline-offset: 4px;
}
main > form:has(input[value="create"]),
main > form:has(input[value="login"]) {
  padding: clamp(18px, 3vw, 28px);
  background: #f0f5ee;
  border: 1px solid #dce6d9;
  border-radius: 20px;
}
main > form:has(input[value="create"]) p:first-of-type,
main > form:has(input[value="login"]) p:first-of-type { margin-top: 0; }
main > form:has(input[value="login"]) { max-width: 480px; }
main > form:has(input[value="login"]) button { margin-top: 20px; }
main > form:has(input[value="create"]) button { margin-top: 6px; }
main > form:has(input[value="logout"]) { display: flex; justify-content: flex-end; margin-top: -12px; }
main > form:has(input[value="logout"]) button {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  padding: 8px 16px;
}
main > form:has(input[value="logout"]) button:hover { background: #edf2eb; box-shadow: none; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
p[role="status"], p[role="alert"] {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid #bfd7c4;
  border-radius: 12px;
  background: #eaf4eb;
  color: #235433;
  overflow-wrap: anywhere;
}
p[role="alert"] { background: #fff0eb; color: #943d2f; border-color: #eac7bb; }
table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-spacing: 0;
  background: #fff;
}
th {
  padding: 14px 18px;
  color: var(--muted);
  background: #f4f6f1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
td, th { text-align: left; }
td {
  padding: 18px;
  border-top: 1px solid #e8ece5;
  font-size: 14px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
tbody tr:hover { background: #fafcf7; }
td:first-child { min-width: 180px; font-weight: 650; }
td:nth-child(2) { min-width: 200px; max-width: 420px; color: var(--muted); }
td:nth-child(3) { text-align: center; font-variant-numeric: tabular-nums; font-weight: 650; }
td form { display: flex; align-items: center; gap: 12px; min-width: 230px; }
td form label { white-space: nowrap; color: var(--muted); font-size: 12px; font-weight: 500; }
td button { min-height: 38px; padding: 8px 12px; background: #fff3ef; color: #943d2f; border-color: #efd5ca; font-size: 12px; }
td button:hover { background: #fce3da; box-shadow: none; }
table + p { margin-top: 18px; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  body { padding: 14px 10px; }
  main { padding: 22px 16px; border-radius: 20px; }
  h1 { gap: 12px; margin-bottom: 24px; }
  h1::before { flex-basis: 44px; height: 44px; border-radius: 13px; font-size: 28px; }
  main > form:has(input[value="create"]), main > form:has(input[value="login"]) { padding: 18px 14px; border-radius: 14px; }
  main > form:has(input[value="create"]) > button, main > form:has(input[value="login"]) > button { width: 100%; }
  th, td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
