/* ==========================================================================
   SCM Creative Management — zentrales Stylesheet
   Dunkles Theme, Blau + Gold, Spec-Sheet-Signature-Element
   ========================================================================== */

/* -------------------- Fonts (self-hosted, font-display: swap) ------------ */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* -------------------- Tokens ---------------------------------------------- */
:root {
  --bg-primary: #0c1220;
  --bg-surface: #141b2e;
  --bg-surface-raised: #182140;
  --border-subtle: #232d42;
  --border-strong: #303e5c;
  --text-primary: #e9ecf3;
  --text-muted: #8892a8;
  --accent-blue: #4c7bf0;
  --accent-blue-dim: #2f4d94;
  --accent-gold: #e8b84b;
  --accent-gold-dim: #a3812f;
  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --measure: 680px;
  --rhythm-desktop: 96px;
  --rhythm-mobile: 56px;
  --radius: 4px;
  --transition: 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition: 0ms;
  }
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-blue);
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  text-decoration-color: currentColor;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

p {
  margin: 0 0 1.2em;
}

ul, ol {
  padding-left: 1.3em;
}

/* Visible focus states — never remove */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -------------------- Skip link -------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--accent-gold);
  color: #14100a;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

/* -------------------- Layout helpers ---------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .container { padding-inline: 2rem; }
}

.prose {
  max-width: var(--measure);
}

.section {
  padding-block: var(--rhythm-mobile);
}

@media (min-width: 1024px) {
  .section { padding-block: var(--rhythm-desktop); }
}

.section--surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: inline-block;
  margin-bottom: 1rem;
}

/* -------------------- Header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--accent-gold);
}

.logo span {
  color: var(--accent-gold);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent-gold);
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem 0.45rem;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
}

.nav-dropdown-toggle:hover {
  color: var(--accent-gold);
}

.nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-dropdown.is-open {
  display: flex;
}

.nav-dropdown a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-dropdown a small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-dropdown a:hover {
  background: rgba(76, 123, 240, 0.12);
  color: var(--accent-blue);
}

.nav-dropdown a:hover small {
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--gold {
  background: var(--accent-gold);
  color: #14100a;
}

.btn--gold:hover {
  background: #f0c869;
  color: #14100a;
}

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn--block {
  width: 100%;
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

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

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav__inner {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a,
.mobile-nav .mobile-nav__group-toggle {
  padding: 0.7rem 0.25rem;
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-nav__sub {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  gap: 0.1rem;
}

.mobile-nav__sub.is-open {
  display: flex;
}

.mobile-nav__sub a {
  border-bottom: none;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.55rem 0.25rem;
}

.mobile-nav__cta {
  margin-top: 0.75rem;
}

/* -------------------- Hero -------------------------------------------------- */
.hero {
  padding-block: 4.5rem 3rem;
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 6.5rem 4rem;
  }
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: var(--measure);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* -------------------- Spec-sheet signature element --------------------------- */
.spec-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
}

.spec-sheet__item {
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.spec-sheet__item:last-child {
  border-right: none;
}

.spec-sheet__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.spec-sheet__value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--accent-gold);
  line-height: 1;
}

.spec-sheet__value small {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.35rem;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  padding: 1.1rem 1.5rem;
}

.spec-badge__divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-strong);
}

.spec-badge__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.spec-badge__value {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

/* -------------------- Cards / teasers ---------------------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.service-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  background: var(--bg-surface-raised);
}

.service-card__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.service-card__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-blue);
}

/* -------------------- FAQ / accordion ---------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: var(--measure);
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-body);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent-blue);
}

.faq-item__body {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-muted);
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

/* -------------------- Benefits list ------------------------------------------ */
.benefit-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .benefit-list { grid-template-columns: repeat(2, 1fr); }
}

.benefit-list li {
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  background: var(--bg-surface);
  padding: 1.1rem 1.3rem;
  border-radius: 0 6px 6px 0;
}

/* -------------------- CTA section --------------------------------------------- */
.cta-band {
  text-align: center;
  padding-block: var(--rhythm-mobile);
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 1024px) {
  .cta-band { padding-block: var(--rhythm-desktop); }
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* -------------------- Footer ---------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding-block: 3rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer__brand {
  max-width: 360px;
}

.site-footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--accent-gold);
}

.site-footer__meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* -------------------- Forms ----------------------------------------------------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 1px;
  border-color: var(--accent-blue);
}

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

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-status {
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  border-radius: 6px;
  border: 1px solid var(--accent-gold);
  background: rgba(232, 184, 75, 0.08);
  display: none;
  font-size: 0.95rem;
}

.form-status.is-visible {
  display: block;
}

/* -------------------- Utility classes ------------------------------------------- */
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-header {
  padding-block: 3.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 1024px) {
  .page-header { padding-block: 5rem 2.5rem; }
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

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

.evidence-figure {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  margin: 2rem 0;
}

.evidence-figure__placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    135deg,
    var(--bg-surface-raised),
    var(--bg-surface-raised) 10px,
    var(--bg-surface) 10px,
    var(--bg-surface) 20px
  );
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.evidence-figure figcaption {
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.two-col {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

.side-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.75rem;
}

.side-panel h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
}

.numbered-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.numbered-steps li {
  counter-increment: step;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.numbered-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-gold);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-frame {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  padding: 1rem;
}
