/* =========================================================
   J&H – Stylesheet
   Schwarz/Weiß, DM Sans, kursive Serifen-Akzente, Blau-Lila-Verlauf
   ========================================================= */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* Jedes "&" der Seite wird automatisch zum Marken-Und */
@font-face {
  font-family: "JH Amp";
  src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0026;
  size-adjust: 118%;
}

/* Kursive Akzentwörter (<em>) */
@font-face {
  font-family: "JH Serif";
  src: url("../fonts/cormorant-garamond-latin-700-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
  size-adjust: 114%;
}

:root {
  --black: #000;
  --white: #fff;
  --grey: #9a9a9a;          /* Fließtext auf Schwarz */
  --grey-dim: #4a4a4a;      /* noch nicht aufgedeckte Wörter */
  --card-text: #bdbdbd;
  --muted: #5d5d5d;         /* Fließtext auf Weiß */
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(0, 0, 0, 0.1);
  --blue: #4F4FFF;
  --violet: #8F7CFF;
  --lilac: #E9B8FF;
  --grad: linear-gradient(100deg, #4F4FFF 0%, #8F7CFF 50%, #E9B8FF 100%);
  --error: #FF9DB5;

  --sans: "JH Amp", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "JH Serif", Georgia, "Times New Roman", serif;
  --header-h: 104px;
  --pad-x: clamp(1.25rem, 7vw, 6.25rem);
  --max: 1440px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --fs-h1: clamp(2.75rem, 1.2rem + 5.4vw, 6rem);
  --fs-h2: clamp(2.5rem, 1.4rem + 3.8vw, 4.75rem);
  --fs-lead: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
}
@media (max-width: 880px) { :root { --header-h: 72px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-optical-sizing: auto;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3 { font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
p { text-wrap: pretty; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--white);
  color: var(--black);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.section--light :focus-visible { outline-color: var(--blue); }
::selection { background: var(--violet); color: var(--white); }

/* Platzhalter sichtbar markieren */
mark.ph-text {
  color: inherit;
  background: rgba(143, 124, 255, 0.28);
  outline: 1px dashed rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
  border-radius: 0.2em;
  padding: 0 0.15em;
}
.section--light mark.ph-text { background: rgba(143, 124, 255, 0.2); outline-color: rgba(0, 0, 0, 0.45); }

.ph-tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 2;
  padding: 0.3rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
  background: var(--white);
  border-radius: 999px;
}

/* ---------- Pill-Buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 2.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, scale 0.15s ease;
}
.pill:active { scale: 0.97; }
.pill--solid { background: var(--white); color: var(--black); border-color: var(--white); }

@media (hover: hover) {
  .pill:hover { background: var(--white); color: var(--black); border-color: var(--white); }
  .pill--solid:hover { background: transparent; color: var(--white); }
  .section--light .pill:hover { background: var(--black); color: var(--white); border-color: var(--black); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--white);
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  transition: height 0.3s ease;
}
.site-header.is-solid {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.site-header.is-solid .site-header__inner { height: 80px; }
.site-header.is-hidden { transform: translateY(-100%); }

.logo {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

/* Logo in Einzelteilen (für die Animation) */
.logo { position: relative; display: inline-flex; align-items: baseline; }
.logo__j, .logo__amp, .logo__h { display: inline-block; }
.logo__amp {
  margin: 0 0.02em;
  padding-right: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.2em;
  height: 2.2em;
  margin: -1.1em 0 0 -1.1em;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(233, 184, 255, 0.7) 22%, rgba(143, 124, 255, 0.35) 45%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.logo__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  pointer-events: none;
}
.intro .site-header .logo > span { visibility: hidden; }

/* Sprachumschalter */
.lang-switch {
  padding: 0.4rem 0.65rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
@media (hover: hover) { .lang-switch:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); } }
@media (max-width: 880px) { .lang-switch { margin-left: auto; } .site-header .menu-toggle { margin-left: 0.25rem; } }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; gap: clamp(1.5rem, 3.2vw, 3.5rem); }
.nav__list a {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}
@media (hover: hover) { .nav__list a:hover { color: var(--white); } }
.pill--header { padding-inline: 3rem; }

.menu-toggle {
  display: none;
  position: relative;
  width: 2.75rem; height: 2.75rem;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 0.45rem; right: 0.45rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 0.85rem; }
.menu-toggle span:nth-child(2) { top: 1.3rem; }
.menu-toggle span:nth-child(3) { top: 1.75rem; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.45rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.45rem) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--pad-x) max(2.5rem, env(safe-area-inset-bottom));
  background: var(--black);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s var(--ease-out);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu ul { display: grid; gap: 0.15rem; width: 100%; }
.mobile-menu a {
  display: block;
  padding-block: 0.3rem;
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
}
.site-header.menu-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (max-width: 880px) {
  .nav, .pill--header { display: none; }
  .menu-toggle { display: block; }
  .logo { font-size: 1.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1.5rem) 0 4rem;
  overflow: hidden;
  isolation: isolate;
}
/* Hintergrund-Clips */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #000;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.85) contrast(1.05);
  transition: opacity 1.4s ease;
}
.hero__video.is-active { opacity: 1; }
/* helle Clips stärker abdunkeln, damit die Überschrift gut lesbar bleibt */
.hero__video[data-clip="praxis"] { filter: saturate(0.8) brightness(0.6) contrast(1.05); }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.5) 72%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 68%, #000 100%);
}
@media (max-width: 960px) {
  .hero__media::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0.86) 66%, #000 100%);
  }
}

.hero__glow {
  position: absolute;
  z-index: -2;
  right: -14vw;
  top: 6%;
  width: 70vw;
  height: 70vw;
  max-width: 1100px;
  max-height: 1100px;
  background:
    radial-gradient(circle at 42% 45%, rgba(79, 79, 255, 0.4), transparent 58%),
    radial-gradient(circle at 62% 62%, rgba(233, 184, 255, 0.18), transparent 52%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}
.hero__content { position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(2.75rem, 1rem + 4.3vw, 5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.line { display: block; overflow: clip; padding-bottom: 0.06em; }
.line__inner { display: inline-block; }
.line--rotator { padding-bottom: 0.16em; margin-bottom: -0.1em; }
.rotator { display: inline-grid; }
.rotator__word { grid-area: 1 / 1; white-space: nowrap; letter-spacing: -0.02em; }
.rotator__word:not(:first-child) { visibility: hidden; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2rem, 4vh, 3rem); }

/* Editor-Fenster */
.hero__visual { position: relative; perspective: 1800px; }
.device-tilt { transform-style: preserve-3d; transform: rotateY(-13deg) rotateX(5deg); }
.device {
  overflow: hidden;
  background: #0b0b12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(143, 124, 255, 0.12),
    0 30px 140px -40px rgba(79, 79, 255, 0.6);
}
.device__bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 2.6rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
  background: #11111a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.device__dots { display: flex; gap: 0.4rem; }
.device__dots i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #2c2c38; }
.device__tab {
  padding: 0.25rem 0.75rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
  color: #d9d9e3;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.4rem;
}
.device__body {
  position: relative;
  aspect-ratio: 4 / 3.05;
  font-size: clamp(10px, 1vw, 15px);
}

/* Code */
.code {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 1.3em 1.2em 1.2em 0;
  overflow: hidden;
  font: 1.15em/1.8 ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
  color: #f0f0f6;
  white-space: pre;
  counter-reset: ln;
}
.code__line { display: block; min-height: 1.8em; counter-increment: ln; }
.code__line::before {
  content: counter(ln);
  display: inline-block;
  width: 3.2em;
  padding-right: 1.3em;
  text-align: right;
  color: #474756;
}
.tok-tag { color: #8F7CFF; }
.tok-attr { color: #7FB2FF; }
.tok-str { color: #E9B8FF; }
.tok-punct { color: #8a8a99; }
.tok-text { color: #f4f4f8; }
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.2em;
  margin-left: 1px;
  vertical-align: -0.22em;
  background: var(--lilac);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.device__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, rgba(143, 124, 255, 0.28) 55%, rgba(233, 184, 255, 0.5) 60%, transparent);
  opacity: 0;
  pointer-events: none;
}

/* Mini-Website, die aus dem Code entsteht */
.site {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--s-ink, #111);
  background: var(--s-bg, #fff);
  visibility: hidden;
}
.site.is-static { visibility: visible; }
.site__nav {
  display: flex;
  align-items: center;
  gap: 1.3em;
  padding: 0.85em 1.4em;
  font-size: 0.82em;
  background: var(--s-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site__logo { margin-right: auto; font-size: 1.2em; font-weight: 700; letter-spacing: -0.02em; }
.site__link { opacity: 0.7; }
.site__navbtn {
  padding: 0.45em 1em;
  font-weight: 600;
  color: #fff;
  background: var(--s-accent);
  border-radius: 999px;
}
.site__hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.site__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
}
.site__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.32) 48%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 55%);
}
.site__copy { position: relative; z-index: 1; max-width: 68%; padding: 1.6em 1.6em 1.8em; color: #fff; }
.site__h { font-size: 2.5em; font-weight: 600; line-height: 1.03; letter-spacing: -0.03em; }
.site__p { margin-top: 0.5em; font-size: 0.95em; opacity: 0.9; }
.site__btn {
  display: inline-block;
  margin-top: 1em;
  padding: 0.65em 1.25em;
  font-size: 0.85em;
  font-weight: 600;
  color: #fff;
  background: var(--s-accent);
  border-radius: 999px;
}
.site__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.5em;
  padding: 0.85em 1.4em;
  font-size: 0.8em;
  background: var(--s-bg);
}
.site__features span { display: inline-flex; align-items: center; gap: 0.5em; }
.site__features span::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--s-accent); }

.intro .hero .line__inner,
.intro .hero__actions > *,
.intro .device { visibility: hidden; }

@media (max-width: 960px) {
  .hero { align-items: flex-end; padding-bottom: 2.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__visual { order: -1; max-width: 34rem; width: 100%; justify-self: center; }
  .device-tilt { transform: rotateY(-6deg) rotateX(4deg); }
  .device__body { aspect-ratio: 16 / 11; font-size: clamp(9px, 2.5vw, 13px); }
  .hero__glow { width: 120vw; height: 120vw; right: -40vw; top: 0; }
}
@media (max-width: 560px) {
  .hero__title { font-size: clamp(2.4rem, 11vw, 3rem); }
  .hero__actions { gap: 0.75rem; }
  .hero__actions .pill { flex: 1 1 auto; padding-inline: 1.25rem; }
  .device__bar { height: 2.2rem; }
  .code { font-size: 1em; }
}

/* ---------- Statement (Über uns) ---------- */
.statement { padding-block: clamp(7rem, 16vw, 14rem); }
.statement__text {
  max-width: 24ch;
  margin-inline: auto;
  font-size: clamp(1.9rem, 1rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-align: center;
}
.statement__text .word { display: inline; }

/* Team, kompakt im Über-uns-Bereich */
.about-team {
  max-width: 44rem;
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
  text-align: center;
}
.about-team__title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.about-team p { margin-top: 0.9rem; font-size: 1.0625rem; line-height: 1.6; color: var(--grey); }
.about-team__people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin-top: 1.75rem;
}
.about-team__people li { display: flex; align-items: center; gap: 0.85rem; text-align: left; }
.about-team__initial {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--grad);
  border-radius: 50%;
}
.about-team__people strong { display: block; font-weight: 500; }
.about-team__skills { display: block; font-size: 0.875rem; color: var(--grey); }
@media (max-width: 560px) { .about-team__people { display: grid; justify-content: center; } }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(6rem, 12vw, 10rem); }
.section--light { background: var(--white); color: var(--black); }

.section-intro { text-align: center; }
.section-intro > p {
  max-width: 38ch;
  margin: 1.25rem auto 0;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--grey);
}
.section--light .section-intro > p { color: var(--muted); }

/* ---------- Arbeitsweise: versetzte Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem) clamp(1.25rem, 5vw, 6rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: 5rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 31rem;
  padding: 3.5rem 2rem 0;
  text-align: center;
  color: var(--white);
  background: var(--black);
  border-radius: 2rem;
  overflow: hidden;
}
.card:nth-child(3n + 2) { top: 5rem; }
.card__icon {
  width: 2rem; height: 2rem;
  margin-bottom: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem); }
.card p { max-width: 28ch; margin-top: 1rem; font-size: 1.0625rem; line-height: 1.6; color: var(--card-text); }

.card__visual {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 9.5rem;
  margin-top: auto;
  padding: 2rem 0 2.5rem;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #e4e4e4;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  white-space: nowrap;
}
.chip--grad {
  border-color: transparent;
  background: linear-gradient(#0e0e0e, #0e0e0e) padding-box, var(--grad) border-box;
}
.chip--check::before {
  content: "";
  flex: none;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--grad);
}

.card__visual--chat { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.card__visual--chat .chip { align-self: flex-start; }
.card__visual--chat .chip:nth-child(2) { align-self: flex-end; }

.card__visual--timeline { flex-wrap: nowrap; gap: 0.4rem; }
.timeline__line {
  position: absolute;
  left: 8%; right: 8%;
  top: calc(50% - 0.25rem);
  height: 1px;
  background: var(--grad);
}

.card__visual--phone { padding-bottom: 0; align-items: flex-end; }
.phone {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  width: 6rem;
  height: 9rem;
  margin-bottom: -1.5rem;
  padding: 0.9rem 0.65rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.1rem;
}
.phone i { display: block; height: 0.45rem; border-radius: 3px; background: #262626; }
.phone i:first-child { height: 2.4rem; background: var(--grad); opacity: 0.85; }
.phone i:nth-child(3) { width: 70%; }

.card__visual--speed { flex-direction: column; gap: 0.6rem; }
.speed__label { font-size: 0.875rem; color: #e4e4e4; }
.speed__bar { width: 80%; height: 0.5rem; background: #1d1d1d; border-radius: 999px; overflow: hidden; }
.speed__bar i { display: block; width: 100%; height: 100%; background: var(--grad); border-radius: inherit; transform-origin: left; }
.js .speed__bar i { transform: scaleX(0); transition: transform 1.6s var(--ease-out) 0.2s; }
.js .card.is-in .speed__bar i { transform: scaleX(0.9); }

.card__visual--updates { flex-direction: column; gap: 0.5rem; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
  .card:nth-child(3n + 2) { top: 0; }
  .card:nth-child(2n) { top: 3rem; }
  .cards { padding-bottom: 3rem; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; padding-bottom: 0; }
  .card:nth-child(n) { top: 0; min-height: 0; }
}

/* ---------- Verbindung (&-Szene) ---------- */
.bridge { background: var(--black); }
.bridge__stage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--max);
  margin-inline: auto;
  padding: calc(var(--header-h) + 1rem) var(--pad-x) 2.5rem;
}
.bridge__title {
  max-width: 20ch;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.75rem);
  line-height: 1.15;
}
.bridge__note { justify-self: end; font-size: 1.25rem; color: var(--grey); }

.bridge__pairs {
  align-self: center;
  display: grid;
  gap: 0.3em;
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.bridge__amp { color: var(--violet); }
.bridge__stage:not(.bridge__stage--live) { min-height: 0; padding-block: clamp(5rem, 10vw, 8rem); }

.slot {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) auto minmax(0, 1.25fr);
  align-items: center;
  gap: 0 0.3em;
  font-size: clamp(2rem, 4.5vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  --lh: 1.25em;
  --slot-base: 1;
}
.slot__col {
  height: calc(var(--lh) * 3);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 18%, #000 40%, #000 60%, rgba(0,0,0,0.2) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 18%, #000 40%, #000 60%, rgba(0,0,0,0.2) 82%, transparent 100%);
}
.slot__col--left { text-align: right; }
.slot__track { will-change: transform; }
.slot__item { display: block; height: var(--lh); line-height: var(--lh); white-space: nowrap; }
.slot__amp { width: 2em; will-change: transform; }

@media (max-width: 700px) {
  .slot {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    font-size: 8.4vw;
    --slot-base: 0;
    --lh: 1.5em;
  }
  .slot__col, .slot__col--left {
    width: 100%;
    height: var(--lh);
    text-align: center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .slot__amp { width: 1.6em; }
  .bridge__note { justify-self: start; }
}

/* ---------- Arbeiten ---------- */
.work { padding-bottom: 20px; }
.work__list { display: grid; gap: 20px; margin-top: clamp(3rem, 6vw, 5rem); padding-inline: 20px; }
.work__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.work-card {
  --tint: #333;
  position: relative;
  padding: clamp(1.5rem, 5vw, 5rem) clamp(1.25rem, 8.5vw, 7.75rem) 0;
  color: var(--white);
  background:
    radial-gradient(120% 85% at 50% 0%, color-mix(in srgb, var(--tint) 75%, #000) 0%, #060606 72%);
  overflow: hidden;
}
.work__pair .work-card { padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 8;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.work__pair .work-card__media { aspect-ratio: 4 / 3; }
.work-card__media > img,
.work-card__media > .mock { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 0; will-change: transform; }
.work-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.75rem) 0 clamp(1.75rem, 3.5vw, 3.25rem);
}
.work-card__bar h3 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.work-card__media > img { object-position: 50% 0; }
.work-card__meta p { max-width: 48ch; margin-top: 0.4rem; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, 0.7); }

/* "Weitere Projekte folgen" */
.work-card--next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 8.5vw, 7.75rem);
  background:
    radial-gradient(70% 140% at 100% 50%, rgba(79, 79, 255, 0.28), transparent 60%),
    #060606;
}
.work-next__text {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.work-card mark.ph-text { outline-color: rgba(255, 255, 255, 0.55); }
.work-card :focus-visible { outline-color: var(--violet); }
@media (hover: hover) {
  .section--light .work-card .pill:hover { background: var(--white); color: var(--black); border-color: var(--white); }
}

/* Website-Skizze als Platzhalter */
.mock {
  display: flex;
  flex-direction: column;
  gap: 4%;
  padding: 4% 5%;
  background: color-mix(in srgb, var(--tint) 18%, #0b0b0b);
}
.mock > span { display: block; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.mock__nav { height: 4%; background: linear-gradient(90deg, rgba(255,255,255,.5) 0 12%, transparent 12% 62%, rgba(255,255,255,.12) 62%) !important; }
.mock__hero { height: 40%; background: color-mix(in srgb, var(--tint) 85%, #fff 5%) !important; }
.mock__row { height: 3.5%; width: 80%; }
.mock__row--short { width: 50%; }
.mock__grid { flex: 1; display: grid !important; grid-auto-flow: column; gap: 3%; background: none !important; }
.mock__grid i { border-radius: 6px; background: rgba(255, 255, 255, 0.08); }

@media (max-width: 760px) {
  .work__list, .work__pair { gap: 12px; }
  .work__list { padding-inline: 12px; }
  .work__pair { grid-template-columns: 1fr; }
  .work-card__media { aspect-ratio: 4 / 3; border-radius: 1rem; }
  .work-card__bar .pill { padding-inline: 1.25rem; min-height: 2.75rem; font-size: 0.9375rem; }
}

/* ---------- Über uns: ganz unten, klappt beim Klick auf ---------- */
.about { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.about__heading { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: normal; line-height: inherit; }
.about__toggle {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 2rem 0;
  color: var(--white);
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line-dark);
  cursor: pointer;
}
.about__text { display: grid; gap: 0.3rem; }
.about__label { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.about__question { font-size: 1.0625rem; color: var(--grey); }
.about__icon {
  position: relative;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
  transition: rotate 0.45s var(--ease-out), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.about__icon::before,
.about__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
}
.about__icon::after { rotate: 90deg; }
.about.is-open .about__icon { rotate: 135deg; color: var(--black); background: var(--white); box-shadow: none; }
@media (hover: hover) { .about__toggle:hover .about__icon { box-shadow: inset 0 0 0 1.5px var(--white); } }

.about__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.55s var(--ease-out), visibility 0s linear 0.55s;
}
.about.is-open .about__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.55s var(--ease-out), visibility 0s;
}
.about__inner { overflow: hidden; }
.about.is-instant .about__panel { transition: none; }
.about .about-team { max-width: 46rem; margin: 0; padding: 0.25rem 0 2.5rem; text-align: left; }
.about .about-team__people { justify-content: flex-start; }

/* ---------- Kontakt ---------- */
.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem clamp(2rem, 7vw, 7rem);
  align-items: start;
}
.contact__intro { display: grid; gap: 1.5rem; }
.contact__intro > p { max-width: 36ch; font-size: var(--fs-lead); line-height: 1.45; color: var(--grey); }
.contact__direct { display: grid; gap: 1rem; margin-top: 1rem; }
.contact__direct dt { font-size: 0.9375rem; color: var(--grey); }
.contact__direct dd { font-size: 1.375rem; font-weight: 500; }
.contact__direct a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.form { display: grid; gap: 1.75rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.9375rem; color: var(--grey); }
.field__opt { opacity: 0.75; }
.field input:not([type="checkbox"]),
.field textarea {
  width: 100%;
  padding: 0.6rem 0;
  font: inherit;
  font-size: 1.1875rem;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--white); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 1.5px 0 0 var(--violet); }
.field [aria-invalid="true"] { border-bottom-color: var(--error) !important; }
.field__error { font-size: 0.9375rem; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }

.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.85rem; }
.field--check label { font-size: 0.9375rem; line-height: 1.5; }
.field--check .field__error { grid-column: 2; }
.field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 1.35rem; height: 1.35rem;
  margin: 0.1rem 0 0;
  border: 1.5px solid var(--white);
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.field input[type="checkbox"]::after {
  content: "";
  width: 0.38rem; height: 0.7rem;
  margin-top: -0.15rem;
  border: solid var(--black);
  border-width: 0 2.2px 2.2px 0;
  rotate: 45deg;
  scale: 0;
  transition: scale 0.15s var(--ease-out);
}
.field input[type="checkbox"]:checked { background: var(--white); }
.field input[type="checkbox"]:checked::after { scale: 1; }
.field input[type="checkbox"][aria-invalid="true"] { border-color: var(--error); }

.pill--submit { justify-self: start; }
.form__status { font-weight: 500; }
.form__status.is-error { color: var(--error); }
.form__status.is-success {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  color: var(--white);
  background: rgba(143, 124, 255, 0.12);
  border: 1px solid rgba(143, 124, 255, 0.35);
  border-radius: 1rem;
}
.form__status.is-success::before {
  content: "";
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--grad);
}
.pill--submit[disabled] { opacity: 0.6; cursor: progress; }
/* Spam-Schutz-Feld: für Menschen unsichtbar */
.form { position: relative; }
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__status:empty { display: none; }

@media (max-width: 860px) {
  .contact__layout { grid-template-columns: 1fr; }
  .pill--submit { justify-self: stretch; }
}

/* ---------- Schnellkontakt (WhatsApp, Anrufen) ---------- */
.quick {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  pointer-events: none;
  opacity: 0;
  translate: 0 1rem;
  transition: opacity 0.35s ease, translate 0.45s var(--ease-out);
}
.quick.is-visible { opacity: 1; translate: 0 0; }
.quick.is-visible .quick__toggle { pointer-events: auto; }
.quick__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--white);
  background: var(--grad);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(79, 79, 255, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: scale 0.2s var(--ease-out);
}
.quick__toggle:active { scale: 0.94; }
.quick__icon {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.2s ease, rotate 0.35s var(--ease-out);
}
.quick__icon--close { opacity: 0; rotate: -90deg; }
.quick.is-open .quick__icon--open { opacity: 0; rotate: 90deg; }
.quick.is-open .quick__icon--close { opacity: 1; rotate: 0deg; }

.quick__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.quick__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.15rem 0.7rem 0.9rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  translate: 0 0.6rem;
  scale: 0.96;
  visibility: hidden;
  transition: opacity 0.25s ease, translate 0.35s var(--ease-out), scale 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.quick__item svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quick__item--wa svg { color: #1DA851; }
.quick.is-open .quick__item {
  pointer-events: auto;
  opacity: 1;
  translate: 0 0;
  scale: 1;
  visibility: visible;
  transition: opacity 0.25s ease, translate 0.35s var(--ease-out), scale 0.35s var(--ease-out), visibility 0s;
}
.quick.is-open .quick__item:nth-child(1) { transition-delay: 0.04s; }
@media (hover: hover) { .quick__item:hover { background: #ececf4; } }
.quick :focus-visible { outline-color: var(--violet); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.25rem max(2.25rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.site-footer .logo { font-size: 1.5rem; }
.site-footer p { font-size: 0.9375rem; color: var(--grey); }
.site-footer__links { display: flex; gap: 1.75rem; margin-left: auto; }
.site-footer__links a { font-size: 0.9375rem; color: var(--grey); text-underline-offset: 0.2em; }
@media (hover: hover) { .site-footer__links a:hover { color: var(--white); } }

/* ---------- Unterseiten ---------- */
.page-simple { min-height: 100svh; display: flex; flex-direction: column; }
.page-simple main { flex: 1; padding: calc(var(--header-h) + 3rem) 0 6rem; }
.page-simple .site-header { position: absolute; }
.prose { max-width: 68ch; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose h1 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 2rem; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; margin: 2.5rem 0 0.75rem; }
.prose p { color: #d0d0d0; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 0.75rem 0 1rem; padding-left: 1.25rem; list-style: disc; color: #d0d0d0; }
.prose li + li { margin-top: 0.35rem; }
.prose a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
