/* ───────────────────────────────────────────────────────────────────────
   LEMONDRIVE Catering Konfigurator – Frontend Styles
   Brutalist black/white design matching Figma "COCKTAIL.CRAFT" widget
   ─────────────────────────────────────────────────────────────────────── */

/* ── Reset & base ──────────────────────────────────────────────────── */

.ld-catering-calculator {
  width: 100%;
}

.ld-catering-calculator *,
.ld-catering-calculator *::before,
.ld-catering-calculator *::after {
  box-sizing: border-box;
}

.ld-ccalc-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  color: #000;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

/* ── Progress nav ──────────────────────────────────────────────────── */

.ld-ccalc-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  border-bottom: 2px solid #000;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.ld-ccalc-steps button {
  background: none;
  border: none;
  color: #000;
  padding: 6px 0;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.ld-ccalc-steps button.is-active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.ld-ccalc-steps button:hover {
  opacity: 0.8;
}

/* ── Alert bar ─────────────────────────────────────────────────────── */

.ld-ccalc-alert {
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* ── Layout (main + sidebar) ───────────────────────────────────────── */

.ld-ccalc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
}

.ld-ccalc-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── Panels ────────────────────────────────────────────────────────── */

.ld-ccalc-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ld-ccalc-panel__intro h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ld-ccalc-sub {
  margin: 4px 0 0;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ── Section heads ─────────────────────────────────────────────────── */

.ld-ccalc-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #000;
  padding-bottom: 8px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ld-ccalc-section-head svg {
  flex-shrink: 0;
}

/* ── Form grid ─────────────────────────────────────────────────────── */

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

.ld-ccalc-grid--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ld-ccalc-grid label > span,
.ld-ccalc-toolbar label > span,
.ld-ccalc-panel label > span,
.ld-ccalc-address > span {
  display: block;
  margin-bottom: 6px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.5;
}

.ld-ccalc-grid input[type="text"],
.ld-ccalc-grid input[type="number"],
.ld-ccalc-grid input[type="datetime-local"],
.ld-ccalc-grid select,
.ld-ccalc-toolbar input,
.ld-ccalc-toolbar select,
.ld-ccalc-address input {
  width: 100%;
  border: 2px solid #000;
  border-radius: 7px;
  background: #fff;
  color: #000;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  transition: background 0.15s;
  outline: none;
}

.ld-ccalc-grid select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  /* Match input height for vertical text centering */
  box-sizing: border-box;
  height: 52px;
  line-height: 52px;
  padding-top: 0;
  padding-bottom: 0;
}

.ld-ccalc-grid select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ld-ccalc-grid input:focus,
.ld-ccalc-grid select:focus,
.ld-ccalc-toolbar input:focus,
.ld-ccalc-address input:focus {
  background: rgba(0, 0, 0, 0.03);
}

/* ── Time scroll widget ───────────────────────────────────────────── */

.ld-ccalc-time-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #000;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.ld-ccalc-time-scroll.is-empty {
  border-color: rgba(0, 0, 0, 0.2);
  opacity: 0.4;
}

.ld-ccalc-time-scroll__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 24px;
  border: none;
  background: transparent;
  color: #000;
  font-size: 10px;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
  line-height: 1;
}

.ld-ccalc-time-scroll__arrow:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.06);
}

.ld-ccalc-time-scroll__arrow:disabled {
  opacity: 0.15;
  cursor: not-allowed;
}

.ld-ccalc-time-scroll__display {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 16px;
  font-weight: 700;
  padding: 4px 16px;
  white-space: nowrap;
}

/* Slider */

.ld-ccalc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ld-ccalc-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.ld-ccalc-slider-top span {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.5;
}

.ld-ccalc-slider-top strong {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 24px;
}

.ld-ccalc-slider-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  border: none;
  padding: 0;
  cursor: pointer;
}

.ld-ccalc-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

.ld-ccalc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  opacity: 0.35;
  text-transform: uppercase;
}

/* Duration buttons */

.ld-ccalc-durations {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ld-ccalc-durations button {
  flex: 1;
  border: 2px solid #000;
  border-radius: 7px;
  background: #fff;
  color: #000;
  padding: 12px 4px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.ld-ccalc-durations button.is-active {
  background: #000;
  color: #fff;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
  transform: translate(-2px, -2px);
}

.ld-ccalc-durations button:hover:not(.is-active) {
  background: rgba(0, 0, 0, 0.03);
}

/* Staff counter */

.ld-ccalc-staff {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(0, 0, 0, 0.03);
  padding: 24px;
  border-radius: 7px;
}

.ld-ccalc-counter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ld-ccalc-counter button {
  width: 48px;
  height: 48px;
  border: 2px solid #000;
  border-radius: 7px;
  background: #fff;
  color: #000;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.ld-ccalc-counter button:hover {
  background: #000;
  color: #fff;
}

.ld-ccalc-counter > div {
  text-align: center;
  width: 60px;
}

.ld-ccalc-counter > div strong {
  display: block;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 36px;
  line-height: 1;
}

.ld-ccalc-counter > div small {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.5;
}

.ld-ccalc-hint {
  font-size: 14px;
  opacity: 0.55;
  line-height: 1.5;
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
}

.ld-ccalc-hint strong {
  color: #000;
  opacity: 1;
}

/* ── Template cards ────────────────────────────────────────────────── */

.ld-ccalc-templates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ld-ccalc-tpl {
  position: relative;
  width: 100%;
  text-align: left;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 7px;
  background: #fff;
  color: #000;
  padding: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.ld-ccalc-tpl:hover:not(.is-selected) {
  border-color: #000;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
  transform: translate(-2px, -2px);
}

.ld-ccalc-tpl.is-selected {
  border-color: #000;
  background: #000;
  color: #fff;
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
  transform: translate(-3px, -3px);
}

.ld-ccalc-tpl__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ld-ccalc-tpl__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ld-ccalc-tpl__title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-ccalc-tpl__head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ld-ccalc-tpl__head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.ld-ccalc-tpl__body > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.6;
}

.ld-ccalc-tpl.is-selected .ld-ccalc-tpl__body > p {
  opacity: 0.7;
}

.ld-ccalc-tpl__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-ccalc-tpl__body ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ld-ccalc-tpl__body ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.ld-ccalc-tpl__foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ld-ccalc-tpl.is-selected .ld-ccalc-tpl__foot {
  border-color: rgba(255, 255, 255, 0.2);
}

.ld-ccalc-tpl__foot > div small {
  display: block;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.5;
}

.ld-ccalc-tpl__foot > div strong {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 26px;
  font-weight: 800;
}

.ld-ccalc-chip {
  display: inline-block;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.ld-ccalc-tpl.is-selected .ld-ccalc-chip {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ── Step 2: Cocktail picker ───────────────────────────────────────── */

.ld-ccalc-step2-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-left: 4px solid #000;
  padding-left: 16px;
}

.ld-ccalc-step2-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.ld-ccalc-badge {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 7px;
  white-space: nowrap;
}

.ld-ccalc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.03);
  padding: 16px;
  border-radius: 7px;
}

.ld-ccalc-toolbar__search {
  flex: 1;
  min-width: 200px;
}

.ld-ccalc-viewmode {
  display: inline-flex;
  gap: 6px;
  border: 2px solid #000;
  border-radius: 7px;
  padding: 3px;
  background: #fff;
}

.ld-ccalc-viewmode button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #000;
  padding: 8px 12px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.ld-ccalc-viewmode button.is-active {
  background: #000;
  color: #fff;
}

.ld-ccalc-toolbar input {
  background: transparent;
  border: none;
  border-bottom: 2px solid #000;
  border-radius: 0;
  padding: 8px 0;
  font-size: 15px;
}

.ld-ccalc-toolbar select {
  background: transparent;
  border: none;
  border-bottom: 2px solid #000;
  border-radius: 0;
  padding: 8px 0;
  font-size: 15px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Cards grid */

.ld-ccalc-cards-scroll {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 6px;
}

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

.ld-ccalc-cards.is-list {
  grid-template-columns: minmax(0, 1fr);
}

.ld-ccalc-cards.is-list .ld-ccalc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon info sel";
  align-items: start;
  column-gap: 16px;
}

.ld-ccalc-cards.is-list .ld-ccalc-card__icon {
  grid-area: icon;
}

.ld-ccalc-cards.is-list .ld-ccalc-card__info {
  grid-area: info;
}

.ld-ccalc-cards.is-list .ld-ccalc-card__sel {
  position: static;
  grid-area: sel;
  opacity: 1;
  align-self: start;
}

.ld-ccalc-card {
  position: relative;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 7px;
  background: #fff;
  color: #000;
  width: 100%;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
}

.ld-ccalc-card:hover:not(.is-selected):not(.is-disabled) {
  border-color: #000;
}

.ld-ccalc-card.is-selected {
  border-color: #000;
  background: #000;
  color: #fff;
}

.ld-ccalc-card.is-disabled {
  opacity: 0.25;
  cursor: not-allowed;
  filter: grayscale(1);
}

.ld-ccalc-card__icon {
  display: inline-flex;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 7px;
  align-self: flex-start;
}

.ld-ccalc-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ld-ccalc-card__meta span {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.5;
}

.ld-ccalc-card__info h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #000;
}

.ld-ccalc-card.is-selected .ld-ccalc-card__info h4 {
  color: #000;
}

.ld-ccalc-card__info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.6;
}

.ld-ccalc-card__ingredients {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.65;
}

.ld-ccalc-card.is-selected .ld-ccalc-card__info p {
  opacity: 0.7;
}

.ld-ccalc-card__tags {
  display: none;
}

.ld-ccalc-card__sel {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 7px;
  opacity: 0;
  transition: opacity 0.2s;
  background: #000;
  color: #fff;
}

.ld-ccalc-card:hover .ld-ccalc-card__sel,
.ld-ccalc-card.is-selected .ld-ccalc-card__sel {
  opacity: 1;
}

.ld-ccalc-card.is-selected .ld-ccalc-card__sel {
  background: #fff;
  color: #000;
}

/* ── Step 3: Offer ─────────────────────────────────────────────────── */

.ld-ccalc-brief {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(0, 0, 0, 0.03);
  padding: 20px;
  border-radius: 7px;
}

.ld-ccalc-brief > div small {
  display: block;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.35;
}

.ld-ccalc-brief > div strong {
  font-size: 14px;
}

/* Brand selection */

.ld-ccalc-brands {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ld-ccalc-brands__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 2px solid #000;
  border-radius: 7px;
  background: #fff;
  color: #000;
  padding: 12px 16px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.ld-ccalc-brands__toggle:hover {
  background: rgba(0, 0, 0, 0.03);
}

.ld-ccalc-brands__toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ld-ccalc-brands__toggle-indicator {
  font-size: 18px;
  line-height: 1;
}

.ld-ccalc-brands__content[hidden] {
  display: none;
}

.ld-ccalc-brand-row {
  border: 2px solid #000;
  border-radius: 7px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.ld-ccalc-brand-row__label small {
  display: block;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.35;
}

.ld-ccalc-brand-row__label strong {
  font-size: 18px;
  text-transform: uppercase;
}

.ld-ccalc-brand-row__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ld-ccalc-brand-btn {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 7px;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: all 0.15s;
}

.ld-ccalc-brand-btn:hover:not(.is-active) {
  border-color: #000;
}

.ld-ccalc-brand-btn.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Menu overview */

.ld-ccalc-menu-overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ld-ccalc-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ld-ccalc-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 7px;
}

.ld-ccalc-menu-item strong {
  font-size: 12px;
  text-transform: uppercase;
}

.ld-ccalc-menu-item span {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 9px;
  text-transform: uppercase;
  opacity: 0.4;
}

/* Event address */

.ld-ccalc-address {
  display: block;
}

/* Invoice panel */

.ld-ccalc-invoice {
  background: #000;
  color: #fff;
  padding: 32px;
  border-radius: 7px;
  border: 2px solid #000;
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ld-ccalc-invoice__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 14px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.ld-ccalc-invoice__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
}

.ld-ccalc-invoice__lines > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ld-ccalc-invoice__lines > div span {
  opacity: 0.6;
  text-transform: uppercase;
}

.ld-ccalc-invoice__lines > div.is-total {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 16px;
  margin-top: 8px;
}

.ld-ccalc-invoice__lines > div.is-total strong {
  font-size: 32px;
}

.ld-ccalc-invoice > small {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  opacity: 0.35;
  text-transform: uppercase;
  text-align: right;
}

.ld-ccalc-invoice__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-ccalc-invoice__actions button {
  width: 100%;
  padding: 14px;
  border: 2px solid #fff;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.ld-ccalc-invoice__actions button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.ld-ccalc-invoice__actions button.is-dark {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.ld-ccalc-invoice__actions button.is-dark:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.88);
}

.ld-ccalc-invoice__actions button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── Actions bar ───────────────────────────────────────────────────── */

.ld-ccalc-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
}

.ld-ccalc-actions.is-between {
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #000;
  padding-top: 20px;
}

.ld-ccalc-actions.is-end {
  justify-content: flex-end;
  padding-top: 24px;
}

.ld-ccalc-actions.is-start {
  justify-content: flex-start;
}

.ld-ccalc-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #000;
  border-radius: 7px;
  background: #fff;
  color: #000;
  padding: 12px 24px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.ld-ccalc-actions button:hover:not(:disabled) {
  background: #000;
  color: #fff;
}

.ld-ccalc-actions button.is-ghost {
  border: none;
  background: none;
  padding: 12px 4px;
  font-weight: 700;
}

.ld-ccalc-actions button.is-ghost:hover {
  background: none;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ld-ccalc-actions button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── Sidebar ───────────────────────────────────────────────────────── */

.ld-ccalc-side {
  align-self: start;
}

.ld-ccalc-side__inner {
  border: 2px solid #000;
  border-radius: 7px;
  background: #fff;
  padding: 24px;
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ld-ccalc-side h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-ccalc-side__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ld-ccalc-side__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
}

.ld-ccalc-side__rows > div:last-child {
  border-bottom: 0;
}

.ld-ccalc-side__rows > div span {
  opacity: 0.5;
  text-transform: uppercase;
}

.ld-ccalc-side__cocktails {
  flex-direction: column !important;
  gap: 6px !important;
}

.ld-ccalc-side__cocktails > span {
  opacity: 0.5;
  text-transform: uppercase;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
}

.ld-ccalc-side__cocktails em {
  font-style: italic;
  opacity: 0.35;
  font-size: 12px;
}

.ld-ccalc-side__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ld-ccalc-side__tags span {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 9px;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid #000;
  border-radius: 7px;
  opacity: 1 !important;
}

.ld-ccalc-side__estimate {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ld-ccalc-side__estimate small {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.35;
}

.ld-ccalc-side__estimate strong {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 28px;
  font-weight: 800;
}

/* ── Booked confirmation ───────────────────────────────────────────── */

.ld-ccalc-booked {
  max-width: 480px;
  margin: 60px auto;
  border: 2px solid #000;
  border-radius: 7px;
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ld-ccalc-booked__icon svg {
  width: 56px;
  height: 56px;
}

.ld-ccalc-booked h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.ld-ccalc-booked p {
  margin: 0;
  opacity: 0.6;
  line-height: 1.6;
}

.ld-ccalc-booked button {
  width: 100%;
  border: 2px solid #000;
  border-radius: 7px;
  background: #fff;
  color: #000;
  padding: 14px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.ld-ccalc-booked button:hover {
  background: #000;
  color: #fff;
}

/* ── Empty state ───────────────────────────────────────────────────── */

.ld-ccalc-empty {
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 7px;
  padding: 40px 20px;
  text-align: center;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.4;
}


/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .ld-ccalc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ld-ccalc-side__inner {
    position: static;
  }

  .ld-ccalc-templates {
    grid-template-columns: minmax(0, 1fr);
  }

  .ld-ccalc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ld-ccalc-cards-scroll {
    max-height: 560px;
  }

  .ld-ccalc-brief {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ld-ccalc-shell {
    padding: 0 12px 48px;
  }

  .ld-ccalc-steps {
    flex-direction: column;
    gap: 2px;
  }

  .ld-ccalc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ld-ccalc-grid--3col {
    grid-template-columns: minmax(0, 1fr);
  }

  .ld-ccalc-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .ld-ccalc-cards-scroll {
    max-height: 480px;
    padding-right: 0;
  }

  .ld-ccalc-menu-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ld-ccalc-brief {
    grid-template-columns: repeat(2, 1fr);
  }

  .ld-ccalc-staff {
    flex-direction: column;
    gap: 16px;
  }

  .ld-ccalc-hint {
    padding-left: 0;
    border-left: none;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .ld-ccalc-actions.is-between {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ld-ccalc-actions button {
    width: 100%;
    justify-content: center;
  }

  .ld-ccalc-invoice {
    padding: 20px;
  }

  .ld-ccalc-invoice__lines > div.is-total strong {
    font-size: 24px;
  }

  .ld-ccalc-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   STAFF RECIPE LIBRARY – ld-recipe-finder[data-mode="staff"]
   ═══════════════════════════════════════════════════════════════════════ */

.ld-recipe-finder {
  width: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #000;
}

.ld-recipe-finder *,
.ld-recipe-finder *::before,
.ld-recipe-finder *::after {
  box-sizing: border-box;
}

/* ── Loading ─────────────────────────────────────────────────────────── */

.ld-rf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 24px;
  color: #666;
}

.ld-rf-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: #000;
  border-radius: 50%;
  animation: ld-rf-spin 0.8s linear infinite;
}

@keyframes ld-rf-spin {
  to { transform: rotate(360deg); }
}

/* ── Error / Gate ──────────────────────────────────────────────────── */

.ld-rf-error,
.ld-rf-gate {
  padding: 48px 24px;
  text-align: center;
  color: #555;
}

.ld-rf-gate {
  max-width: 480px;
  margin: 0 auto;
}

.ld-rf-gate__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0.35;
}

.ld-rf-gate h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.ld-rf-empty {
  padding: 48px 0;
  text-align: center;
  color: #888;
  font-style: italic;
}

/* ── Library wrapper ───────────────────────────────────────────────── */

.ld-rf-library {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ── Toolbar ───────────────────────────────────────────────────────── */

.ld-rf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 0 16px;
  border-bottom: 2px solid #000;
  margin-bottom: 24px;
}

.ld-rf-search {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 180px;
  background: #f4f4f4;
  border: 1.5px solid #000;
}

.ld-rf-search__input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: #000;
}

.ld-rf-search__input::placeholder {
  color: #aaa;
}

/* Tags-Row: Toggle-Button (mobil) + Tag-Liste nebeneinander */
.ld-rf-tags-row {
  display: contents; /* Desktop: Tags-Row unsichtbar, Kinder fließen normal in Toolbar */
}

/* Toggle-Button: nur mobil sichtbar */
.ld-rf-tags-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f4f4f4;
  border: 1.5px solid #000;
  font-size: 12px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: #000;
  white-space: nowrap;
}

.ld-rf-tags-toggle__chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.ld-rf-tags-toggle[aria-expanded="true"] .ld-rf-tags-toggle__chevron {
  transform: rotate(180deg);
}

.ld-rf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ld-rf-tag {
  padding: 5px 12px;
  background: transparent;
  border: 1.5px solid #ccc;
  font-size: 12px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: #666;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.ld-rf-tag:hover {
  border-color: #000;
  color: #000;
}

.ld-rf-tag.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.ld-rf-count {
  margin-left: auto;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.ld-rf-toolbar .ld-rf-btn {
  flex-shrink: 0;
}

/* ── Recipe Grid ───────────────────────────────────────────────────── */

.ld-rf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Recipe Card ───────────────────────────────────────────────────── */

.ld-rf-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  color: #000;
  font-family: inherit;
}

.ld-rf-card:hover {
  border-color: #000;
  box-shadow: 4px 4px 0 #000;
  transform: translate(-2px, -2px);
}

.ld-rf-card--static {
  cursor: default;
}

.ld-rf-card--static:hover {
  transform: none;
  box-shadow: none;
  border-color: #e0e0e0;
}

.ld-rf-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  opacity: 0.6;
}

.ld-rf-card__icon svg,
.ld-rf-card__icon .ld-rf-glass-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ld-rf-card__body {
  flex: 1;
  min-width: 0;
}

.ld-rf-card__name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.ld-rf-card__ings {
  margin: 0 0 10px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ld-rf-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

/* ── Chips ─────────────────────────────────────────────────────────── */

.ld-rf-chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #f0f0f0;
  color: #444;
  border: 1px solid #ddd;
}

.ld-rf-chip--glass {
  background: #e8f4f8;
  border-color: #b0d0e0;
  color: #2a6070;
}

.ld-rf-chip--ice {
  background: #eaf0ff;
  border-color: #b0c4f0;
  color: #2040a0;
}

.ld-rf-chip--abv {
  background: #fff3e8;
  border-color: #f0c090;
  color: #804020;
}

.ld-rf-chip--tag {
  background: #f4f0ff;
  border-color: #c8b0f0;
  color: #4020a0;
}

.ld-rf-chip--mine {
  background: #111;
  border-color: #111;
  color: #fff;
}

.ld-rf-chip--draft {
  background: #fff3cd;
  border-color: #e0c36a;
  color: #6b5300;
}

.ld-rf-chip--public {
  background: #e6f6ea;
  border-color: #8fce9e;
  color: #1f6b34;
}

/* ── Detail View ───────────────────────────────────────────────────── */

.ld-rf-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.ld-rf-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  border-bottom: 2px solid #000;
  margin-bottom: 28px;
}

.ld-rf-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: #000;
  padding: 8px 0;
  transition: opacity 0.15s;
}

.ld-rf-back:hover {
  opacity: 0.6;
}

.ld-rf-detail__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

.ld-rf-detail__icon svg,
.ld-rf-detail__icon .ld-rf-glass-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.ld-rf-detail__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ld-rf-detail__name {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}

.ld-rf-detail__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.ld-rf-detail__price-value {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #000;
}

.ld-rf-detail__price--computed .ld-rf-detail__price-value {
  color: #555;
}

.ld-rf-detail__price-hint {
  font-size: 10px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaa;
  margin-top: 3px;
}

.ld-rf-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.ld-rf-detail__desc {
  font-size: 15px;
  color: #444;
  margin: 0 0 28px;
  max-width: 640px;
  line-height: 1.6;
}

/* ── Two-column layout für Zutaten + Zubereitung ─────────────────── */

.ld-rf-detail__cols {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 28px;
}

/* ── Sections ──────────────────────────────────────────────────────── */

.ld-rf-detail__section {
  margin-bottom: 28px;
}

.ld-rf-detail__section h2 {
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

/* ── Zutaten-Liste ─────────────────────────────────────────────────── */

.ld-rf-ing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-rf-ing-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px dotted #e8e8e8;
  padding-bottom: 8px;
}

.ld-rf-ing-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ld-rf-ing-list__qty {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.ld-rf-ing-list__name {
  color: #000;
  font-weight: 500;
  flex: 1;
  text-align: right;
}

/* ── Zubereitungs-Schritte ─────────────────────────────────────────── */

.ld-rf-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ld-rf-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: step-counter;
  font-size: 14px;
  line-height: 1.55;
}

.ld-rf-steps li::before {
  content: counter(step-counter);
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Schritt-Content (Badge + Text, beides in Grid-Spalte 2) ────────── */

.ld-rf-step__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ld-rf-step__badge {
  display: inline-block;
  align-self: flex-start;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.ld-rf-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #444;
}

/* ── Garnish-Liste ─────────────────────────────────────────────────── */

.ld-rf-garnish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ld-rf-garnish-list li {
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #333;
}

.ld-rf-garnish-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  font-size: 8px;
  color: #bbb;
  top: 3px;
}

/* ── History / Notes ───────────────────────────────────────────────── */

.ld-rf-detail__section--history p,
.ld-rf-detail__section--notes p {
  font-size: 14px;
  line-height: 1.65;
  color: #444;
  max-width: 680px;
  margin: 0;
}

.ld-rf-detail__section--notes {
  background: #fffbe8;
  border: 1px solid #f0e080;
  padding: 16px 20px;
}

.ld-rf-detail__section--notes h2 {
  border-bottom-color: #f0e080;
}

/* ── Staff edit / notes ───────────────────────────────────────────── */

.ld-rf-detail__actions,
.ld-rf-notes-bar,
.ld-rf-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}

.ld-rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.ld-rf-btn:hover {
  background: #f4f4f4;
}

.ld-rf-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ld-rf-btn--primary {
  background: #000;
  color: #fff;
}

.ld-rf-btn--primary:hover {
  background: #222;
}

.ld-rf-btn--danger {
  border-color: #b00020;
  color: #b00020;
}

.ld-rf-btn--ghost {
  padding: 4px 8px;
  border-color: #ccc;
  color: #666;
}

.ld-rf-notes-input,
.ld-rf-form input[type="text"],
.ld-rf-form input[type="number"],
.ld-rf-form select,
.ld-rf-form textarea {
  width: 100%;
  border: 1.5px solid #000;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  color: #000;
}

.ld-rf-notes-input {
  margin-bottom: 12px;
}

.ld-rf-form-msg,
.ld-rf-form-hint {
  font-size: 13px;
  color: #666;
}

.ld-rf-form-error {
  color: #b00020;
  font-size: 14px;
}

.ld-rf-edit {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.ld-rf-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ld-rf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.ld-rf-field span {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}

.ld-rf-fieldset {
  border: 1.5px solid #e0e0e0;
  padding: 16px;
  margin: 0;
}

.ld-rf-fieldset legend {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 6px;
}

.ld-rf-checkgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ld-rf-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-size: 13px;
}

.ld-rf-ing-rows,
.ld-rf-step-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.ld-rf-ing-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 90px 90px auto;
  gap: 8px;
  align-items: center;
}

.ld-rf-step-edit {
  border: 1px solid #e8e8e8;
  padding: 12px;
}

.ld-rf-step-edit__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ld-rf-taste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

@media (max-width: 540px) {
  .ld-rf-ing-row {
    grid-template-columns: 1fr 1fr auto;
  }

  .ld-rf-ing-row select:first-child {
    grid-column: 1 / -1;
  }
}

/* ── Responsive ────────────────────────────────────────────────────── */

/* Tablet: kleinere Kacheln */
@media (max-width: 760px) {
  .ld-rf-detail__cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ld-rf-detail__name {
    font-size: 24px;
  }

  .ld-rf-detail__price-value {
    font-size: 20px;
  }

  .ld-rf-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .ld-rf-toolbar {
    gap: 10px;
  }
}

/* Mobile: Listenansicht + einklappbare Tags */
@media (max-width: 540px) {
  /* Toolbar: Suchfeld + Toggle-Button in einer Zeile, Tags darunter aufklappbar */
  .ld-rf-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0 12px;
  }

  .ld-rf-search {
    flex: 1 1 0;
    min-width: 0;
  }

  /* Toggle-Button auf Mobil einblenden */
  .ld-rf-tags-toggle {
    display: flex;
  }

  /* Tags-Row als Block, damit Tags in eigener Zeile erscheinen */
  .ld-rf-tags-row {
    display: contents;
  }

  /* Tags standardmäßig verborgen, per .is-open sichtbar */
  .ld-rf-tags {
    display: none;
    flex-basis: 100%;  /* volle Breite wenn sichtbar */
    order: 10;         /* nach Suchfeld + Toggle */
    padding: 8px 0 4px;
    border-top: 1px solid #e0e0e0;
    margin-top: 4px;
  }

  .ld-rf-tags.is-open {
    display: flex;
  }

  .ld-rf-count {
    order: 11;
    flex-basis: 100%;
    margin-left: 0;
    padding-top: 4px;
  }

  .ld-rf-toolbar .ld-rf-btn[data-rf-action="new-recipe"] {
    order: 12;
    flex-basis: 100%;
  }

  /* Kein Grid – Listenansicht */
  .ld-rf-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Horizontale Listenkarte */
  .ld-rf-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1.5px solid #e0e0e0;
    border-radius: 0;
    transform: none !important;
    box-shadow: none !important;
  }

  .ld-rf-card:hover {
    background: #f9f9f9;
    border-color: #e0e0e0;
    box-shadow: none;
    transform: none;
  }

  .ld-rf-card__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-bottom: 0;
    opacity: 0.5;
  }

  .ld-rf-card__icon svg,
  .ld-rf-card__icon .ld-rf-glass-img {
    width: 28px;
    height: 28px;
  }

  .ld-rf-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .ld-rf-card__name {
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ld-rf-card__ings {
    font-size: 11px;
    margin: 0;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ld-rf-card__chips {
    gap: 4px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .ld-rf-chip {
    font-size: 9px;
    padding: 2px 5px;
  }

  /* Pfeil als Listenelement-Indikator */
  .ld-rf-card::after {
    content: "›";
    margin-left: auto;
    font-size: 22px;
    color: #ccc;
    flex-shrink: 0;
    line-height: 1;
  }

  /* Erstes Karten-Element bekommt Trennlinie oben */
  .ld-rf-grid-wrap .ld-rf-card:first-child {
    border-top: 1.5px solid #e0e0e0;
  }

  /* Grid-Wrap: leichter Abstand oben */
  .ld-rf-grid-wrap {
    margin-top: 8px;
  }
}

/* ── Course QR overlay ─────────────────────────────────────────────── */

.ld-rf-course {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.ld-rf-course[hidden] {
  display: none;
}

.ld-rf-course__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.ld-rf-course__panel {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 4vh auto;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  padding: 24px 20px 28px;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.ld-rf-course__close {
  float: right;
  border: 0;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.ld-rf-course__tier,
.ld-rf-course__timer {
  margin: 0 0 8px;
  font-weight: 600;
}

.ld-rf-course__qr {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.ld-rf-course__url {
  word-break: break-all;
  font-size: 12px;
}

.ld-rf-course__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.ld-rf-course__tiers {
  display: grid;
  gap: 8px;
}

.ld-rf-course__tier-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.ld-rf-course__tier-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ld-rf-guest-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.ld-rf-guest-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.ld-rf-guest-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}

.ld-rf-library--guest .ld-rf-course__timer {
  margin: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #444;
}

.ld-rf-round-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 2px solid #000;
  scrollbar-width: none;
}

.ld-rf-round-tabs::-webkit-scrollbar {
  display: none;
}

.ld-rf-round-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 12px 16px 14px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.ld-rf-round-tab:hover {
  color: #000;
}

.ld-rf-round-tab.is-active {
  color: #000;
}

.ld-rf-round-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #000;
}

.ld-rf-round-tab__count {
  font-size: 10px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0;
}

.ld-rf-round-tab.is-active .ld-rf-round-tab__count {
  color: #666;
}

.ld-rf-round-panel {
  min-height: 120px;
}

.ld-rf-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-rf-events__item {
  margin: 0;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}

.ld-rf-events__item:hover {
  background: #fff;
  color: #000;
}

.ld-rf-events__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.ld-rf-events__meta {
  font-size: 14px;
  line-height: 1.4;
}

.ld-rf-events__cta {
  flex-shrink: 0;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ld-rf-gift-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 20px;
  border: 2px solid #000;
  border-radius: 7px;
}

.ld-rf-gift-cta h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.ld-rf-gift-cta p {
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

.ld-rf-gift-cta .ld-rf-btn {
  flex-shrink: 0;
  text-decoration: none;
}

@media (max-width: 540px) {
  .ld-rf-events__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ld-rf-gift-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ld-rf-round {
  margin-bottom: 28px;
}

.ld-rf-round__title {
  margin: 0 0 12px;
  font-size: 18px;
}

body.ld-course-access-page {
  margin: 0;
  background: #fff;
}

body.ld-course-access-page .majc-main-wrapper,
body.ld-course-access-page .majc-toggle-button,
body.ld-course-access-page .majc-cart-popup,
body.ld-course-access-page [id^="majc-main-wrapper-"] {
  display: none !important;
}

body.ld-course-access-page .ld-recipe-finder {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

@media (max-width: 540px) {
  .ld-rf-guest-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .ld-rf-round-tab {
    flex: 0 0 auto;
  }
}
