:root {
  --bg-canvas: #172219;
  --bg-surface: #213024;
  --bg-surface-hover: #2b3e2f;
  --text-primary: #eef2ea;
  --text-muted: #b8c4b4;
  --accent-primary: #ff6f59;
  --accent-secondary: #d7b274;
  --border-subtle: #384c3b;
  --shadow-hard: #0b120c;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-card: 16px;
  --radius-btn: 8px;
  --space-unit: 8px;
  --ease-kinetic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 380ms;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  background-color: var(--bg-surface);
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms var(--ease-kinetic);
}

a:hover {
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 20px;
}

.measure {
  max-width: 70ch;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin-top: 0;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

/* Header */
.site-header {
  position: static;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0 16px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-link:hover {
  color: var(--accent-primary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
}

.site-nav {
  margin-top: 14px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
}

.nav-list a {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 200ms var(--ease-kinetic), border-color 200ms var(--ease-kinetic);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 13px 22px;
  border: 2px solid var(--bg-canvas);
  border-radius: var(--radius-btn);
  box-shadow: 4px 4px 0 var(--shadow-hard);
  cursor: pointer;
  transition: transform 180ms var(--ease-kinetic), box-shadow 180ms var(--ease-kinetic), background-color 180ms var(--ease-kinetic);
}

.btn:hover {
  color: var(--bg-canvas);
  background-color: #ff826f;
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--shadow-hard);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--shadow-hard);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 2px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* Sections & Diagonal Bands */
.band {
  position: relative;
  padding: 64px 0;
}

.band-surface {
  background-color: var(--bg-surface);
  clip-path: polygon(0 24px, 100% 0, 100% calc(100% - 24px), 0 100%);
  padding: 84px 0;
}

.band-canvas {
  background-color: var(--bg-canvas);
}

.hero-section {
  padding: 52px 0 64px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.split-grid.reversed .split-copy {
  order: 2;
}

.split-grid.reversed .split-visual {
  order: 1;
}

.plate-frame {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px;
}

.band-surface .plate-frame {
  background-color: var(--bg-canvas);
}

.plate-frame svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.plate-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.plate-media.wide {
  aspect-ratio: 16 / 9;
}

.plate-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* Ruled List Rows */
.ruled-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  border-top: 1px solid var(--border-subtle);
}

.ruled-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.ruled-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.ruled-title {
  display: block;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ruled-desc {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin: 0;
}

.ruled-meta {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background-color: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  text-align: left;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.96rem;
}

th {
  font-weight: 800;
  color: var(--text-primary);
  background-color: rgba(11, 18, 12, 0.35);
}

tr:last-child td {
  border-bottom: none;
}

td {
  color: var(--text-muted);
}

td strong {
  color: var(--text-primary);
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--border-subtle);
  margin: 24px 0;
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-trigger {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  text-align: left;
  padding: 18px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.accordion-trigger:hover {
  color: var(--accent-primary);
}

.accordion-symbol {
  font-size: 1.25rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.accordion-panel {
  padding: 0 4px 18px;
  color: var(--text-muted);
}

.accordion-panel[hidden] {
  display: none;
}

/* Forms & Contact Tool */
.composer-form {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.output-box {
  margin-top: 22px;
  padding: 18px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: var(--text-primary);
}

.status-note {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-secondary);
  min-height: 1.4em;
}

/* Subpage Intro */
.page-hero {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.toc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.toc-strip a {
  font-size: 0.92rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
  padding: 72px 0 44px;
  margin-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.footer-imprint p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 8px;
}

.footer-domain {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration) var(--ease-kinetic), transform var(--duration) var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .split-grid {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .split-grid,
  .split-grid.reversed,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-grid.reversed .split-copy,
  .split-grid.reversed .split-visual {
    order: initial;
  }

  .band-surface {
    clip-path: polygon(0 14px, 100% 0, 100% calc(100% - 14px), 0 100%);
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }

  .composer-form {
    padding: 20px 16px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}