@font-face {
  font-family: "Audiowide";
  src: url("../fonts/audiowide.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Hubot Sans";
  src: url("../fonts/hubot-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Hubot Sans";
  src: url("../fonts/hubot-sans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* Values from tokens/tokens.expressive.json, dark appearance. */
:root {
  --canvas: #0e1118;
  --surface: #161a24;
  --surface-elevated: #1d2231;
  --ink: #f2f4fa;
  --ink-muted: #a9b1c3;
  --line: #2c3344;
  --line-strong: #7a8498;
  --violet: #695ffa;
  --violet-soft: #8e85fc;
  --link: #a7a1ff;
  --live: #5ed6ff;

  --font-brand: "Audiowide", "Mona Sans", sans-serif;
  --font-display: "Clash Display", "Mona Sans", sans-serif;
  --font-text: "Mona Sans", system-ui, sans-serif;
  --font-app: "Hubot Sans", "Mona Sans", system-ui, sans-serif;

  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);

  --gutter: clamp(20px, 4.4vw, 64px);
  --bar: 104px;
  --rail: 44px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-rendering: geometricPrecision;
  scroll-padding-top: calc(var(--bar) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.016em;
}

:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--canvas);
}

/* Focused, the skip link takes its own strip and moves the page down. */
.skip-link {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: flex;
  align-items: center;
  height: 44px;
  padding-inline: var(--gutter);
  background: var(--surface-elevated);
  transform: translateY(-100%);
}
.skip-link:focus-visible {
  transform: none;
  outline-offset: -4px;
  box-shadow: none;
}
body:has(.skip-link:focus-visible) .masthead {
  top: 44px;
}
body:has(.skip-link:focus-visible) main {
  margin-top: 44px;
}

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 24px;
  min-height: var(--bar);
  padding: 10px var(--gutter);
  background: rgb(14 17 24 / 0.88);
  backdrop-filter: blur(24px) saturate(135%);
  box-shadow: inset 0 -1px 0 var(--line);
}

.wordmark {
  font-family: var(--font-brand);
  font-size: 22px;
  line-height: 1;
  color: var(--violet-soft);
  text-decoration: none;
}
.wordmark--inline {
  font-size: inherit;
  color: inherit;
}

.masthead__nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 4px 24px;
  font-size: 15px;
  font-weight: 500;
}
.masthead__nav a {
  padding-block: 8px;
  text-decoration: none;
}
.masthead__nav a:hover {
  color: var(--link);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(105deg, #695ffa, #6e5ff5 50%, #6158ed);
  box-shadow:
    0 0 0 1px rgb(142 133 252 / 0.5),
    0 8px 24px rgb(105 95 250 / 0.38),
    inset 0 1px 0 rgb(255 255 255 / 0.22);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  transition:
    box-shadow 160ms var(--ease-standard),
    transform 140ms var(--ease-standard);
}
.button:hover {
  box-shadow:
    0 0 0 1px rgb(142 133 252 / 0.7),
    0 10px 30px rgb(105 95 250 / 0.55),
    inset 0 1px 0 rgb(255 255 255 / 0.22);
}
.button:active {
  transform: scale(0.985);
}
.button--small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
}

.ghost {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}
.ghost:hover {
  background: rgb(105 95 250 / 0.16);
}

.signal-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 12px rgb(94 214 255 / 0.7);
}

main {
  position: relative;
}

/* One light source, top right. */
main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 920px;
  background:
    radial-gradient(56% 60% at 94% 2%, rgb(105 95 250 / 0.42), transparent 70%),
    radial-gradient(
      38% 44% at 80% 44%,
      rgb(143 215 255 / 0.13),
      transparent 72%
    ),
    linear-gradient(rgb(105 95 250 / 0.2), transparent 360px);
}

.opening {
  display: grid;
  gap: 44px;
  padding: calc(var(--bar) + 36px) var(--gutter) 64px;
}

.opening h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.opening__who {
  max-width: 34rem;
  margin-top: 22px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-muted);
}

.opening__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 30px;
}

.phone-link {
  padding-block: 12px;
  font-weight: 500;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}
.phone-link:hover {
  text-decoration-color: var(--live);
}

/* The question every first conversation starts with. A plain form. */
.ask__lead {
  color: var(--ink-muted);
}

.ask h2 {
  margin-top: 6px;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.ask__topics {
  display: grid;
  gap: 6px;
  margin: 22px -14px 0;
}

.ask label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
  padding: 14px;
  border-radius: 12px;
  background: rgb(22 26 36 / 0.55);
  cursor: pointer;
  transition: background-color 160ms var(--ease-standard);
}
.ask label:hover {
  background: rgb(35 41 56 / 0.7);
}
.ask label:has(:checked) {
  background: #2a2470;
}

.ask input {
  appearance: none;
  grid-row: span 2;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface) center / 16px no-repeat;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-standard),
    border-color 160ms var(--ease-standard);
}
.ask input:checked {
  border-color: var(--violet);
  background-color: var(--violet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m5.03 11.97 4.44 4.44L18.95 6a.75.75 0 0 1 1.1 1l-10 11a.75.75 0 0 1-1.08.03l-5-5a.75.75 0 1 1 1.06-1.06'/%3E%3C/svg%3E");
}

.ask__said {
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
}

.ask__answer {
  grid-column: 2;
  font-size: 15px;
  color: var(--ink-muted);
}
.ask__answer::before {
  content: "Meine Antwort: ";
}
.ask label:has(:checked) .ask__answer {
  color: #e8e5ff;
}

.ask__hint {
  max-width: 32rem;
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-muted);
}

.ask__submit {
  margin-top: 16px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.has-note-script .ask__submit {
  display: none;
}

.answers {
  padding: clamp(72px, 9vw, 128px) var(--gutter) 0;
}

.answers__intro p,
.course__intro p,
.contact > p {
  max-width: 34rem;
  margin-top: 18px;
  color: var(--ink-muted);
}

.answer {
  display: grid;
  gap: 14px;
  margin-top: clamp(56px, 8vw, 112px);
}

.answer__said {
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-muted);
}

/* Plain text until the visitor puts the topic on the note; then it freezes. */
.answer__body {
  position: relative;
  padding: 28px 24px;
  margin-inline: -24px;
  border-radius: 24px;
  transition:
    background-color 340ms var(--ease-standard),
    box-shadow 340ms var(--ease-standard);
}
.answer__body::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgb(142 133 252 / 0.9),
    rgb(143 215 255 / 0.5) 42%,
    rgb(167 240 255 / 0.12) 72%,
    transparent
  );
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 340ms var(--ease-standard);
  pointer-events: none;
}

.answer h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.answer__body > p {
  max-width: 38rem;
  margin-top: 16px;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: var(--ink-muted);
}

.answer dl,
.course__steps {
  display: grid;
  gap: 24px 40px;
  margin: 28px 0 0;
}

.answer dt,
.course__steps dt {
  font-weight: 600;
}

.answer dd,
.course__steps dd {
  margin: 6px 0 0;
  color: var(--ink-muted);
}

.answer__note {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 8px 14px;
  margin-left: -14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}
.answer__note:hover {
  background: rgb(105 95 250 / 0.16);
}
.answer__on {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--live);
}

.course {
  padding: clamp(96px, 12vw, 176px) var(--gutter) 0;
}

.contact {
  padding: clamp(96px, 12vw, 176px) var(--gutter) clamp(88px, 10vw, 144px);
}

.contact__ways {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: 28px;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 500;
}
.contact__ways a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  text-decoration: none;
}
.contact__ways a:hover {
  color: var(--live);
}
.contact__ways svg {
  width: 24px;
  height: 24px;
  color: var(--live);
}

/* The note is the handoff: a floating frozen sheet, as in the design system. */
.note {
  position: fixed;
  inset: auto 8px 8px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
  padding: 12px 12px 12px 18px;
  border: 1px solid rgb(157 213 255 / 0.22);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgb(29 34 49 / 0.94),
    rgb(18 21 29 / 0.92)
  );
  backdrop-filter: blur(28px) saturate(135%);
  box-shadow:
    0 18px 60px rgb(0 0 0 / 0.45),
    inset 0 1px 0 rgb(255 255 255 / 0.07),
    inset 1px 1px 0 rgb(143 215 255 / 0.22);
  font-size: 15px;
}
.note[hidden] {
  display: none;
}
.note h2 {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.note__count {
  grid-column: 1;
  font-weight: 600;
}
.note__actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.note [data-clear] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .note:not([hidden]) {
    animation: note-in 300ms cubic-bezier(0.34, 1.3, 0.64, 1);
  }
}
@keyframes note-in {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

body:has(.note:not([hidden])) .colophon {
  padding-bottom: 112px;
}

/* One rule per topic: checking it in the question changes its answer below. */
body:has(#thema-app:checked) #apps .answer__body,
body:has(#thema-web:checked) #webanwendungen .answer__body,
body:has(#thema-ki:checked) #ki-workflows .answer__body,
body:has(#thema-seite:checked) #webseiten .answer__body {
  background: linear-gradient(
    135deg,
    rgb(29 34 49 / 0.82),
    rgb(18 21 29 / 0.76)
  );
  box-shadow:
    0 18px 60px rgb(0 0 0 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.055);
}
body:has(#thema-app:checked) #apps .answer__body::before,
body:has(#thema-web:checked) #webanwendungen .answer__body::before,
body:has(#thema-ki:checked) #ki-workflows .answer__body::before,
body:has(#thema-seite:checked) #webseiten .answer__body::before {
  opacity: 1;
}
body:has(#thema-app:checked) #apps .answer__said,
body:has(#thema-web:checked) #webanwendungen .answer__said,
body:has(#thema-ki:checked) #ki-workflows .answer__said,
body:has(#thema-seite:checked) #webseiten .answer__said {
  color: var(--ink);
}
body:has(#thema-app:checked) #apps .answer__add,
body:has(#thema-web:checked) #webanwendungen .answer__add,
body:has(#thema-ki:checked) #ki-workflows .answer__add,
body:has(#thema-seite:checked) #webseiten .answer__add {
  display: none;
}
body:has(#thema-app:checked) #apps .answer__on,
body:has(#thema-web:checked) #webanwendungen .answer__on,
body:has(#thema-ki:checked) #ki-workflows .answer__on,
body:has(#thema-seite:checked) #webseiten .answer__on {
  display: inline-flex;
}
.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
}
.colophon p:last-child {
  margin-left: auto;
}
.colophon a {
  display: inline-block;
  padding-block: 10px;
  margin-block: -10px;
}

.legal {
  max-width: 44rem;
  padding: calc(var(--bar) + 56px) var(--gutter) 96px;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}
.legal h2 {
  margin-top: 40px;
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}
.legal p {
  margin-top: 8px;
  color: var(--ink-muted);
}
.legal a {
  color: var(--link);
}
.legal .placeholder {
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
}

@media (min-width: 720px) {
  :root {
    --bar: 68px;
  }
  .masthead {
    grid-template-columns: auto 1fr auto;
    gap: 40px;
  }
  .masthead__nav {
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-end;
    gap: 32px;
  }
  .answer dl,
  .course__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note {
    inset: auto 24px 24px auto;
    width: 440px;
    padding: 14px 14px 14px 22px;
  }
  .note [data-clear] {
    display: inline-block;
  }
  body:has(.note:not([hidden])) .colophon {
    padding-bottom: 112px;
  }
}

@media (min-width: 1000px) {
  .opening {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    column-gap: clamp(48px, 7vw, 120px);
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--bar) + 28px) 44px;
  }

  .answers__intro,
  .course__intro {
    max-width: 46rem;
  }

  /* What the visitor said on the left, the answer on the right. */
  .answer {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(40px, 5vw, 88px);
    align-items: start;
  }
  .answer__said {
    position: sticky;
    top: calc(var(--bar) + 40px);
    padding-top: 40px;
  }
  .answer__body {
    padding: 36px 40px;
    margin-inline: 0;
  }

  .course__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .ask label:has(:checked),
  .note {
    border: 1px solid CanvasText;
  }
}
