/* ==========================================================================
   DESIGN TOKENS — abgeleitet aus dem Maatlore-Logo (Feder + Wissensnetz)
   Navy = Struktur/Text, Gold = Akzent/CTA, Himmelblau = sekundärer Akzent
   ========================================================================== */
:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-2: #f0ede4;
  --text: #122132;
  --text-dim: rgba(18, 33, 50, 0.68);
  --text-faint: rgba(18, 33, 50, 0.45);
  --heading: #0b3557;

  --accent: #c9a24e;
  --accent-ink: #1a1206;
  --accent-text: #8a6a2b;
  --link: #1b5a90;

  --border: rgba(11, 53, 87, 0.14);
  --border-strong: rgba(11, 53, 87, 0.24);

  --radius: 8px;
  --radius-lg: 16px;
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --container: 1140px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1420;
  --surface: #101e30;
  --surface-2: #152742;
  --text: #edebe2;
  --text-dim: rgba(237, 235, 226, 0.7);
  --text-faint: rgba(237, 235, 226, 0.46);
  --heading: #f3f1e8;

  --accent: #d9b876;
  --accent-ink: #1a1206;
  --accent-text: #e7c98a;
  --link: #6fc3e0;

  --border: rgba(237, 235, 226, 0.1);
  --border-strong: rgba(237, 235, 226, 0.18);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

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

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

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

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(201, 162, 78, 0.08), transparent 45%),
    radial-gradient(circle at 100% 25%, rgba(27, 90, 144, 0.06), transparent 40%);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--heading);
}

h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: 1.12; font-weight: 700; }
h2.section-title { font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.2; }
h2.statement {
  font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  line-height: 1.28;
  font-weight: 700;
  color: var(--heading);
}
h3 { font-size: 1.08rem; font-weight: 600; font-family: var(--font-head); color: var(--heading); }

p { margin: 0 0 16px; color: var(--text-dim); }

.lede { font-size: 1.04rem; max-width: 46ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  margin: 0 0 18px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Centering utility for block-level headings/paragraphs: constrain width
   then auto-margin the box itself, let text-align handle line wrapping. */
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* The eyebrow badge is inline-flex (shrink-to-fit), so auto-margins alone
   won't center it — it must become a block-level box of its own width. */
.eyebrow.center {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
}

h2.section-title.center { max-width: 34ch; }

.hero-actions.center { justify-content: center; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--heading);
}

.brand-mark { width: 40px; height: auto; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}

.nav-links a:not(.btn) {
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--heading); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent-text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.08); }

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

.btn-sm { padding: 10px 18px; font-size: 0.86rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 20px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 68px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-trust {
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

/* chat mockup */
.chat-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 53, 87, 0.14);
}
[data-theme="dark"] .chat-mock { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }

.chat-mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.chat-mock-title {
  margin-left: 8px;
  font-size: 0.76rem;
  color: var(--text-faint);
}

.chat-mock-badge {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 10px;
}

.chat-mock-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  max-width: 88%;
}

.chat-user {
  align-self: flex-end;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-bot {
  align-self: flex-start;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.chat-bot p { margin: 0 0 8px; color: var(--text); font-size: 0.88rem; }

.chat-source {
  display: block;
  font-size: 0.72rem;
  color: var(--accent-text);
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: blink 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 88px 0;
}

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

/* reusable 3-up icon cards (used for hosting options) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

.card p { font-size: 0.9rem; margin-bottom: 0; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  border-top: 2px solid var(--border-strong);
}

.step-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-text);
  margin-bottom: 12px;
}

.step p { font-size: 0.9rem; }

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.step-icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   FEATURE ROWS (alternating text/visual, used in FUNKTIONEN)
   ========================================================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 72px;
}

.feature-row.reverse .feature-row-visual { order: -1; }

.feature-row-text h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-row-text p { font-size: 0.98rem; margin-bottom: 0; }

/* document mockup — highlighted answer + source */
.doc-mock,
.team-mock,
.filetype-flow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(11, 53, 87, 0.14);
}
[data-theme="dark"] .doc-mock,
[data-theme="dark"] .team-mock,
[data-theme="dark"] .filetype-flow {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.doc-mock { padding: 24px; }

.doc-mock-head {
  font-size: 0.76rem;
  color: var(--text-faint);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.doc-line {
  height: 10px;
  border-radius: 4px;
  background: var(--surface-2);
  margin-bottom: 10px;
}

.doc-highlight {
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.doc-mock .chat-source { margin-top: 4px; }

/* team / permissions mockup */
.team-mock {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.team-row .doc-line { margin-bottom: 0; height: 8px; }
.team-row .chip { margin-left: auto; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.chip-muted { opacity: 0.55; }

/* file type ingestion flow */
.filetype-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 36px 24px;
}

.filetype-chip {
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--heading);
}

.flow-arrow {
  color: var(--text-faint);
  font-size: 1.2rem;
  margin: 0 4px;
}

.flow-icon { width: 40px; height: auto; }

/* security */
.section-security {
  position: relative;
  z-index: 1;
  padding: 88px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.security-stack {
  max-width: 880px;
  margin: 0 auto;
}

.hosting-grid { margin-top: 56px; }

.security-stack .security-list { margin-top: 40px; }

.security-stack .hero-actions { margin-top: 32px; }

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text);
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.check {
  color: var(--accent-text);
  font-weight: 700;
  flex-shrink: 0;
}

/* zielgruppe tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.tag {
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* CTA */
.section-cta {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.cta-inner {
  max-width: 640px;
  text-align: center;
}
.cta-inner .lede { max-width: 46ch; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-text {
  font-size: 0.88rem;
  max-width: 40ch;
  margin-top: 14px;
}
.footer-text a { color: var(--link); }

.footer-impressum h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.footer-impressum p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-bottom a:hover { color: var(--link); }

/* ==========================================================================
   SCROLL-REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
  }
  .feature-row-visual { order: -1; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a.btn { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 56px; }
  .section, .section-security, .section-cta { padding: 64px 0; }
}
