/* ==========================================================================
   IT-360 – Stylesheet
   --------------------------------------------------------------------------
   Aufbau:
   1.  Schriften (lokal, DSGVO-freundlich)
   2.  Design-Tokens (Farben, Abstände, Typo-Skala)
   3.  Basis & Hilfsklassen
   4.  Buttons & Links
   5.  Header / Navigation
   6.  Hero (Headline, Globus, Terminal, Logo-Laufband)
   7.  Sektionen allgemein
   8.  Leistungen
   9.  KI (Ablauf + Chat-Demo)
   10. Datenrettung
   11. Kunden & Projekte
   12. Über mich & Ablauf
   13. Bewertungen
   14. Kontakt
   15. Footer & Cookie-Banner
   16. Unterseiten (Impressum, Datenschutz, Danke)
   17. Responsive & reduzierte Bewegung
   ========================================================================== */

/* 1. Schriften ------------------------------------------------------------ */
/* Display: TeX Gyre Adventor (geometrisch, passt zum IT-360-Logo) */
@font-face {
  font-family: "Adventor";
  src: url("../fonts/adventor-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Adventor";
  src: url("../fonts/adventor-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
/* Fließtext: Inter */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
/* Terminal: DejaVu Sans Mono */
@font-face {
  font-family: "Term";
  src: url("../fonts/mono-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Term";
  src: url("../fonts/mono-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* 2. Design-Tokens -------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Farben – abgeleitet vom goldenen IT-360-Logo auf tiefem Nachtblau */
  --night: #0d1526; /* Seitenhintergrund */
  --deep: #121c32; /* abgesetzte Sektionen */
  --panel: #18243f; /* Karten, Terminal */
  --line: #27365a; /* Linien, Rahmen */
  --gold: #cfae6f; /* Markenfarbe */
  --gold-soft: #e9d5a6; /* Hover, Hervorhebung */
  --paper: #f1ebdf; /* Haupttext */
  --mist: #9ba7c0; /* Nebentext */
  --signal: #7fd8a9; /* nur Terminal-Status "ok" */
  --alert: #f08a7e; /* nur "Nicht tun"-Hinweise */

  /* Schriften */
  --font-display: "Adventor", "Century Gothic", "Avant Garde", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Term", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Typo-Skala (Verhältnis ~1.25, fluid) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --step-4: clamp(2.5rem, 1.5rem + 4vw, 5rem);

  /* Abstände & Layout */
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius-s: 6px;
  --radius-m: 14px;
  --header-h: 76px;
}

/* 3. Basis ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-soft);
}

/* Sichtbarer Tastatur-Fokus überall */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Icon aus dem SVG-Sprite */
.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}
.i-lg {
  width: 2rem;
  height: 2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--night);
  border-radius: var(--radius-s);
}
.skip-link:focus {
  top: 1rem;
}

/* 4. Buttons & Links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 var(--step-0) / 1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--night);
}
.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--night);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* Textlink mit Pfeil-Unterstreichung */
.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
  text-decoration: underline;
}

.link-btn {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 5. Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition:
    background-color 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}

/* Wird per JS gesetzt, sobald gescrollt wurde */
.site-header.is-scrolled {
  background: rgb(13 21 38 / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand img {
  width: 132px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  color: var(--paper);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--gold);
}

.main-nav .nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
}
.main-nav .nav-cta:hover {
  background: var(--gold);
  color: var(--night);
}

/* Burger (nur mobil sichtbar) */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--paper);
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.burger span:nth-child(1) {
  top: 15px;
}
.burger span:nth-child(2) {
  top: 21px;
}
.burger span:nth-child(3) {
  top: 27px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem));
  /* feines Punktraster als Leiterplatten-Anmutung */
  background:
    radial-gradient(circle at 75% 35%, rgb(207 174 111 / 0.12), transparent 45%),
    radial-gradient(var(--line) 1px, transparent 1.4px) 0 0 / 28px 28px,
    var(--night);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  color: var(--mist);
  font-size: var(--step--1);
  font-weight: 500;
}

/* pulsierender Punkt = "online / erreichbar" */
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgb(127 216 169 / 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgb(127 216 169 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(127 216 169 / 0);
  }
}

.hero-title {
  font-size: clamp(2.4rem, 1rem + 3.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* jede Zeile eigene Blockzeile; die drei Zeilen staffeln sich nach rechts */
.hero-title span {
  display: block;
  white-space: nowrap; /* jede Aussage bleibt auf einer Zeile (mobil wieder umbrechend) */
}
.hero-title span:nth-child(2) {
  padding-left: 0.5em;
  color: var(--gold-soft);
}
.hero-title span:nth-child(3) {
  padding-left: 1em;
  color: var(--gold);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.8rem;
  color: var(--mist);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

/* --- Visual: Globus + Terminal --- */
.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: end start;
}

.globe {
  position: absolute;
  top: -8%;
  right: -22%;
  width: min(600px, 115%);
  aspect-ratio: 1;
  height: auto;
  cursor: grab;
  touch-action: pan-y; /* vertikal scrollen bleibt auf Touch möglich */
}
.globe:active {
  cursor: grabbing;
}

.terminal {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  margin-left: -1.5rem;
  background: rgb(18 28 50 / 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow:
    0 30px 60px -20px rgb(0 0 0 / 0.6),
    0 0 0 1px rgb(207 174 111 / 0.06) inset;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}

.terminal-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}
.terminal-bar .dot:first-child {
  background: #e0806f;
}
.terminal-bar .dot:nth-child(2) {
  background: var(--gold);
}
.terminal-bar .dot:nth-child(3) {
  background: var(--signal);
}

.terminal-title {
  margin-left: auto;
  color: var(--mist);
  font-size: 0.78rem;
}

.terminal-body {
  height: 250px;
  padding: 1rem 1.1rem 0.4rem;
  overflow-y: auto;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* Zeilentypen im Terminal */
.t-line {
  white-space: pre-wrap;
  word-break: break-word;
}
.t-cmd {
  color: var(--paper);
}
.t-cmd::before {
  content: "❯ ";
  color: var(--gold);
}
.t-out {
  color: var(--mist);
}
.t-ok {
  color: var(--signal);
}
.t-gold {
  color: var(--gold);
}
.t-err {
  color: var(--alert);
}
.t-line a {
  color: var(--gold-soft);
}

/* blinkender Cursor während des Tippens */
.t-caret::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--gold);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.terminal-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem 0.9rem;
}

.terminal-input .prompt {
  color: var(--gold);
}

.terminal-input input {
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0;
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--line);
  color: var(--paper);
  font: inherit;
  caret-color: var(--gold);
}
.terminal-input input::placeholder {
  color: #5d6a88;
}
.terminal-input input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

/* --- Logo-Laufband --- */
.logo-rail {
  position: relative;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  /* Ränder weich ausblenden */
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-rail-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: rail 45s linear infinite;
}

/* Pause bei Hover/Fokus, damit man gezielt klicken kann */
.logo-rail:hover .logo-rail-track,
.logo-rail:focus-within .logo-rail-track {
  animation-play-state: paused;
}

.logo-rail-track a {
  display: grid;
  place-items: center;
  width: 168px;
  height: 84px;
  padding: 0.5rem 0.9rem;
  background: var(--tile, var(--panel));
  border-radius: var(--radius-s);
  opacity: 0.82;
  transition: opacity 0.2s;
}
.logo-rail-track a:hover {
  opacity: 1;
}
.logo-rail-track img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

@keyframes rail {
  to {
    transform: translateX(-50%);
  }
}

/* 7. Sektionen ------------------------------------------------------------ */
.section {
  padding-block: var(--section);
}

.section-deep {
  background: var(--deep);
  border-block: 1px solid var(--line);
}

.section-tight {
  padding-block: calc(var(--section) * 0.7);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 1rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: var(--step-3);
}

.section-head p {
  max-width: 34rem;
  color: var(--mist);
}

/* 8. Leistungen ----------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-group {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Hervorgehobener KI-Bereich mit dezentem Goldschimmer */
.service-group.is-featured {
  background: linear-gradient(160deg, rgb(207 174 111 / 0.1), transparent 60%);
}

.service-group h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: var(--step-2);
}

.service-group h3 .i {
  width: 1.1em;
  height: 1.1em;
  color: var(--gold);
}

.service-group ul {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-group li {
  display: grid;
  gap: 0.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  transition: border-color 0.2s;
}
.service-group li:hover {
  border-color: var(--gold);
}

.service-group li strong {
  font-weight: 600;
}

.service-group li span {
  color: var(--mist);
  font-size: 0.97rem;
}

/* 9. KI ------------------------------------------------------------------- */
.ki-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.ki-copy h2 {
  font-size: var(--step-3);
  margin-bottom: 1.4rem;
}

.ki-copy > p {
  max-width: 36rem;
  color: var(--mist);
}
.ki-copy > p strong {
  color: var(--paper);
}

/* Agent-Ablauf als vertikale Kette */
.flow {
  counter-reset: flow;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.flow li {
  counter-increment: flow;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
}

.flow li::before {
  content: counter(flow);
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font: 700 0.85rem var(--font-mono);
  background: var(--deep);
  position: relative;
  z-index: 1;
}

/* Verbindungslinie zwischen den Schritten */
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1rem - 0.5px);
  top: 2.4rem;
  height: calc(100% - 1.7rem);
  border-left: 1px dashed var(--line);
}

.ticks {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--mist);
}

.ticks li {
  position: relative;
  padding-left: 1.6rem;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--signal);
  font-weight: 700;
}

/* --- Chat-Demo --- */
.chat {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.chat-head strong {
  display: block;
  font-size: 0.98rem;
}

.chat-status {
  color: var(--signal);
  font-size: 0.8rem;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night);
}
.chat-avatar .i {
  width: 20px;
  height: 20px;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 320px;
  padding: 1.2rem;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  animation: msg-in 0.25s ease-out;
}

.msg.bot {
  align-self: flex-start;
  background: var(--panel);
  border-bottom-left-radius: 4px;
}

.msg.user {
  align-self: flex-end;
  background: var(--gold);
  color: var(--night);
  border-bottom-right-radius: 4px;
}

/* Tipp-Anzeige "…" des Bots */
.msg.typing {
  display: inline-flex;
  gap: 4px;
}
.msg.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mist);
  animation: dots 1s infinite;
}
.msg.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.msg.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dots {
  50% {
    transform: translateY(-4px);
    opacity: 0.4;
  }
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid var(--line);
}

.chat-chips button {
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  font: 500 0.85rem var(--font-body);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.chat-chips button:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}
.chat-chips button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* 10. Datenrettung -------------------------------------------------------- */
.rescue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.rescue-copy h2 {
  font-size: var(--step-3);
  margin-bottom: 1.4rem;
}

.rescue-copy > p {
  color: var(--mist);
}

.first-aid {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--deep);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-s);
}

.first-aid h3 {
  margin-bottom: 1rem;
  font-size: var(--step-1);
}

.first-aid ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.first-aid li {
  position: relative;
  padding-left: 1.8rem;
}
.first-aid li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.first-aid .do::before {
  content: "✓";
  color: var(--signal);
}
.first-aid .dont::before {
  content: "✕";
  color: var(--alert);
}

/* Ablauf: nummerierte Schritte mit großen Ziffern */
.steps {
  counter-reset: step;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.4rem 2.5rem;
}
.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font: 700 var(--step-2) / 1 var(--font-display);
}

/* Markierungspunkt auf der Linie */
.steps li::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.6rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.steps h3 {
  font-size: var(--step-1);
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--mist);
}

/* 11. Kunden -------------------------------------------------------------- */
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.client {
  display: flex;
  flex-direction: column;
  color: var(--paper);
  text-decoration: none;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition:
    border-color 0.25s,
    transform 0.25s;
}

.client:hover {
  color: var(--paper);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* Logofläche in der Hintergrundfarbe des jeweiligen Logos */
.client-logo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 1.2rem 1.5rem;
  background: var(--tile, var(--panel));
}

.client-logo img {
  max-height: 130px;
  width: auto;
  max-width: 88%;
  object-fit: contain;
  transition: transform 0.35s;
}
.client:hover .client-logo img {
  transform: scale(1.05);
}

.client-meta {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.1rem 1.2rem;
}

.client-meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.client-meta span {
  color: var(--mist);
  font-size: 0.9rem;
  line-height: 1.45;
}

.client-meta em {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
}
.client-meta em .i {
  width: 0.8em;
  height: 0.8em;
}

/* Einladungskachel "Ihr Projekt" */
.client-next .client-logo {
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgb(39 54 90 / 0.5) 10px 11px);
  border-bottom: 1px dashed var(--line);
}
.next-mark {
  padding: 0.5rem 1rem;
  border: 1px dashed var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-display);
}

/* 12. Über mich & Ablauf -------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-photo {
  margin: 0;
  max-width: 340px;
}

.photo-frame {
  position: relative;
}

/* goldener Versatz-Rahmen hinter dem Foto */
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-m);
}

.about-photo img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  background: #e9eaec;
}

.about-photo figcaption {
  margin-top: 2rem;
  color: var(--mist);
  font-size: var(--step--1);
}

.about-copy h2 {
  font-size: var(--step-3);
  margin-bottom: 1.4rem;
}

.about-copy p {
  max-width: 38rem;
  color: var(--mist);
}
.about-copy p + p {
  margin-top: 1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.2rem 0 0;
}

.facts div {
  padding-top: 1rem;
  border-top: 1px solid var(--gold);
}

.facts dt {
  font: 700 var(--step-2) / 1.1 var(--font-display);
  color: var(--gold);
}

.facts dd {
  margin: 0.35rem 0 0;
  color: var(--mist);
  font-size: 0.92rem;
}

/* Projekt-Ablauf: 4 Spalten mit Zähler */
.process {
  counter-reset: proc;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process li {
  counter-increment: proc;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.process li::before {
  content: counter(proc);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night);
  font: 700 0.9rem var(--font-mono);
}

.process h3 {
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}

.process p {
  color: var(--mist);
  font-size: 0.95rem;
}

/* 13. Bewertungen --------------------------------------------------------- */
.reviews-placeholder {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  max-width: 40rem;
  margin-inline: auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  color: var(--mist);
}

.reviews-placeholder .i {
  color: var(--gold);
}

/* 14. Kontakt ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-copy h2 {
  font-size: var(--step-3);
  margin-bottom: 1.4rem;
}

.contact-copy > p {
  color: var(--mist);
  max-width: 30rem;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-list .i {
  color: var(--gold);
}

.contact-list a {
  color: var(--paper);
  text-decoration: none;
}
.contact-list a:hover {
  color: var(--gold);
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
}

.contact-form label > span {
  font-size: var(--step--1);
  font-weight: 500;
}

.contact-form small {
  color: var(--mist);
  font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.contact-form .consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--gold);
  flex: none;
}
.contact-form .consent span {
  color: var(--mist);
  font-weight: 400;
  font-size: 0.9rem;
}

.contact-form .btn {
  justify-self: start;
}

/* Honeypot: unsichtbar, aber nicht display:none (manche Bots prüfen das) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 15. Footer & Cookie-Banner --------------------------------------------- */
.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: var(--step--1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-inner img {
  width: 96px;
  height: auto;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-left: auto;
}

.footer-inner nav a {
  color: var(--mist);
}
.footer-inner nav a:hover {
  color: var(--gold);
}

.footer-inner .copy {
  width: 100%;
  color: #6a7795;
}

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.2rem 2rem;
  width: min(760px, calc(100% - 2rem));
  padding: 1.1rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 20px 50px -10px rgb(0 0 0 / 0.6);
  transform: translateX(-50%);
  font-size: 0.92rem;
}

.consent-banner[hidden] {
  display: none;
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
  flex: none;
}

.consent-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

/* 16. Unterseiten --------------------------------------------------------- */
.page {
  padding: calc(var(--header-h) + 4rem) 0 var(--section);
}

.page h1 {
  font-size: var(--step-3);
  margin-bottom: 2.5rem;
}

.legal {
  max-width: 46rem;
}

.legal h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: var(--step-1);
  color: var(--gold);
}

.legal p,
.legal li {
  color: var(--mist);
}

.legal p + p {
  margin-top: 0.8rem;
}

.legal strong {
  color: var(--paper);
}

.legal ul {
  padding-left: 1.2rem;
}

.thanks {
  min-height: 70vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.4rem;
}

.thanks p {
  color: var(--mist);
  max-width: 34rem;
}

/* Kartenvorschau im Impressum (2-Klick-Lösung) */
.map-box {
  margin-top: 1.2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.map-box iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
.map-box .map-placeholder {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 1.5rem;
  color: var(--mist);
}

/* 16b. Mehrseitige Struktur --------------------------------------------------
   Navigation mit Dropdown, Unterseiten-Kopf, Leistungskarten, Tablet-Referenzen,
   Preise, Call-to-Action und Footer
   -------------------------------------------------------------------------- */

/* --- Dropdown "Leistungen" --- */
.nav-drop {
  position: relative;
}

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--paper);
  font: 500 var(--step--1) var(--font-body);
  cursor: pointer;
}

.nav-drop-btn .i {
  width: 0.7em;
  height: 0.7em;
  transition: transform 0.2s;
}

.nav-drop.is-open .nav-drop-btn .i {
  transform: rotate(180deg);
}

.nav-drop-btn:hover,
.nav-drop.is-active .nav-drop-btn,
.main-nav a[aria-current="page"] {
  color: var(--gold);
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: -1rem;
  display: grid;
  gap: 0.25rem;
  width: 340px;
  padding: 0.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 24px 50px -16px rgb(0 0 0 / 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
}

/* unsichtbare Brücke, damit das Menü beim Hinüberfahren nicht zuklappt */
.nav-drop-menu::before {
  content: "";
  position: absolute;
  inset: -1rem 0 auto;
  height: 1rem;
}

.nav-drop.is-open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (hover: hover) and (min-width: 821px) {
  .nav-drop:hover .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

.nav-drop-menu a {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-s);
}

.nav-drop-menu a:hover,
.nav-drop-menu a[aria-current="page"] {
  background: rgb(207 174 111 / 0.1);
  color: var(--paper);
}

.nav-drop-menu .i {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--gold);
}

.nav-drop-menu strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-drop-menu small {
  color: var(--mist);
  font-size: 0.82rem;
}

/* --- Kopfbereich der Unterseiten --- */
.page-hero {
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(circle at 85% 0%, rgb(207 174 111 / 0.12), transparent 50%),
    radial-gradient(var(--line) 1px, transparent 1.4px) 0 0 / 28px 28px,
    var(--night);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 22ch;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-lead {
  max-width: 40rem;
  margin-top: 1.4rem;
  color: var(--mist);
  font-size: var(--step-1);
}

.page-hero .hero-actions {
  margin-top: 2rem;
}

/* Breadcrumb als Shell-Pfad: "❯ cd ~/leistungen/ki" */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 1.4rem;
  color: var(--mist);
  font: 0.88rem var(--font-mono);
}

.crumbs-prompt {
  margin-right: 0.4rem;
  color: var(--gold);
}

.crumbs a {
  color: var(--gold-soft);
  text-decoration: none;
}

.crumbs span:not(.crumbs-prompt) {
  color: #5d6a88;
}

/* --- Leistungskarten auf der Startseite --- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
  color: var(--paper);
  text-decoration: none;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition:
    border-color 0.25s,
    transform 0.25s;
}

.service-card:hover {
  color: var(--paper);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.service-card.is-featured {
  background: linear-gradient(160deg, rgb(207 174 111 / 0.14), var(--deep) 65%);
}

.service-card h3 {
  font-size: var(--step-1);
}

.service-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--mist);
  font-size: 0.93rem;
}

.service-card li {
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  color: var(--gold);
}

.service-icon .i {
  width: 20px;
  height: 20px;
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.section-foot {
  margin-top: 2.2rem;
}

/* --- Referenzen im Tablet --- */
.projects {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

.projects-2 {
  grid-template-columns: repeat(2, 1fr);
}

.projects-3 {
  grid-template-columns: repeat(3, 1fr);
}

.project {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* Tablet-Rahmen: dunkler Rand, Kamera-Punkt, leicht schräges Licht */
.tablet {
  position: relative;
  padding: 3.2%;
  background: linear-gradient(145deg, #2a3550, #10182b);
  border: 1px solid #34436a;
  border-radius: 26px;
  box-shadow:
    0 30px 60px -28px rgb(0 0 0 / 0.85),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
  transition: transform 0.35s;
}

.tablet::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.4%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a0f1c;
  box-shadow: inset 0 0 0 1px #3c4b72;
  transform: translateY(-50%);
}

.project:hover .tablet {
  transform: translateY(-4px) rotate(-0.4deg);
}

.tablet-screen {
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--tile, #fff);
}

.tablet-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Platzhalter, solange kein Screenshot da ist: Logo auf Markenfarbe */
.tablet-screen.is-logo {
  display: grid;
  place-items: center;
  padding: 8%;
}

.tablet-screen.is-logo img.tablet-logo {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 80%;
  object-fit: contain;
}

.project-meta h2,
.project-meta h3 {
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}

.project-meta p {
  color: var(--mist);
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  font-size: 0.78rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.project-link .i {
  width: 0.8em;
  height: 0.8em;
}

.project-link.is-muted {
  color: var(--mist);
  font-weight: 500;
}

.clients-2 {
  grid-template-columns: repeat(2, minmax(0, 320px));
}

/* --- Detailseiten --- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.detail-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.detail h2 {
  font-size: var(--step-2);
}

.detail > p {
  color: var(--mist);
}

.usecases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.usecases article {
  padding-top: 1.1rem;
  border-top: 1px solid var(--gold);
}

.usecases h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.usecases p {
  color: var(--mist);
  font-size: 0.95rem;
}

.sub-h {
  margin: 0 0 0.8rem;
  font-size: var(--step-1);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.45rem 0.9rem;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
}

/* --- Call-to-Action-Band --- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: radial-gradient(circle at 100% 0%, rgb(207 174 111 / 0.18), transparent 55%), var(--deep);
  border: 1px solid var(--gold);
  border-radius: 20px;
}

.cta-band h2 {
  font-size: var(--step-3);
  margin-bottom: 0.6rem;
}

.cta-band p {
  max-width: 34rem;
  color: var(--mist);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.section-flush {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* --- Preise --- */
.price-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  background: var(--night);
  scrollbar-width: none;
}

.price-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.price-tabs a:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.price-tabs .i {
  color: var(--gold);
}

.price-cat {
  scroll-margin-top: calc(var(--header-h) + 5rem);
}

.price-cat + .price-cat {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.price-cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}

.price-cat-head h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step-2);
}

.price-cat-head h2 .i {
  color: var(--gold);
}

.price-cat-head .text-link {
  margin-top: 0;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.price-card.is-featured {
  border-color: var(--gold);
  background: linear-gradient(170deg, rgb(207 174 111 / 0.12), var(--deep) 55%);
}

.price-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.6rem;
  padding: 0.2rem 0.75rem;
  background: var(--gold);
  border-radius: 999px;
  color: var(--night);
  font-size: 0.76rem;
  font-weight: 600;
}

.price-card h3 {
  font-size: var(--step-1);
}

.price-desc {
  color: var(--mist);
  font-size: 0.93rem;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  padding: 0.9rem 0;
  border-block: 1px solid var(--line);
}

.price-value {
  font: 700 var(--step-2) / 1 var(--font-display);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.price-value.is-request {
  font-size: var(--step-1);
  color: var(--gold-soft);
}

.price-ab {
  font-size: 0.6em;
  font-weight: 400;
  color: var(--mist);
}

.price-unit {
  color: var(--mist);
  font-size: 0.85rem;
}

.price-card .ticks {
  font-size: 0.93rem;
}

.price-card .btn {
  margin-top: auto;
  justify-content: center;
}

.price-loading {
  padding: 2rem 0;
  color: var(--mist);
}

.rates-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem 4rem;
  align-items: start;
}

.rates-grid h2 {
  font-size: var(--step-3);
  margin-bottom: 0.8rem;
}

.muted {
  color: var(--mist);
}

.rates {
  width: 100%;
  border-collapse: collapse;
}

.rates th,
.rates td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.rates th {
  font-weight: 500;
}

.rates td:nth-child(2) {
  text-align: right;
  white-space: nowrap;
}

.rates .price-value {
  font-size: var(--step-1);
}

.rates td.price-unit {
  width: 7rem;
  text-align: right;
}

.price-note {
  margin-top: 2rem;
  color: var(--mist);
  font-size: 0.92rem;
}

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

/* --- Footer --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand img {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 22rem;
}

.site-footer h2 {
  margin-bottom: 0.9rem;
  color: var(--paper);
  font-size: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  color: var(--mist);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: #6a7795;
}

/* --- Responsive für die neuen Bausteine --- */
@media (max-width: 1080px) {
  .service-cards,
  .usecases {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-3 .project:nth-child(3) {
    display: none; /* auf mittleren Screens 2 statt 3 Tablets */
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .detail-grid,
  .rates-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  /* Dropdown wird im mobilen Menü zur aufklappbaren Liste */
  .nav-drop {
    border-bottom: 1px solid var(--line);
  }

  .nav-drop-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0;
    font-size: var(--step-1);
  }

  .nav-drop-menu {
    position: static;
    width: auto;
    display: none;
    padding: 0 0 0.8rem;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-drop.is-open .nav-drop-menu {
    display: grid;
  }

  .main-nav .nav-drop-menu a {
    border-bottom: 0;
    font-size: 1rem;
    padding: 0.6rem 0.5rem;
  }

  .main-nav {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .projects-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .service-cards,
  .usecases,
  .projects-3,
  .detail-grid-2,
  .footer-grid,
  .clients-2 {
    grid-template-columns: 1fr;
  }

  .projects-3 .project:nth-child(3) {
    display: flex;
  }

  .tablet {
    border-radius: 18px;
  }

  .rates td.price-unit {
    display: none;
  }
}

/* Breite Projektkarte (z. B. Kebab Club): Tablet links, Text rechts */
.project-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.tablet-screen.is-contain img {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 820px) {
  .project-wide {
    grid-template-columns: 1fr;
  }
}

/* 17. Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .clients {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .ki-grid,
  .rescue-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
    place-items: center;
    padding-block: 2rem;
  }

  .globe {
    top: 50%;
    right: 50%;
    width: min(560px, 130vw);
    transform: translate(50%, -50%);
    opacity: 0.7;
  }

  .terminal {
    margin-left: 0;
  }

  .chat {
    position: relative;
    top: 0;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-photo {
    max-width: 280px;
  }
}

@media (max-width: 820px) {
  /* Mobile Navigation: ausklappbares Panel */
  .burger {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    visibility: hidden;
    transition:
      transform 0.3s ease,
      visibility 0.3s;
  }

  .main-nav.is-open {
    transform: none;
    visibility: visible;
  }

  .main-nav a {
    padding: 0.9rem 0;
    font-size: var(--step-1);
    border-bottom: 1px solid var(--line);
  }

  .main-nav .nav-cta {
    margin-top: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--gold);
  }

  .services {
    grid-template-columns: 1fr;
  }

  .clients {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-title span {
    white-space: normal;
  }

  .hero-title span:nth-child(2),
  .hero-title span:nth-child(3) {
    padding-left: 0;
  }

  .terminal-body {
    height: 240px;
  }

  .field-row,
  .process,
  .facts {
    grid-template-columns: 1fr;
  }

  .clients {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .client-meta {
    padding: 0.8rem;
  }

  .client-meta span {
    display: none; /* auf sehr kleinen Screens nur Name + Link */
  }

  .consent-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .footer-inner nav {
    margin-left: 0;
  }
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Laufband wird zur umbrechenden, statischen Logo-Reihe */
  .logo-rail {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .logo-rail-track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  .logo-rail-track a[aria-hidden="true"] {
    display: none;
  }
}
