:root {
  --bg: #080808;
  --bg-soft: #0d0d0d;
  --card: #151515;
  --card-hover: #1b1b1b;
  --border: #333333;
  --border-soft: #2a2a2a;
  --text: #ffffff;
  --muted: #aaaaaa;
  --accent: #c4a35a;
  --accent-hover: #d8b66a;
  --accent-dim: rgba(196, 163, 90, 0.14);
  --danger: #c45c5c;
  --danger-hover: #d56b6b;
  --success: #5d9e72;
  --warning: #c4a35a;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --header-h-compact: 68px;
  --header-scale: 2;
  --header-h: calc(var(--header-h-compact) * var(--header-scale));
  --header-ease: 0.28s ease;
  --max: 1280px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html.header-compact {
  --header-scale: 1;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196, 163, 90, 0.08), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

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

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

h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.15rem;
  margin: 0 0 0.8rem;
}

p {
  margin: 0 0 0.8rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.logo-splash {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.logo-splash.is-visible {
  opacity: 1;
}

.logo-splash img {
  width: min(340px, 72vw);
  height: auto;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  filter:
    drop-shadow(0 0 1px #fff)
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.75))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.4))
    drop-shadow(0 0 42px rgba(255, 255, 255, 0.18));
}

html.logo-splash-done .logo-splash,
.logo-splash[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .logo-splash {
    display: none;
  }

  :root {
    --header-ease: 0s;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: #080808;
  overflow: hidden;
  transition: height var(--header-ease);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.noscript-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: calc(0.75rem * var(--header-scale));
  color: var(--text);
  min-width: 0;
  transition: gap var(--header-ease);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: calc(40px * var(--header-scale));
  height: calc(40px * var(--header-scale));
  min-width: calc(40px * var(--header-scale));
  flex: 0 0 calc(40px * var(--header-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width var(--header-ease), height var(--header-ease), min-width var(--header-ease), flex-basis var(--header-ease);
}

.brand-mark img {
  display: block;
  width: calc(40px * var(--header-scale));
  height: calc(40px * var(--header-scale));
  max-width: calc(40px * var(--header-scale));
  max-height: calc(40px * var(--header-scale));
  object-fit: contain;
  object-position: center;
  transition: width var(--header-ease), height var(--header-ease), max-width var(--header-ease), max-height var(--header-ease);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-kicker {
  font-size: calc(0.68rem * var(--header-scale));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: font-size var(--header-ease);
}

.brand-title {
  font-weight: 700;
  font-size: calc(1rem * var(--header-scale));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size var(--header-ease);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}

@media (min-width: 721px) {
  .header-actions {
    gap: calc(0.55rem * var(--header-scale));
    transition: gap var(--header-ease);
  }
}

.header-user {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: min(14rem, 36vw);
  color: var(--accent);
  font-weight: 600;
  font-size: calc(0.95rem * var(--header-scale));
  line-height: 1.2;
  transition: font-size var(--header-ease);
}

.header-user-full {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-initial {
  display: none;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: width var(--header-ease), height var(--header-ease), border-radius var(--header-ease), gap var(--header-ease);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: width var(--header-ease), height var(--header-ease);
}

@media (min-width: 721px) {
  .nav-toggle {
    width: calc(46px * var(--header-scale));
    height: calc(46px * var(--header-scale));
    border-radius: calc(12px * var(--header-scale));
    gap: calc(5px * var(--header-scale));
  }

  .nav-toggle span {
    width: calc(18px * var(--header-scale));
    height: calc(2px * var(--header-scale));
  }
}

.site-nav[hidden],
.nav-backdrop[hidden] {
  display: none;
}

.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: calc(100% - min(360px, 92vw));
  background: rgba(0, 0, 0, 0.48);
  z-index: 90;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  width: min(360px, 92vw);
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-left: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.nav-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0 1.2rem max(1.2rem, env(safe-area-inset-bottom));
}

.nav-panel a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  padding: 0.42rem 0.9rem;
  border-radius: 10px;
  font-size: 1.02rem;
}

.nav-icon {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  text-align: center;
  line-height: 1;
  font-size: 1.05rem;
}

.nav-icon-wide {
  flex-basis: 1.6rem;
  width: 1.6rem;
}

.nav-icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0 auto;
}

.nav-icon-add {
  color: var(--danger);
}

.nav-panel a:hover .nav-icon-add,
.noscript-nav a:hover .nav-icon-add {
  color: var(--danger);
}

.nav-panel a:hover {
  background: var(--card-hover);
  color: var(--accent);
}

.nav-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding: 1.2rem 1.2rem 0.6rem;
}

.nav-close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-user {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0.9rem 0.6rem;
}

.nav-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.15rem 0 0.15rem;
  padding: 0.15rem 0.9rem 0.45rem 3.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-toggle-row > a {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-toggle-row .stat-switch {
  margin-right: 0.15rem;
}

.nav-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.55rem 0.9rem;
  width: auto;
}

.nav-count {
  display: inline-flex;
  min-width: 1.4rem;
  justify-content: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
}

.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1rem 3rem;
  min-height: calc(100vh - var(--header-h) - 80px);
  min-width: 0;
  width: 100%;
}

body.page-calendar {
  max-width: 100%;
  overflow-x: hidden;
}

.calendar-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 1.4rem 1rem 2rem;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.footer-sep {
  margin: 0 0.35em;
}

.footer-online {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-footer p {
    line-height: 1.65;
  }
}

.legal-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0.2rem 0 1.1rem;
}

.legal-contact {
  display: block;
  width: auto;
  max-width: min(100%, 18rem);
  height: auto;
  margin: 0.35rem 0 0.2rem;
}

.impressum address {
  font-style: normal;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.impressum h2 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.45rem;
}

.impressum p {
  line-height: 1.55;
}

.impressum ul {
  margin: 0 0 1rem 1.15rem;
  padding: 0;
  line-height: 1.55;
}

.impressum li {
  margin: 0.2rem 0;
}

.check a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.impressum .form {
  margin-top: 1.4rem;
}

.donate-page h1,
.donate-page .donate-kicker {
  text-align: center;
}

.donate-page h2.donate-kicker {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.donate-page h2 {
  color: var(--accent);
}

.donate-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.15rem 0 1.45rem;
}

.donate-paypal-label {
  margin: 0 0 0.7rem;
  text-align: center;
  color: var(--text);
}

#donate-button {
  line-height: 0;
}

#donate-button img {
  max-width: 100%;
  height: auto;
}

.donate-signoff {
  margin-top: 1.5rem;
  line-height: 1.45;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.page-narrow {
  max-width: 640px;
  margin: 0 auto;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.profile-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.profile-tab:hover:not(.is-active) {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #16120a;
  font-weight: 700;
}

.profile-tab .telegram-dot {
  margin-left: 0;
  margin-right: 0.4rem;
}

.profile-panel[hidden] {
  display: none !important;
}

.emoji-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.emoji-admin-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  padding: 1.8rem 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.emoji-admin-tile.is-reserved {
  border-color: #5a3030;
}

.emoji-admin-glyph {
  font-size: 2.2rem;
  line-height: 1;
}

.emoji-admin-delete {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.emoji-admin-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.emoji-admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.emoji-admin-input {
  width: 6rem;
  min-height: 3.2rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101010;
  color: var(--text);
  font: inherit;
  font-size: 1.8rem;
  text-align: center;
}

.emoji-admin-form .btn {
  min-height: 3.2rem;
}

.telegram-panel [hidden] {
  display: none !important;
}

.telegram-panel .telegram-actions .btn {
  max-width: 100%;
}

@media (max-width: 700px) {
  .telegram-panel .telegram-actions .btn {
    width: 100%;
  }
}

.telegram-settings {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.telegram-settings h3 {
  margin: 0 0 0.35rem;
}

.telegram-setting {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.telegram-setting-label {
  flex: 1;
  min-width: 0;
}

.telegram-settings .telegram-setting-label.is-clubtermine {
  color: var(--accent);
}

.telegram-setting-status {
  flex: 0 0 auto;
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
}

.telegram-setting-status.is-error {
  color: #e07070;
}

.telegram-switch {
  position: relative;
  flex: 0 0 auto;
  width: 3.1rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #3a3a3a;
  cursor: pointer;
}

.telegram-switch[aria-checked="true"] {
  background: var(--accent);
}

.telegram-switch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.telegram-switch-knob {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.34rem;
  height: 1.34rem;
  border-radius: 50%;
  background: #1c1c1c;
  transition: transform 0.15s ease;
}

.telegram-switch[aria-checked="true"] .telegram-switch-knob {
  transform: translateX(1.4rem);
  background: #16120a;
}

@media (max-width: 700px) {
  .telegram-setting {
    flex-wrap: wrap;
  }

  .telegram-setting-status {
    order: 3;
    width: 100%;
    white-space: normal;
  }
}

.page-wide {
  width: 100%;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.muted {
  color: var(--muted);
}

.login-account {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101010;
}

.login-pattern-card h1,
.login-pattern-card > .muted {
  text-align: center;
}

.login-email {
  margin: 0.35rem 0 0.15rem;
  max-width: 100%;
  padding: 0 0.15rem;
  text-align: center;
  font-size: clamp(1.2rem, 4.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.login-pattern-form {
  justify-items: center;
}

.login-pattern-form .pattern-lock {
  margin-top: 0.35rem;
}

.login-pattern-form .check {
  width: auto;
  max-width: 100%;
  justify-content: center;
  text-align: left;
}

.login-pattern-form .check span {
  min-width: 0;
}

.login-pattern-form .btn {
  width: min(280px, 100%);
}

.login-pattern-form .login-change-email {
  width: auto;
  max-width: 100%;
  margin-top: 0.15rem;
  min-height: 42px;
  padding: 0.4rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border-color: #3d3d3d;
}

.login-pattern-form .login-change-email:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: #5a4a28;
}

.login-account strong {
  word-break: break-all;
}

.login-account a {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.back-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.flash {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 auto 1rem;
  max-width: var(--max);
  border: 1px solid var(--border);
}

.flash p {
  margin: 0.2rem 0;
}

.flash-error {
  background: rgba(196, 92, 92, 0.12);
  border-color: #5a3030;
}

.flash-success {
  background: rgba(93, 158, 114, 0.12);
  border-color: #2f4a38;
}

.confirm-success {
  background:
    linear-gradient(180deg, rgba(196, 163, 90, 0.2), rgba(93, 158, 114, 0.1));
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1.3rem;
}

.confirm-success h1 {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 1.45rem;
}

.confirm-success h1::before {
  content: "✓ ";
}

.confirm-success p {
  margin: 0.75rem 0 0;
  color: var(--text);
  line-height: 1.55;
}

.flash-info,
.flash-warning {
  background: var(--accent-dim);
  border-color: #5a4a28;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #1a1a1a;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--card-hover);
  color: var(--text);
  border-color: #4a4a4a;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #16120a;
  font-weight: 650;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #16120a;
}

.btn-accent,
.btn-success {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: transparent;
  border-color: var(--danger);
  color: #e7b3b3;
}

.btn-danger:hover {
  background: rgba(196, 92, 92, 0.12);
  color: #fff;
}

.btn-icon {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.btn-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.event-delete-form {
  display: inline-flex;
  margin: 0;
}

.clubraeume-toggle {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.form-actions .clubraeume-toggle .check {
  min-height: 44px;
  margin: 0;
}

.btn-ghost {
  background: transparent;
}

.btn-small {
  min-height: 38px;
  padding: 0.3rem 0.75rem;
  font-size: 0.88rem;
  width: fit-content;
}

.btn.is-static {
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-loading,
.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form label,
.form-row label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-hint {
  margin: 0;
  color: #8f8f8f;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 400;
}

.address-fields > .field-hint {
  margin-bottom: -0.45rem;
}

.form input,
.form textarea,
.form select,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.8rem;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.password-field {
  position: relative;
  display: block;
  min-width: 0;
}

.form .password-field input {
  padding-right: 2.9rem;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 2.65rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 9px 9px 0;
  background: transparent;
  color: #8f8f8f;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

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

.password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .password-toggle-eye-off {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-eye {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-eye-off {
  display: block;
}

.form [data-club-custom][hidden] {
  display: none !important;
}

.form:has(select[data-club-choice] option[data-new-club]:checked) [data-club-custom] {
  display: grid !important;
}

.form input[readonly] {
  color: var(--muted);
  background: #0c0c0c;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-start-block {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.form-row.event-times:not(:has([name="has_end"]:checked)) {
  grid-template-columns: 1fr;
}

.form-row.event-times:not(:has([name="has_end"]:checked)) .event-end-field {
  display: none;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.form-upload-hint {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #5a4a28;
  background: var(--accent-dim);
  color: var(--text);
  font-size: 0.92rem;
}

.check {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  color: var(--text) !important;
}

.check input {
  width: 22px;
  height: 22px;
  min-height: 0;
}

.form > .check span {
  flex: 1 1 auto;
  min-width: 0;
}

.nickname-field {
  display: grid;
  gap: 0.35rem;
}

.nickname-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
}

.nickname-line > input[type="text"] {
  width: auto;
  flex: 1 1 12rem;
  min-width: 0;
}

.nickname-line > .check {
  flex: 0 0 auto;
  white-space: nowrap;
}

.form input:disabled {
  color: var(--muted);
  background: #0c0c0c;
  cursor: not-allowed;
}

.location-suggest {
  position: relative;
}

.location-place-open {
  margin: 0 0 0.7rem;
}

.place-choice-summary {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #6e5818;
  border: 1px solid #8d7030;
  color: #fff8e8;
}

.place-choice-summary[hidden] {
  display: none;
}

.place-choice-heading {
  margin: 0;
  color: #ffe7b0;
  font-size: 0.95rem;
  font-weight: 650;
}

.place-choice-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 0;
}

.place-choice-value {
  color: #fff8e8;
  overflow-wrap: anywhere;
}

.place-choice-link {
  flex: 0 0 auto;
  background: #1a1408;
  border-color: #1a1408;
  color: #f6e7c3;
}

.place-choice-link:hover {
  background: #2a2110;
  border-color: #2a2110;
  color: #fff8e8;
}

.place-choice-link[hidden] {
  display: none;
}

.place-choice-coords {
  margin: 0;
  color: #fff1cc;
  font-size: 0.88rem;
  white-space: nowrap;
}

.place-choice-coords[hidden] {
  display: none;
}

.location-suggest-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  margin: 0.2rem 0 0;
  padding: 0.35rem;
  list-style: none;
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow: auto;
}

.location-suggest-menu button {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.location-suggest-menu button:hover,
.location-suggest-menu button:focus-visible {
  background: var(--card-hover);
  color: var(--accent);
  outline: none;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

legend {
  color: var(--accent);
  padding: 0 0.4rem;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.tab.is-active {
  color: #16120a;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}

.calendar-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.calendar-nav-center {
  text-align: center;
}

.calendar-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.view-dropdown {
  position: relative;
}

.view-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 40;
}

.view-dropdown-menu a {
  display: block;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  text-align: left;
}

.view-dropdown-menu a:hover,
.view-dropdown-menu a.is-active {
  background: var(--card-hover);
  color: var(--accent);
}

.month-block.has-busy-cols {
  overflow: hidden;
  overflow: clip;
}

.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: var(--month-cols, repeat(7, minmax(0, 1fr)));
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.month-grid {
  grid-auto-rows: minmax(0, 1fr);
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.month-weekdays {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.month-weekdays .is-slim {
  font-size: 0.72rem;
  letter-spacing: 0;
}

.month-weekdays .is-wide {
  color: var(--text);
  font-weight: 650;
}

.month-cell {
  position: relative;
  min-height: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.12rem;
  box-sizing: border-box;
  overflow: hidden;
}

.month-cell.is-slim {
  padding: 0.15rem 0.12rem;
}

.month-cell.is-slim .month-cell-date {
  font-size: 0.72rem;
  text-align: center;
  left: 0;
  right: 0;
}

.month-flyers {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 0.2rem;
  grid-auto-rows: minmax(0, 1fr);
  justify-items: center;
}

.month-flyer {
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c0c0c;
  border-radius: 6px;
  overflow: hidden;
}

.month-flyer img,
.month-flyer .flyer-fallback {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.flyer-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 4.5rem;
  padding: 0.45rem;
  text-align: center;
  line-height: 1.25;
  font-size: 0.75rem;
  background: #0c0c0c;
  color: #f2f2f2;
}

.flyer-frame .flyer-fallback,
.event-list-flyer .flyer-fallback {
  width: 140px;
  min-height: 120px;
}

.flyer-frame-sm .flyer-fallback {
  width: 92px;
  min-height: 72px;
}

.event-detail-flyer .flyer-fallback {
  width: 100%;
  min-height: 180px;
  font-size: 1rem;
}

html:has(body.page-month) {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

body.page-month {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

body.page-month .site-header,
body.page-month .site-footer {
  flex-shrink: 0;
}

body.page-month .site-main {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: var(--max);
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-direction: column;
  padding-top: 0.8rem;
  padding-bottom: 0.5rem;
}

body.page-month .calendar-wrap,
body.page-month .month-block {
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow: clip;
  touch-action: pan-y;
}

body.page-month .calendar-nav {
  flex-shrink: 0;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

body.page-month .calendar-nav .btn,
body.page-month .calendar-jump input[type="date"] {
  min-height: 36px;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

body.page-month .calendar-jump {
  margin-top: 0.3rem;
}

body.page-month .month-block .week-heading,
body.page-month .month-weekdays {
  flex-shrink: 0;
}

body.page-month .month-block .week-heading {
  margin-bottom: 0.35rem;
}

body.page-month .site-footer {
  padding-top: 0.45rem;
  padding-bottom: 0.55rem;
}

@media (max-height: 760px) {
  body.page-month .calendar-jump {
    display: none;
  }

  body.page-month .site-main {
    padding-top: 0.45rem;
    padding-bottom: 0.3rem;
  }

  body.page-month .month-block .week-heading {
    margin-bottom: 0.25rem;
  }
}

@media (max-height: 620px) {
  body.page-month .calendar-nav .btn {
    min-height: 32px;
    font-size: 0.85rem;
  }

  body.page-month .site-footer {
    padding-top: 0.2rem;
    padding-bottom: 0.25rem;
  }

  body.page-month .site-footer p {
    margin: 0;
  }
}

.month-cell:not(.has-events) .month-cell-date {
  margin-bottom: 0;
}

.month-cell.is-outside:not(.is-today):not(.has-events) {
  opacity: 0.38;
}

.month-cell.is-today,
.day-card.is-today,
.event-list-card.is-today {
  background: #2a2316;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
  animation: today-glow 2.8s ease-in-out infinite;
}

@keyframes today-glow {
  0%, 100% {
    border-color: rgba(196, 163, 90, 0.35);
    box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.25), var(--shadow);
  }
  50% {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(196, 163, 90, 0.28), var(--shadow);
  }
}

@keyframes today-glow-invert {
  0%, 100% {
    background: #a8883e;
    border-color: #2a2316;
    box-shadow: 0 0 0 1px rgba(42, 35, 22, 0.55);
  }
  50% {
    background: var(--accent-hover);
    border-color: #2a2316;
    box-shadow: 0 0 0 1px #2a2316, 0 0 16px rgba(216, 182, 106, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .month-cell.is-today,
  .day-card.is-today,
  .event-list-card.is-today,
  .year-day.is-today,
  .year-legend-swatch.is-today {
    animation: none;
  }
}

.month-cell-date {
  position: absolute;
  top: 0.12rem;
  left: 0.16rem;
  z-index: 1;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  margin: 0;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.calendar-jump {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.calendar-jump input[type="date"] {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--text);
  font: inherit;
  padding: 0.4rem 0.7rem;
}

.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;
}

.nav-arrow {
  justify-self: start;
  width: max-content;
}

.nav-arrow-next {
  justify-self: end;
}

.week-block {
  margin-bottom: 1.8rem;
}

.week-heading {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.year-scroll {
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 0.35rem;
}

.year-board {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 62rem;
}

.year-row {
  display: grid;
  grid-template-columns: 7.4rem repeat(31, minmax(1.55rem, 1fr));
  gap: 0.18rem;
  align-items: stretch;
}

.year-month-name {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-right: 0.45rem;
  background: var(--bg);
  box-shadow: 8px 0 10px var(--bg);
  font-weight: 650;
}

.year-month-name a {
  position: relative;
  color: var(--text);
}

.year-month-num {
  display: none;
}

.year-month-name a:hover,
.year-row.is-current .year-month-name a {
  color: var(--accent);
}

@media (max-width: 720px) {
  .year-board {
    min-width: 56.4rem;
  }

  .year-row {
    grid-template-columns: 1.85rem repeat(31, minmax(1.55rem, 1fr));
  }

  .year-month-name {
    justify-content: center;
    padding-right: 0.15rem;
  }

  .year-month-name a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

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

  .year-month-num {
    display: block;
  }
}

.year-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.12rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.year-day-open {
  appearance: none;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

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

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

.year-day.is-weekend:not(.is-today) {
  background: #060606;
  border-color: #1a1a1a;
}

.year-day.is-weekend.has-events:not(.is-today) {
  background: #16130e;
  border-color: rgba(196, 163, 90, 0.45);
}

.year-day.is-past:not(.has-events):not(.is-today) {
  color: #6e6e6e;
}

.year-day.has-events {
  background: #2a2316;
  border-color: rgba(196, 163, 90, 0.72);
  color: var(--text);
}

.year-day.has-events:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.year-day.is-today {
  background: var(--accent);
  border-color: #2a2316;
  color: #2a2316;
  opacity: 1;
  box-shadow: 0 0 0 1px #2a2316;
  animation: today-glow-invert 2.8s ease-in-out infinite;
}

.year-day.is-today .year-day-count {
  color: #2a2316;
}

.year-day.is-today.has-own-club .year-day-count {
  color: #e10600;
}

.year-day.is-today.has-events:hover,
.year-day.is-today.has-events:hover .year-day-count {
  border-color: #2a2316;
  color: #2a2316;
}

.year-day.is-today.has-own-club.has-events:hover .year-day-count {
  color: #e10600;
}

.year-day.has-club .year-day-num {
  color: #3b82f6;
}

.year-day-num.has-terminart,
.year-legend-num.has-terminart {
  color: var(--terminart-color);
}

.year-day.has-club .year-day-num.has-terminart,
.year-day.is-today .year-day-num.has-terminart,
.year-day.has-events:hover .year-day-num.has-terminart,
.year-day.is-today.has-events:hover .year-day-num.has-terminart,
.year-legend-swatch.has-club .year-legend-num.has-terminart {
  color: var(--terminart-color);
}

.year-day-num.has-terminart-mix {
  display: inline-block;
  background-image: var(--terminart-gradient);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.year-day.has-club .year-day-num.has-terminart-mix,
.year-day.is-today .year-day-num.has-terminart-mix,
.year-day.has-events:hover .year-day-num.has-terminart-mix,
.year-day.is-today.has-events:hover .year-day-num.has-terminart-mix {
  display: inline-block;
  background-image: var(--terminart-gradient);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.year-day-count {
  margin-top: 0.16rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
}

.year-day.has-own-club .year-day-count {
  color: #e10600;
}

.year-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.15rem;
  margin-top: 0.95rem;
}

.year-legend-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.year-legend ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.year-legend-arten {
  flex: 1 0 100%;
}

.year-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.year-legend-event-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.16rem;
  line-height: 1.15;
}

.year-legend-event-day {
  color: var(--text);
  font-weight: 650;
}

.year-legend-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 2.15rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
}

.year-legend-count {
  margin-top: 0.12rem;
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 700;
}

.year-legend-weekend {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

.year-legend-weekend .year-legend-swatch {
  width: 1.7rem;
  height: 1.7rem;
}

.year-legend-swatch.is-weekend {
  background: #060606;
  border-color: #1a1a1a;
}

.year-legend-swatch.has-events {
  background: #2a2316;
  border-color: rgba(196, 163, 90, 0.72);
}

.year-legend-swatch.has-club .year-legend-num {
  color: #3b82f6;
}

.year-legend-swatch.has-own-club .year-legend-count {
  color: #e10600;
}

.year-legend-swatch.is-today {
  background: var(--accent);
  border-color: #2a2316;
  color: #2a2316;
  box-shadow: 0 0 0 1px #2a2316;
  animation: today-glow-invert 2.8s ease-in-out infinite;
}

.table-view-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}

.table-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  margin: -0.35rem 0;
  color: var(--muted);
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.table-print-btn:hover,
.table-print-btn:focus-visible {
  color: var(--accent);
  background: var(--accent-dim);
}

.table-print-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.days-grid {
  display: grid;
  gap: 1rem;
}

.days-grid[data-count="1"] { grid-template-columns: 1fr; }
.days-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.days-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.days-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.days-grid[data-count="5"],
.days-grid[data-count="6"],
.days-grid[data-count="7"] { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.day-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 280px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.day-zoom {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.84);
  color: #f4f4f4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.day-zoom svg {
  width: 1.55rem;
  height: 1.55rem;
}

.day-zoom:hover,
.day-zoom:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.day-zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.day-zoom-backdrop[hidden] {
  display: none;
}

.day-zoom-shell {
  position: relative;
  width: max-content;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
}

.day-zoom-frame {
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  color: var(--text);
}

.day-zoom-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.day-zoom-heading {
  min-width: 0;
}

.day-zoom-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.day-zoom-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.day-zoom-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem;
  background: var(--card-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.day-zoom-facts {
  min-width: 10rem;
  max-width: 18rem;
  flex: 1 1 12rem;
}

.day-zoom-name {
  margin: 0;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.day-zoom-facts p {
  margin: 0.35rem 0 0;
  line-height: 1.35;
}

.day-zoom-facts .day-zoom-name {
  margin-top: 0;
}

.day-zoom-club {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.day-zoom-place {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.day-zoom-place:hover,
.day-zoom-place:focus-visible {
  color: var(--accent);
}

.day-zoom-date {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.day-zoom-flyer {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.day-zoom-flyer .month-flyer {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
}

.day-zoom-flyer .gruppen-favorit {
  top: 0.28rem;
  left: 0.28rem;
  z-index: 4;
  transform: none;
}

.day-zoom-flyer .gruppen-favorit img {
  width: 1.75rem;
  height: 1.75rem;
}

.day-zoom-flyer .month-virtual-flyer {
  font-size: calc(20px / var(--day-zoom-scale, 2));
}

.day-zoom-close {
  flex: 0 0 auto;
  margin: -0.2rem -0.35rem 0 0;
}

body.day-zoom-open {
  overflow: hidden;
}

.day-head {
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border-soft);
}

.day-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.day-until {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.event-until {
  color: var(--muted);
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.event-until::before {
  content: " · ";
  font-weight: 400;
}

.day-date {
  color: var(--muted);
  font-size: 0.95rem;
}

.day-empty {
  color: #666;
  font-size: 0.92rem;
}

.flyers {
  display: grid;
  gap: 0.8rem;
}

.flyers[data-count="1"] {
  grid-template-columns: 1fr;
}

.flyers[data-count="2"] {
  grid-template-columns: 1fr;
}

.flyers[data-count="3"],
.flyers[data-count="4"],
.flyers[data-count="5"],
.flyers[data-count="6"] {
  grid-template-columns: 1fr;
}

.flyer-card {
  display: grid;
  gap: 0.55rem;
  color: var(--text);
  min-width: 0;
  justify-items: center;
}

.flyer-card:hover,
.flyer-card-link:hover {
  color: var(--text);
}

.flyer-card-link {
  display: grid;
  gap: 0.55rem;
  color: inherit;
  min-width: 0;
  width: 100%;
  justify-items: center;
}

.flyer-frame {
  display: inline-flex;
  max-width: 100%;
  background: #0c0c0c;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.flyer-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

.flyer-frame-sm img {
  max-height: 140px;
}

.day-card:has(.flyers) {
  min-height: 0;
}

.flyer-continue {
  grid-template-columns: 92px 1fr;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.4rem;
  background: #101010;
}

.flyer-title {
  display: block;
  font-weight: 650;
}

.flyer-club {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.25;
}

.flyer-time,
.flyer-continue-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.event-detail {
  display: grid;
  gap: 1.2rem;
}

.event-member-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: #4a3c12;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}

.modal:has(.event-member-bar) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal:has(.event-member-bar) > .modal-close {
  flex: 0 0 auto;
}

.modal:has(.event-member-bar) > .event-detail {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.modal .event-member-bar {
  position: sticky;
  top: 0;
  z-index: 3;
}

.event-member-bar-icon {
  display: inline-flex;
  color: #e6c15a;
}

.event-member-bar-colour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.event-member-bar-colour img {
  display: block;
  width: auto;
  height: 1.35rem;
  max-width: none;
  max-height: 1.35rem;
  object-fit: contain;
}

.event-member-bar-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.event-member-bar-icon.is-yes {
  color: #3dce6e;
}

.event-member-bar-icon.is-no {
  color: #e15b5b;
}

.event-member-bar-marks {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.event-member-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.05rem 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.event-member-mark:hover,
.event-member-mark:focus-visible {
  border-color: #fff;
}

.event-member-mark[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.teilnehmer-head-marks .event-member-mark[data-member-mark],
.event-detail .event-member-bar .event-member-mark[data-member-mark] {
  padding: 0.1rem 0.56rem;
  border-radius: 12px;
  font-size: 2.1rem;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.event-member-bar-stats {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.4rem 0.5rem;
  margin-left: auto;
}

.flyer-card .event-member-bar.is-week {
  width: 100%;
  justify-self: stretch;
  box-sizing: border-box;
  flex-wrap: nowrap;
  padding: 0.35rem 0.5rem;
}

.table-date-cell .table-member-icon {
  display: flex;
  justify-content: center;
  margin-top: 0.2rem;
}

.calendar-table td.table-date-cell:has(.table-member-icon) {
  text-align: center;
}

.event-member-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 700;
}

.event-member-count.is-gold {
  background: #e0b84a;
  color: #2a2108;
}

.event-member-count.is-green {
  background: #145c32;
  color: #fff;
}

.event-member-count.is-red {
  background: #c45c5c;
  color: #fff;
}

.event-member-count[data-teilnehmer-open] {
  border: 0;
  font: inherit;
  line-height: inherit;
}

.event-member-count[data-teilnehmer-open],
.event-member-bar-icon[data-teilnehmer-open],
.month-member-icon[data-teilnehmer-open],
.table-member-icon[data-teilnehmer-open] {
  cursor: pointer;
}

.event-member-count[data-teilnehmer-open]:hover,
.event-member-count[data-teilnehmer-open]:focus-visible {
  filter: brightness(1.12);
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.event-member-sep {
  color: #fff;
  font-weight: 600;
}

.event-detail-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.event-detail-flyer {
  position: relative;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.event-detail-flyer a {
  display: block;
  color: inherit;
  cursor: zoom-in;
}

.event-detail-flyer a:hover {
  color: inherit;
}

.event-detail-flyer img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
}

.event-detail-zoom {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  pointer-events: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.event-detail-zoom svg {
  width: 1.1rem;
  height: 1.1rem;
}

.event-detail-flyer a:hover + .event-detail-zoom,
.event-detail-flyer a:focus-visible + .event-detail-zoom {
  background: rgba(0, 0, 0, 0.82);
}

.event-share-btn {
  min-width: 9.5rem;
}

.event-share-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.event-share-btn[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
}

.event-share-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.event-share-backdrop[hidden] {
  display: none;
}

.event-share-dialog {
  width: min(400px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
}

.event-share-head {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: -0.45rem 0 0.35rem -0.45rem;
}

.event-share-head .eyebrow {
  margin: 0;
}

.event-share-close {
  flex-shrink: 0;
}

.event-share-title {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
}

.event-share-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.event-share-preview[hidden] {
  display: none;
}

.event-share-preview img {
  display: block;
  width: 100%;
  max-height: min(28vh, 220px);
  object-fit: contain;
}

.event-share-actions {
  display: grid;
  gap: 0.5rem;
}

.event-share-actions .btn {
  width: 100%;
  justify-content: flex-start;
}

.event-share-actions .btn[hidden] {
  display: none;
}

.event-share-actions .btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .event-share-dialog {
    width: min(640px, 100%);
    padding: 1.7rem 1.6rem 1.45rem;
  }

  .event-share-title {
    font-size: 1.28rem;
  }

  .event-share-preview img {
    max-height: min(46vh, 420px);
  }

  .event-share-actions {
    grid-template-columns: 1fr 1fr;
  }

  .event-share-actions [data-share-action="cancel"] {
    grid-column: 1 / -1;
  }
}

.event-share-result-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.event-share-result-backdrop[hidden] {
  display: none;
}

.event-share-result-dialog {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
}

.event-share-result-dialog .eyebrow {
  margin-bottom: 0.4rem;
}

.event-share-result-message {
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
}

.event-share-result-dialog.is-error .event-share-result-message {
  color: #e7b3b3;
}

.detail-list {
  display: grid;
  gap: 0.7rem;
}

.detail-list div {
  display: grid;
  gap: 0.15rem;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event-description {
  margin: 1rem 0;
}

.event-description h2 {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.event-description-box {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #101010;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.event-detail-club {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.event-detail-club .event-detail-colour {
  margin: 0;
  flex: 0 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  border: 1px solid var(--border);
}

.badge-ok { color: #b7e0c3; border-color: #2f4a38; }
.badge-warn { color: #ead7a4; border-color: #5a4a28; }
.badge-danger { color: #f0b7b7; border-color: #5a3030; }
.badge-admin { color: #c4a35a; border-color: #5a4a28; }
.badge-clubadmin { color: #9ecbff; border-color: #3a4a66; }
.badge-user { color: #b7e0c3; border-color: #2f4a38; }
.badge-ok::before,
.badge-warn::before,
.badge-danger::before,
.badge-admin::before,
.badge-clubadmin::before,
.badge-user::before,
.badge-progress::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.badge-ok::before { background: #5d9e72; }
.badge-warn::before { background: #c4a35a; }
.badge-danger::before { background: #c45c5c; }
.badge-admin::before { background: #c4a35a; }
.badge-clubadmin::before { background: #7aa2d6; }
.badge-user::before { background: #5d9e72; }
.badge-progress { color: #c5d4f0; border-color: #3a4a66; }
.badge-progress::before { background: #7aa2d6; }

.role-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.role-toggle-form {
  display: inline-flex;
  margin: 0;
}

.badge.is-locked,
button.badge-toggle:disabled {
  color: #8a8a8a;
  border-color: #3a3a3a;
  cursor: default;
  pointer-events: none;
  opacity: 0.8;
}

.badge.is-locked::before,
button.badge-toggle:disabled::before {
  background: #8a8a8a;
}

button.badge-toggle {
  cursor: pointer;
  background: transparent;
  font: inherit;
  line-height: inherit;
  color: inherit;
  appearance: none;
  white-space: nowrap;
}

button.badge-toggle:hover,
button.badge-toggle:focus-visible {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.event-list {
  display: grid;
  gap: 1rem;
}

.event-list-card,
.event-admin-detail {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.event-list-card {
  align-items: start;
}

.event-list-card:has(.event-member-tile) {
  grid-template-columns: 140px 1fr auto;
}

.event-member-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 0.4rem;
  box-sizing: border-box;
  min-width: 5.5rem;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: #4a3c12;
  color: #fff;
}

.event-member-tile .event-member-bar-stats {
  margin-left: 0;
  flex-wrap: nowrap;
  justify-content: center;
}

.event-member-tile .event-member-bar-icon svg {
  width: 2.7rem;
  height: 2.7rem;
}

.event-review-kind {
  margin: 0 0 0.35rem;
}

.event-list-flyer {
  display: block;
  align-self: center;
  justify-self: center;
  width: fit-content;
  max-width: 140px;
  background: #0c0c0c;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.event-list-flyer img {
  display: block;
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 180px;
}

@media (min-width: 721px) {
  body.page-list .event-list-card {
    grid-template-columns: 175px 1fr;
  }

  body.page-list .event-list-card:has(.event-member-tile) {
    grid-template-columns: 175px 1fr auto;
  }

  body.page-list .event-list-flyer {
    max-width: 175px;
  }

  body.page-list .event-list-flyer img {
    max-width: 175px;
    max-height: 225px;
  }
}

.flyer-preview {
  line-height: 0;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.flyer-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 280px;
  margin: 0 auto;
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.event-admin-flyer {
  min-width: 0;
  background: #0c0c0c;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.event-admin-detail img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #0c0c0c;
  border-radius: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.freigabe-section + .freigabe-section {
  margin-top: 1.6rem;
}

.freigabe-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.freigabe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.freigabe-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.freigabe-tile {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  margin-bottom: 0;
}

.freigabe-tile h3 {
  margin: 0;
  font-size: 1.15rem;
}

.freigabe-tile .detail-list {
  margin: 0;
}

.freigabe-event-flyer {
  display: block;
  position: relative;
  background: #0c0c0c;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.freigabe-event-flyer img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.freigabe-description {
  margin: 0;
  white-space: pre-wrap;
}

.freigabe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0;
}

.freigabe-actions .btn-freigabe {
  grid-column: 1 / -1;
}

.freigabe-actions .btn {
  width: 100%;
}

.btn-freigabe {
  width: 100%;
  background: var(--success);
  border-color: #4d8a62;
  color: #fff;
  font-weight: 650;
}

.btn-freigabe:hover {
  background: #6aaf80;
  border-color: #6aaf80;
  color: #fff;
}

.dashboard-clubs {
  margin-top: 0.5rem;
}

.dashboard-clubs-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.dashboard-clubs-bar h2 {
  margin: 0;
  font-size: 1.2rem;
}

.dashboard-club-search {
  grid-column: 2;
  width: min(18rem, 46vw);
}

.dashboard-club-search input[type="search"] {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.8rem;
}

.dashboard-club-search input[type="search"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.dashboard-filter-empty {
  margin: 0.8rem 0 0;
}

.dashboard-club-table tr[hidden] {
  display: none !important;
}

.dashboard-club-table td {
  vertical-align: top;
}

.dashboard-club-table .is-clubtermine {
  color: #e23b3b;
  font-weight: 700;
}

.dashboard-club-identity {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.dashboard-club-identity .club-name-line {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 721px) {
  .dashboard-club-table .club-groups-cell {
    width: 16rem;
  }
}

.dashboard-club-table .club-ms-toggle {
  align-items: flex-start;
  height: auto;
}

.dashboard-club-table .club-ms-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
}

.dashboard-club-table .club-ms-line {
  display: block;
  overflow-wrap: anywhere;
}

.dashboard-club-table .club-ms-caret {
  margin-top: 0.15rem;
}

.dashboard-club-list {
  margin: 0;
  padding-left: 1.15rem;
}

.dashboard-club-list li + li {
  margin-top: 0.2rem;
}

.dashboard-event-date {
  font-size: 0.82rem;
  color: var(--muted);
}

.dashboard-club-list li.is-telegram::marker {
  color: #3b82f6;
}

.role-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-right: 0.4rem;
  border-radius: 0.32rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  vertical-align: middle;
  white-space: nowrap;
}

.role-mark-user {
  background: #145c38;
  color: #f4fff7;
}

.role-mark-clubadmin {
  background: #1a3f78;
  color: #f3f7ff;
}

.role-mark-admin {
  background: #e0b422;
  color: #1c1604;
}

.role-mark-waiting,
.role-mark-blocked {
  background: #6e1218;
  color: #fff5f5;
}

@media (max-width: 720px) {
  .dashboard-club-table,
  .dashboard-club-table tbody,
  .dashboard-club-table tr,
  .dashboard-club-table td {
    display: block;
    width: 100%;
  }

  .dashboard-club-table thead {
    display: none;
  }

  .dashboard-club-table tr {
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
  }

  .dashboard-club-table td {
    border-bottom: none;
    padding: 0.35rem 0;
  }

  .dashboard-club-table td:first-child {
    font-weight: 650;
    font-size: 1.05rem;
  }

  .dashboard-club-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
  }
}

.stat {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.stat.is-alert {
  color: var(--danger);
  font-weight: 800;
  font-size: 2.5rem;
  animation: alert-blink 1.2s ease-in-out infinite;
}

@keyframes alert-blink {
  0%, 100% { color: var(--danger); }
  50% { color: rgba(196, 92, 92, 0.38); }
}

@media (prefers-reduced-motion: reduce) {
  .stat.is-alert {
    animation: none;
  }
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 1rem;
}

.page-head .admin-tabs {
  margin: 0 0 0 auto;
  justify-content: flex-end;
  align-self: flex-end;
}

.admin-tab-note {
  margin: -0.4rem 0 1rem;
}

.admin-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
}

.admin-tabs .nav-icon {
  width: auto;
  flex-basis: auto;
}

.admin-tabs a.is-active,
.admin-tabs a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filter-bar input,
.filter-bar select {
  flex: 1;
  min-width: 160px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.data-table .telegram-col {
  width: 1%;
  padding-left: 0.45rem;
  padding-right: 0.2rem;
  text-align: center;
  white-space: nowrap;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.data-table th .sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
}

.data-table th .sort-link:hover,
.data-table th .sort-link.is-active {
  color: var(--accent);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-stats {
  margin: 0 0 1rem;
  color: var(--muted);
}

.contact-stats strong {
  color: var(--text);
}

.contact-compose {
  max-width: 640px;
  margin: 1.5rem auto 0;
}

.contact-salutation {
  margin: 0;
  color: var(--text);
}

.data-table tr.is-new td {
  background: rgba(196, 163, 90, 0.1);
}

.data-table tr.is-new td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

.data-table td.is-admin-name,
.data-table td.is-admin-name .muted,
.data-table td.is-admin-name strong {
  color: #ffe14a;
}

.data-table td.is-clubadmin-name,
.data-table td.is-clubadmin-name .muted,
.data-table td.is-clubadmin-name strong {
  color: #9ecbff;
}

.data-table td.is-user-name,
.data-table td.is-user-name .muted,
.data-table td.is-user-name strong {
  color: #b7e0c3;
}

.data-table td.is-blocked-name,
.data-table td.is-blocked-name .muted,
.data-table td.is-blocked-name strong {
  color: #ff7a7a;
}

.data-table .user-rang {
  color: #fff;
  font-weight: 600;
}

.club-needs-admin {
  animation: ntk-club-needs-admin 1.1s steps(1, end) infinite;
  color: #ffb020;
}

a.club-needs-admin:hover {
  color: #ffb020;
}

.club-needs-admin-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #ffb020;
}

.user-club-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
}

.user-club-colour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.12rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  cursor: zoom-in;
  flex: 0 0 auto;
}

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

.user-club-colour img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes ntk-club-needs-admin {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
  .club-needs-admin {
    animation: none;
  }
}

.contact-message {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.news-card .contact-message a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.news-card .contact-message strong {
  font-weight: 700;
}

.contact-detail h2 {
  margin-bottom: 0.6rem;
}

.contact-detail h3 {
  margin: 1.1rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.list-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.table-view-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.table-view-wrap .table-month-group.card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  padding: 0.55rem 0.45rem 0.35rem;
  margin-bottom: 1rem;
}

.table-view-wrap .table-month-group.card:last-child {
  margin-bottom: 0;
}

.table-view-wrap .table-wrap {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.table-month-heading {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 650;
  text-align: left;
  text-transform: none;
  letter-spacing: 0.01em;
  margin: 0 0 0.4rem;
  padding: 0 0.15rem;
}

.table-view-wrap .calendar-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.table-date-col {
  width: 3.2rem;
}

.table-event-col {
  width: auto;
}

.table-club-col {
  width: 22%;
}

.table-flyer-col {
  width: 1%;
}

.table-view-wrap.is-compact .table-club-col {
  width: 0;
}

.calendar-table td.table-date-cell,
.calendar-table td.table-club-cell {
  white-space: nowrap;
  width: 1%;
}

.calendar-table td.table-event-cell {
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.table-event-time {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 0.35rem;
}

.table-event-club {
  display: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 0.15rem;
}

.table-view-wrap.is-compact .table-event-club {
  display: block;
}

.table-view-wrap.is-compact .table-club-col,
.table-view-wrap.is-compact .table-club-cell {
  visibility: collapse;
}

.table-view-wrap.is-compact .table-club-cell {
  width: 0;
  max-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.calendar-table td {
  padding: 0.22rem 0.4rem;
  width: auto;
}

.calendar-table td.table-flyer-cell {
  width: 1%;
  min-width: max-content;
  padding: 0.12rem 0.12rem 0.12rem 0.45rem;
  line-height: 1.2;
  text-align: right;
  vertical-align: middle;
}

.table-flyer-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.2rem;
  min-width: min-content;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
}

.table-until {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.table-flyer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 80px;
  max-height: 80px;
  cursor: pointer;
  color: inherit;
  vertical-align: middle;
}

.table-flyer:hover {
  color: inherit;
}

.table-flyer img {
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  display: block;
  background: #0c0c0c;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

.month-member-icon {
  position: absolute;
  left: 0.12rem;
  bottom: 0.1rem;
  z-index: 4;
  display: inline-flex;
  color: #e6c15a;
  line-height: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.month-member-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.month-member-icon.is-yes {
  color: #3dce6e;
}

.month-member-icon.is-no {
  color: #e15b5b;
}

.month-flyer,
.event-list-flyer,
.table-flyer,
.flyer-frame,
.event-admin-flyer,
.event-detail-flyer,
.flyer-preview,
.event-share-preview {
  position: relative;
}

.gruppen-favorit {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  z-index: 3;
  display: block;
  margin: 0;
  padding: 0.12rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

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

.gruppen-favorit.is-inactive {
  cursor: default;
  pointer-events: none;
}

.gruppen-favorit img {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1 !important;
  filter: none !important;
  transform-origin: center;
}

button.gruppen-favorit img {
  animation: gruppen-favorit-pulse 2.4s ease-in-out infinite;
}

@keyframes gruppen-favorit-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  button.gruppen-favorit img {
    animation: none;
  }
}

.flyer-frame .gruppen-favorit img,
.event-list-flyer .gruppen-favorit img {
  width: 1.75rem;
  height: 1.75rem;
}

.flyer-frame-sm .gruppen-favorit img {
  width: 1.25rem;
  height: 1.25rem;
}

.event-detail-flyer .gruppen-favorit img,
.event-admin-flyer .gruppen-favorit img,
.flyer-preview .gruppen-favorit img,
.event-share-preview .gruppen-favorit img {
  width: 2.5rem;
  height: 2.5rem;
}

.event-detail-flyer .gruppen-favorit,
.event-admin-flyer .gruppen-favorit,
.flyer-preview .gruppen-favorit,
.event-share-preview .gruppen-favorit {
  top: 0.4rem;
  left: 0.4rem;
}

@media (max-width: 720px) {
  .gruppen-favorit {
    top: 0.12rem;
    left: 0.12rem;
    padding: 0.28rem;
  }

  .gruppen-favorit img {
    width: 1.15rem;
    height: 1.15rem;
  }

  .flyer-frame .gruppen-favorit img,
  .event-list-flyer .gruppen-favorit img {
    width: 1.65rem;
    height: 1.65rem;
  }

  .flyer-frame-sm .gruppen-favorit img {
    width: 1.15rem;
    height: 1.15rem;
  }

  .event-detail-flyer .gruppen-favorit img,
  .event-admin-flyer .gruppen-favorit img,
  .flyer-preview .gruppen-favorit img,
  .event-share-preview .gruppen-favorit img {
    width: 2.2rem;
    height: 2.2rem;
  }

  .month-flyer .gruppen-favorit {
    top: 0.04rem;
    left: 0.04rem;
    padding: 0.04rem;
  }

  .month-flyer .gruppen-favorit img {
    width: 0.72rem;
    height: 0.72rem;
  }

  .month-member-icon {
    left: 0.06rem;
    bottom: 0.04rem;
  }

  .month-member-icon svg {
    width: 0.68rem;
    height: 0.68rem;
  }
}

@media (min-width: 1100px) {
  .gruppen-favorit img {
    width: 1.35rem;
    height: 1.35rem;
  }

  .flyer-frame .gruppen-favorit img,
  .event-list-flyer .gruppen-favorit img {
    width: 1.9rem;
    height: 1.9rem;
  }

  .event-detail-flyer .gruppen-favorit img,
  .event-admin-flyer .gruppen-favorit img,
  .flyer-preview .gruppen-favorit img,
  .event-share-preview .gruppen-favorit img {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.gruppen-favorit-pop {
  position: fixed;
  z-index: 240;
  width: max-content;
  max-width: min(22rem, calc(100vw - 1.25rem));
  margin: 0;
  padding: 0.75rem 0.9rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.gruppen-favorit-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.gruppen-favorit-pop-close {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  margin: -0.15rem -0.25rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.gruppen-favorit-pop.is-hover .gruppen-favorit-pop-close {
  display: none;
}

.gruppen-favorit-pop-close:hover,
.gruppen-favorit-pop-close:focus-visible {
  color: var(--text);
}

.gruppen-favorit-pop-list {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
}

.gruppen-favorit-pop-list li {
  margin: 0.12rem 0;
  line-height: 1.35;
}

.gruppen-favorit-pop[hidden] {
  display: none;
}

.gruppen-favorit-pop-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
}

.gruppen-favorit-pop-label {
  margin: 0;
  color: var(--accent);
  font-weight: 650;
}

.month-flyer.is-past img,
.month-flyer.is-cancelled img,
.flyer-card.is-past img,
.flyer-card.is-cancelled img,
.event-list-flyer.is-past img,
.event-list-flyer.is-cancelled img,
.table-flyer.is-past img,
.table-flyer.is-cancelled img,
.event-detail-flyer.is-past img,
.event-detail-flyer.is-cancelled img,
.event-admin-flyer.is-past img,
.event-admin-flyer.is-cancelled img,
.flyer-preview.is-past img,
.flyer-preview.is-cancelled img {
  opacity: 0.42;
  filter: saturate(0.65);
}

.month-flyer.is-past img,
.month-flyer.is-cancelled img,
.flyer-card.is-past img,
.flyer-card.is-cancelled img,
.event-list-flyer.is-past img,
.event-list-flyer.is-cancelled img,
.table-flyer.is-past img,
.table-flyer.is-cancelled img {
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.month-flyer.is-past:hover img,
.month-flyer.is-cancelled:hover img,
.flyer-card.is-past:hover img,
.flyer-card.is-cancelled:hover img,
.event-list-flyer.is-past:hover img,
.event-list-flyer.is-cancelled:hover img,
.table-flyer.is-past:hover img,
.table-flyer.is-cancelled:hover img {
  opacity: 0.82;
  filter: saturate(0.9);
}

.month-flyer.is-past,
.month-flyer.is-cancelled,
.flyer-card.is-past .flyer-frame,
.flyer-card.is-cancelled .flyer-frame,
.event-list-flyer.is-past,
.event-list-flyer.is-cancelled,
.table-flyer.is-past,
.table-flyer.is-cancelled,
.event-detail-flyer.is-past,
.event-detail-flyer.is-cancelled,
.event-admin-flyer.is-past,
.event-admin-flyer.is-cancelled,
.flyer-preview.is-past,
.flyer-preview.is-cancelled {
  position: relative;
  overflow: hidden;
}

.month-flyer.is-past::after,
.month-flyer.is-cancelled::after,
.flyer-card.is-past .flyer-frame::after,
.flyer-card.is-cancelled .flyer-frame::after,
.event-list-flyer.is-past::after,
.event-list-flyer.is-cancelled::after,
.table-flyer.is-past::after,
.table-flyer.is-cancelled::after,
.event-detail-flyer.is-past::after,
.event-detail-flyer.is-cancelled::after,
.event-admin-flyer.is-past::after,
.event-admin-flyer.is-cancelled::after,
.flyer-preview.is-past::after,
.flyer-preview.is-cancelled::after {
  content: "vorbei";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-32deg);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  color: #c2c2c2;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.month-flyer.is-cancelled::after,
.flyer-card.is-cancelled .flyer-frame::after,
.event-list-flyer.is-cancelled::after,
.table-flyer.is-cancelled::after,
.event-detail-flyer.is-cancelled::after,
.event-admin-flyer.is-cancelled::after,
.flyer-preview.is-cancelled::after {
  content: "abgesagt";
  color: #e7b3b3;
}

.month-flyer.is-past::after,
.month-flyer.is-cancelled::after,
.table-flyer.is-past::after,
.table-flyer.is-cancelled::after {
  font-size: 0.95rem;
}

@media (min-width: 721px) {
  .month-flyer.is-past::after,
  .month-flyer.is-cancelled::after {
    font-size: 1.32rem;
  }
}

.event-detail-flyer.is-past::after,
.event-detail-flyer.is-cancelled::after,
.flyer-preview.is-past::after,
.flyer-preview.is-cancelled::after {
  font-size: 2.45rem;
}

@media (prefers-reduced-motion: reduce) {
  .month-flyer.is-past img,
  .month-flyer.is-cancelled img,
  .flyer-card.is-past img,
  .flyer-card.is-cancelled img,
  .event-list-flyer.is-past img,
  .event-list-flyer.is-cancelled img,
  .table-flyer.is-past img,
  .table-flyer.is-cancelled img {
    transition: none;
  }
}

.event-edit-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.event-cancel-form {
  display: inline-flex;
  margin: 0;
}

.calendar-table tr.is-cancelled td {
  color: var(--muted);
  text-decoration: line-through;
}

.calendar-table tr.is-cancelled a {
  color: var(--muted);
}

.event-list-card.is-cancelled h2 {
  color: var(--muted);
  text-decoration: line-through;
}

.flyer-card.is-cancelled .flyer-title,
.event-detail.is-cancelled h1 {
  text-decoration: line-through;
}

.terminart-club-form {
  max-width: 28rem;
  margin-bottom: 1rem;
}

.terminart-add-form {
  margin-top: 1rem;
}

.terminart-name-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.terminart-name-form input[type="text"] {
  width: 14rem;
  min-width: 14rem;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--text);
  font: inherit;
  padding: 0.45rem 0.7rem;
}

.terminart-name-form input.terminart-kuerzel {
  width: 5.25rem;
  min-width: 5.25rem;
  flex: 0 0 5.25rem;
  padding: 0.45rem 0.3rem;
  text-align: center;
}

.terminart-color-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.terminart-color-form input[type="color"] {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101010;
  cursor: pointer;
}

.terminart-yearly-form {
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminart-yearly-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  cursor: pointer;
}

.terminart-yearly-form input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.terminart-table td:nth-child(2),
.terminart-table td:nth-child(3),
.terminart-table td:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 720px) {
  .terminart-wrap {
    overflow: visible;
  }

  .terminart-table,
  .terminart-table tbody {
    display: block;
    width: 100%;
  }

  .terminart-table thead {
    display: none;
  }

  .terminart-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .terminart-table tr:last-child {
    border-bottom: none;
    padding-bottom: 0.15rem;
  }

  .terminart-table td {
    display: block;
    width: auto;
    border: none;
    padding: 0;
  }

  .terminart-table td:first-child {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .terminart-table td:nth-child(2),
  .terminart-table td:nth-child(3),
  .terminart-table td:last-child {
    width: auto;
    white-space: normal;
    text-align: left;
  }

  .terminart-yearly-form {
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .terminart-yearly-form::before {
    content: "Jedes Jahr";
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
  }

  .terminart-yearly-label {
    min-width: 0;
    min-height: 0;
  }

  .terminart-name-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .terminart-name-form input[type="text"] {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }

  .terminart-name-form input.terminart-kuerzel {
    width: 5.25rem;
    min-width: 5.25rem;
    flex: 0 0 5.25rem;
  }

  .terminart-color-form::before {
    content: "Farbe";
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
  }

  .terminart-add-form .btn {
    width: 100%;
  }
}

.club-terminart {
  color: #fff;
  font-weight: 400;
}

.page-calendar .club-terminart,
.event-detail .club-terminart {
  font-size: 0.75em;
}

.club-event-title,
a.club-event-title,
a.club-event-title:hover,
a.club-event-title:focus-visible,
a:hover .club-event-title,
.flyer-title.club-event-title,
.flyer-fallback.club-event-title,
.event-list-card h2.club-event-title,
.event-detail h1.club-event-title,
.calendar-table tr.is-cancelled a.club-event-title,
.calendar-table tr.is-cancelled a.club-event-title:hover,
.event-list-card.is-cancelled h2.club-event-title,
.flyer-card.is-cancelled .flyer-title.club-event-title,
.event-detail.is-cancelled h1.club-event-title {
  color: #e10600;
  font-weight: 700;
}

.month-flyer.is-club-event {
  align-items: stretch;
  justify-content: stretch;
  background: #000;
}

.month-virtual-flyer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.4rem 0.35rem;
  background: #000;
  color: #e10600;
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.68rem, 1.5vw, 0.92rem);
  line-height: 1.15;
  overflow-wrap: break-word;
}

.month-virtual-flyer .month-virtual-name,
.month-virtual-flyer .club-terminart {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

.month-virtual-flyer .club-terminart {
  display: block;
  margin-top: 0.12rem;
  line-height: 1.15;
}

.calendar-table tr.is-today td {
  background: #2a2316;
}

.calendar-table tbody tr:hover td {
  background: var(--card-hover);
}

.calendar-table tr.is-today:hover td {
  background: #322a1b;
}

.pattern-status {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.pattern-status.is-error {
  color: #e7b3b3;
}

.pattern-status.is-ok {
  color: #b7e0c3;
}

.pattern-lock {
  touch-action: none;
  user-select: none;
  width: min(280px, 100%);
  aspect-ratio: 1;
  margin: 0.4rem auto;
  position: relative;
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.pattern-lock svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pattern-lock .dot {
  fill: #2a2a2a;
  stroke: #666;
  stroke-width: 2;
}

.pattern-lock .dot.is-active {
  fill: var(--accent);
  stroke: var(--accent-hover);
}

.pattern-lock .line {
  stroke: var(--accent);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.4rem -0.4rem 0.4rem auto;
  line-height: 1;
}

.modal-backdrop.is-lightbox {
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
  padding: 0.6rem;
  z-index: 260;
}

.modal-backdrop.is-lightbox .modal {
  width: auto;
  max-width: 96vw;
  max-height: 96vh;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.modal-backdrop.is-lightbox .modal img {
  display: block;
  width: auto;
  height: 92vh;
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.confirm-backdrop[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
}

.confirm-dialog .eyebrow {
  margin-bottom: 0.4rem;
}

.confirm-message {
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
}

.confirm-name {
  margin: -0.65rem 0 1.15rem;
  color: var(--accent);
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.35;
  word-break: break-word;
}

.confirm-club {
  color: var(--muted);
  font-weight: 500;
}

.confirm-name[hidden],
.confirm-club[hidden],
.confirm-hint[hidden] {
  display: none;
}

.confirm-hint {
  margin: 0 0 1.1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #5a4a28;
  background: var(--accent-dim);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.confirm-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.clipboard-flyer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.clipboard-flyer-backdrop[hidden] {
  display: none;
}

.clipboard-flyer-dialog {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
}

.clipboard-flyer-dialog .eyebrow {
  margin-bottom: 0.4rem;
}

.clipboard-flyer-title {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
}

.clipboard-flyer-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin: 0 0 1.15rem;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.clipboard-flyer-preview img {
  display: block;
  width: 100%;
  max-height: min(50vh, 360px);
  object-fit: contain;
}

@media (max-width: 980px) {
  .calendar-nav {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-nav-center {
    grid-column: 1 / -1;
    order: -1;
  }

  .days-grid[data-count="3"],
  .days-grid[data-count="4"],
  .days-grid[data-count="5"],
  .days-grid[data-count="6"],
  .days-grid[data-count="7"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-scale: 1;
    --header-ease: 0s;
  }

  .header-user {
    max-width: none;
  }

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

  .header-user-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15em;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .form-row,
  .event-list-card,
  .event-admin-detail,
  .event-detail {
    grid-template-columns: 1fr;
  }

  .event-list-card:has(.event-member-tile) {
    grid-template-columns: 1fr;
  }

  .event-list-card:has(.event-member-tile) .event-member-tile {
    order: -1;
    flex-direction: row;
    justify-content: flex-start;
    align-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .event-list-card:has(.event-member-tile) .event-member-tile .event-member-bar-stats {
    margin-left: auto;
  }

  .event-list-card:has(.event-member-tile) .event-member-tile .event-member-bar-icon svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .event-list-card:has(.event-member-tile) .event-list-flyer {
    grid-column: auto;
    justify-self: start;
  }

  .days-grid,
  .days-grid[data-count="2"],
  .days-grid[data-count="3"],
  .days-grid[data-count="4"],
  .days-grid[data-count="5"],
  .days-grid[data-count="6"],
  .days-grid[data-count="7"] {
    grid-template-columns: 1fr;
  }

  .nav-arrow {
    font-size: 0.9rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .month-weekdays,
  .month-grid {
    gap: 0.25rem;
    grid-template-columns: var(--month-cols-phone, var(--month-cols, repeat(7, minmax(0, 1fr))));
  }

  .month-cell {
    padding: 0.15rem;
  }

  .calendar-table {
    font-size: 0.78rem;
  }

  .calendar-table td {
    padding: 0.14rem 0.28rem;
  }

  .table-view-wrap .calendar-table td.table-date-cell,
  .table-view-wrap .calendar-table td.table-event-cell,
  .table-view-wrap .calendar-table td.table-flyer-cell {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom-color: var(--border);
  }

  .table-month-heading {
    font-size: 0.95rem;
  }

  .table-view-wrap {
    min-width: 0;
    width: 100%;
  }

  .table-view-wrap .table-event-club {
    display: block;
  }

  .table-view-wrap .table-club-col {
    width: 0;
    visibility: collapse;
  }

  .table-view-wrap .table-club-cell {
    visibility: collapse;
    width: 0;
    max-width: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
  }
}

@media (min-width: 900px) {
  .flyers[data-count="2"] {
    grid-template-columns: 1fr 1fr;
  }

  .flyers[data-count="3"],
  .flyers[data-count="4"],
  .flyers[data-count="5"],
  .flyers[data-count="6"] {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .event-detail {
    grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
    align-items: start;
  }
}

.geo-status {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 2.4rem;
}

.geo-status.is-ok {
  border-color: #5a4a28;
  background: var(--accent-dim);
  color: var(--text);
}

.geo-status.is-warn,
.geo-status.is-error {
  border-color: #5a4a28;
  background: rgba(196, 92, 92, 0.1);
  color: #e7b3b3;
}

.geo-status:empty {
  display: none;
}

.address-fields {
  display: grid;
  gap: 0.9rem;
}

.location-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.location-methods .btn {
  width: 100%;
}

.location-methods .btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #16120a;
  font-weight: 650;
}

.location-methods .btn.is-active:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #16120a;
}

.location-panel {
  display: grid;
  gap: 0.9rem;
}

.location-panel[hidden] {
  display: none !important;
}

.register-location .form-row {
  grid-template-columns: minmax(6.5rem, 0.7fr) 1.3fr;
}

.location-geocode {
  width: 100%;
}

@media (max-width: 720px) {
  .location-methods {
    grid-template-columns: 1fr;
  }

  .register-location .form-row {
    grid-template-columns: minmax(5.5rem, 0.8fr) 1.2fr;
  }
}

.radius-filter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radius-filter-toggle.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.radius-filter-control {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
}

.radius-filter-control.is-active .radius-filter-toggle {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
  padding-right: 0.45rem;
}

.radius-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 38px;
  margin: 0;
  padding: 0 0.55rem 0 0.2rem;
  border: 1px solid var(--accent);
  border-left: 1px solid rgba(196, 163, 90, 0.4);
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.radius-filter-clear[hidden] {
  display: none !important;
}

.radius-filter-clear svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.radius-filter-clear:hover,
.radius-filter-clear:focus-visible {
  color: var(--danger);
  background: rgba(196, 92, 92, 0.14);
  outline: none;
}

.radius-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.radius-filter-backdrop[hidden] {
  display: none;
}

.radius-filter-dialog {
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.radius-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: -0.35rem;
}

.radius-filter-head .nav-close {
  margin: -0.4rem -0.4rem -0.4rem 0;
}

.radius-privacy {
  font-size: 0.8rem;
  margin: 0;
}

.radius-origin {
  margin: 0;
  font-size: 0.92rem;
}

.radius-choices {
  display: grid;
  gap: 0.4rem;
}

.radius-choices[hidden],
.radius-guest-form[hidden],
.radius-guest-origin[hidden],
.radius-privacy[hidden],
[data-radius-coords][hidden] {
  display: none !important;
}

.radius-choices .btn {
  width: 100%;
  justify-content: flex-start;
}

.radius-choices .btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.radius-active-banner {
  text-align: center;
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 650;
}

.radius-active-banner > p {
  margin: 0;
}

.radius-active-origin {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.event-distance,
.flyer-distance {
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
}

a.event-distance,
a.flyer-distance {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

a.event-distance:hover,
a.flyer-distance:hover {
  color: var(--accent-hover);
}

.event-list-card .event-distance {
  display: block;
}

.table-event-cell .event-distance {
  display: inline;
  margin: 0 0 0 0.35rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.table-event-cell a.event-distance:hover {
  color: var(--accent-hover);
}

.flyer-distance {
  display: block;
  margin: 0.15rem 0 0;
  text-align: center;
}

@media (max-width: 720px) {
  .radius-filter-toggle {
    min-height: 42px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .radius-filter-dialog {
    width: min(440px, 100%);
    padding: 1.15rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

.radius-filter-control.is-saved .radius-filter-toggle {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
  padding-right: 0.45rem;
}

.user-filter-resume {
  border-color: var(--border);
  border-left-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.user-filter-resume:hover,
.user-filter-resume:focus-visible {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent);
}

.user-filter-dialog {
  width: min(680px, 100%);
  text-align: left;
}

.user-filter-dialog .check {
  align-items: flex-start;
}

.user-filter-dialog .check input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.user-filter-intro,
.user-filter-saved {
  margin: 0;
  font-size: 0.86rem;
}

.user-filter-saved {
  color: var(--accent);
  font-weight: 650;
}

.user-filter-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.user-filter-radius {
  display: grid;
  gap: 0.3rem;
}

.user-filter-radius-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.user-filter-radius-title {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.user-filter-radius-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.user-filter-radius-head strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.user-filter-radius input[type="range"] {
  width: 100%;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.user-filter-radius-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
}

.user-filter-columns {
  display: grid;
  gap: 1rem;
}

.user-filter-section {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.user-filter-section h3 {
  margin: 0;
  font-size: 0.98rem;
}

.user-filter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.user-filter-tools {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.user-filter-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101010;
  color: var(--muted);
}

.user-filter-search:focus-within {
  border-color: var(--accent);
  color: var(--text);
}

.user-filter-search svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.user-filter-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.user-filter-search input:focus {
  outline: none;
}

.user-filter-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.user-filter-list > .check[hidden] {
  display: none !important;
}

.user-filter-list {
  display: grid;
  gap: 0.35rem;
  max-height: min(26vh, 240px);
  overflow: auto;
  padding-right: 0.15rem;
}

.user-filter-choice {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.user-filter-club-meta {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.user-filter-group-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.user-filter-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.user-filter-ungrouped {
  margin: 0.15rem 0 0;
}

.user-filter-list .check.is-via-group input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid #6e6e6e;
  border-radius: 4px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  cursor: pointer;
}

.user-filter-list .check.is-via-group input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.6l4.2 4.2L19 7.2' fill='none' stroke='%23aaaaaa' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 1;
}

.user-filter-list .check.is-via-group input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.user-filter-apply {
  width: 100%;
}

.user-filter-form [data-user-filter-status][hidden] {
  display: none !important;
}

@media (min-width: 700px) {
  .user-filter-columns {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .user-filter-dialog {
    width: min(440px, 100%);
  }
}

body.page-donate .logo-splash {
  display: none;
}

body.page-donate .site-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 88px);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.donate-wrap {
  width: min(100%, 36rem);
  margin: 0 auto;
}

.donate-card {
  text-align: center;
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1.1rem, 4vw, 2.1rem) 1.6rem;
  margin-bottom: 0;
}

.donate-card h1 {
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.donate-card p {
  margin-left: auto;
  margin-right: auto;
  max-width: 34rem;
}

.donate-icon {
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 1.05rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(196, 163, 90, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(196, 163, 90, 0.05);
}

.donate-icon svg {
  width: 2.35rem;
  height: 2.35rem;
  display: block;
}

.donate-icon-heart {
  color: #e7c37a;
  background: radial-gradient(circle at 50% 45%, rgba(196, 163, 90, 0.28), rgba(196, 163, 90, 0.08) 70%);
  animation: donate-heart 1.8s ease-in-out infinite;
}

@keyframes donate-heart {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.donate-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.donate-thanks {
  color: var(--accent);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 700;
  margin: 1.05rem 0 1.35rem;
}

.donate-actions {
  margin: 1.35rem 0 0.85rem;
}

.donate-actions .btn {
  width: min(100%, 22rem);
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-size: 1.02rem;
}

.donate-redirect {
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.donate-timer {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.28rem;
}

.donate-timer-num {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.donate-timer-label {
  color: var(--muted);
  font-size: 0.78rem;
}

body.page-donate-thanks .donate-card {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(196, 163, 90, 0.08);
}

@media (max-width: 720px) {
  .donate-card {
    padding: 1.35rem 1rem 1.3rem;
  }

  .donate-actions .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .donate-card {
    padding-top: 2.6rem;
    padding-bottom: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .donate-icon-heart {
    animation: none;
  }
}

.page-statistik .statistik-tiles {
  margin-bottom: 0.4rem;
}

.page-statistik .statistik-tiles + .statistik-tiles {
  margin-top: 1rem;
}

.page-statistik .stat-card {
  text-align: center;
}

.page-statistik .stat-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}

.page-statistik .stat-card-head .muted {
  margin: 0;
}

.stat-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.12rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #1a1a1a;
  color: inherit;
  cursor: pointer;
  flex: 0 0 auto;
}

.stat-switch:hover,
.stat-switch:focus-visible {
  border-color: #4a4a4a;
  outline: none;
}

.stat-switch .ip-mode-switch-track {
  background: #2a2a2a;
}

.stat-switch[aria-checked="true"] {
  border-color: #3d4a32;
}

.stat-switch[aria-checked="true"] .ip-mode-switch-track {
  background: rgba(93, 158, 114, 0.35);
}

.stat-switch[aria-checked="true"] .ip-mode-switch-knob {
  transform: translateX(0.95rem);
  background: var(--success);
}

.page-statistik .online-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4rem;
  row-gap: 0.2rem;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-statistik .online-now-part {
  white-space: nowrap;
}

.page-statistik .online-now-sep {
  color: var(--muted);
}

.page-statistik .statistik-section {
  margin-top: 1.8rem;
}

.page-statistik .statistik-section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
}

.page-statistik .section-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 0 0 0.8rem;
}

.page-statistik .section-heading h2 {
  margin: 0;
}

.ip-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.15rem 0.2rem 0.15rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #1a1a1a;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.ip-mode-switch:hover,
.ip-mode-switch:focus-visible {
  border-color: #4a4a4a;
  color: var(--text);
  outline: none;
}

.ip-mode-switch-track {
  position: relative;
  width: 2.1rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #2a2a2a;
  flex: 0 0 auto;
}

.ip-mode-switch-knob {
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #888;
  transition: transform 0.16s ease, background 0.16s ease;
}

.ip-mode-switch[aria-checked="true"] {
  color: var(--text);
  border-color: #3d4a32;
}

.ip-mode-switch[aria-checked="true"] .ip-mode-switch-track {
  background: rgba(93, 158, 114, 0.35);
}

.ip-mode-switch[aria-checked="true"] .ip-mode-switch-knob {
  transform: translateX(0.95rem);
  background: var(--success);
}

.page-statistik .statistik-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-statistik .ip-cell {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.95rem;
}

.page-statistik .ua-cell {
  line-height: 1.25;
  white-space: nowrap;
}

.page-statistik .ua-os {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-statistik .ua-browser {
  display: block;
  font-weight: 600;
}

.page-statistik .statistik-table tr.is-stat-high {
  background: rgba(93, 158, 114, 0.14);
}

.page-statistik .statistik-table tr.is-stat-low {
  background: rgba(196, 92, 92, 0.12);
}

.page-statistik .statistik-event-club::before {
  content: " · ";
}

.page-statistik .statistik-reset {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0.4rem;
}

.page-land .land-card {
  text-align: center;
  padding: 1.6rem 1.2rem 1.4rem;
}

.page-land .land-question {
  font-size: 1.2rem;
  line-height: 1.45;
  margin: 0.4rem 0 1.4rem;
}

.page-land .land-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-land .land-actions .btn {
  min-width: 8.5rem;
}

.page-land .brand {
  cursor: default;
}

@media (max-width: 720px) {
  .page-statistik .statistik-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.map-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.map-picker-backdrop[hidden] {
  display: none;
}

.teilnehmer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.teilnehmer-backdrop[hidden] {
  display: none;
}

.teilnehmer-dialog {
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  max-height: min(92vh, 720px);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
}

.teilnehmer-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.teilnehmer-head-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.teilnehmer-event {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0 0 0.85rem;
}

.teilnehmer-event[hidden] {
  display: none;
}

.teilnehmer-event p {
  margin: 0;
}

.teilnehmer-event-when {
  color: var(--muted);
  font-size: 0.92rem;
}

.teilnehmer-event-title {
  font-size: 1.05rem;
  font-weight: 650;
}

.teilnehmer-event-club {
  color: var(--muted);
  font-size: 0.78rem;
}

.teilnehmer-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.teilnehmer-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-right: auto;
}

.teilnehmer-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.teilnehmer-tool svg {
  width: 1.2rem;
  height: 1.2rem;
}

.teilnehmer-head-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.teilnehmer-head-marks [data-member-mark="no"] + [data-zusatz-emoji] {
  margin-left: auto;
}

.teilnehmer-option-hint,
.teilnehmer-option-error {
  margin: 0;
}

.teilnehmer-option-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.teilnehmer-emojis {
  letter-spacing: 0.12em;
  white-space: normal;
}

.teilnehmer-tool:hover,
.teilnehmer-tool:focus-visible,
.teilnehmer-tool[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-dim);
}

.teilnehmer-body {
  overflow: auto;
  min-height: 0;
  padding-right: 0.15rem;
}

.teilnehmer-self {
  margin: 0 0 0.85rem;
  flex-wrap: nowrap;
}

.teilnehmer-self .event-member-bar-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teilnehmer-heading {
  margin: 0.95rem 0 0.3rem;
  font-size: 1rem;
}

.teilnehmer-heading.is-yes {
  color: #3dce6e;
}

.teilnehmer-heading.is-no {
  color: #e15b5b;
}

.teilnehmer-heading.is-open {
  color: #e6c15a;
}

.teilnehmer-count {
  color: #fff;
  font-weight: 650;
}

.teilnehmer-table td {
  padding: 0.45rem 0.15rem;
}

.teilnehmer-table.has-options {
  table-layout: fixed;
}

.teilnehmer-table.has-options th,
.teilnehmer-table.has-options td {
  width: 50%;
}

.teilnehmer-table.has-options td[colspan] {
  width: auto;
}

.teilnehmer-person {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.teilnehmer-copyline {
  font-weight: 500;
}

.teilnehmer-empty {
  color: var(--muted);
  font-weight: 400;
}

.teilnehmer-message {
  margin: 0.8rem 0 0.2rem;
}

.map-picker-dialog {
  position: relative;
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
}

.map-picker-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
}

.map-picker-dialog h2 {
  margin: 0 2.2rem 0.45rem 0;
  font-size: 1.2rem;
}

.map-picker-question {
  margin: 0 0 1rem;
}

.map-picker-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.map-picker-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 8.5rem;
  padding: 1rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.map-picker-choice svg {
  width: 3.1rem;
  height: 3.1rem;
}

.map-picker-choice span {
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
}

.map-picker-choice:hover:not(:disabled),
.map-picker-choice:focus-visible:not(:disabled) {
  border-color: var(--accent);
  background: var(--card-hover);
  color: var(--accent);
}

.map-picker-choice:hover:not(:disabled) span,
.map-picker-choice:focus-visible:not(:disabled) span {
  color: var(--accent-hover);
}

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

.map-picker-choice:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.map-picker-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.map-picker-note[hidden] {
  display: none;
}

.place-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.place-picker-backdrop[hidden] {
  display: none;
}

.place-picker-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
}

.place-picker-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
}

.place-picker-dialog h2 {
  margin: 0 2.2rem 0.15rem 0;
  font-size: 1.2rem;
}

.place-picker-dialog [data-place-search] {
  display: grid;
  gap: 0.35rem;
}

.place-picker-search-row {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}

.place-picker-search-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.place-picker-search-row .btn {
  flex: 0 0 auto;
}

.place-picker-map {
  height: min(52vh, 420px);
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1a1a1a;
}

.place-picker-dialog .form-actions {
  margin-top: 0;
}

body.place-picker-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .map-picker-dialog {
    padding: 1.1rem 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .place-picker-dialog {
    padding: 1.1rem 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .place-picker-map {
    height: min(48vh, 360px);
    min-height: 220px;
  }

  .map-picker-choice {
    min-height: 7.25rem;
    padding: 0.85rem 0.4rem;
  }

  .map-picker-choice svg {
    width: 2.7rem;
    height: 2.7rem;
  }
}

.subscribe-lead p,
.subscribe-note p,
.subscribe-faq p,
.subscribe-steps {
  line-height: 1.55;
}

.subscribe-note,
.subscribe-hint {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid #5a4a28;
}

.subscribe-note p,
.subscribe-hint p {
  margin: 0;
}

.subscribe-hint p + p {
  margin-top: 0.45rem;
}

.subscribe-alle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.15rem 0 0.15rem;
  font-weight: 650;
}

[data-calendar-panel][hidden] {
  display: none;
}

.subscribe-url-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.subscribe-radius {
  display: grid;
  gap: 0.35rem;
  margin: 0.2rem 0 0.2rem;
}

.subscribe-radius input[type="range"] {
  width: 100%;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.subscribe-radius-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
}

.subscribe-radius-note,
.subscribe-radius-editor {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.subscribe-radius-note {
  font-size: 0.92rem;
}

.subscribe-radius-editor {
  font-size: 0.78rem;
}

.subscribe-radius-editor[hidden] {
  display: none;
}

.subscribe-radius .subscribe-copy {
  margin: 0.2rem 0 0;
}

.subscribe-url {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-x: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.subscribe-actions .btn {
  width: 100%;
}

.subscribe-copy[hidden] {
  display: none;
}

.subscribe-section {
  margin-top: 1.6rem;
}

.subscribe-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.subscribe-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #141414;
  overflow: hidden;
}

.subscribe-item summary {
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.subscribe-item summary::-webkit-details-marker {
  display: none;
}

.subscribe-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.subscribe-item[open] summary::after {
  content: "–";
}

.subscribe-item summary:hover {
  background: var(--card-hover);
}

.subscribe-item-body {
  padding: 0 0.95rem 0.95rem;
}

.subscribe-steps {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.subscribe-steps li + li {
  margin-top: 0.4rem;
}

@media (min-width: 640px) {
  .subscribe-actions .btn {
    width: auto;
  }
}

.club-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.club-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.club-tab:hover:not(.is-active) {
  border-color: var(--accent);
  color: var(--accent);
}

.club-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #16120a;
  font-weight: 700;
}

.club-panel[hidden] {
  display: none !important;
}

.club-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
}

.club-toolbar input[type="search"] {
  flex: 1 1 220px;
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.8rem;
}

.club-toolbar input[type="search"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.club-filter-empty {
  margin: 0.8rem 0 0;
}

.club-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.35rem;
  max-width: 100%;
  min-width: 0;
}

.club-name-line [data-club-name] {
  min-width: 0;
  overflow-wrap: anywhere;
}

.club-name-line [data-club-name].is-clubtermine {
  color: #e23b3b;
  font-weight: 700;
}

.club-termine-heading {
  margin: 0.35rem 0 0.65rem;
  font-size: 1.05rem;
}

.club-termine-table {
  margin-bottom: 1.5rem;
}

.club-name-actions {
  display: flex;
  align-items: center;
  flex: 1 0 100%;
}

.club-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.1rem 0.15rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.club-group-toggle:hover,
.club-group-toggle:focus-visible {
  background: var(--accent-dim);
  outline: none;
}

.club-group-chevron {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.club-group-toggle[aria-expanded="true"] .club-group-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}

.club-group-members {
  margin: 0.2rem 0 0.15rem 1.25rem;
  padding: 0;
  list-style: none;
}

.club-group-members[hidden] {
  display: none;
}

.club-group-members li {
  padding: 0.16rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.club-group-members li::before {
  content: "•";
  margin-right: 0.4rem;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .club-group-chevron {
    transition: none;
  }
}

.club-rename,
.club-settings,
.club-colour-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.club-rename svg,
.club-settings svg,
.club-colour-manage svg {
  width: 1.05rem;
  height: 1.05rem;
}

.club-rename:hover,
.club-rename:focus-visible,
.club-settings:hover,
.club-settings:focus-visible,
.club-colour-manage:hover,
.club-colour-manage:focus-visible {
  background: var(--accent-dim);
  outline: none;
}

.club-settings-club {
  margin: -0.2rem 0 0.85rem;
  color: var(--muted);
}

form[data-colour-delete] {
  margin-top: 0.4rem;
}

form[data-colour-delete][hidden] {
  display: none !important;
}

.club-colour-crop[hidden] {
  display: none !important;
}

.club-colour-crop-frame {
  position: relative;
  width: min(100%, 18rem);
  aspect-ratio: 1;
  margin: 0 auto 0.55rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0c0c0c;
  touch-action: none;
  user-select: none;
}

.club-colour-crop-frame.is-movable {
  cursor: grab;
}

.club-colour-crop-frame.is-movable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.club-colour-crop-frame.is-dragging {
  cursor: grabbing;
}

.club-colour-crop-frame img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.club-colour-crop-hint {
  margin: 0 0 0.85rem;
  text-align: center;
}

.club-delete-form {
  display: inline-flex;
  margin: 0;
}

.club-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e7b3b3;
  cursor: pointer;
}

.club-delete svg {
  width: 1.05rem;
  height: 1.05rem;
}

.club-delete:hover,
.club-delete:focus-visible {
  background: rgba(196, 92, 92, 0.12);
  outline: none;
}

.club-colour-col,
.club-colour-cell {
  width: 1%;
  padding-right: 0.2rem;
  vertical-align: middle;
}

.club-colour-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.24rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  cursor: zoom-in;
}

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

.club-colour-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.club-table th.num,
.club-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.club-count-btn {
  display: inline-block;
  margin: 0;
  padding: 0.05rem 0.28rem;
  border: 0;
  border-bottom: 1px dashed var(--accent);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
  cursor: pointer;
}

.club-count-btn:hover,
.club-count-btn:focus-visible,
.club-count-btn[aria-expanded="true"] {
  color: var(--accent);
  background: var(--accent-dim);
  outline: none;
}

.club-count-tip {
  position: fixed;
  z-index: 150;
  width: max-content;
  min-width: 8rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(16rem, 50vh);
  margin: 0;
  padding: 0.35rem 0;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
  text-align: left;
  white-space: normal;
  font-variant-numeric: normal;
  font-weight: 500;
  background: var(--card-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.club-count-tip[hidden] {
  display: none !important;
}

.club-count-tip li {
  padding: 0.28rem 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.club-count-date {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-right: 0.15rem;
}

.club-table tr[hidden] {
  display: none !important;
}

.club-groups-cell {
  min-width: 220px;
}

.club-assign {
  margin: 0;
}

.club-ms-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  min-height: 46px;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.club-ms-toggle:hover,
.club-ms-toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.club-ms-toggle-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-ms-caret {
  color: var(--muted);
  flex: 0 0 auto;
}

.club-ms-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.7rem;
  max-height: min(70vh, 420px);
  overflow: auto;
}

.club-ms-panel[hidden],
.club-ms-backdrop[hidden] {
  display: none !important;
}

.club-ms-panel.is-sheet {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  width: auto;
  z-index: 140;
}

.club-ms-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 130;
}

.club-check-list {
  display: grid;
  gap: 0.15rem;
}

.club-check-list .check {
  min-height: 44px;
  margin: 0;
  padding: 0.15rem 0.1rem;
}

.club-modal .club-check-list {
  max-height: 240px;
  overflow: auto;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101010;
}

.club-ms-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  background: var(--card);
}

.club-ms-status {
  margin: 0;
  min-height: 1.15em;
  color: var(--muted);
  font-size: 0.82rem;
}

.club-ms-status.is-ok {
  color: #8fbf9a;
}

.club-ms-status.is-error {
  color: #e7b3b3;
}

.club-field-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal.club-modal {
  width: min(520px, 100%);
}

.modal.club-modal h2 {
  margin-top: 0;
}

.club-modal .flash {
  max-width: none;
  margin: 0;
}

body.club-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .club-toolbar .btn {
    width: 100%;
  }

  .club-table-wrap {
    overflow: visible;
  }

  .club-table,
  .club-table tbody,
  .club-table tr,
  .club-table td {
    display: block;
    width: 100%;
  }

  .club-table thead {
    display: none;
  }

  .club-table tr {
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #121212;
  }

  .club-table td {
    border-bottom: none;
    padding: 0.35rem 0;
  }

  .club-table td.club-name-cell {
    padding-top: 0;
    font-size: 1.05rem;
    font-weight: 650;
  }

  .club-table tr {
    position: relative;
  }

  .club-table td.club-colour-cell {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 1;
    display: block;
    width: auto;
    padding: 0;
  }

  .club-colour-frame {
    width: 2.6rem;
    height: 2.6rem;
    padding: 0.12rem;
  }

  .club-table td.club-colour-cell:not(:has(img)) {
    display: none;
  }

  .club-table td.club-colour-cell::before {
    content: none;
  }

  .club-table td.club-name-cell {
    padding-right: 2.4rem;
  }

  .club-table td:not(.club-name-cell) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
  }

  .club-table td:not(.club-name-cell)::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
  }

  .club-table td.club-groups-cell {
    display: block;
  }

  .club-table td.club-groups-cell::before {
    display: block;
    margin-bottom: 0.35rem;
  }

  .club-groups-cell {
    min-width: 0;
  }

  .club-table td.num {
    text-align: right;
  }

  .club-table td.club-empty-cell,
  .club-table td.club-empty-cell::before {
    display: block;
    content: none;
  }

  .club-ms-actions .btn {
    width: 100%;
  }
}

.news-page.page-narrow {
  max-width: 760px;
}

.news-admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.news-table td.news-empty-cell {
  color: var(--muted);
}

.news-table tr.is-expired .news-subject-cell {
  color: var(--muted);
}

.news-actions-cell {
  width: 1%;
  white-space: nowrap;
}

.news-row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-row-actions form {
  margin: 0;
}

.news-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.news-card-head h2 {
  margin: 0;
}

.news-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
}

.news-details > summary::-webkit-details-marker,
.news-details > summary::marker {
  content: "";
  display: none;
}

.news-details > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.news-details[open] > summary::after {
  content: "–";
}

.news-details > summary h2 {
  margin: 0;
  flex: 1 1 auto;
}

.news-details > summary:hover h2 {
  color: var(--accent);
}

.news-details > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.news-details-body {
  padding-top: 0.35rem;
}

.news-until {
  margin: 0.45rem 0 0;
}

.news-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0.85rem 0;
  border-radius: 10px;
  background: #0c0c0c;
}

.news-current-image {
  max-height: 180px;
}

.news-link {
  margin: 0.9rem 0 0;
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.news-actions form {
  margin: 0;
}

.news-section-title {
  margin: 1.6rem 0 0.8rem;
}

.modal.news-modal {
  width: min(640px, 100%);
}

#news-auto-modal {
  z-index: 180;
}

body.news-modal-open {
  overflow: hidden;
}

.news-count {
  margin: 0 0 0.35rem;
}

.news-image[hidden],
.news-link[hidden],
.news-until[hidden],
.news-count[hidden],
.news-error[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .news-page .page-head .btn,
  .news-admin-toolbar .btn,
  .news-actions .btn,
  .news-actions form,
  .news-actions form .btn {
    width: 100%;
  }

  .news-page .table-wrap {
    overflow: visible;
  }

  .news-table,
  .news-table tbody,
  .news-table tr,
  .news-table td {
    display: block;
    width: 100%;
  }

  .news-table thead {
    display: none;
  }

  .news-table tr {
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #121212;
  }

  .news-table tr:last-child {
    margin-bottom: 0;
  }

  .news-table td {
    border-bottom: none;
    padding: 0.35rem 0;
  }

  .news-table td.news-subject-cell {
    padding-top: 0;
    font-size: 1.05rem;
    font-weight: 650;
  }

  .news-table td:not(.news-subject-cell):not(.news-empty-cell) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
  }

  .news-table td:not(.news-subject-cell):not(.news-empty-cell)::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
  }

  .news-table td.news-actions-cell {
    width: auto;
    white-space: normal;
  }

  .news-table td.news-empty-cell,
  .news-table td.news-empty-cell::before {
    display: block;
    content: none;
  }
}

.mein-club {
  min-width: 0;
}

.mein-club-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  margin: 0 0 0.6rem;
}

.mein-club-colour-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.mein-club-colour {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mein-club-colour-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.mein-club-colour-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.mein-club-colour-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0.2rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.mein-club-colour img,
.mein-club-colour-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mein-club-colour.is-managed .mein-club-colour-label {
  padding-bottom: 1.15rem;
}

.mein-club-colour > .mein-club-colour-upload {
  position: absolute;
  right: 0.12rem;
  bottom: 0.12rem;
  z-index: 1;
}

.mein-club-colour-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(12, 12, 12, 0.72);
  color: var(--accent);
  cursor: pointer;
}

.mein-club-colour-upload svg {
  width: 0.85rem;
  height: 0.85rem;
}

.mein-club-colour-upload:hover,
.mein-club-colour-upload:focus-visible {
  background: var(--accent-dim);
  color: var(--accent);
  outline: none;
}

.mein-club-colour-preview {
  width: 8rem;
  height: 8rem;
  margin: 0 0 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.mein-club-switch {
  width: min(100%, 36rem);
  margin: 0 auto 1rem;
}

.mein-club-switch label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
}

.mein-club-switch select {
  width: min(100%, 24rem);
}

.mein-club-title {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  overflow-wrap: anywhere;
}

.mein-club-rename-btn {
  flex: 0 0 auto;
}

.mein-club-section {
  margin-top: 2rem;
}

.mein-club-section > h2 {
  margin-bottom: 0.9rem;
}

.mein-club-group-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: -0.15rem 0 1rem;
}

.mein-club-group-intro span {
  flex: 1 1 18rem;
  min-width: min(100%, 16rem);
}

.mein-club-section > h3 {
  margin: 1.2rem 0 0.7rem;
  font-size: 1.05rem;
}

.mein-club-profile .detail-list {
  margin: 0;
}

.mein-club-profile dd {
  margin: 0;
}

.mein-club-profile a,
.mein-club-group li,
.mein-club-event h2,
.mein-club-excerpt {
  overflow-wrap: anywhere;
}

.mein-club-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.8rem;
}

.mein-club-member {
  position: relative;
  margin-bottom: 0;
  min-width: 0;
}

.mein-club-member.is-reportable {
  padding-right: 3rem;
}

.mein-club-report {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.mein-club-report svg {
  width: 1rem;
  height: 1rem;
}

.mein-club-report:hover,
.mein-club-report:focus-visible {
  background: var(--accent-dim);
  color: var(--accent);
  outline: none;
}

.mein-club-block-form {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  margin: 0;
}

.mein-club-block-form .mein-club-report {
  position: static;
}

.mein-club-block,
.mein-club-block.btn-danger {
  color: #e7b3b3;
  border: 0;
  background: transparent;
}

.mein-club-block:hover,
.mein-club-block:focus-visible,
.mein-club-block.btn-danger:hover,
.mein-club-block.btn-danger:focus-visible {
  background: rgba(196, 92, 92, 0.12);
  color: #e7b3b3;
  outline: none;
}

.telegram-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: #3b82f6;
  vertical-align: 0.08em;
}

.mein-club-member h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.mein-club-rang {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin: -0.2rem 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--muted);
}

.mein-club-rang-label {
  min-width: 0;
}

.mein-club-rang-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.mein-club-rang-edit svg {
  width: 0.9rem;
  height: 0.9rem;
}

.mein-club-rang-edit:hover,
.mein-club-rang-edit:focus-visible {
  background: var(--accent-dim);
  color: var(--accent);
  outline: none;
}

.mein-club-role {
  margin: 0.15rem 0 0.45rem;
}

.mein-club-member p:last-child {
  margin-bottom: 0;
}

.mein-club-groups {
  display: grid;
  gap: 0.8rem;
}

.mein-club-group {
  margin-bottom: 0;
  min-width: 0;
}

.mein-club-group h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.mein-club-group p {
  margin-bottom: 0.35rem;
}

.mein-club-group ul {
  margin: 0;
  padding-left: 1.15rem;
}

.mein-club-group li {
  margin: 0.28rem 0;
}

.mein-club-group-colour,
.event-detail-colour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.75rem;
  height: 1.85rem;
  margin: 0 0.4rem 0 0;
  padding: 0.12rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

button.mein-club-group-colour,
button.event-detail-colour {
  cursor: zoom-in;
}

.mein-club-group-colour:focus-visible,
.event-detail-colour:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mein-club-group-colour img,
.event-detail-colour img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mein-club-own strong {
  color: var(--accent);
}

.mein-club-own .badge {
  margin-left: 0.35rem;
  vertical-align: middle;
}

.mein-club-leave-form {
  display: inline-flex;
  margin: 0 0 0 0.15rem;
  vertical-align: middle;
}

.mein-club-leave,
.mein-club-leave.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e7b3b3;
  cursor: pointer;
}

.mein-club-leave svg {
  width: 1rem;
  height: 1rem;
}

.mein-club-leave:hover,
.mein-club-leave:focus-visible,
.mein-club-leave.btn-danger:hover,
.mein-club-leave.btn-danger:focus-visible {
  background: rgba(196, 92, 92, 0.12);
  color: #e7b3b3;
  outline: none;
}

.mein-club-event p {
  overflow-wrap: anywhere;
}

.mein-club-kind {
  margin-bottom: 0.45rem;
}

.badge.mein-club-kind-event {
  color: #d7e4c8;
  border-color: #3d5238;
}

.badge.mein-club-kind-club {
  color: #ead7a4;
  border-color: #5a4a28;
}

.mein-club-event h2 {
  margin-bottom: 0.25rem;
}

.mein-club-event h2 a {
  color: inherit;
}

.mein-club-excerpt {
  white-space: pre-line;
}

.event-list-card.no-flyer {
  grid-template-columns: 1fr;
}

.mein-club .event-list-flyer,
.mein-club .event-list-flyer img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .mein-club-section {
    margin-top: 1.5rem;
  }

  .mein-club .event-list-flyer {
    justify-self: center;
    max-width: min(100%, 220px);
  }

  .mein-club .event-list-flyer img {
    max-width: min(100%, 220px);
    max-height: 280px;
  }

  .mein-club-event .form-actions,
  .mein-club-event .form-actions .btn {
    width: 100%;
  }
}

.zusatzoptionen-root {
  display: grid;
  gap: 0.75rem;
}

.zusatzoptionen-card {
  margin: 0;
  padding: 0.9rem;
  background: #101010;
  box-shadow: none;
}

.zusatzoptionen-card[hidden] {
  display: none !important;
}

.zusatzoptionen-card .flash {
  margin: 0 0 0.75rem;
  max-width: none;
}

.zusatzoptionen-error[hidden] {
  display: none !important;
}

.zusatzoptionen-table {
  display: grid;
  gap: 0.55rem;
}

.zusatzoptionen-row {
  display: grid;
  grid-template-columns: 4.75rem minmax(8.5rem, 10.5rem) minmax(0, 1fr);
  gap: 0.45rem 0.55rem;
  align-items: center;
}

.zusatzoptionen-row[data-zusatz-row] {
  grid-template-areas: "active emoji text";
}

.zusatzoptionen-head {
  color: var(--muted);
  font-size: 0.82rem;
}

.zusatzoptionen-row > [data-zusatz-emoji] {
  display: none;
}

.zusatzoptionen-row .zusatz-active {
  grid-area: active;
  justify-self: start;
}

.zusatz-emoji-cell {
  grid-area: emoji;
  min-width: 0;
}

.zusatz-text-cell {
  grid-area: text;
  min-width: 0;
}

.zusatz-emoji-btn {
  width: 100%;
  min-width: 0;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.zusatz-emoji-btn.is-empty {
  font-size: 0.92rem;
}

.zusatz-emoji-btn:not(.is-empty) {
  font-size: 1.55rem;
  line-height: 1;
}

.zusatzoptionen-row .zusatz-text {
  min-width: 0;
  width: 100%;
}

.emoji-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.emoji-picker-backdrop[hidden] {
  display: none;
}

.emoji-picker-dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: min(92vh, 640px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
}

.emoji-picker-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
}

.emoji-picker-dialog h2 {
  margin: 0 2.2rem 0.9rem 0;
  font-size: 1.2rem;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.emoji-picker-choice {
  min-height: 3.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.emoji-picker-choice:hover:not(:disabled),
.emoji-picker-choice:focus-visible:not(:disabled) {
  border-color: var(--accent);
  outline: none;
}

.emoji-picker-choice.is-current {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.emoji-picker-choice:disabled,
.emoji-picker-choice.is-used {
  opacity: 0.35;
  cursor: not-allowed;
}

.emoji-picker-empty {
  grid-column: 1 / -1;
  margin: 0;
}

body.emoji-picker-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .zusatzoptionen-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .zusatzoptionen-row[data-zusatz-row] {
    grid-template-areas:
      "active emoji"
      "text text";
  }

  .zusatzoptionen-head {
    display: none;
  }

  .emoji-picker-dialog {
    padding: 1.1rem 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .emoji-picker-choice {
    min-height: 3.1rem;
    font-size: 1.65rem;
  }
}
