/* FAIND v5 · How it works hero figure: the before/after compare (COMPARE owner; V5-SPEC 4 H, checklist W1).
   Two pages of the same Kindsgut product, stacked exactly on top of each other, both static and left-aligned.
   The page for AI (.cmp-ai) sits on top and is clipped to the left of --cut; the page for people (.cmp-people)
   fills the frame underneath. Nothing moves while dragging except the clip edge and the handle.

   Sizing: the two pages are drawn on a virtual canvas, 680 px wide on frames of 440 px and up (desktop layout of
   kindsgut.de) and 390 px wide below (its phone layout). Every length inside a page is in em, and the page's
   font-size is 16 virtual px expressed in container units, so the drawing scales with the frame and stays
   identical for both layers. No JS is needed for the layout; without JS the handle stays at 40 %. */

.cmp{position:relative;margin:0;min-width:0;width:100%;container:cmpw / inline-size}
.cmp-view{--cut:40%;position:relative;container:cmp / inline-size;aspect-ratio:11 / 10;
  border-radius:var(--r,16px);background:#fff;
  box-shadow:0 0 0 1px rgba(11,38,63,.10),var(--shadow-md,0 12px 40px rgba(36,32,90,.10));
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
@container cmpw (max-width:439px){ .cmp-view{aspect-ratio:4 / 5} }
/* a host may fix the frame height (How it works: .hiw-fig-slot sets --hiw-fig-h so the hero holds the first view) */
.cmp-view{width:100%;height:var(--hiw-fig-h,auto)}
.cmp-view[data-cmp-ready]{cursor:ew-resize;touch-action:pan-y}

/* the two pages: same box, same origin, clipped to the frame's rounded corners */
.cmp-page{position:absolute;inset:0;overflow:hidden;border-radius:inherit;
  font-size:calc(100cqw / 42.5);line-height:1.4;text-align:left;-webkit-font-smoothing:antialiased}
@container cmp (max-width:439px){ .cmp-page{font-size:calc(100cqw / 24.375)} }
:where(.cmp-page) :where(p,ul){margin:0}
.cmp-page img{display:block;max-width:none}
.cmp-ai{clip-path:inset(0 calc(100% - var(--cut)) 0 0)}

/* ---------------- the page for people: kindsgut.de/en/Children-s-potty-peach (drawn) ---------------- */
.cmp-people{background:#fff;color:#000;font-family:Lato,"Helvetica Neue",Arial,sans-serif;font-size:calc(100cqw / 42.5)}
@container cmp (max-width:439px){ .cmp-people{font-size:calc(100cqw / 24.375)} }
.cmp-people svg{width:1.35em;height:1.35em;fill:none;stroke:#4a545b;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ks-promo{display:flex;justify-content:center;align-items:center;position:relative;height:2.3em;background:#337079;color:#fff;font-size:.82em}
.ks-lang{position:absolute;right:1.2em;font-size:.9em;opacity:.95}
.ks-head{display:flex;align-items:center;gap:1.4em;padding:1.1em 1.1em .7em}
.ks-burger{display:none}
.ks-logo{width:9.6em;height:auto}
.ks-search{flex:1;display:flex;align-items:center;justify-content:space-between;height:2.9em;max-width:23em;margin:0 auto;padding:0 1em 0 1.3em;
  border:1px solid #a7a8aa;border-radius:999px;color:#4f5357;font-size:.86em}
.ks-search svg{width:1.4em;height:1.4em;stroke:#000}
.ks-icons{display:flex;gap:1.3em}
.ks-ic{display:flex;flex-direction:column;align-items:center;gap:.35em}
.ks-ic b{font-weight:400;font-size:.68em;color:#000;white-space:nowrap}
.ks-ic--search{display:none}
.ks-nav{display:flex;flex-wrap:wrap;gap:.75em 1.6em;padding:.6em 1.1em 1em;font-size:.74em;letter-spacing:.04em;text-transform:uppercase;color:#4a545b}
.ks-nav span:not(:first-child)::after{content:"";display:inline-block;width:.42em;height:.42em;margin:0 0 .22em .55em;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.ks-nav .is-on{text-decoration:underline;text-underline-offset:.35em}
.ks-crumb{display:flex;flex-wrap:wrap;gap:.3em 0;padding:.9em 1.4em 0;font-size:.7em;color:#5f6366}
.ks-crumb span:not(.is-here){text-decoration:underline;text-underline-offset:.2em}
.ks-crumb span:not(:last-child)::after{content:"›";display:inline-block;margin:0 .75em;text-decoration:none;color:#000}
.ks-crumb .is-here{color:#000}
.ks-h1{padding:.45em .6em 0;font-size:1.8em;font-weight:700;line-height:1.2;color:#1d1d1d}
.ks-main{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:1.3em;padding:1.5em 1.1em 2em}
.ks-gallery{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:.6em;align-content:start}
.ks-gallery img{width:100%;height:auto;aspect-ratio:1}
.ks-arrow,.ks-dots{display:none}
.ks-buy{align-self:start;padding:1.4em 1.3em;background:#f8f7f2;border-radius:1.2em}
.ks-buy-t{font-size:1.26em;font-weight:700;line-height:1.15;color:#1d1d1d}
.ks-price{margin-top:.55em;font-size:1.15em;font-weight:700}
.ks-vat{margin-top:.5em;font-size:.72em;color:#5f6366}
.ks-badge{display:flex;align-items:center;gap:.6em;margin-top:.55em;font-size:.74em;color:#2b2f32}
.ks-badge i{width:1.6em;height:1.6em;border-radius:50%;background:#337079;flex:none;
  box-shadow:inset 0 0 0 .38em #337079,inset 0 0 0 .52em #cfe0e2}
.ks-vat + .ks-badge{margin-top:.8em}
.ks-var{display:flex;align-items:center;gap:.6em;margin-top:.9em;font-size:.74em}
.ks-var span{flex:1;padding:.4em .7em;border:1px solid #1d1d1d;border-radius:.6em;white-space:nowrap;overflow:hidden}
.ks-swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:.45em;margin-top:.7em}
.ks-swatches i{display:block;aspect-ratio:1;border-radius:.45em;border:1px solid #efeee8;
  background:#fff url("/assets/site/img/compare/potty-colors.webp") no-repeat;background-size:1100% 100%;
  background-position:calc(var(--n) * 10%) 0}
.ks-swatches .is-on{border-color:#1d1d1d}
.ks-stock{display:flex;align-items:center;gap:.5em;margin-top:.8em;font-size:.72em}
.ks-stock i{width:.9em;height:.9em;border-radius:50%;background:#47b347}
.ks-cart{display:flex;gap:.6em;margin-top:.8em;font-size:.78em}
.ks-qty{display:flex;align-items:center;padding:0 .7em;border:1px solid #1d1d1d;border-radius:.6em;white-space:nowrap;letter-spacing:.2em}
.ks-btn{flex:1;padding:.75em .5em;border-radius:.6em;background:#337079;color:#fff;font-weight:700;text-align:center;white-space:nowrap}
.ks-rights{margin-top:.9em;font-size:.76em;font-weight:700}
.ks-rights::before{content:"▸ "}
.ks-wish{margin-top:.8em;font-size:.74em}
.ks-feat{margin-top:.8em;padding:0;list-style:none;font-size:.74em}
.ks-feat li{margin-top:.6em}
.ks-feat b{display:block}

/* kindsgut.de's phone layout (frames under 440 px) */
@container cmp (max-width:439px){
  .ks-promo{font-size:.86em;height:2.5em}
  .ks-head{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"logo logo" "burger icons";row-gap:1.1em;padding:1.2em 1em .4em}
  .ks-logo{grid-area:logo;justify-self:center;width:12em}
  .ks-burger{grid-area:burger;display:flex;flex-direction:column;justify-content:center;gap:.32em;width:1.4em}
  .ks-burger i{display:block;height:2px;background:#000;border-radius:1px}
  .ks-search,.ks-nav,.ks-ic b{display:none}
  .ks-icons{grid-area:icons;justify-self:end;gap:1.5em}
  .ks-ic--search{display:flex}
  .ks-crumb{padding:1.3em .65em 0;font-size:.78em}
  .ks-h1{padding:.6em .35em 0;font-size:1.75em}
  .ks-main{display:block;padding:1.1em .6em}
  .ks-gallery{display:block;padding:0 1.6em 1.4em}
  .ks-gallery img:not(:first-child){display:none}
  .ks-arrow{display:block;position:absolute;top:42%;width:.8em;height:.8em;border-left:1.5px solid #6c7073;border-bottom:1.5px solid #6c7073}
  .ks-arrow--l{left:.4em;transform:rotate(45deg)}
  .ks-arrow--r{right:.4em;transform:rotate(-135deg)}
  .ks-dots{display:flex;gap:.3em;position:absolute;left:0;right:0;bottom:.3em}
  .ks-dots i{flex:1;height:2px;background:#cfd2d4}
  .ks-dots .is-on{background:#337079}
  .ks-buy{margin-top:.6em;padding:1.3em 1em}
  .ks-buy-t{font-size:1.6em}
  .ks-price{font-size:1.4em}
  .ks-vat,.ks-badge{font-size:.86em}
  .ks-swatches{grid-template-columns:repeat(3,1fr)}
}

/* ---------------- the page for AI: llms.kindsgut.de/en/children-potty-peach/ (verbatim, as it renders) ---------------- */
.cmp-ai{background:#fff;color:#000;font-family:"Times New Roman",Times,serif;padding:.5em .55em;line-height:1.25}
.cmp-ai .kl-back,.cmp-ai u{color:#0000ee;text-decoration:underline;text-underline-offset:.12em}
.kl-notice{margin:.65em 0 0;padding:.75em .9em;background:#0b263f;color:#fff}
.kl-notice p{margin:0 0 .5em}
.kl-notice p:last-child{margin:0}
.cmp-ai .kl-notice u{color:#fff}
.kl-notice .kl-notice-k{font-weight:700;margin-bottom:.35em}
.kl-h1{margin:.67em 0 .5em;font-size:2em;font-weight:700;line-height:1.15}
.kl-h2{margin:.83em 0 .55em;font-size:1.5em;font-weight:700;line-height:1.15}
.kl-h3{margin:1em 0 .6em;font-size:1.17em;font-weight:700}
.cmp-ai ul{margin:0 0 1em;padding-left:2.4em;list-style:disc}
.cmp-ai li{margin:.05em 0}
.cmp-ai small{font-size:.83em}

/* ---------------- labels, divider, handle (v5 design) ---------------- */
/* Each page ends in a short white fade at the frame's bottom edge (the page continues below the frame), so the corner
   labels sit on blank space instead of covering page content. */
.cmp-view{--cmp-foot:66px}
.cmp-page::after{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--cmp-foot);pointer-events:none;
  background:linear-gradient(rgba(255,255,255,0),#fff 62%)}
/* The labels are NOT inside the clipped layers: they are drawn whole, each in its own bottom corner, and compare.js
   fades a label out (.is-off) while its side of the divider is narrower than the label. */
.cmp-tag{position:absolute;bottom:14px;display:inline-flex;align-items:baseline;gap:0;padding:6px 11px 7px;border-radius:999px;
  font-family:var(--font-body,"Sohne Buch",sans-serif);font-size:12.5px;line-height:1.2;white-space:nowrap;letter-spacing:.005em;
  pointer-events:none;transition:opacity .2s ease,visibility 0s linear 0s}
.cmp-tag.is-off{opacity:0;visibility:hidden;transition:opacity .2s ease,visibility 0s linear .2s}
.cmp-tag b{font-family:var(--font-head,"Sohne Halbfett",sans-serif);font-weight:700}
.cmp-sep{white-space:pre}
.cmp-tag--ai{left:14px;background:var(--navy,#0b263f);color:#fff;box-shadow:0 6px 18px rgba(11,38,63,.22)}
.cmp-tag--people{right:14px;background:rgba(255,255,255,.96);color:var(--ink,#0b263f);
  box-shadow:0 0 0 1px rgba(11,38,63,.12),0 6px 18px rgba(11,38,63,.12)}
@container cmpw (max-width:439px){
  .cmp-view{--cmp-foot:76px}
  .cmp-tag{flex-direction:column;align-items:flex-start;bottom:10px;padding:5px 9px 6px;font-size:11px;border-radius:10px}
  .cmp-tag--ai{left:8px}
  .cmp-tag--people{right:8px}
  .cmp-sep{display:none}
}
@media (prefers-reduced-motion:reduce){ .cmp-tag,.cmp-tag.is-off{transition:none} }

.cmp-line{position:absolute;top:0;bottom:0;left:var(--cut);width:2px;margin-left:-1px;pointer-events:none;
  background:#fff;box-shadow:0 0 0 1px rgba(11,38,63,.14),0 0 14px rgba(11,38,63,.22)}
.cmp-handle{--k:44px;position:absolute;top:50%;left:clamp(calc(var(--k) / 2),var(--cut),calc(100% - var(--k) / 2));
  width:var(--k);height:var(--k);margin:calc(var(--k) / -2) 0 0 calc(var(--k) / -2);
  display:grid;place-items:center;border-radius:50%;background:var(--btn,#6260fa);color:#fff;
  box-shadow:0 0 0 3px #fff,0 8px 22px rgba(36,32,90,.32);cursor:ew-resize;touch-action:none;
  transition:transform .25s var(--ease,cubic-bezier(.16,1,.3,1)),box-shadow .25s}
.cmp-handle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cmp-view:not([data-cmp-ready]) .cmp-handle{cursor:default}
.cmp-view[data-cmp-ready] .cmp-handle:hover,.cmp-view.is-dragging .cmp-handle{transform:scale(1.07)}
.cmp-handle:focus{outline:none}
.cmp-handle:focus-visible{box-shadow:0 0 0 3px #fff,0 0 0 6px var(--purple,#5856ee),0 8px 22px rgba(36,32,90,.32)}
.cmp-view.is-dragging{cursor:grabbing}

@media (forced-colors:active){
  .cmp-line{background:CanvasText}
  .cmp-handle{border:2px solid ButtonText;background:ButtonFace;color:ButtonText}
}
