*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-on-bg);
  font-family: var(--font-text);
  font-size: var(--font-size-m);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--color-lilac); outline-offset: 2px; }

/* ---------- Marke ---------- */
.brand { display: flex; align-items: center; }
.brand__logo { height: 52px; width: auto; }
.center-screen .brand__logo { height: 110px; }
.center-screen .brand__word { font-size: 72px; }
.legal__top .brand__word { font-size: 40px; }
.legal__top a { text-decoration: none; }
.brand__word { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -0.01em; color: var(--color-lilac); }

/* ---------- Bausteine ---------- */
.hint { margin: 0; font-size: var(--font-size-s); color: var(--color-on-bg-muted); }
.error { margin: 0; font-size: var(--font-size-s); font-weight: 600; color: #FFB4A0; }

.btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-s);
  padding: 0 18px; border-radius: var(--radius-pill);
  border: 2px solid currentColor; background: transparent; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--color-lilac); border-color: var(--color-lilac); color: var(--color-night); }
.btn--ghost { border-color: transparent; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }

.pill-btn {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 28px; border: 0; border-radius: var(--radius-pill);
  background: var(--color-lilac); color: var(--color-night);
  font-family: var(--font-display); font-size: 26px; line-height: 1; text-decoration: none;
}
.pill-btn:hover { background: var(--color-lilac-2); }

.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-pill); background: transparent; font-size: 22px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--font-size-s); font-weight: 600; }
.input, .select {
  min-height: 48px; width: 100%; padding: 0 16px;
  border: 2px solid var(--color-line-on-surface); border-radius: var(--radius-m);
  background: #fff; color: var(--color-night);
}
.input:focus { outline: none; border-color: var(--color-night); }
.row { display: flex; gap: 10px; align-items: center; }
.row > .input { flex: 1; min-width: 0; }
.row--wrap { flex-wrap: wrap; }
.row--wrap > .input { flex: 1 1 180px; }

.chip {
  min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: var(--radius-pill); border: 2px solid var(--color-line-on-bg); background: transparent;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: -0.03em; color: var(--color-on-bg);
}
.chip:hover { border-color: var(--color-lilac); }
.chip[aria-pressed="true"] { background: var(--color-lilac); border-color: var(--color-lilac); color: var(--color-night); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }

.mono-chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: var(--radius-pill);
  background: var(--color-lilac); color: #000; font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: -0.03em;
}
.tag {
  padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(38, 25, 55, 0.1);
  font-family: var(--font-mono); font-size: 12px; color: var(--color-on-surface);
}
.badge { padding: 4px 10px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 12px; font-weight: 700; background: var(--color-lilac); color: var(--color-night); }
.badge--dark { background: var(--color-night); color: var(--color-lilac); }
.badge--warn { background: var(--color-warning-bg); color: var(--color-warning); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--color-line-on-bg); border-top-color: var(--color-lilac); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Login ---------- */
.center-screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-l); padding: var(--space-xl) var(--space-m);
}
.card {
  width: 100%; max-width: 440px; padding: 32px;
  background: var(--color-surface); color: var(--color-on-surface); border-radius: var(--radius-l);
  display: flex; flex-direction: column; gap: 18px;
}
.card h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.card .hint { color: var(--color-on-surface-muted); }
.card .error { color: #A3260A; }
.card .btn--primary { background: var(--color-night); border-color: var(--color-night); color: var(--color-lilac); }
.code-input { letter-spacing: .5em; font-size: 24px; text-align: center; font-weight: 700; font-family: var(--font-mono); }

/* ---------- Kopfzeile ---------- */
.page { min-height: 100vh; min-height: 100dvh; overflow-x: clip; }
html { overflow-x: hidden; }
/* Kopfzeile bleibt beim Scrollen oben stehen */
.topbar { position: sticky; top: 0; z-index: 12; background: color-mix(in srgb, var(--color-bg) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.input--url { min-height: 56px; font-size: 17px; }
.row--actions { justify-content: flex-end; flex-wrap: wrap; }
.appbar {
  max-width: var(--content-max); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.area-menu { position: relative; }
.area-pill {
  min-height: 52px; display: inline-flex; align-items: center; gap: 12px; padding: 0 18px 0 24px;
  border-radius: var(--radius-pill); background: var(--color-lilac); color: var(--color-night);
  font-family: var(--font-display); font-size: 30px; line-height: 1; cursor: pointer; list-style: none; user-select: none;
}
.area-pill::-webkit-details-marker { display: none; }
.area-pill__icon { display: inline-flex; transition: transform .15s ease; }
.area-pill__icon svg { width: 21px; height: 21px; }
.area-menu[open] .area-pill__icon { transform: rotate(180deg); }
.area-menu__panel {
  position: absolute; left: 0; top: 60px; z-index: 15; width: min(300px, calc(100vw - 32px)); padding: 8px;
  background: var(--color-surface); color: var(--color-on-surface); border-radius: var(--radius-m);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 2px;
}
.area-option { position: relative; display: flex; flex-direction: column; padding: 10px 14px; border-radius: var(--radius-s); }
.area-option--active { background: var(--color-night); color: var(--color-lilac); }
.area-option[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.area-option__name { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.area-option__hint { font-size: 13px; }
.area-option__soon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  padding: 3px 10px; border-radius: var(--radius-pill); border: 1.5px solid currentColor;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.appbar__actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.appbar__hello { font-size: 14px; color: var(--color-on-bg-muted); }
.search {
  height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  border: 2px solid var(--color-line-on-bg); border-radius: var(--radius-pill);
}
.search--compact { width: 220px; }
.search svg { flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--color-on-bg); }
.search input::placeholder { color: var(--color-on-bg-muted); }
.add-btn { display: inline-flex; align-items: center; gap: 12px; border: 0; background: transparent; font-weight: 600; font-size: 14px; color: var(--color-on-bg); }
.add-btn__circle { width: 52px; height: 52px; border-radius: 50%; background: var(--color-lilac); color: var(--color-night); display: inline-flex; align-items: center; justify-content: center; }
.add-btn__circle svg { width: 24px; height: 24px; }

.menu { position: relative; }
.menu summary { list-style: none; color: var(--color-on-bg); }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; right: 0; top: 52px; z-index: 15; min-width: 240px; padding: 8px;
  background: var(--color-surface); color: var(--color-on-surface); border-radius: var(--radius-m);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.menu__panel .hint { color: var(--color-on-surface-muted); }
.nav-item {
  min-height: 44px; width: 100%; display: flex; align-items: center; padding: 0 12px;
  border: 0; border-radius: var(--radius-s); background: transparent; text-align: left; font-weight: 600;
}
.nav-item:hover { background: rgba(38, 25, 55, 0.08); }

/* ---------- Inhalt ---------- */
.content { max-width: var(--content-max); margin: 0 auto; padding: 16px 28px 64px; display: flex; flex-direction: column; gap: 24px; }
.content--rails { gap: 40px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.list-head h1 { margin: 0; font-size: 28px; }

/* Hero / Bühne */
.stage {
  position: relative; min-height: 420px; aspect-ratio: 1442 / 550; max-height: 560px;
  border-radius: var(--radius-l); overflow: visible; color: var(--color-lilac);
}
.stage__media, .stage__shade { position: absolute; inset: 0; border-radius: var(--radius-l); overflow: hidden; }
.stage__media { background: var(--color-placeholder); }
.stage__media img { width: 100%; height: 100%; object-fit: cover; }
.stage__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 64px; opacity: .25; }
.stage__media img + .stage__fallback { display: none; }
.stage__shade { background: linear-gradient(90deg, rgba(20, 12, 30, .85) 0%, rgba(20, 12, 30, .45) 45%, rgba(20, 12, 30, 0) 75%), linear-gradient(0deg, rgba(20, 12, 30, .6) 0%, rgba(20, 12, 30, 0) 50%); }
.stage__body { position: absolute; left: 72px; right: 260px; bottom: 44px; display: flex; flex-direction: column; gap: 16px; }
.stage__kicker { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: -0.03em; opacity: .85; }
.stage__title { margin: 0; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stage__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.stage__play {
  position: absolute; right: 30px; bottom: 30px; width: 173px; height: 173px; border-radius: 50%;
  background: var(--color-lilac); color: var(--color-night); text-decoration: none;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-size: 28px; line-height: .95;
  transition: transform .15s ease;
}
.stage__play:hover { transform: scale(1.04); }
.stage__nav {
  position: absolute; top: 50%; width: 65px; height: 65px; margin-top: -32px; z-index: 2;
  border: 0; border-radius: 50%; background: var(--color-lilac); color: var(--color-night);
  display: inline-flex; align-items: center; justify-content: center;
}
.stage__nav svg { width: 20px; height: 21px; }
.stage__nav--prev { left: -32px; }
.stage__nav--next { right: -32px; }

/* Filterleiste */
.filterbar { margin: 0 -28px; padding: 12px 28px; }
.filterbar__inner { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.filterbar__group { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filterbar__label { font-weight: 700; white-space: nowrap; }
.filterbar__hint { width: 100%; }
.time-input { width: 84px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-pill); text-align: center; border: 2px solid var(--color-line-on-bg); background: transparent; color: var(--color-on-bg); font-family: var(--font-mono); font-weight: 700; }
.time-input::placeholder { color: var(--color-on-bg-muted); }

/* Reihen */
.rail { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 120px; }
.rail__head { display: flex; align-items: center; gap: 12px; }
.rail__head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.rail__count { font-family: var(--font-mono); font-size: 14px; font-weight: 400; color: var(--color-on-bg-muted); }
.rail__nav { margin-left: auto; display: flex; gap: 8px; }
.rail__nav .icon-btn { width: 48px; height: 48px; background: var(--color-lilac); color: var(--color-night); }
.rail__nav .icon-btn svg { width: 16px; height: 17px; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 349px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; scrollbar-width: thin;
}
.rail-card { scroll-snap-align: start; }

/* Kachel */
.item {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-l); background: var(--color-surface); color: var(--color-on-surface);
}
.item--done .item__media, .item--done .item__body { opacity: .62; }
.item--gone .item__media, .item--gone .item__body { opacity: .55; }
.item__media { position: relative; aspect-ratio: 16 / 9; background: var(--color-placeholder); }
.item__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item__media-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 30px; color: var(--color-lilac); opacity: .35; }
.item__media img ~ .item__media-fallback { display: none; }
.item__flag { position: absolute; top: 10px; right: 10px; }
.item__body { padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item__meta { margin: 0; font-family: var(--font-mono); font-size: 14px; letter-spacing: -0.03em; color: var(--color-on-surface-muted); }
.item__title { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  border: 0; background: transparent; padding: 0; text-decoration: none; color: var(--color-night);
  font-family: var(--font-display); font-size: 26px; line-height: 1;
}
.cta__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--color-night); color: var(--color-lilac); display: inline-flex; align-items: center; justify-content: center; }
.cta__dot svg { width: 10px; height: 10px; }
.item { position: relative; }
.kebab {
  width: 44px; height: 44px; margin-right: -8px; flex-shrink: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--color-night); font-size: 26px; line-height: 1; letter-spacing: 1px;
}
.kebab:hover, .kebab[aria-expanded="true"] { background: rgba(38, 25, 55, 0.1); }

/* Aktionsmenü legt sich über die Kachel */
.item__menu {
  position: absolute; inset: 0; z-index: 3; padding: 20px 16px; border-radius: var(--radius-l);
  background: rgba(38, 25, 55, 0.94); color: var(--color-lilac);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.item__menu-btn {
  min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-lilac);
  font-weight: 600; font-size: 16px; text-align: left;
}
.item__menu-btn:hover, .item__menu-btn:focus-visible { background: var(--color-lilac); color: var(--color-night); }
.item__menu-btn svg { stroke: currentColor; flex-shrink: 0; }
.item__menu-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--color-lilac); display: inline-flex; align-items: center; justify-content: center; }
.item--done .item__menu, .item--gone .item__menu { opacity: 1; }

/* Kompakte Kachel (Kategorien, Bereits gesehen) */
.item--compact .item__body { padding: 12px 14px 8px; gap: 4px; }
.item--compact .item__meta { font-size: 12px; }
.item--compact .item__title { font-size: 16px; -webkit-line-clamp: 2; }
.item--compact .item__foot { padding-top: 4px; }
.cta--dot { min-width: 44px; justify-content: flex-start; }
.item--compact .item__menu { padding: 12px 10px; gap: 2px; }
.item--compact .item__menu-btn { min-height: 44px; font-size: 14px; padding: 0 12px; }

/* Breite Kachel: Text liegt auf dem Bild (für Videos über 30 Minuten), 2 von 6 Spalten = ein Drittel der Reihe */
.item--wide { grid-column: span 2; min-height: 240px; justify-content: flex-end; background: var(--color-placeholder); color: var(--color-lilac); }
.item--wide .item__media { position: absolute; inset: 0; aspect-ratio: auto; }
.item--wide .item__media-fallback { font-size: 48px; }
.item--wide .item__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 140% at 0% 100%, rgba(31, 27, 24, .92) 0%, rgba(31, 27, 24, .55) 45%, rgba(31, 27, 24, 0) 80%);
}
.item--wide .item__body { position: relative; z-index: 1; flex: 0 0 auto; padding: 20px 20px 12px; max-width: 34em; }
.item--wide .item__meta { color: rgba(243, 224, 254, .85); }
.item--wide .item__title { color: var(--color-lilac); font-size: 22px; -webkit-line-clamp: 2; }
.item--wide .cta { color: var(--color-lilac); }
.item--wide .cta__dot { background: var(--color-lilac); color: var(--color-night); }
.item--wide .kebab { color: var(--color-lilac); }
.item--wide .kebab:hover, .item--wide .kebab[aria-expanded="true"] { background: rgba(243, 224, 254, .15); }

/* Reihenbreiten: groß = 4 sichtbar, kompakt = 6 sichtbar (Desktop) */
.rail--big .rail__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
.rail--compact .rail__track { grid-auto-columns: calc((100% - 5 * 16px) / 6); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* Leer-Zustände und Abschluss */
.empty {
  min-height: 240px; padding: 40px 24px; border: 2px dashed var(--color-line-on-bg); border-radius: var(--radius-l);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
}
.empty--hero { min-height: 420px; }
.empty__hello { margin: 0; color: var(--color-on-bg-muted); }
.empty__title { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.02em; }
.undecided { padding: 80px 16px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.undecided__title { margin: 0; font-size: clamp(34px, 5vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; max-width: 12em; }

/* ---------- Dialoge ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(10, 6, 16, .7); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.dialog {
  width: 100%; max-width: 640px; padding: 28px; border-radius: var(--radius-l);
  background: var(--color-surface); color: var(--color-on-surface);
  display: flex; flex-direction: column; gap: 20px;
}
.dialog .hint { color: var(--color-on-surface-muted); }
.dialog .error { color: #A3260A; }
.dialog .btn--primary { background: var(--color-night); border-color: var(--color-night); color: var(--color-lilac); }
.dialog .chip { border-color: var(--color-line-on-surface); color: var(--color-on-surface); }
.dialog .chip[aria-pressed="true"] { background: var(--color-night); border-color: var(--color-night); color: var(--color-lilac); }
.dialog .spinner { border-color: var(--color-line-on-surface); border-top-color: var(--color-night); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog__head h2 { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: normal; line-height: 1; }
.dialog__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--color-line-on-surface); }
.preview { display: flex; gap: 16px; padding: 14px; border-radius: var(--radius-m); background: rgba(38, 25, 55, 0.07); }
.preview .thumb { width: 200px; flex-shrink: 0; border-radius: var(--radius-s); }
.preview__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--color-placeholder); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 22px; color: var(--color-lilac); opacity: .4; }
.thumb__tl { position: absolute; top: 8px; left: 8px; }
.thumb__tr { position: absolute; top: 8px; right: 8px; }
.thumb__br { position: absolute; bottom: 8px; right: 8px; }

.admin-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.member { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--color-line-on-surface); }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--color-night); color: var(--color-lilac); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.member__name { flex: 1; min-width: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; padding: 14px 22px; border-radius: var(--radius-pill); background: var(--color-lilac); color: var(--color-night); font-family: var(--font-display); font-size: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .rail--big .rail__track { grid-auto-columns: calc((100% - 16px) / 2.15); }
  .rail--compact .rail__track { grid-auto-columns: calc((100% - 2 * 16px) / 3.3); }
  .item--wide { grid-column: span 2; }
  .stage { aspect-ratio: auto; min-height: 460px; }
  .stage__body { left: 32px; right: 32px; bottom: 200px; }
  .stage__play { width: 140px; height: 140px; font-size: 28px; right: 24px; bottom: 24px; }
  .stage__nav { display: none; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 599px) {
  .appbar { padding: 16px 16px 4px; gap: 10px; flex-wrap: nowrap; }
  .brand__logo { height: 52px; width: auto; }
.center-screen .brand__logo { height: 110px; }
.center-screen .brand__word { font-size: 72px; }
.legal__top .brand__word { font-size: 40px; }
.legal__top a { text-decoration: none; }
.brand__word { font-size: 30px; }
  .area-pill { min-height: 40px; font-size: 22px; padding: 0 14px 0 16px; }
  .area-pill__icon svg { width: 16px; height: 16px; }
  .add-btn__circle svg { width: 20px; height: 20px; }
  .appbar__actions { gap: 8px; margin-left: auto; }
  .search--compact { width: 44px; padding: 0 11px; }
  .search--compact input { width: 0; }
  .search--compact:focus-within { width: 170px; }
  .search--compact:focus-within input { width: auto; }
  .add-btn__circle { width: 44px; height: 44px; }
  .hide-s { display: none; }
  .content { padding: 12px 16px 48px; }
  .content--rails { gap: 28px; }
  .stage { min-height: 520px; }
  .stage__body { left: 20px; right: 20px; bottom: 150px; }
  .stage__play { width: 116px; height: 116px; font-size: 24px; right: 16px; bottom: 16px; }
  .filterbar { margin: 0 -16px; padding: 10px 16px; }
  .row--actions .btn { flex: 1 1 auto; }
  .filterbar__group { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  .rail__nav { display: none; }
  .rail--big .rail__track { grid-auto-columns: 86%; }
  .rail--compact .rail__track { grid-auto-columns: 46%; }
  .item--wide { grid-column: span 2; min-height: 220px; }
  .item--wide .item__title { font-size: 19px; }
  .preview { flex-direction: column; }
  .preview .thumb { width: 100%; }
  .dialog { padding: 20px; }
}

/* ---------- Zugang anfragen / Rechtliches ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card a { color: inherit; font-weight: 600; }
.legal-links { display: flex; gap: 24px; justify-content: center; font-size: 14px; }
.legal-links a { color: var(--color-on-bg-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.legal-links a:hover { color: var(--color-lilac); text-decoration: underline; }
a.nav-item { text-decoration: none; color: inherit; }

.legal { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }
.legal__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.legal__top .brand__logo { height: 44px; }
.legal__body { background: var(--color-surface); color: var(--color-on-surface); border-radius: var(--radius-l); padding: 36px; }
.legal__body h1 { margin: 0 0 8px; font-family: var(--font-display); font-weight: normal; font-size: 44px; line-height: 1; }
.legal__body h2 { margin: 32px 0 8px; font-size: 20px; }
.legal__body h3 { margin: 20px 0 6px; font-size: 16px; }
.legal__body p, .legal__body li { line-height: 1.6; }
.legal__body ul { padding-left: 20px; }
.legal__body a { color: inherit; font-weight: 600; }
.legal__meta { color: var(--color-on-surface-muted); font-size: 14px; }
@media (max-width: 599px) {
  .legal__body { padding: 22px; }
  .legal__body h1 { font-size: 34px; }
}

/* ---------- Testversion-Hinweis und Feedback ---------- */
.beta-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 3px 16px; background: var(--color-lilac); color: var(--color-night); font-size: 13px; line-height: 1.3; text-align: center;
}
.beta-bar__tag { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .04em; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--color-night); color: var(--color-lilac); }
.beta-bar__btn { min-height: 28px; padding: 0 10px; border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.textarea { font-family: var(--font-text); min-height: 84px; padding: 12px 16px; resize: vertical; line-height: 1.4; }
.fb-stars { display: flex; gap: 4px; }
.fb-star { width: 48px; height: 48px; border: 0; background: transparent; font-size: 36px; line-height: 1; color: rgba(38, 25, 55, .2); }
.fb-star.is-on { color: var(--color-night); }
.fb-star:hover { transform: scale(1.1); }
.fb-thanks { margin: 0; font-family: var(--font-display); font-size: 40px; line-height: 1; }
@media (max-width: 599px) {
  .beta-bar { gap: 6px; padding: 3px 12px; font-size: 12px; }
  .beta-bar__text { display: none; }
}

/* ---------- Testsystem deutlich kennzeichnen ---------- */
.beta-bar--test { background: #FF8A3D; color: #1E1029; }
.beta-bar--test .beta-bar__tag { background: #1E1029; color: #FF8A3D; }
.env-test body { box-shadow: inset 0 0 0 4px #FF8A3D; min-height: 100vh; }
.nav-item--file { cursor: pointer; }
.member__note { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: var(--radius-s); background: rgba(38, 25, 55, .08); font-size: 13px; }
.member--edit { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 0; }
