/* ==========================================================================
   Nur für /marketingbetreuung/: Grafiken der Abschnitte (Präfix kb-).
   Nutzt ausschließlich die Tokens aus style.css, damit Hell und Dunkel passen.
   Ausnahme: Fehlerfarbe im Formular (eigene Werte, Kontrast nachgerechnet).
   ========================================================================== */

/* ---------- Hero: Monatsübersicht als UI-Nachbau ---------- */
.kb-hero-grid { align-items: center; }
.kb-hero-copy { min-width: 0; }
.kb-hero-copy .page-back { display: flex; width: fit-content; }
.kb-hero-copy h1 { max-width: none; font-size: clamp(2.1rem, 4.3vw, 3.4rem); }
.kb-month-fig { margin: 0; min-width: 0; }
.kb-month { background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.1rem, 2.4vw, 1.6rem); }
.kb-month-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.kb-month-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--text); }
.kb-pill { font-size: .85rem; font-weight: 700; color: var(--accent-hover); background: var(--accent-soft); border-radius: 999px; padding: .3rem .8rem; }
.kb-month-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; padding-top: 1rem; }
.kb-mrow { display: flex; align-items: center; gap: .9rem; background: var(--surface); border-radius: var(--radius); padding: .8rem .95rem; }
.kb-mrow-list { align-items: flex-start; }
.kb-mico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hover); }
.kb-mtxt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1 1 auto; line-height: 1.35; }
.kb-mtxt b { font-weight: 700; color: var(--text); font-size: 1rem; }
.kb-mtxt > span { color: var(--text-muted); font-size: .92rem; }
.kb-done { display: flex; flex-direction: column; gap: .3rem; margin-top: .35rem; }
.kb-done > span { display: flex; align-items: center; gap: .5rem; color: var(--text); font-size: .92rem; }
.kb-tick { flex: none; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--accent-hover); color: var(--accent-ink); }
.kb-mrow-next { background: var(--accent-soft); border: 1px solid var(--accent); }
.kb-mrow-next .kb-mico { background: var(--accent-hover); color: var(--accent-ink); }
.kb-mrow-next .kb-mtxt > span { color: var(--text); font-weight: 600; font-size: .85rem; }
.kb-mrow-next .kb-mtxt b { font-size: 1.05rem; }
.kb-dotrow { display: flex; gap: .35rem; flex: none; }
.kb-dotrow i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-hover); }
.kb-dotrow-tick svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--accent-hover); color: var(--accent-ink); }
.kb-month-fig figcaption { margin-top: .8rem; text-align: center; font-size: .9rem; color: var(--text-muted); }
@media (max-width: 820px) { .kb-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .kb-dotrow i { width: 9px; height: 9px; } .kb-dotrow { gap: .25rem; } .kb-dotrow-tick svg { width: 15px; height: 15px; } }

/* ---------- gemeinsame Grafikfläche ---------- */
.kb-gfx { background: var(--surface); border-radius: var(--radius); padding: 1.1rem; min-height: 170px; display: flex; align-items: center; justify-content: center; }

/* Wireframe einer Seite */
.kb-wire { position: relative; display: flex; flex-direction: column; gap: .4rem; width: 100%; max-width: 150px; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 10px; padding: .55rem; }
.kb-wire-bar { display: flex; gap: .25rem; padding-bottom: .15rem; }
.kb-wire-bar i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.kb-wire-h { display: block; height: 9px; width: 62%; border-radius: 3px; background: var(--text-muted); }
.kb-wire-t { font-size: .82rem; font-weight: 700; line-height: 1.2; color: var(--text); }
.kb-wire-img { display: block; height: 46px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--border-strong); }
.kb-wire-l { display: block; height: 6px; border-radius: 3px; background: var(--border-strong); }
.kb-wire-l.kb-s { width: 60%; }
.kb-wire-lg { max-width: 230px; gap: .5rem; padding: .7rem; }
.kb-wire-lg .kb-wire-img { height: 58px; }
.kb-badge { position: absolute; right: -8px; top: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-hover); color: var(--accent-ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.kb-badge svg { width: 16px; height: 16px; }
.kb-pair { display: flex; gap: 1.2rem; justify-content: center; width: 100%; }

/* ---------- Leistungsumfang: 4 Kacheln ---------- */
.kb-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.kb-tile { display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(1.1rem, 2.2vw, 1.5rem); min-width: 0; }
.kb-tile .kb-gfx { min-height: 200px; }
.kb-tile h3 { font-size: 1.3rem; margin-top: 1.3rem; }
.kb-tile p { color: var(--text-muted); margin-top: .6rem; }
@media (max-width: 760px) { .kb-tiles { grid-template-columns: 1fr; } }

/* Beratung: 4 Wochentermine */
.kb-cals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; width: 100%; }
.kb-cal { display: flex; flex-direction: column; align-items: center; gap: .35rem; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 10px; padding: .6rem .3rem; text-align: center; color: var(--accent-hover); }
.kb-cal em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--text); }
.kb-cal b { font-size: .78rem; font-weight: 600; color: var(--text-muted); }

/* Werbung: 2 Kampagnen mit 4 Kontrollen */
.kb-camps { display: flex; flex-direction: column; gap: .6rem; width: 100%; max-width: 330px; }
.kb-camp { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 10px; padding: .6rem .8rem; }
.kb-camp-name { font-size: .9rem; font-weight: 700; color: var(--text); }
.kb-gfx-cap { font-size: .85rem; font-weight: 600; color: var(--text-muted); text-align: center; }

/* Monatsübersicht: 3 Kennzahlen mit Verlauf */
.kb-report { display: flex; flex-direction: column; gap: .5rem; width: 100%; max-width: 360px; }
.kb-rep-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 10px; padding: .55rem .8rem; }
.kb-rep-row > span { font-size: .85rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.kb-rep-row svg { flex: none; width: 76px; height: 24px; color: var(--accent-hover); }

/* ---------- Umsetzungen: 4 Karten ---------- */
.kb-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.kb-card { display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1rem 1rem 1.4rem; min-width: 0; }
.kb-card .kb-gfx { height: 210px; padding: .9rem; }
.kb-card h3 { font-size: 1.2rem; margin-top: 1.1rem; }
.kb-card p { color: var(--text-muted); margin-top: .5rem; font-size: .98rem; }
@media (max-width: 1060px) { .kb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kb-cards { grid-template-columns: 1fr; } }

/* Formular-Nachbau */
.kb-formmock { display: flex; flex-direction: column; gap: .35rem; width: 100%; max-width: 190px; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 10px; padding: .6rem; }
.kb-field { display: block; border: 1px solid var(--border-strong); border-radius: 6px; padding: .22rem .5rem; }
.kb-field i { font-style: normal; font-size: .78rem; color: var(--text-muted); }
.kb-field-tall { padding-bottom: .55rem; }
.kb-fbtn { display: block; text-align: center; font-size: .8rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-hover); border-radius: 999px; padding: .3rem .5rem; }

/* Anzeige-Nachbau */
.kb-admock { display: flex; flex-direction: column; gap: .5rem; width: 100%; max-width: 210px; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 10px; padding: .6rem; }
.kb-ad-head { display: flex; align-items: center; gap: .45rem; }
.kb-ad-av { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-hover); }
.kb-ad-name { font-size: .78rem; font-weight: 700; line-height: 1.2; color: var(--text); }
.kb-ad-img { height: 64px; }
.kb-ad-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.kb-ad-foot .kb-wire-l { flex: 1 1 auto; max-width: 40px; }
.kb-ad-btn { font-size: .75rem; font-weight: 700; color: var(--text); border: 1px solid var(--border-strong); border-radius: 6px; padding: .2rem .45rem; background: var(--surface); white-space: nowrap; }

/* Flyer-Nachbau: Vorder- und Rückseite */
.kb-flyers { display: flex; gap: .7rem; justify-content: center; }
.kb-flyer { position: relative; display: flex; flex-direction: column; gap: .4rem; width: 86px; height: 128px; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 6px; padding: .45rem .45rem 1.6rem; }
.kb-flyer-img { display: block; height: 48px; border-radius: 4px; background: var(--accent-soft); border: 1px solid var(--border-strong); }
.kb-flyer-side { position: absolute; left: 0; right: 0; bottom: .35rem; text-align: center; font-size: .75rem; font-weight: 700; color: var(--text-muted); }

/* ---------- Ablauf: Zeitstrahl ---------- */
.kb-line { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.kb-stop { position: relative; flex: 1 1 0; min-width: 0; padding-right: 1.6rem; display: flex; flex-direction: column; align-items: flex-start; }
.kb-stop:last-child { padding-right: 0; }
.kb-stop:not(:last-child)::before { content: ""; position: absolute; top: 25px; left: 64px; right: 8px; height: 2px; background: var(--accent-hover); border-radius: 2px; }
.kb-no { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-hover); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.kb-stop h3 { font-size: 1.3rem; margin-top: 1.1rem; }
.kb-stop p { color: var(--text-muted); margin-top: .6rem; flex: 1 1 auto; }
.kb-tag { margin-top: auto; align-self: flex-start; font-size: .85rem; font-weight: 700; color: var(--accent-hover); background: var(--accent-soft); border-radius: 999px; padding: .3rem .8rem; }
.kb-stop p + .kb-tag { margin-top: 1rem; }
@media (max-width: 860px) {
  .kb-line { flex-direction: column; }
  .kb-stop { flex: none; padding-right: 0; padding-left: 4.4rem; padding-bottom: 2rem; min-height: 52px; }
  .kb-stop:last-child { padding-bottom: 0; }
  .kb-no { position: absolute; left: 0; top: 0; }
  .kb-stop h3 { margin-top: .5rem; }
  .kb-stop:not(:last-child)::before { top: 60px; bottom: 8px; left: 25px; right: auto; width: 2px; height: auto; }
}

/* ---------- Zusammenspiel: 3 Verweis-Karten ---------- */
.kb-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.kb-links > li { display: flex; }
.kb-link { display: flex; align-items: center; gap: 1rem; width: 100%; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.kb-link:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.kb-lico { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hover); border: 1.5px solid var(--accent); }
.kb-ltxt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1 1 auto; line-height: 1.35; text-align: left; }
.kb-ltxt b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.kb-ltxt span { color: var(--text-muted); font-size: .95rem; }
.kb-larrow { flex: none; font-size: 1.2rem; color: var(--accent-hover); transition: transform .25s var(--ease); }
.kb-link:hover .kb-larrow { transform: translate(3px, -3px); }
.kb-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-lg); }
.kb-link-prose a, #zusammenspiel .sec-head p a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .kb-links { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .kb-link, .kb-larrow { transition: none; } .kb-link:hover { transform: none; } }

/* ---------- Anfrage ---------- */
.kb-person { margin: 1.8rem 0 0; }
.kb-person img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.kb-contact { margin-top: 1.2rem; padding-top: 1.2rem; align-items: flex-start; }
.kb-contact div { gap: .15rem; }
.kb-contact a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.kb-contact a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.kb-form .req { color: var(--accent-hover); }
.kb-form .form-note { color: var(--text-muted); }
.kb-form .form-status { color: var(--accent-hover); }
.kb-form .form-status.error { color: #b42318; background: color-mix(in srgb, #b42318 10%, var(--bg-elev)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kb-form .form-status.error { color: #ffb4ac; background: color-mix(in srgb, #ff6b5e 14%, var(--bg-elev)); }
}
:root[data-theme="dark"] .kb-form .form-status.error { color: #ffb4ac; background: color-mix(in srgb, #ff6b5e 14%, var(--bg-elev)); }

.kb-form-copy h2, #anfrage .kx-check-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

