:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5b6675;
  --line: #8fd9be;
  --surface: #f7f9fb;
  --surface-strong: #edf3f7;
  --accent: #16705a;
  --accent-dark: #0e5142;
  --signal: #c85f16;
  --white: #ffffff;
  --hero-bg: linear-gradient(180deg, #ffffff 0%, #f3f7f8 100%);
  --header-bg: rgba(255, 255, 255, 0.94);
  --footer-bg: #121820;
  --footer-muted: #c9d1da;
  --shadow: 0 24px 80px rgba(23, 32, 42, 0.12);
  --notice-bg: #f0f9f7;
  --notice-text: #1a4d42;
  --section-alt-a: #ffffff;
  --section-alt-b: #f0f7f3;
  --max: 1520px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#prinzip,
#metadata-title {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 8px 0;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-logo-animation {
  display: block;
  width: clamp(150px, 16vw, 215px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.brand:hover {
  color: var(--accent-dark);
}

main {
  overflow: hidden;
}

.section,
.hero {
  padding: 68px 0;
}

main > section.section {
  background: var(--section-alt-a);
}

main > section.section:nth-of-type(even) {
  background: var(--section-alt-b);
}

.hero {
  background: var(--hero-bg);
  padding: 44px 0 68px;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero .wrap {
  width: min(100% - 32px, 1600px);
  margin: 0 auto;
}

.hero-grid {
  --hero-gap: clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, calc((100% - var(--hero-gap)) / 2)));
  justify-content: space-between;
  gap: var(--hero-gap);
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  font-size: clamp(2.45rem, 4.4vw, 4.7rem);
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.lead {
  margin-top: 18px;
  max-width: 720px;
  color: var(--lead, #334150);
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
}

.spaced-small {
  margin-top: 14px;
}

.spaced-medium {
  margin-top: 18px;
}

.actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.actions .button {
  width: 100%;
  padding: 0 12px;
  font-size: 0.80rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(23, 32, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  font-size: 0.92rem;
  white-space: nowrap;
  line-height: 1.2;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(23, 32, 42, 0.1);
}

.button.primary {
  border-color: #1f7a5c;
  background: #1f7a5c;
  color: var(--white);
}

.button.secondary {
  border-color: #2f8c6d;
  background: #67c7a3;
  color: #123f33;
}

.button.tertiary {
  border-color: #67c7a3;
  background: #b8e5d2;
  color: #165445;
}

.button.quaternary {
  border-color: #8fd9be;
  background: #e6f6ef;
  color: #165445;
}

.hero-visual {
  width: 100%;
  justify-self: end;
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  outline: 0;
}

.logo-viewer-host {
  align-self: stretch;
  height: min(78vh, 620px);
  min-height: 420px;
  overflow: hidden;
  background: transparent;
  outline: 0;
}

.logo-viewer-canvas {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  touch-action: none;
  background: transparent;
  box-shadow: none;
  outline: 0;
}

.viewer-load-error::after {
  content: "3D-Modell konnte nicht geladen werden.";
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--line);
  background: var(--line);
}

.trust-strip div {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 16px;
  background: var(--surface);
}

.trust-strip strong {
  color: var(--ink);
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-header {
  max-width: 100%;
  margin-bottom: 30px;
}

.section-header p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-header .eyebrow,
.hero-copy .eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.band {
  background: var(--surface-strong);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-categories {
  display: grid;
  gap: 30px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-categories div {
  border: none;
  background: transparent;
  padding: 0;
}

.field-categories h3 {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.role-grid .card {
  min-height: 210px;
}

.partner-actions .button.primary {
  border-color: #4fb48e;
  background: #67c7a3;
  color: #0e3126;
}

.partner-actions .button:not(.primary) {
  border-color: #b8e5d2;
  background: #e6f6ef;
  color: #1a4d3f;
}

.card,
.statement,
.faq-item {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 24px;
}

.card h3,
.statement h3 {
  margin-bottom: 10px;
}

.card p,
.statement p:not(.eyebrow),
.faq-item p {
  color: var(--muted);
}

.thread-example-card {
  grid-column: 1 / -1;
  overflow: hidden;
}

.thread-example-card p {
  max-width: 720px;
}

.thread-example-media {
  margin: 18px 0 0;
  border: 1px solid var(--field-line, var(--line));
  background: #06131f;
  overflow: hidden;
}

.thread-example-media img {
  display: block;
  width: 100%;
  height: auto;
}

.statement {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}

.statement strong {
  color: var(--ink);
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.workflow-step {
  background: var(--white);
  padding: 24px;
  min-height: 180px;
}

.workflow-step span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-weight: 800;
}

.workflow-section {
  padding: 72px 0;
}

.workflow-header {
  color: var(--white);
}

.workflow-header .eyebrow {
  color: var(--accent-dark);
}

.workflow-header h2 {
  color: #f4fbff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.workflow-image-panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #06131f;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

.workflow-image-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.workflow-container {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.workflow-step {
  grid-column: span 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 20px;
  min-height: 240px;
  position: relative;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.step-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  background: #52d78f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #0f1b2e;
}

.step-icon {
  font-size: 2.8rem;
  margin: 24px 0 16px;
  line-height: 1;
}

.workflow-step h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.workflow-step p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  line-height: 1.5;
}

.workflow-arrow {
  grid-column: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #52d78f;
  font-size: 1.8rem;
  font-weight: 300;
}

.preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.mockup {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
}

.preview .actions {
  margin-bottom: 0;
}

.mockup-top {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--field-line, #eef2f5);
  font-size: 0.94rem;
}

.field-row span:first-child {
  color: var(--muted);
}

.tag-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 78%, var(--accent) 22%);
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tag.is-empty {
  background: transparent;
  color: transparent;
}

.faq {
  display: grid;
  gap: 14px;
}

details.faq-item {
  padding: 0;
}

summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 760;
}

details.faq-item p {
  padding: 0 24px 22px;
}

.notice {
  border-top: 3px solid var(--accent-dark);
  border-radius: 8px;
  background: var(--notice-bg);
  padding: 20px 24px;
  color: var(--notice-text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.mockup .notice {
  border-top: 0;
}

.workbench-playground {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  margin-top: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--notice-bg);
  overflow: hidden;
  cursor: none;
}

.workbench-chase-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  min-width: 176px;
  min-height: 68px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--surface) 74%, var(--accent) 26%);
  color: var(--notice-text);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: left 320ms ease, top 320ms ease, transform 140ms ease, background-color 160ms ease;
  pointer-events: none;
  white-space: nowrap;
}

.workbench-playground.is-ready .workbench-chase-button {
  pointer-events: auto;
  transition: left 180ms ease-out, top 180ms ease-out, transform 140ms ease, background-color 160ms ease;
}

.workbench-chase-button:hover,
.workbench-chase-button:focus-visible {
  background: color-mix(in srgb, var(--surface) 52%, var(--accent) 48%);
}

.workbench-cursor {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 150px;
  height: 150px;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 120ms ease, transform 120ms ease;
}

.workbench-playground.is-active .workbench-cursor {
  opacity: 1 !important;
}

.workbench-playground.is-pressing .workbench-cursor {
  transform: translate(-50%, -50%) scale(1.32);
}

.notice-soft {
  border-top: 0;
}

.footer {
  padding: 46px 0;
  background: var(--footer-bg);
  color: var(--white);
}

.footer h2 {
  color: #f4fbff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer a {
  color: var(--white);
}

.footer p:not(.eyebrow) {
  color: var(--footer-muted);
}

.footer .eyebrow {
  color: var(--accent-dark);
}

.footer-copy {
  margin-top: 12px;
  max-width: 720px;
}

.footer-actions {
  margin-top: 0;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-actions .button {
  width: auto;
  min-width: 280px;
  min-height: 56px;
  padding: 0 30px;
  font-size: 1rem;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-visual {
    justify-self: center;
    margin-top: 32px;
    max-width: 560px;
  }

  .logo-viewer-host {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .workflow,
  .preview,
  .statement,
  .trust-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
  }

  .thread-example-card {
    grid-column: auto;
  }

  .field-categories {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .workflow-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .workflow-arrow {
    display: none;
  }
}

@media (max-width: 620px) {
  .section,
  .hero {
    padding: 40px 0 58px;
  }

  .card,
  .statement,
  .workflow-step,
  .faq-item,
  .mockup {
    padding: 18px;
  }

  .mockup {
    padding-bottom: 0;
  }

  .workbench-playground {
    min-height: 180px;
  }

  summary {
    padding: 18px;
  }

  details.faq-item p {
    padding: 0 18px 18px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .tag-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}