/* Kontrolle. Builds on fern.css; only what this page adds. */

/* Header: the three levels on a colour band */
.ko-hero { padding-bottom: 0; }
.ko-stage { margin-top: clamp(2.5rem, 6vw, 3.75rem); }
.ko-stage .band { height: 60%; }
.ko-board { position: relative; z-index: 1; overflow: hidden; border-radius: .875rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(29, 27, 24, .45); text-align: left; }
.ko-board__top { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); background: #FAF9F6; }
.ko-board__top .px { width: 1.6rem; height: 1.6rem; }
.ko-board__top h2 { font-size: 1.05rem; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.ko-board__top span { font-size: .82rem; color: var(--muted); }
.ko-board__top .motion-btn { margin-left: auto; }
.ko-board__tabs { display: flex; gap: .3rem; padding: .4rem; background: var(--chrome); border-bottom: 1px solid var(--line-2); }
.ko-board__tabs .tab { flex: 1; justify-content: center; height: 2.5rem; font-size: .92rem; }
.ko-board__tabs .tab small { font: 600 .7rem var(--mono); color: var(--faint); }
.ko-board__tabs .tab[aria-selected="true"] small { color: var(--brand); }
.ko-board__body { display: grid; grid-template-columns: 1fr 1.25fr; }
.ko-board__lv { padding: 1.7rem 1.6rem 1.9rem; border-right: 1px solid var(--line); }
.js .ko-lv:not(.on) { display: none; }
html:not(.js) .ko-lv + .ko-lv { margin-top: 1.6rem; }
.ko-lv h3 { display: flex; align-items: baseline; gap: .6rem; font-size: clamp(1.45rem, .63rem + 1.49vw, 1.85rem); font-weight: 650; line-height: 1.1; letter-spacing: -.045em; color: var(--ink); }
.ko-lv h3 small { font: 600 .8rem var(--mono); letter-spacing: 0; color: var(--faint); }
.ko-lv p { margin-top: .8rem; max-width: 30rem; font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); }
.ko-lv .tag { margin-top: 1.1rem; padding: .15rem .55rem; font-size: .74rem; }
.ko-board__list { padding: .55rem 1.2rem .65rem; }
.ko-board__list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .62rem .5rem; border-bottom: 1px solid var(--line); border-radius: .35rem; font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
.ko-board__list li:last-child { border-bottom: 0; }
.ko-board__list em { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .55rem; border-radius: .35rem; font-size: .76rem; font-style: normal; font-weight: 600; white-space: nowrap; }
.ko-board__list em svg { width: .85rem; height: .85rem; }
.ko-board__list .is-auto { background: #E1F1E6; color: #24774A; }
.ko-board__list .is-you { background: #FBF0D2; color: #8A6511; }
.ko-board__note { padding: .9rem 1.4rem; border-top: 1px solid var(--line); background: #F7F4EE; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.ko-board__note a { font-weight: 560; color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Nie ohne Sie */
.ko-must { background: var(--dark); color: var(--on-dark); padding-block: clamp(4rem, 8vw, 6rem); }
.ko-must .h2 { max-width: 17ch; }
.ko-must__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.ko-must__list li { position: relative; padding: 1.4rem 1.4rem 1.5rem; overflow: hidden; border-radius: .75rem; background: var(--dark-2); border: 1px solid var(--dark-line); }
.ko-must__n { position: absolute; top: .4rem; right: 1.2rem; font-size: 4.5rem; font-weight: 650; line-height: 1; letter-spacing: -.06em; color: var(--lime); }
.ko-tile { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: .65rem; background: #F7F6F1; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); }
.ko-tile .px { width: 1.45rem; height: 1.45rem; }
.ko-must__list h3 { margin-top: 1.6rem; font-size: clamp(1.5rem, .32rem + 1.94vw, 1.9rem); font-weight: 650; line-height: 1.1; letter-spacing: -.03em; }
.ko-must__list p { max-width: 22rem; margin-top: .55rem; font-size: .95rem; line-height: 1.5; color: var(--on-dark-2); }
.ko-must__rules { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; padding-top: 2.2rem; border-top: 1px solid var(--dark-line); }
.ko-must__rules p { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; font-size: 1rem; line-height: 1.55; color: var(--on-dark); }
.ko-must__rules .px { width: 1.5rem; height: 1.5rem; margin-top: .1rem; }

/* Freigabe per WhatsApp */
.ko-tap { padding-block: clamp(4rem, 8vw, 6rem); }
.ko-tap__grid { display: grid; grid-template-columns: 21rem 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.ko-wa { margin: 0; }
.ko-wa__frame { height: 30rem; overflow: hidden; border-radius: 1.6rem; background: var(--bg); box-shadow: 0 0 0 7px #1F1D1A, 0 30px 60px -20px rgba(29, 27, 24, .5); font-size: .84rem; }
.ko-wa .phone__top .av { overflow: hidden; background: none; }
.ko-wa .phone__top .av img { width: 100%; height: 100%; }
.ko-wa .msgs { gap: .5rem; padding: .9rem .8rem; }
.ko-wa__day { align-self: center; padding: .15rem .6rem; border-radius: .4rem; background: rgba(255, 255, 255, .7); font-size: .7rem; color: var(--muted); }
.ko-wa .msg { max-width: 88%; }
.ko-wa .msg p + p { margin-top: .35rem; }
.ko-wa .msg strong { font-weight: 650; }
.ko-wa .msg--bot b { display: flex; align-items: center; gap: .35rem; margin-bottom: .25rem; font-size: .72rem; }
.ko-wa .msg--bot b svg { width: .8rem; height: .8rem; }
.ko-wa .msg time { display: flex; justify-content: flex-end; align-items: center; gap: .2rem; margin-top: .15rem; }
.ko-wa .msg time svg { width: .75rem; height: .75rem; color: var(--blue); }
.ko-wa__choices { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-top: .65rem; }
.ko-wa__choices span { padding: .4rem .3rem; border-radius: .4rem; background: #FAF9F6; box-shadow: inset 0 0 0 1px var(--line); text-align: center; font-size: .78rem; font-weight: 600; color: var(--brand-deep); }
.ko-wa__choices .tapped { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1px #B5DD68; }
.ko-wa figcaption { margin-top: 1.5rem; text-align: center; font-size: .8rem; color: var(--faint); }
.ko-tap__text .lede { max-width: 34rem; margin-top: 1.4rem; }
.ko-tap__p { max-width: 34rem; margin-top: 1rem; color: var(--ink-2); }
.ko-tap__note { display: flex; align-items: flex-start; gap: .7rem; max-width: 34rem; margin-top: 1.8rem; padding: .9rem 1rem; border-radius: .6rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .05); font-size: .92rem; color: var(--ink-2); }
.ko-tap__note svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; color: var(--brand); }

/* Rückfrage on brand green */
.ko-ask { background: var(--green); color: #fff; padding-block: clamp(4rem, 8vw, 5.5rem); }
.ko-ask .h2 { max-width: 16ch; }
.ko-ask__lede { max-width: 34rem; margin-top: 1.4rem; font-size: 1.12rem; line-height: 1.55; color: #CFE6D8; }
.ko-ask__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 3rem; }
.ko-call { margin: 0; overflow: hidden; border-radius: .75rem; background: var(--paper); color: var(--ink-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.ko-call figcaption { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); background: #FAF9F6; font-size: .86rem; font-weight: 600; color: var(--ink); }
.ko-call figcaption svg { width: 1rem; height: 1rem; color: var(--brand); }
.ko-call blockquote { margin: 0; padding: .3rem 1.2rem; }
.ko-call blockquote p { display: grid; grid-template-columns: 6rem 1fr; gap: .8rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.45; color: var(--ink); }
.ko-call blockquote p:last-child { border-bottom: 0; }
.ko-call .tag { justify-self: start; font-size: .7rem; }
.ko-call__foot { display: flex; align-items: flex-start; gap: .55rem; padding: .9rem 1.2rem 1rem; border-top: 1px solid #CFE5C0; background: #EEF6E8; font-size: .88rem; line-height: 1.45; color: var(--brand-deep); }
.ko-call__foot svg { flex: none; width: 1rem; height: 1rem; margin-top: .12rem; }
.ko-ask__list { display: grid; gap: 1.6rem; }
.ko-ask__list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.ko-ask__list p { line-height: 1.55; color: #CFE6D8; }
.ko-ask__list strong { display: block; margin-bottom: .2rem; font-size: 1.08rem; font-weight: 650; letter-spacing: -.02em; color: #fff; }

/* Am Steuer bleiben Sie */
.ko-helm { padding-block: clamp(4rem, 8vw, 6rem) clamp(4rem, 8vw, 5.5rem); }
.ko-helm__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.ko-helm article { display: flex; flex-direction: column; align-items: flex-start; padding: 1.4rem 1.4rem 1.3rem; border-radius: .6rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .05); }
.ko-helm .px { width: 1.6rem; height: 1.6rem; }
.ko-helm h3 { margin-top: 1rem; font-size: 1.15rem; font-weight: 650; letter-spacing: -.015em; }
.ko-helm article p { margin-top: .45rem; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.ko-helm article a { margin-top: auto; padding-top: 1rem; font-size: .88rem; font-weight: 560; color: var(--brand-deep); }
@media (hover: hover) and (pointer: fine) { .ko-helm article a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.ko-helm__end { max-width: 44rem; margin-top: 2rem; color: var(--muted); }
.ko-helm__end a { font-weight: 560; color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 53.75em) {
  .ko-board__body { grid-template-columns: 1fr; }
  .ko-board__lv { border-right: 0; border-bottom: 1px solid var(--line); }
  .ko-must__list, .ko-helm__grid { grid-template-columns: 1fr; }
  .ko-must__rules, .ko-ask__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .ko-tap__grid { grid-template-columns: 1fr; }
  .ko-wa { width: min(100%, 21rem); margin-inline: auto; }
  .ko-tap__text { order: -1; }
}

@media (max-width: 37.5em) {
  .ko-board__top { padding: .9rem 1rem; }
  .ko-board__tabs .tab { gap: .3rem; padding: 0 .35rem; font-size: .82rem; }
  .ko-board__tabs .tab small { display: none; }
  .ko-board__lv { padding: 1.3rem 1.1rem 1.4rem; }
  .ko-board__list { padding: .4rem .6rem .5rem; }
  .ko-board__list li { font-size: .86rem; }
  .ko-board__note { padding: .85rem 1rem; }
  .ko-wa__frame { height: 28rem; }
  .ko-call blockquote p { grid-template-columns: 1fr; gap: .35rem; }
}

/* Motion, only when the visitor hasn't asked for less */
@media (prefers-reduced-motion: no-preference) {
  .ko-board.auto .tab[aria-selected="true"] .tab__bar { opacity: 1; animation: fill 6s linear forwards; }
  .ko-board.auto.hold .tab__bar, .ko-board.auto.away .tab__bar { animation-play-state: paused; }
  .ko-lv.on { animation: slot .45s cubic-bezier(.2, .7, .2, 1) both; }
  .ko-board__list li.hit { animation: ko-hit 1.4s ease-out; }
  .ko-board__list li.hit em { animation: ko-flip .45s cubic-bezier(.2, .7, .2, 1); }

  .ko-must__list > .in .ko-tile .px { animation: pop .45s steps(3) both; animation-delay: calc(var(--i, 0) * 90ms + .25s); }
  @media (hover: hover) and (pointer: fine) { .ko-must__list > li:hover .ko-tile .px { animation: hop .5s steps(2); } }

  .ko-wa__choices span { transition: background-color .2s, color .2s, box-shadow .2s; }
  .ko-wa__choices .tapped { animation: press .3s; }

  .ko-call.in blockquote p, .ko-call.in .ko-call__foot { animation: slot .5s cubic-bezier(.2, .7, .2, 1) both; }
  .ko-call.in blockquote p:nth-child(1) { animation-delay: .35s; }
  .ko-call.in blockquote p:nth-child(2) { animation-delay: .8s; }
  .ko-call.in .ko-call__foot { animation-delay: 1.5s; }
  .ko-call.in .tag--wait { animation: ko-ask 1.4s ease-in-out 1.2s 3; }
}

@keyframes ko-hit { 0% { background: #EEF6E8; } 100% { background: transparent; } }
@keyframes ko-flip { 0% { opacity: 0; transform: rotateX(90deg); } 100% { opacity: 1; transform: none; } }
@keyframes ko-ask { 50% { box-shadow: 0 0 0 4px rgba(217, 164, 65, .35); } }
