:root {
  --bg: #f5f4ef;
  --ink: #101316;
  --muted: #5f6772;
  --card: #ffffff;
  --line: #d9d6cb;
  --gold: #f3b71a;
  --mint: #59c9a5;
  --radius: 20px;
  --safe-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: radial-gradient(circle at 20% 0%, #fff9e6, #f5f4ef 45%, #ece9dd 100%); color: var(--ink); }
body { font-family: "Space Grotesk", "Sora", "Avenir Next", sans-serif; min-height: 100vh; }

.pwa-help-mobile {
  width: min(760px, 100%);
  margin: 10px auto 0;
  padding: 0 14px;
  text-align: center;
}

.pwa-panel {
  menu .vereinsadmin { background: linear-gradient(135deg, #d8dfff, #a7b6ff); }
  border: 1px solid #d8e2da;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}

.pwa-subline {
  margin: 0 0 10px;
  color: #496062;
  font-size: .88rem;
  line-height: 1.4;
}

.pwa-title {
  margin: 0 0 8px;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6e746f;
  text-align: center;
}

.pwa-buttons { display: grid; gap: 8px; }

.pwa-btn {
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: center;
  background: #ffffffcc;
  color: #1f2d2c;
  border: 1px solid #d5d8cf;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.pwa-btn.is-recommended {
  border-color: #55a98b;
  box-shadow: 0 0 0 2px #d8f2e7;
}

.steps {
  margin: 8px 0 0;
  padding-left: 18px;
}

.steps li {
  margin-bottom: 8px;
  color: #2e4248;
}

.pwa-hint {
  margin: 6px 0 0;
  font-size: .88rem;
  color: #61727a;
}

.wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 16px 14px calc(22px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.logos img {
  width: clamp(62px, 16.5vw, 96px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffffde;
  border: 1px solid #ddd7c7;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
  animation: logoIn .45s ease both;
}

.brand-box {
  margin-top: 12px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid #d6ddd2;
  background: linear-gradient(150deg, #fbfcf9, #f2f6ef);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.kicker {
  margin-top: 4px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .74rem;
  color: #5f6963;
  font-weight: 700;
  text-align: center;
}

h1 {
  margin: 0;
  text-align: center;
  font-family: "Sora", "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  line-height: 1.08;
  color: #132227;
}

.motto {
  margin: 8px 0 0;
  text-align: center;
  color: #4f5b66;
  line-height: 1.45;
}

.account-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d8dfd4;
  display: grid;
  gap: 8px;
}

.account-meta {
  margin: 0;
  text-align: center;
  color: #43545f;
  font-size: .88rem;
}

.account-actions {
  display: flex;
  justify-content: center;
}

.btn-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #cfdbd1;
  color: #204155;
  font-weight: 700;
  font-size: .82rem;
}

.account-flash {
  margin: 0;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
}

.account-flash.ok {
  color: #1f6a3f;
}

.account-flash.err {
  color: #8a2c35;
}

.version-note {
  margin: 0 auto;
  font-size: .78rem;
  color: #4e645d;
  border: 1px solid #d4ddd7;
  background: #eef8f2;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.menu {
  margin-top: 4px;
  display: grid;
  gap: 10px;
}

.menu a {
  display: block;
  text-decoration: none;
  text-align: center;
  border-radius: 16px;
  padding: 15px 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #142027;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
  transform: translateY(8px);
  opacity: 0;
  animation: rise .42s ease forwards;
}

.menu a:nth-child(2) { animation-delay: .04s; }
.menu a:nth-child(3) { animation-delay: .08s; }
.menu a:nth-child(4) { animation-delay: .12s; }
.menu a:nth-child(5) { animation-delay: .16s; }
.menu a:nth-child(6) { animation-delay: .20s; }

.menu .keltenhof { background: linear-gradient(135deg, #b8ffd8, #70d3a5); }
.menu .keltenhof-booking { background: linear-gradient(135deg, #b8ffd8, #70d3a5); }
.menu .keltenhof-extern { background: linear-gradient(135deg, #c9f7ff, #67c6d5); }
.menu .playa { background: linear-gradient(135deg, #ffd688, #f3b71a); }
.menu .rotationsplan { background: linear-gradient(135deg, #cde6ff, #88bbf5); }
.menu .meine-buchungen { background: linear-gradient(135deg, #e6e1ff, #bab1ff); }
.menu .kontakt { background: linear-gradient(135deg, #ffd3cc, #ffa997); }
.menu .vereinsadmin { background: linear-gradient(135deg, #d8dfff, #a7b6ff); }

.menu-auth {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #d8dfd4;
  display: flex;
  justify-content: center;
}

.menu-auth .menu-auth-btn {
  min-height: 38px;
  min-width: 148px;
  border-radius: 999px;
  border: 1px solid #bfcdd6;
  background: #f7fbfd;
  color: #18384a;
  box-shadow: 0 6px 14px rgba(24, 56, 74, 0.09);
}

.menu-auth .menu-auth-btn.login {
  border-color: #aac8d9;
  background: #e9f4fb;
  color: #17445b;
}

.menu-auth .menu-auth-btn.logout {
  border-color: #e4c3c3;
  background: #fff1f1;
  color: #6f2b2b;
}

.small-note {
  margin: 8px 0 0;
  color: #60717d;
  font-size: .8rem;
  line-height: 1.45;
}

.foot-note {
  text-align: center;
  font-size: .76rem;
  color: #6f746d;
}

.version-badge-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 14px;
}

.version-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  color: #29586f;
  background: #e6f4fb;
  border: 1px solid #c8e2ef;
}

.foot {
  width: min(760px, 100%);
  margin: 4px auto 18px;
  padding: 0 14px;
  text-align: center;
  color: #657169;
  font-size: .82rem;
}

.foot .sep { opacity: .5; padding: 0 7px; }

.foot a {
  color: #2f5f78;
  text-decoration: none;
  font-weight: 600;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 18, 23, .56);
  padding: 16px;
  z-index: 50;
}

.modal-backdrop.is-open { display: flex; }

.modal {
  width: min(680px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dce1d5;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .25);
}

.modal header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f6f8f3;
  border-bottom: 1px solid #dde3d6;
}

.modal h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Sora", "Space Grotesk", sans-serif;
}

.modal .close {
  border: 1px solid #c6d0c2;
  background: #fff;
  color: #25313a;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
}

.modal .content {
  padding: 14px;
  color: #33424a;
  line-height: 1.5;
  font-size: .93rem;
}

.modal .content h4 {
  margin: 14px 0 6px;
  font-size: .96rem;
  color: #1d2a31;
}

.modal .content p { margin: 0 0 8px; }
.modal .content a { color: #265f7a; }

.phone-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px 14px calc(20px + var(--safe-bottom));
}

.hero {
  background: linear-gradient(150deg, #12171d 0%, #1c2d35 35%, #2f4548 100%);
  color: #f8f8f6;
  border-radius: 26px;
  padding: 22px 18px;
  box-shadow: 0 18px 40px rgba(18, 23, 29, 0.3);
  animation: slideIn .45s ease-out;
}

.hero.compact { padding-bottom: 16px; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; opacity: .85; }
h1 { margin: 0; font-family: "Sora", "Space Grotesk", sans-serif; font-size: clamp(1.45rem, 5vw, 2.1rem); line-height: 1.1; }
.lead { margin: 10px 0 0; color: #dae4e6; line-height: 1.4; }
.today { margin: 12px 0 0; color: #ffd774; font-weight: 700; }

.grid-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.action-card {
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: #102025;
  display: block;
  border: 2px solid transparent;
  transform: translateY(8px);
  opacity: 0;
  animation: rise .45s ease forwards;
}
.action-card:nth-child(2) { animation-delay: .08s; }
.action-card.gold { background: linear-gradient(135deg, #fbd667, #f3b71a); }
.action-card.mint { background: linear-gradient(135deg, #89e0c3, #59c9a5); }
.action-card:active { transform: scale(.99); }
.card-title { display: block; font-weight: 800; font-size: 1.05rem; }
.card-meta { display: block; margin-top: 6px; font-size: .92rem; color: #1f2f36; }

.quick-links {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.quick-links a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
}

.notice, .timeline {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.notice h2, .timeline h2 { margin: 0 0 8px; font-family: "Sora", sans-serif; font-size: 1.05rem; }
.notice p { margin: 0; line-height: 1.5; color: var(--muted); }

.sticky-cta-wrap {
  position: sticky;
  top: 8px;
  z-index: 6;
  margin-top: 12px;
}
.sticky-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #0f1113;
  font-weight: 800;
  background: linear-gradient(135deg, #ffdf83, #f1b127);
  border-radius: 999px;
  padding: 13px 14px;
  box-shadow: 0 8px 20px rgba(241, 177, 39, 0.32);
}

.slot {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  border-top: 1px dashed #d6d2c5;
  padding-top: 10px;
  margin-top: 10px;
}
.slot:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.slot-time { font-weight: 800; }
.slot-time span { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.slot-title { margin: 0; font-weight: 700; }
.slot-meta { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.slot-stamm .slot-time { color: #185f46; }
.slot-stamm .slot-title { color: #185f46; }
.slot-badge {
  display: inline-block;
  margin: 6px 0 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  color: #0d5138;
  background: #d9f2e8;
}
.empty { margin: 0; color: var(--muted); }

.rotation-page { padding-top: 16px; }

.backbar {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #18384a;
  background: linear-gradient(135deg, #e9f6ff, #dff2f0);
  border: 1px solid #b9d8df;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(20, 52, 66, .12);
}

.rotation-head {
  background: linear-gradient(145deg, #f7fbff, #eef7f6 55%, #e3f1f4);
  border-radius: 18px;
  color: #15313f;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(24, 56, 74, .10);
  border: 1px solid #c8dfe3;
  text-align: center;
}

.login-head-icon {
  width: 68px;
  height: 68px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #c9dce7;
  box-shadow: 0 10px 24px rgba(24, 56, 74, 0.18);
  object-fit: cover;
}

.login-head {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 6px 0 2px;
}

.login-head .login-head-icon {
  margin-bottom: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-head h1 {
  margin: 0;
}

.login-divider {
  margin: 8px 0 10px;
  border: 0;
  border-top: 1px solid #d1dce2;
}

.rotation-head .eyebrow {
  color: #3f6978;
  margin-bottom: 6px;
}

.rotation-head h1 {
  color: #15313f;
}

.rotation-head .lead {
  color: #446575;
  margin-top: 8px;
}

.rotation-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.rotation-card {
  background: linear-gradient(180deg, #ffffff, #f7fbf8);
  border: 1px solid #cfdcd3;
  border-radius: 14px;
  padding: 11px;
  box-shadow: 0 8px 20px rgba(21, 40, 33, .08);
}

.rotation-card.is-current {
  border-color: #1f7f5e;
  box-shadow: 0 0 0 2px #d6f1e4, 0 12px 28px rgba(20, 75, 57, .18);
}

.rotation-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px dashed #c4d3c7;
}

.rotation-top strong {
  color: #112d3b;
  font-family: "Sora", "Space Grotesk", sans-serif;
  background: #e6f3fb;
  border: 1px solid #c5ddeb;
  border-radius: 999px;
  padding: 3px 8px;
}

.rotation-top span {
  font-size: .82rem;
  color: #3f5f68;
  font-weight: 600;
}

.rotation-grid {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.rotation-grid > div {
  border: 1px solid #dde8de;
  border-radius: 12px;
  padding: 8px 9px;
  background: #ffffff;
}

.rotation-grid > div:nth-child(1) {
  background: linear-gradient(135deg, #e8f5ff, #f3f9ff);
  border-color: #cde0ee;
}

.rotation-grid > div:nth-child(2) {
  background: linear-gradient(135deg, #f0ecff, #f8f6ff);
  border-color: #ddd3f5;
}

.rotation-grid > div:nth-child(3) {
  background: linear-gradient(135deg, #ffe9e3, #fff5f1);
  border-color: #f1d0c5;
}

.rotation-grid dt {
  margin: 0;
  font-size: .79rem;
  color: #2f4e5b;
  font-weight: 700;
}

.rotation-grid dd {
  margin: 2px 0 0;
  color: #152931;
  font-weight: 700;
}

.rotation-empty {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #dde3da;
  border-radius: 14px;
  padding: 14px;
  color: #5a6670;
}

.contacts-page { padding-top: 16px; }

.contacts-head {
  background: linear-gradient(145deg, #f7fbff, #eef7f6 55%, #e3f1f4);
  border-radius: 18px;
  border: 1px solid #c8dfe3;
  padding: 14px;
  text-align: center;
}

.contacts-head .eyebrow { color: #3f6978; margin-bottom: 6px; }
.contacts-head h1 { color: #15313f; }
.contacts-head .lead { color: #446575; margin-top: 8px; }

.contacts-filter { margin-top: 12px; }

.contacts-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  padding: 2px 2px 6px;
}

.contact-chip {
  appearance: none;
  border: 1px solid #c6d7df;
  background: linear-gradient(135deg, #ffffff, #f4f8fb);
  color: #28404c;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 700;
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  white-space: normal;
  text-align: center;
  box-shadow: 0 3px 10px rgba(13, 37, 49, .08);
}

.contact-chip.active {
  background: linear-gradient(135deg, #dff0ff, #dff7ee);
  border-color: #6ea8be;
  color: #163949;
  box-shadow: 0 0 0 2px #d7edf6;
}

.contacts-list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.contacts-club {
  background: #fff;
  border: 1px solid #d8e1d8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.contacts-club-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f5f9f6;
  border-bottom: 1px solid #e0e9e1;
}

.contacts-club-head h2 {
  margin: 0;
  font-size: 1rem;
  color: #183240;
}

.contacts-club-head img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d4dfd5;
  border-radius: 10px;
  padding: 4px;
}

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

.contacts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.contacts-table th,
.contacts-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e3e9e3;
  border-right: 1px solid #e3e9e3;
  text-align: left;
  vertical-align: top;
}

.contacts-table th:last-child,
.contacts-table td:last-child { border-right: 0; }

.contacts-table th {
  background: #eaf3f7;
  color: #1e3b49;
  font-weight: 700;
}

.contacts-table tr:last-child td { border-bottom: 0; }

.contacts-table td.age {
  font-weight: 700;
  color: #223844;
  background: #f7fbff;
}

.contacts-table a { color: #1d6586; }

.contacts-empty {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #dde3da;
  border-radius: 14px;
  padding: 14px;
  color: #5a6670;
}

.playa-page { padding-top: 16px; }

.playa-head {
  background: linear-gradient(145deg, #fff6d8, #ffeab0 55%, #ffd35c);
  border: 1px solid #efc46b;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  color: #2a2d21;
}

.playa-head .eyebrow { color: #745b15; margin-bottom: 6px; }
.playa-head h1 { color: #2c341f; }
.playa-head .lead { color: #5b5a2e; margin-top: 8px; }

.playa-head.keltenhof-head {
  background: linear-gradient(135deg, #b8ffd8, #70d3a5);
  border-color: #65b88f;
  color: #18382b;
}

.playa-head.keltenhof-head .eyebrow {
  color: #22543f;
}

.playa-head.keltenhof-head h1 {
  color: #133629;
}

.playa-head.keltenhof-head .lead {
  color: #265641;
}

.playa-date-nav {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.date-btn {
  text-decoration: none;
  border: 1px solid #d0d9dd;
  background: #f6fbfd;
  color: #1e4658;
  border-radius: 999px;
  padding: 7px 10px;
  text-align: center;
  font-weight: 700;
  font-size: .86rem;
}

.date-current {
  color: #1d323d;
  font-family: "Sora", "Space Grotesk", sans-serif;
  display: grid;
  justify-items: center;
  gap: 2px;
  font-size: 1rem;
}

.kw-current {
  font-size: .73rem;
  color: #5e6f76;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.playa-week-selector {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.keltenhof-week-selector {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.week-day-chip {
  position: relative;
  text-decoration: none;
  border: 1px solid #ced8d3;
  background: linear-gradient(165deg, #ffffff, #f3f8f5);
  color: #25424e;
  border-radius: 14px;
  min-height: 72px;
  padding: 8px 4px 7px;
  display: grid;
  place-items: center;
  gap: 1px;
  box-shadow: 0 5px 12px rgba(15, 50, 38, .07);
}

.week-day-chip .wd-name {
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #54707d;
  font-weight: 700;
}

.week-day-chip .wd-day {
  font-size: 1.1rem;
  line-height: 1;
  color: #20363f;
}

.week-day-chip .wd-month {
  font-size: .7rem;
  color: #74858d;
  font-weight: 700;
}

.week-day-chip .wd-today {
  margin-top: 2px;
  font-style: normal;
  font-size: .62rem;
  color: #1f6a4f;
  background: #e4f5ed;
  border: 1px solid #b9e1cf;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 800;
}

.week-day-chip.weekend {
  background: linear-gradient(165deg, #fff6e7, #fff0d3);
  border-color: #e4c890;
}

.week-day-chip.active {
  background: linear-gradient(165deg, #1f6a4f, #298463);
  border-color: #1b6149;
  box-shadow: 0 10px 18px rgba(24, 98, 72, .24);
}

.week-day-chip.active .wd-name,
.week-day-chip.active .wd-day,
.week-day-chip.active .wd-month {
  color: #f2fbf7;
}

.week-day-chip.active .wd-today {
  color: #1f6a4f;
  background: #fff;
  border-color: #dceee6;
}

.playa-courts {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.playa-table-wrap {
  margin-top: 12px;
  overflow: auto;
  border: 1px solid #dce4d7;
  border-radius: 14px;
  background: #fff;
  scrollbar-width: thin;
}

.playa-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.playa-table-wrap.is-single-court {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

.is-single-court .playa-table {
  min-width: 0;
  table-layout: auto;
}

.is-single-court .playa-table tbody th {
  width: 64px;
  min-width: 64px;
  font-size: .78rem;
}

.is-single-court .playa-table td {
  min-width: 0;
  width: auto;
  padding: 6px 5px;
}

.is-single-court .cell-badge {
  font-size: .73rem;
  padding: 4px 5px;
}

.is-single-court .cell-badge .badge-time {
  font-size: .67rem;
}

.is-single-court .cell-badge .badge-label {
  font-size: .68rem;
}

.is-single-court .free-slot-btn {
  font-size: .7rem;
  padding: 6px 4px;
}

.is-single-court .free-slot-muted {
  font-size: .64rem;
}

.playa-table thead th {
  position: sticky;
  top: 0;
  background: #f2f7f3;
  color: #2a3b31;
  z-index: 2;
}

.playa-table th,
.playa-table td {
  border-bottom: 1px solid #e4ebe1;
  border-right: 1px solid #eef3ec;
  padding: 8px;
  vertical-align: top;
  text-align: left;
}

.playa-table tbody th {
  width: 78px;
  background: #f9fcf8;
  color: #49574e;
  font-size: .85rem;
}

.cell-items {
  display: grid;
  gap: 5px;
}

.cell-badge {
  display: block;
  border: 1px solid #d3ddd1;
  border-radius: 8px;
  background: #f7faf6;
  padding: 5px 6px;
  color: #27403a;
  font-size: .79rem;
  line-height: 1.3;
  font-weight: 600;
}

.cell-badge .badge-time {
  display: block;
  font-weight: 700;
  letter-spacing: .01em;
}

.cell-badge .badge-label {
  display: block;
  margin-top: 1px;
  font-weight: 600;
  color: inherit;
  opacity: .95;
  text-wrap: balance;
}

.cell-badge.is-stamm {
  background: linear-gradient(135deg, #fef2c9, #ffe39c);
  border-color: #efca72;
  color: #5a4d1f;
}

.cell-badge.is-stamm:not([class*="club-"]) .badge-label {
  color: #4b3f18;
}

/* Inline-styled stamm badges (club color from metadata) should keep the parent text color. */
.cell-badge.is-stamm[style] .badge-label {
  color: inherit !important;
}

.cell-badge.club-vfr {
  background: linear-gradient(135deg, #18181b 0%, #3f3f46 100%);
  border-color: #09090b;
  color: #fff;
}

.cell-badge.club-hochweisel {
  background: linear-gradient(135deg, #facc15 0%, #fde047 100%);
  border-color: #eab308;
  color: #111;
}

.cell-badge.club-niederweisel {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  border-color: #0284c7;
  color: #fff;
}

.cell-badge.club-fauerbach {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-color: #1e40af;
  color: #fff;
}

.cell-badge.club-jsg {
  background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
  border-color: #b91c1c;
  color: #fff;
}

.cell-badge.club-jsgbunw {
  background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%);
  border-color: #15803d;
  color: #fff;
}

.cell-badge.club-senioren {
  background: linear-gradient(135deg, #71717a 0%, #a1a1aa 100%);
  border-color: #52525b;
  color: #fff;
}

.cell-badge.club-alteherren {
  background: linear-gradient(135deg, #a16207 0%, #eab308 100%);
  border-color: #854d0e;
  color: #111;
}

.cell-badge.club-bod {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #0b1220;
  color: #e2e8f0;
}

.cell-badge.club-ostheim {
  background: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%);
  border-color: #581c87;
  color: #fff;
}

.cell-badge.club-default {
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
  border-color: #334155;
  color: #fff;
}

.cell-badge.club-vfr .badge-label,
.cell-badge.club-niederweisel .badge-label,
.cell-badge.club-fauerbach .badge-label,
.cell-badge.club-jsg .badge-label,
.cell-badge.club-jsgbunw .badge-label,
.cell-badge.club-senioren .badge-label,
.cell-badge.club-bod .badge-label,
.cell-badge.club-ostheim .badge-label,
.cell-badge.club-default .badge-label {
  color: rgba(243, 247, 248, .92);
}

.cell-badge.club-vfr,
.cell-badge.club-vfr .badge-time,
.cell-badge.club-vfr .badge-label,
.cell-badge.club-fauerbach,
.cell-badge.club-fauerbach .badge-time,
.cell-badge.club-fauerbach .badge-label {
  color: #ffffff !important;
}

.cell-badge.club-hochweisel .badge-label,
.cell-badge.club-alteherren .badge-label {
  color: #2a2210;
}

.cell-badge.is-stamm[class*="club-"] {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.free-slot-btn {
  width: 100%;
  border: 1px dashed #3e9b78;
  border-radius: 8px;
  background: #edfaf3;
  color: #1f6a4f;
  font-weight: 800;
  padding: 8px 6px;
  font-size: .8rem;
}

.free-slot-muted {
  display: inline-block;
  color: #839087;
  font-size: .75rem;
  font-weight: 700;
}

.playa-court-card {
  background: #fff;
  border: 1px solid #dce4d7;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
}

.playa-court-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px dashed #d7dfd1;
  padding-bottom: 8px;
}

.playa-court-card h2 {
  margin: 0;
  color: #2f3d23;
  font-size: 1rem;
}

.playa-court-card header span {
  font-size: .82rem;
  color: #58666f;
  font-weight: 700;
}

.playa-empty {
  margin: 10px 0 2px;
  color: #60706f;
}

.playa-booking-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.playa-booking-list li {
  border: 1px solid #e1e8df;
  border-radius: 10px;
  padding: 7px 8px;
  background: #fafcf8;
}

.playa-booking-list .time {
  display: block;
  font-weight: 800;
  color: #20403d;
}

.playa-booking-list .meta {
  display: block;
  margin-top: 2px;
  color: #60706a;
  font-size: .86rem;
}

.playa-booking-list .meta-sub {
  display: block;
  margin-top: 2px;
  color: #7c8786;
  font-size: .78rem;
}

.playa-flash {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid #dce4d7;
  background: #fff;
  padding: 10px 12px;
  font-weight: 700;
  color: #22343e;
}

.playa-flash.ok {
  border-color: #9fd3b5;
  background: #eefaf3;
  color: #24553d;
}

.playa-flash.err {
  border-color: #efb4b4;
  background: #fff1f1;
  color: #7f2020;
}

.playa-flash.info p {
  margin: 0 0 6px;
}

.playa-flash.info a {
  color: #13465a;
  word-break: break-all;
}

.playa-cancel-confirm,
.playa-book-form {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #dce4d7;
  border-radius: 14px;
  padding: 12px;
}

.playa-court-filter {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #dce4d7;
  border-radius: 12px;
  padding: 7px 9px;
}

.court-filter-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.court-filter-compact span {
  font-size: .76rem;
  font-weight: 700;
  color: #4b5d64;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.court-filter-compact select {
  min-width: 148px;
  border: 1px solid #c5d1d6;
  border-radius: 999px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #ffffff, #f5fafb);
  color: #27485a;
  font-weight: 700;
  font-size: .78rem;
  font-family: inherit;
}

@media (max-width: 760px) {
  .court-filter-compact {
    gap: 6px;
  }

  .court-filter-compact span {
    font-size: .7rem;
  }

  .court-filter-compact select {
    min-width: 128px;
    font-size: .74rem;
    padding: 5px 9px;
  }
}

.playa-cancel-confirm h2,
.playa-book-form h2 {
  margin: 0 0 8px;
  color: #2f3d23;
  font-size: 1rem;
}

.slot-book-form h2 {
  text-align: center;
}

.playa-cancel-confirm p {
  margin: 0 0 10px;
  color: #5d6767;
}

.playa-cancel-confirm form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-cancel-confirm,
.btn-cancel-abort {
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
  border: 1px solid #d0d9dd;
  text-decoration: none;
}

.btn-cancel-confirm {
  background: #ca2f2f;
  border-color: #b32525;
  color: #fff;
}

.btn-cancel-abort {
  background: #f7fbfc;
  color: #1e4658;
}

.btn-hint-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  border: 1px solid #0f5f44;
  color: #ffffff;
  background: linear-gradient(135deg, #18895f, #116e4c);
  box-shadow: 0 6px 14px rgba(16, 108, 75, 0.22);
}

.btn-hint-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.playa-book-form form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d4e0e3;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  box-shadow: 0 8px 20px rgba(18, 43, 53, 0.07);
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.progress-step {
  border: 1px solid #c9d8dd;
  border-radius: 999px;
  padding: 7px 10px;
  text-align: center;
  font-size: .75rem;
  color: #3f5963;
  background: #f2f7f8;
  font-weight: 700;
  transition: all .18s ease;
}

.progress-step.active {
  background: linear-gradient(135deg, #18895f, #116e4c);
  border-color: #0f5d41;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 93, 65, 0.24);
}

.wizard-step {
  border: 1px solid #d6e1e5;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 45, 54, 0.05);
}

.wizard-step[hidden] {
  display: none !important;
}

.wizard-step[data-step="1"] {
  text-align: center;
  justify-items: center;
}

.wizard-step[data-step="1"] label {
  justify-items: center;
  text-align: center;
  width: 100%;
}

.wizard-step[data-step="1"] .row-2 {
  width: 100%;
  grid-template-columns: 1fr;
}

.wizard-step[data-step="1"] select,
.wizard-step[data-step="1"] input {
  width: 100%;
  text-align: center;
  text-align-last: center;
}

.wizard-step[data-step="1"] input[type="time"]::-webkit-datetime-edit {
  text-align: center;
}

.wizard-step[data-step="1"] input[type="time"]::-webkit-date-and-time-value {
  text-align: center;
  margin: 0 auto;
  min-width: 100%;
}

.wizard-step[data-step="1"] input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.wizard-step[data-step="1"] input[type="time"]::-webkit-datetime-edit-hour-field,
.wizard-step[data-step="1"] input[type="time"]::-webkit-datetime-edit-minute-field,
.wizard-step[data-step="1"] input[type="time"]::-webkit-datetime-edit-ampm-field,
.wizard-step[data-step="1"] input[type="time"]::-webkit-datetime-edit-text {
  text-align: center;
}

.wizard-step[data-step="1"] .step-hint {
  text-align: center;
}

.step-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #1a313a;
  letter-spacing: .01em;
}

.step-label {
  margin: 0;
  font-size: .8rem;
  font-weight: 800;
  color: #44606b;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.step-hint {
  margin: 0;
  font-size: .79rem;
  color: #4b636c;
  line-height: 1.4;
}

.choice-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.choice-chip {
  display: block;
  cursor: pointer;
}

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

.choice-chip span,
.quick-select,
.duration-chip {
  display: inline-flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  min-height: 44px;
  border: 1px solid #c3d3d8;
  border-radius: 12px;
  background: #f4f8fa;
  color: #1f414c;
  font-size: .83rem;
  font-weight: 700;
  padding: 8px 10px;
  text-align: left;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.choice-chip input:checked + span,
.duration-chip.active {
  border-color: #126d4c;
  background: #e8f5ef;
  color: #0f4733;
  box-shadow: 0 0 0 2px rgba(18, 109, 76, 0.16);
}

.quick-select,
.duration-chip {
  cursor: pointer;
  font-family: inherit;
}

.choice-chip span:hover,
.quick-select:hover,
.duration-chip:hover {
  border-color: #6f97a5;
  background: #edf4f6;
  transform: translateY(-1px);
}

.choice-chip input:focus-visible + span,
.duration-chip:focus-visible,
.quick-select:focus-visible {
  outline: none;
  border-color: #0e74cf;
  box-shadow: 0 0 0 3px rgba(14, 116, 207, 0.2);
}

.choice-grid.durations {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wizard-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.wizard-nav .btn-book-submit,
.wizard-nav .btn-cancel-abort {
  margin-top: 0;
  min-width: 132px;
}

.wizard-error {
  margin: 0;
  border: 1px solid #e8b9b9;
  background: #fff1f1;
  color: #7f2020;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: .8rem;
  font-weight: 700;
}

.review-grid {
  display: grid;
  gap: 8px;
}

.review-grid p {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #dbe5e9;
  border-radius: 11px;
  background: #f6fafb;
  color: #23424b;
  font-size: .85rem;
  text-align: left;
}

.playa-book-form label {
  display: grid;
  gap: 5px;
  color: #2a3f47;
  font-weight: 700;
  font-size: .86rem;
}

.playa-book-form input,
.playa-book-form select {
  border: 1px solid #bfd0d6;
  border-radius: 12px;
  padding: 10px 11px;
  font-size: .94rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .14s ease, box-shadow .14s ease;
}

.playa-book-form select#playa_court {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  border-color: #93acb5;
  background:
    linear-gradient(180deg, #ffffff, #f3f8fa),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%231a5f77' d='M5.8 7.5L10 11.7l4.2-4.2 1.4 1.4-5.6 5.6L4.4 8.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 12px center;
  background-size: auto, 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.playa-book-form select#playa_court:hover {
  border-color: #6f8f9b;
  background:
    linear-gradient(180deg, #ffffff, #eef5f8),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23114f64' d='M5.8 7.5L10 11.7l4.2-4.2 1.4 1.4-5.6 5.6L4.4 8.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 12px center;
  background-size: auto, 14px;
}

.playa-book-form select#playa_court:focus {
  border-color: #0f7cc7;
  box-shadow: 0 0 0 3px rgba(15, 124, 199, 0.18);
}

.playa-book-form input:focus,
.playa-book-form select:focus {
  outline: none;
  border-color: #0e74cf;
  box-shadow: 0 0 0 3px rgba(14, 116, 207, 0.14);
}

.login-form-panel h2,
.login-form-panel label {
  text-align: center;
}

.login-form-panel {
  background: #f4f6f8;
  border-color: #cfd8df;
}

.login-form-panel form {
  max-width: 430px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 6px 4px 4px;
}

.login-form-panel label {
  gap: 7px;
  color: #243745;
}

.login-form-panel input {
  border-radius: 14px;
  border-color: #b8c9d3;
}

.login-submit {
  width: 100%;
  margin-top: 6px;
  min-height: 46px;
  border-radius: 14px;
  border-color: #123f58;
  background: linear-gradient(135deg, #1a5d7f, #123f58);
  box-shadow: 0 6px 14px rgba(18, 63, 88, 0.2);
}

.login-submit:hover {
  background: linear-gradient(135deg, #1f6b90, #174d6b);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .wizard-progress {
    display: block;
    overflow: hidden;
    padding-bottom: 0;
  }

  .progress-step {
    display: none;
    min-width: 0;
  }

  .progress-step.active {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .wizard-progress::-webkit-scrollbar {
    height: 6px;
  }

  .wizard-progress::-webkit-scrollbar-thumb {
    background: #c7d8de;
    border-radius: 999px;
  }

  .choice-grid,
  .choice-grid.two,
  .choice-grid.durations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playa-book-form form {
    padding: 11px;
    border-radius: 14px;
  }

  .wizard-step {
    padding: 11px;
  }

  .wizard-step[data-step="3"] .choice-grid {
    grid-template-columns: 1fr;
  }

  .wizard-nav {
    position: sticky;
    bottom: 0;
    z-index: 4;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), #ffffff 35%);
    padding-top: 8px;
  }

  .wizard-nav .btn-book-submit,
  .wizard-nav .btn-cancel-abort {
    min-height: 46px;
  }
}

.playa-book-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 560px) {
  .wizard-progress,
  .choice-grid,
  .choice-grid.two,
  .choice-grid.durations,
  .playa-book-form .row-2 {
    grid-template-columns: 1fr;
  }

  .wizard-nav {
    flex-direction: column;
  }

  .wizard-nav .btn-book-submit,
  .wizard-nav .btn-cancel-abort {
    width: 100%;
  }
}

.btn-book-submit {
  margin-top: 4px;
  border: 1px solid #0f5f43;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #178a60, #106c4b);
  box-shadow: 0 6px 14px rgba(16, 108, 75, 0.22);
}

.btn-book-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-cancel-abort:hover {
  border-color: #99b1ba;
  background: #f2f8fa;
}

.playa-anim {
  animation: playaFadeUp .28s ease-out both;
}

.playa-flash.playa-anim { animation-delay: .03s; }
.playa-cancel-confirm.playa-anim { animation-delay: .05s; }
.playa-table-wrap.playa-anim { animation-delay: .08s; }
.playa-book-form.playa-anim { animation-delay: .12s; }

@keyframes playaFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .playa-anim {
    animation: none;
  }
}

@media (min-width: 1100px) {
  .phone-shell.playa-page {
    width: min(1380px, 100%);
    padding-left: 18px;
    padding-right: 18px;
  }

  .playa-table-wrap {
    overflow: visible;
  }

  .playa-table {
    min-width: 0;
    table-layout: fixed;
  }

  .playa-table th,
  .playa-table td {
    padding: 7px 6px;
  }

  .playa-table tbody th {
    width: 72px;
    font-size: .8rem;
  }

  .cell-badge {
    font-size: .72rem;
    padding: 4px 5px;
  }

  .free-slot-btn {
    font-size: .75rem;
    padding: 7px 5px;
  }
}

@media (max-width: 760px) {
  .playa-page {
    padding-top: 10px;
  }

  .playa-head {
    border-radius: 14px;
    padding: 11px 10px;
  }

  .playa-date-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .date-current {
    grid-column: 1 / -1;
    order: -1;
    padding: 2px 0 3px;
  }

  .date-btn {
    min-height: 38px;
    display: grid;
    align-items: center;
  }

  .playa-week-selector {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
  }

  .keltenhof-week-selector {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .playa-court-filter {
    position: static;
    z-index: auto;
    backdrop-filter: none;
    background: #fff;
  }

  .playa-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: inset -14px 0 12px -12px rgba(25, 41, 49, .18);
  }

  .playa-table {
    min-width: 620px;
    font-size: .78rem;
  }

  .keltenhof-table-wrap .playa-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .keltenhof-table-wrap .playa-table td {
    min-width: 0;
    padding: 5px 3px;
  }

  .keltenhof-table-wrap .playa-table tbody th {
    width: 54px;
    min-width: 54px;
    padding: 6px 3px;
  }

  .keltenhof-table-wrap {
    overflow-x: hidden;
  }

  .keltenhof-table-wrap .playa-table thead th {
    white-space: normal;
    font-size: .7rem;
    padding: 6px 3px;
  }

  .playa-table thead th {
    font-size: .72rem;
    padding: 6px 4px;
    white-space: nowrap;
  }

  .playa-table tbody th {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 58px;
    min-width: 58px;
    font-size: .72rem;
    padding: 6px 4px;
    background: #f2f8f3;
    box-shadow: 6px 0 8px -8px rgba(27, 48, 42, .35);
  }

  .playa-table td {
    min-width: 138px;
    padding: 5px 4px;
  }

  .playa-main-table-wrap .playa-table thead th[data-court-col],
  .playa-main-table-wrap .playa-table td[data-court-col] {
    width: var(--playa-court-col-width, 132px);
    min-width: var(--playa-court-col-width, 132px);
    max-width: var(--playa-court-col-width, 132px);
  }

  .playa-table-wrap.is-single-court {
    max-width: 100%;
  }

  .is-single-court .playa-table td {
    min-width: 0;
  }

  .cell-items {
    gap: 4px;
  }

  .cell-badge {
    border-radius: 7px;
    padding: 4px 5px;
    font-size: .72rem;
    line-height: 1.25;
  }

  .cell-badge .badge-time {
    font-size: .69rem;
    letter-spacing: 0;
  }

  .cell-badge .badge-label {
    margin-top: 1px;
    font-size: .7rem;
  }

  .playa-main-table-wrap .cell-badge {
    font-size: .69rem;
    padding: 4px 4px;
  }

  .playa-main-table-wrap .cell-badge .badge-time {
    font-size: .66rem;
  }

  .playa-main-table-wrap .cell-badge .badge-label {
    font-size: .67rem;
  }

  .keltenhof-table-wrap .cell-badge {
    font-size: .75rem;
    padding: 5px 6px;
  }

  .keltenhof-table-wrap .cell-badge .badge-time {
    font-size: .72rem;
  }

  .keltenhof-table-wrap .cell-badge .badge-label {
    font-size: .72rem;
  }

  .free-slot-btn {
    border-radius: 7px;
    padding: 7px 4px;
    font-size: .71rem;
    line-height: 1.2;
  }

  .btn-hint-link {
    width: 100%;
    padding: 10px 12px;
    font-size: .86rem;
  }

  .free-slot-muted {
    font-size: .66rem;
  }

  .week-day-chip {
    min-height: 56px;
    border-radius: 10px;
    padding: 6px 2px 5px;
  }

  .week-day-chip .wd-name {
    font-size: .62rem;
    letter-spacing: .02em;
  }

  .week-day-chip .wd-day {
    font-size: .95rem;
  }

  .week-day-chip .wd-month {
    font-size: .62rem;
  }

  .week-day-chip .wd-today {
    font-size: .56rem;
    padding: 1px 4px;
  }
}

@media (max-width: 360px) {
  .playa-week-selector {
    gap: 2px;
  }

  .playa-table {
    min-width: 610px;
  }

  .playa-table td {
    min-width: 126px;
  }

  .playa-table tbody th {
    width: 52px;
    min-width: 52px;
    font-size: .68rem;
  }

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

  .keltenhof-table-wrap .playa-table td {
    min-width: 0;
    padding: 4px 2px;
  }

  .keltenhof-table-wrap .playa-table tbody th {
    width: 48px;
    min-width: 48px;
    padding: 5px 2px;
  }

  .keltenhof-table-wrap .playa-table thead th {
    font-size: .64rem;
    padding: 5px 2px;
  }

  .playa-main-table-wrap .cell-badge {
    font-size: .66rem;
    padding: 3px 4px;
  }

  .playa-main-table-wrap .cell-badge .badge-time,
  .playa-main-table-wrap .cell-badge .badge-label {
    font-size: .64rem;
  }

  .keltenhof-table-wrap .cell-badge {
    font-size: .71rem;
  }

  .keltenhof-table-wrap .cell-badge .badge-time,
  .keltenhof-table-wrap .cell-badge .badge-label {
    font-size: .69rem;
  }

  .week-day-chip {
    min-height: 50px;
    border-radius: 8px;
    padding: 4px 1px;
  }

  .week-day-chip .wd-name {
    font-size: .56rem;
    letter-spacing: 0;
  }

  .week-day-chip .wd-day {
    font-size: .84rem;
  }

  .week-day-chip .wd-month {
    font-size: .56rem;
  }

  .week-day-chip .wd-today {
    font-size: .5rem;
    padding: 1px 3px;
  }
}

.rotation-table-wrap { display: none; }

.rotation-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #c8d7cc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(17, 33, 27, .12);
}

.rotation-table th,
.rotation-table td {
  padding: 11px 12px;
  font-size: .88rem;
  border-bottom: 1px solid #dbe6dd;
  border-right: 1px solid #dbe6dd;
  text-align: center;
}

.rotation-table th:last-child,
.rotation-table td:last-child { border-right: 0; }

.rotation-table thead th {
  background: linear-gradient(145deg, #1d2d35, #2f4755);
  color: #f1f6f8;
  font-weight: 700;
  border-bottom: 2px solid #476375;
}

.rotation-table tbody tr:last-child td { border-bottom: 0; }

.rotation-table tbody tr:nth-child(even) td { background: #f6faf7; }

.rotation-table tbody tr.is-current td {
  box-shadow: inset 0 -2px 0 #1f7f5e, inset 0 2px 0 #1f7f5e;
  font-weight: 700;
}

.rotation-table tbody td:nth-child(4) {
  background: linear-gradient(180deg, #eef7ff, #f8fbff);
}

.rotation-table tbody td:nth-child(5) {
  background: linear-gradient(180deg, #f5f1ff, #fbf9ff);
}

.rotation-table tbody td:nth-child(6) {
  background: linear-gradient(180deg, #fff0eb, #fff8f5);
}

.rotation-table td:first-child {
  font-weight: 700;
  color: #19303a;
  background: #edf5ef;
}

@media (min-width: 760px) {
  .grid-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-shell { padding-top: 24px; }
  .pwa-buttons { grid-template-columns: 1fr; }
}

@media (min-width: 980px) {
  .rotation-list { display: none; }
  .rotation-table-wrap { display: block; margin-top: 12px; }
}

@media (max-width: 760px) {
  .contacts-table thead { display: none; }
  .contacts-table,
  .contacts-table tbody,
  .contacts-table tr,
  .contacts-table td {
    display: block;
    width: 100%;
  }

  .contacts-table tr {
    border-bottom: 1px solid #e3e9e3;
    padding: 8px 0;
  }

  .contacts-table td {
    border-right: 0;
    border-bottom: 0;
    padding: 5px 10px;
  }

  .contacts-table td.age {
    margin-bottom: 5px;
    border-radius: 8px;
  }
}

@media (max-width: 420px) {
  .contact-chip {
    flex-basis: 100%;
  }
}

@media (min-width: 980px) {
  .contacts-filter-group {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .pwa-help-mobile {
    display: none;
  }
}

@media (max-width: 420px) {
  .logos {
    gap: 6px;
  }

  .logos img {
    width: clamp(50px, 15vw, 68px);
    padding: 6px;
  }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* My Bookings */
.myb-head {
  padding: 12px;
}

.myb-lead {
  font-size: .9rem;
  color: #3d5c6d;
}

.myb-stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.myb-stat-card {
  border: 1px solid #d7e3ec;
  border-radius: 12px;
  padding: 10px 11px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  display: grid;
  gap: 2px;
  text-align: center;
}

.myb-stat-card span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #678093;
  font-weight: 700;
}

.myb-stat-card strong {
  font-size: 1.05rem;
  color: #23495f;
  font-weight: 800;
}

.myb-panel {
  margin-top: 10px;
  border-color: #d4e0e9;
}

.myb-empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 8px 2px;
}

.myb-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.myb-table-wrap {
  border-radius: 12px;
  border-color: #d7e4ed;
}

.myb-table {
  min-width: 920px;
}

.myb-table th {
  background: #f3f8fc;
  color: #446173;
  font-size: .8rem;
  letter-spacing: .02em;
}

.myb-table td {
  font-size: .84rem;
}

.myb-date,
.myb-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.myb-location-link {
  color: #225e80;
  font-weight: 700;
  text-decoration: none;
}

.myb-location-link:hover {
  text-decoration: underline;
}

.myb-club,
.myb-name {
  color: #2d4d62;
  font-weight: 600;
}

.myb-table .bookings-delete-btn {
  border-radius: 8px;
  height: 32px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .myb-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .myb-head {
    padding: 10px;
  }

  .myb-stats {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .myb-stat-card {
    padding: 8px 9px;
  }

  .myb-table {
    min-width: 760px;
  }
}

/* My Bookings v2 Redesign */
.myb-head {
  border: 1px solid #ccdae4;
  border-radius: 16px;
  padding: 14px 14px 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(49, 117, 158, 0.16), transparent 42%),
    linear-gradient(180deg, #f8fbff, #eef5fb);
  box-shadow: 0 10px 24px rgba(21, 56, 78, 0.12);
}

.myb-head h1 {
  margin: 0;
  font-size: clamp(1.45rem, 4.8vw, 1.95rem);
  letter-spacing: 0.01em;
  color: #113447;
}

.myb-lead {
  margin-top: 7px;
  font-size: 0.9rem;
  color: #2f576f;
  font-weight: 600;
}

.myb-stats {
  margin-top: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.myb-view-toggle {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4px;
  padding: 4px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid #cfe0ec;
  background: #edf5fb;
}

.myb-view-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #355e76;
}

.myb-view-toggle a:hover {
  background: #deedf8;
}

.myb-view-toggle a.active {
  background: linear-gradient(135deg, #3c8dbc, #2f78a0);
  color: #fff;
}

.myb-stat-card {
  border: 1px solid #cfe0ec;
  border-radius: 13px;
  padding: 10px 10px 9px;
  background: linear-gradient(180deg, #ffffff, #f2f8fd);
  box-shadow: 0 5px 12px rgba(31, 71, 95, 0.08);
}

.myb-stat-card strong {
  font-size: 1.1rem;
}

.myb-panel {
  margin-top: 12px;
  border: 1px solid #d2e0eb;
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, #fafdff, #f3f8fc);
}

.myb-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.myb-card {
  border: 1px solid #d2e0ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(26, 64, 89, 0.1);
  padding: 11px;
  display: grid;
  gap: 10px;
}

.myb-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #dce7ef;
  padding-bottom: 8px;
}

.myb-card-day {
  font-size: 0.9rem;
  font-weight: 800;
  color: #193f55;
}

.myb-card-time {
  font-size: 0.84rem;
  font-weight: 700;
  color: #355d75;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.myb-card-main {
  display: grid;
  gap: 8px;
}

.myb-location-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1a5c81;
}

.myb-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.myb-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.myb-card-meta p {
  margin: 0;
  border: 1px solid #d8e5ee;
  border-radius: 10px;
  background: #f7fbff;
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}

.myb-card-meta span {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #688297;
  font-weight: 700;
}

.myb-card-meta strong {
  font-size: 0.82rem;
  color: #274b62;
  font-weight: 700;
}

.myb-delete-form {
  margin: 0;
}

.myb-archive-note {
  margin: 0;
  border: 1px solid #d9e5ee;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f5f9fc;
  color: #547084;
  font-size: 0.78rem;
  font-weight: 600;
}

.myb-delete-btn {
  height: 38px;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7f2a33;
  background: linear-gradient(180deg, #fff7f8, #fbecef);
  border: 1px solid #e2bcc2;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.myb-delete-btn:hover {
  background: linear-gradient(180deg, #fdecef, #f6dde1);
  border-color: #d59aa3;
  color: #6f1f28;
}

.myb-delete-btn:focus-visible {
  outline: none;
  border-color: #c77782;
  box-shadow: 0 0 0 3px rgba(213, 121, 133, 0.2);
}

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

  .myb-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .myb-panel {
    padding: 9px;
    border-radius: 13px;
  }

  .myb-head {
    border-radius: 13px;
    padding: 11px 11px 10px;
  }

  .myb-stats {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .myb-stat-card {
    padding: 8px;
  }

  .myb-stat-card strong {
    font-size: 1rem;
  }

  .myb-card {
    padding: 10px;
    border-radius: 12px;
  }

  .myb-card-meta {
    grid-template-columns: 1fr;
  }

  .myb-card-day {
    font-size: 0.88rem;
  }

  .myb-card-time {
    font-size: 0.8rem;
  }
}

.va-panel {
  margin-top: 12px;
  border: 1px solid #d2e0eb;
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, #fafdff, #f3f8fc);
}

.va-section-head {
  margin-top: 14px;
  border: 1px solid #c9dce8;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(140deg, #f7fbff, #ebf4fa);
  text-align: center;
}

.va-section-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #48708a;
}

.va-section-head h2 {
  margin: 5px 0 4px;
  font-size: 1.02rem;
  color: #1d4258;
}

.va-section-head p {
  margin: 0;
  font-size: 0.84rem;
  color: #4e6a7d;
}

.va-section-divider {
  margin: 14px 0 8px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7e7f1 0%, #bfd8e6 50%, #d7e7f1 100%);
  opacity: 0.85;
}

.va-panel-users {
  border-color: #cfe0ec;
  background: linear-gradient(180deg, #fbfeff, #f2f8fd);
}

.va-copy-flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.va-copy-flash p {
  margin: 0;
}

.va-copy-flash strong {
  font-family: "Space Grotesk", "Sora", sans-serif;
  letter-spacing: 0.02em;
}

.va-copy-btn {
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 10px;
  padding: 0 12px;
  white-space: nowrap;
}

.va-panel-contacts {
  border-color: #cfe1d8;
  background: linear-gradient(180deg, #fbfefd, #f1f8f4);
}

.va-user-form,
.va-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.va-field {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: #3c5b70;
  font-weight: 700;
}

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

.va-field input,
.va-field select,
.va-table input,
.va-table select {
  width: 100%;
  height: 36px;
  border: 1px solid #c8d7e3;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 0.86rem;
  background: #fff;
  color: #2f485a;
}

.va-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.va-password-row .va-generate-password {
  height: 36px;
  border-radius: 9px;
  padding: 0 12px;
  white-space: nowrap;
}

.va-field input:focus,
.va-field select:focus,
.va-table input:focus,
.va-table select:focus {
  outline: none;
  border-color: #7eafd0;
  box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.16);
}

.va-panel .book-btn {
  appearance: none;
  border: 1px solid #1f6589;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #2f83b2, #1f6589);
  box-shadow: 0 7px 16px rgba(31, 101, 137, 0.2);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
  cursor: pointer;
}

.va-panel .book-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.va-panel .book-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(103, 167, 203, 0.25), 0 7px 16px rgba(31, 101, 137, 0.2);
}

.va-panel .book-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.va-submit {
  height: 38px;
  border-radius: 10px;
  width: 100%;
}

.va-user-form .va-submit {
  grid-column: 1 / -1;
}

.va-table-wrap {
  margin-top: 12px;
  display: block;
}

.va-table th,
.va-table td {
  vertical-align: middle;
}

.va-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.73rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.va-status.is-active {
  background: #e9f6ef;
  border-color: #b9dfc8;
  color: #1d6a42;
}

.va-status.is-inactive {
  background: #f7ecec;
  border-color: #e7caca;
  color: #8c3a3a;
}

.va-actions-cell {
  min-width: 172px;
}

.va-actions-cell form {
  margin: 0;
}

.va-inline-save,
.va-inline-delete {
  width: 100%;
  height: 32px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.va-inline-save {
  margin-bottom: 6px;
}

.va-hidden-form {
  display: none;
}

.va-user-actions {
  min-width: 210px;
}

.va-user-actions form {
  margin: 0;
}

.va-user-action-stack {
  display: grid;
  gap: 6px;
}

.va-user-reset,
.va-user-delete {
  width: 100%;
  height: 32px;
  border-radius: 8px;
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .va-user-form,
  .va-contact-form {
    grid-template-columns: 1fr;
  }

  .va-copy-flash {
    flex-direction: column;
    align-items: stretch;
  }

  .va-password-row {
    grid-template-columns: 1fr;
  }

  .va-section-head {
    text-align: left;
  }

  .va-actions-cell {
    min-width: 132px;
  }
}
