/* ==========================================================================
   digital crafted – Relaunch 2026
   Farbwelt aus den Original-Markendateien übernommen:
   Akzent #4559F3 · Dunkel #050611 · Sekundärdunkel #1E1E1C
   Schriften: System-Stack. Bewusst KEINE Google Fonts – die alte Seite
   band sie extern ein, was Besucher-IPs ohne Einwilligung in die USA
   übertragen hat.
   ========================================================================== */

:root {
  --accent:        #4559f3;
  --accent-bright: #6a7bff;
  --accent-dim:    #2d3ac2;

  --ink:           #050611;
  --ink-2:         #101526;
  --ink-3:         #1b2136;

  --paper:         #ffffff;
  --paper-2:       #f4f5f8;
  --paper-3:       #e6e8ef;

  --text-on-dark:      #e8eaf2;
  --text-on-dark-mute: #9aa1bb;
  --text-on-light:     #14172a;
  --text-on-light-mute:#565d78;

  --line-dark:  rgba(255,255,255,.12);
  --line-light: rgba(5,6,17,.12);

  --wrap: 1720px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + .9vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);

  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- Reset ---------------------------------------------------------------- */

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

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

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

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

h1, h2, h3, h4 {
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }

a { color: inherit; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Grundbausteine ------------------------------------------------------- */

.wrap {
  width: min(100% - 3.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--dark  { background: var(--ink);    color: var(--text-on-dark); }
.section--dark2 { background: var(--ink-2);  color: var(--text-on-dark); }
.section--tint  { background: var(--paper-2); }

.section--dark p,
.section--dark2 p { color: var(--text-on-dark-mute); }

/* Abschnittskopf */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--1);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: ""; width: 1.9rem; height: 1px;
  background: currentColor; opacity: .7;
}
/* Auf dunklem Grund die hellere Variante – #4559F3 erreicht dort nur 3,8:1 */
.hero .eyebrow,
.section--dark .eyebrow,
.section--dark2 .eyebrow { color: var(--accent-bright); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { font-size: var(--step-1); line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem;
  font: inherit; font-weight: 600; font-size: var(--step-0);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-bright); }

.btn--ghost-light { border-color: var(--line-dark); color: var(--text-on-dark); }
.btn--ghost-light:hover { border-color: var(--accent-bright); background: rgba(69,89,243,.14); }

.btn--ghost-dark { border-color: var(--line-light); color: var(--text-on-light); }
.btn--ghost-dark:hover { border-color: var(--accent); background: rgba(69,89,243,.07); }

.btn .arr { transition: transform .18s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Textlink mit Pfeil */
.tlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.tlink:hover { border-bottom-color: currentColor; gap: .75rem; }
.section--dark .tlink, .section--dark2 .tlink { color: var(--accent-bright); }

.skip {
  position: absolute; left: .75rem; top: -4rem; z-index: 200;
  background: var(--accent); color: #fff;
  padding: .7rem 1.2rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
  transition: top .18s var(--ease);
}
.skip:focus { top: .75rem; }

/* --- Kopfzeile ------------------------------------------------------------ */

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,6,17,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: background .25s var(--ease);
}
.site-head__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.site-head__logo { flex: none; }
.site-head__logo img { width: 148px; }

.nav { margin-left: auto; }
.nav ul {
  display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.6rem);
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  display: block; padding: .5rem .2rem;
  text-decoration: none;
  font-size: var(--step--1); font-weight: 500; letter-spacing: .01em;
  color: var(--text-on-dark-mute);
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: #fff; border-bottom-color: var(--accent);
}
.nav .nav__lang {
  padding-left: clamp(.5rem, 1.4vw, 1.4rem);
  border-left: 1px solid var(--line-dark);
}
.nav .nav__cta a {
  padding: .55rem 1.1rem;
  background: var(--accent); color: #fff;
  border-radius: var(--radius); border-bottom: 0;
}
.nav .nav__cta a:hover { background: var(--accent-bright); border-bottom: 0; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-dark);
  border-radius: var(--radius); cursor: pointer;
}
.burger span {
  display: block; width: 20px; height: 1.5px; margin: 4px auto;
  background: var(--text-on-dark);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 1rem 0 1.6rem;
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .nav a { padding: .9rem 0; font-size: var(--step-0); border-bottom: 1px solid var(--line-dark); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line-dark); }
  .nav .nav__lang { border-left: 0; padding-left: 0; }
  .nav .nav__cta { margin-top: 1rem; }
  .nav .nav__cta a { text-align: center; padding: .9rem 1.1rem; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../img/dcrafted_services_07.webp") center/cover no-repeat;
  opacity: .3;
  filter: grayscale(.35);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 80% at 78% 20%, rgba(69,89,243,.32), transparent 62%),
    linear-gradient(103deg, var(--ink) 34%, rgba(5,6,17,.72) 68%, rgba(5,6,17,.5));
}
.hero .wrap { position: relative; z-index: 1; }

.hero h1 { margin-bottom: 1.1rem; max-width: 17ch; }
.hero h1 .accent { color: var(--accent-bright); }

.hero__claim {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--text-on-dark);
  max-width: 46ch;
  margin-bottom: 1.4rem;
}
.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem;
  font-size: var(--step--1);
  color: var(--text-on-dark-mute);
  margin-bottom: 2.2rem;
  max-width: 82ch;
}
.hero__trust b { color: #fff; font-weight: 600; }
.hero__trust > span { display: inline-block; }
.hero__trust .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent-bright); flex: none;
}
@media (max-width: 640px) { .hero__trust .dot { display: none; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Kachelstreifen: zeigt sofort, dass es um mehr als CGI geht */
.hero__strip {
  position: relative; z-index: 1;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.hero__tile {
  background: var(--ink);
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.hero__tile img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  filter: grayscale(.5) contrast(1.05);
  transition: filter .3s var(--ease);
}
.hero__tile:hover img { filter: grayscale(0); }
.hero__tile b { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-bright); }
.hero__tile span { font-size: var(--step--1); color: var(--text-on-dark-mute); line-height: 1.5; }

/* --- Kundenband ----------------------------------------------------------- */

.clients {
  background: var(--ink-2);
  color: var(--text-on-dark);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-block: 1px solid var(--line-dark);
}
.clients__label {
  font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-on-dark-mute);
  text-align: center; margin: 0 0 1.8rem; max-width: none;
}
.marquee {
  overflow: hidden;
  /* Ränder weich auslaufen lassen, damit die Namen nicht abgeschnitten wirken */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  /* Dauer passt zur Satzbreite: rund 65 px/s, unabhängig von der Kundenzahl */
  animation: marquee-run 110s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__set {
  display: flex; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.marquee__set li {
  padding: 0 clamp(1.1rem, 2.4vw, 2.2rem);
  font-size: clamp(1.05rem, .9rem + .7vw, 1.6rem);
  font-weight: 600; letter-spacing: -.01em;
  color: var(--text-on-dark);
  white-space: nowrap;
  display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.2rem);
}
/* Trennpunkt hinter jedem Namen */
.marquee__set li::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-bright); opacity: .8; flex: none;
}

@keyframes marquee-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Ohne Bewegung: Band als ruhige, umbrechende Liste */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none; mask-image: none;
    width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  }
  .marquee__track { animation: none; width: auto; }
  .marquee__set { flex-wrap: wrap; justify-content: center; row-gap: .5rem; }
  .marquee__set[aria-hidden="true"] { display: none; }
}

/* --- Kartenraster --------------------------------------------------------- */

.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

/* Ab Breitbild feste Dreiteilung: sechs Karten ergeben zwei volle Reihen
   statt einer 4er- und einer angebrochenen 2er-Reihe. */
@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Problemkarte */
.pcard {
  padding: 1.8rem 1.7rem 1.9rem;
  border: 1px solid var(--line-dark);
  background: linear-gradient(160deg, rgba(255,255,255,.035), transparent 60%);
  border-radius: var(--radius);
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.pcard:hover { border-color: rgba(106,123,255,.55); background: linear-gradient(160deg, rgba(69,89,243,.1), transparent 65%); }
.pcard__no {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .1em;
  color: var(--accent-bright); display: block; margin-bottom: .9rem;
}
.pcard h3 { margin-bottom: .5rem; color: #fff; }
.pcard p { margin: 0; font-size: var(--step-0); }

/* Leistungskarte */
.scard {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.scard:hover {
  border-color: rgba(69,89,243,.5);
  box-shadow: 0 16px 40px -22px rgba(5,6,17,.42);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) { .scard:hover { transform: none; } }

.scard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--ink-2); }
.scard__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.45) contrast(1.03);
  transition: transform .5s var(--ease), filter .35s var(--ease);
}
.scard:hover .scard__media img { transform: scale(1.04); filter: grayscale(0); }

.scard__body { padding: 1.6rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.scard__problem {
  font-size: var(--step--1); font-style: italic;
  color: var(--text-on-light-mute);
  border-left: 2px solid var(--accent);
  padding-left: .85rem; margin: 0 0 1rem;
}
.scard h3 { margin-bottom: .55rem; }
/* Kennzeichnet ein Feld, das wir anbieten, aber noch nicht mit Projekten belegen */
.badge {
  display: inline-block; vertical-align: middle;
  margin-left: .5rem; padding: .18rem .55rem;
  font-size: .68em; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--accent); background: rgba(69,89,243,.1);
  border: 1px solid rgba(69,89,243,.35); border-radius: 999px;
}
.scard__lead { font-size: var(--step-0); margin-bottom: 1.1rem; }
.scard ul {
  list-style: none; margin: 0 0 1.4rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.scard ul li {
  font-size: var(--step--1); font-weight: 500;
  padding: .28rem .7rem;
  background: var(--paper-2); border: 1px solid var(--line-light);
  border-radius: 999px; color: var(--text-on-light-mute);
}
.scard .tlink { margin-top: auto; align-self: flex-start; }

/* Branchenkarte */
.icard {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--paper); border: 1px solid var(--line-light);
  border-radius: var(--radius); text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.icard:hover { border-color: rgba(69,89,243,.5); background: var(--paper-2); }
.icard h3 { margin: 0; font-size: var(--step-1); }
.icard p { margin: 0; font-size: var(--step--1); color: var(--text-on-light-mute); }
.icard .tag {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.icard--more { background: var(--paper-2); border-style: dashed; }

/* --- Projekte ------------------------------------------------------------- */

.draft-note {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.2rem;
  background: rgba(255,190,60,.12);
  border: 1px solid rgba(255,190,60,.45);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  font-size: var(--step--1);
  color: var(--text-on-dark);
  max-width: 78ch;
}
.draft-note b { color: #ffce6a; }

.case {
  display: grid; gap: 0;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2);
}
@media (min-width: 860px) { .case { grid-template-columns: 42% 1fr; } }
.case + .case { margin-top: var(--gap); }

.case__media { position: relative; min-height: 240px; background: var(--ink-3); }
.case__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.case__kicker {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  background: var(--accent); color: #fff;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem .9rem;
}
.case__body { padding: clamp(1.6rem, 3vw, 2.4rem); }
.case__body h3 { color: #fff; font-size: var(--step-2); }
.case dl { margin: 1.4rem 0 0; display: grid; gap: 1rem; }
.case dt {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: .2rem;
}
.case dd { margin: 0; font-size: var(--step-0); color: var(--text-on-dark-mute); }
.case .stack {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem;
}
.case .stack span {
  font-size: var(--step--1); padding: .25rem .65rem;
  border: 1px solid var(--line-dark); border-radius: 999px;
  color: var(--text-on-dark-mute);
}

/* --- Technologien --------------------------------------------------------- */

.tech { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
@media (min-width: 1180px) { .tech { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tech__group h3 {
  font-size: var(--step-0); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); padding-bottom: .7rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-light);
}
.tech__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.tech__group li { font-size: var(--step-0); color: var(--text-on-light-mute); }
.tech__group li::before { content: "→ "; color: var(--accent); font-weight: 700; }

/* --- Über uns ------------------------------------------------------------- */

/* Ohne Portrait einspaltig – die Textbreite begrenzen h2/p von sich aus */
.about { max-width: 78ch; }

.about .sub {
  font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-bright); margin: 2.2rem 0 1rem;
}

.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stations li {
  padding: .85rem 0;
  border-top: 1px solid var(--line-dark);
}
.stations li:last-child { border-bottom: 1px solid var(--line-dark); }
.stations span { display: block; font-size: var(--step-0); font-weight: 600; color: #fff; }
.stations em { font-style: normal; font-size: var(--step--1); color: var(--text-on-dark-mute); }

.proof { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .7rem; }
.proof li {
  display: flex; gap: .8rem; align-items: baseline;
  font-size: var(--step-0); color: var(--text-on-dark-mute);
}
.proof li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55rem; background: var(--accent-bright); }

.steps {
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  /* fünf Schritte, auf Breitbild bewusst fünf Spalten statt Resttracks */
  background: var(--line-dark); border: 1px solid var(--line-dark);
}
.steps li { background: var(--ink); padding: 1.4rem 1.4rem 1.6rem; }
@media (min-width: 1180px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps b {
  display: block; font-size: var(--step--1); color: var(--accent-bright);
  letter-spacing: .12em; margin-bottom: .5rem;
}
.steps h3 { color: #fff; font-size: var(--step-1); margin-bottom: .35rem; }
.steps p { margin: 0; font-size: var(--step--1); }

/* --- Schluss-CTA ---------------------------------------------------------- */

.cta-final { background: var(--accent); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-final p { color: rgba(255,255,255,.9); max-width: 62ch; margin-inline: auto; font-size: var(--step-1); }
.cta-final .btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.cta-final .btn--primary { background: #fff; color: var(--accent-dim); }
.cta-final .btn--primary:hover { background: rgba(255,255,255,.88); }
.cta-final .btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-final .btn--ghost-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* --- Fußzeile ------------------------------------------------------------- */

.site-foot { background: var(--ink); color: var(--text-on-dark-mute); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: var(--step--1); }
.site-foot__top {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark);
}
.site-foot__logo img { width: 160px; margin-bottom: 1rem; }
.site-foot h4 {
  font-size: var(--step--1); letter-spacing: .13em; text-transform: uppercase;
  color: #fff; margin-bottom: 1rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-foot a { text-decoration: none; transition: color .18s var(--ease); }
.site-foot a:hover { color: #fff; }
.site-foot address { font-style: normal; line-height: 1.8; }
.site-foot__bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between; padding-top: 1.6rem;
}

/* --- Einblenden beim Scrollen -------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Unterseiten
   ========================================================================== */

/* --- Seitenkopf ----------------------------------------------------------- */

.pagehead {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-dark);
}
.pagehead h1 { font-size: var(--step-3); max-width: 20ch; margin-bottom: .8rem; }
.pagehead .eyebrow { color: var(--accent-bright); }
.pagehead__lead {
  font-size: var(--step-1); line-height: 1.5;
  color: var(--text-on-dark-mute); max-width: 60ch; margin: 0;
}

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: var(--step--1); color: var(--text-on-dark-mute);
  margin-bottom: 1.6rem;
}
.crumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: #fff; border-bottom-color: var(--accent-bright); }
.crumbs span[aria-hidden] { opacity: .45; }

/* --- Zweispaltiges Detaillayout ------------------------------------------ */

.detail { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 940px) { .detail { grid-template-columns: minmax(0, 1fr) 22rem; } }
@media (min-width: 1400px) { .detail { grid-template-columns: minmax(0, 1fr) 26rem; gap: 4.5rem; } }

.detail__main h2 {
  font-size: var(--step-2); margin-top: 2.4rem;
}
.detail__main h2:first-child,
.detail__main > .lead + h2 { margin-top: 2rem; }
.detail__main .lead {
  font-size: var(--step-1); line-height: 1.55; max-width: 62ch;
  color: var(--text-on-light); margin-bottom: 1.6rem;
}

.detail__side { display: grid; gap: var(--gap); position: sticky; top: 100px; }
@media (max-width: 939px) { .detail__side { position: static; } }

.panel {
  padding: 1.6rem 1.6rem 1.8rem;
  background: var(--ink); color: var(--text-on-dark);
  border-radius: var(--radius);
}
.panel h2 {
  font-size: var(--step--1); letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-bright); margin: 0 0 1rem;
}
.panel p, .panel address { color: var(--text-on-dark-mute); font-size: var(--step--1); font-style: normal; }
.panel .btn { margin-top: 1.2rem; width: 100%; justify-content: center; }
.panel__trust { border-left: 2px solid var(--accent-bright); padding-left: .9rem; }

.panel--plain {
  background: var(--paper-2); color: var(--text-on-light);
  border: 1px solid var(--line-light);
}
.panel--plain h2 { color: var(--accent); }
.panel--plain p, .panel--plain address { color: var(--text-on-light-mute); }

.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.linklist a {
  text-decoration: none; font-size: var(--step--1); font-weight: 500;
  border-bottom: 1px solid transparent; transition: border-color .18s var(--ease);
}
.linklist a:hover { border-bottom-color: currentColor; }
.linklist--contact a { font-size: var(--step-0); font-weight: 600; color: var(--accent-bright); }

/* --- Listen im Fließtext -------------------------------------------------- */

.ticks, .quotes { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .65rem; }
.ticks li { display: flex; gap: .8rem; align-items: baseline; }
.ticks li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: .5rem;
  background: var(--accent);
}
.panel .ticks li::before { background: var(--accent-bright); }
.panel .ticks li { font-size: var(--step--1); color: var(--text-on-dark-mute); }
.panel--plain .ticks li { color: var(--text-on-light-mute); }
.ticks--plain li::before { background: var(--line-light); }

.quotes li {
  font-style: italic; color: var(--text-on-light-mute);
  border-left: 2px solid var(--accent); padding-left: .9rem;
}

.chips { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  font-size: var(--step--1); font-weight: 500;
  padding: .3rem .75rem;
  background: var(--paper-2); border: 1px solid var(--line-light);
  border-radius: 999px; color: var(--text-on-light-mute);
}
.chips--big li { font-size: var(--step-0); padding: .45rem 1rem; }

.note {
  padding: 1rem 1.2rem; margin: 1.8rem 0 0;
  background: var(--paper-2); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: var(--step--1); color: var(--text-on-light-mute);
  max-width: none;
}

/* --- Helle Varianten dunkler Bausteine ------------------------------------ */

.steps--light {
  background: var(--line-light); border-color: var(--line-light);
  margin: 1rem 0 2.5rem;
}
.steps--light li { background: var(--paper); }
.steps--light b { color: var(--accent); }
.steps--light h3 { color: var(--text-on-light); }
.steps--light p { color: var(--text-on-light-mute); }

.stations--light li { border-top-color: var(--line-light); }
.stations--light li:last-child { border-bottom-color: var(--line-light); }
.stations--light span { color: var(--text-on-light); }
.stations--light em { color: var(--text-on-light-mute); }

/* --- Technologieseite ----------------------------------------------------- */

.techblock { padding: 2rem 0; border-top: 1px solid var(--line-light); }
.techblock:first-child { border-top: 0; padding-top: 0; }
.techblock__head { margin-bottom: 1.1rem; }
.techblock h2 { font-size: var(--step-2); margin-bottom: .4rem; }
.techblock p { color: var(--text-on-light-mute); margin: 0; }

/* --- Rechtstexte ---------------------------------------------------------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-1); margin: 2.2rem 0 .7rem; }
.prose h2:first-of-type { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose code { font-size: .92em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }

/* --- Formular ------------------------------------------------------------- */

.form { max-width: 40rem; margin-top: 1.5rem; }
.form__row { margin-bottom: 1.1rem; }
.form__row label, .form__check label {
  display: block; margin-bottom: .35rem;
  font-size: var(--step--1); font-weight: 600;
}
.form__row .opt { font-weight: 400; color: var(--text-on-light-mute); }
.form input, .form select, .form textarea {
  width: 100%; padding: .7rem .85rem;
  font: inherit; font-size: var(--step-0); color: var(--text-on-light);
  background: var(--paper);
  border: 1px solid var(--line-light); border-radius: var(--radius);
  transition: border-color .18s var(--ease);
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(5,6,17,.28); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 8rem; }

/* Spam-Falle: für Menschen unsichtbar, aber nicht display:none,
   damit einfache Bots sie trotzdem finden und ausfüllen */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__check {
  display: flex; gap: .7rem; align-items: flex-start;
  margin: 1.4rem 0 1.6rem;
}
.form__check input { width: auto; margin-top: .25rem; flex: none; }
.form__check label { font-weight: 400; font-size: var(--step--1); margin: 0; }
.form__note { font-size: var(--step--1); color: var(--text-on-light-mute); margin: .9rem 0 0; }


/* --- Breitbild: erster Bildschirm als geschlossenes Bild ------------------ */

@media (min-width: 1180px) and (min-height: 760px) {
  .hero { padding: clamp(2.5rem, 4vh, 3.5rem) 0 clamp(2rem, 3vh, 3rem); }
  /* Zeilenumbruch steuert das <br>, nicht die Zeichenbreite –
     sonst wird die Headline vier statt zwei Zeilen hoch */
  .hero h1 { font-size: clamp(3rem, 4.4vw, 4.2rem); margin-bottom: .9rem; max-width: 34ch; }
  .hero__claim { margin-bottom: 1.1rem; }
  .hero__trust { margin-bottom: 1.8rem; }
  .hero__strip { margin-top: clamp(2rem, 3.5vh, 3rem); }
  .hero__tile { padding: 1.1rem 1.3rem 1.3rem; gap: .6rem; }
  .hero__tile img { aspect-ratio: 24 / 9; }
}


/* --- Formularhinweise ----------------------------------------------------- */

.formhinweis {
  padding: .9rem 1.1rem; margin: 0 0 1.4rem;
  border-radius: var(--radius);
  font-size: var(--step--1);
  max-width: 40rem;
}
.formhinweis--fehler {
  background: rgba(220,70,70,.09);
  border: 1px solid rgba(220,70,70,.45);
  color: #8c1f1f;
}

/* Rechenaufgabe gegen automatische Anfragen */
.form__row--rechnen input { max-width: 9rem; }
.form__hilfe {
  margin: .45rem 0 0; font-size: var(--step--1);
  color: var(--text-on-light-mute);
}
