/* Kusch Ki Systems – Landingpage
   Tokens aus dem Design-System „Kusch KI Systems“ (claude.ai/design). */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Basisfarben */
  --white: #ffffff;
  --sand-50: #f3f4ef;
  --sand-200: #daddcf;
  --sage-300: #c1c7b0;
  --ink-700: #3d4c52;
  --ink-900: #23333a;
  --teal-600: #00747b;
  --teal-900: #0f2c30;
  --brand-green: #0b5f65;
  --orange-500: #fa8f0d;
  --orange-600: #e67e00;
  --orange-100: #feebd2;
  --logo-orange: #f2a03d;

  /* Semantische Aliase */
  --surface-page: var(--sand-50);
  --surface-card: var(--white);
  --surface-dark: var(--teal-900);
  --text-body: var(--ink-900);
  --text-muted: var(--ink-700);
  --text-link: var(--teal-600);
  --text-on-dark: #e9efec;
  --text-on-dark-muted: #b9c9c6;
  --action: var(--orange-500);
  --action-hover: var(--orange-600);
  --hairline: var(--sand-200);
  --focus: var(--teal-600);

  --gradient-hero: linear-gradient(90deg, #e3eeea 0%, #c7e0dc 34%, #5fa7a8 66%, #0b5f65 100%);
  --gradient-hero-mobile: linear-gradient(180deg, #e3eeea 0%, #cfe4e0 48%, #4d9a9c 78%, #0b5f65 100%);

  /* Typografie */
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);

  /* Raum & Form */
  --container: 1080px;
  --gutter: 16px;
  --gap: 30px;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius-media: 10px;
  --radius-panel: 6px;
  --radius-pill: 999px;
  --shadow-panel: 0 10px 30px rgba(35, 51, 58, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; text-wrap: balance; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 600; }

a { color: var(--text-link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--logo-orange); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--ink-900);
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

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

.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Wortmarke */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  min-height: 44px;
}
.wordmark__tile {
  display: grid;
  place-items: center;
  width: 84px;
  height: 40px;
  padding: 4px 6px;
  background: var(--brand-green);
  border-radius: 8px;
}
.wordmark__tile img { width: 100%; height: auto; }
.wordmark > span:last-child { white-space: nowrap; }
@media (max-width: 479px) {
  .wordmark { gap: 0.625rem; font-size: 1rem; }
  .wordmark__tile { width: 70px; height: 34px; }
  .site-header .btn--compact { padding-right: 1.125rem; }
  .site-header .btn--compact .btn__disc { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.375rem 0.375rem 0.375rem 1.375rem;
  border-radius: var(--radius-pill);
  background: var(--action);
  color: var(--ink-900);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out);
}
.btn:hover { background: var(--action-hover); text-decoration: none; }
.btn__disc {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--orange-500);
}
.btn__disc .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform 180ms var(--ease-out); }
.btn:hover .btn__disc .icon { transform: translateX(2px); }
.btn--compact { min-height: 44px; padding-left: 1.125rem; }
.btn--compact .btn__disc { width: 32px; height: 32px; }

/* Kopfbereich */
.site-header { position: relative; z-index: 2; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 1rem;
  border-radius: var(--radius-pill);
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
  transition: background-color 180ms var(--ease-out);
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.16); }
.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }

@media (min-width: 900px) {
  .site-nav {
    display: block;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: rgba(15, 44, 48, 0.82);
  }
}

/* Startseite: Kopf geht nahtlos in den Hero-Verlauf über */
.site-header--hero { background: #e3eeea; }
@media (min-width: 900px) { .site-header--hero { background: var(--gradient-hero); } }

/* Unterseiten: Kopf auf dunklem Grund */
.site-header--solid { background: var(--surface-dark); color: var(--white); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero-mobile);
}
@media (min-width: 900px) { .hero { background: var(--gradient-hero); } }

.hero__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 5vw, 7rem);
}
@media (min-width: 900px) {
  .hero__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-900);
  font-size: var(--fs-small);
  font-weight: 500;
}
.status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange-600);
  box-shadow: 0 0 0 3px rgba(250, 143, 13, 0.25);
}

.hero h1 {
  max-width: 13ch;
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}
.hero h1 span { display: block; }

.hero__lead {
  max-width: 44ch;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-900);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2.25rem;
}
.hero__actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-900);
  font-weight: 500;
}

/* Verzweigungs-Motiv aus dem Logo (Knoten des „<“) */
.branch {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  overflow: visible;
}
@media (max-width: 899px) { .branch { max-width: 240px; justify-self: end; margin-top: -0.5rem; } }
.branch path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.branch .ring { fill: var(--brand-green); stroke: rgba(255, 255, 255, 0.85); stroke-width: 3; }
.branch .node { fill: var(--logo-orange); }
.branch .root { fill: var(--logo-orange); }

@media (prefers-reduced-motion: no-preference) {
  .branch path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 900ms var(--ease-out) forwards;
  }
  .branch .lvl-2 { animation-delay: 380ms; }
  .branch .lvl-3 { animation-delay: 700ms; }
  .branch circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop 420ms var(--ease-out) forwards; }
  .branch .root { animation-delay: 80ms; }
  .branch .d2 { animation-delay: 620ms; }
  .branch .d3 { animation-delay: 1000ms; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

/* Abschnitte */
.section { padding-block: var(--section); }
.section__head { max-width: 34rem; }
.section__head p { margin-top: 1rem; color: var(--text-muted); }

/* Leistungen */
.services { display: grid; gap: 3rem; }
@media (min-width: 900px) {
  .services { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--gap); }
  .services .section__head { position: sticky; top: 2rem; align-self: start; }
}
.service-list {
  display: grid;
  gap: 0 var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service {
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--sage-300);
}
.service .icon { width: 28px; height: 28px; color: var(--teal-600); margin-bottom: 1rem; }
.service p { margin-top: 0.625rem; color: var(--text-muted); max-width: 40ch; }

/* Dunkles Band */
.band {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.band__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .band__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3.5rem; } }
.band h2 { color: var(--white); }
.band p { margin-top: 1rem; color: var(--text-on-dark-muted); max-width: 46ch; }
.band figure { margin: 0; }
.band img {
  width: 100%;
  border-radius: var(--radius-media);
  aspect-ratio: 1376 / 768;
  object-fit: cover;
  background: #0b1b3a;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.stack li {
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--white);
}

/* Über mich */
.about { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--gap); } }
.about__aside { display: grid; gap: 1.5rem; align-content: start; }
.about__logo { margin: 0; max-width: 420px; }
.about__logo img {
  width: 100%;
  aspect-ratio: 950 / 403;
  border-radius: var(--radius-media);
  background: #10151b;
}
.about__text { display: grid; gap: 1.25rem; max-width: 60ch; }
.about__text .lead { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 300; line-height: 1.4; color: var(--ink-900); }
.about__text p:not(.lead) { color: var(--text-muted); }

/* Kontakt */
.contact {
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  background: var(--surface-card);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 3rem; } }
.contact__head p { margin-top: 1rem; color: var(--text-muted); max-width: 42ch; }
.contact__ways { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.contact__way {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-media);
  color: var(--ink-900);
  text-decoration: none;
}
a.contact__way { transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out); }
a.contact__way:hover { border-color: var(--teal-600); background: #f8faf7; }
.contact__way .icon { color: var(--teal-600); }
.contact__way small { display: block; font-size: 0.8125rem; color: var(--text-muted); font-weight: 400; }
.contact__way span { font-weight: 500; font-size: 1.0625rem; overflow-wrap: anywhere; }

/* Platzhalter für noch fehlende Angaben */
.offen {
  display: inline;
  padding: 0.05em 0.35em;
  border: 1px dashed var(--orange-600);
  border-radius: 4px;
  background: var(--orange-100);
  color: var(--ink-900);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark-muted);
  font-size: var(--fs-small);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2.5rem;
}
.site-footer .wordmark { color: var(--white); font-size: 1rem; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer a:not(.wordmark) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-on-dark);
}

/* Rechtstexte */
.legal { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.legal__body { max-width: 68ch; }
.legal h1 { font-size: var(--fs-h2); letter-spacing: -0.015em; margin-bottom: 2rem; }
.legal h2 { font-size: var(--fs-h3); font-weight: 500; margin: 2.25rem 0 0.75rem; letter-spacing: 0; }
.legal p, .legal address { margin: 0 0 1rem; font-style: normal; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.375rem; }
.legal .hint {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--orange-600);
  background: var(--orange-100);
  border-radius: var(--radius-panel);
  color: var(--ink-900);
}

/* Hilfsklassen (statt Inline-Styles, wegen Content-Security-Policy) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.section--flush-top { padding-top: 0; }
