/* ==========================================================================
   tracom — technische Übersetzung & Content-Aufbereitung
   Design tokens
   ========================================================================== */

:root{
  --paper:        #F4F4F1;
  --surface:      #FFFFFF;
  --ink:          #14181A;
  --ink-soft:     #4B524F;
  --ink-faint:    #8A9089;
  --line:         #D9D9D3;
  --line-soft:    #E8E8E4;
  --blue:         #2A4CE0;
  --blue-dim:     #E7EBFC;
  --olive:        #5C6B33;
  --olive-dim:    #EBEEE1;

  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body:    "IBM Plex Sans", sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; text-decoration: none; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p{ margin: 0; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(42,76,224,0.18);
  border-radius: 4px;
  padding: 3px 9px 4px;
}
.eyebrow::before{ content: "<"; opacity: .55; }
.eyebrow::after{ content: "/>"; opacity: .55; }

.eyebrow.olive{
  color: var(--olive);
  background: var(--olive-dim);
  border-color: rgba(92,107,51,0.22);
}

/* ---------- Skip link / focus ---------- */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus{ left: var(--pad); top: 12px; }

:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header ---------- */
header.site{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,244,241,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo{
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo .bracket{ color: var(--blue); }
.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 14px;
}
.nav-links a{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover{ background: var(--surface); color: var(--ink); }
.nav-links a[aria-current="page"]{
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}
.nav-cta{
  font-family: var(--font-mono);
  font-size: 13.5px;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav-cta:hover{ background: var(--ink); color: var(--paper); }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg{ width: 18px; height: 18px; }

@media (max-width: 760px){
  .nav-links{
    position: fixed;
    inset: 65px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--pad) 18px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a{ padding: 12px 10px; }
  .nav-toggle{ display: inline-flex; }
  .nav-cta{ display: none; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 7px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ background: var(--blue); border-color: var(--blue); }
.btn-ghost{ background: transparent; color: var(--ink); }
.btn-ghost:hover{ background: var(--surface); }
.btn:active{ transform: translateY(1px); }

/* ---------- Sections ---------- */
section{ padding: 88px 0; }
section.tight{ padding: 56px 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2{ font-size: clamp(28px, 3.4vw, 38px); margin-top: 14px; }
.section-head p{ color: var(--ink-soft); margin-top: 14px; font-size: 16.5px; }

hr.rule{
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Hero ---------- */
.hero{
  padding: 64px 0 80px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; gap: 40px; }
}
.hero h1{
  font-size: clamp(34px, 5vw, 58px);
  margin-top: 18px;
}
.hero h1 .accent{ color: var(--blue); }
.hero-lede{
  margin-top: 22px;
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions{
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-formats{
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}
.hero-formats span{
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ---------- CAT editor visual (signature element) ---------- */
.cat-mock{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20,24,26,0.25);
}
.cat-mock-bar{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}
.cat-mock-bar .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
}
.cat-mock-bar .filename{ margin-left: 6px; }
.cat-grid{
  display: grid;
  grid-template-columns: 34px 1fr 1fr;
  font-family: var(--font-mono);
  font-size: 13px;
}
.cat-grid .head{
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: #FAFAF8;
}
.cat-row{
  display: contents;
}
.cat-row > div{
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.cat-row .id{ color: var(--ink-faint); }
.cat-row .src{ color: var(--ink-soft); }
.cat-row .tgt{ color: var(--ink); }
.tag{
  display: inline-block;
  background: var(--blue-dim);
  color: var(--blue);
  border-radius: 3px;
  padding: 0 4px;
  font-size: 12px;
}
.cat-row.active > div{ background: var(--olive-dim); }
.cat-row.active .tgt{ position: relative; }
.cat-caret{
  display: inline-block;
  width: 1.5px;
  height: 13px;
  background: var(--ink);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.cat-status{
  display: flex;
  justify-content: space-between;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  background: #FAFAF8;
}
.cat-status .ok{ color: var(--olive); }

/* ---------- Pipeline strip ---------- */
.pipeline{
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 6px;
}
.pipe-step{
  flex: 1 1 0;
  min-width: 170px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 18px;
  position: relative;
}
.pipe-step + .pipe-step{ border-left: none; }
.pipe-step:first-child{ border-radius: 10px 0 0 10px; }
.pipe-step:last-child{ border-radius: 0 10px 10px 0; }
.pipe-step .tagname{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
}
.pipe-step h3{
  font-size: 16.5px;
  margin-top: 10px;
}
.pipe-step p{
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.pipe-arrow{
  display: flex;
  align-items: center;
  padding: 0 6px;
  color: var(--ink-faint);
  flex: 0 0 auto;
}

/* ---------- Cards ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
@media (max-width: 900px){ .card-grid{ grid-template-columns: 1fr; } }
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
}
.card h3{ font-size: 18.5px; margin-top: 14px; }
.card p{ margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; }
.card .arrow-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
}

/* ---------- Feature split (PDF/UA) ---------- */
.feature-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px){ .feature-split{ grid-template-columns: 1fr; gap: 32px; } }
.feature-split h2{ font-size: clamp(26px, 3vw, 34px); margin-top: 14px; }
.feature-split p{ color: var(--ink-soft); margin-top: 16px; }
.check-list{ list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li{
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; color: var(--ink);
}
.check-list li svg{ flex: 0 0 auto; margin-top: 3px; color: var(--olive); }

.pdfua-mock{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.pdfua-mock .row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.pdfua-mock .row:last-child{ border-bottom: none; }
.pdfua-mock .tagchip{
  background: var(--olive-dim);
  color: var(--olive);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 56px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2{ color: var(--paper); font-size: clamp(24px, 3vw, 32px); }
.cta-band p{ color: #C9CDC7; margin-top: 10px; }
.cta-band .btn-primary{ background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn-primary:hover{ background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Footer ---------- */
footer.site{
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-grid{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-grid a{ color: var(--ink-soft); }
.footer-grid a:hover{ color: var(--blue); }

/* ---------- Reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ---------- Leistungen page ---------- */
.service-block{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 44px 0;
}
.service-block + .service-block{ border-top: 1px solid var(--line); }
@media (max-width: 800px){ .service-block{ grid-template-columns: 1fr; gap: 16px; } }
.service-num{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}
.service-block h3{ font-size: 24px; margin-top: 8px; }
.service-body p{ color: var(--ink-soft); font-size: 16px; max-width: 62ch; }
.service-tags{
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.service-tags span{
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--ink-soft);
}
.service-list{
  list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px;
}
.service-list li{
  font-size: 15px; color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.service-list li::before{
  content: "›";
  position: absolute; left: 0; color: var(--blue);
  font-family: var(--font-mono);
}

/* ---------- Kontakt page ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 800px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}
.contact-card .eyebrow{ margin-bottom: 14px; }
.contact-card .value{
  font-size: 19px;
  margin-top: 10px;
}
.contact-card .value a{ color: var(--blue); }
.contact-card .hint{ color: var(--ink-soft); font-size: 14px; margin-top: 6px; }

.page-hero{
  padding: 56px 0 20px;
}
.page-hero .eyebrow{ margin-bottom: 4px; }
.page-hero h1{
  font-size: clamp(30px, 4.4vw, 46px);
  margin-top: 14px;
}
.page-hero p{
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 17.5px;
  max-width: 60ch;
}
