/* ============================================================
   ZOLMAN – Base Stylesheet (gemeinsam für alle Seiten)
   Light Mode, System-Fonts (keine externen Requests → DSGVO)
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --c-bg:            #ffffff;
  --c-bg-alt:        #f5f5f7;
  --c-bg-tint:       #fafafa;
  --c-ink:           #1d1d1f;
  --c-ink-2:         #424245;
  --c-muted:         #6e6e73;
  --c-line:          #d2d2d7;
  --c-line-soft:     rgba(0, 0, 0, .07);
  --c-accent:        #0071e3;
  --c-accent-hover:  #0077ed;
  --c-accent-soft:   rgba(0, 113, 227, .08);
  --c-dark:          #0a0a0a;

  /* Typografie */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue",
          Helvetica, Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Dunkle Flächen */
  --c-ink-bg:        #0a0a0a;
  --c-ink-bg-2:      #141416;
  --c-on-dark:       #f5f5f7;
  --c-on-dark-mut:   #8e8e93;
  --c-on-dark-line:  rgba(255, 255, 255, .12);

  /* Radien – bewusst knapp, passend zur kantigen Wortmarke */
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-xl: 8px;
  --r-pill: 980px;

  /* Schatten */
  --sh-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --sh-md: 0 2px 6px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.07);
  --sh-lg: 0 4px 12px rgba(0,0,0,.06), 0 24px 64px rgba(0,0,0,.10);

  /* Layout */
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --nav-h: 88px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.53;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.08;
  color: var(--c-ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.035em; font-weight: 650; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -.02em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
:is(p, li) { text-wrap: pretty; }

a { color: var(--c-accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-accent-hover); text-decoration: underline; text-underline-offset: 3px; }

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

::selection { background: rgba(0,113,227,.16); }

/* ---------- Layout-Helfer ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--c-bg-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- Dunkle Sektion ---------- */
.section--dark {
  position: relative;
  background: var(--c-ink-bg);
  color: var(--c-on-dark);
  overflow: hidden;
}
/* Technisches Raster, das zur Wortmarke passt */
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-on-dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-on-dark-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}
.section--dark > * { position: relative; z-index: 1; }

.section--dark :is(h1, h2, h3, h4, strong) { color: var(--c-on-dark); }
.section--dark p,
.section--dark .lead { color: var(--c-on-dark-mut); }
.section--dark .eyebrow { color: #4a9eff; }
.section--dark a:not(.btn) { color: #4a9eff; }
.section--dark .btn--quiet { --btn-bg: rgba(255,255,255,.1); --btn-fg: var(--c-on-dark); }
.section--dark .btn--quiet:hover { background: rgba(255,255,255,.17); color: var(--c-on-dark); }
.section--dark .btn--dark { --btn-bg: #fff; --btn-fg: var(--c-ink); }
.section--dark .btn--dark:hover { background: #e8e8ed; }
.section--dark .tag { background: rgba(255,255,255,.09); color: var(--c-on-dark); }
.section--dark .arrow-link { color: #4a9eff; }

/* Diagonaler Anschnitt – greift den Winkel des Z auf */
.slab-cut {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3.5vw));
  padding-bottom: calc(clamp(64px, 9vw, 120px) + 3.5vw);
}
.slab-cut--top {
  clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(clamp(64px, 9vw, 120px) + 3.5vw);
}
@media (max-width: 640px) {
  .slab-cut, .slab-cut--top { clip-path: none; padding-block: clamp(64px, 9vw, 120px); }
}

.stack > * + * { margin-top: 1.1em; }
.center { text-align: center; }

/* Kapitel-Label: Monospace-Marke mit schrägem Akzent – greift den Winkel des Z auf */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 7px 14px 7px 11px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-bg-alt);
  border-radius: var(--r-sm);
  vertical-align: middle;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 3px;
  height: 12px;
  background: var(--c-accent);
  transform: skewX(-14deg);
}
.section--alt .eyebrow { background: #fff; }
.section--dark .eyebrow { color: #fff; background: rgba(255,255,255,.09); }
.section--dark .eyebrow::before { background: #4a9eff; }

.lead {
  font-size: clamp(1.075rem, 1.6vw, 1.3125rem);
  line-height: 1.45;
  color: var(--c-muted);
  letter-spacing: -.01em;
  max-width: 62ch;
}
.center .lead { margin-inline: auto; }

/* Sektionskopf mit Trennlinie darunter – gliedert die Seite sichtbar */
.section-head {
  max-width: 660px;
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(26px, 3vw, 34px);
  border-bottom: 1px solid var(--c-line);
}
.section-head.center { margin-inline: auto; }
.section-head--wide { max-width: none; }
.section-head--plain { border-bottom: 0; padding-bottom: 0; }
.section--dark .section-head { border-bottom-color: var(--c-on-dark-line); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--c-ink); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-size: .9rem; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--c-accent-hover); color: var(--btn-fg); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-accent); border-color: var(--c-accent); }
.btn--ghost:hover { background: var(--c-accent-soft); color: var(--c-accent); }

.btn--dark { --btn-bg: var(--c-ink); --btn-fg: #fff; }
.btn--dark:hover { background: #000; }

.btn--quiet { --btn-bg: rgba(0,0,0,.05); --btn-fg: var(--c-ink); }
.btn--quiet:hover { background: rgba(0,0,0,.09); color: var(--c-ink); }

.btn--lg { padding: 15px 30px; font-size: 1.0625rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* Textlink mit Pfeil */
.arrow-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 500; font-size: 1rem; letter-spacing: -.01em;
}
.arrow-link::after {
  content: "›";
  font-size: 1.35em; line-height: 0; transform: translateY(-1px);
  transition: transform .25s var(--ease);
}
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translate(4px, -1px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.nav.is-scrolled { background: rgba(255,255,255,.86); border-bottom-color: var(--c-line-soft); }

.nav__inner {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex; align-items: center; gap: 8px;
}

/* Wortmarke links, Menü direkt daneben, Kontakt-Button außen rechts */
.nav__brand { display: flex; align-items: center; padding: 6px 0; margin-right: clamp(18px, 3vw, 40px); }
.nav__brand:hover { text-decoration: none; opacity: .62; }
.nav__logo { height: 54px; width: auto; }
@media (max-width: 860px) { .nav__logo { height: 42px; } }
@media (max-width: 420px) { .nav__logo { height: 34px; } }

.nav__list {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0 auto 0 0; padding: 0;
}
.nav__link {
  display: block;
  padding: 9px 15px;
  font-size: .9375rem;
  font-weight: 450;
  letter-spacing: -.011em;
  color: var(--c-ink);
  border-radius: var(--r-md);
  transition: opacity .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { background: var(--c-bg-alt); color: var(--c-ink); text-decoration: none; }
.nav__link[aria-current="page"] { font-weight: 600; }

.nav__cta {
  margin-left: 12px;
  padding: 9px 20px;
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-md);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.011em;
}
.nav__cta:hover { background: var(--c-accent); color: #fff; opacity: 1; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 11px;
  display: block; width: 22px; height: 2px;
  background: var(--c-ink);
  transition: transform .3s var(--ease-out), opacity .2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; order: 3; margin-left: 6px; }
  .nav__brand { margin-right: auto; }
  .nav__cta { order: 2; }
  .nav__list {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-line-soft);
    box-shadow: var(--sh-md);
    transform-origin: top;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease-out), visibility .25s;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__list.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
  .nav__link { padding: 15px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--c-line-soft); border-radius: 0; }
  .nav__link:hover { background: none; }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .nav__cta { margin-left: 0; padding: 9px 16px; font-size: .875rem; }
}
@media (max-width: 380px) {
  .nav__cta { padding: 8px 12px; font-size: .8125rem; }
}

/* ---------- Karten ---------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-ink); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--c-muted); font-size: .9375rem; line-height: 1.5; }
.card__foot { margin-top: auto; padding-top: 18px; }

.card--flat:hover { transform: none; box-shadow: var(--sh-sm); }
.section--alt .card { background: #fff; border-color: transparent; box-shadow: var(--sh-sm); }

/* Ganze Karte klickbar, Links darin bleiben erreichbar */
.card--link .card__link::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
}

.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  flex: none;
}
.card__icon svg { width: 22px; height: 22px; stroke-width: 1.6; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Tags / Pills ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.tag {
  display: inline-block;
  padding: 4px 11px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .005em;
  color: var(--c-ink-2);
  background: var(--c-bg-alt);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.section--alt .tag { background: #fff; }
.tag--live { color: #067647; background: rgba(6,118,71,.09); }
.tag--soon { color: #b25000; background: rgba(178,80,0,.09); }

/* ---------- Page-Header (Unterseiten) ---------- */
.page-head {
  position: relative;
  padding-block: clamp(56px, 8vw, 100px) clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
/* Feines Raster rechts oben – nimmt die Textur der dunklen Sektionen auf */
.page-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 46%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0,0,0,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(90% 80% at 100% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(90% 80% at 100% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
.page-head > * { position: relative; z-index: 1; }
.page-head .lead { margin-top: 20px; }
.page-head h1 { max-width: 17ch; }

/* ---------- Prose (Impressum, Datenschutz) ---------- */
.prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.66; color: var(--c-ink-2); }
.prose h2 { margin: 2.2em 0 .6em; font-size: 1.5rem; color: var(--c-ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.7em 0 .5em; font-size: 1.125rem; color: var(--c-ink); }
.prose h4 { margin: 1.4em 0 .4em; font-size: 1rem; font-weight: 600; color: var(--c-ink-2); }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose li { margin-bottom: .45em; }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--c-line-soft); }
.prose dl { margin: 0 0 1.1em; }
.prose dt { font-weight: 600; color: var(--c-ink); margin-top: 1em; }
.prose dd { margin: .2em 0 0; }

.ph {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--font-mono);
  font-size: .84em;
  font-weight: 500;
  color: #92400e;
  background: #fef3c7;
  border: 1px dashed #d9a441;
  border-radius: 6px;
}

.notice {
  padding: 18px 22px;
  margin-bottom: 2em;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--r-md);
  font-size: .9375rem;
  line-height: 1.55;
  color: #78350f;
}
.notice strong { color: #713f12; }

/* ---------- Footer ---------- */
.footer {
  padding-block: clamp(56px, 8vw, 92px) 30px;
  background: var(--c-ink-bg);
  font-size: 1.0625rem;
  color: #b8b8be;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 44px 40px;
  padding-bottom: clamp(48px, 7vw, 88px);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 34px; } }

.footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: 34px;
  filter: invert(1);
}
@media (max-width: 520px) { .footer__logo { height: 38px; margin-bottom: 26px; } }

.footer__contact {
  margin: 0 0 18px;
  line-height: 1.55;
  color: #fff;
  font-weight: 500;
  letter-spacing: -.011em;
}
.footer__contact:last-child { margin-bottom: 0; }

.footer h4 {
  margin: 0 0 20px;
  font-size: .8125rem;
  font-weight: 500;
  color: #8e8e97;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 14px; }
.footer li:last-child { margin-bottom: 0; }

.footer a { color: #fff; font-weight: 500; letter-spacing: -.011em; }
.footer a:hover { color: #b8b8be; text-decoration: none; }

.footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .875rem;
  color: #8e8e97;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer__bar a { color: #8e8e97; font-size: .875rem; font-weight: 400; }
.footer__bar a:hover { color: #fff; }
@media (max-width: 520px) { .footer__legal { margin-left: 0; } }

/* ---------- Technologie-Raster ---------- */
.techgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .techgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .techgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.techgrid li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 22px;
  background: var(--c-bg);
  transition: background .25s var(--ease);
}
.techgrid li:hover { background: var(--c-bg-tint); }
.techgrid__icon {
  width: 30px; height: 30px;
  margin-bottom: 12px;
  color: var(--c-ink);
  flex: none;
}
.techgrid__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }

/* Herstellerlogos statt gezeichneter Symbole */
.techgrid__logo {
  width: 38px; height: 38px;
  margin-bottom: 14px;
  flex: none;
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease-out);
}
.techgrid__logo img { width: 100%; height: 100%; object-fit: contain; }
.techgrid li:hover .techgrid__logo { transform: scale(1.07); }

.techgrid strong { font-size: .9375rem; font-weight: 600; letter-spacing: -.014em; }
.techgrid span { font-size: .8125rem; color: var(--c-muted); line-height: 1.4; }

/* Abschließende Kachel: „und einiges mehr“ – füllt die Restspalten */
.techgrid li.techgrid__more {
  grid-column: span 2;
  justify-content: center;
  background: var(--c-bg-tint);
}
.techgrid__more strong { color: var(--c-ink-2); }
.section--dark .techgrid li.techgrid__more { background: #1c1c20; }

.section--dark .techgrid {
  background: var(--c-on-dark-line);
  border-color: var(--c-on-dark-line);
}
.section--dark .techgrid li { background: var(--c-ink-bg-2); }
.section--dark .techgrid li:hover { background: #1c1c20; }
.section--dark .techgrid__icon { color: #4a9eff; }
.section--dark .techgrid span { color: var(--c-on-dark-mut); }

/* ---------- Zahlenband ---------- */
.figures {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}
@media (max-width: 780px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .figures { grid-template-columns: 1fr; } }

.figures li {
  padding-top: 20px;
  border-top: 2px solid var(--c-ink);
}
.section--dark .figures li { border-top-color: var(--c-on-dark); }

.figures strong {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.figures span { font-size: .875rem; color: var(--c-muted); line-height: 1.4; }
.section--dark .figures span { color: var(--c-on-dark-mut); }

/* ---------- Merkmalsliste mit Trennlinien ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 20px 40px;
  padding: 24px 0;
  border-top: 1px solid var(--c-line-soft);
}
.rows li:last-child { border-bottom: 1px solid var(--c-line-soft); }
@media (max-width: 700px) { .rows li { grid-template-columns: 1fr; gap: 6px; } }

.rows strong { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.018em; }
.rows span { font-size: .9375rem; color: var(--c-muted); line-height: 1.6; }
.section--dark .rows li { border-color: var(--c-on-dark-line); }
.section--dark .rows span { color: var(--c-on-dark-mut); }

/* ---------- Projekt-Fenster ---------- */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 40px);
}
.pmodal[hidden] { display: none; }

.pmodal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.pmodal.is-open .pmodal__scrim { opacity: 1; }

.pmodal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 44px);
  background: var(--c-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}
.pmodal.is-open .pmodal__panel { opacity: 1; transform: none; }

/* Akzentkante in der Projektfarbe */
.pmodal__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--proj-accent, var(--c-accent));
}

.pmodal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--c-bg-alt);
  border: 0;
  border-radius: var(--r-md);
  color: var(--c-ink);
  cursor: pointer;
  transition: background .2s var(--ease);
}
.pmodal__close:hover { background: #e8e8ed; }
.pmodal__close svg { width: 18px; height: 18px; }

.pmodal__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding-right: 44px;
}
.pmodal__logo {
  flex: none;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  overflow: hidden;
}
.pmodal__logo img { width: 100%; height: 100%; object-fit: contain; }
.pmodal__initials {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--proj-accent, var(--c-accent));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 650;
}
.pmodal__kicker {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--proj-accent, var(--c-accent));
}
.pmodal__head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.pmodal__domain {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--c-muted);
}

.pmodal__tags { margin-bottom: 20px; }
.pmodal__lead {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--c-ink-2);
  margin-bottom: 26px;
}

.pmodal__story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 26px;
  padding: 24px 0;
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
}
@media (max-width: 640px) { .pmodal__story { grid-template-columns: 1fr; gap: 18px; } }
.pmodal__story h4 {
  margin: 0 0 6px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.pmodal__story p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--c-muted); }

.pmodal__sub {
  margin: 26px 0 14px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.pmodal__feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 641px) { .pmodal__feats { grid-template-columns: 1fr 1fr; gap: 16px 26px; } }
.pmodal__feats li { padding-left: 14px; border-left: 2px solid var(--proj-accent, var(--c-accent)); }
.pmodal__feats strong { display: block; font-size: .9375rem; letter-spacing: -.014em; margin-bottom: 3px; }
.pmodal__feats span { font-size: .8438rem; color: var(--c-muted); line-height: 1.5; }

.pmodal__actions { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--c-line-soft); }

@media (prefers-reduced-motion: reduce) {
  .pmodal__scrim, .pmodal__panel { transition: none; opacity: 1; transform: none; }
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

@media print {
  .nav, .footer, .btn-row, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
