/* ==========================================================================
   ZukunftCode GmbH — zukunftcode.de
   Design-System, helle Variante. Aufbau:
   0) Fonts  1) Tokens  2) Reset  3) Typografie  4) Layout  5) Header
   6) Buttons  7) Bausteine  8) Formular  9) Footer  10) Animation
   11) Responsive
   ========================================================================== */

/* 0) Fonts -------------------------------------------------------------
   Lokal aus wwwroot/fonts/ ausgeliefert statt vom Google-Fonts-CDN — sonst
   geht bei jedem Seitenaufruf die Besucher-IP an Google, ohne Einwilligung.
   In Deutschland deswegen reale Abmahnungen (u. a. LG München I, 2022).
   Archivo und Manrope sind Variable Fonts: eine Datei deckt den kompletten
   Schriftschnitt-Bereich ab, daher genügt je ein @font-face mit Bereichsangabe.
   Lizenz: SIL Open Font License 1.1 (Archivo, IBM Plex Mono, Manrope) —
   Selbst-Hosting ausdrücklich erlaubt. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-variable.woff2") format("woff2-variations");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-variable.woff2") format("woff2-variations");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 1) Tokens ---------------------------------------------------------------- */
:root {
  --bg:            #FFFFFF;
  --bg-panel:      #F3F6F4;   /* Footer, Logoraster, Formular */
  --bg-tile:       #EDF2EF;   /* Platzhalterflächen */
  --bg-tile-alt:   #E4EBE7;
  --line:          #E1E8E4;
  --line-soft:     #D8E1DC;
  --line-strong:   #C3D0C9;

  --ink:           #07120C;
  --ink-muted:     #3D4F45;
  --ink-dim:       #5E7167;
  --ink-faint:     #7B8D83;
  --ink-ghost:     #93A69B;

  --accent:        #0B7A4E;   /* Text, Linien — kontraststark auf Weiß */
  --accent-fill:   #16A46B;   /* Flächen, Buttons */
  --accent-ink:    #06140D;   /* Text auf --accent-fill */

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1920px;
  --pad: clamp(18px, 2.4vw, 48px);
  --sec: clamp(64px, 9vw, 140px);
}

/* Umgekehrter Abschnitt: dieselben Bausteine, dunkler Grund. Da nur die
   Variablen neu gesetzt werden, passen sich alle Kindelemente automatisch an. */
.invert {
  --bg:            #07120C;
  --bg-panel:      #0B1A11;
  --bg-tile:       #0E2116;
  --bg-tile-alt:   #12291B;
  --line:          #16301F;
  --line-soft:     #1D3A28;
  --line-strong:   #2B5039;

  --ink:           #EDEDEA;
  --ink-muted:     #B6CFC0;
  --ink-dim:       #8CA396;
  --ink-faint:     #74907F;
  --ink-ghost:     #63806E;

  --accent:        #16A46B;
  --accent-fill:   #16A46B;
  --accent-ink:    #06140D;

  background: var(--bg);
  color: var(--ink);
}

/* 2) Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent-fill); color: #fff; }

/* Blazor setzt nach jeder Navigation den Fokus auf die H1. Kein Rahmen dafür. */
[tabindex="-1"]:focus { outline: none; }

/* 3) Typografie ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0;
}
.eyebrow--accent { color: var(--accent); }

.display {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 104px);
  line-height: 1.03;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 20px 0 0;
  text-wrap: pretty;
  /* Lange deutsche Komposita ("sicherheitskritische") rücken auf eine eigene
     Zeile statt am Rand abgeschnitten zu werden. */
  overflow-wrap: break-word;
}
.display--hero {
  font-size: clamp(30px, 3.9vw, 56px);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: 0;
  /* Kein Trennstrich: die Größe ist so gewählt, dass auch das längste
     Kompositum in eine Zeile passt. */
  hyphens: manual;
}
.display--md { font-size: clamp(30px, 5.4vw, 84px); line-height: 1.04; margin: 0; }
.display--sm { font-size: clamp(24px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.display em { color: var(--accent); font-style: normal; }

.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: var(--ink-muted); margin: 0; }
.body-text { font-size: 16px; line-height: 1.7; color: var(--ink-muted); margin: 0; }
.small-text { font-size: 14px; line-height: 1.6; color: var(--ink-dim); margin: 0; }
.max-46 { max-width: 46ch; } .max-52 { max-width: 52ch; }
.max-58 { max-width: 58ch; } .max-70 { max-width: 70ch; }

/* 4) Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--panel { background: var(--bg-panel); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 64px); }
.split--end { align-items: end; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* Hero: Text links, Partikel-Markenzeichen rechts */
.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex; align-items: center;
  padding-block: clamp(28px, 4vw, 56px) clamp(64px, 8vw, 104px);
}
.hero__grid {
  display: grid; width: 100%;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 3.4vw, 60px);
  align-items: center;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(20px, 3vw, 34px);
  transform: translateX(-50%);
  display: grid; place-items: center; gap: 2px;
  color: var(--ink-faint);
}
.hero__scroll svg { animation: sinken 2.2s ease-in-out infinite; }
.hero__scroll svg:last-child { animation-delay: .18s; margin-top: -9px; }
@keyframes sinken {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50%      { transform: translateY(5px); opacity: 1; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__visual {
  position: relative; width: 100%;
  aspect-ratio: 1 / 1; max-height: min(62vh, 600px);
  display: grid; place-items: center;
}
#marken-partikel { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.hero__hint {
  position: absolute; left: 0; bottom: 0; margin: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-ghost);
}

/* Rasterflächen mit Haarlinien-Trennung */
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0;
  /* Linien liegen auf den Zellen selbst — bei unvollständigen Reihen bliebe
     sonst eine graue Restfläche des Containers sichtbar. */
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cells--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cell {
  background: var(--bg);
  padding: clamp(22px, 2.6vw, 40px);
  display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cell__no { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); }
.cell__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cell h3 { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; margin: 6px 0 4px; }
.cell ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-muted); margin-top: 6px; }

/* 5) Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
}
.logo {
  font-family: var(--display); font-weight: 900; font-size: clamp(19px, 1.5vw, 23px);
  letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }

.nav {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(18px, 2.2vw, 40px);
  margin-inline: auto;   /* mittig zwischen Wortmarke und Aktionsbereich */
}
.nav a {
  font-family: var(--body); font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 500; letter-spacing: -.01em; color: var(--ink);
}
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); }

.burger {
  display: none; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: transparent; place-items: center;
}
.burger span { display: block; width: 17px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger span + span { margin-top: 4px; }
.is-open .burger span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* Die Leistungsseite ist durchgehend dunkel — der Kopfbereich läuft mit,
   sonst stünde ein weißer Streifen über schwarzem Grund. */
body:has(.svc-hero) .site-header {
  --bg:          #07120C;
  --line:        #16301F;
  --line-soft:   #1D3A28;
  --line-strong: #2B5039;
  --ink:         #EDEDEA;
  --ink-muted:   #B6CFC0;
  --ink-dim:     #8CA396;
  background: rgba(7, 18, 12, .86);
  color: var(--ink);
}

/* 6) Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 17px 30px; border: 1px solid transparent;
  font-family: var(--body); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
/* Der kleine Punkt vor dem Text ist das Erkennungszeichen der Hauptaktion. */
.btn--primary::before, .btn--dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent-fill); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 12px 22px; font-size: 12px; }
.btn--wide { min-width: min(340px, 80vw); padding-block: 19px; }
.btn--sm.btn--ghost:hover { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.btn--ghost::before { display: none; }

.link-underline {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
}
.link-back { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }

/* 7) Bausteine ------------------------------------------------------------- */
.placeholder {
  border: 1px solid var(--line-soft); border-radius: 6px;
  background: repeating-linear-gradient(115deg, var(--bg-tile) 0 14px, var(--bg-tile-alt) 14px 28px);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 20px;
}
.placeholder__label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint); text-align: center;
}
.placeholder__label small { color: var(--ink-ghost); }
.placeholder__index {
  position: absolute; left: 20px; bottom: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-ghost);
}
.placeholder--hero { height: clamp(240px, 42vw, 560px); }

/* Aufmacherbild auf der Fallstudienseite */
.projekt-hero {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: repeating-linear-gradient(115deg, var(--bg-tile) 0 14px, var(--bg-tile-alt) 14px 28px);
  aspect-ratio: 2 / 1; display: grid; place-items: center;
}
.projekt-hero img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.placeholder--wide { height: clamp(220px, 34vw, 460px); }
.placeholder--card { height: clamp(140px, 16vw, 190px); border-radius: 4px; align-items: flex-end; justify-content: flex-start; padding: 14px; }

.mehr-laden { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 72px); }

/* Projektraster: 12 Spalten, gemischte Formate (siehe ProjektRaster.razor) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(38px, 4.4vw, 84px) clamp(20px, 2.4vw, 40px);
}
.work-item { grid-column: span 4; }
.work-item--s3 { grid-column: span 3; }
.work-item--s4 { grid-column: span 4; }
.work-item--s5 { grid-column: span 5; }
.work-item--s6 { grid-column: span 6; }
.work-item--s7 { grid-column: span 7; }
.work-item--s8 { grid-column: span 8; }
.work-item--s9 { grid-column: span 9; }
.work-item--s10 { grid-column: span 10; }
.work-item--s11 { grid-column: span 11; }
.work-item--s12 { grid-column: span 12; }
/* Versetzte Kacheln brechen die starre Zeilenkante auf */
.work-item--versatz { margin-top: clamp(24px, 5vw, 88px); }

.work-item a { display: block; color: inherit; }
.work-item a:hover { color: inherit; }
.work-item__thumb {
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: 4px;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(115deg, var(--bg-tile) 0 12px, var(--bg-tile-alt) 12px 24px);
  position: relative; overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.work-item a:hover .work-item__thumb { transform: translateY(-6px); }
.work-item__thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block; border-radius: 4px;
}
.work-item__thumb span {
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
}
.work-item__tag {
  display: block; margin-top: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.work-item h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(21px, 1.9vw, 30px); letter-spacing: -.02em;
  line-height: 1.15; margin: 8px 0 0; color: var(--ink);
}
.work-item p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-dim); max-width: 40ch; }
.work-item__more {
  display: inline-block; margin-top: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.section-head .display--md { text-transform: uppercase; }

/* Chips / Stichwortkacheln */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.chip { border: 1px solid var(--line-soft); border-radius: 4px; padding: 16px; background: var(--bg); }
.chip b { display: block; font-size: 14px; font-weight: 600; }
.chip span { display: block; font-size: 13px; color: var(--ink-dim); margin-top: 6px; }
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tags div { border: 1px solid var(--line-soft); border-radius: 4px; padding: 16px; font-size: 14px; }

/* Tabellenartige Listen (Team, Impressum) */
.rows { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.row { background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(180px, 1fr) minmax(200px, 2fr); gap: clamp(12px, 2vw, 32px); padding: 22px clamp(16px, 2vw, 32px); }
.row--head { background: var(--bg-panel); padding-block: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.row b { font-family: var(--display); font-weight: 800; font-size: 17px; }
.row div:last-child { font-size: 15px; line-height: 1.6; color: var(--ink-dim); }

/* Leistungsblöcke */
.service-block { padding-block: clamp(28px, 4vw, 60px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 64px); }
.service-block:first-child { border-top: 0; }
.service-block h2 { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase; margin: 14px 0 0; max-width: 14ch; }

/* Fallstudien-Abschnitte */
.case-block { border-top: 1px solid var(--line); padding-block: clamp(24px, 3vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 56px); }
.case-block h2 { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase; margin: 0; max-width: 14ch; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(20px, 3vw, 48px); }
.meta-grid dt { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.meta-grid dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }

/* Rechtstexte */
.legal-block { border-top: 1px solid var(--line); padding-block: clamp(24px, 3vw, 44px); }
.legal-block h2 { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 2vw, 26px); letter-spacing: -.02em; margin: 0 0 12px; }
.todo { color: var(--ink-ghost); }


/* 7b) Leistungen: Akkordeon-Abschnitte -------------------------------------
   Nachbau von dreamsandbytes.com/en/services: durchgehend dunkle Seite,
   zentrierte Überschrift, danach je Leistungsgruppe eine zweispaltige Sektion —
   links Motiv und Gruppentitel, rechts das Akkordeon. Maße und Typografie
   entsprechen der Vorlage. */
.svc-hero { padding: clamp(96px, 12vw, 190px) 0 30px; text-align: center; }
.svc-hero__titel {
  margin: 0 auto;
  max-width: 1200px;
  font-size: clamp(32px, 5.6vw, 72px);
  line-height: 1.2;
  letter-spacing: -.031em;
  font-weight: 900;
  text-transform: uppercase;
}
.svc-hero__lead { margin: 26px auto 0; }

.svc-section { padding-block: clamp(56px, 8vw, 120px); scroll-margin-top: 84px; }
.svc-section:last-of-type { padding-bottom: clamp(72px, 10vw, 160px); }
.svc-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
.svc-section__inner > * { min-width: 0; }

.svc-intro { position: sticky; top: 108px; padding-right: clamp(24px, 4vw, 72px); }
.svc-intro__titel {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.17;
  letter-spacing: -.025em;
  font-weight: 600;
  text-transform: uppercase;
  margin: 24px 0 16px;
}
.svc-intro__copy { font-size: 18px; line-height: 1.45; letter-spacing: -.2px; max-width: 440px; margin: 0; }

/* Motiv statt des 3D-Icons der Vorlage: gleiche Position, gleiche Wirkung. */
.svc-media { width: 100%; max-width: 340px; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.svc-motiv { width: 100%; height: 100%; display: block; }
.svc-motiv circle, .svc-motiv rect, .svc-motiv path {
  fill: none; stroke: var(--line-strong); stroke-width: 1.4;
  transform-box: fill-box; transform-origin: center;
}
.svc-motiv .ist-akzent { stroke: var(--accent); }
.svc-motiv .ist-voll { fill: var(--accent); stroke: none; }

@keyframes svc-dreh { to { transform: rotate(360deg); } }
@keyframes svc-dreh-zurueck { to { transform: rotate(-360deg); } }
@keyframes svc-schweben { 50% { transform: translateY(-7px); } }
@keyframes svc-puls { 50% { transform: scale(1.35); opacity: .35; } }

.svc-motiv__a1 { animation: svc-dreh 34s linear infinite; }
.svc-motiv__a2 { animation: svc-dreh-zurueck 22s linear infinite; }
.svc-motiv__a3 { animation: svc-dreh 14s linear infinite; }
.svc-motiv__b1, .svc-motiv__b2, .svc-motiv__b3 { animation: svc-schweben 5.4s ease-in-out infinite; }
.svc-motiv__b2 { animation-delay: -1.8s; }
.svc-motiv__b3 { animation-delay: -3.6s; }
.svc-motiv__orbit { transform-box: view-box; transform-origin: 50% 50%; animation: svc-dreh 9s linear infinite; }
.svc-motiv__kern { animation: svc-puls 3.4s ease-in-out infinite; }

/* Akkordeon — Maße wie in der Vorlage */
.svc-akk__item { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.svc-akk__kopf {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; min-height: 40px;
}
.svc-akk__kopf::-webkit-details-marker { display: none; }
.svc-akk__kopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.svc-akk__titel {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.21;
  letter-spacing: -.3px;
  color: var(--ink);
  margin: 0;
}
.svc-akk__kopf:hover .svc-akk__titel { color: var(--accent); }

.svc-akk__icon {
  position: relative; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .25s;
}
.svc-akk__kopf:hover .svc-akk__icon { border-color: var(--accent); }
.svc-akk__icon::before, .svc-akk__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s ease, opacity .3s ease, background-color .25s;
}
.svc-akk__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc-akk__kopf:hover .svc-akk__icon::before,
.svc-akk__kopf:hover .svc-akk__icon::after { background: var(--accent); }
.svc-akk__item[open] .svc-akk__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.svc-akk__huelle { overflow: hidden; }
.svc-akk__text { padding: 6px 0 32px; max-width: calc(100% - 100px); }
.svc-akk__text p { font-size: 18px; line-height: 1.56; letter-spacing: -.2px; color: var(--ink); margin: 0; }

/* 7c) Kunden: Logoraster ---------------------------------------------------
   Nach dem Vorbild dreamsandbytes.com/en/clients: zentrierte Überschrift,
   darunter quadratische Kacheln im Fünferraster und ein Button, der weitere
   Kunden nachlädt. Ohne Logodatei zeigt die Kachel die Wortmarke — das ist
   auch im Vorbild der Rückfall. */
.kunden-hero { padding-block: clamp(72px, 9vw, 160px) clamp(24px, 3vw, 40px); text-align: center; }
.kunden-hero__titel {
  margin: 0 auto;
  font-size: clamp(32px, 5.9vw, 80px);
  line-height: 1.08;
  letter-spacing: -.04em;
  max-width: 20ch;
}

.kunden { padding-block: clamp(32px, 5vw, 72px) var(--sec); }
.kunden__logos {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.kunden__logo { aspect-ratio: 1 / 1; display: flex; }
.kunden__logo[hidden] { display: none; }

.kunden__kachel {
  width: 100%; height: 100%;
  border-radius: 6px;
  background: var(--bg-tile);
  border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  padding: 28px; text-align: center; overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: background-color .3s, border-color .3s, transform .3s;
}
a.kunden__kachel:hover {
  background: var(--bg); border-color: var(--line-strong);
  transform: translateY(-3px);
}
.kunden__inhalt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.kunden__inhalt img { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; display: block; }

/* Manche Logos sind für dunkle Hintergründe gezeichnet — dann bekommt die
   Kachel den Markengrund statt der hellen Fläche. */
.kunden__kachel--dunkel { background: #07120C; }
a.kunden__kachel--dunkel:hover { background: #0B1A11; border-color: var(--line-strong); }
.kunden__kachel--dunkel .kunden__wortmarke { color: #EDEDEA; }
.kunden__kachel--dunkel .kunden__branche { color: #8CA396; }
.kunden__wortmarke {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(14px, 1.25vw, 19px);
  line-height: 1.2;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
a.kunden__kachel:hover .kunden__wortmarke { color: var(--accent); }
.kunden__branche {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.4;
}


/* 8) Formular -------------------------------------------------------------- */
.form { border: 1px solid var(--line-soft); border-radius: 6px; background: var(--bg-panel); padding: clamp(22px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.form__legend { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form input, .form textarea, .form select {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 14px 16px; color: var(--ink); font-size: 15px; font-family: var(--body);
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,164,107,.15); }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-ghost); }
.topic-list { display: flex; flex-wrap: wrap; gap: 10px; }
.topic {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px;
  font-size: 13px; color: var(--ink-muted); background: var(--bg); transition: .2s;
}
.topic:hover { border-color: var(--accent); color: var(--ink); }
.topic.is-active { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.form__ok { font-size: 14px; color: var(--accent); }
.form__error, .validation-message { font-size: 13px; color: #C0392B; }

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.contact-info dd { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-muted); }

/* 9) Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-panel); }
.site-footer__inner { max-width: var(--wrap); margin-inline: auto; padding: clamp(56px, 8vw, 120px) var(--pad) 28px; }
.site-footer__cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: end; padding-bottom: clamp(40px, 6vw, 90px); border-bottom: 1px solid var(--line-soft); }
.site-footer__cta h2 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 6.4vw, 100px); line-height: 1.02; letter-spacing: -.04em; text-transform: uppercase; margin: 0; color: var(--ink); }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(20px, 3vw, 48px); padding-block: clamp(32px, 4vw, 64px); }
.site-footer__cols h3 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px; }
.site-footer__cols li + li { margin-top: 10px; }
.site-footer__cols a, .site-footer__cols span { font-size: 15px; color: var(--ink); }
.site-footer__cols span { color: var(--ink-dim); }
.site-footer__bottom {
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.site-footer__bottom a { color: var(--ink-faint); }

.site-footer__legal { display: flex; gap: 18px; }

/* 10) Animation ------------------------------------------------------------ */
/* Nur mit aktivem JavaScript ausblenden — sonst bliebe der Inhalt unsichtbar,
   wenn das Skript blockiert wird oder fehlschlägt.
   Kurze Dauer plus überschwingende Kurve: die Kacheln "ploppen" herein,
   statt gemächlich einzublenden. Die Reihenfolge setzt site.js per Verzögerung. */
.js [data-anim] {
  opacity: 0;
  transform: translateY(22px) scale(.965);
  transition: opacity .26s cubic-bezier(.2,.8,.25,1),
              transform .38s cubic-bezier(.34, 1.45, .5, 1);
  will-change: opacity, transform;
}
.js [data-anim].is-in { opacity: 1; transform: none; }

/* Blazor-Standardanzeigen */
#blazor-error-ui {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: #FDECEA; color: #A6271B; padding: 14px 20px; font-size: 14px;
  border-top: 1px solid #F3C6C0;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
.blazor-error-boundary { background: #FDECEA; color: #A6271B; padding: 16px 20px; }

/* 11) Responsive ----------------------------------------------------------- */
/* Die Navigation hat nur noch fünf Punkte — der CTA passt daher bis zum
   Burger-Breakpoint daneben. */
@media (max-width: 1140px) {
  .site-header__inner .btn { display: none; }
}

@media (max-width: 1140px) {
  .burger { display: grid; margin-left: auto; }
  .nav {
    position: fixed; inset: 75px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 22px; margin: 0;
    max-height: calc(100vh - 75px); overflow-y: auto;
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .25s;
    box-shadow: 0 18px 40px -24px rgba(7,18,12,.35);
  }
  .is-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
}

@media (max-width: 1140px) {
  .work-item, .work-item--s3, .work-item--s4, .work-item--s5,
  .work-item--s6, .work-item--s7, .work-item--s8, .work-item--s9,
  .work-item--s10, .work-item--s11 { grid-column: span 6; }
  .work-item--s12 { grid-column: span 12; }
  .work-item--versatz { margin-top: 0; }
  .work-item__thumb { aspect-ratio: 4 / 3; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 4 / 3; max-height: 420px; }
  .hero__hint { display: none; }
}

@media (max-width: 1080px) {
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row--head { display: none; }
}

/* Auf schmalen Displays passt selbst ein einzelnes Kompositum nicht mehr in
   eine Zeile — dort wird getrennt. */
@media (max-width: 720px) {
  .display {
    hyphens: auto;
    hyphenate-limit-chars: 8 4 4;
  }
}

@media (max-width: 700px) {
  .work-item, .work-item--s3, .work-item--s4, .work-item--s5, .work-item--s6,
  .work-item--s7, .work-item--s8, .work-item--s9, .work-item--s10,
  .work-item--s11, .work-item--s12 { grid-column: span 12; }
}

@media (max-width: 640px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1080px) {
  .svc-section__inner { grid-template-columns: 1fr; gap: 32px; }
  .svc-intro { position: static; padding-right: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 28px; align-items: center; }
  .svc-media { max-width: 150px; grid-row: span 3; }
  .svc-intro__titel { margin-top: 0; }
}

@media (max-width: 620px) {
  .svc-intro { grid-template-columns: 1fr; gap: 16px; }
  .svc-media { max-width: 120px; grid-row: auto; }
  .svc-intro__titel { font-size: 28px; line-height: 1.21; letter-spacing: -.8px; }
  .svc-intro__copy { font-size: 14px; line-height: 1.57; }
  .svc-akk__kopf { padding: 16px 0; gap: 16px; }
  .svc-akk__titel { font-size: 18px; line-height: 1.22; letter-spacing: -.2px; }
  .svc-akk__icon { width: 24px; height: 24px; }
  .svc-akk__icon::before, .svc-akk__icon::after { width: 10px; }
  .svc-akk__text { max-width: 100%; }
  .svc-akk__text p { font-size: 14px; line-height: 1.57; }
}

@media (max-width: 1240px) {
  .kunden__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .kunden__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .kunden__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kunden__kachel { padding: 16px; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-anim] { opacity: 1; transform: none; }
}
