:root {
  --bg-1: #f5f7f2;
  --bg-2: #e8eedf;
  --card: #ffffff;
  --text: #1f2520;
  --brand: #52801b;
  --brand-dark: #3f6615;
  --accent: #a76804;
  --button-color: #52801b;
  --button-hover: #3f6615;
  --line: #d7dfcd;
  --warn: #92500d;
  --warn-bg: #fff3e5;
  --font-body: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Cardo", Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --button-radius: var(--radius-sm);
  --card-shadow: 0 16px 34px rgba(18, 29, 10, 0.1);
  --card-shadow-hover: 0 22px 42px rgba(18, 29, 10, 0.13);
  --hero-background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, rgba(82, 128, 27, 0.18), rgba(167, 104, 4, 0.09)),
    #f7faef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(82, 128, 27, 0.08), rgba(82, 128, 27, 0) 220px),
    radial-gradient(circle at top right, var(--bg-2), var(--bg-1) 52%);
  min-height: 100vh;
}

body.has-overlay {
  overflow: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px;
}

.booking-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-panel {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(82, 128, 27, 0.14);
  background: var(--hero-background);
  box-shadow: var(--card-shadow);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 0;
}

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

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(83, 117, 39, 0.14);
  border-radius: var(--radius-lg);
  background: #f6f9f2;
  color: var(--text);
  box-shadow: var(--card-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.category-card-media {
  flex: 0 0 180px;
  background-size: cover;
  background-position: center;
}

.category-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 250, 241, 0.98)),
    #fff;
}

.category-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.1;
  color: #234110;
}

.category-card-copy {
  color: #4c5e45;
  line-height: 1.45;
}

.category-card-price {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent);
}

.category-card-single .category-card-media {
  background-image:
    linear-gradient(150deg, rgba(255, 251, 233, 0.08), rgba(26, 52, 12, 0.22)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%236f9440'/%3E%3Ccircle cx='676' cy='92' r='74' fill='%23f2d379' fill-opacity='.78'/%3E%3Cpath d='M0 420 112 288l92 102 126-174 138 164 88-114 244 154V500H0Z' fill='%232d4e16'/%3E%3Cpath d='M30 500V210h18v290Zm110 0V174h18v326Zm134 0V202h18v298Zm130 0V154h18v346Zm128 0V190h18v310Z' fill='%2333551b'/%3E%3Cpath d='M30 260h128M148 236h135M292 246h123M418 208h129M548 240h125' stroke='%23f4f0d0' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E");
}

.category-card-family .category-card-media {
  background-image:
    linear-gradient(150deg, rgba(255, 248, 224, 0.1), rgba(34, 57, 12, 0.2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%239bb05c'/%3E%3Crect y='322' width='800' height='178' fill='%23698a33'/%3E%3Ccircle cx='650' cy='96' r='78' fill='%23f5d280'/%3E%3Cpath d='M194 338c0-62 51-112 114-112s114 50 114 112v12H194Zm232 0c0-54 43-98 97-98s97 44 97 98v12H426Zm-348 8c0-43 35-78 78-78s78 35 78 78v4H78Z' fill='%23f7f0d8' fill-opacity='.88'/%3E%3Cpath d='M145 322V240h22v82Zm142 0v-92h22v92Zm210 0v-78h22v78Zm-350 42 27-42 28 42Zm138 0 27-42 28 42Zm210 0 27-42 28 42Z' fill='%23bf6c2c'/%3E%3C/svg%3E");
}

.category-card-birthday .category-card-media {
  background-image:
    linear-gradient(150deg, rgba(255, 244, 220, 0.1), rgba(72, 18, 18, 0.16)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%238bb94f'/%3E%3Crect y='350' width='800' height='150' fill='%2362782b'/%3E%3Cpath d='M112 352h220l-26-118H138Z' fill='%23d5955f'/%3E%3Crect x='166' y='248' width='112' height='104' fill='%23f0d6a2'/%3E%3Cpath d='M130 234 222 166l94 68Z' fill='%23974f27'/%3E%3Ccircle cx='558' cy='148' r='20' fill='%23ff6c7a'/%3E%3Ccircle cx='604' cy='118' r='20' fill='%23ffd454'/%3E%3Ccircle cx='650' cy='152' r='20' fill='%235db0ff'/%3E%3Ccircle cx='590' cy='178' r='20' fill='%23ff9b54'/%3E%3Cpath d='M550 350c0-72 58-130 130-130s130 58 130 130' stroke='%23fff8e8' stroke-width='12' stroke-dasharray='12 18' fill='none'/%3E%3C/svg%3E");
}

.category-card-groups .category-card-media {
  background-image:
    linear-gradient(150deg, rgba(250, 248, 228, 0.08), rgba(22, 43, 10, 0.22)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%237aa24a'/%3E%3Crect y='360' width='800' height='140' fill='%23586f28'/%3E%3Ccircle cx='150' cy='286' r='38' fill='%23f8e9cc'/%3E%3Ccircle cx='252' cy='270' r='38' fill='%23f8e9cc'/%3E%3Ccircle cx='354' cy='286' r='38' fill='%23f8e9cc'/%3E%3Ccircle cx='456' cy='270' r='38' fill='%23f8e9cc'/%3E%3Ccircle cx='558' cy='286' r='38' fill='%23f8e9cc'/%3E%3Cpath d='M104 370c0-45 34-80 76-80s76 35 76 80v10H104Zm204 0c0-45 34-80 76-80s76 35 76 80v10H308Zm204 0c0-45 34-80 76-80s76 35 76 80v10H512Z' fill='%23f3f1e3' fill-opacity='.88'/%3E%3Cpath d='M0 194h800' stroke='%23f4f0d0' stroke-width='12'/%3E%3Cpath d='M122 360V130m142 360V130m142 360V130m142 360V130m142 360V130' stroke='%23466c20' stroke-width='18'/%3E%3C/svg%3E");
}

.category-card-team .category-card-media {
  background-image:
    linear-gradient(150deg, rgba(241, 249, 240, 0.08), rgba(13, 35, 31, 0.22)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%235f8d59'/%3E%3Crect y='344' width='800' height='156' fill='%2342612c'/%3E%3Cpath d='M86 252h618' stroke='%23f2ecce' stroke-width='12' stroke-linecap='round'/%3E%3Cpath d='M136 344V138m184 344V118m184 364V150m184 332V126' stroke='%2336541b' stroke-width='18'/%3E%3Cpath d='M136 202 320 142 504 206 688 156' stroke='%23ffd766' stroke-width='8' fill='none'/%3E%3Ccircle cx='320' cy='142' r='18' fill='%23ffe7b3'/%3E%3Ccircle cx='504' cy='206' r='18' fill='%23ffe7b3'/%3E%3Ccircle cx='688' cy='156' r='18' fill='%23ffe7b3'/%3E%3Cpath d='M240 344c0-34 28-62 62-62s62 28 62 62v8H240Zm196 0c0-34 28-62 62-62s62 28 62 62v8H436Z' fill='%23f5efe1' fill-opacity='.85'/%3E%3C/svg%3E");
}

.category-card-voucher .category-card-media {
  background-image:
    linear-gradient(150deg, rgba(255, 248, 226, 0.12), rgba(92, 61, 10, 0.18)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%23b49544'/%3E%3Crect x='130' y='122' width='540' height='244' rx='22' fill='%23faf3db'/%3E%3Crect x='162' y='152' width='476' height='184' rx='18' fill='%23fff8eb' stroke='%23d0b86f' stroke-width='8'/%3E%3Cpath d='M260 152v184m280-184v184' stroke='%23e3d09a' stroke-dasharray='18 14' stroke-width='6'/%3E%3Ctext x='400' y='222' text-anchor='middle' font-size='56' font-family='Georgia' fill='%2352801b'%3EGUTSCHEIN%3C/text%3E%3Ctext x='400' y='282' text-anchor='middle' font-size='28' font-family='Arial' fill='%23a76804'%3EFlexibel einlösbar%3C/text%3E%3C/svg%3E");
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-top: 5px solid var(--brand);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 28px 16px;
  background: rgba(20, 29, 11, 0.5);
  backdrop-filter: blur(6px);
}

.booking-overlay[hidden] {
  display: none !important;
}

.booking-panel {
  max-width: 860px;
  margin: 0 auto;
  width: min(860px, 100%);
  border-top-width: 6px;
  box-shadow: var(--card-shadow-hover);
}

.booking-panel-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.inline-back-button {
  width: auto;
  align-self: flex-start;
  padding-inline: 16px;
}

.booking-panel-copy {
  margin-bottom: 10px;
}

.booking-panel-help {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #d8e4ca;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f5faef, #edf5e4);
  color: #41573a;
  line-height: 1.55;
}

.checkin-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkin-stage {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #edf5e4, #dfead0);
}

.checkin-video {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: 62vh;
  object-fit: cover;
  background: #dce8cc;
}

.checkin-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #41573a;
  font-weight: 600;
  background: rgba(247, 250, 239, 0.88);
}

.checkin-placeholder[hidden] {
  display: none !important;
}

.checkin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.checkin-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  cursor: pointer;
}

.checkin-result-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 238, 0.98));
}

.category-panel-price {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
}

.booking-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.booking-step-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5e7;
  border: 1px solid #d6e4c6;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.booking-step-chip.is-active {
  background: linear-gradient(180deg, #6ba728, var(--brand));
  border-color: #487116;
  color: #fff;
}

.booking-section-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfdf8;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h3 {
  margin: 0 0 6px;
  color: var(--brand);
}

.admin-field-hint {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: #5a6653;
}

.email-attachments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d7dfcd;
  border-radius: var(--radius-sm);
  background: #f7faf2;
}

.email-attachment-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.email-attachment-name {
  font-weight: 700;
  color: #274514;
  word-break: break-word;
}

.email-attachment-url {
  font-size: 0.88rem;
  color: #61705a;
  word-break: break-all;
}

.email-template-attachments {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d7dfcd;
}

.email-template-attachments strong {
  display: block;
  margin-bottom: 6px;
}

.email-template-attachments ul {
  margin: 0;
  padding-left: 18px;
}

.section-step {
  margin: 0 0 4px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-help {
  margin: 0;
  color: #576850;
}

.message-box {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
}

.message-info {
  background: #eef5e8;
  border-color: #d3e3c4;
  color: #35511b;
}

.message-loading {
  background: #eef3ff;
  border-color: #cdd8f5;
  color: #2e4b85;
}

.message-warning {
  background: #fff3e5;
  border-color: #efcfaa;
  color: var(--warn);
}

.message-error {
  background: #fdeaea;
  border-color: #efc0c0;
  color: #9a2a2a;
}

.message-success {
  background: #e8f5e7;
  border-color: #c2dfbd;
  color: #2f6a2a;
}

.booking-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 29, 10, 0.42);
  backdrop-filter: blur(10px);
}

.booking-success-overlay[hidden] {
  display: none !important;
}

.booking-success-modal {
  width: min(100%, 560px);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(82, 128, 27, 0.22);
  background: linear-gradient(180deg, #fdfef9, #eef5e4);
  box-shadow: 0 28px 60px rgba(18, 29, 10, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: center;
}

.booking-success-eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.booking-success-modal h3 {
  margin: 0 0 8px;
  color: #234110;
}

#bookingSuccessText {
  margin: 0;
  color: #41573a;
  line-height: 1.5;
}

.booking-success-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.booking-success-actions button {
  width: auto;
  min-width: 220px;
}

h1 {
  margin: 0 0 4px;
  color: var(--brand);
  font-weight: 700;
}

.subtitle {
  margin: 0 0 24px;
  color: #4e5f46;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.color-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-field-value {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  min-width: 112px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #586652;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-design-color-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-color-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfdf8;
}

.admin-color-group h3 {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 1rem;
}

.admin-readonly-value {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #4e5f46;
  font-weight: 600;
}

#calendarReadOnlyWarning {
  margin-top: 14px;
}

label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #2f3c2a;
}

.required-label::after {
  content: " *";
  color: #b24a22;
}

input,
select,
textarea,
button {
  font: inherit;
  border-radius: var(--button-radius);
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #fff;
}

input[type="color"] {
  width: 100%;
  min-height: 46px;
  padding: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: calc(var(--radius-sm) - 3px);
}

input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: calc(var(--radius-sm) - 3px);
}

.color-field input[type="color"] {
  max-width: 74px;
  min-width: 74px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(82, 128, 27, 0.2);
  border-color: var(--brand);
}

button {
  width: 100%;
  border: 0;
  border-radius: var(--button-radius);
  padding: 12px;
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, white 10%, var(--button-color)), var(--button-color));
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: linear-gradient(180deg, color-mix(in srgb, white 8%, var(--button-hover)), var(--button-hover));
}

.markers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.badge {
  font-size: 0.84rem;
  border-radius: 99px;
  padding: 4px 10px;
  border: 1px solid transparent;
}

.badge-holiday {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: #efcfaa;
}

.badge-school {
  color: #2f5f13;
  background: #eff6e8;
  border-color: #d4e6c3;
}

.status {
  min-height: 1.5em;
  margin-top: 10px;
  font-weight: 600;
}

.price {
  color: #4e5f46;
  font-weight: 600;
}

.capacity-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid #d8e4ca;
  background: linear-gradient(180deg, #f5faef, #edf5e4);
}

.capacity-title {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--brand);
}

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

.capacity-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid #dbe6d0;
}

.capacity-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: #607155;
}

.capacity-card strong {
  font-size: 1.2rem;
  color: #294612;
}

.capacity-hint {
  margin: 10px 0 0;
  color: #4e5f46;
  font-size: 0.92rem;
}

.price-summary-panel {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  margin: 18px 0;
  border: 1px solid #dbe6d0;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fdfef8, #f3f8ea);
  box-shadow: 0 16px 32px rgba(48, 71, 19, 0.08);
}

.price-summary-panel.is-updated {
  animation: pricePulse 0.45s ease;
}

.price-summary-head {
  display: grid;
  gap: 8px;
}

.price-summary-head h3 {
  margin: 0;
  color: #274517;
}

.price-summary-eyebrow {
  margin: 0 0 4px;
  color: #5c7015;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-summary-copy {
  margin: 0;
  color: #4e5f46;
  font-size: 0.95rem;
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #d7e3c9;
  color: #314026;
}

.price-breakdown-row span {
  font-size: 0.95rem;
}

.price-breakdown-row strong {
  font-size: 0.96rem;
  text-align: right;
}

.price-breakdown-row.is-adjustment span,
.price-breakdown-row.is-adjustment strong {
  color: #8b5f00;
}

.price-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
  color: #274517;
}

.price-summary-total span {
  font-size: 0.94rem;
  font-weight: 700;
}

.price-summary-total strong {
  font-size: 1.4rem;
}

.final-charge-panel {
  margin: 8px 0 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid #d9e3ce;
  background: linear-gradient(180deg, #ffffff, #f8fbf4);
  box-shadow: 0 12px 24px rgba(48, 71, 19, 0.06);
}

.final-charge-eyebrow {
  margin: 0 0 12px;
  color: #5c7015;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-charge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.final-charge-label {
  display: block;
  margin-bottom: 6px;
  color: #617055;
  font-size: 0.88rem;
}

.final-charge-grid strong {
  color: #274517;
  font-size: 1.2rem;
}

.mobile-total-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(33, 52, 17, 0.94);
  color: #fff;
  box-shadow: 0 18px 36px rgba(18, 28, 9, 0.28);
  backdrop-filter: blur(10px);
}

.mobile-total-bar-copy {
  display: grid;
  gap: 2px;
}

.mobile-total-bar-copy span {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

.mobile-total-bar-copy strong {
  font-size: 1.15rem;
}

.mobile-total-bar-button {
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  background: #dfeec6;
  color: #294612;
  font-weight: 700;
}

@keyframes pricePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 16px 32px rgba(48, 71, 19, 0.08);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 18px 36px rgba(48, 71, 19, 0.14);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 16px 32px rgba(48, 71, 19, 0.08);
  }
}

.product-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-group-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdf8;
  overflow: hidden;
}

.product-group-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  background: #f2f7ec;
  border-bottom: 1px solid var(--line);
}

.product-group-prompt {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-group-title {
  display: block;
  font-weight: 700;
  color: var(--brand);
  padding-right: 20px;
}

.product-group-summary::-webkit-details-marker {
  display: none;
}

.product-group-summary::after {
  content: "▾";
  float: right;
  color: #496d1a;
}

.product-group-menu[open] .product-group-summary::after {
  content: "▴";
}

.product-group {
  padding: 10px;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}

.product-row label {
  margin: 0;
  font-weight: 600;
}

.product-inline-help {
  display: inline-block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 0.82rem;
  color: #6a7a63;
  line-height: 1.35;
}

.product-row .amount {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
}

.product-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-stepper .product-qty {
  width: 56px;
  text-align: center;
  /* native Spinner ausblenden – wir nutzen die +/- Buttons */
  -moz-appearance: textfield;
  appearance: textfield;
}

.product-stepper .product-qty::-webkit-outer-spin-button,
.product-stepper .product-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.stepper-btn:hover,
.stepper-btn:focus-visible {
  background: var(--bg-2);
  border-color: var(--brand);
}

.product-rule-hint {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #6a7a63;
}

.calendar-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(82, 128, 27, 0.06), rgba(255, 255, 255, 0)),
    #fcfdf9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-nav {
  width: auto;
  min-width: 96px;
  padding: 10px 12px;
  background: #eef5e8;
  color: var(--brand);
  border: 1px solid #d6e4c6;
  box-shadow: none;
}

.calendar-nav:hover {
  background: #e4efda;
}

.calendar-nav-today {
  min-width: 84px;
}

.calendar-month {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--brand);
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

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

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #607155;
}

.calendar-cell {
  min-height: 48px;
  border-radius: 10px;
}

.calendar-cell-empty {
  background: transparent;
}

.calendar-day {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 1px solid #dde7d4;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  box-shadow: none;
}

.calendar-day:hover {
  border-color: var(--brand);
  background: #f5f9f0;
}

.calendar-day.is-open {
  background: linear-gradient(180deg, #6ba729, var(--brand));
  border-color: #487219;
  color: #fff;
}

.calendar-day.is-open:hover {
  background: linear-gradient(180deg, #5d9622, var(--brand-dark));
  border-color: #355612;
}

.calendar-day.is-selected {
  background: linear-gradient(180deg, #5f9320, var(--brand));
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.calendar-day.is-open.is-selected {
  background: linear-gradient(180deg, #406815, #2f4e0f);
  border-color: #223908;
}

.calendar-day.is-disabled {
  color: #9aa691;
  background: #f4f6f1;
  cursor: not-allowed;
}

.calendar-day.has-holiday::after,
.calendar-day.has-school::before {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.calendar-day.has-school::before {
  left: 10px;
  background: #8ebc64;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.calendar-day.has-holiday::after {
  right: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.admin-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-section[id] {
  scroll-margin-top: 140px;
}

.admin-toolbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(18, 29, 10, 0.08);
}

.admin-toolbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-jump-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7e1cd;
  background: #f7faf2;
  color: #32511a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.admin-jump-link:hover {
  background: #edf5e5;
  border-color: #b8cba7;
}

.admin-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-toolbar-actions button {
  width: auto;
  min-width: 140px;
}

.admin-task-hub {
  margin-bottom: 18px;
}

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

.admin-task-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #d7dfcd;
  border-radius: 14px;
  background: #fbfdf8;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(18, 29, 10, 0.04);
}

.admin-task-card strong {
  color: #234110;
}

.admin-task-card span {
  color: #607155;
}

.save-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef5e7;
  color: #345119;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.save-state-pill.is-dirty {
  background: #fff1de;
  color: #9a5a11;
}

.save-state-pill.is-saved {
  background: #e8f5e7;
  color: #256b31;
}

.admin-warning-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.admin-warning-item {
  padding: 12px 14px;
  border: 1px solid #efcfaa;
  border-radius: 12px;
  background: #fff8ed;
  color: #8c560e;
}

.admin-warning-item strong {
  display: block;
  margin-bottom: 4px;
}

.admin-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.admin-choice-button {
  width: auto;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #d7dfcd;
  border-radius: 999px;
  background: #fff;
  color: #33501a;
  box-shadow: none;
}

.admin-choice-button.is-active {
  background: linear-gradient(180deg, #6ba728, var(--brand));
  border-color: #487116;
  color: #fff;
}

.payment-setup-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.payment-setup-card {
  padding: 14px;
  border: 1px solid #d7dfcd;
  border-radius: 14px;
  background: #fbfdf8;
}

.payment-setup-card strong {
  display: block;
  margin-bottom: 6px;
  color: #234110;
}

.payment-setup-card p {
  margin: 0;
  color: #607155;
}

.payment-setup-card.is-incomplete {
  border-color: #efcfaa;
  background: #fff8ed;
}

.payment-setup-card.is-ok {
  border-color: #cfe0bd;
  background: #f3faec;
}

.category-target-preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d7dfcd;
  border-radius: 14px;
  background: #f9fcf5;
}

.category-target-preview h4 {
  margin: 0 0 8px;
  color: #234110;
}

.category-target-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.category-target-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5e7;
  color: #345119;
  font-size: 0.88rem;
  font-weight: 700;
}

.product-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.product-summary-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5e7;
  color: #345119;
  font-size: 0.82rem;
  font-weight: 700;
}

.product-summary-tag.is-warning {
  background: #fff1de;
  color: #9a5a11;
}

.booking-quick-dates {
  margin-top: 8px;
}

.booking-search-priority .booking-month-shell,
.booking-search-priority #bookingDaySection,
.booking-search-priority #bookingsList {
  opacity: 0.45;
}

.booking-search-priority #bookingSearchSection {
  border-color: #cfe0bd;
}

.admin-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf2;
}

.admin-mode-toggle input {
  width: auto;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-overview-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdf8, #f1f6ea);
}

.admin-overview-label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.admin-overview-value {
  display: block;
  margin-bottom: 6px;
  color: #234110;
  font-size: 1.15rem;
}

.admin-overview-hint {
  margin: 0;
  color: #576850;
  font-size: 0.9rem;
}

.admin-section h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--brand);
}

.admin-section-copy {
  margin-top: -2px;
  margin-bottom: 14px;
}

.booking-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.booking-filter-chip {
  width: auto;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d7e1cd;
  background: #f7faf2;
  color: #32511a;
  box-shadow: none;
}

.booking-filter-chip:hover {
  background: #edf5e5;
  border-color: #b8cba7;
}

.booking-filter-chip.is-active {
  background: linear-gradient(180deg, #5d9622, var(--brand));
  border-color: #355612;
  color: #fff;
}

.admin-subsection {
  margin-top: 12px;
}

.advanced-settings {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f8f1;
  overflow: hidden;
}

.advanced-settings > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 700;
  color: #3b5422;
  background: #eef4e7;
}

.advanced-settings > summary::-webkit-details-marker {
  display: none;
}

.advanced-settings > *:not(summary) {
  padding: 0 14px 14px;
}

.category-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-group-menu-admin {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbf4, #eef5e5);
  overflow: hidden;
}

.product-group-menu-admin-summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
}

.product-group-menu-admin-summary::-webkit-details-marker {
  display: none;
}

.product-group-menu-admin-meta {
  display: grid;
  gap: 6px;
}

.product-group-menu-admin-meta h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1rem;
}

.product-group-menu-admin-meta p {
  margin: 0;
  color: #607155;
  font-size: 0.92rem;
}

.product-group-menu-admin-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px 16px;
  border-top: 1px solid #dfe8d3;
}

.category-editor-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fbfdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.category-editor-card.is-expired-booking {
  border-color: #d9c3a5;
  background: linear-gradient(180deg, #fffaf3, #f8f0e5);
}

.category-editor-menu {
  padding: 0;
  overflow: hidden;
}

.category-editor-summary {
  cursor: pointer;
  list-style: none;
  padding: 16px;
  background: linear-gradient(180deg, #f7fbf1, #eef5e5);
}

.category-editor-summary::-webkit-details-marker {
  display: none;
}

.category-editor-summary-meta {
  display: grid;
  gap: 6px;
}

.category-editor-summary-copy {
  margin: 0;
  color: #607155;
  font-size: 0.92rem;
}

.category-editor-body {
  padding: 16px;
  border-top: 1px solid #dfe8d3;
}

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

.category-editor-head h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1rem;
}

.category-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-editor-mini {
  width: auto;
  min-width: 110px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.category-editor-remove {
  background: linear-gradient(180deg, #b74848, #932c2c);
}

.category-editor-remove:hover {
  background: linear-gradient(180deg, #a43f3f, #7c2525);
}

.category-upload-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.category-upload-actions input[type="file"] {
  padding: 8px 10px;
  background: #fff;
}

.compact-grid {
  gap: 10px 18px;
}

.category-image-preview-wrap {
  margin-top: 10px;
}

.category-image-preview {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(18, 29, 10, 0.08);
  background: #eef3e7;
}

.category-card-preview {
  margin-top: 14px;
}

.category-card-preview-label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3b5422;
}

.design-preview {
  --preview-bg-1: #f5f7f2;
  --preview-bg-2: #e8eedf;
  --preview-card: #ffffff;
  --preview-text: #1f2520;
  --preview-brand: #52801b;
  --preview-brand-dark: #3f6615;
  --preview-accent: #a76804;
  --preview-line: #d7dfcd;
  --preview-font-body: "Roboto", Arial, sans-serif;
  --preview-font-heading: "Cardo", Georgia, serif;
  --preview-button-color: #52801b;
  --preview-button-hover: #3f6615;
  --preview-button-radius: 10px;
  --preview-card-shadow: 0 16px 34px rgba(18, 29, 10, 0.1);
  --preview-card-shadow-hover: 0 22px 42px rgba(18, 29, 10, 0.13);
  --preview-hero-background: linear-gradient(135deg, #f5f7f2, #e8eedf);
  --preview-radius-sm: 10px;
  --preview-radius-md: 16px;
  --preview-radius-lg: 18px;
  font-family: var(--preview-font-body);
}

.design-preview-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.design-preview-panel h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 1rem;
}

.design-preview-shell {
  display: grid;
  gap: 16px;
}

.design-preview-hero {
  padding: 24px;
  border-radius: var(--preview-radius-lg);
  border: 1px solid rgba(82, 128, 27, 0.14);
  background: var(--preview-hero-background);
  box-shadow: var(--preview-card-shadow);
  color: var(--preview-text);
}

.design-preview-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--preview-accent);
}

.design-preview-title {
  margin: 0 0 10px;
  font-family: var(--preview-font-heading);
  color: var(--preview-brand);
}

.design-preview-copy {
  margin: 0 0 14px;
  max-width: 62ch;
}

.design-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.design-preview-button {
  width: auto;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--preview-button-radius);
  background: linear-gradient(180deg, color-mix(in srgb, white 10%, var(--preview-button-color)), var(--preview-button-color));
  color: #fff;
  font-weight: 700;
  box-shadow: var(--preview-card-shadow);
}

.design-preview-button.is-secondary {
  background: linear-gradient(180deg, color-mix(in srgb, white 10%, var(--preview-button-hover)), var(--preview-button-hover));
}

.design-preview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.design-preview-card {
  padding: 16px;
  border-radius: var(--preview-radius-md);
  border: 1px solid var(--preview-line);
  background: var(--preview-card);
  box-shadow: var(--preview-card-shadow);
  color: var(--preview-text);
}

.design-preview-card-title {
  display: block;
  margin-bottom: 8px;
  font-family: var(--preview-font-heading);
  color: var(--preview-brand);
}

.design-preview-card-text {
  margin: 0 0 12px;
}

.design-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--preview-accent) 14%, white);
  color: var(--preview-accent);
  font-weight: 700;
}

.admin-actions-inline {
  margin-top: 14px;
}

.admin-calendar-shell {
  margin-bottom: 14px;
}

.admin-calendar-hint {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.admin-calendar-day {
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-calendar-day.is-open {
  background: #fff;
  border-color: #dde7d4;
  color: var(--text);
}

.admin-calendar-day.is-open:hover {
  background: #f5f9f0;
  border-color: var(--brand);
}

.admin-calendar-day.is-open-manual {
  background: linear-gradient(180deg, #d9f0c6, #bfe2a0);
  border-color: #7ea657;
  color: #274112;
}

.admin-calendar-day.is-open-manual:hover {
  background: linear-gradient(180deg, #ceeab6, #aed68b);
  border-color: #6d9447;
}

.admin-calendar-day.is-closed {
  background: linear-gradient(180deg, #c55353, #9f2f2f);
  border-color: #842525;
  color: #fff;
}

.admin-calendar-day.is-closed:hover {
  background: linear-gradient(180deg, #b04343, #882525);
  border-color: #6f1e1e;
}

.admin-calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(167, 104, 4, 0.45);
}

.admin-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #4e5f46;
}

.admin-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.admin-legend-swatch.is-open {
  background: #fff;
}

.admin-legend-swatch.is-closed {
  background: linear-gradient(180deg, #c55353, #9f2f2f);
  border-color: #842525;
}

.admin-legend-swatch.is-open-manual {
  background: linear-gradient(180deg, #d9f0c6, #bfe2a0);
  border-color: #7ea657;
}

.admin-legend-swatch.is-today {
  background: #fff3e5;
  border-color: var(--accent);
}

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox-row input {
  width: auto;
}

.code-area {
  min-height: 320px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.admin-actions button {
  width: auto;
  min-width: 160px;
}

.admin-empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed #c9d7bb;
  border-radius: 12px;
  background: #f7faf3;
  color: #5b6c52;
}

.template-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
}

.template-token-list code {
  padding: 6px 8px;
  border-radius: 8px;
  background: #eef4e7;
  border: 1px solid #d5e1c8;
}

.email-template-preview {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfdf8;
}

.email-template-preview hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 12px 0;
}

.email-template-preview-logo {
  display: block;
  max-width: 220px;
  max-height: 72px;
  margin: 0 0 14px;
}

.email-template-preview pre {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.5;
  color: #41573a;
}

.admin-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 -4px;
}

.admin-list-heading h3,
.admin-list-heading p {
  margin: 0;
}

.admin-list-heading h3 {
  color: #234110;
  font-size: 1rem;
}

.admin-list-heading p {
  color: #607155;
  font-size: 0.9rem;
}

body:not(.admin-advanced-mode) .advanced-only {
  display: none !important;
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bookings-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-log-item {
  padding: 14px 16px;
  border: 1px solid #d7dfcd;
  border-radius: 12px;
  background: #fbfdf8;
}

.booking-log-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #284515;
}

.booking-log-head span {
  color: #61705a;
  font-size: 0.92rem;
}

.booking-log-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.94rem;
  color: #43523c;
}

.booking-log-action {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf5e5;
  color: #32511a;
  font-weight: 700;
}

.booking-log-note {
  margin-top: 10px;
  color: #54624d;
}

.admin-booking-modal {
  max-width: 980px;
}

.admin-email-type-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 8px;
}

.admin-email-type-button {
  padding: 12px 16px;
  border: 1px solid #d5ddd0;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: #234110;
  cursor: pointer;
}

.admin-email-type-button.is-active {
  background: #edf5e5;
  border-color: #9cb57d;
}

.admin-email-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.admin-email-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 18, 0.56);
}

.admin-email-modal {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(9, 21, 11, 0.28);
  display: flex;
  flex-direction: column;
}

.admin-email-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-bottom: 1px solid #d5ddd0;
}

.admin-email-modal-header h3 {
  margin: 0 0 6px;
}

.admin-email-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 0;
  flex: 1;
}

.admin-email-modal-editor,
.admin-email-modal-preview {
  min-height: 0;
  overflow: auto;
  padding: 22px;
}

.admin-email-modal-editor {
  border-right: 1px solid #d5ddd0;
}

.admin-email-modal-preview {
  background: #f7f9f4;
}

.admin-email-template-panel[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .admin-email-modal-layout {
    grid-template-columns: 1fr;
  }

  .admin-email-modal-editor {
    border-right: 0;
    border-bottom: 1px solid #d5ddd0;
  }
}

.booking-month-shell {
  margin-bottom: 0;
  border: 1px solid #d5ddd0;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f6f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.booking-month-shell .calendar-toolbar {
  margin-bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, #ffffff, #eef1f4);
  border-bottom: 1px solid #d4dbe2;
}

.booking-month-shell .calendar-weekdays {
  gap: 0;
  padding: 0;
  background: #eef1f4;
  border-bottom: 1px solid #d4dbe2;
}

.booking-month-shell .calendar-weekdays span {
  padding: 10px 8px;
  border-right: 1px solid #d4dbe2;
  color: #5f6d7a;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.booking-month-shell .calendar-weekdays span:last-child {
  border-right: 0;
}

.booking-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  background: #d4dbe2;
}

.booking-month-day {
  min-height: 162px;
  padding: 10px 10px 12px;
  border-right: 1px solid #d4dbe2;
  border-bottom: 1px solid #d4dbe2;
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
}

.booking-month-day.is-selected {
  background: linear-gradient(180deg, #f8fbff, #eef5fb);
  box-shadow: inset 0 0 0 2px rgba(81, 118, 158, 0.18);
}

.booking-month-day-header {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  margin-bottom: 10px;
  border-radius: 999px;
  background: transparent;
  color: #47576a;
  box-shadow: none;
  font-weight: 700;
}

.booking-month-day.is-selected .booking-month-day-header {
  background: #0f67ff;
  color: #fff;
}

.booking-month-day-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-month-item {
  position: relative;
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: #ecf1f8;
  color: #1f2a36;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.booking-month-item strong,
.booking-month-item span {
  display: block;
}

.booking-month-item strong {
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.booking-month-item span {
  font-size: 0.92rem;
}

.booking-month-empty {
  color: #7b8874;
  font-size: 0.88rem;
}

.booking-month-item.is-single {
  background: #dff3cf;
  border-color: #badb9c;
  color: #285217;
}

.booking-month-item.is-family {
  background: #d9ecff;
  border-color: #b4d4f4;
  color: #1d466f;
}

.booking-month-item.is-birthday {
  background: #295f9d;
  border-color: #1f4e84;
  color: #fff;
}

.booking-month-item.is-groups {
  background: #2d6c48;
  border-color: #25573b;
  color: #fff;
}

.booking-month-item.is-team {
  background: #8f6bd3;
  border-color: #7553b8;
  color: #fff;
}

.booking-month-item.is-expired {
  background: #f0e7dc;
  border-color: #d2b89d;
  color: #6b4f31;
}

.booking-payment-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.booking-payment-indicator-icon {
  display: block;
  line-height: 1;
  transform: translateY(4px);
}

.booking-payment-indicator.is-paid {
  color: #1f6a2e;
}

.booking-payment-indicator.is-open {
  color: #92500d;
}

.booking-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: #edf5e5;
  color: #32511a;
  font-size: 0.85rem;
  font-weight: 700;
}

.booking-status-pill.is-expired {
  background: #f3e8d8;
  color: #80552b;
}

.booking-payment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-top: 6px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.booking-payment-pill.is-paid {
  background: #e8f6e7;
  color: #256b31;
}

.booking-payment-pill.is-open {
  background: #fff1de;
  color: #9a5a11;
}

@media (max-width: 540px) {
  .hero-panel {
    padding: 22px 18px;
  }

  .category-overview {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 280px;
  }

  .card {
    padding: 18px;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .calendar-nav {
    width: 100%;
  }

  .capacity-grid {
    grid-template-columns: 1fr;
  }

  .price-summary-panel {
    position: static;
    padding: 16px;
  }

  .price-breakdown-row {
    flex-direction: column;
    gap: 4px;
  }

  .price-breakdown-row strong {
    text-align: left;
  }

  .final-charge-grid {
    grid-template-columns: 1fr;
  }

  .mobile-total-bar {
    display: flex;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-direction: column;
  }

  .booking-month-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar-actions {
    flex-direction: column;
  }

  .admin-toolbar-actions button {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-task-grid,
  .payment-setup-cards,
  .admin-design-color-columns {
    grid-template-columns: 1fr;
  }
}

/* Rabattcodes im Admin */
.promo-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.promo-admin-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.promo-admin-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.promo-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.promo-admin-table th,
.promo-admin-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.promo-admin-table th {
  font-weight: 700;
}

.promo-delete-btn {
  padding: 6px 12px;
  min-height: 36px;
  border: 1px solid var(--warn);
  background: #fff;
  color: var(--warn);
  border-radius: var(--button-radius);
  cursor: pointer;
  font: inherit;
}

.promo-delete-btn:hover,
.promo-delete-btn:focus-visible {
  background: var(--warn-bg);
}

/* Rabattcode-Feld im Checkout */
.promo-code-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

.promo-code-input input {
  flex: 1;
  text-transform: uppercase;
}

#promoApplyBtn {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand-dark);
  border-radius: var(--button-radius);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

#promoApplyBtn:hover,
#promoApplyBtn:focus-visible {
  background: var(--bg-2);
}

.promo-status {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
}

.promo-status.is-ok {
  color: var(--brand-dark);
  font-weight: 600;
}

.promo-status.is-error {
  color: var(--warn);
}

/* Rechtshinweis + Links unter dem Buchen-Button (DSGVO Art. 13, § 5 DDG) */
.legal-consent {
  margin: 0.75rem 0 0.4rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text);
}

.legal-links {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
}

.legal-links a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--button-hover);
}

.legal-links:empty {
  display: none;
}

/* Live-Region bleibt dauerhaft im DOM; bei leerem Inhalt ausblenden, damit sie
   keinen Platz einnimmt (setStatus leert nur den Text statt hidden zu setzen). */
.message-box:empty {
  display: none;
}

/* On-Screen-Quittung im Erfolgs-Dialog */
.booking-success-number {
  margin: 0.25rem 0 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-dark);
}

.booking-success-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin: 0 0 0.9rem;
  text-align: left;
  font-size: 0.92rem;
}

.booking-success-summary dt {
  color: var(--text);
  margin: 0;
}

.booking-success-summary dd {
  margin: 0;
  text-align: right;
  color: var(--text);
}

.booking-success-summary dd.is-total {
  font-weight: 700;
}

.booking-success-bank {
  text-align: left;
  margin: 0 0 0.9rem;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.booking-success-bank-heading {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.booking-success-copy {
  margin-top: 0.6rem;
  padding: 8px 14px;
  min-height: 40px;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand-dark);
  border-radius: var(--button-radius);
  cursor: pointer;
  font: inherit;
}

.booking-success-copy:hover,
.booking-success-copy:focus-visible {
  background: var(--bg-2);
}

/* Bewegungsreduktion respektieren (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Mobile-Fix Kategorie-Kacheln
   Die 980px-Regel (2 Spalten) steht im Quelltext NACH der 540px-Regel
   (1 Spalte) und gewann daher auf Handys. Diese spaetere Regel stellt die
   Einspaltigkeit auf schmalen Displays wieder her und bricht lange Woerter um.
   ========================================================================== */
@media (max-width: 540px) {
  .category-overview {
    grid-template-columns: 1fr;
  }
  .category-card {
    min-height: 0;
  }
  .category-card-media {
    flex-basis: 150px;
  }
}
.category-card-title {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* ==========================================================================
   Embed-Modus: Tool laeuft in fremdem iframe (z. B. buchen.html der Homepage).
   Auf iOS ist position:fixed innerhalb eines iframes unzuverlaessig und fuehrt
   zu „verrutschenden" Inhalten. Im Embed bringen wir das Buchungs-Overlay in
   den normalen Dokumentfluss; die Inhaltshoehe wird per postMessage an die
   Elternseite gemeldet, die den iframe mitwachsen laesst (nur EIN Scroll).
   Aktiviert ueber die Klasse .embedded auf <html> (siehe app.js).
   ========================================================================== */
html.embedded body {
  min-height: 0;
}
html.embedded .container {
  padding: 16px;
}
html.embedded body.has-overlay {
  overflow: visible;
}
html.embedded .booking-overlay {
  position: static;
  inset: auto;
  z-index: auto;
  overflow: visible;
  padding: 0;
  background: none;
  backdrop-filter: none;
}
html.embedded .booking-panel {
  box-shadow: var(--card-shadow);
}
/* Bei offener Maske Uebersicht + Intro ausblenden - nur die Buchungsmaske zeigen */
html.embedded #categoryOverview[aria-hidden="true"] {
  display: none;
}
html.embedded body.has-overlay .hero-panel {
  display: none;
}
/* Fixe Gesamt-Leiste im Embed weglassen (fixed ist im iframe unzuverlaessig) */
html.embedded .mobile-total-bar {
  display: none !important;
}

/* ==========================================================================
   Mobile-Feinschliff: Produkt-Stepper + Kalender-Toolbar
   Bewusst am Dateiende, damit diese Regeln die frueheren 540px-Regeln
   (gestapelte Buttons, 1fr-Toolbar) per Quellreihenfolge ueberschreiben.
   ========================================================================== */
@media (max-width: 540px) {
  /* A) Produkt-Zeile: Stepper in eigene Zeile, damit '+' nicht abgeschnitten wird */
  .product-row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 8px;
  }
  .product-row label {
    min-width: 0;
  }
  .product-stepper {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  /* B) Kalender-Toolbar kompakt: Monat oben, darunter Zurueck / Heute / Weiter */
  .calendar-toolbar {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "month month month"
      "prev today next";
    gap: 8px;
  }
  .calendar-month {
    grid-area: month;
    font-size: 1.2rem;
  }
  #calendarPrev {
    grid-area: prev;
  }
  #calendarToday {
    grid-area: today;
  }
  #calendarNext {
    grid-area: next;
  }
  .calendar-nav {
    width: 100%;
    min-width: 0;
    padding: 10px 6px;
  }
  /* Tage etwas kompakter -> uebersichtlicher */
  .calendar-shell {
    padding: 10px;
  }
  .calendar-weekdays,
  .calendar-grid {
    gap: 5px;
  }
  .calendar-day {
    min-height: 46px;
  }
}
