/* ==========================================================================
   InspiredSoftware — Design-Sprache angelehnt an Workestral (teampilotai.com):
   dunkler Ink-Hintergrund, Parchment-Text, Steel/Bronze als einzige Akzente,
   Serif für Überschriften, Mono für Eyebrows/Labels.
   ========================================================================== */

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

:root {
 --ink: #080c14;
 --parchment: #ede9e1;
 --surface: #111b29;
 --surface2: #192640;
 --border: #243452;
 --steel: #3e8cc4;
 --bronze: #c4914a;
 --muted: #6b8fad;
 --serif: Georgia, "Times New Roman", serif;
 --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
 --mono: "Courier New", Courier, monospace;
 --container: 1120px;
}

html {
 scroll-behavior: smooth;
}

body {
 background: var(--ink);
 color: var(--parchment);
 font-family: var(--sans);
 font-size: 16px;
 line-height: 1.65;
 -webkit-font-smoothing: antialiased;
 padding-top: 60px;
}

a {
 color: var(--steel);
 text-decoration: none;
}

img {
 max-width: 100%;
}

.container {
 max-width: var(--container);
 margin-inline: auto;
 padding-inline: max(24px, 5vw);
}

code {
 font-family: var(--mono);
 font-size: 0.85em;
 color: var(--parchment);
 background: rgba(255, 255, 255, 0.06);
 border: 1px solid var(--border);
 border-radius: 4px;
 padding: 1px 6px;
}

/* ---------- Navigation ---------- */

nav {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 100;
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 0 max(24px, 5vw);
 height: 60px;
 background: rgba(8, 12, 20, 0.88);
 backdrop-filter: blur(12px);
 -webkit-backdrop-filter: blur(12px);
 border-bottom: 1px solid rgba(36, 52, 82, 0.6);
 gap: 24px;
}

.nav-logo {
 font-family: var(--serif);
 font-size: 1.1rem;
 font-weight: 700;
 color: var(--parchment);
 letter-spacing: -0.01em;
 flex-shrink: 0;
}

 .nav-logo span {
  color: var(--bronze);
 }

.nav-links {
 display: flex;
 align-items: center;
 gap: 26px;
 flex: 1;
 margin-left: 12px;
}

 .nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s;
 }

  .nav-links a:hover {
   color: var(--parchment);
  }

.nav-cta {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 8px 18px;
 border-radius: 6px;
 background: var(--steel);
 color: #fff !important;
 font-size: 0.85rem;
 font-weight: 600;
 letter-spacing: 0.02em;
 transition: filter 0.15s;
 flex-shrink: 0;
 white-space: nowrap;
}

 .nav-cta:hover {
  filter: brightness(1.15);
 }

.nav-toggle-checkbox {
 display: none;
}

.nav-toggle {
 display: none;
 flex-direction: column;
 gap: 5px;
 cursor: pointer;
 padding: 6px;
}

 .nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--parchment);
  border-radius: 2px;
 }

/* ---------- Hero ---------- */

.hero {
 min-height: calc(100vh - 60px);
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 text-align: center;
 padding: 80px max(24px, 5vw);
 position: relative;
 overflow: hidden;
}

 .hero::before {
  content: "";
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 420px;
  background: radial-gradient(ellipse, rgba(62, 140, 196, 0.12) 0%, transparent 70%);
  pointer-events: none;
 }

.hero-eyebrow {
 font-family: var(--mono);
 font-size: 0.72rem;
 letter-spacing: 0.18em;
 color: var(--bronze);
 text-transform: uppercase;
 margin-bottom: 24px;
 position: relative;
}

.hero h1 {
 font-family: var(--serif);
 font-size: clamp(2.4rem, 5.5vw, 4.4rem);
 font-weight: 700;
 line-height: 1.1;
 letter-spacing: -0.02em;
 color: var(--parchment);
 text-wrap: balance;
 max-width: 820px;
 margin-bottom: 24px;
 position: relative;
}

 .hero h1 .accent {
  color: var(--steel);
 }

.hero-sub {
 max-width: 580px;
 font-size: 1.05rem;
 color: var(--muted);
 line-height: 1.7;
 margin-bottom: 36px;
 position: relative;
}

.hero-actions {
 display: flex;
 gap: 14px;
 justify-content: center;
 flex-wrap: wrap;
 position: relative;
}

/* compact hero variant for inner pages */
.doc-hero {
 min-height: auto;
 padding: 120px max(24px, 5vw) 56px;
}

.doc-breadcrumb {
 font-family: var(--mono);
 font-size: 0.78rem;
 color: var(--muted);
 margin-bottom: 20px;
 position: relative;
}

 .doc-breadcrumb a {
  color: var(--steel);
 }

/* ---------- Buttons ---------- */

.btn {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 14px 32px;
 border-radius: 8px;
 font-weight: 600;
 font-size: 0.95rem;
 letter-spacing: 0.02em;
 border: 1px solid transparent;
 transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
 background: var(--steel);
 color: #fff;
}

 .btn-primary:hover {
  filter: brightness(1.12);
 }

.btn-ghost {
 background: transparent;
 border-color: var(--border);
 color: var(--parchment);
}

 .btn-ghost:hover {
  border-color: var(--steel);
 }

/* ---------- Shared section headings ---------- */

.section {
 padding: 96px max(24px, 5vw);
}

.on-surface {
 background: var(--surface);
}

.section-head {
 text-align: center;
 max-width: 560px;
 margin: 0 auto 56px;
}

.section-eyebrow {
 font-family: var(--mono);
 font-size: 0.72rem;
 letter-spacing: 0.16em;
 color: var(--bronze);
 text-transform: uppercase;
 margin-bottom: 14px;
}

.section-title {
 font-family: var(--serif);
 font-size: clamp(1.8rem, 3.2vw, 2.5rem);
 font-weight: 700;
 letter-spacing: -0.02em;
 line-height: 1.15;
 text-wrap: balance;
 color: var(--parchment);
 margin-bottom: 16px;
}

.section-intro {
 color: var(--muted);
 font-size: 1rem;
 line-height: 1.7;
}

/* ---------- Product / feature grid ---------- */

.grid-inner {
 max-width: var(--container);
 margin: 0 auto;
}

.card-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2px;
 background: transparent;
 border: 1px solid var(--border);
 border-radius: 16px;
 overflow: hidden;
}

.product-card {
 background: var(--surface);
 box-shadow: 0 0 0 1px var(--border);
 padding: 40px 34px;
 display: flex;
 flex-direction: column;
 gap: 14px;
 transition: background 0.2s;
}

 .product-card:hover {
  background: var(--surface2);
 }

.product-mark {
 width: 44px;
 height: 44px;
 display: grid;
 place-items: center;
 border: 1px solid var(--border);
 border-radius: 10px;
 font-family: var(--serif);
 font-weight: 700;
 font-size: 1.1rem;
 color: var(--bronze);
}

.product-card h3 {
 font-family: var(--serif);
 font-size: 1.3rem;
 font-weight: 700;
 color: var(--parchment);
 letter-spacing: -0.01em;
}

.product-tagline {
 font-family: var(--mono);
 font-size: 0.72rem;
 letter-spacing: 0.06em;
 text-transform: uppercase;
 color: var(--steel);
}

.product-desc {
 color: var(--muted);
 font-size: 0.92rem;
 line-height: 1.65;
 flex-grow: 1;
}

.product-meta {
 padding-top: 14px;
 border-top: 1px solid var(--border);
}

.product-link {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 font-weight: 600;
 color: var(--parchment);
 font-size: 0.9rem;
 transition: color 0.15s;
}

 .product-link .arrow {
  color: var(--steel);
  transition: transform 0.15s ease;
 }

.product-card:hover .product-link .arrow {
 transform: translateX(4px);
}

.badge {
 display: inline-block;
 font-family: var(--mono);
 font-size: 0.65rem;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 color: var(--bronze);
 background: rgba(196, 145, 74, 0.1);
 border: 1px solid rgba(196, 145, 74, 0.25);
 border-radius: 4px;
 padding: 4px 10px;
}

/* ---------- Feature grid (GuiTestStudio etc.) ---------- */

.feature-card {
 background: var(--surface);
 box-shadow: 0 0 0 1px var(--border);
 padding: 36px 32px;
 display: flex;
 flex-direction: column;
 gap: 12px;
 transition: background 0.2s;
}

 .feature-card:hover {
  background: var(--surface2);
 }

.feature-icon {
 font-size: 1.3rem;
 filter: grayscale(1) opacity(0.8);
}

.feature-card h3 {
 font-family: var(--serif);
 font-size: 1.1rem;
 font-weight: 700;
 color: var(--parchment);
 letter-spacing: -0.01em;
}

.feature-card p {
 color: var(--muted);
 font-size: 0.9rem;
 line-height: 1.65;
}

/* ---------- Content / about block ---------- */

.content-block {
 max-width: 680px;
 margin: 0 auto;
 text-align: center;
}

 .content-block .section-title {
  margin-bottom: 20px;
 }

 .content-block p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
 }

/* ---------- CTA ---------- */

.cta-section {
 text-align: center;
 padding: 110px max(24px, 5vw);
}

 .cta-section .section-title {
  margin: 0 auto 16px;
  max-width: 600px;
 }

 .cta-section .section-intro {
  margin: 0 auto 40px;
  max-width: 480px;
 }

/* ---------- Entwicklungsumgebungs-Hinweis (Kontaktstellen) ---------- */

.dev-hint {
 margin-top: 20px;
 font-size: 1.15rem;
 color: var(--muted);
 max-width: 700px;
}

 .dev-hint a {
  color: var(--bronze);
  font-weight: 600;
 }

/* ---------- Doc pages: Impressum / Datenschutz / Haftungsausschluss ---------- */

.doc-section-inner {
 max-width: 760px;
 margin: 0 auto;
}

.doc-prose h3 {
 font-family: var(--serif);
 font-size: 1.25rem;
 font-weight: 700;
 color: var(--parchment);
 letter-spacing: -0.01em;
 margin: 40px 0 14px;
}

 .doc-prose h3:first-child {
  margin-top: 0;
 }

.doc-prose p {
 font-size: 0.95rem;
 color: var(--muted);
 line-height: 1.75;
 margin-bottom: 16px;
}

.doc-prose ul,
.doc-prose ol {
 color: var(--muted);
 font-size: 0.95rem;
 line-height: 1.75;
 margin: 0 0 16px;
 padding-left: 1.4em;
}

.doc-prose li {
 margin-bottom: 6px;
}

 .doc-prose li strong,
 .doc-prose strong {
  color: var(--parchment);
 }

.doc-prose a {
 text-decoration: underline;
 text-decoration-color: rgba(62, 140, 196, 0.4);
}

.doc-nav-cards {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 16px;
 margin-top: 40px;
}

.doc-nav-card {
 display: block;
 padding: 22px 24px;
 border: 1px solid var(--border);
 border-radius: 12px;
 background: var(--surface);
 transition: border-color 0.2s;
}

 .doc-nav-card:hover {
  border-color: var(--steel);
 }

.doc-nav-card-title {
 font-family: var(--serif);
 font-size: 1.02rem;
 font-weight: 700;
 color: var(--parchment);
 margin-bottom: 6px;
}

.doc-nav-card-desc {
 font-size: 0.82rem;
 color: var(--muted);
 line-height: 1.5;
}

/* ---------- Footer ---------- */

footer {
 border-top: 1px solid var(--border);
 padding: 32px max(24px, 5vw);
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 12px;
}

.footer-logo {
 font-family: var(--serif);
 font-size: 0.95rem;
 font-weight: 700;
 color: var(--parchment);
}

 .footer-logo span {
  color: var(--bronze);
 }

.footer-links {
 display: flex;
 flex-wrap: wrap;
 gap: 18px;
 font-size: 0.8rem;
}

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

  .footer-links a:hover {
   color: var(--parchment);
  }

.footer-copy {
 font-size: 0.8rem;
 color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
 .nav-links {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  align-items: flex-start;
  padding: 20px max(24px, 5vw) 28px;
  gap: 18px;
  display: none;
 }

 .nav-toggle {
  display: flex;
  order: 2;
 }

 .nav-cta {
  order: 1;
 }

 .nav-toggle-checkbox:checked ~ .nav-links {
  display: flex;
 }
}

@media (max-width: 560px) {
 .hero h1 {
  font-size: 2.1rem;
 }
}

@media (prefers-reduced-motion: reduce) {
 * {
  transition: none !important;
  animation: none !important;
 }
}

/* ---------- Statistik-Seite ---------- */

.viz-wide {
 max-width: 960px;
}

.viz-range-filter {
 display: flex;
 gap: 8px;
 margin-bottom: 28px;
}

.viz-range-option {
 padding: 8px 16px;
 border-radius: 8px;
 border: 1px solid var(--border);
 color: var(--muted);
 font-size: 0.85rem;
 font-weight: 600;
}

 .viz-range-option:hover {
  border-color: var(--steel);
  color: var(--parchment);
 }

 .viz-range-option.is-active {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
 }

.stat-tiles {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 2px;
 background: var(--border);
 border: 1px solid var(--border);
 border-radius: 12px;
 overflow: hidden;
 margin-bottom: 28px;
}

.stat-tile {
 background: var(--surface);
 padding: 22px 24px;
}

.stat-tile-label {
 font-family: var(--mono);
 font-size: 0.72rem;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: var(--muted);
 margin-bottom: 10px;
}

.stat-tile-value {
 font-family: var(--serif);
 font-size: 2rem;
 font-weight: 700;
 color: var(--parchment);
 line-height: 1.1;
}

.stat-tile-value-text {
 font-size: 1.3rem;
 word-break: break-all;
}

.stat-tile-sub {
 font-size: 0.8rem;
 color: var(--muted);
 margin-top: 6px;
}

.viz-card {
 position: relative;
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: 12px;
 padding: 16px;
}

.viz-svg {
 width: 100%;
 height: auto;
 display: block;
 font-family: var(--sans);
}

.viz-tooltip {
 position: absolute;
 min-width: 160px;
 background: var(--ink);
 border: 1px solid var(--border);
 border-radius: 8px;
 padding: 10px 12px;
 pointer-events: none;
 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
 z-index: 10;
}

.viz-tooltip-title {
 font-family: var(--mono);
 font-size: 0.75rem;
 color: var(--muted);
 margin-bottom: 6px;
}

.viz-tooltip-row {
 display: flex;
 align-items: center;
 gap: 8px;
 font-size: 0.82rem;
 padding: 2px 0;
}

.viz-tooltip-key {
 width: 10px;
 height: 2px;
 border-radius: 1px;
 flex-shrink: 0;
}

.viz-tooltip-name {
 color: var(--parchment);
 flex: 1;
}

.viz-tooltip-value {
 color: var(--parchment);
 font-variant-numeric: tabular-nums;
}

.viz-legend {
 display: flex;
 flex-wrap: wrap;
 gap: 16px;
 margin-top: 18px;
}

.viz-legend-item {
 display: flex;
 align-items: center;
 gap: 8px;
 font-size: 0.82rem;
 color: var(--muted);
}

.viz-legend-key {
 width: 14px;
 height: 2px;
 border-radius: 1px;
}

.viz-table-details {
 margin-top: 28px;
}

 .viz-table-details summary {
  cursor: pointer;
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
 }

.viz-table-wrap {
 overflow-x: auto;
 border: 1px solid var(--border);
 border-radius: 8px;
}

.viz-table {
 width: 100%;
 border-collapse: collapse;
 font-size: 0.82rem;
 white-space: nowrap;
}

 .viz-table th,
 .viz-table td {
  padding: 8px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
 }

  .viz-table th:first-child,
  .viz-table td:first-child {
   text-align: left;
   font-variant-numeric: normal;
  }

 .viz-table thead th {
  color: var(--muted);
  font-weight: 600;
  background: var(--surface2);
 }

.viz-footnote {
 font-size: 0.78rem;
 color: var(--muted);
 margin-top: 20px;
 line-height: 1.6;
}

/* ---------- Statistik: Login / Abmelden ---------- */

.statistik-logout {
 position: absolute;
 top: 120px;
 right: max(24px, 5vw);
}

.login-section {
 max-width: 360px;
}

.login-form {
 display: flex;
 flex-direction: column;
 gap: 12px;
}

.login-label {
 font-size: 0.85rem;
 font-weight: 600;
 color: var(--muted);
}

.login-input {
 padding: 12px 14px;
 border-radius: 8px;
 border: 1px solid var(--border);
 background: var(--surface);
 color: var(--parchment);
 font-size: 0.95rem;
}

 .login-input:focus {
  outline: none;
  border-color: var(--steel);
 }

.login-error {
 color: #e66767;
 font-size: 0.85rem;
}

.login-submit {
 margin-top: 8px;
 align-self: flex-start;
}
