/* Die Schrift liegt lokal; beim Besuch werden keine Drittanbieter eingebunden. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./fonts/manrope-latin-variable.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --background: #111113;
  --foreground: #f2f0ec;
  --muted: #a6a4ad;
  --subtle: #85838d;
  --line: #2b2a30;
  --purple: #c0a8ff;
  --orange: #ffac7e;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 78% 6%, #25202b55, transparent 40%);
  color: var(--foreground);
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #111113; background: var(--purple); }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--purple); outline-offset: 7px; }

.skip-link {
  position: absolute;
  top: 14px;
  left: 20px;
  z-index: 10;
  padding: 14px 20px;
  background: var(--foreground);
  color: var(--background);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(100% - 112px, 1248px); margin: 0 auto; }

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand { display: block; flex-shrink: 0; padding: 10px 0; }
.brand img { display: block; width: 184px; height: auto; mix-blend-mode: screen; }
.header-note { margin-right: auto; padding-left: 24px; border-left: 1px solid #3b3940; color: var(--muted); font-size: 12px; }
.header-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 13px; font-weight: 600; }
.header-link svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s ease; }
.header-link:hover svg { transform: translateY(3px); }

/* Text und Weggabelung bilden auf großen Bildschirmen eine gemeinsame Bühne. */
.hero { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: 12px; padding: 48px 0 44px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: #c8c4cc; font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .16em; }
.origin-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #ffac7e0d; }
h1 { margin: 0; font-size: clamp(46px, 5.65vw, 80px); line-height: 1.13; letter-spacing: -.065em; font-weight: 600; }
h1 > span { color: #9e9ba6; }
.hero-description { max-width: 500px; margin: 26px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.route-visual { position: relative; align-self: center; justify-self: end; width: 100%; max-width: 360px; padding-top: 8px; }
.route-map { width: 100%; height: auto; overflow: visible; }
.map-label { font: 9px var(--mono); letter-spacing: .13em; }
.map-coordinate { font: 8px var(--mono); letter-spacing: .1em; }
.map-caption { display: block; margin-top: 5px; text-align: center; color: var(--subtle); font: 9px/1.8 var(--mono); }
.route-halo { filter: blur(12px); opacity: .1; transition: opacity .3s ease; }
.route-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-route 1.5s ease-out both; }
.route-line-tracking { animation-delay: .15s; }
.map-endpoint { transform-box: fill-box; transform-origin: center; transition: transform .25s ease; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.section-heading > span { display: flex; align-items: center; gap: 12px; color: var(--subtle); font: 10px/1.5 var(--mono); }
.section-heading > span > span { font-size: 18px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* Die Akzentfarben verbinden Karte, Weg und Ziel; alle Inhalte funktionieren ohne JavaScript. */
.project-card {
  --accent: var(--purple);
  --accent-rgb: 192, 168, 255;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px 30px 23px;
  border: 1px solid #39333f;
  border-radius: 12px;
  background: radial-gradient(ellipse at 100% 0, rgba(var(--accent-rgb), .065), transparent 66%), #19181d;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.project-card.tracking { --accent: var(--orange); --accent-rgb: 255, 172, 126; border-color: #41342d; background-color: #1d1a18; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-category { display: flex; align-items: center; gap: 9px; color: var(--accent); font: 10px/1.5 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.project-category > span { width: 5px; height: 5px; background: currentColor; border-radius: 1px; }
.project-number { color: #aaa3ad; font: 11px var(--mono); }
.card-content { position: relative; display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 19px; }
.project-icon { width: 30px; height: 30px; margin-bottom: 14px; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card-content h3 { margin: 0 0 14px; font-size: clamp(25px, 2.45vw, 34px); font-weight: 600; line-height: 1.25; letter-spacing: -.05em; }
.title-dot { color: var(--accent); }
.project-byline { display: inline-block; margin-left: 7px; color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: 0; vertical-align: middle; }
.card-content p { max-width: 430px; margin: 0; color: #b3aeb9; font-size: 13px; line-height: 1.85; }
.tracking .card-content p { color: #b9b0a9; }
.project-topics { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 20px; padding-top: 18px; }
.project-topics span { border: 1px solid rgba(var(--accent-rgb), .15); border-radius: 4px; padding: 5px 8px; color: #c6becf; font: 9px/1.4 var(--mono); }
.tracking .project-topics span { color: #d0beb2; }
.card-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 20px; border-top: 1px solid rgba(var(--accent-rgb), .15); }
.project-destination { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.project-cta { font-size: 13px; font-weight: 600; }
.project-domain { color: #aaa3b3; font: 10px/1.5 var(--mono); overflow-wrap: anywhere; }
.tracking .project-domain { color: #b1a298; }
.project-arrow { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #211b26; transition: transform .25s ease; }
.project-arrow svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.project-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

/* Der passende Ast reagiert zusätzlich auf den Fokus oder Hover der Projektkarte. */
body:has(.agency:is(:hover, :focus-visible)) .route-halo-agency,
body:has(.tracking:is(:hover, :focus-visible)) .route-halo-tracking { opacity: .4; }
body:has(.agency:is(:hover, :focus-visible)) .map-endpoint-agency,
body:has(.tracking:is(:hover, :focus-visible)) .map-endpoint-tracking { transform: scale(1.1); }

.context-note { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 29px auto 43px; max-width: 790px; }
.context-symbol { color: var(--subtle); font-size: 21px; }
.context-note p { margin: 0; color: var(--subtle); font-size: 11px; line-height: 1.9; }
.context-note strong { color: #b9b5c1; font-weight: 500; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 84px; border-top: 1px solid var(--line); }
.footer-name { color: #b4b0bc; font-size: 11px; }
.footer-name > span { padding: 0 9px; color: #655d6d; }
.privacy-note { display: inline-flex; align-items: center; gap: 8px; color: var(--subtle); font: 9px/1.7 var(--mono); }
.privacy-note svg { width: 15px; height: 15px; flex-shrink: 0; stroke: #9b97a3; stroke-width: 1.2; }

@keyframes draw-route { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (hover: hover) and (pointer: fine) {
  .project-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 35px #00000025; }
  .project-card:hover .project-arrow { transform: rotate(5deg); }
}

@media (min-width: 1600px) {
  .page-shell { padding-top: 15px; }
  .hero { padding-top: 64px; padding-bottom: 60px; }
}

@media (max-width: 1100px) {
  .page-shell { width: calc(100% - 72px); }
  .hero { grid-template-columns: 1.6fr 1fr; padding: 54px 0; }
  .header-note { padding-left: 20px; font-size: 10px; }
  .project-card { padding: 24px; }
  .project-byline { display: block; margin: 7px 0 0; }
  .card-content h3 { min-height: 62px; }
}

@media (max-width: 760px) {
  .page-shell { width: calc(100% - 40px); }
  .site-header { min-height: 88px; gap: 15px; }
  .brand img { width: 150px; }
  .header-note { display: none; }
  .header-link { gap: 10px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; gap: 15px; padding: 46px 0 35px; }
  .eyebrow { margin-bottom: 24px; font-size: 9px; }
  h1 { font-size: clamp(43px, 8.8vw, 65px); }
  .hero-description { margin-top: 23px; max-width: 520px; font-size: 13px; }
  .route-visual { max-width: 235px; margin: 0 auto; }
  .map-caption { font-size: 8px; }
  .project-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-heading { margin-bottom: 17px; }
  .section-heading h2 { font-size: 14px; }
  .section-heading > span { font-size: 9px; }
  .project-card { padding: 24px; }
  .card-content { padding-top: 23px; }
  .card-content h3 { min-height: 0; font-size: clamp(26px, 5.7vw, 34px); }
  .project-byline { display: inline-block; margin: 0 0 0 7px; font-size: 10px; }
  .project-topics { margin-bottom: 24px; }
  .context-note { margin: 25px 0 30px; }
  .context-note p { font-size: 11px; }
  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 13px; min-height: 112px; padding: 22px 0; }
  .privacy-note { font-size: 8px; }
}

@media (max-width: 380px) {
  .page-shell { width: calc(100% - 32px); }
  h1 { font-size: 38px; }
  .brand img { width: 135px; }
  .section-heading > span { font-size: 0; gap: 0; }
  .project-card { padding: 21px; }
  .project-category { font-size: 9px; }
  .card-content h3 { font-size: 25px; }
  .project-byline { display: block; margin: 7px 0 0; }
}

/* Bewegungsreduktion respektieren: weder Linienaufbau noch schwebende Karten. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .project-card:hover, .project-arrow, .map-endpoint { transform: none !important; }
}
