/* Dein Kakao v5: neuer Konfigurator (private/konfigurator.php, assets/dk-konfigurator2.js).
   Eigene Datei, nicht im CSS-Bündel (Zustandsklassen setzt das Skript). Präfix dkk-. */
.dkk-section {
  --dkk-ink: #1d1d1b;
  --dkk-orange: #f59b00;
  --dkk-taupe: #ae9889;
  --dkk-braun: #4a2e1c;
  --dkk-muted: #65503f;
  --dkk-paper: rgba(255, 255, 255, .62);
  --dkk-line: rgba(29, 29, 27, .14);
  --dkk-display: "kiwi maru", "kiwi maru fallback", serif;
  color: var(--dkk-ink);
  font-family: var(--font-body-family, Inter, sans-serif);
  font-size: 1.6rem;
  line-height: 1.5;
}
.dkk-section *, .dkk-section *::before, .dkk-section *::after { box-sizing: border-box; }
/* #konfigurator (Hero-Knopf): knapp unter den festen Header statt 200 px scroll-padding */
.dkk-section { scroll-margin-top: -80px; }
.dkk-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dkk-section :focus-visible { outline: 3px solid var(--dkk-orange); outline-offset: 2px; }
.dkk-section h2, .dkk-section h3 { font-family: var(--dkk-display); font-weight: 400; letter-spacing: 0; color: var(--dkk-ink); margin: 0; }
.dkk-section h2 { font-size: clamp(2.4rem, 2.6vw, 3rem); line-height: 1.2; scroll-margin-top: -70px; }
.dkk-section h3 { font-size: 1.9rem; line-height: 1.3; }
.dkk-section p { margin: 0; }

/* ---------- Raster */
/* Auswahl links, Mischung rechts (wie Rezept-Seitenleiste); im Markup steht die Mischung zuerst (Handy oben) */
.dkk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 64px; padding-top: 64px; padding-bottom: 96px; align-items: start; }
.dkk-steps { display: grid; gap: 72px; min-width: 0; }

/* ---------- Mischung / Dose */
.dkk-mix { grid-column: 2; grid-row: 1; position: sticky; top: 128px; }
.dkk-steps { grid-column: 1; grid-row: 1; }
.dkk-mix__inner { max-height: calc(100vh - 148px); overflow: auto; overscroll-behavior: contain; padding: 4px; scrollbar-width: thin; }
.dkk-dose { position: relative; container-type: inline-size; width: min(100%, 250px); margin: 0 auto; }
.dkk-dose__img { display: block; width: 100%; height: auto; }
/* Grauer Kreis „Deine Sorte“ auf dem Foto (856 px): Mitte 428/283, Durchmesser 236 */
.dkk-dose__etikett {
  position: absolute; left: 36.1%; top: 19.2%; width: 27.8%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 2.4cqw;
  background: radial-gradient(circle at 42% 38%, #e9ecec 0%, #e2e6e7 60%, #dadedf 100%);
  color: #3c3c3b; font-family: Inter, sans-serif; font-weight: 400; line-height: 1.05;
  font-size: 6cqw; overflow: hidden; overflow-wrap: anywhere; hyphens: auto;
}
.dkk-dose__etikett span { display: block; max-height: 100%; }
.dkk-dose__etikett[data-len="m"] { font-size: 4.6cqw; }
.dkk-dose__etikett[data-len="l"] { font-size: 3.7cqw; }
.dkk-dose__etikett[data-len="xl"] { font-size: 3cqw; }
.dkk-dose__etikett.is-neu span { animation: dkk-fade .35s ease-out; }

.dkk-mix__body { display: grid; gap: 12px; margin-top: 12px; }
.dkk-mix__ratio { font-weight: 600; font-size: 1.7rem; }
.dkk-mix__count { color: var(--dkk-muted); font-size: 1.4rem; }
.dkk-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dkk-chips:empty { display: none; }
.dkk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--dkk-line); font-size: 1.4rem; line-height: 1.2; }
.dkk-chip.is-neu { animation: dkk-pop .28s cubic-bezier(.2, .9, .3, 1.3); }
.dkk-chip--suesse { border-style: dashed; }
.dkk-chip button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--dkk-ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.dkk-chip button:hover { background: rgba(29, 29, 27, .08); }
.dkk-glyph { display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.dkk-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 1.4rem; }
.dkk-notes:empty { display: none; }
.dkk-notes li { padding-left: 14px; position: relative; color: var(--dkk-braun); }
.dkk-notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--dkk-orange); }

.dkk-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--dkk-line); }
.dkk-buy__price { text-align: right; font-size: 1.3rem; color: var(--dkk-muted); }
.dkk-buy__price strong { display: block; font-size: 2rem; color: var(--dkk-ink); }
.dkk-qty { display: inline-flex; align-items: center; border: 1px solid var(--dkk-ink); border-radius: 999px; }
.dkk-qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 2rem; cursor: pointer; color: var(--dkk-ink); border-radius: 999px; }
.dkk-qty input { width: 3.2ch; border: 0; background: none; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; color: var(--dkk-ink); }
.dkk-qty input::-webkit-inner-spin-button, .dkk-qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.dkk-section .dkk-buy__btn { width: 100%; min-height: 50px; }
.dkk-section .button[aria-disabled="true"] { opacity: .6; }
.dkk-error { color: #a12a00; font-weight: 600; font-size: 1.4rem; }
.dkk-error:empty { display: none; }
.dkk-error.is-info { color: var(--dkk-braun); font-weight: 500; }
.dkk-link { justify-self: start; border: 0; background: none; padding: 6px 0; font: inherit; font-size: 1.4rem; font-weight: 600; color: var(--dkk-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Ideen */
.dkk-ideas { display: grid; gap: 12px; }
.dkk-ideas > p { color: var(--dkk-muted); }
.dkk-ideas__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.dkk-idea { width: 100%; height: 100%; display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; border: 1px solid var(--dkk-line); border-radius: 14px; background: var(--dkk-paper); color: var(--dkk-ink); font: inherit; cursor: pointer; transition: border-color .15s, background-color .15s; }
.dkk-idea:hover { border-color: var(--dkk-ink); }
.dkk-idea[aria-pressed="true"] { background: #fff; border: 2px solid var(--dkk-ink); padding: 15px; }
.dkk-idea__icons { display: flex; gap: 6px; color: var(--dkk-braun); min-height: 20px; }
.dkk-idea__name { font-family: var(--dkk-display); font-size: 1.9rem; line-height: 1.2; }
.dkk-idea__text { font-size: 1.35rem; color: var(--dkk-muted); line-height: 1.4; }
.dkk-idea--zufall { border-style: dashed; }

/* ---------- Schritte */
.dkk-step { display: grid; gap: 16px; }
.dkk-nr { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: .3em; border-radius: 50%; background: var(--dkk-ink); color: #fff; font-family: Inter, sans-serif; font-size: .62em; font-weight: 700; vertical-align: .25em; }
.dkk-step__text { color: var(--dkk-muted); max-width: 62ch; }
.dkk-step__text strong { color: var(--dkk-ink); }
.dkk-weiter { justify-self: start; color: var(--dkk-ink); font-weight: 600; font-size: 1.4rem; text-decoration: underline; text-underline-offset: 3px; }

.dkk-stufen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dkk-stufe { display: grid; gap: 2px; padding: 12px 8px; border: 1px solid var(--dkk-line); border-radius: 12px; background: var(--dkk-paper); color: var(--dkk-ink); font: inherit; cursor: pointer; text-align: center; }
.dkk-stufe:hover { border-color: var(--dkk-ink); }
.dkk-stufe[aria-pressed="true"] { background: var(--dkk-ink); border-color: var(--dkk-ink); color: #fff; }
.dkk-stufe__name { font-weight: 600; }
.dkk-stufe__wert { font-size: 1.3rem; opacity: .75; }
.dkk-regler { display: grid; grid-template-columns: auto 1fr 4.5ch; align-items: center; gap: 16px; }
.dkk-regler label { font-size: 1.4rem; color: var(--dkk-muted); }
.dkk-regler output { font-weight: 700; text-align: right; }
.dkk-regler input[type="range"] { --p: 44%; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.dkk-regler input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--dkk-braun) var(--p), rgba(174, 152, 137, .45) var(--p)); }
.dkk-regler input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(174, 152, 137, .45); }
.dkk-regler input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--dkk-braun); }
.dkk-regler input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--dkk-ink); border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.dkk-regler input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--dkk-ink); border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }

/* Süße */
.dkk-suesse { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.dkk-suesse[disabled] { opacity: .45; }
.dkk-sw { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 16px 12px; text-align: center; border: 1px solid var(--dkk-line); border-radius: 14px; background: var(--dkk-paper); cursor: pointer; }
.dkk-suesse[disabled] .dkk-sw { cursor: not-allowed; }
.dkk-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.dkk-sw:has(input:focus-visible) { outline: 3px solid var(--dkk-orange); outline-offset: 2px; }
.dkk-sw:has(input:checked) { background: #fff; border: 2px solid var(--dkk-ink); padding: 15px 11px; }
.dkk-sw__img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dkk-sw__name { font-weight: 600; line-height: 1.25; }
.dkk-sw__kurz { font-size: 1.3rem; color: var(--dkk-muted); line-height: 1.4; }
.dkk-warn { padding: 12px 14px; border-left: 4px solid var(--dkk-orange); background: rgba(245, 155, 0, .12); font-size: 1.45rem; max-width: 62ch; }

/* Aromen */
.dkk-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.dkk-filter button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--dkk-line); border-radius: 999px; background: var(--dkk-paper); color: var(--dkk-ink); font: inherit; font-size: 1.4rem; font-weight: 600; cursor: pointer; }
.dkk-filter button:hover { border-color: var(--dkk-ink); }
.dkk-filter button[aria-pressed="true"] { background: var(--dkk-ink); border-color: var(--dkk-ink); color: #fff; }
.dkk-gruppe { display: grid; gap: 12px; }
.dkk-gruppe[hidden] { display: none; }
.dkk-gruppe + .dkk-gruppe { margin-top: 12px; }
.dkk-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.dkk-card { position: relative; display: grid; border: 1px solid var(--dkk-line); border-radius: 14px; background: var(--dkk-paper); transition: border-color .15s, background-color .15s, opacity .15s; }
.dkk-card[hidden] { display: none; }
.dkk-card:hover { border-color: var(--dkk-ink); }
.dkk-card label { display: grid; grid-template-columns: 64px 1fr 26px; grid-template-areas: "img name check" "img kurz kurz" "img tags tags"; column-gap: 12px; row-gap: 2px; align-items: start; padding: 14px 14px 4px; cursor: pointer; }
.dkk-card input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.dkk-card__img { grid-area: img; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.dkk-card__name { grid-area: name; font-weight: 600; line-height: 1.3; padding-top: 2px; }
.dkk-card__kurz { grid-area: kurz; font-size: 1.35rem; color: var(--dkk-muted); line-height: 1.4; }
.dkk-card__tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 4px; padding-top: 4px; }
.dkk-card__check { grid-area: check; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--dkk-ink); position: relative; }
.dkk-card__info { justify-self: start; margin: 0 0 8px 90px; padding: 6px 0; border: 0; background: none; color: var(--dkk-ink); font: inherit; font-size: 1.3rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dkk-card:has(input:focus-visible) { outline: 3px solid var(--dkk-orange); outline-offset: 2px; }
.dkk-card:has(input:checked) { background: #fff; border: 2px solid var(--dkk-ink); margin: -1px; }
.dkk-card:has(input:checked) .dkk-card__check, .dkk-sw:has(input:checked)::after { background: var(--dkk-orange); border-color: var(--dkk-ink); }
.dkk-card:has(input:checked) .dkk-card__check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px; border: solid var(--dkk-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.dkk-card.is-voll { opacity: .5; }
.dkk-card.is-voll:hover { border-color: var(--dkk-line); }
.dkk-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(174, 152, 137, .22); color: var(--dkk-braun); font-size: 1.2rem; font-weight: 600; line-height: 1.5; }
.dkk-tag--passt { background: rgba(245, 155, 0, .2); }
.dkk-tag[hidden] { display: none; }
.dkk-leer { color: var(--dkk-muted); }

/* Name */
.dkk-name { display: grid; gap: 8px; max-width: 520px; }
.dkk-name label { font-size: 1.4rem; font-weight: 600; }
.dkk-name__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dkk-name input { flex: 1 1 260px; min-height: 50px; padding: 10px 14px; border: 1px solid var(--dkk-ink); border-radius: 10px; background: #fff; font: inherit; font-size: 1.7rem; color: var(--dkk-ink); }

/* Abschluss */
.dkk-final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; border-radius: 20px; background: #f1b34a; }
.dkk-final__img { width: 100%; height: auto; }
.dkk-final h2 { margin-bottom: 12px; }
.dkk-final p { margin-bottom: 20px; max-width: 40ch; }

/* Leiste unten (Handy) */
.dkk-bar { display: none; }

/* Infoblatt */
.dkk-sheet { width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--dkk-ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dkk-sheet::backdrop { background: rgba(29, 29, 27, .5); }
.dkk-sheet[open] { animation: dkk-sheet-in .22s ease-out; }
.dkk-sheet__inner { position: relative; padding: 28px; display: grid; gap: 14px; }
.dkk-sheet__close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(29, 29, 27, .06); font-size: 2.6rem; line-height: 1; cursor: pointer; color: var(--dkk-ink); }
[data-dkk-sheetbody] { display: grid; gap: 12px; justify-items: start; }
.dkk-sheet__img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.dkk-sheet h2 { font-size: 2.6rem; }
.dkk-sheet__text { display: grid; gap: 10px; font-size: 1.5rem; line-height: 1.6; }
.dkk-sheet__text p { margin: 0; }
.dkk-sheet__more { color: var(--dkk-ink); font-weight: 600; text-underline-offset: 3px; }
.dkk-sheet__actions { position: sticky; bottom: -28px; margin: 0 -28px -28px; padding: 16px 28px 24px; background: #fff; border-top: 1px solid var(--dkk-line); }
.dkk-sheet__actions .button { width: 100%; }

@keyframes dkk-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dkk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dkk-sheet-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Tablet + Handy */
@media (max-width: 989px) {
  .dkk { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 120px; }
  .dkk-steps { gap: 56px; }
  .dkk-mix, .dkk-steps { grid-column: 1; grid-row: auto; }
  .dkk-mix { position: static; }
  /* Dose klein links, daneben Verhältnis + Zähler, darunter alles volle Breite */
  .dkk-mix__inner { max-height: none; overflow: visible; display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; row-gap: 12px; align-items: center; padding: 0; }
  .dkk-dose { grid-row: 1 / span 2; width: 104px; }
  .dkk-mix__body { display: contents; }
  .dkk-mix__ratio { grid-column: 2; grid-row: 1; align-self: end; }
  .dkk-mix__count { grid-column: 2; grid-row: 2; align-self: start; }
  .dkk-chips, .dkk-notes, .dkk-buy, .dkk-error, .dkk-link[data-dkk-share] { grid-column: 1 / -1; }
  .dkk-mix__body .dkk-buy__btn { display: none; }
  .dkk-stufen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dkk-suesse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Wischleiste bis an den Bildschirmrand: genau um den Seitenrand der .page-width (1,5rem) nach außen, Wischen bleibt in der Leiste */
  .dkk-ideas__list { grid-auto-flow: column; grid-auto-columns: minmax(200px, 72%); grid-template-columns: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -1.5rem; padding-inline: 1.5rem; scroll-padding-inline: 1.5rem; }
  .dkk-ideas__list > li { scroll-snap-align: start; }
  .dkk-final { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .dkk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--dkk-ink); color: #fff; font-size: 1.4rem; }
  .dkk-bar__info { display: grid; line-height: 1.3; white-space: nowrap; }
  .dkk-bar__info strong { color: #fff; }
  .dkk-bar__info span { opacity: .8; }
  .dkk-section .dkk-bar .button { min-height: 48px; padding: 0 20px; background: var(--dkk-orange); color: var(--dkk-ink); font-weight: 700; }
  .dkk-sheet { width: 100vw; max-width: none; max-height: 88vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .dkk-sheet[open] { animation-name: dkk-sheet-up; }
}
@media (max-width: 480px) {
  .dkk-regler { grid-template-columns: 1fr 4.5ch; }
  .dkk-regler label { grid-column: 1 / -1; }
  .dkk-cards { grid-template-columns: minmax(0, 1fr); }
}
@keyframes dkk-sheet-up { from { transform: translateY(40px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .dkk-section *, .dkk-sheet { animation: none !important; transition: none !important; }
}
