/* Orderbook Modern UI Layer
   Keep this file loaded after the old stylesheets. It overrides the 2012 table styling
   without touching the booking logic. */

:root {
  --ob-bg: #f5f6f6;
  --ob-bg-soft: #ffffff;
  --ob-surface: #ffffff;
  --ob-surface-2: #f4f5f5;
  --ob-text: #1f2428;
  --ob-muted: #6b7073;
  --ob-border: #dfe2e3;
  --ob-border-strong: #cfd3d5;

  --ob-primary: #646a6d;
  --ob-primary-hover: #4e5457;
  --ob-primary-soft: #eef0f1;
  --ob-danger: #b25b65;
  --ob-danger-hover: #994550;
  --ob-success: #72797d;
  --ob-warning: #8f8176;

  --ob-radius: 18px;
  --ob-radius-sm: 10px;
  --ob-shadow: 0 18px 50px rgba(31, 36, 40, .10);
  --ob-shadow-soft: 0 8px 26px rgba(31, 36, 40, .07);
  --ob-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #f5f6f6;
  color-scheme: only light;
  forced-color-adjust: none;
}

body.ob-body,
body {
  margin: 0;
  min-height: 100%;
  color: #1f2428;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  font-size: 14px;
  line-height: 1.45;
  background:
    radial-gradient(circle at top left, rgba(100,106,109,.16), transparent 34rem),
    linear-gradient(135deg, #f5f6f6 0%, #eceeef 100%);
}

body.ob-body a,
body a {
  color: #646a6d;
  text-decoration: none;
}

body.ob-body a:hover,
body a:hover {
  color: #4e5457;
  text-decoration: underline;
}

/* Main layout */
.ob-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 22px auto 52px;
}

.ob-panel {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(225,231,235,.95);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(31, 36, 40, .10);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.ob-main {
  padding: 24px;
}

.ob-page,
.order-page,
.profile-page,
.ob-auth {
  max-width: 980px;
  margin: 0 auto;
}

.order-page,
.profile-page {
  padding: 0;
}

.ob-page-head {
  margin-bottom: 20px;
}

.ob-page-head h1,
.ob-page-head h2,
.order-page h2,
.profile-page h2 {
  margin: 0 0 8px;
  color: #1f2428;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -.02em;
}

.ob-page-subtitle,
.order-page p,
.profile-page p {
  margin: 0;
  color: #6b7073;
}

/* Top navigation */
.ob-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(249,247,245,.96));
  border-bottom: 1px solid #dfe2e3;
}

.ob-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.ob-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, #646a6d, #aeb2b4);
  box-shadow: 0 8px 26px rgba(31, 36, 40, .07);
}

.ob-brand-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.ob-brand-subtitle {
  display: block;
  margin-top: 2px;
  color: #6b7073;
  font-size: .82rem;
}

.ob-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ob-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #1f2428;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.ob-nav a:hover {
  text-decoration: none;
  background: #eef0f1;
  border-color: #dfe2e3;
  transform: translateY(-1px);
}

.ob-nav a.ob-nav-danger {
  color: #fff;
  background: #b25b65;
}

.ob-nav a.ob-nav-danger:hover {
  background: #994550;
}

.ob-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 7px 10px;
  border: 1px solid #dfe2e3;
  border-radius: 999px;
  color: #6b7073;
  background: #fff;
  font-size: .82rem;
}

.ob-user-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.ob-muted { color: #6b7073; }

/* Cards */
.ob-card,
.loginBox,
.registerBox,
.order-card,
.profile-card,
.ob-result-card {
  border: 1px solid #dfe2e3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(31, 36, 40, .07);
}

.ob-card-pad,
.profile-card,
.ob-result-card {
  padding: 24px;
}

/* Auth/Login */
.ob-auth {
  display: grid;
  place-items: center;
  min-height: 520px;
}

.ob-login-card {
  width: min(460px, 100%);
  padding: 30px;
}

.ob-login-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: #fff;
  background: linear-gradient(135deg, #646a6d, #aeb2b4);
}

.ob-login-card h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: -.03em;
}

.ob-login-hint {
  margin: 0 0 22px;
  color: #6b7073;
  text-align: center;
}

.ob-error-text,
.orderlist-style7 {
  display: block;
  margin: 0 0 14px;
  color: #b25b65;
  text-align: center;
  font-weight: 650;
}

.ob-field {
  margin-bottom: 14px;
}

.ob-field label,
.profile-table td:first-child {
  display: block;
  margin-bottom: 6px;
  color: #6b7073;
  font-size: .88rem;
  font-weight: 700;
}

.ob-field input,
.ob-field select,
.profile-table input,
.profile-table select,
.profile-table textarea,
.registerBox input,
.registerBox select,
.loginBox input[type="text"],
.loginBox input[type="password"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfd3d5;
  border-radius: 12px;
  color: #1f2428;
  background: #fff;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ob-field input:focus,
.ob-field select:focus,
.profile-table input:focus,
.profile-table select:focus,
.registerBox input:focus,
.registerBox select:focus,
.loginBox input:focus {
  border-color: #646a6d;
  outline: none;
  box-shadow: 0 0 0 4px rgba(100,106,109,.16);
}

.ob-login-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ob-password-field {
  position: relative;
}

.ob-password-field input {
  padding-right: 52px !important;
}

.ob-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #646a6d;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.ob-password-toggle:hover,
.ob-password-toggle:focus-visible {
  color: #2f3437;
  background: #eef0f1;
  outline: none;
}

.ob-password-toggle i {
  font-size: 1rem;
  pointer-events: none;
}

body.ob-login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body.ob-login-page .ob-shell {
  flex: 0 0 auto;
}

body.ob-login-page .ob-auth {
  width: 100%;
  min-height: 0;
  place-items: start center;
  align-content: start;
  flex: 0 0 auto;
  padding: 32px 16px;
}

body.ob-login-page .ob-footer {
  width: 100%;
  flex: 0 0 auto;
}

@media (min-width: 601px) {
  body.ob-login-page {
    padding-bottom: 42px;
  }

  body.ob-login-page .ob-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
  }
}

@media (max-width: 600px) {
  body.ob-login-page .ob-auth {
    min-height: 0;
    padding: 18px 12px;
  }
}

/* Mobile account pages --------------------------------------------------- */
.registerBox,
.registerBox * {
  box-sizing: border-box;
}

.registerBox form {
  width: 100%;
}

.registerBox input[type="checkbox"],
.registerBox input[type="radio"],
.registerBox input[type="hidden"] {
  width: auto;
  min-height: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .registerBox {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 18px !important;
  }

  .registerBox > tbody,
  .registerBox > tbody > tr,
  .registerBox > tbody > tr > td,
  .registerBox div,
  .registerBox form,
  .registerBox table,
  .registerBox table > tbody,
  .registerBox table > tbody > tr,
  .registerBox table > tbody > tr > td {
    width: 100% !important;
    max-width: 100% !important;
  }

  .registerBox table,
  .registerBox table > tbody,
  .registerBox table > tbody > tr,
  .registerBox table > tbody > tr > td {
    display: block;
  }

  .registerBox table > tbody > tr {
    margin-bottom: 14px;
  }

  .registerBox table > tbody > tr > td {
    height: auto !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .registerBox table > tbody > tr > td:first-child:not([colspan]) {
    margin-bottom: 6px;
    color: #6b7073;
    font-size: .88rem;
    font-weight: 700;
  }

  .registerBox input[type="text"],
  .registerBox input[type="email"],
  .registerBox input[type="password"],
  .registerBox select,
  .registerBox textarea {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 6px !important;
    font-size: 16px !important;
  }

  .registerBox input[type="checkbox"],
  .registerBox input[type="radio"] {
    display: inline-block;
    width: 22px !important;
    height: 22px;
    margin: 0 8px 0 0 !important;
    vertical-align: middle;
  }

  .registerBox .header-style1 {
    display: block;
    margin-bottom: 12px;
    font-size: 1.45rem !important;
    line-height: 1.2;
    text-align: center;
  }

  .registerBox .auto-style5,
  .registerBox .auto-style7 {
    text-align: center !important;
  }

  .registerBox .error_msg {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Buttons */
.button-7,
button.button-7,
input.button-7,
.btn-termin-1,
.btn-termin-2 {
  width: auto !important;
  min-width: 140px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #646a6d !important;
  box-shadow: 0 8px 18px rgba(100,106,109,.22) !important;
  font: 700 .92rem/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.button-7:hover,
.button-7:focus,
.btn-termin-1:hover,
.btn-termin-2:hover {
  background: #4e5457 !important;
  transform: translateY(-1px);
  text-decoration: none;
}

.button-7:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(100,106,109,.18) !important;
}

.ob-button-danger,
button.ob-button-danger {
  background: #b25b65 !important;
  box-shadow: 0 8px 18px rgba(178,91,101,.18) !important;
}

.ob-button-danger:hover {
  background: #994550 !important;
}

/* Messages */
.order-message,
.order-message-ok,
.order-message-error,
.ob-message {
  margin: 14px 0 18px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid #dfe2e3;
  background: #f4f5f5;
  font-weight: 650;
}

.order-message-ok {
  color: #72797d;
  border-color: rgba(47,125,85,.25);
  background: #f0f2f3;
}

.order-message-error {
  color: #b25b65;
  border-color: rgba(178,91,101,.25);
  background: #fbf0f2;
}

/* Reservation list */
.order-list-wrap {
  display: grid;
  gap: 18px;
}

.order-empty {
  padding: 24px;
  border: 1px dashed #cfd3d5;
  border-radius: 18px;
  color: #6b7073;
  background: #f4f5f5;
  text-align: center;
}

.order-date-group {
  display: grid;
  gap: 10px;
}

.order-date-head {
  margin: 18px 0 2px;
  color: #6b7073;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px;
}

.order-card-main {
  min-width: 0;
}

.order-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.order-card-description {
  color: #1f2428;
  white-space: normal;
}

.order-card-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ob-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #4e5457;
  background: #eef0f1;
  font-size: .78rem;
  font-weight: 800;
}

.ob-status-storno,
.ob-status-cancelled {
  color: #6b6b6b;
  background: #eeeeee;
}

.ob-status-wait,
.ob-status-wartet,
.ob-status-unbestätigt,
.ob-status-unbestaetigt {
  color: #8f8176;
  background: #f3f0ed;
}

.ob-status-ok,
.ob-status-bestätigt,
.ob-status-bestaetigt {
  color: #72797d;
  background: #f0f2f3;
}

/* Profile */
.profile-card form {
  margin: 0;
}

.profile-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
}

.profile-table td {
  padding: 0 !important;
  vertical-align: top !important;
}

.profile-table td:first-child {
  width: 180px;
  padding-top: 11px !important;
}

.profile-table .profile-plz {
  width: 118px !important;
  display: inline-block;
  margin-right: 8px;
}

.profile-table .profile-city {
  width: calc(100% - 132px) !important;
  display: inline-block;
}

.profile-actions {
  margin-top: 18px;
  text-align: right;
}

/* Result */
.ob-result-card {
  max-width: 720px;
  margin: 18px auto;
  text-align: center;
}

.ob-result-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: #72797d;
  background: #f0f2f3;
  font-size: 1.6rem;
}

.ob-result-card h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  letter-spacing: -.03em;
}

.ob-result-card p {
  margin: 0 0 18px;
  color: #6b7073;
}

#InfoText {
  margin: 18px 0;
  padding: 14px;
  border-radius: 14px;
  background: #f4f5f5;
  border: 1px solid #dfe2e3;
}

/* Existing calendar/tables: polish, do not rebuild yet */
.IndexInner,
table[bgcolor="#F7F7F7"],
table[bgcolor="#FFFFFF"] {
  background: transparent !important;
}

.tm-grid,
.order-list-table,
table {
  max-width: 100%;
}

.tm-grid {
  overflow: hidden;
  border-radius: 14px;
}

.tm-slot {
  border-radius: 6px;
}

/* Old boxes */
.loginBox,
.registerBox {
  width: min(620px, 100%) !important;
  height: auto !important;
  position: static !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  margin: 24px auto !important;
  background: #ffffff !important;
}

.centeredBox {
  width: min(620px, 100%) !important;
  height: auto !important;
  position: static !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  margin: 24px auto !important;
}

.special_link {
  color: #646a6d !important;
  font-size: .9rem !important;
}

/* Footer */
.ob-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.78);
  background: rgba(31,36,40,.92);
  font-size: .78rem;
  z-index: 5;
}

/* Mobile */
@media (max-width: 760px) {
  .ob-shell {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .ob-panel {
    border-radius: 18px;
  }

  .ob-main {
    padding: 16px;
    overflow-x: auto;
  }

  .ob-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .ob-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .ob-nav a {
    flex: 1 1 auto;
  }

  .ob-user-pill {
    margin-left: 0;
  }

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

  .order-card-action {
    justify-content: flex-start;
  }

  .profile-table,
  .profile-table tbody,
  .profile-table tr,
  .profile-table td {
    display: block;
    width: 100% !important;
  }

  .profile-table td:first-child {
    padding-top: 0 !important;
  }

  .profile-table .profile-plz,
  .profile-table .profile-city {
    width: 100% !important;
    margin: 0 0 8px;
  }
}
/* Compact / Embed Mode */
body.ob-mode-compact {
    background: transparent !important;
}

body.ob-mode-compact .ob-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.ob-mode-compact .ob-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

body.ob-mode-compact .ob-topbar {
    min-height: auto;
    padding: 10px 16px;
    margin: 0;
    border-bottom: 1px solid #dfe2e3;
    background: #fff;
    box-shadow: none;
}

body.ob-mode-compact .ob-brand {
    gap: 8px;
}

body.ob-mode-compact .ob-logo {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

body.ob-mode-compact .ob-title {
    font-size: 15px;
    line-height: 1.2;
}

body.ob-mode-compact .ob-subtitle {
    display: none !important;
}

body.ob-mode-compact .ob-user-text {
    display: none !important;
}

body.ob-mode-compact .ob-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

body.ob-mode-compact .ob-nav a,
body.ob-mode-compact .ob-nav button,
body.ob-mode-compact .ob-nav .ob-nav-link {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 999px;
}

body.ob-mode-compact .ob-main {
    padding: 16px;
}

body.ob-mode-compact .ob-footer {
    display: none !important;
}

body.ob-mode-compact .ob-card {
    box-shadow: none;
    border-radius: 12px;
    border: 1px solid #dfe2e3;
}

body.ob-mode-compact .ob-page-title,
body.ob-mode-compact h1 {
    font-size: 20px;
    margin: 0 0 12px 0;
}

body.ob-mode-compact .ob-calendar-strip,
body.ob-mode-compact .ob-calendar-area {
    padding: 12px 16px !important;
    margin: 0 0 16px 0 !important;
    background: #fff;
    border-bottom: 1px solid #dfe2e3;
}

body.ob-mode-compact .ob-tabs {
    margin-top: 0;
}

body.ob-mode-compact .ob-table-wrap,
body.ob-mode-compact .ob-calendar-table-wrap {
    overflow-x: auto;
    max-width: 100%;
}

body.ob-mode-compact table {
    max-width: 100%;
}

/* Tabs / Reiter Bowling / Restaurant */
body.ob-mode-compact .ob-tabs,
body.ob-mode-compact .tabs,
body.ob-mode-compact .tabbox,
body.ob-mode-compact .tab-header {
    background: #ffffff !important;
    border: 1px solid #dfe2e3;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

/* einzelne Reiter */
body.ob-mode-compact .ob-tabs a,
body.ob-mode-compact .tabs a,
body.ob-mode-compact .tabbox a,
body.ob-mode-compact .tab-header a {
    background: #ffffff !important;
    color: #646a6d;
    border-right: 1px solid #dfe2e3;
    padding: 14px 20px;
    text-decoration: none;
}

/* aktiver Reiter */
body.ob-mode-compact .ob-tabs .active,
body.ob-mode-compact .tabs .active,
body.ob-mode-compact .tabbox .active,
body.ob-mode-compact .tab-header .active,
body.ob-mode-compact .ob-tabs a.active,
body.ob-mode-compact .tabs a.active {
    background: #f3f3f3 !important;
    color: #1f2428;
    font-weight: 700;
}

/* Inhalt unter den Reitern */
body.ob-mode-compact .ob-tab-content,
body.ob-mode-compact .tab-content,
body.ob-mode-compact .tabs-content,
body.ob-mode-compact .tabbody {
    background: #ffffff !important;
    border: 1px solid #dfe2e3;
    border-radius: 0 0 12px 12px;
}

/* Compact: alte Tabellen-/Reitercontainer wieder weiß machen */
body.ob-mode-compact .IndexInner,
body.ob-mode-compact table[bgcolor="#F7F7F7"],
body.ob-mode-compact table[bgcolor="#FFFFFF"] {
    background: #ffffff !important;
}

/* Bereich um Bowling/Restaurant sauber als weiße Box */
body.ob-mode-compact .IndexInner > table,
body.ob-mode-compact .IndexInner table[width],
body.ob-mode-compact .IndexInner td {
    background-color: #ffffff;
}

/* Reiter selbst */
body.ob-mode-compact .IndexInner td a,
body.ob-mode-compact .IndexInner th a {
    color: #646a6d;
}

/* Falls die Reiter über TD-Hintergründe kommen */
body.ob-mode-compact .IndexInner td[bgcolor="#F7F7F7"],
body.ob-mode-compact .IndexInner td[bgcolor="#FFFFFF"],
body.ob-mode-compact .IndexInner th[bgcolor="#F7F7F7"],
body.ob-mode-compact .IndexInner th[bgcolor="#FFFFFF"] {
    background: #ffffff !important;
}

/* Grid: weiße Kreuzchen/Punkte durch gerundete Einzelzellen entfernen */
.tm-slot {
    border-radius: 0 !important;
}

body.ob-mode-compact .tm-slot {
    border-radius: 0 !important;
}

.tm-grid {
    overflow: hidden;
    border-radius: 12px;
}

/* 2026 responsive refresh -------------------------------------------------- */
body.ob-body,
body {
  font-size: 15px;
  line-height: 1.55;
  background: #f3f5f7;
}

.ob-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 28px auto 72px;
}

.ob-panel {
  border: 1px solid #e5e8e9;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(27, 35, 44, .10);
  backdrop-filter: none;
}

.ob-main {
  padding: clamp(20px, 3vw, 38px);
}

.ob-topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, auto) 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 3vw, 34px);
  border-bottom: 1px solid #e6e9ea;
  background: #ffffff;
}

.ob-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(145deg, #686d70, #aeb2b4);
  box-shadow: 0 10px 24px rgba(104, 109, 112, .24);
}

.ob-brand-title {
  font-size: 1.08rem;
  font-weight: 800;
}

.ob-nav {
  justify-content: center;
  gap: 4px;
}

.ob-nav a {
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  color: #374151;
  font-size: .9rem;
}

.ob-nav a i {
  width: 18px;
  text-align: center;
  color: #646a6d;
  font-size: 1rem;
}

.ob-nav a.ob-nav-danger {
  color: #a13f3f;
  background: transparent;
}

.ob-nav a.ob-nav-danger i { color: #b25b65; }

.ob-nav a.ob-nav-danger:hover {
  color: #ffffff;
  background: #b25b65;
}

.ob-nav a.ob-nav-danger:hover i { color: #ffffff; }

.ob-user-pill {
  max-width: 190px;
  margin: 0;
  padding: 7px 11px 7px 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ob-user-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ob-card,
.loginBox,
.registerBox,
.order-card,
.profile-card,
.ob-result-card {
  border-color: #e2e5e6;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(27, 35, 44, .07);
}

.ob-login-card {
  padding: clamp(24px, 5vw, 38px);
}

.ob-field input,
.ob-field select,
.profile-table input,
.profile-table select,
.profile-table textarea,
.registerBox input,
.registerBox select,
.loginBox input[type="text"],
.loginBox input[type="password"] {
  min-height: 48px;
  padding: 12px 14px;
  border-color: #d8dcde;
  border-radius: 12px;
  font-size: 16px;
}

.button-7,
button.button-7,
input.button-7,
.btn-termin-1,
.btn-termin-2 {
  min-height: 48px;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  background: #646a6d !important;
  box-shadow: 0 8px 20px rgba(100, 106, 109, .20) !important;
}

.button-7:hover,
.button-7:focus,
.btn-termin-1:hover,
.btn-termin-2:hover { background: #4e5457 !important; }

/* Booking tabs */
.ob-booking-tabs {
  width: 100%;
  margin: 0 auto;
}

.ob-booking-tabs .tab {
  display: flex;
  gap: 8px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid #e4e7eb;
  border-radius: 16px;
  background: #f3f5f7;
  scrollbar-width: thin;
}

.ob-booking-tabs .tab a {
  flex: 1 0 auto;
  float: none;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 11px;
  color: #59616b;
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.ob-booking-tabs .tab a:hover {
  color: #1f2428;
  background: #ffffff;
  text-decoration: none;
}

.ob-booking-tabs .tab a.active {
  color: #ffffff;
  background: #646a6d;
  box-shadow: 0 5px 14px rgba(100, 106, 109, .22);
}

.ob-booking-tabs .tabcontent {
  padding: clamp(18px, 3vw, 30px) 0 0;
  border: 0;
  animation: none;
}

.ob-booking-tabs .tabcontent > h3 {
  margin: 0 0 18px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.ob-tab-body { min-width: 0; }

.ob-tab-body > p {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Legacy reservation matrices become usable instead of being squeezed. */
.ob-tab-body table[border="1"] {
  min-width: 640px;
  border: 1px solid #e1e5e9 !important;
  border-radius: 14px;
  background: #ffffff;
}

.ob-tab-body table[border="1"] td {
  border-color: #e1e5e9 !important;
}

.ob-tab-body td[bgcolor="#CCCCCC"] {
  height: 42px;
  color: #374151 !important;
  background: #eef1f4 !important;
  font-weight: 750;
}

.tm-slot {
  min-width: 64px;
  height: 46px;
}

.ob-footer {
  position: static;
  min-height: 42px;
  height: auto;
  padding: 10px 16px;
}

@media (max-width: 900px) {
  .ob-shell {
    width: min(100% - 20px, 760px);
    margin: 10px auto 32px;
  }

  .ob-panel { border-radius: 22px; }

  .ob-topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 16px;
  }

  .ob-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .ob-brand-subtitle { display: none; }

  .ob-user-pill {
    grid-column: 2;
    grid-row: 1;
    max-width: 42px;
    width: 42px;
    height: 42px;
    padding: 5px;
    justify-content: center;
  }

  .ob-user-pill img { width: 30px; height: 30px; }
  .ob-user-pill span { display: none; }

  .ob-nav {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 6px;
    border: 1px solid rgba(213, 217, 222, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(24, 31, 38, .10);
  }

  .ob-nav a,
  .ob-nav a.ob-nav-danger {
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    gap: 4px;
    padding: 7px 3px;
    border: 0;
    border-radius: 13px;
    color: #59616b;
    background: transparent;
    font-size: .68rem;
    line-height: 1.1;
  }

  .ob-nav a i { font-size: 1.2rem; }
  .ob-nav a:hover { transform: none; }
}

@media (max-width: 600px) {
  body.ob-body,
  body { font-size: 14px; }

  .ob-shell {
    width: 100%;
    margin-top: 0;
  }

  .ob-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ob-main { padding: 18px 14px 28px; }

  .ob-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .ob-brand-title { font-size: .98rem; }

  .ob-auth {
    min-height: auto;
    padding: 18px 0;
  }

  .ob-login-card,
  .profile-card,
  .ob-result-card,
  .order-card {
    padding: 18px;
    border-radius: 16px;
  }

  .button-7,
  button.button-7,
  input.button-7,
  .btn-termin-1,
  .btn-termin-2 {
    width: 100% !important;
  }

  .ob-login-links {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .ob-booking-tabs .tab {
    margin: 0 -14px;
    padding: 6px 14px;
    border-width: 1px 0;
    border-radius: 0;
  }

  .ob-booking-tabs .tab a {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .ob-booking-tabs .tabcontent { padding-top: 20px; }

  .ob-tab-body > p {
    margin-right: -14px;
    padding-right: 14px;
  }

  .profile-actions { text-align: stretch; }
  .profile-actions .button-7 { width: 100% !important; }

  .order-card-action,
  .order-card-action .button-7 { width: 100%; }

  .ob-footer { display: none; }
}

/* Desktop refinement after visual QA -------------------------------------- */
@media (min-width: 901px) {
  .ob-topbar {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .ob-brand {
    flex: 1 1 auto;
    min-width: 300px;
  }

  .ob-brand-title { white-space: nowrap; }

  .ob-nav {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 2px;
  }

  .ob-nav a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: .86rem;
    white-space: nowrap;
  }

  .ob-user-pill {
    flex: 0 0 auto;
    max-width: 170px;
  }

  .ob-booking-tabs .tab {
    width: auto;
    display: inline-flex;
  }

  .ob-booking-tabs .tab a {
    flex: 0 0 auto;
    min-width: 160px;
  }
}

/* Zwischen Tablet und großem Desktop braucht der Kopf zwei saubere Zeilen. */
@media (min-width: 901px) and (max-width: 1180px) {
  .ob-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 12px 18px;
  }

  .ob-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .ob-brand-title {
    white-space: normal;
  }

  .ob-user-pill {
    grid-column: 2;
    grid-row: 1;
    max-width: 190px;
  }

  .ob-nav {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border: 1px solid #e2e5e6;
    border-radius: 14px;
    background: #f6f7f8;
  }

  .ob-nav a,
  .ob-nav a.ob-nav-danger {
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 10px;
    white-space: nowrap;
  }
}

/* Scalable reservation overview */
.order-page {
  width: 100%;
  max-width: 1040px;
}

.order-list-wrap,
.order-section,
.order-cards,
.order-year {
  width: 100%;
  min-width: 0;
}

.order-overview-counts {
  display: flex;
  gap: 10px;
  margin: 20px 0 26px;
}

.order-overview-counts span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #dde1e2;
  border-radius: 999px;
  color: #6b7073;
  background: #f4f5f5;
  font-size: .82rem;
}

.order-overview-counts strong {
  color: #646a6d;
  font-size: 1rem;
}

.order-section {
  margin-top: 28px;
}

.order-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.order-section-head h3 {
  margin: 0;
  color: #24313a;
  font-size: 1.08rem;
}

.order-section-head > span {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #646a6d;
  background: #eef0f1;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
}

.order-cards {
  display: grid;
  gap: 12px;
}

.order-card {
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
}

.order-card-title time {
  color: #1f2933;
  font-weight: 850;
}

.order-card-description {
  color: #4b5563;
  line-height: 1.55;
}

.order-card-action form { margin: 0; }

.order-card-action .button-7 {
  min-width: 132px;
  box-shadow: none !important;
}

.order-history {
  padding-top: 4px;
  border-top: 1px solid #e1e4e5;
}

.order-year {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #dfe3e4;
  border-radius: 14px;
  background: #ffffff;
}

.order-year summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #26343d;
  background: #f4f5f5;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.order-year summary::-webkit-details-marker { display: none; }

.order-year summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  color: #646a6d;
  background: #eef0f1;
  font-size: 1.1rem;
}

.order-year[open] summary::after { content: "−"; }

.order-year summary small {
  color: #6b7073;
  font-size: .78rem;
  font-weight: 650;
}

.order-cards-past {
  padding: 12px;
  border-top: 1px solid #e1e4e5;
  background: #fbfcfd;
}

.order-period-upcoming > .order-cards {
  padding: 12px;
  border-top: 1px solid #e1e4e5;
  background: #ffffff;
}

.order-period-upcoming[open] > summary {
  color: #ffffff;
  background: #646a6d;
}

.order-period-upcoming[open] > summary small { color: rgba(255,255,255,.78); }
.order-period-upcoming[open] > summary::after {
  color: #646a6d;
  background: #ffffff;
}

/* Destructive actions stay Cayenne red, independent of generic button order. */
.ob-button-danger,
button.ob-button-danger,
.order-card-action .ob-button-danger {
  background: #b25b65 !important;
  box-shadow: 0 7px 18px rgba(178,91,101,.18) !important;
}

.ob-button-danger:hover,
button.ob-button-danger:hover,
.order-card-action .ob-button-danger:hover {
  background: #994550 !important;
}

.order-cards-past .order-card {
  box-shadow: none;
}

@media (max-width: 600px) {
  .order-overview-counts {
    margin: 16px 0 22px;
    overflow-x: auto;
  }

  .order-overview-counts span { white-space: nowrap; }

  .order-section { margin-top: 22px; }

  .order-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .order-card-action,
  .order-card-action form,
  .order-card-action .button-7 {
    width: 100%;
  }

  .order-year summary { padding: 12px 14px; }
  .order-cards-past { padding: 8px; }
}

/* Compact date picker */
.ob-calendar-picker {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid #e2e5e6;
  border-radius: 18px;
  background: #f8f9fa;
}

.ob-calendar-months {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ob-calendar-month,
.ob-calendar-waitlist {
  flex: 0 0 auto;
}

.ob-calendar-picker #cal {
  border: 1px solid #dfe3e7;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(27, 35, 44, .05);
}

@media (min-width: 601px) {
  .ob-booking-tabs .tab {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
  }

  .ob-booking-tabs .tab a {
    flex: 0 0 auto;
    min-width: 160px;
  }
}

@media (max-width: 600px) {
  .ob-calendar-picker {
    margin: 0 -14px 18px;
    padding: 14px;
    border-width: 1px 0;
    border-radius: 0;
  }

  .ob-booking-tabs .tab {
    width: auto;
    display: flex;
  }
}

/* Calendar typography and booking actions */
.ob-calendar-picker #cal,
.ob-calendar-picker #cal th,
.ob-calendar-picker #cal td,
.ob-calendar-picker #cal a,
.ob-tab-body table,
.ob-tab-body table th,
.ob-tab-body table td,
.ob-tab-body table font {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

.ob-tab-body table[border="1"] > tbody > tr:first-child > td,
.ob-tab-body table[border="1"] > tr:first-child > td {
  height: 44px !important;
  color: #374151 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.ob-tab-body table[border="1"] > tbody > tr:first-child > td font,
.ob-tab-body table[border="1"] > tr:first-child > td font {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.ob-legend-area {
  margin-top: 22px;
}

.ob-legend-items {
  display: flex;
  align-items: center;
  gap: 12px 26px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ob-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: .82rem;
}

.ob-legend-item i {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid #4b5563;
  border-radius: 5px;
}

.ob-booking-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
}

.ob-booking-extras { min-width: 0; }

.ob-booking-actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  width: 230px;
}

.ob-booking-actions .button-7 {
  width: 100% !important;
  min-width: 0;
  white-space: normal;
}

@media (max-width: 600px) {
  .ob-tab-body table[border="1"] > tbody > tr:first-child > td,
  .ob-tab-body table[border="1"] > tr:first-child > td {
    font-size: 11px !important;
  }

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

  .ob-booking-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ob-booking-actions {
    width: 100%;
  }

  .ob-booking-actions .button-7,
  #B2.button-7 {
    width: 100% !important;
    min-width: 100% !important;
    min-height: 52px;
    height: auto !important;
    padding: 13px 14px !important;
    overflow: visible;
    white-space: normal !important;
    line-height: 1.25 !important;
    text-overflow: clip;
  }
}

/* Das feste Mobilmenü darf die letzten Buchungsaktionen nicht überdecken. */
