/* ==========================================================================
   Zenturis — Shared Stylesheet
   ========================================================================== */

:root {
  --bg: #0B1220;
  --bg-elevated: #0F1728;
  --surface: #141F35;
  --surface-hover: #182444;
  --border: #263352;
  --border-strong: #3A4C78;
  --text: #EAF0FB;
  --text-muted: #93A3C4;
  --text-faint: #5C6C8E;
  --accent-blue: #4C82F7;
  --accent-blue-bright: #6E9AFF;
  --accent-blue-dim: #1E2C52;
  --accent-green: #2FBE8F;
  --accent-green-dim: #143A2E;

  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max-width: 1180px;
  --radius: 3px;
}

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

html {
  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;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

::selection {
  background: var(--accent-blue);
  color: #fff;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---- background texture: faint ledger grid ---- */
.grid-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ==========================================================================
   Header
   ========================================================================== */

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

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

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo__mark {
  width: 9px;
  height: 9px;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-dim);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav__links {
  display: flex;
  gap: 32px;
}

.main-nav__links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav__links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav__links { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

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

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  padding: 8px 0 20px;
}

.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.mobile-nav a:last-child { border-bottom: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.93rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--accent-blue);
  color: #ffffff;
}
.btn--primary:hover { background: var(--accent-blue-bright); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-hover); border-color: var(--text-muted); }

.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Kicker / badges
   ========================================================================== */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-green);
  background: var(--accent-green-dim);
  border: 1px solid rgba(47, 190, 143, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 88px 0 100px;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero__eyebrow-row { margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  color: var(--text);
  max-width: 15ch;
}

.hero__subtitle {
  margin-top: 24px;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.65;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 44px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__meta-item strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}

.hero__meta-item span {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---- hero visual: live logbook panel ---- */

.log-panel {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius);
}

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-green);
}
.corner--tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner--tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner--bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner--br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.log-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.log-panel__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.log-panel__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-green);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(47,190,143,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(47,190,143,0); }
}

.log-panel__body {
  padding: 6px 0;
  min-height: 320px;
}

.log-entry {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: entryIn 0.5s ease forwards;
}

.log-entry:last-child { border-bottom: none; }

@keyframes entryIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.log-entry__time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
}

.log-entry__text {
  font-size: 0.87rem;
  color: var(--text);
}

.log-entry__text span {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.log-entry__module {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-blue-bright);
  background: var(--accent-blue-dim);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.log-panel__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section { padding: 96px 0; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
}

.section-head {
  max-width: 56ch;
  margin-bottom: 56px;
}

.section-head .kicker { margin-bottom: 18px; }

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--text);
}

.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Pain points
   ========================================================================== */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 860px) {
  .pain-grid { grid-template-columns: 1fr; }
}

.pain-card {
  background: var(--bg);
  padding: 36px 32px;
}

.pain-card__index {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
}

.pain-card h3 {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--text);
}

.pain-card p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ==========================================================================
   Sync / solution section
   ========================================================================== */

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

.sync-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 980px) {
  .sync-grid { grid-template-columns: 1fr; gap: 44px; }
}

.sync-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

.sync-list__item {
  display: flex;
  gap: 16px;
}

.sync-list__marker {
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: var(--radius);
}

.sync-list__item strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 4px;
}

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

/* ---- module flow diagram ---- */

.flow-diagram {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 40px 28px;
  position: relative;
}

.flow-hub {
  width: fit-content;
  margin: 0 auto 32px;
  padding: 14px 22px;
  border: 1px solid var(--accent-green);
  background: var(--accent-green-dim);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-radius: var(--radius);
}

.flow-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 520px) {
  .flow-nodes { grid-template-columns: repeat(2, 1fr); }
}

.flow-node {
  border: 1px solid var(--border-strong);
  padding: 14px 10px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: var(--radius);
}

/* ==========================================================================
   Modules (tabs)
   ========================================================================== */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: 0.94rem;
  padding: 12px 4px;
  margin-right: 28px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.tab-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent-blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tab-btn.is-active { color: var(--text); }
.tab-btn.is-active::after { transform: scaleX(1); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.module-card {
  position: relative;
  border: 1px solid var(--border);
  padding: 26px 22px;
  background: var(--bg-elevated);
}

.module-card .corner { width: 12px; height: 12px; border-width: 1.5px; }
.module-card.is-soon .corner { border-color: var(--text-faint); }

.module-card__code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-green);
  letter-spacing: 0.02em;
}

.module-card.is-soon .module-card__code { color: var(--text-faint); }

.module-card__icon {
  font-size: 1.5rem;
  margin-top: 16px;
}

.module-card h4 {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--text);
}

.module-card ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-card li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.module-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 1px;
  background: var(--text-faint);
}

.module-card__badge {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 9px;
  border-radius: 999px;
}

.module-card:not(.is-soon) .module-card__badge {
  background: var(--accent-green-dim);
  color: var(--accent-green);
}

.module-card.is-soon .module-card__badge {
  background: var(--surface);
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
}

/* ==========================================================================
   Trust / security section
   ========================================================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr; }
}

.trust-card {
  border: 1px solid var(--border);
  padding: 30px 26px;
  background: var(--bg-elevated);
}

.trust-card__mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-bright);
  font-size: 1rem;
  border-radius: var(--radius);
}

.trust-card h3 {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--text);
}

.trust-card p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 56px 0;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  max-width: 20ch;
}

.cta-band p {
  margin-top: 10px;
  color: var(--text-muted);
  max-width: 42ch;
}

/* ==========================================================================
   Lead form (Demo-Anfrage)
   ========================================================================== */
.cta-band__inner--form {
  align-items: flex-start;
}

.lead-form {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-form__row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lead-form__group {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select {
  width: 100%;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: 2px solid var(--accent-blue-bright);
  outline-offset: 1px;
  border-color: var(--accent-blue);
}

.lead-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.lead-form__checkbox input {
  margin-top: 3px;
  accent-color: var(--accent-blue);
}

.lead-form__msg {
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 1.2em;
}

.lead-form__msg.is-success { color: var(--accent-green); }
.lead-form__msg.is-error { color: #F76C6C; }

.lead-form__fallback {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 0;
}
.lead-form__fallback a { color: var(--accent-blue-bright); }

@media (max-width: 640px) {
  .lead-form { max-width: 100%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 56px 0 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-brand .logo { margin-bottom: 12px; }

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.86rem;
  max-width: 32ch;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 5px 0;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .footer-grid { flex-direction: column; }
  .footer-links { gap: 40px; }
}

/* ==========================================================================
   Legal pages (Impressum / Datenschutz / AGB)
   ========================================================================== */

.legal-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.legal-hero p {
  margin-top: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.legal-content {
  padding: 56px 0 100px;
  max-width: 76ch;
}

.legal-content h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content li {
  color: var(--text-muted);
  font-size: 0.96rem;
  padding-left: 16px;
  position: relative;
}

.legal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--text-faint);
}

.legal-content a { color: var(--accent-blue-bright); text-decoration: underline; text-underline-offset: 3px; }

.legal-content strong { color: var(--text); font-weight: 600; }

.placeholder {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.88em;
}

.legal-note {
  margin-top: 40px;
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 0.86rem;
  color: var(--text-faint);
}
