/* ══════════════════════════════════════════════════════════════════════════
   Zilicon — site composition layer.
   Loaded AFTER industry.css (tokens + components) and theme.css (red override).
   Adds page layout, the dark bands, and plugin composition on top of the design
   system's variables. Never redefines a token — only consumes them.
   ══════════════════════════════════════════════════════════════════════ */

/* — page frame / sticky footer — */
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* — containers & sections — */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 760px; }
.container--reading { max-width: 820px; }
.section { padding-block: clamp(32px, 6vw, 72px); }
.fullwidth { width: 100%; }

/* — masthead / dark nav — */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  gap: 20px; padding-inline: clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav__brand { display: inline-flex; align-items: center; }
.site-nav__brand img { display: block; height: 26px; width: auto; }
.site-nav__links { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); flex-wrap: wrap; }
.site-nav__link { text-transform: uppercase; letter-spacing: 0.06em; font-size: 12.5px; font-family: var(--font-heading); }
.site-nav__cta { text-transform: uppercase; letter-spacing: 0.05em; }

/* — dark footer (slim, sticky pinned by theme.css) — */
.site-footer { flex-shrink: 0; background: #131315; color: #ececee; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer__inner {
  max-width: 1200px; margin-inline: auto; padding: 14px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-size: 12.5px;
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 12px; }
.site-footer__copy { letter-spacing: 0.02em; }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #ececee; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent-400); }

/* — section kicker (NN · Label + rule) — */
.zk { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.zk__num { font-family: var(--font-heading); font-weight: 600; color: var(--color-accent); font-size: 13px; }
.zk__label {
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 12px; color: var(--color-accent);
}
.zk__rule { flex: 1; height: 1px; background: var(--color-divider); }

/* — generic page header (interior pages) — */
.page-h1 { font-size: clamp(30px, 5vw, 46px); text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 12px; }
.page-lead { font-size: clamp(15px, 2vw, 18px); max-width: 62ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* — hero — */
.hero { padding-block: clamp(36px, 7vw, 84px); max-width: 1000px; }
.hero__eyebrow {
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 12px; color: var(--color-accent); margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(38px, 8vw, 82px); line-height: 0.98; text-transform: uppercase;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero__lead { font-size: clamp(16px, 2.2vw, 20px); max-width: 60ch; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero--compact .hero__title { font-size: clamp(30px, 5vw, 52px); }
.hero--compact { padding-block: clamp(28px, 5vw, 56px); }

/* — auto-fit grid — */
.zgrid {
  display: grid; gap: var(--zgrid-gap, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(var(--zgrid-min, 280px), 100%), 1fr));
}

/* — blueprint content boxes — */
.bp-box, .svc, .cta, .spec, .contact-form-box, .contact-card, .post-card { background: transparent; }
.bp-box__inner, .svc__inner, .cta__inner, .contact-form-box__inner, .contact-card__inner { padding: clamp(20px, 3vw, 32px); }
.bp-box__heading { font-size: 22px; margin-bottom: 10px; }

/* — service card — */
.svc { display: flex; }
.svc__inner { display: flex; flex-direction: column; gap: 8px; }
.svc__num { font-family: var(--font-heading); font-weight: 600; color: var(--color-accent); font-size: 13px; letter-spacing: 0.08em; }
.svc__title { font-size: 20px; }
.svc__body { font-size: 14px; color: color-mix(in srgb, var(--color-text) 80%, transparent); }

/* — CTA band — */
.cta { margin-top: 8px; }
.cta__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta__eyebrow { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--color-accent); }
.cta__heading { font-size: clamp(24px, 4vw, 38px); text-transform: uppercase; letter-spacing: -0.01em; }
.cta__text { max-width: 60ch; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.cta__btn { margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

/* — spec / Kenndaten table — */
.spec__head {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--color-divider); font-family: var(--font-heading); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
}
.spec__code { color: var(--color-accent); }
.spec__title { flex: 1; color: color-mix(in srgb, var(--color-text) 75%, transparent); }
.spec__sheet { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.spec__table { margin: 0; }
.spec__table td, .spec__table th { padding: 10px 14px; vertical-align: top; }
.spec__nr { width: 44px; color: var(--color-accent); font-family: var(--font-heading); font-weight: 600; }
.spec__key { width: 34%; font-weight: 500; text-align: left; }
.spec__val { color: color-mix(in srgb, var(--color-text) 82%, transparent); }

/* — project card — */
/* The whole card leads to the project: the title carries the link and
   stretches it over figure and text, so a click anywhere lands on the detail
   page while the accessibility tree keeps a single, named link. */
.pcard { display: flex; flex-direction: column; gap: 14px; position: relative; }
.pcard__title a { color: inherit; text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; }
.pcard:hover .pcard__title a, .pcard__title a:focus-visible { color: var(--color-accent); }
.pcard:focus-within { outline: 2px solid var(--color-accent); outline-offset: 6px; }
/* Sits above the stretched link so it keeps its own hover and focus. */
.pcard__link { position: relative; z-index: 1; }
/* Covers are application screenshots, not photographs: the duotone tint made
   their light interfaces unreadable, so the frame stays plain. */
.pcard__figure { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--color-surface); }
.pcard__figure img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { display: flex; flex-direction: column; gap: 8px; }
.pcard__meta { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: color-mix(in srgb, var(--color-text) 60%, transparent); margin: 0; }
.pcard__num { color: var(--color-accent); }
.pcard__title { font-size: 21px; }
.pcard__text { font-size: 14px; color: color-mix(in srgb, var(--color-text) 80%, transparent); margin: 0; }
.pcard__link { align-self: flex-start; text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; }

/* — image slots (duotone figure + placeholder) — */
.duo-fig { aspect-ratio: var(--aspect, 16 / 9); display: grid; place-items: center; background: var(--color-surface); }
.duo-fig img { width: 100%; height: 100%; object-fit: cover; }
.slot-ph {
  display: grid; place-items: center; width: 100%; height: 100%; padding: 16px; text-align: center;
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 12px; color: color-mix(in srgb, var(--color-text) 45%, transparent);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 9px, color-mix(in srgb, var(--color-text) 5%, transparent) 9px, color-mix(in srgb, var(--color-text) 5%, transparent) 10px);
}

/* — tag lists — */
.taglist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* — rich text — */
.richtext > :last-child { margin-bottom: 0; }
.richtext h2 { font-size: 26px; margin-top: 28px; }
.richtext h3 { font-size: 21px; margin-top: 22px; }
.richtext ul, .richtext ol { padding-left: 20px; margin: 0 0 var(--space-3); }
.richtext li { margin-bottom: 4px; }
.richtext pre { background: var(--color-surface); border: 1px solid var(--color-divider); padding: 14px; overflow-x: auto; font-size: 13px; }
.richtext code { background: var(--color-surface); padding: 1px 5px; font-size: 0.92em; }

/* — blog — */
.post-card { overflow: hidden; }
.post-card__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.post-card__figure { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--color-surface); margin: 0; }
.post-card__figure img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card__meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: color-mix(in srgb, var(--color-text) 58%, transparent); margin: 0; }
.post-card__title { font-size: 20px; }
.post-card__teaser { font-size: 14px; color: color-mix(in srgb, var(--color-text) 80%, transparent); margin: 0; flex: 1; }

.post__meta { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: color-mix(in srgb, var(--color-text) 58%, transparent); }
.post__back { color: var(--color-accent); text-decoration: none; }
.post__title { font-size: clamp(28px, 5vw, 46px); text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 8px; }
.post__author { margin-bottom: 20px; }
.post__cover { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--color-surface); margin-bottom: 28px; }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post__body { font-size: 16px; line-height: 1.7; }
.post__more { margin-top: 40px; }
.post__more-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.post__more-list a { color: var(--color-accent); text-decoration: none; font-family: var(--font-heading); font-weight: 600; }

.pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 40px; }
.pager__status { font-size: 13px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }

/* — contact — */
.contact-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); margin-top: 8px; }
.contact-form-box__inner .field { margin-bottom: 16px; }
.contact-success__title { font-size: 24px; margin-bottom: 10px; }
.field__error { color: var(--color-accent); font-size: 12px; margin: 4px 0 0; }
.form-errors { color: var(--color-accent); font-size: 13px; margin-bottom: 12px; }
.contact-card__title { font-size: 20px; margin-bottom: 12px; }
.contact-dl { display: grid; grid-template-columns: auto; gap: 2px 0; margin: 0; }
.contact-dl dt { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: color-mix(in srgb, var(--color-text) 55%, transparent); margin-top: 10px; }
.contact-dl dd { margin: 0; font-size: 15px; }
.contact-dl a { color: var(--color-accent); text-decoration: none; }

/* Honeypot — kept in the DOM for bots, removed from view & a11y tree. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zilicon-hp { display: none !important; }

/* — legal reading column — */
.legal .richtext, .legal { font-size: 15px; line-height: 1.7; }
.legal h1 { font-size: clamp(26px, 4vw, 38px); text-transform: uppercase; margin-bottom: 18px; }
.legal h2 { font-size: 20px; margin-top: 26px; }

/* — service detail (2-col: title+text+tags | feature list) — */
.sd {
  display: grid; gap: 40px; align-items: start; margin-bottom: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.sd__title { font-size: clamp(22px, 3vw, 30px); text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 12px; }
.sd__text { font-size: 15px; color: color-mix(in srgb, var(--color-text) 82%, transparent); max-width: 54ch; }
.sd__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.sd__features { list-style: none; margin: 0; padding: 0; }
.sd__features li { padding: 10px 0; border-bottom: 1px solid var(--color-divider); font-size: 14px; }
.sd__features li:last-child { border-bottom: none; }

/* — spec table 4th (description) column — */
.spec__note { color: color-mix(in srgb, var(--color-text) 55%, transparent); font-size: 13px; }

/* — blog featured article — */
.blog-featured { margin-bottom: 32px; }
.featured__inner { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.featured__meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: color-mix(in srgb, var(--color-text) 58%, transparent); margin: 0; }
.featured__title { font-size: clamp(26px, 4vw, 40px); text-transform: uppercase; letter-spacing: -0.01em; margin: 0; }
.featured__title a { color: inherit; text-decoration: none; }
.featured__title a:hover { color: var(--color-accent); }
.featured__teaser { font-size: 16px; color: color-mix(in srgb, var(--color-text) 82%, transparent); max-width: 68ch; }
.featured__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }

/* — article body code block (blueprint framed) — */
.code-box { margin: 26px 0; }
.code-box pre { margin: 0; background: transparent; border: 0; padding: clamp(16px, 3vw, 24px); overflow-x: auto; font-size: 13px; line-height: 1.6; }

/* — article closing CTA box — */
.article-cta { margin-top: 40px; }

/* — contact sidebar blocks — */
.contact-block { margin-bottom: 24px; }
.contact-block:last-child { margin-bottom: 0; }
.contact-rows { display: flex; flex-direction: column; }
.contact-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--color-divider); font-size: 14px; }
.contact-rows > div:last-child { border-bottom: none; }
.contact-rows dt, .contact-rows .k { color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.contact-rows a { color: var(--color-accent); text-decoration: none; }
.form-note { font-size: 12px; color: color-mix(in srgb, var(--color-text) 58%, transparent); margin-top: 10px; }
.contact-address { font-style: normal; line-height: 1.7; }

/* — brand marks (inline SVG) —
   The wordmark and Bildmarke are inlined into the page so these font
   declarations actually reach them. Referenced as <img src="…svg"> the SVG
   renders in an isolated document, falls back to a serif and clips "ILICON"
   against the viewBox. Keep them inline. */
.zlogo, .zmark { display: block; width: auto; }
.zlogo--1a text, .zmark--1a text { font-family: var(--font-heading); }
.zlogo--1c text, .zmark--1c text { font-family: "Rajdhani", var(--font-heading); }

/* — logo showcase (dark blueprint cards) — */
.logo-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.logo-entry { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.logo-entry__badge {
  display: inline-flex; padding: 2px 10px; background: var(--color-accent); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-entry__stage {
  align-self: stretch; background: #131315; padding: 32px;
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
}
.logo-entry__caption { font-size: 13px; line-height: 20px; color: var(--color-neutral-600); margin: 0; }

/* — responsive — */
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .site-nav { flex-wrap: wrap; }
  .site-nav__links { width: 100%; margin-left: 0; order: 3; }
  .site-nav__cta { margin-left: auto; }
}

/* — blog: preview images — */
/* The card is one link (templates/blog/partials/post_card.html); the ghost
   button is a span inside it, so it only needs to look like a button. */
.post-card__title { margin: 0; }
.post-card__link:hover .post-card__title, .post-card__link:focus-visible .post-card__title { color: var(--color-accent); }
.post-card__link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.post-card__more { align-self: flex-start; margin-top: 6px; }
.featured__layout--figure { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.featured__figure { margin: 0; aspect-ratio: 16 / 9; background: var(--color-surface); }
.featured__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .featured__layout--figure { grid-template-columns: 1fr; }
}
