:root {
  color-scheme: light;
  --ink: #24180d;
  --ink-soft: #6d5743;
  --paper: #fff8ec;
  --paper-strong: #fffdf7;
  --beer: #f7b733;
  --beer-dark: #ce7b16;
  --foam: #fff2c7;
  --mint: #75c9a5;
  --blue: #3657a6;
  --rose: #ef7b7b;
  --line: rgba(36, 24, 13, 0.14);
  --shadow: 0 22px 60px rgba(88, 50, 9, 0.18);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
  font-family: ui-rounded, "Avenir Next", "Trebuchet MS", Verdana, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(247, 183, 51, 0.45), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(117, 201, 165, 0.34), transparent 24rem),
    linear-gradient(135deg, #fff8ec 0%, #ffe8b7 52%, #f8dcc9 100%);
}

button, input, select, textarea { font: inherit; }

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

stammtisch-app { display: block; }

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  border: 2px solid rgba(36, 24, 13, 0.08);
  border-radius: 999px;
  pointer-events: none;
}

.app-shell::before {
  width: 34rem;
  height: 34rem;
  right: -14rem;
  top: 8rem;
}

.app-shell::after {
  width: 18rem;
  height: 18rem;
  left: -7rem;
  bottom: 5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(150deg, var(--beer), var(--foam));
  box-shadow: 7px 7px 0 rgba(36, 24, 13, 0.13);
  font-size: 1.55rem;
  transform: rotate(-4deg);
}

.brand h1,
.brand p { margin: 0; }

.brand h1 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: -0.04em;
}

.brand p {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.tenant-logo {
  display: block;
  width: clamp(10rem, 25vw, 19rem);
  max-height: 3.2rem;
  object-fit: contain;
  object-position: left center;
}

.nav-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.62);
  backdrop-filter: blur(16px);
}

.nav-pills a {
  flex: 0 0 auto;
  padding: 0.68rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.nav-pills a:hover,
.nav-pills a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

.hero {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.hero-card,
.panel,
.event-card,
.stammtisch-card,
.member-card,
.calendar-day {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 25rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-xl);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -7rem;
  width: 22rem;
  height: 22rem;
  border-radius: 44% 56% 58% 42%;
  background: repeating-linear-gradient(90deg, rgba(247, 183, 51, 0.5) 0 18px, rgba(255, 242, 199, 0.7) 18px 36px);
  transform: rotate(-18deg);
}

.kicker {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--foam);
  color: var(--beer-dark);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 10vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 0 rgba(36, 24, 13, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(36, 24, 13, 0.12);
}

.btn.secondary {
  background: var(--foam);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.danger { background: var(--rose); }
.btn.full { grid-column: 1 / -1; }

.panel {
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.panel h3,
.section-title h2,
.card-title {
  margin: 0;
  letter-spacing: -0.045em;
}

.panel h3 { font-size: 1.45rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 248, 236, 0.86);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.main-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1rem auto 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.crud-main {
  align-items: start;
  min-height: calc(100vh - 8rem);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.section-title h2 { font-size: clamp(2rem, 5vw, 3.4rem); }

.section-title p {
  max-width: 28rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-12 { grid-column: span 12; }

.action-page {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.crud-page {
  justify-self: center;
  width: min(68rem, 100%);
  padding: clamp(1.25rem, 4vw, 2.4rem);
}

.crud-page-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.25rem;
}

.crud-page-head .btn {
  justify-self: start;
}

.crud-page-head h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.085em;
}

.crud-page-head p {
  max-width: 42rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.5;
}

.route-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  max-width: min(100%, 52rem);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
}

.route-context span,
.route-context code {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.route-context strong {
  color: var(--ink);
  font-weight: 1000;
}

.route-context code {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-page {
  width: min(78rem, 100%);
  justify-self: center;
  padding: clamp(1.25rem, 4vw, 2.4rem);
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.detail-head > .btn { justify-self: start; }

.detail-head > div:not(.detail-actions) {
  min-width: 0;
}

.detail-head h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

.detail-head p:not(.kicker) {
  max-width: 42rem;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.65rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.detail-section {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 236, 0.52);
}

.side-panel { grid-row: span 2; }

.section-title.compact {
  align-items: center;
  margin: 0;
}

.section-title.compact h3 {
  margin: 0;
  font-size: 1.45rem;
}

.profile-preview .public-stammtisch-card { max-width: none; }

.card-list {
  display: grid;
  gap: 0.8rem;
}

.stammtisch-card,
.event-card,
.member-card,
.calendar-day,
.webhook-card,
.webhook-delivery {
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.stammtisch-card,
.webhook-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: start;
}

.webhook-card,
.webhook-delivery {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.7);
}

.webhook-card p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.webhook-delivery {
  display: grid;
  gap: 0.25rem;
  box-shadow: none;
}

.webhook-delivery span {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.card-title { font-size: 1.35rem; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(117, 201, 165, 0.22);
  border: 1px solid rgba(36, 24, 13, 0.1);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.chip.warn { background: rgba(239, 123, 123, 0.2); }
.chip.blue { background: rgba(54, 87, 166, 0.14); }
.chip.founder {
  background: linear-gradient(135deg, #fff4cf, #d6a235);
  border-color: rgba(120, 69, 27, 0.24);
  color: #3a230c;
}

.response-chip {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  gap: 0.35rem;
}

.response-chip:hover,
.response-chip:focus-visible {
  outline: 2px solid rgba(11, 117, 209, 0.45);
  outline-offset: 2px;
}

.response-chip strong {
  font-variant-numeric: tabular-nums;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.stammtisch-actions .btn {
  min-height: 2.45rem;
  padding: 0.58rem 0.85rem;
  font-size: 0.88rem;
}

.stammtisch-response-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
  max-width: 42rem;
}

.stammtisch-response-line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.66);
}

.stammtisch-response-line span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 1000;
}

.stammtisch-response-line strong {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
}

.stammtisch-response-line small {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-location {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.response-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(6.8rem, 1fr));
  gap: 0.5rem;
}

.response-stat {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  min-height: 5rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.68);
}

.response-stat span,
.response-stat small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-stat span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 1000;
}

.response-stat strong {
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.response-stat small {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.response-stat.is-selected {
  border-color: rgba(11, 117, 209, 0.7);
  background: rgba(11, 117, 209, 0.13);
}

.response-choice {
  gap: 0.45rem;
}

.response-choice span {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(7, 27, 58, 0.12);
  font-size: 0.78rem;
}

.response-choice.is-selected {
  background: linear-gradient(135deg, #0b75d1, #0b4f9f);
  color: #fff8dc;
  box-shadow: 0 0 0 3px rgba(11, 117, 209, 0.22), 0 8px 0 rgba(36, 24, 13, 0.12);
}

.response-choice.is-selected span {
  background: rgba(255, 248, 220, 0.22);
  color: #fff8dc;
}

.advanced-settings {
  display: block;
  padding: 0.85rem;
  border: 1px solid rgba(143, 43, 34, 0.24);
  border-radius: 18px;
  background: rgba(239, 123, 123, 0.08);
}

.advanced-settings summary {
  cursor: pointer;
  color: #8f2b22;
  font-weight: 1000;
  list-style-position: inside;
}

.advanced-settings-body {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.advanced-settings-body p {
  max-width: 42rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.advanced-settings .btn.danger {
  justify-self: start;
  background: #c83226;
  color: #fff8dc;
}

.public-stammtisch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.public-stammtisch-card {
  max-width: 28rem;
  min-width: 0;
}

.public-frame {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  min-height: 30rem;
  padding: 2rem 1.4rem 1.5rem;
  border: 14px solid #6b3f24;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(245, 230, 197, 0.9)),
    repeating-linear-gradient(90deg, rgba(7, 27, 58, 0.05) 0 1px, transparent 1px 16px);
  box-shadow: inset 0 0 0 2px rgba(120, 69, 27, 0.36), 0 18px 38px rgba(45, 25, 8, 0.16);
  text-align: center;
}

.public-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 14.4rem;
  aspect-ratio: 1;
  margin-top: 0.1rem;
}

.public-circle-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.public-circle-label text {
  fill: #173f91;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(255, 248, 220, 0.92);
  stroke-width: 0.42rem;
}

.public-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 12rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 7px solid rgba(255, 253, 247, 0.96);
  outline: 2px solid rgba(7, 27, 58, 0.14);
  background: radial-gradient(circle, #fff8dc, #d9caa2);
  overflow: hidden;
}

.public-portrait img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.public-portrait picture {
  display: contents;
}

.public-portrait img[src^="http"],
.public-portrait img[src^="/uploads/"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-portrait strong {
  font-size: 2.8rem;
  letter-spacing: 0;
}

.public-plaque {
  display: grid;
  gap: 0.25rem;
  width: min(19rem, 100%);
  padding: 0.9rem 1rem;
  border: 1px solid rgba(36, 24, 13, 0.2);
  background: rgba(255, 248, 236, 0.72);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.public-plaque span,
.public-plaque em {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.public-frame h3 {
  margin: 0.25rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1;
}

.public-frame time {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(214, 162, 53, 0.2);
  color: var(--ink);
  font-weight: 900;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  text-decoration: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.edit-box {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 236, 0.68);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

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

.field.full { grid-column: 1 / -1; }

.field.action-field { align-content: end; }

.upload-field {
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(36, 24, 13, 0.22);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.62);
}

.upload-field input[type="file"] {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.upload-field small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.switch-field {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 4.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.switch-field span,
.switch-field strong { font-size: 0.92rem; }

.switch-field input {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: var(--beer-dark);
}

.switch-field strong {
  grid-column: 1 / -1;
  color: var(--ink-soft);
}

.auth-layout {
  width: min(46rem, calc(100% - 2rem));
  margin: clamp(1rem, 5vw, 4rem) auto 4rem;
}

.auth-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 247, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card h2 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.085em;
}

.auth-card p {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 800;
}

.dev-code {
  grid-column: 1 / -1;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(54, 87, 166, 0.12);
  color: var(--ink);
  font-weight: 900;
}

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

.planner-switch,
.series-rule-grid,
.planner-actions,
.manual-add {
  display: grid;
  gap: 0.65rem;
}

.planner-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(36, 24, 13, 0.06);
}

.planner-switch button,
.series-rule-grid button,
.check-chip span {
  min-height: 2.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
  color: var(--ink);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.planner-switch button.is-active,
.series-rule-grid button.is-active,
.check-chip input:checked + span {
  border-color: rgba(36, 24, 13, 0.22);
  background: linear-gradient(135deg, var(--beer), var(--mint));
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(88, 50, 9, 0.14);
}

.planner-section { display: none; }
.planner-section.is-active { display: grid; gap: 1rem; }

.series-rule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.series-rule-grid button {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  min-height: 7.2rem;
  padding: 1rem;
  text-align: left;
  border-radius: 22px;
}

.series-rule-grid strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.series-rule-grid span,
.planner-hint {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.planner-hint { margin: 0; font-weight: 800; }

.series-options {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 236, 0.58);
}

.form-grid.tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.chip-grid.compact { gap: 0.35rem; }

.check-chip {
  display: inline-flex;
  color: inherit;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}

.check-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 3.2rem;
  padding: 0.62rem 0.8rem;
}

.manual-add,
.planner-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.proposal-list {
  display: grid;
  gap: 0.55rem;
  max-height: 28rem;
  overflow: auto;
  padding: 0.2rem;
}

.proposal-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(10rem, 1fr) 5.2rem 5.2rem 6rem auto;
  gap: 0.45rem;
  align-items: end;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.72);
}

.proposal-row.is-inactive {
  background: rgba(220, 225, 229, 0.48);
  color: rgba(9, 37, 76, 0.55);
}

.proposal-row.is-inactive::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  top: 50%;
  border-top: 3px solid rgba(139, 45, 50, 0.72);
  pointer-events: none;
}

.proposal-row.is-inactive .proposal-date strong,
.proposal-row.is-inactive label:not(.proposal-active),
.proposal-row.is-inactive input {
  color: rgba(9, 37, 76, 0.55);
  text-decoration: line-through;
  text-decoration-thickness: 0.14em;
}

.proposal-row.is-inactive input {
  background: rgba(247, 247, 244, 0.74);
}

.proposal-row label {
  display: grid;
  gap: 0.25rem;
}

.proposal-active {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 2.3rem;
  color: var(--paper);
}

.proposal-active input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.proposal-active span {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid rgba(8, 30, 68, 0.26);
  border-radius: 16px;
  background: var(--paper);
  color: rgba(8, 30, 68, 0.44);
  font-weight: 1000;
  box-shadow: inset 0 -2px 0 rgba(8, 30, 68, 0.08);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.proposal-active span i {
  min-height: 1.3rem;
  color: transparent;
  font-size: 1.25rem;
  font-style: normal;
  line-height: 1;
}

.proposal-active span small {
  font-size: 0.68rem;
  line-height: 1;
}

.proposal-active:hover span {
  transform: translateY(-1px);
}

.proposal-active input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.proposal-active input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--paper);
  box-shadow: 0 10px 18px rgba(0, 112, 210, 0.24), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.proposal-active input:checked + span i {
  color: var(--paper);
}

.proposal-row.is-inactive .proposal-active span {
  border-color: rgba(8, 30, 68, 0.24);
  background: rgba(255, 255, 255, 0.68);
  color: rgba(8, 30, 68, 0.46);
  box-shadow: inset 0 -2px 0 rgba(8, 30, 68, 0.06);
}

.proposal-date {
  display: grid;
  gap: 0.25rem;
}

.proposal-date strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.proposal-date em {
  color: var(--beer-dark);
  font-size: 0.78rem;
  font-weight: 900;
  font-style: normal;
}

.proposal-row input {
  padding: 0.62rem 0.68rem;
  border-radius: 13px;
}

.series-submit-row { display: flex; justify-content: flex-end; }

.empty.small {
  padding: 1rem;
  font-size: 0.92rem;
}

label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--ink);
  padding: 0.85rem 0.9rem;
  outline: 0;
}

textarea { min-height: 6rem; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--beer-dark);
  box-shadow: 0 0 0 4px rgba(247, 183, 51, 0.22);
}

.member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  background: var(--beer);
  color: var(--ink);
  font-weight: 1000;
  box-shadow: 5px 5px 0 rgba(36, 24, 13, 0.1);
}

.member-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.member-main strong,
.member-main span { display: block; }

.member-main span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.mini-link {
  min-height: 1.9rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(36, 24, 13, 0.08);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.mini-link.danger {
  background: rgba(239, 123, 123, 0.18);
  color: #8f2b22;
}

.event-card {
  display: grid;
  gap: 0.75rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(255, 242, 199, 0.78));
}

.event-photo {
  width: 100%;
  max-height: 15rem;
  border-radius: 18px;
  object-fit: cover;
}

.event-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.event-date {
  display: grid;
  align-content: center;
  place-items: center;
  min-width: 4.85rem;
  min-height: 5.15rem;
  padding: 0.45rem 0.5rem;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-weight: 1000;
}

.event-date span { display: block; font-size: 0.74rem; line-height: 1; opacity: 0.82; text-transform: uppercase; }
.event-date strong { display: block; font-size: 1.5rem; line-height: 1; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.calendar-day {
  min-height: 7rem;
  box-shadow: none;
  background: rgba(255, 253, 247, 0.58);
}

.calendar-day time {
  display: block;
  color: var(--ink-soft);
  font-weight: 900;
  font-size: 0.82rem;
}

.calendar-day strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.9rem;
}

.public-calendar-panel {
  display: grid;
  gap: 1rem;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(16rem, 0.45fr);
  align-items: center;
  gap: 0.75rem;
}

.calendar-tabs {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
}

.calendar-tabs button,
.icon-step {
  min-height: 2.35rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 950;
}

.calendar-tabs button {
  padding: 0.42rem 0.76rem;
}

.calendar-tabs button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.calendar-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
}

.icon-step {
  display: grid;
  place-items: center;
  width: 2.35rem;
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.72);
  font-size: 1.4rem;
}

.calendar-range-label {
  min-width: 9rem;
  color: var(--ink-soft);
  font-weight: 950;
  text-align: center;
}

.calendar-search {
  display: grid;
  gap: 0.25rem;
}

.calendar-search span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-search input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--ink);
  outline: 0;
}

.calendar-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(54, 87, 166, 0.12);
}

.calendar-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-weight: 900;
}

.calendar-summary strong {
  display: inline-grid;
  place-items: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.public-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.public-calendar-main { min-width: 0; }

.event-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.calendar-list-view {
  display: grid;
  gap: 0.8rem;
}

.public-event-card {
  width: 100%;
  min-height: 10.25rem;
  display: grid;
  grid-template-columns: minmax(7rem, 0.34fr) minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, 0.82);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}

.public-event-card:hover,
.public-event-card:focus-visible,
.public-event-card.is-selected {
  outline: 0;
  border-color: rgba(54, 87, 166, 0.42);
  box-shadow: 0 12px 36px rgba(7, 27, 58, 0.12);
}

.public-event-card.is-large {
  grid-column: span 2;
  min-height: 14rem;
}

.public-event-card.is-compact {
  grid-template-columns: 1fr;
  min-height: 0;
}

.public-event-card.is-row {
  min-height: 9rem;
}

.public-event-card.is-compact .public-event-media {
  display: none;
}

.public-event-media {
  position: relative;
  display: grid;
  place-items: stretch;
  min-height: 8rem;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(214, 162, 53, 0.28), rgba(11, 79, 159, 0.12));
}

.public-event-media img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  object-fit: cover;
  opacity: 0;
  transition: opacity 160ms ease;
}

.public-event-media.has-image img {
  opacity: 1;
}

.public-event-media .media-fallback {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 8rem;
  color: var(--ink-soft);
  font-size: 2rem;
  font-weight: 1000;
}

.public-event-media.has-image .media-fallback {
  opacity: 0;
}

.public-event-copy {
  display: grid;
  align-content: start;
  gap: 0.36rem;
  min-width: 0;
}

.public-event-copy strong {
  font-size: 1.18rem;
  line-height: 1.08;
}

.public-event-copy > span:not(.event-kicker):not(.event-chip-row),
.public-event-copy em {
  color: var(--ink-soft);
  line-height: 1.35;
}

.public-event-copy em {
  font-style: normal;
}

.event-kicker {
  color: var(--beer-dark);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.event-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.event-chip-row i {
  padding: 0.24rem 0.48rem;
  border: 1px solid rgba(214, 162, 53, 0.48);
  border-radius: 999px;
  background: rgba(255, 244, 207, 0.78);
  color: var(--beer-dark);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
}

.detail-event-date {
  display: grid;
  gap: 0.2rem;
  color: var(--ink-soft);
  font-weight: 900;
}

.calendar-event-detail-layout {
  display: grid;
  gap: 1rem;
}

.calendar-event-detail-card {
  display: grid;
  gap: 1rem;
  max-width: 62rem;
}

.calendar-event-hero-image {
  width: 100%;
  max-height: 30rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.calendar-event-detail-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.calendar-week-view {
  display: grid;
  grid-template-columns: repeat(7, minmax(8rem, 1fr));
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.week-day-column,
.month-day {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.62);
}

.week-day-column {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-width: 8rem;
  padding: 0.6rem;
}

.week-day-head,
.month-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-weight: 950;
}

.week-day-head strong,
.month-day-head strong {
  color: var(--ink);
}

.week-day-events {
  display: grid;
  gap: 0.45rem;
}

.calendar-month-view {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.month-weekday {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

.month-day {
  min-height: 8rem;
  padding: 0.55rem;
}

.month-day.is-muted {
  opacity: 0.48;
}

.month-day-events {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.month-event-pill {
  display: block;
  width: 100%;
  min-height: 1.85rem;
  padding: 0.28rem 0.42rem;
  border-radius: 9px;
  background: rgba(7, 27, 58, 0.08);
  color: var(--ink);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.month-event-pill.is-selected,
.month-event-pill:hover,
.month-event-pill:focus-visible {
  outline: 0;
  background: var(--ink);
  color: var(--paper);
}

.month-more {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.status-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 10;
  transform: translateX(-50%);
  width: min(36rem, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(36, 24, 13, 0.9);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.empty {
  padding: 1.5rem;
  border: 1px dashed rgba(36, 24, 13, 0.22);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  text-align: center;
}

.tenant-hofbraeuhaus {
  --ink: #071b3a;
  --ink-soft: #5d6780;
  --paper: #fbf7ec;
  --paper-strong: #fffdf7;
  --beer: #d6a235;
  --beer-dark: #94630c;
  --foam: #fff4cf;
  --blue: #0b4f9f;
  --line: rgba(7, 27, 58, 0.16);
  --shadow: 0 24px 64px rgba(7, 27, 58, 0.16);
  background:
    radial-gradient(circle at 78% 8%, rgba(214, 162, 53, 0.24), transparent 18rem),
    linear-gradient(180deg, #050b15 0 8.5rem, #071b3a 8.5rem 13rem, #f4f6fa 13rem 100%);
}

.tenant-hofbraeuhaus .topbar {
  color: #fff8dc;
}

.tenant-hofbraeuhaus::before {
  border-color: rgba(11, 79, 159, 0.16);
}

.tenant-hofbraeuhaus::after {
  border-color: rgba(214, 162, 53, 0.24);
}

.tenant-hofbraeuhaus .brand-mark {
  color: #fff8dc;
  background:
    radial-gradient(circle at 50% 36%, #2d78c5 0 23%, transparent 24%),
    linear-gradient(145deg, #0a4a95, #072553 72%);
  border-color: #d6a235;
  box-shadow: 0 0 0 4px rgba(214, 162, 53, 0.18), 7px 7px 0 rgba(7, 27, 58, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.tenant-hofbraeuhaus .brand h1 {
  color: #fff8dc;
  font-size: 0;
}

.tenant-hofbraeuhaus .brand p {
  color: rgba(255, 248, 220, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.tenant-hofbraeuhaus .nav-pills {
  border-color: rgba(214, 162, 53, 0.28);
  background: rgba(255, 248, 220, 0.12);
}

.tenant-hofbraeuhaus .nav-pills a {
  color: #fff8dc;
}

.tenant-hofbraeuhaus .nav-pills a:hover,
.tenant-hofbraeuhaus .nav-pills a:focus-visible {
  background: #d6a235;
  color: #071b3a;
}

.tenant-hofbraeuhaus .hero-card {
  background:
    radial-gradient(circle at 78% 58%, rgba(13, 90, 172, 0.78), transparent 17rem),
    linear-gradient(135deg, rgba(5, 11, 21, 0.98), rgba(7, 27, 58, 0.96) 48%, rgba(3, 13, 31, 0.98)),
    repeating-linear-gradient(90deg, rgba(214, 162, 53, 0.12) 0 1px, transparent 1px 28px);
  color: #fff8dc;
  border-color: rgba(214, 162, 53, 0.34);
  box-shadow: 0 28px 80px rgba(5, 11, 21, 0.26);
}

.tenant-hofbraeuhaus .hero-card::after {
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 253, 247, 0.58), transparent 21%),
    conic-gradient(from -18deg, #0b4f9f, #0a3770, #d6a235, #061c3f, #0b4f9f);
  opacity: 0.58;
}

.tenant-hofbraeuhaus .hero h2 {
  color: #fff8dc;
  font-family: ui-rounded, "Avenir Next", "Trebuchet MS", Verdana, sans-serif;
  letter-spacing: -0.085em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.tenant-hofbraeuhaus .hero-copy {
  color: rgba(255, 248, 220, 0.76);
}

.tenant-hofbraeuhaus .kicker,
.tenant-hofbraeuhaus .chip {
  border-color: rgba(214, 162, 53, 0.42);
  background: linear-gradient(135deg, #fff7d9, #f3d17d);
  color: #6c4205;
}

.tenant-hofbraeuhaus .btn {
  background: linear-gradient(135deg, #0b75d1, #0b4f9f);
  color: #fff8dc;
}

.tenant-hofbraeuhaus .btn.secondary {
  background: linear-gradient(135deg, #fff4cf, #e7c55d);
  color: #071b3a;
}

.tenant-hofbraeuhaus .response-choice.is-selected {
  background: linear-gradient(135deg, #0b75d1, #0b4f9f);
  color: #fff8dc;
}

.tenant-hofbraeuhaus .response-choice.is-selected span {
  background: rgba(255, 248, 220, 0.22);
  color: #fff8dc;
}

.tenant-hofbraeuhaus .response-stat.is-selected {
  border-color: rgba(11, 117, 209, 0.7);
  background: rgba(11, 117, 209, 0.13);
}

.tenant-hofbraeuhaus .panel,
.tenant-hofbraeuhaus .auth-card,
.tenant-hofbraeuhaus .event-card,
.tenant-hofbraeuhaus .stammtisch-card,
.tenant-hofbraeuhaus .member-card,
.tenant-hofbraeuhaus .calendar-day,
.tenant-hofbraeuhaus .public-event-card,
.tenant-hofbraeuhaus .week-day-column,
.tenant-hofbraeuhaus .month-day,
.tenant-hofbraeuhaus .webhook-card,
.tenant-hofbraeuhaus .webhook-delivery {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(7, 27, 58, 0.12);
}

.tenant-hofbraeuhaus .event-date {
  background: linear-gradient(160deg, #0b4f9f, #071b3a);
  color: #fff8dc;
  border: 2px solid rgba(214, 162, 53, 0.42);
}

@media (max-width: 860px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .detail-head,
  .detail-grid { grid-template-columns: 1fr; }
  .detail-actions { justify-content: flex-start; }
  .side-panel { grid-row: auto; }
  .span-7,
  .span-5,
  .span-12 { grid-column: auto; }
  .section-title { align-items: start; flex-direction: column; }
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-toolbar { grid-template-columns: 1fr; }
  .response-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stammtisch-response-list { grid-template-columns: 1fr; }
  .calendar-tabs,
  .calendar-tools { justify-content: flex-start; overflow-x: auto; }
  .calendar-range-label { text-align: left; }
  .public-calendar-layout { grid-template-columns: 1fr; }
  .calendar-month-view { grid-template-columns: repeat(7, minmax(6.5rem, 1fr)); overflow-x: auto; }
  .proposal-row { grid-template-columns: 2.2rem repeat(2, minmax(0, 1fr)); }
  .proposal-date { grid-column: 2 / -1; }
  .proposal-row .mini-link { grid-column: 2 / -1; }
}

@media (max-width: 560px) {
  :root {
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 13px;
  }

  body {
    background: linear-gradient(135deg, #fff8ec 0%, #ffe8b7 58%, #f8dcc9 100%);
  }

  .topbar,
  .main-grid {
    width: min(calc(100% - 0.75rem), var(--max));
  }

  .topbar {
    gap: 0.55rem;
    padding: 0.55rem 0;
  }

  .brand-mark { width: 2.8rem; height: 2.8rem; }
  .tenant-logo { width: min(14rem, 72vw); }
  .nav-pills { border-radius: 20px; }
  .nav-pills a { padding: 0.65rem 0.75rem; }
  .main-grid {
    gap: 0.65rem;
    margin-top: 0.5rem;
  }

  .panel,
  .detail-page,
  .detail-section,
  .event-card {
    padding: 0.85rem;
  }

  .detail-head {
    gap: 0.7rem;
  }

  .detail-head h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10.5vw, 2.55rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-wrap: balance;
  }

  .detail-head p:not(.kicker) {
    margin-top: 0.45rem;
    font-size: 0.9rem;
  }

  .detail-actions,
  .card-actions {
    gap: 0.42rem;
  }

  .btn {
    min-height: 2.25rem;
    padding: 0.48rem 0.62rem;
    font-size: 0.82rem;
    box-shadow: 0 5px 0 rgba(36, 24, 13, 0.12);
  }

  .detail-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
  }

  .hero-card { min-height: 20rem; }
  .stat-grid,
  .form-grid { grid-template-columns: 1fr; }
  .field {
    gap: 0.35rem;
  }

  .field label {
    font-size: 0.72rem;
  }

  input,
  select,
  textarea {
    padding: 0.62rem 0.7rem;
    border-radius: 13px;
    font-size: 0.94rem;
  }

  .planner-switch,
  .series-rule-grid,
  .manual-add,
  .planner-actions,
  .form-grid.tight { grid-template-columns: 1fr; }
  .stammtisch-card,
  .event-top { grid-template-columns: 1fr; }
  .event-top {
    display: grid;
    gap: 0.65rem;
  }

  .event-top > div {
    min-width: 0;
  }

  .event-top .meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.5rem;
  }

  .event-top .meta > .chip:first-child {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .event-top .meta > .response-chip {
    justify-content: center;
    min-width: 0;
    min-height: 1.85rem;
    padding: 0.32rem 0.28rem;
    border-radius: 12px;
    font-size: 0.66rem;
    text-align: center;
  }

  .response-chip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .response-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .event-location {
    margin-top: 0.35rem;
    font-size: 0.88rem;
  }

  .event-date {
    justify-self: start;
    grid-auto-flow: column;
    grid-auto-columns: auto;
    min-width: auto;
    min-height: 2.35rem;
    padding: 0.34rem 0.55rem;
    border-radius: 13px;
    gap: 0.35rem;
  }

  .event-date span,
  .event-date strong {
    display: inline;
    font-size: 0.82rem;
  }

  .card-title {
    font-size: 1.18rem;
    letter-spacing: -0.035em;
  }

  .event-card .card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-card .card-actions .btn {
    width: 100%;
    min-width: 0;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .event-card .card-actions .btn[data-view="event-edit"] {
    grid-column: 1 / -1;
  }

  .response-choice {
    gap: 0.25rem;
  }

  .response-choice span {
    min-width: 1.15rem;
    height: 1.15rem;
    font-size: 0.68rem;
  }

  .member-card { align-items: stretch; flex-direction: column; }
  .calendar-grid { grid-template-columns: 1fr; }
  .event-card .response-summary { display: none; }
  .event-program-grid { grid-template-columns: 1fr; }
  .public-event-card,
  .public-event-card.is-large,
  .public-event-card.is-row {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .public-event-media,
  .public-event-media img,
  .public-event-media > span {
    min-height: 11rem;
  }
  .calendar-tabs { border-radius: 18px; }
  .calendar-tabs button { padding-inline: 0.62rem; }
  .proposal-row { grid-template-columns: 2rem 1fr; }
  .proposal-date,
  .proposal-row label:not(.proposal-active),
  .proposal-row .mini-link { grid-column: 2; }
  .public-frame { min-height: 27rem; padding-inline: 1rem; }
  .public-seal { width: 11.6rem; }
  .public-portrait { width: 9.5rem; }
  .public-circle-label text { font-size: 0.92rem; }
}
