/* Tasting-Konfigurator: baut auf /styles.css auf (dunkler Grund, Kupfer-Akzent) */
.kf-head { padding: clamp(40px, 6vw, 72px) 0 8px; }
.kf-head h1 { font-size: clamp(1.9rem, 4.8vw, 3rem); text-wrap: balance; max-width: 18em; }
.kf-body { padding: 24px 0 clamp(64px, 9vw, 104px); }
.kf-grid[hidden], .kf-head[hidden] { display: none; }
.kf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }

.kf-hp { position: absolute; left: -9999px; }
.kf-form { display: grid; gap: 18px; min-width: 0; }
.kf-step { margin: 0; border: 0; padding: 24px; background: var(--card); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; display: grid; gap: 14px; }
.kf-step[hidden] { display: none; }
.kf-step legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-weight: 800; font-size: 1.12rem; display: flex; align-items: center; gap: 12px; }
.kf-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-grad); color: var(--on-accent); font-size: 0.85rem; font-weight: 900; flex: none; }

.kf-choices { display: grid; gap: 12px; }
.kf-choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kf-choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kf-choice { position: relative; cursor: pointer; display: flex; }
.kf-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kf-choice > span { flex: 1; display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background .15s; }
.kf-choice strong { font-size: 1rem; }
.kf-choice small, .kf-check small { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.kf-choice input:checked + span { box-shadow: inset 0 0 0 2px var(--gold); background: rgba(var(--accent-rgb), 0.1); }
.kf-choice input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.kf-choice[hidden] { display: none; }

.kf-row { display: flex; gap: 14px; align-items: flex-end; }
.kf-row.wrap-row { flex-wrap: wrap; }
.kf-row.wrap-row > .kf-field { flex: 1 1 200px; }
.kf-field { display: grid; gap: 6px; min-width: 0; }
.kf-field[hidden] { display: none; }
.kf-field > span, .kf-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; margin: 0; }
.kf-label small { font-weight: 500; }
.kf-field input, .kf-field select, .kf-field textarea, .kf-gaeste input, .kf-buch input {
  font: inherit; font-size: 1rem; color: var(--text); background: #0f0f0f; border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; color-scheme: dark;
}
.kf-field textarea { resize: vertical; min-height: 110px; }
.kf-field input:focus, .kf-field select:focus, .kf-field textarea:focus, .kf-gaeste input:focus, .kf-buch input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.kf-field input[aria-invalid="true"], .kf-consent input[aria-invalid="true"] + span { border-color: #e2654f; box-shadow: 0 0 0 1px #e2654f; }
.kf-plz { flex: 0 0 160px; }
.kf-plz input { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.kf-zone { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.kf-zone strong { color: var(--gold-hi); }
.kf-zone.bad strong { color: #f0957f; }

.kf-station { display: grid; gap: 14px; }
.kf-station[hidden] { display: none; }

.kf-gaeste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kf-gaeste input { width: 96px; text-align: center; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.kf-gaeste input::-webkit-outer-spin-button, .kf-gaeste input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kf-pm { width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--card-2); color: var(--gold-hi); font-size: 1.5rem; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.kf-pm:hover { background: rgba(var(--accent-rgb), .14); }
.kf-hint { color: var(--muted); font-size: 0.88rem; margin: 0; }
.kf-hint.warn { color: #f0b27f; }

.kf-extras { display: grid; gap: 10px; }
.kf-check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.kf-check[hidden], .kf-pairing[hidden] { display: none; }
.kf-check > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.kf-check input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); flex: none; cursor: pointer; }
.kf-buch { align-items: center; cursor: default; }
.kf-stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.kf-buch .kf-pm { width: 40px; height: 40px; font-size: 1.25rem; }
.kf-buch input { width: 56px; min-height: 40px; padding: 6px 4px; text-align: center; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.kf-buch input::-webkit-outer-spin-button, .kf-buch input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kf-wish { background: transparent; }
.kf-consent { background: transparent; box-shadow: none; padding: 4px 0; }
.kf-pairing { padding: 14px 16px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; }
.kf-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kf-seg label { position: relative; cursor: pointer; display: flex; }
.kf-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kf-seg label > span { flex: 1; display: block; text-align: center; padding: 13px 16px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; line-height: 1.3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.kf-seg input:checked + span { background: var(--gold-grad); color: var(--on-accent); box-shadow: none; }
.kf-seg input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.kf-seg input:disabled + span { opacity: .4; }

.kf-error { margin: 0; color: #f0957f; font-weight: 600; }
.kf-submit { width: 100%; }

/* Zusammenfassung */
.kf-sum { position: sticky; top: 90px; }
.kf-sum-card { background: linear-gradient(180deg, #1f1f1f, #171717); border-radius: var(--radius); padding: 24px; box-shadow: inset 0 0 0 1px var(--gold-line), 0 24px 60px -30px rgba(var(--glow), .45); }
.kf-sum-title { margin: 0 0 12px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.kf-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.kf-lines li { display: flex; justify-content: space-between; gap: 12px; }
.kf-lines li span { color: var(--muted); min-width: 0; }
.kf-lines li b { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.kf-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.kf-total span { font-weight: 700; }
.kf-total strong { font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: right; }
.kf-total.range { flex-wrap: wrap; }
.kf-total.range strong { font-size: 1.3rem; }
.kf-pp { margin: 2px 0 0; text-align: right; color: var(--muted); font-size: 0.86rem; }
.kf-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.84rem; color: #f0c9a6; }
.kf-notes:empty { display: none; }
.kf-call { margin-top: 16px; padding: 14px; border-radius: 12px; background: rgba(var(--accent-rgb), .1); box-shadow: inset 0 0 0 1px var(--gold-line); font-size: 0.88rem; }
.kf-call p { margin: 0 0 12px; }
.kf-call .btn { width: 100%; }
.kf-fine { margin: 16px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.kf-bar { display: none; }
.kf-end { padding: 22px; border-radius: 16px; background: linear-gradient(180deg, #1f1f1f, #171717); box-shadow: inset 0 0 0 1px var(--gold-line), 0 24px 60px -30px rgba(var(--glow), .45); }
.kf-lines li.sel span { color: var(--text); }
.kf-lines li.sub { margin-top: -6px; }
.kf-lines li.sub span { padding-left: 12px; font-size: 0.84rem; color: var(--muted); }
.kf-lines li b:empty { display: none; }
.kf-lines li.sel + li:not(.sel) { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .kf-grid { grid-template-columns: minmax(0, 1fr); }
  .kf-choices.three { grid-template-columns: minmax(0, 1fr); }
  .kf-body { padding-bottom: 120px; }
  .kf-sum { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30; padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
  .kf-sum-card { display: none; max-height: 70vh; overflow: auto; margin-bottom: 8px; pointer-events: auto; }
  .kf-sum.open .kf-sum-card { display: block; }
  .kf-bar { pointer-events: auto; display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px; border: 0; border-radius: 16px; background: var(--gold-grad); color: var(--on-accent); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 14px 40px -12px rgba(0,0,0,.8); }
  .kf-bar strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
  .kf-bar span::after { content: " ▴"; }
  .kf-sum.open .kf-bar span::after { content: " ▾"; }
}
@media (max-width: 560px) {
  .kf-choices.two { grid-template-columns: minmax(0, 1fr); }
  .kf-step { padding: 20px 16px; }
  .kf-row { flex-wrap: wrap; }
  .kf-plz { flex: 1 1 100%; }
}

/* Fehlende Angaben */
.kf-step.kf-missing { box-shadow: inset 0 0 0 2px #e2654f; }
.kf-step.kf-missing legend::after { content: "Bitte ausfüllen"; margin-left: auto; font-size: 0.75rem; font-weight: 700; color: #f0957f; }
.kf-field select:invalid { color: var(--muted); }
/* Nach dem Absenden */
.kf-done { display: grid; grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 48px); align-items: start; max-width: 1080px; }
.kf-done-main { display: grid; gap: 24px; min-width: 0; }
.kf-done-host {
  position: sticky; top: 96px; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, rgba(var(--glow), 0.55), transparent 60%), radial-gradient(circle at 50% 40%, #2a2112, #121212 72%);
  box-shadow: inset 0 0 0 1px var(--gold-line), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.kf-done-host img {
  position: absolute; left: 50%; bottom: 0; height: 94%; width: auto; max-width: none; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 35%); mask-image: linear-gradient(to top, transparent 0, #000 35%);
  filter: drop-shadow(0 0 30px rgba(var(--glow), 0.22));
}
.kf-done-host .host-pill { bottom: 5%; white-space: nowrap; }
@media (max-width: 860px) {
  .kf-done { grid-template-columns: 1fr; }
  .kf-done-host { position: relative; top: 0; aspect-ratio: auto; height: 300px; max-width: 420px; width: 100%; margin: 0 auto; order: 0; }
}
.kf-done[hidden] { display: none; }
.kf-done:focus { outline: none; }
.kf-done-head h2 { margin-top: 4px; }
.kf-done-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); margin: 0; }
@media (max-width: 560px) { .kf-seg { grid-template-columns: minmax(0, 1fr); } }

.kf-back { margin-top: 32px; }
@media (max-width: 560px) { .kf-back .btn { width: 100%; } }
.kf-alt { display: grid; gap: 14px; padding: 16px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.kf-alt[hidden] { display: none; }

/* Zusatz in der Überschrift, z. B. „inklusive Gastgeber“ */
.kf-legend-note { font-weight: 400; font-size: .8em; opacity: .7; }
