:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --text: #1a2330;
  --muted: #647284;
  --line: #d9e1ea;
  --accent: #1d4f91;
  --accent-soft: #e8f0fb;
  --shadow: 0 16px 40px rgba(17, 28, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(29, 79, 145, 0.08), transparent 28%),
    linear-gradient(180deg, #eef3f9 0%, var(--bg) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.hero {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.subtitle {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.breadcrumbs {
  margin: 0 0 18px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: #9aa7b7;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
}

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

.notice {
  display: grid;
  gap: 6px;
  margin: 20px 24px 0;
  padding: 16px 18px;
  border: 1px solid #c9d8ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef4fc 0%, #f7faff 100%);
  color: #24456f;
}

.notice strong {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.notice span {
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
}

.listing {
  width: 100%;
  border-collapse: collapse;
}

.listing th,
.listing td {
  padding: 14px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.listing th {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.listing tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.6);
}

.entry-link {
  font-weight: 600;
  text-decoration: none;
}

.entry-link:hover {
  text-decoration: underline;
}

.folder-link::before {
  content: "Ordner";
  display: inline-block;
  margin-right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.actions {
  white-space: nowrap;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.action-link:hover {
  background: var(--accent-soft);
}

.action-link + .action-link {
  margin-left: 8px;
}

.action-link.subtle {
  border-color: var(--line);
  color: var(--text);
}

.action-link.subtle:hover {
  background: var(--panel-alt);
}

.empty-state {
  padding: 28px 24px 30px;
}

.empty-state p {
  max-width: 60ch;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  padding: 18px 24px 24px;
  background: var(--panel);
}

@media (max-width: 760px) {
  .shell {
    padding: 28px 14px 56px;
  }

  .panel-header,
  .notice,
  .empty-state,
  .pagination {
    padding-left: 18px;
    padding-right: 18px;
  }

  .listing thead {
    display: none;
  }

  .listing,
  .listing tbody,
  .listing tr,
  .listing td {
    display: block;
    width: 100%;
  }

  .listing tr {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }

  .listing tbody tr:nth-child(even) {
    background: transparent;
  }

  .listing td {
    padding: 4px 0;
    border: 0;
  }

  .listing td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .actions {
    white-space: normal;
  }

  .action-link + .action-link {
    margin-top: 8px;
    margin-left: 0;
  }
}
