:root {
  color-scheme: only light;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --max: 1440px;
  --page-offset: clamp(24px, 6vw, 132px);
  --line: rgba(30, 35, 38, 0.16);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
}

.topbar {
  width: min(var(--max), calc(100% - (2 * var(--page-offset))));
  min-height: 76px;
  margin-left: var(--page-offset);
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
}

.brand strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: 0;
}

.brand span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.language-note {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--nav-text);
}

.nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}

.language-note {
  color: var(--muted);
  font-family: var(--font-mono);
}

.language-note a {
  color: inherit;
  text-decoration: none;
}



/* Temporarily hide language switch during the German-first draft phase.
   Keep the HTML in place so the option can be re-enabled later. */
.language-note {
  display: none;
}
.hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  background-image: linear-gradient(var(--hero-tint), var(--hero-tint)), var(--hero-image);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.project-page .site-header {
  position: relative;
  z-index: 2;
}

.project-hero {
  min-height: 620px;
  background-position: center 44%;
}

.project-hero .hero-inner {
  padding-bottom: 72px;
}

.hero-inner {
  width: min(var(--max), calc(100% - (2 * var(--page-offset))));
  margin-left: var(--page-offset);
  margin-right: auto;
  padding: 92px 0 52px;
}

.kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--lead);
}

main {
  width: min(var(--max), calc(100% - (2 * var(--page-offset))));
  margin-left: var(--page-offset);
  margin-right: auto;
  padding: 56px 0 72px;
}

.section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section:first-child {
  padding-top: 0;
}

.section:last-child {
  border-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 42px;
}

.section-label {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.84rem;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.item {
  min-height: 172px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.item h3 a {
  color: inherit;
  text-decoration: none;
}

.item h3 a:hover,
.item h3 a:focus-visible {
  color: var(--accent);
}

.item p,
.copy p,
.copy ul,
.copy ol,
.imprint-list p {
  color: var(--muted);
}

.collection-page {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.side-index {
  position: sticky;
  top: 24px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--accent);
  background: transparent;
}

.side-index h2 {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.side-index nav {
  display: grid;
}

.side-index a {
  min-height: 36px;
  padding: 8px 10px 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
}

.side-index a:hover,
.side-index a:focus-visible {
  color: var(--accent);
}

.side-index a:first-child {
  color: var(--text);
  font-weight: 700;
}

.side-index a:first-child::before {
  content: ">";
  margin-right: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.collection-copy {
  min-width: 0;
  padding-top: 18px;
}

.collection-copy .copy {
  max-width: 780px;
}

.collection-cards {
  margin-top: 34px;
}
.detail-page .site-header {
  position: relative;
  z-index: 2;
}

.detail-hero {
  min-height: 560px;
  background-image:
    linear-gradient(
      to bottom,
      rgba(243, 240, 232, 0.06) 0%,
      rgba(243, 240, 232, 0.28) 44%,
      rgba(243, 240, 232, 0.82) 72%,
      rgba(243, 240, 232, 0.96) 100%
    ),
    var(--hero-image);
  background-position: center 44%;
}

.detail-hero .hero-inner {
  padding-bottom: 72px;
}

.detail-hero .kicker,
.detail-hero h1,
.detail-hero .lead {
  text-shadow: 0 1px 18px rgba(243, 240, 232, 0.78);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(44px, 5vw, 76px);
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--panel);
}

.fact-list {
  margin: 18px 0 22px;
}

.fact-list div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 700;
}

.back-link::before {
  content: "<";
  margin-right: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.detail-content {
  min-width: 0;
  padding-top: 12px;
}

.detail-content .copy {
  max-width: 900px;
}

.detail-text-grid .copy {
  max-width: 1040px;
}

.detail-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
}

.content-figure {
  min-height: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.content-figure-large {
  min-height: 0;
}

.content-figure img,
.image-placeholder {
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
}

.content-figure img {
  object-fit: cover;
}

.content-figure figcaption {
  min-height: 44px;
  margin: 0;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.image-placeholder,
.diagram-placeholder {
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: rgba(255, 255, 255, 0.18);
  color: var(--accent);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.image-placeholder span,
.diagram-placeholder span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 1100px;
}

.diagram-placeholder {
  min-height: 280px;
  border: 1px solid var(--line);
}
.detail-page main {
  width: min(980px, calc(100% - 32px));
}

.detail-section-note {
  max-width: 760px;
  color: var(--muted);
}

.content-figure + .content-figure,
.detail-text-grid + .detail-media-grid,
.detail-media-grid + .detail-text-grid {
  margin-top: 4px;
}

.project-intro h2 {
  max-width: 760px;
}

.project-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.project-visual {
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.project-visual-wide {
  min-height: 520px;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-visual-wide img {
  object-position: 48% 50%;
}

.project-visual:not(.project-visual-wide) img {
  object-position: 52% 42%;
}

.concept-hero {
  min-height: 500px;
  background-position: center 44%;
  --hero-tint: rgba(243, 240, 232, 0.68);
}

.concept-main {
  max-width: min(var(--max), calc(100% - 32px));
}

.concept-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.flow-node {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.flow-node h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.flow-node p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.8rem;
  transform: rotate(-90deg);
}

.concept-panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.hub-toolbar,
.compact-index,
.related-strip,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hub-toolbar {
  margin-bottom: 18px;
}

.hub-toolbar span,
.compact-index a,
.related-strip a,
.breadcrumb a,
.breadcrumb strong {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.hub-toolbar span:first-child,
.active-card,
.breadcrumb strong {
  border-color: var(--accent);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.collection-demo {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
}

.collection-index {
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  background: var(--bg);
}

.collection-index .meta {
  margin: 0;
  padding: 14px 14px 8px;
}

.collection-index a {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--nav-text);
  text-decoration: none;
}

.collection-index a.current {
  color: var(--accent);
  background: var(--panel);
}

.collection-content {
  min-width: 0;
}

.concept-card {
  min-height: 150px;
}

.compact-index,
.related-strip {
  margin-top: 18px;
  color: var(--muted);
}

.breadcrumb {
  margin-bottom: 18px;
}

.breadcrumb span {
  color: var(--muted);
  font-family: var(--font-mono);
}

.project-demo-content {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
}

.project-demo-content.no-local-index {
  min-height: 220px;
}

.project-demo-content p {
  color: var(--muted);
}

.legal-content {
  max-width: 860px;
}

.legal-content h2 {
  margin-top: 42px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 24px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content .index,
.legal-content .glossary {
  padding-left: 0;
  list-style: none;
}

.legal-content .index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0 0 36px;
}

.index-link {
  color: var(--accent);
  text-decoration: none;
}

.seal {
  margin-top: 42px;
  font-size: 0.9rem;
}

.meta {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.78rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.footer-inner {
  width: min(var(--max), calc(100% - (2 * var(--page-offset))));
  margin-left: var(--page-offset);
  margin-right: auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner a {
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}



/* Product-photo introduction on project detail pages */
.product-showcase {
  max-width: 1180px;
}

.product-showcase-copy {
  max-width: 880px;
  margin-bottom: 22px;
}

.product-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.product-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.product-photo-main {
  grid-column: 1 / -1;
}

.product-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--panel-strong);
}

.product-photo-main img {
  aspect-ratio: 16 / 9;
  max-height: 720px;
  object-fit: contain;
  object-position: center 48%;
}

.product-photo figcaption {
  padding: 11px 13px 13px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}
/* Technical long-form article elements */
.technical-article {
  max-width: 1040px;
}

.technical-article > p,
.technical-article > ul,
.technical-article > ol {
  max-width: 880px;
}

.technical-article h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.22;
}

.technical-article h2 + h3 {
  margin-top: 18px;
}

.article-note {
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: var(--panel);
  color: var(--lead) !important;
}

.formula,
.code-block {
  overflow-x: auto;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text) !important;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.45;
}

.code-block {
  margin: 18px 0;
  white-space: pre;
}

.code-block code {
  font-family: inherit;
}

.tech-table-wrap {
  width: 100%;
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.tech-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tech-table th,
.tech-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tech-table th {
  color: var(--text);
  background: rgba(177, 95, 24, 0.08);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.tech-table td {
  color: var(--muted);
}

.technical-figure {
  margin: 22px 0 26px;
  overflow: hidden;
}

.technical-article .technical-figure img,
.technical-figure img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 10px;
  background: var(--panel);
}

.technical-figure figcaption {
  color: var(--muted);
}
.technical-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 26px;
  align-items: start;
}

.technical-photo-grid .technical-figure {
  height: 100%;
  margin: 0;
}

.technical-photo-wide {
  grid-column: 1 / -1;
}
.variant-technik {
  --bg: #f3f0e8;
  --text: #1e2525;
  --muted: #596360;
  --lead: #303a38;
  --accent: #b15f18;
  --panel: #fbfaf6;
  --nav-bg: #f8f6ef;
  --nav-text: #24302f;
  --footer-bg: #e9e3d6;
  --hero-tint: rgba(243, 240, 232, 0.2);
}

.variant-handbuch {
  --bg: #f7f7f3;
  --text: #1d2428;
  --muted: #5b6467;
  --lead: #313b3f;
  --accent: #276d74;
  --panel: #ffffff;
  --nav-bg: #ffffff;
  --nav-text: #1d2428;
  --footer-bg: #eceeea;
  --hero-tint: rgba(247, 247, 243, 0.28);
}

.variant-labor {
  --bg: #151817;
  --text: #e8e4d7;
  --muted: #b8b2a2;
  --lead: #ddd6c2;
  --accent: #d88d32;
  --panel: #1f2523;
  --nav-bg: #101312;
  --nav-text: #e8e4d7;
  --footer-bg: #101312;
  --line: rgba(232, 228, 215, 0.16);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  --hero-tint: rgba(0, 0, 0, 0.42);
}

.variant-technik .hero,
.variant-handbuch .hero,
.variant-labor 
.hero {
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .topbar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  
.hero {
    min-height: 360px;
  }

  .project-hero {
    min-height: 520px;
    background-position: 48% center;
  }

  .concept-hero {
    min-height: 420px;
    background-position: center 42%;
    --hero-tint: rgba(243, 240, 232, 0.76);
  }

  .split,
  .grid,
  .collection-page,
  .concept-flow,
  .concept-grid,
  .collection-demo,
  .project-visuals {
    grid-template-columns: 1fr;
  }

  .collection-page {
    gap: 34px;
  }

  .side-index {
    position: static;
    min-height: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    background: var(--panel);
  }

  .flow-arrow {
    transform: none;
  }

  .project-visual,
  .project-visual-wide {
    min-height: 360px;
  }

  .legal-content .index {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .detail-hero {
    min-height: 480px;
    background-position: 50% center;
  }


  .product-photo-grid {
    grid-template-columns: 1fr;
  }

  .product-photo-main {
    grid-row: auto;
  }

  .product-photo img,
  .product-photo-main img {
    height: auto;
    min-height: 0;
  }
  .detail-layout,
  .detail-media-grid,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .content-figure,
  .content-figure-large {
    min-height: 360px;
  }

  .content-figure img,
  .image-placeholder {
    min-height: 300px;
  }
}







/* publication-scope helpers */
.side-index span {
  min-height: 36px;
  padding: 8px 10px 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.96rem;
}

.item-featured {
  border-left: 2px solid var(--accent);
}

.figure-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.figure-fullres-link {
  display: inline-block;
  margin-left: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-decoration: none;
}

.figure-fullres-link::before {
  content: "[";
}

.figure-fullres-link::after {
  content: "]";
}

.figure-fullres-link:hover,
.figure-fullres-link:focus-visible {
  text-decoration: underline;
}

.source-code-details {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.source-code-details summary {
  cursor: pointer;
  padding: 12px 15px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.source-code-details summary:hover,
.source-code-details summary:focus-visible {
  text-decoration: underline;
}

.source-code-block {
  max-height: 620px;
  margin: 0;
  border-width: 1px 0 0;
  background: var(--bg);
}
@media (max-width: 820px) {
  .technical-photo-grid {
    grid-template-columns: 1fr;
  }

  .technical-photo-wide {
    grid-column: auto;
  }
}
