/* stefanbrinkers.de – eine Datei, keine Abhängigkeiten. */

/* ---------- Schrift (Lato, OFL, selbst gehostet) ---------- */

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-italic.woff2') format('woff2');
}

/* ---------- Tokens ---------- */

:root {
  --bg: #FCFCFB;
  --surface: #FFFFFF;
  --placeholder: #EFEFED;
  --ink: #1B1B1B;
  --ink-2: #4A4A4A;
  --ink-3: #5E5E5E;
  --line: #DCDCDA;
  --track: #E7E7E5;
  --field: #8A8A8A;

  --accent: #D8145E;
  --accent-hover: #A80F49;
  --accent-mark: #ED1968; /* nur dekorativ, nie für Text */

  --font: 'Lato', system-ui, sans-serif;
  --measure: 880px;
  --gap: 56px;
  --touch: 44px;
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: lining-nums tabular-nums;
}

h1, h2, h3, p, ul, ol, dl, figure, address {
  margin: 0;
}

address {
  font-style: normal;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--accent);
  z-index: 10;
}
.skip-link:focus {
  top: 8px;
}

/* ---------- Seitenrahmen ---------- */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-height: 100vh;
}
.page--home {
  --gap: 72px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  flex: 1;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 16px;
  border-bottom: 1px solid var(--ink);
  /* 14px Abstand wie im Entwurf, abzüglich der 10px, die die 44px-Touch-Ziele mitbringen */
  padding-bottom: 4px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}
.logo:hover {
  color: var(--ink);
}
.logo-dot {
  color: var(--accent-mark);
}

.site-nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--accent-hover);
}
.site-nav a[aria-current='page'] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 16px;
  border-top: 1px solid var(--ink);
  padding-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}
.site-footer a.quiet {
  color: var(--ink-2);
}
.site-footer a.quiet:hover {
  color: var(--accent-hover);
}

/* ---------- Typografie ---------- */

.page-title {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 480px) {
  .page-title {
    font-size: 44px;
  }
}

.intro {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-2);
}

.label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

.meta {
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- Index der Sammlungen (Startseite) ---------- */

.index {
  margin-top: 12px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.index a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.index a:hover .index-name {
  color: var(--accent-hover);
}
.index-nr,
.index-count {
  font-size: 13px;
  color: var(--ink-3);
}
.index-count {
  font-size: 14px;
}
.index-name {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .index a {
    grid-template-columns: 32px minmax(0, 1fr);
    row-gap: 2px;
  }
  .index-count {
    grid-column: 2;
  }
}

/* ---------- Allgemeine Bausteine ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section--tight {
  gap: 10px;
}
.section--archive {
  gap: 12px;
}
.section--list {
  gap: 20px;
}

.kennzahlen {
  font-size: 15px;
  color: var(--ink-2);
}
.intro-text {
  max-width: 560px;
  color: var(--ink-2);
}
.leer {
  color: var(--ink-3);
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.kat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.tag {
  display: inline-block;
  padding: 1px 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  vertical-align: 2px;
}
.tag--quiet {
  margin-left: 6px;
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--line);
}

/* Zwei Spalten, die mobil untereinander rutschen */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
}

/* ---------- Kacheln (Startseite, Zeichnungen) ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: 24px 16px;
  padding: 0;
  list-style: none;
}
.tiles--wide {
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}
@media (max-width: 480px) {
  .tiles,
  .tiles--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
a.tile:hover .tile-title {
  color: var(--accent-hover);
}
.quietlink {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.quietlink:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}
.has-media {
  font-size: 9px;
  color: var(--accent);
  vertical-align: 3px;
}

/* ---------- Medienrahmen ---------- */

.frame {
  position: relative;
  display: block;
  width: 100%;
  background: var(--placeholder);
  border: 1px solid var(--line);
  overflow: hidden;
}
.frame--kachel,
.frame--blatt {
  aspect-ratio: 4 / 5;
}
.frame--hoch {
  aspect-ratio: 9 / 16;
}
.frame--mini {
  flex: none;
  width: 64px;
  aspect-ratio: 4 / 5;
}
.frame img,
.frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.frame--video {
  background: var(--ink);
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  padding: 0 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.play:hover {
  background: var(--accent-hover);
}
.play[hidden] {
  display: none;
}
.play--deko {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  padding-left: 2px;
}

/* ---------- Detailansicht ---------- */

.back {
  font-size: 15px;
  margin-bottom: calc(var(--gap) * -0.5);
}
.back a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 24px 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.detail--blatt {
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
}
.detail--ohne-medium {
  grid-template-columns: 1fr;
}
@media (max-width: 600px) {
  .detail,
  .detail--blatt {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}
.detail-media .frame--hoch {
  max-width: 280px;
}
.detail-media .frame--blatt {
  max-width: 360px;
}
.detail-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.detail-zeit {
  font-size: 22px;
  font-weight: 700;
}
.detail-notiz {
  color: var(--ink-2);
}
.detail-pager {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  font-size: 15px;
}
.detail-pager a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}
.detail-weitere {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.detail-weitere .frame--hoch {
  max-width: 280px;
}
.tile-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.tile-caption {
  font-size: 15px;
}
.meta-inline {
  color: var(--ink-3);
}

.year-rule {
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Konzerte: Balken & Top-Liste ---------- */

.bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.bars li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-2);
}
.bars-track {
  display: block;
  height: 10px;
  background: var(--track);
}
.bars-bar {
  display: block;
  height: 100%;
  background: var(--accent);
}
.bars-n {
  text-align: right;
}

.top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.top li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.top-n {
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- Konzerte: Archiv ---------- */

.archive {
  border-top: 1px solid var(--ink);
}
.archive details {
  border-bottom: 1px solid var(--line);
}
.archive summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: var(--touch);
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}
.archive summary::-webkit-details-marker {
  display: none;
}
.archive summary::after {
  content: '+';
  width: 1ch;
  font-size: 18px;
  color: var(--ink-3);
}
.archive details[open] > summary::after {
  content: '−';
}
.archive summary:hover .archive-year {
  color: var(--accent-hover);
}
.archive-year {
  font-size: 22px;
  font-weight: 700;
  margin-right: auto;
}
.archive-count {
  font-size: 14px;
  color: var(--ink-3);
}
.archive .table-wrap {
  padding-bottom: 12px;
}

/* ---------- Tabellen ---------- */

.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
}
thead th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.table {
  min-width: 520px;
  font-size: 16px;
}
.table th,
.table td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
}
.table thead th {
  padding-top: 6px;
  padding-bottom: 6px;
  border-top: 0;
}
.table th:first-child,
.table td:first-child {
  padding-left: 0;
}
.table th:last-child,
.table td:last-child {
  padding-right: 0;
}
.table--ruled th,
.table--ruled td {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding-top: 11px;
  padding-bottom: 11px;
}
.table--ruled thead th {
  border-bottom-color: var(--ink);
  padding-top: 8px;
  padding-bottom: 8px;
}
.col-date {
  width: 110px;
}
.col-ort {
  width: 200px;
}
.col-nr {
  width: 48px;
}
.cell-date {
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}
.cell-main {
  font-weight: 700;
}
.cell-sub {
  color: var(--ink-2);
}
.cell-time {
  font-size: 15px;
  white-space: nowrap;
}
.num {
  text-align: right;
}

/* ---------- Laufen ---------- */

.bests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.best {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 16px 20px 0;
}
.best-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.best-time {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 32px 40px;
}
.group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 18px;
  font-weight: 700;
}
.group-n {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
}
.group-list {
  padding: 0;
  list-style: none;
}
.group-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.group-date,
.group-time {
  color: var(--ink-3);
}

/* Diagramm Marathonzeiten (Inline-SVG) */
.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart text {
  font-family: var(--font);
  font-size: 12px;
}
.chart-label {
  fill: var(--ink-3);
}
.chart-grid {
  stroke: var(--track);
}
.chart-ziel {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}
.chart-ziel-label {
  fill: var(--ink);
}
.chart-linie {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}
.chart-punkt {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
}
.chart-punkt--letzter {
  fill: var(--accent);
}
.chart--schmal {
  display: none;
}
@media (max-width: 600px) {
  .chart--breit {
    display: none;
  }
  .chart--schmal {
    display: block;
  }
}

/* ---------- Sonstiges ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  min-height: var(--touch);
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.filter:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}
.filter[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.rows {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.row--media {
  grid-template-columns: 64px minmax(0, 1fr);
}
.row:hover .row-title {
  color: var(--accent-hover);
}
.row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.row-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Bücher ---------- */

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mark);
}
.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

.shelf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 4px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-bottom: 3px solid var(--ink);
}
.spine {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  /* feine Kante, damit helle Rücken (#F4F4F2) auf --bg sichtbar bleiben */
  box-shadow: inset 0 0 0 1px rgb(27 27 27 / 0.12);
}
.spine-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spine-dot {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.read-year {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.read-year-label {
  font-size: 15px;
  font-weight: 700;
}
.read-list {
  padding: 0;
  list-style: none;
}
.read-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.read-author {
  color: var(--ink-2);
}
.read-list li:last-child {
  border-bottom: 0;
}
.read-note {
  font-size: 15px;
  color: var(--ink-3);
}

/* ==========================================================
   Erfassen (mobil zuerst)
   ========================================================== */

.adm {
  font-size: 16px;
  line-height: 1.5;
}
.adm-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 16px;
  max-width: 640px;
  margin: 0 auto;
  padding: 6px 20px;
  border-bottom: 1px solid var(--ink);
}
.adm-home {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.adm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  font-size: 14px;
}
.adm-nav a,
.linkbutton {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--ink-2);
}
.linkbutton {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.linkbutton:hover,
.adm-nav a:hover {
  color: var(--accent-hover);
}

.adm-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px 32px;
}
.adm-title {
  font-size: 28px;
  line-height: 1.15;
}

.typwahl fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.typwahl legend {
  margin-bottom: 8px;
  padding: 0;
}
a.filter {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
a.filter[aria-current='page'] {
  background: var(--ink);
  color: #fff;
}

.adm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.feld input,
.feld select,
.feld textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 0 12px;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* verhindert Zoom auf iOS */
}
.feld textarea {
  padding: 10px 12px;
  resize: vertical;
}
.feld [aria-invalid='true'] {
  border-color: var(--accent);
  border-width: 2px;
}
.feld-fehler {
  color: var(--accent);
  font-size: 14px;
}
.feld-reihe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 360px) {
  .feld-reihe {
    grid-template-columns: 1fr;
  }
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch);
  font-size: 15px;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.adm-error {
  padding: 12px 14px;
  border: 2px solid var(--accent);
  background: var(--surface);
  color: var(--ink);
}
.adm-error ul {
  margin: 4px 0 0;
  padding-left: 20px;
}
.adm-status {
  font-size: 14px;
  color: var(--ink);
}

.adm-save {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px -20px 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.btn-primary,
.btn-danger,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover,
.btn-danger:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-secondary {
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
}
.adm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.adm-actions a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}
.adm-actions a.danger {
  color: var(--accent);
}

.adm-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.adm-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.adm-list a:hover .adm-list-title {
  color: var(--accent-hover);
}
.adm-list-title {
  font-weight: 700;
}
.adm-list .is-neu a {
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: 10px;
}

.medium-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.medium-vorhanden,
.medium-vorschau {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.medium-vorhanden img,
.medium-vorschau img,
.medium-leer {
  flex: none;
  width: 56px;
  height: 70px;
  object-fit: contain;
  background: var(--placeholder);
}
.medium-vorhanden .check {
  margin-left: auto;
}
.feld input[type='file'] {
  padding: 8px 0;
  border: 0;
  background: none;
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: progress;
}
