/* Tango Creator Kits – Showcase
   Basis: Design-Tokens, Typografie, Layout, Header/Footer.
   Keine externen Fonts, keine externen Ressourcen. */

:root {
  --bg: #0b0f16;
  --bg-elev: #111723;
  --surface: #161e2e;
  --surface-2: #1e293d;
  --border: #5b6f94;
  --border-strong: #7b91b8;
  --text: #f3f6fb;
  --text-muted: #c4cfe2;
  --accent: #82c8fb;
  --accent-soft: #b4dffe;
  --accent-ink: #061523;
  --ok: #85e8b3;
  --warn: #f6cb7a;
  --alert: #fca5a5;
  --focus: #f6cb7a;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  --measure: 68ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Modus "Höherer Kontrast" (AAA-Ziel) */
[data-contrast='high'] {
  --bg: #000000;
  --bg-elev: #05070d;
  --surface: #0b1020;
  --surface-2: #141d33;
  --border: #7d93c4;
  --border-strong: #ffffff;
  --text: #ffffff;
  --text-muted: #e7ecfa;
  --accent: #ffe100;
  --accent-soft: #fff36b;
  --accent-ink: #000000;
  --ok: #9dffc6;
  --warn: #ffe100;
  --alert: #ffb3b3;
  --focus: #ffe100;
  --shadow: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  max-width: var(--measure);
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-soft);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  transition: top 120ms ease-out;
}

.skip-link:focus {
  top: 0;
  color: var(--accent-ink);
}

.shell {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
}

.section--alt {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 15, 22, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.disclaimer-bar {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding-block: 0.4rem;
}

.disclaimer-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.disclaimer-bar__text {
  margin: 0;
  max-width: none;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  min-height: 4rem;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.lang-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.lang-btn.is-active,
.lang-btn[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
}

.nav-toggle {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0.1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    order: 2;
    margin-left: auto;
  }

  .header-actions {
    order: 3;
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .site-nav {
    flex-basis: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
    padding-bottom: 0.75rem;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding-block: 0.6rem;
  }
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  max-width: none;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  max-width: none;
}

.hero__facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  margin: 0;
}

.hero__facts strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.25;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding-block: 2.5rem 3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer__lead {
  color: var(--text);
  font-weight: 700;
}

.site-footer__disclaimer {
  color: var(--text);
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.site-footer__meta {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1.5rem;
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: #6f8fc9;
    --border-strong: #ffffff;
    --text-muted: #e7ecfa;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .controls-section,
  .preview-stage {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
