:root {
  --closed-case-color: #72df9c;
  --heading-size: clamp(1.45rem, 2.7vw, 2.2rem);
  --ink: #191919;
  --muted: #4f4b4a;
  --red: #be131b;
  --soft: #f8f6f5;
  --line: #e6dfdc;
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  scroll-padding-top: 134px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; background: var(--soft); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; }
h1, h2 { font-size: var(--heading-size); }
h3 { font-size: 1.32rem; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ff686d; outline-offset: 4px; }
.wrap { width: min(1280px, calc(100% - clamp(32px, 7vw, 112px))); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 4; padding: .75rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 2; background: white; border-bottom: 1px solid var(--line); }
.header-inner, nav, .actions, .footer-inner { display: flex; align-items: center; flex-wrap: wrap; }
.header-inner, .footer-inner { justify-content: space-between; gap: 12px; padding-block: 12px; }
.header .header-inner {
  justify-content: center;
  min-height: 76px;
}
.header nav { justify-content: center; }
.brand {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(80px, 8vw, 108px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 18px #0005;
}
.brand img { display: block; width: 88%; height: auto; }
.brand::before,
.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 2.5px));
}
.brand::before { background: var(--red); }
.brand::after {
  background: conic-gradient(transparent 0deg 252deg, #ff444d 275deg, #ffc2c5 312deg, transparent 329deg);
  animation: logo-light 2.9s linear infinite;
}
@keyframes logo-light { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .brand::after { animation: none; }
}
nav { gap: clamp(12px, 3vw, 36px); }
nav a { text-decoration: none; font-size: .92rem; font-weight: 700; }
nav a:hover { text-decoration: underline; }
.actions { gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1rem; border-radius: 9px; text-decoration: none; font-weight: 750; }
.primary { background: var(--red); color: white; }
.primary:hover { background: #a10d14; }
.outline { border: 1px solid #aaa2a0; }
.outline:hover { background: #ffffff18; }
.hero { background: radial-gradient(ellipse at 90% 35%, #442326, transparent 56%), #151515; color: white; }
.hero-inner { min-height: 530px; display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: clamp(20px, 4vw, 60px); padding-block: clamp(44px, 8vw, 112px); }
.eyebrow { color: #ff9296; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; font-weight: 800; }
h1 { margin-block: .45em .3em; }
h1 span { color: #ff444d; }
.hero-copy > p:not(.eyebrow) { color: #efdfdf; max-width: 37ch; }
figure img { display: block; width: 100%; height: auto; border-radius: 13px; }
.section { padding-block: clamp(42px, 6vw, 82px); }
.help-band { background: #f3e9e9; border-bottom: 1px solid var(--line); }
.help-grid, .topic-grid { display: grid; gap: clamp(14px, 3vw, 32px); }
.help-grid { grid-template-columns: 1.15fr 1fr 1fr; align-items: start; }
.topic-grid { grid-template-columns: 1fr 1fr; margin-top: 24px; }
.contact-card, .topic-grid article { background: white; border: 1px solid var(--line); border-radius: 13px; padding: clamp(18px, 3vw, 32px); }
.section p { margin-top: .65rem; color: var(--muted); max-width: 64ch; }
.section article a, .contact-card a { display: inline-block; margin: .65rem .65rem 0 0; color: #9b1017; font-weight: 700; }
.initiative { background: white; border-block: 1px solid var(--line); }
.site-footer { background: #151515; color: white; }
.footer-inner { padding-block: 26px; }
@media (max-width: 780px) {
  .hero-inner, .help-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-inner { gap: 30px; }
}
@media (max-width: 520px) {
  .topic-grid { grid-template-columns: 1fr; }
  nav { gap: 8px 12px; }
  nav .button { padding-inline: .65rem; }
}
.audience { background: #f3e9e9; border-block: 1px solid var(--line); }
.audience .topic-grid { margin-top: 0; }
.audience ol, .audience ul { padding-left: 1.35rem; }
.audience li + li { margin-top: .5rem; }
.audience a { font-weight: 700; }
@media (max-width: 780px) {
  .header { position: relative; }
  .header .header-inner { padding-bottom: 48px; }
  :root { scroll-padding-top: 12px; }
}
.hero-chat .hero-inner {
  grid-template-columns: 1fr;
  min-height: clamp(530px, 48vw, 740px);
  justify-items: center;
  text-align: center;
}
.hero-chat {
  background: url("assets/kinderschutz-chat-kapuze.jpg") center center / cover no-repeat #151515;
}
.hero-chat .hero-copy {
  container-type: normal;
  width: min(100%, 34vw, 35rem);
  padding: 0;
}
.hero-chat .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
.hero-chat .actions { justify-content: center; }
.hero-image-alt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.initiative-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-chat {
    background-size: 100% auto;
    background-position: center top;
  }
  .hero-chat .hero-inner {
    min-height: 0;
    padding-top: calc(50vw + 30px);
    padding-bottom: 42px;
  }
  .hero-chat .hero-copy { width: min(100%, 35rem); }
  .initiative-inner { grid-template-columns: 1fr; }
}
.header .header-inner { width: 100%; padding-inline: 8px; justify-content: space-between; }
.header-name { color: #000; font-weight: 750; }
.header-ksk-dot { display: inline-block; width: .42em; aspect-ratio: 1; margin-inline-start: .18em; border-radius: 50%; background: var(--red); vertical-align: .12em; }
.header-byline { display: block; font-size: .875rem; font-weight: 500; line-height: 1.3; }
.header-super-user {
  display: block;
  flex: 0 0 auto;
  text-align: center;
  line-height: 1.15;
  padding: 6px 10px;
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--icon-fg);
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
}
.header-super-user:hover { background: #483321; }
@media (prefers-reduced-motion: no-preference) {
  body:not(:has(.hero-loader[open])) .header-super-user { animation: header-super-user-pulse 1.8s ease-out .7s 10; }
}
@keyframes header-super-user-pulse {
  from { box-shadow: 0 0 0 0 #f3c77866; }
  to { box-shadow: 0 0 0 7px #f3c77800; }
}

.header-actions { margin-inline-start: auto; }
@media (max-width: 520px) {
  .header-name { flex-basis: 100%; }
}
.header-actions, .header-socials { display: flex; align-items: center; gap: 4px; }
.header-actions { gap: 10px; }
.menu-toggle, .header-socials > * {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border-radius: 8px;
}
.menu-toggle {
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span { width: 18px; height: 2px; border-radius: 1px; background: currentColor; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle:hover, .header-socials a:hover { background: #f3e9e9; }
.header-socials img { display: block; width: 25px; height: 25px; object-fit: contain; }
.header-socials span { opacity: .55; }
@media (max-width: 390px) {
  .header-actions { gap: 6px; }
  .header-socials { gap: 2px; }
  .header-socials > * { width: 28px; }
  .header-socials img { width: 20px; height: 20px; }
  .menu-toggle { width: 34px; }
  .header-super-user { padding-inline: 6px; font-size: .73rem; }
}

.header #navigation {
  position: absolute;
  z-index: 1;
  top: calc(100% + 8px);
  right: 16px;
  display: grid;
  gap: 3px;
  width: min(280px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 32px #0003;
}
.header #navigation[hidden] { display: none; }
.header #navigation a { padding: 10px 12px; }
.header #navigation a:not(.primary):hover { background: var(--soft); }
@media (max-width: 480px) {
  .header #navigation { top: calc(100% + 46px); }
}
@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}
.hero-chat { position: relative; isolation: isolate; --chat-scene: url("assets/kinderschutz-chat-kapuze.jpg"); background-image: var(--chat-scene); }
.hero-finale { position: absolute; inset: 0; }
.hero-drawing .hero-inner { visibility: hidden; }
.hero-loader.hero-drawing { background-image: radial-gradient(ellipse at center, #20171a, #151515 72%); }
.hero-split { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; visibility: hidden; }
.hero-drawing .hero-split { visibility: visible; }
.hero-half { position: absolute; inset: 0; background: var(--chat-scene) center / cover no-repeat; }
.hero-half-left { clip-path: polygon(0 0, 51% 0, 48.5% 32%, 51% 49%, 48% 76%, 50% 100%, 0 100%); --split-distance: -2.5%; }
.hero-half-right { clip-path: polygon(51% 0, 100% 0, 100% 100%, 50% 100%, 48% 76%, 51% 49%, 48.5% 32%); --split-distance: 2.5%; }
.hero-drawing .hero-half { animation: hero-open-split .6s ease-out both; }
@keyframes hero-open-split { to { transform: translateX(var(--split-distance)); } }
.hero-finale {
  display: grid;
  isolation: isolate;
  justify-items: center;
  align-content: center;
  gap: clamp(10px, 2vw, 22px);
  padding: 48px 20px 20px;
  text-align: center;
}
.hero-finale[hidden] { display: none; }
.hero-finale-content { display: grid; justify-items: center; }
.hero-finale-content[hidden] { display: none; }
.hero-portrait-ready .hero-finale h2 { animation: hero-title-appear .3s ease-out .48s both; }
@keyframes hero-title-appear {
  from { opacity: 0; visibility: hidden; }
  to { opacity: 1; visibility: visible; }
}
.hero-portrait { width: clamp(155px, 29vw, 365px); }
.hero-portrait img { display: block; width: 100%; height: auto; }
.hero-finale h2 { color: white; }
@media (max-width: 900px) {
  .hero-finale { padding-top: calc(50vw + 16px); }
}
.hero-loader {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: hidden;
}
.hero-loader::backdrop { background: #151515; }
body:has(.hero-loader[open]) { overflow: hidden; }
.hero-loader {
  --loader-status-space: clamp(76px, 23vh, 185px);
  --loader-scene-position: center;
  background-size: 100% auto;
  background-position: var(--loader-scene-position);
}
.hero-loader .hero-half {
  background-size: 100% auto;
  background-position: var(--loader-scene-position);
}
.hero-loader .hero-inner {
  height: calc(100% - var(--loader-status-space));
  min-height: 0;
  padding: 0;
}
.hero-loader .hero-copy { width: 100%; }
.hero-loader .hero-copy > .loader-title {
  color: white;
  margin-top: .35em;
  font-size: min(calc(var(--heading-size) * 2), 11vw, 16vh);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -.035em;
}
.loader-title span { color: #ff444d; }
.hero-loader .hero-finale {
  bottom: var(--loader-status-space);
  padding: 12px 16px;
}
@media (max-aspect-ratio: 1/1) {
  .hero-loader { --loader-scene-position: center top; }
  .hero-loader .hero-inner {
    padding-top: min(50vw, 42vh);
  }
}
.loader-status {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  color: white;
  background: linear-gradient(transparent, #151515d9);
  pointer-events: none;
}
.loader-logo {
  position: relative;
  inset: auto;
  transform: none;
  width: min(146px, max(34px, calc(var(--loader-status-space) - 47px)));
}
.loader-logo img { animation: loader-logo-spin 1.2s ease-in-out both; }
@keyframes loader-logo-spin { to { rotate: 3turn; } }
.loader-progress { width: min(230px, 58vw); height: 8px; accent-color: #ff444d; }
.loader-percent { font-size: .875rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.hero-loader .hero-portrait { width: min(365px, 57vw, 36vh); }

/* Keep the portrait and the first line together in the intro finale. */
.hero-loader .hero-finale { row-gap: 0; }
.hero-loader .hero-finale h2 { position: relative; z-index: 1; margin-top: -.43em; font-size: min(calc(var(--heading-size) * 2), 10vw, 13vh); }

#start.hero-chat { --chat-scene: url("assets/ksk-startseite-festnahme.jpg"); }

.entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry-grid article { display: flex; flex-direction: column; align-items: flex-start; }
@media (max-width: 780px) {
  .entry-grid { grid-template-columns: 1fr; }
}

:root {
  --ink: #fafafa;
  --muted: #d2d2d2;
  --soft: #0a0a0a;
  --line: #343434;
}
.skip-link { color: #101010; }
.header { background: #080808; }
.header-name { color: var(--ink); }
.header-byline { color: var(--muted); }
.menu-toggle { background: #151515; }
.menu-toggle:hover, .header-socials a:hover { background: #252525; }
.header #navigation { background: #111; color: var(--ink); }
.header #navigation a:not(.primary):hover { background: #252525; }
main .primary { background: #fff; color: #101010; border-radius: 6px; }
main .primary:hover { background: #ddd; }
#start .eyebrow { color: var(--red); }
#start h1 { font-size: min(11vw, clamp(2.75rem, 6vw, 5.5rem)); }
#start .home-hero-tagline { font-size: clamp(1.1rem, 2.3vw, 1.65rem); font-weight: 700; }
#start .hero-copy > p:not(.eyebrow) { color: #e3e3e3; }
#start .hero-copy { text-shadow: 0 2px 14px #000; }
#start .actions { text-shadow: none; }
#arbeit .entry-grid { margin-top: 0; }
#arbeit .entry-grid article {
  background: linear-gradient(150deg, #1b1b1b, #101010 75%);
  border-radius: 10px;
  border-top: 2px solid #878787;
  align-items: center;
  text-align: center;
}
#arbeit .entry-grid article, .guidance-grid .guidance-card, .home-case-overview .case-stat, .team-card {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  #arbeit .entry-grid article:hover, .guidance-grid .guidance-card:hover, .home-case-overview .case-stat:hover, .team-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 15px 30px #0009, 0 0 0 1px #be131b55;
  }
}
.guidance-grid .guidance-card:focus-within, .home-case-overview .case-stat:focus-within, .team-card:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 1px #be131b55;
}
@media (prefers-reduced-motion: reduce) {
  #arbeit .entry-grid article, .guidance-grid .guidance-card, .home-case-overview .case-stat, .team-card { transition: none; }
  #arbeit .entry-grid article:hover, .guidance-grid .guidance-card:hover, .home-case-overview .case-stat:hover, .team-card:hover { transform: none; }
}
#arbeit h3 { color: var(--ink); font-size: clamp(1.25rem, 1.65vw, 1.52rem); }
#arbeit article p { margin-top: .75rem; text-wrap: balance; }
@media (min-width: 781px) and (max-width: 980px) {
  #arbeit .entry-grid article { padding-inline: 16px; }
}
.work-icon {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--icon-fg);
}
.work-icon-chat {
  --icon-bg: #162b3e;
  --icon-border: #31506b;
  --icon-fg: #8bcaff;
}
.work-icon-file, .header-super-user, .case-update-meta :is(time, .case-update-undated) {
  --icon-bg: #352718;
  --icon-border: #654a2a;
  --icon-fg: #f3c778;
}
.work-icon-forward {
  --icon-bg: #3c1a22;
  --icon-border: #6e303e;
  --icon-fg: #ff919c;
}
.work-icon::before, .work-icon::after {
  content: "";
  position: absolute;
}
.work-icon-chat::before {
  inset: 12px 10px 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.work-icon-chat::after {
  top: 26px;
  left: 15px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: var(--icon-bg);
  transform: skewY(-28deg);
}
.work-icon-file::before {
  inset: 10px 13px;
  border: 2px solid currentColor;
  border-radius: 2px;
}
.work-icon-file::after {
  inset: 17px 17px auto;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}
.work-icon-forward::before {
  top: 20px;
  left: 11px;
  width: 19px;
  height: 2px;
  background: currentColor;
}
.work-icon-forward::after {
  top: 16px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.initiative { background: #111; }
.initiative figure { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.initiative figure img { border-radius: 0; }
.site-footer { background: #080808; color: var(--muted); }


.ksk-ticker {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(60px, 5.8vw, 76px);
  margin-block: clamp(16px, 4vw, 48px) clamp(28px, 5vw, 64px);
  padding-block: 15px;
  overflow: hidden;
  background: #fff;
  color: #101010;
}
.ksk-ticker-window { overflow: hidden; }
.ksk-ticker-track {
  display: flex;
  width: max-content;
  animation: ksk-scroll 34s linear infinite;
}
.ksk-ticker-track ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ksk-ticker-track li {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding-inline-start: clamp(16px, 3vw, 32px);
  font-size: clamp(.9rem, 1.6vw, 1.25rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ksk-ticker-track li::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: #be131b;
  transform: rotate(45deg);
}
.ksk-ticker:hover .ksk-ticker-track,
.ksk-ticker:focus-within .ksk-ticker-track { animation-play-state: paused; }
@keyframes ksk-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ksk-ticker-track ul[aria-hidden] { display: none; }
  .ksk-ticker-track { width: 100%; animation: none; }
  .ksk-ticker-track ul { flex-wrap: wrap; justify-content: center; gap: 10px 18px; padding-inline: 16px; }
  .ksk-ticker-track li { padding-inline-start: 0; white-space: normal; }
}

#was-du-tun-kannst { padding-top: 0; }
.next-steps {
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111;
}
.next-steps ul {
  display: grid;
  gap: 12px;
  max-width: 78ch;
  padding-left: 1.35rem;
  margin: 20px 0 0;
  color: var(--muted);
}
.next-steps li::marker { color: #ff727b; }
.next-steps strong { color: var(--ink); }

.next-steps .contact-note {
  max-width: 78ch;
  margin-top: 24px;
  padding: 14px 16px;
  border-inline-start: 2px solid #ff727b;
  background: #1b1b1b;
}

.contact-form { max-width: 760px; display: grid; gap: 10px; }
.contact-form label { margin-top: 6px; font-weight: 700; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #686868;
  border-radius: 6px;
  background: #1b1b1b;
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; margin-top: 8px; border: 0; cursor: pointer; }
.contact-page {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(24px, 7vw, 100px);
  padding-top: clamp(72px, 9vw, 124px);
}
.contact-intro h1 { margin-top: 0; }
.contact-form label span { color: var(--muted); font-weight: 400; }
.contact-code { min-inline-size: 0; display: grid; gap: 10px; margin: 8px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.contact-code legend { font-weight: 750; padding-inline: 5px; }
.contact-code-display { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact-code-value { padding: 5px 10px; border-radius: 4px; background: #fff; color: #101010; font: 700 1.35rem/1.5 monospace; letter-spacing: .14em; }
@media (max-width: 780px) {
  .contact-page { grid-template-columns: 1fr; }
}




:is(.guidance-card, .youth-detail .next-steps, .next-steps.chat-check) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-inline-end: max(clamp(20px, 4vw, 42px), 34%);
}
:is(.guidance-card, .youth-detail .next-steps, .next-steps.chat-check)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 48%;
  background:
    linear-gradient(90deg, #111 0%, transparent 58%),
    var(--guidance-image) right center / cover no-repeat;
  opacity: .43;
  pointer-events: none;
}
@media (max-width: 760px) {
  :is(.guidance-card, .youth-detail .next-steps, .next-steps.chat-check) { padding-inline-end: clamp(20px, 4vw, 42px); }
  :is(.guidance-card, .youth-detail .next-steps, .next-steps.chat-check)::before { width: 80%; opacity: .18; }
}

.ksk-subpage { padding-top: clamp(76px, 10vw, 128px); }
.ksk-subpage h1 { margin: 0 0 30px; }
.ksk-subpage .next-steps { max-width: 820px; }
.header #navigation [aria-current="page"] { text-decoration: underline; }
.team-page h1 { text-align: center; margin-block-end: 12px; }
.team-intro { max-width: 66ch; margin-inline: auto; text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 24px); margin-top: clamp(24px, 5vw, 42px); }
.team-card {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 2px solid #878787;
  border-radius: 10px;
  background: linear-gradient(150deg, #1b1b1b, #101010 75%);
}
.team-portrait { min-height: clamp(130px, 18vw, 230px); background: #151515; }
.team-portrait img { display: block; width: 100%; height: 100%; max-height: 260px; object-fit: cover; object-position: center 28%; }
.team-card-body { display: grid; align-content: center; gap: 8px; padding: clamp(12px, 2.4vw, 28px); min-width: 0; }
.team-card h2 { font-size: min(var(--heading-size), 1.6rem); overflow-wrap: anywhere; }
.team-card p { color: var(--muted); }
.team-handle { font-size: .85rem; overflow-wrap: anywhere; }
.team-socials { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 5px; }
.section .team-socials .button { display: inline-flex; margin: 0; padding-inline: 10px; border: 1px solid var(--line); color: var(--ink); font-size: .83rem; }
.section .team-socials .button:hover { border-color: var(--red); background: #201416; }
.impressum-address { margin-block: 12px; color: var(--ink); font-style: normal; }
@media (max-width: 680px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .team-card { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
}

.video-overview { padding-block-end: 0; }
.video-overview h1 { margin: 0; text-align: center; }
.case-overview-intro, .section .case-overview-intro { max-width: 62ch; margin: 12px auto 0; text-align: center; }
.video-overview .case-stats {
  width: min(100%, 480px);
  margin: 22px auto 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #161616;
}
.video-overview .case-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px clamp(8px, 2vw, 16px);
  border: 0;
  border-radius: 0;
  background: transparent;
}
.video-overview .case-stat + .case-stat { border-inline-start: 1px solid var(--line); }
.video-overview .case-stat dt { display: flex; gap: 6px; font-size: clamp(.75rem, 1.6vw, .9rem); text-align: start; }
.video-overview .case-icon { flex: 0 0 24px; width: 24px; height: 24px; font-size: .9rem; }
.video-overview .case-stat dd { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.6rem); }
.case-page-ticker { width: 100%; max-width: none; margin-inline: 0; }
.home-case-overview { padding-top: 0; text-align: center; }
.home-case-overview .case-stat { position: relative; }
.case-stat-link { text-decoration: none; }
.case-stat-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.case-stat-link:focus-visible { outline: none; }
.case-stat-link:focus-visible::after { outline: 2px solid currentColor; outline-offset: 3px; }
.case-group { scroll-margin-block-start: 120px; }
.case-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); margin: 16px 0 0; }
.case-stat { padding: clamp(10px, 3vw, 24px); border: 1px solid var(--line); border-top-color: var(--stat-accent); border-radius: 10px; background: #161616; color: var(--stat-accent); text-align: center; }
.case-stat-open { --stat-accent: #ffc07c; --stat-tint: #352617; }
.case-stat-closed { --stat-accent: var(--closed-case-color); --stat-tint: #172d22; }
.case-stat dt { display: grid; justify-items: center; gap: 8px; color: var(--stat-accent); font-size: clamp(.78rem, 1.7vw, 1rem); font-weight: 650; }
.case-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--stat-tint); color: var(--stat-accent); font-size: 1.4rem; line-height: 1; }
.case-stat dd { margin: 2px 0 0; font-size: clamp(1.65rem, 5vw, 3rem); font-weight: 750; line-height: 1.2; }
.ksk-subpage .video-playlist { margin-bottom: 20px; max-width: none; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.video-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #191919; }
.video-card-link { display: block; text-decoration: none; }
.video-card-title { display: block; padding: 12px; font-weight: 700; line-height: 1.4; }
.video-card-link:hover .video-card-title { text-decoration: underline; }
.video-thumb { display: grid; position: relative; place-items: center; aspect-ratio: 16 / 9; background: #090909; }
.video-thumb[hidden], .video-frame[hidden] { display: none; }
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #ffffffb0; border-radius: 50%; background: #111c; color: #fff; }
.video-play::after { content: ""; margin-left: 3px; border-block: 7px solid transparent; border-left: 11px solid currentColor; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-card.is-playing { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
@media (max-width: 780px) { .video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .video-grid { grid-template-columns: 1fr; } }

.contact-form .contact-anonym { display: flex; align-items: center; gap: 10px; }
.contact-form .contact-anonym input { width: 18px; height: 18px; margin: 0; accent-color: #fff; }
.contact-form input:disabled { opacity: .55; }

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 28px);
}
.guidance-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.guidance-card .button { margin-top: auto; }
.guidance-card p { margin-bottom: 8px; }
.guidance-youth, .youth-detail .next-steps { --guidance-image: url("assets/ksk-maedchen-am-tisch.jpg"); }
.guidance-parent { --guidance-image: url("assets/ksk-eltern-handy.jpg"); }
.guidance-grid .guidance-card { padding-inline-end: clamp(20px, 4vw, 42px); }
.guidance-grid .guidance-card::before {
  width: 57%;
  opacity: .59;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.guidance-grid .guidance-parent::before { opacity: .78; filter: brightness(1.24); }
.guidance-card :is(h2, p) { text-shadow: 0 1px 5px #000; }
@media (max-width: 680px) {
  .guidance-grid .guidance-card::before { width: 72%; opacity: .46; }
  .guidance-grid .guidance-parent::before { opacity: .60; }
}
.youth-detail .next-steps { max-width: none; }
@media (max-width: 680px) {
  .guidance-grid { grid-template-columns: 1fr; }
}

.parent-guide { max-width: 1040px; }
.parent-guide .parent-intro { margin: 0 0 20px; }
.parent-guide { text-align: center; }
.parent-guide :is(h1, h2, h3) {
  margin: 0 auto 14px;
  font-size: var(--heading-size);
}
.parent-guide p, .parent-guide .next-steps { margin-inline: auto; }
.parent-guide .parent-jump, .parent-guide .app-picker { justify-content: center; }
.parent-guide .next-steps :is(ol, ul):not(.app-phone-steps) {
  margin-inline: auto;
  padding-inline-start: 0;
  list-style-position: inside;
}
.parent-guide .parent-apps summary { text-align: center; }
.parent-guide .app-phone-steps li { justify-content: center; }
.parent-guide > h1 + .parent-intro {
  max-width: 62ch;
  margin: 0 auto 24px;
  text-align: center;
}

.parent-guide .next-steps { max-width: none; margin-bottom: 20px; }
@property --contact-light-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.parent-guide .parent-contact {
  border: 2px solid transparent;
  background:
    linear-gradient(#111, #111) padding-box,
    conic-gradient(from var(--contact-light-angle, 0deg), var(--red) 0deg 291deg, #ed343d 318deg, #ff9da1 332deg, var(--red) 352deg) border-box;
  animation: contact-frame-light 4s linear infinite;
}
@keyframes contact-frame-light {
  to { --contact-light-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .parent-guide .parent-contact { animation: none; }
}
.parent-guide .parent-contact .actions { justify-content: center; }
.parent-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.parent-jump a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; }
.parent-jump a:hover, .parent-jump a:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.parent-checklist { display: grid; gap: 12px; max-width: 80ch; padding-left: 1.4rem; color: var(--muted); }
.parent-checklist li::marker { color: #ff727b; font-weight: 700; }
.parent-apps { display: grid; gap: 10px; margin-top: 20px; }
.parent-apps details { padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: #191919; }
.parent-apps summary { font-weight: 750; cursor: pointer; }
.parent-apps ol { margin-block: 12px; padding-left: 1.4rem; color: var(--muted); }
.parent-apps li + li { margin-top: 6px; }
.parent-apps a { font-size: .92rem; }

.app-picker { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.app-picker[hidden], .app-phone[hidden], .parent-apps details[hidden] { display: none; }
.app-picker button {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #1b1b1b;
  color: var(--phone-accent, #fff);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.app-picker button:hover,
.app-picker button[aria-pressed="true"] {
  background: #292929;
  border-color: var(--phone-accent, #ddd);
}
.app-picker button[data-app="instagram"] { --phone-accent: #ffa0b1; }
.app-guide-layout.has-app-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  align-items: center;
  margin-top: 20px;
  gap: clamp(16px, 4vw, 38px);
}
.has-app-picker .parent-apps { margin: 0; }
.has-app-picker .parent-apps summary { display: none; }
.app-phone {
  position: relative;
  width: min(100%, 270px);
  justify-self: center;
  padding: 6px;
  border: 1px solid #90949a;
  border-radius: 44px;
  background: linear-gradient(145deg, #a2a6aa, #242529 24%, #0a0b0c 66%, #777a7d);
  box-shadow: inset 0 0 0 2px #292b2d, 0 14px 28px #0009;
  --phone-accent: #ffa0b1;
}
.app-phone::before, .app-phone::after {
  content: "";
  position: absolute;
  width: 3px;
  background: #63676d;
  border-radius: 3px;
}
.app-phone::before { top: 91px; left: -3px; height: 44px; }
.app-phone::after { top: 103px; right: -3px; height: 34px; }
.app-phone[data-app="snapchat"], .app-picker button[data-app="snapchat"] { --phone-accent: #f9dc72; }
.app-phone[data-app="discord"], .app-picker button[data-app="discord"] { --phone-accent: #b6adff; }
.app-phone[data-app="tiktok"], .app-picker button[data-app="tiktok"] { --phone-accent: #9df3ed; }
.app-phone[data-app="whatsapp"], .app-picker button[data-app="whatsapp"] { --phone-accent: #8de3a0; }
.app-phone-screen {
  position: relative;
  min-height: 0;
  aspect-ratio: 9 / 18.5;
  padding: 60px 18px 36px;
  border: 2px solid #08090a;
  border-radius: 38px;
  background: radial-gradient(ellipse at top right, #292b30 0%, #151515 58%);
}
.app-phone-screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 68px;
  height: 19px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #060708;
  box-shadow: inset -5px 0 7px #101518;
}
.app-phone-screen::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 78px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: #dbdde0;
}
.app-phone-name { color: var(--phone-accent); font-size: 1.45rem; font-weight: 800; }
.app-phone-screen p { margin: 0 0 12px; font-size: .875rem; }
.parent-guide .app-phone-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.app-phone-steps li { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 10px; border: 1px solid #404040; border-radius: 8px; background: #202020; font-size: 1rem; }
.app-phone-steps li::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; border: 1px solid var(--phone-accent); border-radius: 2px; }
@media (max-width: 780px) {
  .app-guide-layout.has-app-picker { grid-template-columns: 1fr; }
}

.chat-check-section { padding-top: 0; }
.next-steps.chat-check { --guidance-image: url("assets/ksk-chat-selbstcheck.jpg"); }
.next-steps.chat-check::before { background-position: center, 69% 45%; }
.chat-check form { display: grid; gap: 16px; max-width: 800px; margin-top: 24px; }
.chat-check form[hidden], .chat-check-result[hidden] { display: none; }
.chat-check-question {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.chat-check-question legend {
  padding: 0;
  margin-block-end: 12px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.4;
}
.chat-check-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color-scheme: light;
}
.chat-check-choices label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.chat-check-choices label,
.chat-check-nav .button:not(.primary) {
  min-height: 44px;
  padding: .55rem 1rem;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #9b1017;
  font: inherit;
  font-weight: 700;
}
.chat-check-choices label:hover { background: #ddd; }
.chat-check-choices label:has(:checked) { background: #e5e5e5; }
.chat-check-choices label:has(:focus-visible) { outline: 2px solid #141414; outline-offset: -2px; }
.chat-check-choices input { margin: 0; accent-color: #9b1017; }
.chat-check button { justify-self: start; border: 0; cursor: pointer; }
.chat-check-result { max-width: 800px; margin-top: 20px; padding: 16px; border-inline-start: 3px solid #ff7c84; background: #1b1b1b; }
.chat-check-result[data-tone="warning"] { border-color: #ff7c84; }
.chat-check-result[data-tone="warning"] :is(h3, .chat-check-contact strong) { color: #ff8d94; }
.chat-check-result[data-tone="clear"] { border-color: #8be4a2; }
.chat-check-result[data-tone="clear"] h3 { color: #8be4a2; }
.chat-check-result[data-tone="unsure"] { border-color: #ffb469; }
.chat-check-result[data-tone="unsure"] h3 { color: #ffb469; }
.chat-check-result:not([data-tone="warning"]) .chat-check-contact { display: none; }
.chat-check-result .actions { margin-top: 14px; gap: 18px; }

.chat-check-question[hidden], .chat-check-nav [hidden] { display: none; }
.chat-check-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.chat-check-nav .button:not(.primary) { min-inline-size: 44px; }
.chat-check-nav .button:not(.primary):enabled:hover { background: #ddd; }
.chat-check-nav button:disabled { opacity: .55; cursor: default; }
#chat-check-loading { max-width: 800px; margin-top: 24px; }
#chat-check-percent { float: inline-end; font-variant-numeric: tabular-nums; }
#chat-check-progress { display: block; width: 100%; margin-top: 8px; accent-color: #be131b; }

.editorial { margin-block-end: 32px; }
.editorial-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
@media (max-width: 900px) { .editorial-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .editorial-cases { grid-template-columns: minmax(0, 1fr); } }
.editorial-card { padding: clamp(16px, 3vw, 28px); margin-block: 14px; background: #181818; border: 1px solid var(--line); border-radius: 12px; }
.editorial-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
.editorial-card summary { cursor: pointer; }
.editorial-card h3 { margin-block: 12px 8px; }
.editorial-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #ffc07c; }
.case-status-icon { display: inline-grid; place-items: center; width: 1em; font-size: 1rem; line-height: 1; }
.editorial-status.status-geschlossen { color: var(--closed-case-color); }
@media (prefers-reduced-motion: reduce) { .editorial-status.status-offen::before { animation: none; } }
.editorial form { display: grid; gap: 12px; max-width: 650px; margin-block: 16px; }
.editorial label { display: grid; gap: 5px; }
.editorial label.editorial-toggle { display: flex; gap: 8px; }
.editorial :is(input:not([type="checkbox"]), textarea, select) { width: 100%; padding: 10px; color: #fff; background: #222; border: 1px solid #999; border-radius: 6px; }
.editorial textarea { min-height: 110px; resize: vertical; }
.editorial button { justify-self: start; cursor: pointer; }
.editorial button:disabled { opacity: .65; cursor: default; }
.editorial-player { width: min(100%, 960px); aspect-ratio: 16 / 9; border: 0; }

.editorial-card.editorial-case {
  --case-accent: #ffc07c;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  min-width: 0;
  margin: 0;
  border-top: 3px solid var(--case-accent);
  background: linear-gradient(155deg, #212121, #141414 65%);
}
.editorial-card.editorial-case.status-geschlossen {
  --case-accent: var(--closed-case-color);
  background: linear-gradient(180deg, #172d22 0%, #141414 105px);
}
.case-card-header .editorial-status.status-geschlossen { --status-light-tip: #dfffeb; }
.case-card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
@property --case-status-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.case-card-header .editorial-status {
  position: relative;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .85rem;
}
@supports (mask-composite: exclude) {
  .case-card-header .editorial-status::after {
    content: "";
    position: absolute;
    inset: -2px;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(from var(--case-status-angle),
      transparent 0deg, currentColor 29deg, var(--status-light-tip, #fff) 40deg, transparent 44deg,
      transparent 180deg, currentColor 209deg, var(--status-light-tip, #fff) 220deg, transparent 224deg);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .case-card-header .editorial-status::after {
      animation: case-status-light 3.6s linear infinite;
    }
  }
}
@keyframes case-status-light { to { --case-status-angle: 360deg; } }
.case-demo { color: var(--muted); font-size: .85rem; }
.editorial-case h3, .case-page-summary > h1 { color: #ff444d; }
.editorial-case h3 { margin: 4px 0 0; font-size: clamp(1.25rem, 2.1vw, 1.75rem); overflow-wrap: anywhere; }
.editorial-case .case-location { margin: 0; color: var(--muted); }
.case-platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.case-platforms li { padding: 3px 9px; border: 1px solid var(--platform-accent, #777); border-radius: 5px; background: #191919; font-size: .83rem; }
.editorial-platforms { margin: 0; min-inline-size: 0; padding: 10px; border: 1px solid #999; border-radius: 6px; }
.editorial-platforms > div { display: flex; flex-wrap: wrap; gap: 8px; }
.editorial-platforms label { display: inline-flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.editorial-platforms label:has(:checked) { border-color: #ff7c84; }

.case-video {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  aspect-ratio: 16 / 9;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: .9rem;
}
.case-video span { font-size: 1.6rem; line-height: 1; }
a.case-video:hover { border-color: var(--case-accent); }

.editorial-case .case-location { display: flex; align-items: baseline; gap: 6px; min-block-size: 1.5em; }
.case-location-pin { flex: 0 0 auto; align-self: start; width: 1em; height: 1em; margin-block-start: .15em; }
.editorial-case .case-platforms { min-block-size: 1.7rem; align-content: start; }
@supports (grid-template-rows: subgrid) {
  .editorial-card.editorial-case {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    align-self: stretch;
    align-items: start;
  }
  .editorial-card.editorial-case:has(> .case-video) { grid-row: span 7; }
}
.case-platforms [data-platform="WhatsApp"] { --platform-accent: #25d366; color: #25d366; }

.case-group + .case-group { margin-block-start: clamp(32px, 5vw, 54px); }
.case-group h2 { margin-block-end: 10px; color: #ffc07c; }
.case-group.status-geschlossen h2 { color: var(--closed-case-color); }

.case-active-since { margin-inline-start: auto; color: var(--muted); font-size: .85rem; }

.case-card-action { padding-block-start: 10px; border-top: 1px solid var(--line); }
.case-card-action .button { gap: 10px; }
.case-group .case-card-action .button {
  border-color: #fff;
  background: #fff;
  color: #171717;
}
.case-group .case-card-action .button:hover { background: #e9e9e9; }

.editorial:has(> .case-page) { padding-block: clamp(46px, 6vw, 64px) 36px; }
.case-back { margin-block-end: 14px; font-size: .9rem; }
.case-page {
  --case-accent: #ffc07c;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.case-page-main { display: grid; gap: 16px; min-width: 0; }
.case-page #updates { grid-column: 1 / -1; }
.case-page > .editorial-card, .case-page-main > .editorial-card { min-width: 0; margin: 0; padding: clamp(16px, 3vw, 24px); }
@media (max-width: 760px) {
  .case-page { grid-template-columns: minmax(0, 1fr); }
}
.case-page.status-geschlossen { --case-accent: var(--closed-case-color); }
.case-page-summary > h1 { margin-block: 10px 8px; overflow-wrap: anywhere; }
.case-page-summary > .case-platforms { margin-block-start: 8px; }
.case-page-summary .case-page-block { margin-block-start: 16px; }
.case-page-block h2 { margin-block-end: 6px; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.case-page-block p + p { margin-block-start: 8px; }
.case-updates {
  --update-gap: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row dense;
  gap: var(--update-gap);
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.case-updates > li { position: relative; display: grid; min-width: 0; }
.case-updates > li:not(:last-child)::after {
  --light-direction: 180deg;
  --light-size: 100% 300%;
  --light-start: 0 100%;
  --light-end: 0 0;
  content: "";
  position: absolute;
  z-index: 1;
  inset: 100% auto auto calc(50% - 1px);
  inline-size: 2px;
  block-size: var(--update-gap);
  pointer-events: none;
  background: linear-gradient(var(--light-direction), #74343a 25%, #ff727d 47%, #fff4f5 50%, #74343a 70%);
  background-size: var(--light-size);
  background-position: var(--light-start);
  animation: update-connector-light 2.1s linear infinite;
}
@keyframes update-connector-light { to { background-position: var(--light-end); } }
@media (prefers-reduced-motion: reduce) {
  .case-updates > li:not(:last-child)::after { animation: none; background: #be535c; }
}
/* Alternate row direction so every connection touches adjacent cards. */
@media (min-width: 680px) and (max-width: 979px) {
  .case-updates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-updates > li:nth-child(4n + 1), .case-updates > li:nth-child(4n + 4) { grid-column: 1; }
  .case-updates > li:nth-child(4n + 2), .case-updates > li:nth-child(4n + 3) { grid-column: 2; }
  .case-updates > li:nth-child(odd):not(:last-child)::after {
    --light-direction: 90deg;
    --light-size: 300% 100%;
    --light-start: 100% 0;
    --light-end: 0 0;
    inset: calc(50% - 1px) auto auto 100%;
    inline-size: var(--update-gap);
    block-size: 2px;
  }
  .case-updates > li:nth-child(4n + 3):not(:last-child)::after {
    --light-direction: 270deg;
    --light-start: 0 0;
    --light-end: 100% 0;
    inset-inline-start: calc(-1 * var(--update-gap));
  }
}
@media (min-width: 980px) {
  .case-updates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-updates > li:nth-child(6n + 1), .case-updates > li:nth-child(6n + 6) { grid-column: 1; }
  .case-updates > li:nth-child(6n + 2), .case-updates > li:nth-child(6n + 5) { grid-column: 2; }
  .case-updates > li:nth-child(6n + 3), .case-updates > li:nth-child(6n + 4) { grid-column: 3; }
  .case-updates > li:not(:nth-child(3n)):not(:last-child)::after {
    --light-direction: 90deg;
    --light-size: 300% 100%;
    --light-start: 100% 0;
    --light-end: 0 0;
    inset: calc(50% - 1px) auto auto 100%;
    inline-size: var(--update-gap);
    block-size: 2px;
  }
  .case-updates > li:is(:nth-child(6n + 4), :nth-child(6n + 5)):not(:last-child)::after {
    --light-direction: 270deg;
    --light-start: 0 0;
    --light-end: 100% 0;
    inset-inline-start: calc(-1 * var(--update-gap));
  }
}
.case-update-card {
  min-width: 0;
  padding: clamp(12px, 2.5vw, 20px);
  border: 1px solid #383838;
  border-radius: 12px;
  background: linear-gradient(150deg, #202020 0%, #111 75%);
  box-shadow: 0 3px 12px #0004;
}
.case-update-card:focus-within {
  box-shadow: 0 0 0 2px var(--red);
}
.case-update-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 10px; margin-block-end: 8px; }
.case-update-meta time, .case-update-meta .case-update-undated {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--icon-fg);
  font-size: .85rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.case-update-event-status { --event-color: #ffc07c; }
.case-update-event-status .case-update-card { border-inline-start: 2px solid var(--event-color); }
.case-update-event-status .case-update-meta { margin-block-end: 0; }
.case-update-status { color: var(--event-color); font-size: .85rem; }
.case-update-tag { margin-inline-start: auto; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; color: #ff9399; font-size: .78rem; overflow-wrap: anywhere; }
.case-update-tag[data-color="orange"] { color: #ffc07c; }
.case-update-tag[data-color="gelb"] { color: #f4da75; }
.case-update-tag[data-color="gruen"] { color: #72df9c; }
.case-update-tag[data-color="blau"] { color: #86bfff; }
.case-update-tag[data-color="violett"] { color: #c3a8ff; }
.case-update-tag[data-color="grau"] { color: #d0d0d0; }
.case-update-tag-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.case-update-tag-fields > label { flex: 1 1 120px; min-width: 0; }
#updates { scroll-margin-top: 130px; }

.case-card-action { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.case-video-soon { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 5px; background: var(--red); color: #fff; font-size: .82rem; font-weight: 750; }
.case-progress { display: grid; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.case-step { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-inline-start: 2px solid var(--line); background: #141414; }
.case-step > span { display: grid; place-items: center; width: 1.6rem; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; font-size: .8rem; }
.case-step small { display: block; color: var(--muted); }
.case-step.current { border-color: #ffc07c; color: #ffc07c; }
.case-step.current.step-beweise { border-color: #86bfff; color: #86bfff; }
.case-step.done, .case-step.current.step-uebergabe { border-color: #72df9c; color: #72df9c; }


.case-attachment { margin-block-start: 10px; }
.case-attachment-image img { display: block; width: auto; max-width: min(100%, 220px); max-height: 140px; object-fit: contain; border-radius: 6px; }

.case-reopened { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-block: 12px; padding: 8px 10px; border-inline-start: 2px solid #ffc07c; color: #ffc07c; background: #241b12; }
.case-reopened time { color: var(--muted); font-size: .85rem; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.admin-toolbar > div, .admin-case-actions, .admin-delete-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-toolbar form { margin: 0; }
.admin-dashboard h2 { font-size: clamp(1.15rem, 2.4vw, 1.55rem); }
.admin-case-list { list-style: none; padding: 0; margin: 12px 0 0; }
.admin-case-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.admin-case-list p { font-size: .85rem; color: var(--muted); }
.admin-upload summary { font-weight: 700; }
.admin-edit-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(4px, 1.5vw, 10px);
  width: min(100%, 510px);
  margin-block-start: 8px;
}
main .admin-edit-actions > .button {
  appearance: none;
  display: grid;
  place-items: center;
  justify-self: stretch;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 48px;
  align-self: start;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #101010;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: clamp(.72rem, 2vw, .9rem);
  font-weight: 750;
  line-height: 1.2;
}
main .admin-edit-actions > .button:hover { background: #ddd; color: #101010; }
.editorial .case-editor { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.case-editor > :is(label:has(textarea), label:has([name="title"]), fieldset, .case-editor-note) { grid-column: 1 / -1; }
.case-editor-note, .admin-help { color: var(--muted); font-size: .8rem; line-height: 1.4; }
@media (max-width: 640px) {
  .editorial .case-editor { grid-template-columns: 1fr; }
  .admin-case-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-case-actions { grid-column: 1 / -1; }
}

.editorial-case .case-overview-description { margin: 0; }
.case-format-field { display: grid; gap: 6px; grid-column: 1 / -1; min-width: 0; }
.case-format-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.case-format-toolbar[hidden] { display: none; }
.case-format-toolbar button { min-height: 36px; padding: 4px 10px; background: #252525; color: var(--ink); border: 1px solid #777; border-radius: 6px; }
.case-format-toolbar button:hover { background: #383838; }
.case-description-text h3 { margin-block: 12px 5px; font-size: 1rem; }
.case-description-text ul { padding-inline-start: 1.3rem; margin-block: 6px 10px; }

.case-card-header .case-video-soon { margin-inline-start: auto; }

.case-update-actions { display: grid; gap: 6px; margin-block-start: 10px; }
.case-update-actions summary { width: fit-content; color: var(--muted); font-size: .85rem; }

.editorial-case[id] { scroll-margin-block-start: 120px; }
.editorial-case:target { outline: 2px solid var(--case-accent); outline-offset: 3px; }
.admin-delete-card { max-width: 660px; }
.admin-delete-card h2 { font-size: 1.4rem; margin-block-end: 10px; overflow-wrap: anywhere; }
.editorial label.admin-delete-check {
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #ff7c84;
  border-radius: 6px;
  background: #281719;
  cursor: pointer;
}
.admin-delete-check input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--red); }
.admin-delete-actions .button { font-family: inherit; font-size: .9rem; }
main .admin-delete-actions .primary { border: 1px solid #ff7c84; background: var(--red); color: #fff; }
main .admin-delete-actions .primary:hover { background: #a10d14; }

.case-update-title { margin: 12px 0 6px; color: #ff444d; font-size: 1.1rem; overflow-wrap: anywhere; }
.case-update-card .case-update-description { color: #fff; }
.case-update-cover { margin-block: 8px 12px; }
.case-update-cover img {
  width: 100%;
  max-width: 100%;
  max-height: 300px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.chat-scene-section { padding-top: 0; }
.chat-scene-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #101010; }
.chat-scene-warning { padding: clamp(22px, 4vw, 42px); background: #080808; text-align: center; }
.chat-scene-warning h2 { color: #ffdb61; text-transform: uppercase; }
.chat-scene-warning p { margin: 7px auto 14px; }
.chat-scene-warning button { font: inherit; font-weight: 700; cursor: pointer; border: 0; }
.chat-scene-warning button[hidden] { display: none; }
.chat-scene-progress {
  display: none;
  width: min(100%, 240px);
  height: 6px;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #40351b;
}
.chat-scene-countdown .chat-scene-progress { display: block; }
.chat-scene-progress span { display: block; width: 100%; height: 100%; background: #ffdb61; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .chat-scene-countdown .chat-scene-progress span { animation: chat-scene-progress-fill 4s linear both; }
}
@keyframes chat-scene-progress-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  .chat-scene-countdown h2 { animation: chat-scene-warning-appear 4s ease-out both; }
}
@keyframes chat-scene-warning-appear {
  from { opacity: .75; transform: scale(.94); }
  30%, to { opacity: 1; transform: scale(1); }
}
.chat-scene-visual { position: relative; isolation: isolate; display: grid; place-items: center; padding: clamp(14px, 4vw, 32px); }
.chat-scene-visual > img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chat-scene-conversation { width: min(100%, 600px); color: #fff; }
.chat-scene-conversation figcaption {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 5px 12px;
  border: 1px solid #606060;
  border-radius: 999px;
  background: #141414;
  font-size: .82rem;
  font-weight: 750;
}
.chat-scene-conversation ol { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chat-scene-conversation li {
  display: grid;
  gap: 3px;
  justify-self: start;
  max-width: min(75%, 298px);
  padding: 7px 10px;
  border: 1px solid #80505a;
  border-radius: 9px;
  background: #352025;
  font-size: .87rem;
  box-shadow: 0 6px 15px #0007;
}
.chat-scene-conversation li:nth-child(even) { justify-self: end; border-color: #516d80; background: #233744; }
.chat-scene-conversation strong { color: #ddd; font-size: .7rem; }
.chat-scene-message { display: grid; }
.chat-scene-message > span { grid-area: 1 / 1; }
.chat-scene-typed { display: none; }
.chat-scene-animated .chat-scene-message > span:first-child { opacity: 0; }
.chat-scene-animated .chat-scene-typed { display: block; }
.chat-scene-queued { opacity: 0; }
.chat-scene-typing .chat-scene-typed::after { content: ""; display: inline-block; height: .9em; margin-inline-start: 2px; border-inline-start: 1px solid #fff; vertical-align: -.06em; }
.chat-scene-copy { max-width: 900px; padding: clamp(18px, 4vw, 36px); margin-inline: auto; text-align: center; }
.chat-scene-copy h3 { font-size: var(--heading-size); margin-block-end: 12px; }
.heading-accent-dot { color: var(--red); }
.chat-scene-copy p { margin-inline: auto; }
.chat-scene-copy p + p { margin-block-start: 10px; }
@media (max-width: 680px) {
  .chat-scene-visual { padding: 0 12px 18px; }
  .chat-scene-visual > img { position: static; width: calc(100% + 24px); max-width: none; height: auto; margin-bottom: 14px; }
}

.initiative-copy h2 { margin-block-end: 12px; }
.initiative-copy p + p { margin-block-start: 12px; }

.legal-header { padding-block: 12px; border-bottom: 1px solid var(--line); }
.legal-page .next-steps + .next-steps { margin-block-start: 14px; }
.legal-page .next-steps h2 { font-size: min(var(--heading-size), 1.4rem); }
