/* relaunch-base.css: gemeinsame Grundlage der oeffentlichen Relaunch-Seiten
   (Eventseite views/events/show-relaunch.ejs, Start/Artist/Venue in
   views/relaunch/). Gemeinsames klares Design mit Tokens
   aus input.css, keine eigenen Hex-Farben. Markenfarbe ueber --accent (Plattform >
   Veranstalter > Eventoverride, serverseitig in theme-vars aufgeloest). Klar statt
   Glow: keine Verlaeufe, kein Blur. Motion-Vertrag (VERBESSERUNGEN.md): nur
   transform/opacity, nur Pointer, Tastatur und Reduced Motion ohne Uebergang.
   Seitenspezifisches: event-relaunch.css, public-relaunch.css. */

.evr-body {
  --evr-font-body: var(--font-body);
  --evr-font-display: var(--font-display);
  --evr-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --evr-press: 140ms;
  --evr-dialog: 200ms;
  /* Konstant dunkle Logoflaeche: Betreiberlogos sind im Bestand fuer die dunkle
     Seite gewaehlt; es gibt kein zweites Logo-Feld (SHOP-ANALYSE.md). */
  --evr-logo-plate: var(--btn-primary-fg);
  /* Gemeinsamer Kontrast-Token mit serverseitigem Fallback. */
  --evr-on-accent: var(--text-on-accent);
}
[data-theme="light"] .evr-body { --evr-logo-plate: var(--text-primary); }

.evr { flex: 1 0 auto; width: 100%; padding-top: 80px; color: var(--text-secondary); font: 1rem/1.5 var(--evr-font-body); }

.evr *, .evr *::before, .evr *::after { box-sizing: border-box; }
.evr-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 48px; }
.evr p { margin: 0 0 16px; max-width: 65ch; }
.evr a { color: inherit; }
.evr [hidden] { display: none !important; }
.evr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.evr-h1, .evr-h2, .evr-h3, .evr-dialog-title { color: var(--text-primary); font-family: var(--evr-font-display); font-weight: 900; overflow-wrap: anywhere; }
.evr-h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 16px; }
.evr-h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; }
.evr-h3 { font-size: 1.125rem; line-height: 1.3; margin: 0 0 8px; }
.evr-lead { font-size: 1.125rem; line-height: 1.5; color: var(--text-primary); }
.evr-note { font-size: 0.875rem; color: var(--text-muted); }
.evr-note.is-error { color: var(--error); }
.evr-note.is-success { color: var(--success); }
.evr-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 16px 0 8px; }
.evr-num { font-variant-numeric: tabular-nums; }
.evr-pre { white-space: pre-line; }
.evr-prose { color: var(--text-secondary); max-width: 68ch; overflow-wrap: anywhere; }
.evr-prose img { max-width: 100%; height: auto; }
.evr-prose a { color: var(--accent); text-underline-offset: 4px; }

/* Bedienelemente: sichtbarer Fokus, mindestens 44 px */
.evr :where(a, button, input, select, summary, textarea):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.evr-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--radius-md);
  font: 700 1rem/1.2 var(--evr-font-body); text-decoration: none; cursor: pointer; touch-action: manipulation;
}
.evr-button-primary, .evr a.evr-button-primary { background: var(--accent); color: var(--evr-on-accent); }
.evr-button-quiet { background: var(--surface-highest); color: var(--text-primary); min-height: 44px; padding: 10px 16px; }
.evr-button:disabled, .evr-button.is-disabled, .evr-button[aria-disabled="true"] { background: var(--surface-highest); color: var(--text-muted); cursor: not-allowed; }
.evr-text-link { color: var(--text-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.evr-text-button { background: none; border: 0; padding: 0; min-height: 44px; color: var(--text-primary); font: 700 0.9375rem var(--evr-font-body); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.evr-input { width: 100%; min-height: 44px; background: var(--surface-input); color: var(--text-primary); border: 1px solid var(--border-hover); border-radius: var(--radius-md); padding: 10px 12px; font: 1rem var(--evr-font-body); }
.evr-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-highest); color: var(--text-primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.evr-badge.is-error { color: var(--error); }

.evr-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; }
.evr-segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; border: 0; margin: 0; padding: 4px; background: var(--surface-card); border-radius: var(--radius-lg); min-width: 0; }
.evr-segmented-legend { float: left; padding: 0 8px 0 4px; font-size: 0.8125rem; color: var(--text-muted); }
.evr-segment { position: relative; display: inline-flex; }
.evr-segment input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.evr-segment span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 700; color: var(--text-muted); }
.evr-segment input:checked + span { background: var(--surface-highest); color: var(--text-primary); }
.evr-segment input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.evr-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.evr-tags li { padding: 4px 12px; border-radius: 999px; background: var(--surface-card); font-size: 0.8125rem; font-weight: 700; color: var(--text-primary); }
.evr-tags li.is-mood { color: var(--text-muted); }

.evr-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.evr-avatar--ph { display: inline-grid; place-items: center; background: var(--surface-highest); color: var(--text-primary); font-weight: 900; }

.evr-logo-plate { display: inline-flex; align-items: center; flex-shrink: 0; background: var(--evr-logo-plate); padding: 8px 12px; border-radius: var(--radius-lg); max-width: 164px; }
.evr-logo-plate img { height: 40px; width: auto; max-width: 140px; object-fit: contain; display: block; }

.evr-gallery-grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.evr-gallery-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); cursor: pointer; }
.evr-gallery-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.evr-gallery-rest { position: absolute; inset: 0; display: grid; place-items: center; background: var(--overlay-bg); color: var(--text-primary); font: 900 1.25rem var(--evr-font-display); }
.evr-gallery-list { padding-left: 20px; }
.evr-rights { font-size: 0.75rem; color: var(--text-muted); }
.evr-page-dates { padding-block: 16px; }
.evr-section { padding-block: 32px; }

.evr-details { background: var(--surface-card); padding: 0 24px; border-radius: var(--radius-lg); margin-top: 8px; }
.evr-details summary { display: flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--text-primary); cursor: pointer; }
.evr-details[open] summary { margin-bottom: 8px; }
.evr-details > :last-child { padding-bottom: 16px; }

/* Dialog (Galerie): nativ, Fokusbegrenzung/Escape vom Browser */
.evr-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--surface-card); color: var(--text-primary); border: 0; border-radius: var(--radius-xl); padding: 24px; }
.evr-dialog::backdrop { background: var(--overlay-bg); }
.evr-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.evr-dialog-title { font-size: 1.25rem; margin: 0; }
.evr-lightbox-figure { margin: 0; }
.evr-lightbox-figure img { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; object-fit: contain; }
.evr-lightbox-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 0.875rem; color: var(--text-muted); }
.evr-lightbox-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }

/* Kopf (views/relaunch/partials/_header.ejs): klebt oben, klare Flaeche ohne Blur,
   Ghost-Grenze als Trennung. Menues als details, ohne JS bedienbar. */
.evr-body { --prh-h: 72px; }
.prh ~ main.evr { padding-top: 0; }
.prh-skip { position: absolute; left: 16px; top: -100px; z-index: 120; padding: 12px 16px; border-radius: var(--radius-md); background: var(--accent); color: var(--evr-on-accent); font: 700 0.9375rem var(--evr-font-body); }
.prh-skip:focus { top: 12px; }
.prh { position: sticky; top: 0; z-index: 100; background: var(--surface-base); border-bottom: 1px solid var(--border); font-family: var(--evr-font-body); }
.prh-bar { display: flex; align-items: center; gap: 24px; width: 100%; max-width: 1280px; height: var(--prh-h); margin-inline: auto; padding-inline: 48px; }
.prh a:where(:not(.evr-button)) { color: inherit; }
.prh :where(a, summary, button):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-md); }
.prh-logo { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.prh-logo img { height: 28px; width: auto; display: block; }
.prh-nav ul, .prh-panel ul { list-style: none; margin: 0; padding: 0; }
.prh-nav ul { display: flex; gap: 4px; }
.prh-nav a, .prh-org { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-md); color: var(--text-muted); font-size: 0.9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.prh-nav a:hover { color: var(--text-primary); }
.prh-nav a[aria-current="page"], .prh-org.is-current { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.prh-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.prh-org { color: var(--text-primary); }
.prh-search { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.prh-icon, .prh-menu > summary { position: relative; display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--radius-md); color: var(--text-primary); font: 700 0.8125rem var(--evr-font-body); letter-spacing: 0.06em; cursor: pointer; list-style: none; }
.prh-menu > summary::-webkit-details-marker { display: none; }
.prh-icon:hover, .prh-menu > summary:hover, .prh-menu[open] > summary { background: var(--surface-card); }
.prh-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prh-dot.hidden { display: none; }
.prh-menu { position: relative; }
.prh-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px; border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--border); color: var(--text-primary); }
.prh-panel a:where(:not(.evr-button)), .prh-panel button:where(:not(.evr-button)) { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--radius-md); background: none; color: var(--text-primary); font: 700 0.9375rem var(--evr-font-body); text-align: left; text-decoration: none; cursor: pointer; }
.prh-panel a:where(:not(.evr-button)):hover, .prh-panel button:where(:not(.evr-button)):hover { background: var(--surface-highest); }
.prh-panel a[aria-current] { color: var(--accent); }
.prh-panel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--border); }
.prh-who { display: flex; flex-direction: column; gap: 2px; margin: 0 0 4px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 0.875rem; overflow-wrap: anywhere; }
.prh-who small { font-size: 0.75rem; color: var(--text-muted); }
.prh-login { min-height: 44px; padding: 10px 18px; }
/* Farbschema im Kopf: Symbol nach gewaehlter Vorgabe (public-theme.js setzt data-theme-preference). */
.prh-theme [data-theme-icon] { display: none; }
html:not([data-theme-preference]) .prh-theme [data-theme-icon="system"],
html[data-theme-preference="system"] .prh-theme [data-theme-icon="system"],
html[data-theme-preference="light"] .prh-theme [data-theme-icon="light"],
html[data-theme-preference="dark"] .prh-theme [data-theme-icon="dark"] { display: block; }
.prh-theme-panel { min-width: 180px; }
.prh-theme-panel button[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.prh-mobile { display: none; }
.prh-menu-mark { display: none; }
.prh-mobile > summary { padding: 0 14px; letter-spacing: 0; font-size: 0.9375rem; background: var(--surface-card); }
.prh-mobile .prh-panel { position: fixed; left: 16px; right: 16px; top: calc(var(--prh-h) + 8px); min-width: 0; max-height: calc(100vh - var(--prh-h) - 24px); overflow-y: auto; padding: 16px; }
.prh-search-form { display: flex; gap: 8px; margin-bottom: 12px; }
.prh-search-form .evr-input { flex: 1 1 auto; width: auto; min-width: 0; }
.prh-mobile .prh-search-form .evr-button { width: auto; margin-top: 0; flex: 0 0 auto; }
.prh-mobile-list a { font-size: 1.25rem; min-height: 52px; }
.prh-mobile-langs { display: flex; gap: 16px; margin: 12px; }
.prh-mobile-langs a { width: auto; padding: 8px 0; }
.prh-mobile .evr-button { width: 100%; margin-top: 8px; }

/* Fuss (views/relaunch/partials/_footer.ejs) */
.prf { margin-top: 48px; background: var(--surface-card); color: var(--text-secondary); font-family: var(--evr-font-body); }
.prf a { color: inherit; }
.prf-main { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-block: 56px 40px; }
.prf-logo { display: inline-flex; min-height: 44px; align-items: center; }
.prf-logo img { height: 30px; width: auto; display: block; }
.prf-tagline { max-width: 34ch; margin: 12px 0 24px; color: var(--text-muted); }
.prf-title { margin: 0 0 12px; color: var(--text-primary); font: 900 1rem/1.3 var(--evr-font-display); }
.prf-news { max-width: 420px; }
.prf-news .evr-note { margin: 0 0 12px; }
.prf-news-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.prf-news-fields .evr-input { flex: 1 1 180px; width: auto; }
.prf-col ul { list-style: none; margin: 0; padding: 0; }
.prf-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-muted); font-weight: 700; text-decoration: none; }
.prf-col a:hover { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.prf :where(a, button, input):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.prf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-muted); }
.prf-bottom p { margin: 0; }
.prf-heart { color: var(--error); }

/* Motion: Pointer bekommt kurze Uebergaenge; Tastatur sofort */
.evr-button, .evr-step, .evr-gallery-thumb { transition: none; }
@media (prefers-reduced-motion: no-preference) {
html[data-input="pointer"] .evr-button, html[data-input="pointer"] .evr-step { transition: transform var(--evr-press) var(--evr-ease); }
html[data-input="pointer"] .evr-button:not(:disabled):not(.is-disabled):not([aria-disabled="true"]):active,
html[data-input="pointer"] .evr-step:not(:disabled):active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  html[data-input="pointer"] .evr-gallery-thumb { transition: transform 180ms var(--evr-ease); }
  html[data-input="pointer"] .evr-gallery-thumb:hover { transform: translateY(-2px); }
}
html[data-input="pointer"] .evr-dialog[open] { opacity: 1; transform: scale(1); transition: opacity var(--evr-dialog) var(--evr-ease), transform var(--evr-dialog) var(--evr-ease); }
@starting-style {
  html[data-input="pointer"] .evr-dialog[open] { opacity: 0; transform: scale(0.98); }
}
}
@media (max-width: 1100px) {
  .prh-org { display: none; }
}
@media (max-width: 900px) {
  .evr-wrap { padding-inline: 24px; }
  .prh-bar { padding-inline: 24px; gap: 8px; }
  .prh-nav, .prh-lang, .prh-search, .prh-login { display: none; }
  .prh-mobile { display: block; }
  .prf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .prf-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .evr-wrap { padding-inline: 16px; }
  .prh-bar { padding-inline: 16px; }
  .prh-logo img { height: auto; max-height: 24px; max-width: 112px; }
  .prh-tools > a.prh-icon { display: none; }
  .prh-mobile > summary > span { display: none; }
  .prh-menu-mark { display: block; }
  .prh-mobile > summary { padding-inline: 10px; }
  .prf-main { grid-template-columns: minmax(0, 1fr); }
  .evr-top { flex-wrap: wrap; }
  .evr-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evr-details { padding: 0 16px; }
}
