/* ============================================================
   Qlax GmbH — qlax.de
   Ruhige Souveränität: warmes Papier, Tinte, ein roter Faden.
   Display: Albertus Medium (Wordmark-Schrift)
   Body:    Instrument Sans (lokal)
   ============================================================ */

@font-face {
  font-family: "Albertus";
  src: url("assets--Albertus_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets--instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets--instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0;
}

:root {
  --paper: #f6f5f2;
  --paper-raised: #fdfcfa;
  --ink: #21242a;
  --ink-soft: #494e56;
  --muted: #696e76;
  --line: #dedbd4;
  --line-strong: #c9c5bc;
  --red: #b5121b;
  --red-deep: #8e0e15;
  --brand-grey: #b2b2b2;
  --dark: #23262b;
  --dark-ink: #e8e6e1;
  --dark-muted: #9a9891;
  --dark-line: #3a3d43;

  --font-display: "Albertus", "Book Antiqua", "Palatino Linotype", Palatino, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --w-max: 1120px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-gap: clamp(5rem, 11vw, 8.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: #f6f5f2;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #fff; }

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

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

a { color: inherit; }

.wrap {
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}

.brand svg { height: 2rem; width: auto; }

.brand .wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: var(--ink);
  transform: translateY(1px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.1rem);
  font-size: .9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  letter-spacing: .01em;
  position: relative;
  padding-block: .35rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right .25s ease;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }

.site-nav .nav-contact {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2rem;
  padding: .45rem 1.05rem;
  transition: border-color .25s ease, background .25s ease;
}

.site-nav .nav-contact::after { display: none; }

.site-nav .nav-contact:hover {
  border-color: var(--red);
  background: var(--paper-raised);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9.5rem) clamp(4rem, 9vw, 7rem);
}

.hero-arcs {
  position: absolute;
  right: -14vw;
  top: 50%;
  transform: translateY(-52%);
  height: clamp(30rem, 68vw, 56rem);
  width: auto;
  pointer-events: none;
  user-select: none;
}

.hero-inner { position: relative; max-width: 44rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: .005em;
  margin-top: 1.4rem;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero .lede {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 38rem;
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  color: var(--paper);
  background: var(--ink);
  border-radius: 2rem;
  padding: .8rem 1.6rem;
  transition: background .25s ease, transform .25s ease;
}

.btn:hover { background: var(--red-deep); transform: translateY(-1px); }

.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-phone {
  font-size: .95rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: .1rem;
  transition: border-color .25s ease, color .25s ease;
}

.hero-phone:hover { color: var(--ink); border-color: var(--red); }

.hero-facts {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 44rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  list-style: none;
}

.hero-facts .num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.1;
  color: var(--ink);
  display: block;
}

.hero-facts .lbl {
  display: block;
  margin-top: .3rem;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- Sections shared ---------- */

.section { padding-block: 0 var(--section-gap); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  margin-top: 1.1rem;
  text-wrap: balance;
}

.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* ---------- Leistungen ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.service {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.4rem;
  position: relative;
}

.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--red);
  transition: width .35s ease;
}

.service:hover::before { width: 5rem; }

.service .index {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--red);
}

.service h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.3;
  margin-top: .8rem;
}

.service p {
  margin-top: .8rem;
  font-size: .97rem;
  color: var(--ink-soft);
}

/* ---------- Vorgehen ---------- */

.process {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.process .section-head { margin-bottom: 0; }

.process-figure { margin-top: clamp(2rem, 4vw, 3rem); }

.process-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(.85);
}

.process-figure figcaption {
  margin-top: .7rem;
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--muted);
}

.steps { list-style: none; }

.steps li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.25rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child {
  border-top: 1px solid var(--line-strong);
}

.steps .step-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.05;
  color: var(--red);
}

.steps h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
}

.steps p {
  margin-top: .55rem;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* ---------- Erfahrung ---------- */

.experience {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.experience-figure { position: relative; }

.experience-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(.85);
}

.experience-figure figcaption {
  margin-top: .7rem;
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--muted);
}

.experience-figure::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  z-index: -1;
}

.sectors { list-style: none; margin-top: .5rem; }

.sectors li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.25rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.sectors li:first-child { border-top: 1px solid var(--line-strong); }

.sectors .sector {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .02em;
}

.sectors .desc {
  font-size: .95rem;
  color: var(--ink-soft);
}

.section-note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-strong);
  padding-top: 1.4rem;
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: .97rem;
}

.section-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .25s ease;
}

.section-note a:hover { border-color: var(--red); }

/* ---------- Orderbros (dunkle Bühne) ---------- */

.orderbros {
  background: var(--dark);
  color: var(--dark-ink);
  padding-block: var(--section-gap);
  position: relative;
  overflow: hidden;
}

.orderbros .arcs-bg {
  position: absolute;
  left: -12rem;
  bottom: -14rem;
  height: 42rem;
  opacity: .35;
  pointer-events: none;
}

.orderbros-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}

.orderbros .eyebrow { color: var(--dark-muted); }

.orderbros h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.18;
  margin-top: 1.1rem;
  text-wrap: balance;
}

.orderbros .lede {
  margin-top: 1.2rem;
  color: var(--dark-muted);
  max-width: 34rem;
}

.orderbros-channels {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: .65rem;
  max-width: 30rem;
}

.orderbros-channels li {
  display: flex;
  gap: .8rem;
  align-items: baseline;
  padding: .75rem 1rem;
  border: 1px solid var(--dark-line);
  border-radius: 4px;
  font-size: .95rem;
}

.orderbros-channels .tick {
  color: var(--red);
  font-weight: 700;
  flex: none;
}

.orderbros-channels strong { color: var(--dark-ink); font-weight: 600; }
.orderbros-channels span.note { color: var(--dark-muted); }

.orderbros-enterprise {
  margin-top: 1.4rem;
  max-width: 30rem;
  font-size: .95rem;
  color: var(--dark-muted);
}

.orderbros-enterprise a {
  color: var(--dark-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--dark-line);
  transition: border-color .25s ease;
}

.orderbros-enterprise a:hover { border-color: var(--red); }

.orderbros-cta {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.orderbros-cta .btn {
  background: var(--dark-ink);
  color: var(--dark);
}

.orderbros-cta .btn:hover { background: #fff; }

.orderbros-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.orderbros-figure figcaption {
  margin-top: .7rem;
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--dark-muted);
}

/* ---------- Gründer ---------- */

.founder-section { padding-top: var(--section-gap); }

.founder {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.founder-card {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-raised);
  padding: 2rem 1.8rem;
  position: relative;
}

.founder-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.8rem;
  width: 3rem;
  height: 2px;
  background: var(--red);
}

.founder-card .monogram { height: 3.4rem; width: auto; margin-bottom: 1.4rem; }

.founder-card .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
}

.founder-card .role {
  margin-top: .35rem;
  font-size: .88rem;
  letter-spacing: .05em;
  color: var(--muted);
}

.founder-card dl { margin-top: 1.5rem; display: grid; gap: 1rem; }

.founder-card dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.founder-card dd { font-size: .95rem; margin-top: .2rem; }

.founder-text p { color: var(--ink-soft); }
.founder-text p + p { margin-top: 1.1rem; }

.founder-text .principle {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

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

.team-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}

.team-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.team-list li {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.1rem;
}

.team-list .name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
}

.team-list .role {
  display: block;
  margin-top: .3rem;
  font-size: .88rem;
  letter-spacing: .05em;
  color: var(--muted);
}

/* ---------- Kontakt ---------- */

.contact-section {
  border-top: 1px solid var(--line);
  padding-top: var(--section-gap);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.contact-mail {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-decoration: none;
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: .2rem;
  transition: border-color .25s ease, color .25s ease;
  display: inline-block;
  margin-top: 1.2rem;
  overflow-wrap: anywhere;
}

.contact-mail:hover { border-color: var(--red); color: var(--red-deep); }

.contact-details {
  display: grid;
  gap: 1.4rem;
  align-content: start;
  padding-top: .4rem;
}

.contact-details .item {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.contact-details .label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details .value {
  margin-top: .3rem;
  font-size: 1rem;
  line-height: 1.55;
}

.contact-details a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .25s ease;
}

.contact-details a:hover { border-color: var(--red); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  font-size: .85rem;
  color: var(--muted);
}

.footer-links { display: flex; gap: 1.6rem; }

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}

.footer-links a:hover { border-color: var(--red); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */

.legal-page {
  padding-block: clamp(3.5rem, 8vw, 6rem) var(--section-gap);
  max-width: 44rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  margin-top: 1.2rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin-top: 2.6rem;
}

.legal-page p { margin-top: .9rem; color: var(--ink-soft); }
.legal-page ul { margin-top: .9rem; padding-left: 1.2rem; color: var(--ink-soft); }
.legal-page li + li { margin-top: .35rem; }

.legal-page address {
  font-style: normal;
  margin-top: .9rem;
  line-height: 1.7;
}

.legal-page a { text-decoration-color: var(--line-strong); }
.legal-page a:hover { text-decoration-color: var(--red); }

.back-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color .25s ease;
}

.back-link span { border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.back-link:hover span { border-color: var(--red); }

.back-link:hover { color: var(--ink); }

/* ---------- Reveal-Animationen ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; max-width: 34rem; }
  .process { grid-template-columns: 1fr; }
  .process-figure { max-width: 30rem; }
  .experience { grid-template-columns: 1fr; }
  .experience-figure { max-width: 30rem; }
  .orderbros-grid { grid-template-columns: 1fr; }
  .orderbros-figure { max-width: 30rem; }
  .founder { grid-template-columns: 1fr; }
  .founder-card { max-width: 30rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .team-list { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .sectors li { grid-template-columns: 1fr; gap: .25rem; }
}

@media (max-width: 600px) {
  .brand .wordmark { display: none; }
  .site-nav { gap: .9rem; font-size: .82rem; }
  .site-nav .nav-secondary { display: none; }
  .site-nav .nav-contact { padding: .4rem .85rem; }
  .hero-arcs { opacity: .5; right: -34vw; }
  .experience-figure::after { display: none; }
}
