/* cleanom 1.7 – klares App-Design, transparente Buchung und Mail-Layout */
:root {
  --app-bg: #f3f5f7;
  --app-surface: #fff;
  --app-line: #dde3e8;
  --app-line-soft: #e9edf1;
  --app-text: #23313e;
  --app-muted: #6d7984;
  --app-blue: #245f9f;
}

body {
  color: var(--app-text);
  background: var(--app-bg);
  letter-spacing: -0.002em;
}

.panel,
.kpi,
.detail-hero,
.toolbar {
  border-color: var(--app-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(25, 38, 50, 0.025);
}

.button,
.quick-add,
.icon-button,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-radius: 8px;
}

/* The search shell owns the focus treatment. The input must never draw a second box. */
.toolbar .search {
  border-radius: 9px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.toolbar .search:focus-within {
  border-color: #6e91b8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36, 95, 159, 0.09);
}

.toolbar .search input,
.toolbar .search input:focus,
.toolbar .search input:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.toolbar .filter-tabs button:focus,
.toolbar .filter-tabs button:focus-visible {
  outline: 0;
  box-shadow: none;
}

.toolbar .filter-tabs button.active:focus,
.toolbar .filter-tabs button.active:focus-visible {
  box-shadow: 0 1px 4px rgba(29, 43, 64, 0.1);
}

/* Supplied cleanom vector */
.brand-mark {
  display: flex;
  align-items: center;
}

.cleanom-vector-logo {
  display: block;
  width: 126px;
  height: 47px;
  object-fit: contain;
  object-position: left center;
}

.sidebar .cleanom-vector-logo {
  width: 138px;
  height: 52px;
}
.signup-page > header .cleanom-vector-logo {
  width: 112px;
  height: 42px;
}
.mobile-brand .cleanom-vector-logo {
  width: 116px;
  height: 43px;
}
.manage-card .cleanom-vector-logo,
.payment-public-card .cleanom-vector-logo {
  width: 118px;
  height: 44px;
}

/* Registration */
.signup-page {
  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(52, 96, 137, 0.1),
      transparent 34%
    ),
    #f4f6f8;
}

.signup-page > header {
  border-bottom: 1px solid #dfe4e8;
  box-shadow: 0 1px 8px rgba(29, 43, 55, 0.035);
}

.wizard-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(620px, 100%);
  margin: 0 auto 22px;
}

.wizard-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  justify-content: stretch;
  gap: 7px;
  min-width: 0;
  color: #7b8690;
  text-align: center;
  font-size: 10.5px;
}

.wizard-progress span:after {
  position: absolute;
  z-index: -1;
  top: 13px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 1px;
  background: #cfd7de;
  content: "";
}

.wizard-progress span:last-child:after {
  display: none;
}
.wizard-progress i {
  width: 27px;
  height: 27px;
  background: #fff;
}

.wizard-heading {
  margin-bottom: 18px;
}
.wizard-heading h1 {
  margin-bottom: 5px;
  font-size: 25px;
  letter-spacing: -0.025em;
}
.wizard-heading p {
  max-width: 640px;
  margin-inline: auto;
}
.price-mode-switch {
  margin-bottom: 17px;
}

.registration-plan-grid {
  gap: 14px;
}
.registration-plan-card {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(27, 42, 55, 0.035);
}

.registration-plan-card.active {
  box-shadow:
    inset 0 3px #356a9d,
    0 9px 24px rgba(31, 70, 118, 0.11);
}

.plan-card-head h2 {
  margin: 0;
  font-size: 18px;
}
.registration-plan-card > p {
  min-height: 0;
  margin: 7px 0 9px;
  font-size: 11px;
  line-height: 1.45;
}

.annual-saving-badge {
  margin: 0 0 8px;
  padding: 7px 9px;
}
.registration-price,
.registration-price.discounted {
  align-content: start;
  min-height: 0;
  padding: 7px 0 11px;
}

.registration-price .regular-price {
  min-height: 16px;
}
.registration-price strong,
.registration-price.discounted > strong {
  font-size: 31px;
  line-height: 1.08;
}
.intro-discount {
  margin: 10px 0 12px;
  padding: 10px;
}
.plan-facts-compact {
  margin-bottom: 11px;
}
.registration-plan-card ul {
  padding: 11px 0 14px;
}

/* Tenant settings */
.booking-mail-contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.booking-mail-contact-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 11px;
}

.booking-mail-contact-options input,
.addon-bookable input {
  width: 16px !important;
  height: 16px !important;
}

.paypal-me-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid #cfddea;
  border-radius: 9px;
  color: #4f6579;
  background: #f3f7fb;
}

.paypal-me-notice > svg {
  flex: 0 0 18px;
  width: 18px;
  color: #386990;
}
.paypal-me-notice span {
  display: grid;
  gap: 4px;
}
.paypal-me-notice small {
  line-height: 1.55;
}

.service-addon-editor {
  display: grid;
  gap: 9px;
}
.service-addon-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 105px 85px 70px 34px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dce3e8;
  border-radius: 9px;
  background: #f8fafb;
}

.service-addon-row input {
  min-width: 0;
}
.addon-bookable {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.service-addon-editor > .button {
  justify-self: start;
}

/* Admin email composition */
.email-layout-editor {
  margin-bottom: 18px;
  overflow: hidden;
}
.email-layout-editor .panel-head {
  justify-content: space-between;
  gap: 20px;
}
.email-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 18px;
  padding: 18px;
}

.email-layout-grid > div {
  display: grid;
  gap: 7px;
}
.email-layout-grid textarea {
  min-height: 520px;
}
.email-layout-grid small {
  color: #77838d;
  font-size: 9px;
  line-height: 1.5;
}
.email-layout-grid iframe {
  width: 100%;
  min-height: 570px;
  border: 1px solid #dce2e7;
  border-radius: 10px;
  background: #f1f4f7;
}

/* Public booking page */
.booking-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 12% 8%,
      color-mix(in srgb, var(--brand) 9%, transparent),
      transparent 30%
    ),
    var(--booking-bg, #f4f6f8);
}

.booking-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--booking-text) 12%, transparent);
  border-radius: calc(var(--booking-radius, 10px) + 2px);
  box-shadow: 0 8px 28px rgba(23, 36, 48, 0.055);
}

.booking-main {
  grid-template-columns: minmax(270px, 0.78fr) minmax(520px, 1.22fr);
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  padding: 58px 0 52px;
}

.booking-copy {
  position: sticky;
  top: 28px;
  align-self: start;
  padding: 24px 0;
}

.booking-copy h1 {
  max-width: 520px;
  margin: 0 0 15px;
  font-size: clamp(34px, 4.4vw, 55px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.booking-copy > p {
  max-width: 500px;
  font-size: 14px;
  line-height: 1.75;
}
.booking-info {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}
.booking-info span,
.booking-info a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 11px;
  text-decoration: none;
  opacity: 0.76;
}
.booking-info svg {
  flex: 0 0 16px;
  width: 16px;
}
.booking-address:hover {
  opacity: 1;
}

.booking-box {
  align-self: start;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--booking-text) 12%, transparent);
  border-radius: calc(var(--booking-radius, 10px) + 4px) !important;
  box-shadow: 0 20px 55px rgba(26, 39, 51, 0.1);
}

.booking-body {
  min-height: 510px;
  padding: 31px 32px 25px;
}
.booking-body h2 {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.025em;
}
.booking-body h3 {
  margin-top: 24px;
  font-size: 12px;
}
.booking-footer {
  padding: 15px 20px;
  border-top: 1px solid #e6ebef;
  background: #fafbfc;
}

.booking-services {
  gap: 10px;
}
.booking-services button {
  min-height: 96px;
  padding: 15px;
  border-color: #dce3e8;
  border-radius: calc(var(--booking-radius, 10px) - 1px) !important;
  background: #fff;
}

.booking-services button:hover {
  border-color: color-mix(in srgb, var(--brand) 52%, #dce3e8);
}
.booking-services button.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent);
}
.booking-services button > em {
  min-width: 96px;
  text-align: right;
}
.booking-services button > em small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-style: normal;
  opacity: 0.68;
}

.public-calendar {
  width: 100%;
  max-width: none;
  margin-top: 14px;
  padding: 17px;
  border-radius: calc(var(--booking-radius, 10px) - 1px) !important;
}

.public-calendar-days > button,
.public-calendar-days > span {
  min-height: 44px;
  aspect-ratio: auto;
}
.public-calendar-days > button {
  border-radius: 7px;
}

.booking-addons {
  display: grid;
  gap: 10px;
  margin-top: 19px;
}
.booking-addons button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid #dbe2e7;
  border-radius: calc(var(--booking-radius, 10px) - 1px);
  color: inherit;
  background: #fff;
  text-align: left;
}

.booking-addons button > i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #cbd4dc;
  border-radius: 7px;
  color: #fff;
  background: #fff;
}

.booking-addons button > i svg {
  width: 14px;
}
.booking-addons button > span {
  display: grid;
  gap: 4px;
}
.booking-addons button > span small {
  color: #74808a;
  font-size: 10px;
}
.booking-addons button > span em {
  color: #71808d;
  font-size: 9px;
  font-style: normal;
}
.booking-addons button > b {
  color: var(--brand);
  text-align: right;
  font-size: 13px;
}
.booking-addons button > b small {
  display: block;
  margin-top: 3px;
  color: #7d8892;
  font-size: 8px;
  font-weight: 500;
}
.booking-addons button.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 4%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 9%, transparent);
}
.booking-addons button.active > i {
  border-color: var(--brand);
  background: var(--brand);
}

.booking-summary {
  gap: 0;
  border: 1px solid #e0e5ea;
  border-radius: 10px;
  overflow: hidden;
}
.booking-summary > div {
  padding: 12px 14px;
  background: #fff;
}
.booking-summary-addon {
  background: #fbfcfd !important;
}
.booking-summary-total {
  grid-column: 1 / -1;
  border-bottom: 0 !important;
  background: #f2f6f9 !important;
}
.booking-summary-total span {
  color: #455564 !important;
  font-weight: 700;
}
.booking-summary-total strong {
  color: var(--brand);
  font-size: 17px !important;
}

.public-payment-options {
  gap: 8px;
}
.public-payment-options button {
  min-height: 52px;
  border-radius: 9px !important;
}
.powered-cleanom,
.powered-cleanom:visited,
.powered-cleanom:hover,
.powered-cleanom:active {
  color: inherit;
  text-decoration: none;
}

.paypal-me-confirm {
  width: 100%;
  margin: 15px 0;
  padding: 15px;
  border: 1px solid #cfddea;
  border-radius: 10px;
  background: #f3f7fb;
}
.paypal-me-confirm p {
  margin: 0 0 11px;
  color: #5d6f7e;
  font-size: 11px;
}

@media (max-width: 1050px) {
  .email-layout-grid {
    grid-template-columns: 1fr;
  }
  .email-layout-grid iframe {
    min-height: 520px;
  }
  .service-addon-row {
    grid-template-columns: 1fr 1fr 100px 80px;
  }
  .service-addon-row .addon-bookable {
    grid-column: 1 / 3;
  }
  .booking-main {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(760px, calc(100% - 28px));
    padding-top: 32px;
  }
  .booking-copy {
    position: static;
    padding: 12px 0;
    text-align: center;
  }
  .booking-copy h1,
  .booking-copy > p {
    margin-inline: auto;
  }
  .booking-info {
    justify-items: center;
  }
}

@media (max-width: 720px) {
  .wizard-progress {
    width: 100%;
    margin-bottom: 18px;
  }
  .wizard-progress span {
    gap: 5px;
    font-size: 9px;
    line-height: 1.25;
  }
  .wizard-progress span:after {
    top: 13px;
    left: calc(50% + 17px);
    width: calc(100% - 34px);
  }
  .registration-plan-card > p {
    margin-bottom: 8px;
  }
  .service-addon-row {
    grid-template-columns: 1fr 1fr;
  }
  .service-addon-row > :nth-child(1),
  .service-addon-row > :nth-child(2) {
    grid-column: 1 / -1;
  }
  .service-addon-row .addon-bookable {
    grid-column: auto;
  }
  .booking-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 11px 12px;
  }
  .booking-header > a {
    font-size: 0;
  }
  .booking-header > a svg {
    margin: 0;
  }
  .booking-main {
    width: calc(100% - 20px);
    padding: 24px 0 34px;
  }
  .booking-copy {
    padding-inline: 8px;
  }
  .booking-copy h1 {
    font-size: 32px;
  }
  .booking-copy > p {
    font-size: 12px;
  }
  .booking-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .booking-body {
    min-height: 0;
    padding: 22px 16px 18px;
  }
  .booking-body h2 {
    font-size: 19px;
  }
  .booking-services button {
    min-height: 88px;
    padding: 13px;
  }
  .booking-services button > em {
    min-width: 78px;
  }
  .public-calendar {
    padding: 11px;
  }
  .public-calendar-weekdays,
  .public-calendar-days {
    gap: 3px;
  }
  .public-calendar-days > button,
  .public-calendar-days > span {
    min-height: 39px;
  }
  .booking-addons button {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .booking-addons button > b {
    grid-column: 2;
    text-align: left;
  }
  .booking-summary {
    grid-template-columns: 1fr;
  }
  .booking-summary-total {
    grid-column: auto;
  }
  .email-layout-editor .panel-head {
    align-items: stretch;
    flex-direction: column;
  }
  .email-layout-editor .panel-head .button {
    margin-left: 0;
  }
}

@media (max-width: 430px) {
  .cleanom-vector-logo {
    width: 104px;
    height: 39px;
  }
  .wizard-progress i {
    width: 25px;
    height: 25px;
  }
  .wizard-progress span:after {
    top: 12px;
  }
  .booking-services button {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .booking-services button > i {
    display: none;
  }
  .public-calendar-days > button,
  .public-calendar-days > span {
    min-height: 36px;
  }
}
