/* Patricks Archiv
   Kühles Papiergrau, Tinten-Marineblau, eine Farbe pro Sammlung.
   Libre Bodoni für Titel, Public Sans für Text. */

:root {
  --bg: #EEF1F2;
  --surface: #FAFBFB;
  --ink: #15233B;
  --ink-2: #4B5667;
  --line: #D5DBE1;
  --line-strong: #A9B3BF;

  --reise: #1E6A5B;
  --musik: #8B2C4E;
  --idee: #8A5300;
  --genuss: #3F5FA0;
  --danger: #A8261B;

  --serif: "Libre Bodoni", "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 3px;
  --r-md: 8px;
  --r-pill: 999px;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --c: var(--ink);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161F;
    --surface: #18202B;
    --ink: #E5E9EF;
    --ink-2: #A3ADBB;
    --line: #2A3442;
    --line-strong: #46525F;
    --reise: #6FC2AE;
    --musik: #E895B1;
    --idee: #E5AE56;
    --genuss: #93ACE6;
    --danger: #F08A80;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

.skip-link {
  position: absolute; left: var(--s4); top: -4rem;
  padding: var(--s2) var(--s4);
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-md);
  z-index: 100;
}
.skip-link:focus { top: var(--s4); }

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

main { padding-block: var(--s6) var(--s9); }
main:focus { outline: none; }

/* ---------------------------------------------------------------- Kopfzeile */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s6);
  padding-block: var(--s4);
}
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
}
.site-nav {
  display: flex;
  gap: var(--s1) var(--s5);
  order: 3;
  width: 100%;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--c, var(--ink));
}
@media (min-width: 48rem) {
  .site-nav { order: 0; width: auto; }
}

.new-menu { position: relative; }
.new-menu summary { list-style: none; }
.new-menu summary::-webkit-details-marker { display: none; }
.new-menu-list {
  position: absolute;
  right: 0; top: calc(100% + var(--s2));
  z-index: 20;
  min-width: 15rem;
  padding: var(--s2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px -12px rgb(21 35 59 / .28);
}
.new-menu-list a {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
  padding-inline: var(--s3);
  border-radius: var(--r-sm);
  text-decoration: none;
}
.new-menu-list a::before {
  content: "";
  width: .6rem; height: .6rem;
  border-radius: 50%;
  background: var(--c);
}
.new-menu-list a:hover { background: var(--bg); }

/* ---------------------------------------------------------------- Knöpfe */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--c, var(--ink));
  border-color: var(--c, var(--ink));
  color: var(--bg);
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.site-header .btn-primary { --c: var(--ink); }
.btn-quiet { border-color: transparent; color: var(--ink-2); }
.btn-quiet:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: var(--bg); }
.btn-danger:hover { background: var(--ink); border-color: var(--ink); }
.btn-danger-quiet { color: var(--danger); border-color: var(--danger); }
.btn-danger-quiet:hover { background: var(--danger); color: var(--bg); }
.btn-on-dark { color: #fff; border-color: rgb(255 255 255 / .4); }
.btn-on-dark:hover { border-color: #fff; }

.file-btn { position: relative; overflow: hidden; }
.file-btn input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  font-size: 0;
}
.file-btn:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------------------------------------------------------------- Startseite */

.greeting {
  color: var(--ink-2);
  font-size: 1.0625rem;
  margin-bottom: var(--s5);
}

.index { border-top: 1px solid var(--line-strong); }
.index-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2) var(--s6);
  align-items: end;
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}
.index-word {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 14vw, 9.5rem);
  line-height: .88;
  letter-spacing: -0.03em;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.index-row:hover .index-word,
.index-row:focus-visible .index-word {
  color: var(--c);
  font-style: italic;
}
.index-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.index-count {
  color: var(--c);
  font-weight: 600;
  font-size: 1rem;
}
@media (min-width: 40rem) {
  .index-row { grid-template-columns: 1fr minmax(12rem, 17rem); }
  .index-meta { padding-bottom: 0.7rem; }
}

.intro .index-word {
  animation: rise .8s var(--ease) both;
  animation-delay: calc(var(--i) * 110ms + 80ms);
}
.intro .index-meta {
  animation: fade .6s ease both;
  animation-delay: calc(var(--i) * 110ms + 380ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(0.3em); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  margin-bottom: var(--s4);
}

.recent { margin-top: var(--s8); max-width: 52rem; }
.recent-list a {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: var(--s4);
  align-items: baseline;
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.type-mark { color: var(--c); font-size: 0.875rem; font-weight: 600; }
.recent-title { font-weight: 500; }
.recent-list a:hover .recent-title { text-decoration: underline; text-underline-offset: 3px; }
.recent-list time { color: var(--ink-2); font-size: 0.875rem; }
@media (max-width: 34rem) {
  .recent-list a { grid-template-columns: 1fr; gap: 0; }
}

.welcome { margin-top: var(--s8); max-width: 38rem; }
.welcome p { color: var(--ink-2); margin-bottom: var(--s5); }

/* ---------------------------------------------------------------- Sammlungsseiten */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
  padding-bottom: var(--s5);
  margin-bottom: var(--s5);
  border-bottom: 1px solid var(--line-strong);
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: .95;
  letter-spacing: -0.025em;
  color: var(--c);
}
.page-sub { color: var(--ink-2); margin-top: var(--s3); max-width: 40rem; }
.page-sub:empty { display: none; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
}
.search {
  position: relative;
  flex: 1 1 16rem;
  max-width: 26rem;
}
.search svg {
  position: absolute;
  left: 0.85rem; top: 50%;
  width: 1.1rem; height: 1.1rem;
  transform: translateY(-50%);
  color: var(--ink-2);
  pointer-events: none;
}
.search input {
  width: 100%;
  min-height: 44px;
  padding: 0 1rem 0 2.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.search input:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  min-height: 40px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--bg); }

.sort { display: inline-flex; align-items: center; gap: var(--s2); font-size: 0.9375rem; color: var(--ink-2); }
.sort select { min-height: 40px; }

.result-note { min-height: 1.5rem; margin-block: var(--s3); color: var(--ink-2); font-size: 0.9375rem; }

.empty, .empty-page {
  max-width: 34rem;
  padding-block: var(--s7);
}
.empty p, .empty-page p { color: var(--ink-2); font-size: 1.125rem; margin-block: var(--s4) var(--s5); }

/* Reisen: chronologisch nach Jahr */
.year-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2) var(--s6);
  padding-block: var(--s5);
  border-top: 1px solid var(--line);
}
.year-group:first-child { border-top: 0; padding-top: 0; }
.year {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--reise);
}
@media (min-width: 48rem) {
  .year-group { grid-template-columns: 7rem 1fr; }
  .year { position: sticky; top: var(--s5); align-self: start; padding-top: var(--s4); }
}
.trips li + li { border-top: 1px solid var(--line); }
.trip {
  display: grid;
  gap: var(--s4) var(--s5);
  padding-block: var(--s4);
  text-decoration: none;
}
.trip.has-photo { grid-template-columns: minmax(6.5rem, 15rem) 1fr; }
.trip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--line);
}
.trip-body { display: flex; flex-direction: column; gap: var(--s1); max-width: 40rem; }
.trip-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
}
.trip:hover .trip-title { color: var(--reise); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.trip-meta { color: var(--reise); font-size: 0.9375rem; font-weight: 500; }
.trip-excerpt { color: var(--ink-2); margin-top: var(--s2); }

/* Musik: Plattenregal */
.records {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(10rem, 42vw), 1fr));
  gap: var(--s6) var(--s5);
}
.record { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; }
.cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-bottom: var(--s3);
  box-shadow: 0 1px 0 var(--line-strong);
}
.cover-gen {
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgb(255 255 255 / .06) 18.5% 19%, transparent 19.5%),
    hsl(var(--h) 30% 27%);
  color: hsl(var(--h) 45% 92%);
  overflow: hidden;
}
.cover-gen span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.05;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.record-title { font-weight: 600; line-height: 1.3; }
.record:hover .record-title { color: var(--musik); text-decoration: underline; text-underline-offset: 3px; }
.record-artist { color: var(--ink-2); font-size: 0.9375rem; }
.record-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s1); }
.record-kind { font-size: 0.8125rem; color: var(--musik); font-weight: 500; }

.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 0.95rem; height: 0.95rem; fill: var(--line-strong); }
.stars svg.on { fill: var(--c, var(--musik)); }

/* Genuss: Kacheln mit Foto */
.tastes { grid-template-columns: repeat(auto-fill, minmax(min(13rem, 42vw), 1fr)); }
.taste .cover { aspect-ratio: 4 / 3; }
.taste:hover .record-title { color: var(--genuss); }
.taste .record-kind { color: var(--genuss); }
.entry-genuss .cover-large { aspect-ratio: 4 / 3; }

/* Ideen: nach Status gruppiert */
.board { display: grid; gap: var(--s6) var(--s5); }
@media (min-width: 40rem) { .board:not(.single) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .board:not(.single) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.board.single { max-width: 40rem; }
.board-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  padding-bottom: var(--s2);
  margin-bottom: var(--s3);
  border-bottom: 2px solid var(--idee);
}
.board-count { font-family: var(--sans); font-size: 0.9375rem; color: var(--ink-2); }
.board-empty { color: var(--ink-2); font-size: 0.9375rem; }
.ideas { display: flex; flex-direction: column; gap: var(--s3); }
.idea {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color .15s;
}
.idea:hover { border-color: var(--idee); }
.idea-title { font-weight: 600; line-height: 1.3; }
.idea-text { color: var(--ink-2); font-size: 0.9375rem; }
.idea-tags { color: var(--idee); font-size: 0.8125rem; font-weight: 500; }

/* ---------------------------------------------------------------- Einzelansicht */

.back {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 44px;
  margin-bottom: var(--s4);
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
}
.back svg { width: 1.1rem; height: 1.1rem; }
.back:hover { color: var(--ink); }

.entry-head { margin-bottom: var(--s6); max-width: 52rem; }
.entry-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.entry-meta, .entry-artist {
  margin-top: var(--s4);
  color: var(--c);
  font-size: 1.125rem;
  font-weight: 500;
}

.lead-photo, .grid-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: zoom-in;
}
.lead-photo { margin-bottom: var(--s7); }
.lead-photo img { width: 100%; max-height: 78vh; object-fit: cover; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: var(--s3);
  margin-top: var(--s7);
}
.grid-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.prose { max-width: 38rem; font-size: 1.125rem; line-height: 1.7; }
.prose p + p { margin-top: 1.1em; }
.muted { color: var(--ink-2); }

.tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
.tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  text-decoration: none;
}
.tags a:hover { border-color: var(--c); color: var(--c); }

.entry-foot { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); }
.entry-actions, .confirm { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.confirm-q { font-weight: 500; }
.entry-dates { margin-top: var(--s4); color: var(--ink-2); font-size: 0.875rem; }

.musik-layout { display: grid; gap: var(--s6); }
@media (min-width: 48rem) {
  .musik-layout { grid-template-columns: minmax(16rem, 24rem) 1fr; gap: var(--s7); align-items: start; }
}
.cover-large { margin-bottom: 0; }
.cover-large.cover-gen span { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.entry-musik .entry-head { margin-bottom: var(--s5); }
.facts { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); margin-bottom: var(--s5); }
.facts dt { font-size: 0.875rem; color: var(--ink-2); }
.facts dd { font-weight: 500; }
.entry-rating { margin-bottom: var(--s5); }
.entry-rating .stars svg { width: 1.35rem; height: 1.35rem; }
.entry-musik .prose { margin-top: var(--s6); }

.status-switch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
  padding: 0;
  border: 0;
}
.status-switch legend { width: 100%; margin-bottom: var(--s2); font-size: 0.875rem; color: var(--ink-2); }
.status-switch input { position: absolute; opacity: 0; pointer-events: none; }
.status-switch label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.status-switch input:checked + label { background: var(--idee); border-color: var(--idee); color: var(--bg); }
.status-switch input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------------------------------------------------------------- Formulare */

.form-page { max-width: 46rem; }
.form-page .page-title { margin-bottom: var(--s6); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--s2); min-width: 0; padding: 0; border: 0; }
@media (min-width: 34rem) { .field.half { grid-column: span 1; } }
.field > label:not(.btn), .field > legend { font-weight: 500; font-size: 0.9375rem; padding: 0; }
.field legend { margin-bottom: var(--s2); }
.req { font-weight: 400; color: var(--ink-2); }

input:not([type="radio"], [type="file"], [type="search"]), select, textarea {
  width: 100%;
  height: 48px;
  padding: 0 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}
.sort select { width: auto; height: 40px; }
textarea { height: auto; padding-block: 0.7rem; resize: vertical; line-height: 1.6; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 1px;
  border-color: var(--c);
}
[aria-invalid="true"] { border-color: var(--danger) !important; }
.hint { font-size: 0.875rem; color: var(--ink-2); }
.error { font-size: 0.9375rem; color: var(--danger); font-weight: 500; }
.file-status { font-size: 0.875rem; color: var(--ink-2); }
.file-status:empty { display: none; }
.field .file-btn { align-self: flex-start; }

.thumbs { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s2); }
.thumb { position: relative; }
.thumb img { width: 7.5rem; height: 5.6rem; object-fit: cover; border-radius: var(--r-sm); }
.thumb-remove {
  position: absolute; top: 4px; right: 4px;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  padding: 0;
  border: 0; border-radius: 50%;
  background: rgb(10 16 26 / .72);
  color: #fff;
  cursor: pointer;
}
.thumb-remove::after { content: ""; position: absolute; inset: -6px; }
.thumb-remove svg { width: 1rem; height: 1rem; }

.rating-input { display: flex; align-items: center; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label {
  display: grid; place-items: center;
  min-width: 44px; min-height: 44px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.rating-none { padding-inline: var(--s3); margin-right: var(--s2); font-size: 0.9375rem; color: var(--ink-2); border: 1px solid var(--line); }
.rating-star svg { width: 1.6rem; height: 1.6rem; fill: var(--line-strong); transition: fill .12s; }
.rating-input[data-rating="1"] .rating-star:nth-of-type(-n+2) svg,
.rating-input[data-rating="2"] .rating-star:nth-of-type(-n+3) svg,
.rating-input[data-rating="3"] .rating-star:nth-of-type(-n+4) svg,
.rating-input[data-rating="4"] .rating-star:nth-of-type(-n+5) svg,
.rating-input[data-rating="5"] .rating-star:nth-of-type(-n+6) svg { fill: var(--c, var(--musik)); }
.rating-input[data-rating="0"] .rating-none { border-color: var(--ink); color: var(--ink); }
.rating-input input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 1px; }

.form-actions {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- Daten */

.data-sections { display: grid; gap: 0; max-width: 46rem; }
.data-block { padding-block: var(--s5) var(--s6); border-bottom: 1px solid var(--line); }
.data-block .section-title { font-size: 1.5rem; margin-bottom: var(--s2); }
.data-block p { color: var(--ink-2); margin-bottom: var(--s4); max-width: 40rem; }
.danger-zone .section-title { color: var(--danger); }

/* ---------------------------------------------------------------- Lightbox und Meldungen */

.lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: var(--s4);
  border: 0;
  background: rgb(8 12 18 / .94);
  color: #fff;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); }
.lightbox::backdrop { background: rgb(8 12 18 / .6); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 7rem); object-fit: contain; }
.lightbox-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3); }
.lightbox-bar .btn:focus-visible { outline-color: #fff; }

.toast {
  position: fixed;
  left: 50%; bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 0.75rem);
  transition: opacity .2s, transform .25s var(--ease);
  pointer-events: none;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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