/* ═══════════════════════════════════════
   style.css — Xpolicy Consolidated Styles
   ═══════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --blue: #1074e7;
  --dark: #0f1117;
  --mid: #3a3a4a;
  --muted: #6b7280;
  --light: #f4f5f7;
  --white: #ffffff;
  --card-bg: #ffffff;
  --card-border: #e8eaed;
  --red: #e7110f;
}

/* ─── RESET ─── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0px;
  width: auto;
  max-width: 32vw;
  z-index: 110;
}

.nav-logo svg {
  display: block;
  height: auto;
  flex-shrink: 0;
}

.logo-text {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1074e7;
  letter-spacing: 0.2px;
  line-height: 1; /* ← explicit line-height on the text */
  white-space: nowrap;
}

.logo-x {
  color: #1a1a36;
  font-weight: 800;
}

/* ── Desktop nav-menu: just a flex row ── */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 32px;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-cta {
  display: flex;
  gap: 12px;
  margin-left: auto; /* pushes CTA to the far right */
}

/* ── Hamburger — hidden on desktop ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
  transform-origin: center;
}

/* ── Hamburger → X animation when open ── */
.nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  border: none;
  font-family: "DM Sans", sans-serif;
  position: relative;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #0560cc;
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(16, 116, 231, 0.35),
    0 0 40px rgba(16, 116, 231, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--card-border);
}

.btn-outline:hover {
  border-color: var(--dark);
  transform: translateY(-1px);
}

/* ── Arrow icon slide on hover ── */
.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-style: normal;
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* ─── SECTIONS ─── */
section {
  width: 100%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef3fa 0%, #f4f5f7 40%, #e8f0fc 100%);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(
      ellipse 60% 50% at 15% 25%,
      rgba(16, 116, 231, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 60% at 85% 75%,
      rgba(16, 116, 231, 0.09) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 55% 45% at 50% 10%,
      rgba(63, 137, 183, 0.08) 0%,
      transparent 65%
    );
  animation: meshDrift1 18s ease-in-out infinite alternate;
  will-change: transform;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(
      ellipse 45% 55% at 75% 20%,
      rgba(16, 116, 231, 0.07) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 65% 50% at 25% 80%,
      rgba(63, 137, 183, 0.1) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 60% 55%,
      rgba(16, 116, 231, 0.06) 0%,
      transparent 60%
    );
  animation: meshDrift2 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-h1 {
  font-family: "Inter", sans-serif;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--dark);
  margin-bottom: 0;
}

.hero-h1 .blue {
  color: var(--blue);
}

.hero-sub {
  margin-top: 28px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── PROBLEM STATEMENT ─── */
#problem {
  background: var(--white);
  padding: 100px 48px;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

#problem h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 48px;
}

#problem h2 .animated-word {
  color: var(--blue);
  display: inline-block;
}

.problem-left h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.problem-left h2 .animated-word {
  color: var(--blue);
  display: inline-block;
}

.problem-left p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.problem-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card {
  background: var(--light);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── VERTICAL TIMELINE (Problem Section) ─── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0;
}

/* Vertical connecting line */
.timeline::before {
  content: "";
  position: absolute;
  left: 31px; /* center of 64px marker */
  top: 32px; /* start at center of first marker */
  bottom: 32px; /* end at center of last marker */
  width: 3px;
  background: linear-gradient(to bottom, var(--blue), rgba(16, 116, 231, 0.25));
  border-radius: 2px;
  z-index: 0;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}

.timeline-step + .timeline-step {
  margin-top: 20px;
}

/* Large numbered circle */
.timeline-marker {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  z-index: 1;
  box-shadow:
    0 4px 16px rgba(16, 116, 231, 0.25),
    0 0 0 5px rgba(16, 116, 231, 0.08);
  flex-shrink: 0;
}

/* Card next to the marker */
.timeline-content {
  flex: 1;
  background: var(--light);
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid var(--card-border);
  transition: box-shadow 0.2s ease;
}

.timeline-content:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.timeline-content h4 {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.timeline-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.question-heading {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.question-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.q-item {
  background: var(--light);
  border-radius: 12px;
  padding: 16px;
}

.q-item .q-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.q-item p {
  font-size: 13px;
  color: var(--mid);
  font-style: italic;
  line-height: 1.4;
}

.q-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.q-tag {
  background: rgba(16, 116, 231, 0.1);
  color: var(--blue);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}

/* ─── FOR WHO ─── */
#forwho {
  background: var(--light);
  padding: 100px 48px;
  text-align: center;
}

#forwho h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--blue);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 40px;
}

.tab-switcher {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "DM Sans", sans-serif;
  color: var(--muted);
}

.tab-btn.active {
  background: var(--dark);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  text-align: left;
  border: 1px solid var(--card-border);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.feature-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── HOW IT WORKS ─── */
#howitworks {
  background: var(--white);
  padding: 100px 48px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

#howitworks h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 12px;
}

#howitworks .lead {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 64px;
  line-height: 1.7;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.step-row.reverse {
  direction: rtl;
}

.step-row.reverse > * {
  direction: ltr;
}

.step-info .step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step-info h3 {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.step-info p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.step-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.step-tag {
  background: var(--light);
  color: var(--mid);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Mock UI ── */
.mock-ui {
  background: var(--light);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--card-border);
}

.mock-topbar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-dot.red {
  background: #ff5f57;
}

.mock-dot.yellow {
  background: #ffbd2e;
}

.mock-dot.green {
  background: #28ca41;
}

.chat-bubble {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
  max-width: 90%;
}

.chat-bubble.ai {
  background: var(--blue);
  color: white;
}

.chat-bubble.user {
  background: white;
  color: var(--dark);
  margin-left: auto;
  border: 1px solid var(--card-border);
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--card-border);
  font-size: 13px;
}

.doc-row .doc-name {
  font-weight: 500;
}

.doc-row .doc-status {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.doc-status.ok {
  background: #dcfce7;
  color: #166534;
}

.doc-status.gap {
  background: #fef9c3;
  color: #713f12;
}

.policy-check {
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--card-border);
  font-size: 13px;
}

.policy-check .pname {
  font-weight: 600;
  margin-bottom: 4px;
}

.policy-check .pcert {
  font-size: 12px;
  color: #166534;
  font-weight: 600;
}

.policy-check .perr {
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
}

/* ── Mock UI — Bubble Pop Animations ── */
.mock-ui > *:not(.mock-topbar) {
  opacity: 0;
  transform: translateY(20px) scale(0.85);
}

.mock-ui.in-view > *:not(.mock-topbar) {
  animation: bubblePop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mock-ui.in-view > :nth-child(2) {
  animation-delay: 0.25s;
}

.mock-ui.in-view > :nth-child(3) {
  animation-delay: 0.65s;
}

.mock-ui.in-view > :nth-child(4) {
  animation-delay: 1.05s;
}

.mock-ui.in-view > :nth-child(5) {
  animation-delay: 1.45s;
}

/* ── Typing indicator (optional, shown briefly before each AI bubble) ── */
.typing-indicator {
  display: inline-flex;
  gap: 4px;
  padding: 10px 16px;
  background: var(--blue);
  border-radius: 12px;
  margin-bottom: 8px;
  max-width: 60px;
  opacity: 0;
}

.mock-ui.in-view .typing-indicator {
  animation: bubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: typingDots 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

/* ─── QUOTE ─── */
#quote {
  background: var(--blue);
  padding: 80px 48px;
  text-align: center;
}

#quote blockquote {
  font-family: "Inter", sans-serif;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  color: white;
  max-width: 760px;
  margin: 0 auto 16px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

#quote cite {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-style: normal;
}

/* ─── REAL-TIME ─── */
#realtime {
  background: var(--light);
  padding: 100px 48px;
  text-align: center;
}

#realtime h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

#realtime .lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.col-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  text-align: left;
  border: 1px solid var(--card-border);
}

/* ── Subgrid: alle Kinder-Elemente auf gleicher Höhe ── */
.three-cols .col-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;          /* 3 Kinder: h3, p, .use-case */
}

.col-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.col-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.use-case {
  font-size: 13px;
  color: var(--mid);
  background: var(--light);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.5;
}

.use-case strong {
  font-weight: 700;
}

/* ─── BENTO GRID LAYOUT ─── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.bento-grid .col-card.featured {
  grid-column: 1 / -1;
  padding: 40px 44px;
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 60%);
  border: 1px solid rgba(16, 116, 231, 0.1);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative accent for the featured card */
.bento-grid .col-card.featured::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(16, 116, 231, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.featured-inner h3 {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.featured-inner p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.featured-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-icon-lg {
  font-size: 72px;
  line-height: 1;
  filter: grayscale(0.1);
  opacity: 0.9;
}

.featured-stat {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.featured-stat .stat-number {
  font-family: "Inter", sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 6px;
}

.featured-stat .stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ─── COMPANIES (Bento + extra whitespace) ─── */
#companies {
  background: var(--white);
  padding: 140px 48px;
  text-align: center;
}

#companies h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

#companies .lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 64px;
}

/* ─── AUDITORS (Bento + extra whitespace) ─── */
#auditors {
  background: var(--light);
  padding: 140px 48px;
  text-align: center;
}

#auditors h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

#auditors .lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 64px;
}

/* ─── TRUSTED ─── */
#trusted {
  background: #dde9f7;
  padding: 80px 48px;
  text-align: center;
}

#trusted h3 {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1e3a6e;
  margin-bottom: 40px;
}

.logo-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.logo-card {
  background: white;
  border-radius: 16px;
  padding: 20px 32px;
  min-width: 200px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.logo-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
  text-align: center;
  line-height: 1.4;
}

/* ─── CTA FOOTER ─── */
#cta {
  background: var(--dark);
  padding: 100px 48px;
  text-align: center;
}

#cta h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  color: white;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

#cta h2 span {
  color: var(--blue);
}

#cta p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  margin-bottom: 40px;
}

#cta .btn-primary {
  font-size: 16px;
  padding: 14px 32px;
}

footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 48px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-links button {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: white;
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  max-width: 1040px;
  margin: 0 auto;
  background: rgba(15, 17, 23, 0.96);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  padding: 22px 24px;
  display: none;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner.show {
  display: flex;
}

.cookie-copy {
  flex: 1 1 560px;
}

.cookie-copy h4 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}

.cookie-copy p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.cookie-copy a {
  color: white;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 23, 0.55);
  z-index: 320;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-panel {
  width: min(560px, 100%);
  background: white;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.cookie-panel h3 {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  margin-bottom: 10px;
}

.cookie-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.cookie-option {
  margin: 22px 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-option h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.cookie-option p {
  font-size: 13px;
  color: var(--muted);
}

.cookie-badge {
  flex-shrink: 0;
  background: rgba(16, 116, 231, 0.1);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.cookie-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Responsive Cookie-Styles */
@media (max-width: 768px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 18px;
  }
  .cookie-actions,
  .cookie-panel-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-actions .btn,
  .cookie-panel-actions .btn {
    flex: 1 1 180px;
    justify-content: center;
  }
}

/* ─── LEGAL PAGES ─── */
.legal-toc a {
  color: var(--blue);
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-anchor {
  scroll-margin-top: 96px;
}

/* ─── SVG LOGO FILLS ─── */
.st0 {
  fill: #3f89b7;
}

.st1 {
  fill: #1a1a36;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes meshDrift1 {
  0% {
    transform: translate(0%, 0%) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(4%, -3%) scale(1.05) rotate(0.5deg);
  }
  66% {
    transform: translate(-3%, 4%) scale(0.97) rotate(-0.5deg);
  }
  100% {
    transform: translate(2%, -2%) scale(1.02) rotate(0.3deg);
  }
}

@keyframes meshDrift2 {
  0% {
    transform: translate(0%, 0%) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(-5%, 3%) scale(1.04) rotate(-0.7deg);
  }
  66% {
    transform: translate(3%, -4%) scale(0.96) rotate(0.4deg);
  }
  100% {
    transform: translate(-2%, 1%) scale(1.03) rotate(-0.2deg);
  }
}

/* ── Chat Bubble Bounce Pop ── */
@keyframes bubblePop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.85);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px) scale(1.03);
  }
  75% {
    transform: translateY(2px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Typing dots animation ── */
@keyframes typingDots {
  0%,
  20% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
}

.hero-inner > * {
  animation: fadeUp 0.6s ease both;
}

.hero-inner > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-inner > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-inner > *:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-inner > *:nth-child(4) {
  animation-delay: 0.4s;
}

/* ═══════════════════════════════════════════
   Language Switcher – Pill Toggle
   ═══════════════════════════════════════════ */

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--light, #f4f5f7);
  border: 1px solid var(--card-border, #e2e4e9);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
  margin-left: 12px;
  user-select: none;
  flex-shrink: 0;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted, #7a7f8a);
  background: transparent;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.lang-option:hover:not(.active) {
  color: var(--dark, #1a1a36);
  background: rgba(63, 137, 183, 0.08);
}

.lang-option.active {
  color: #fff;
  background: var(--blue, #3f89b7);
  box-shadow: 0 2px 8px rgba(63, 137, 183, 0.25);
  cursor: default;
  pointer-events: none;
}

/* ─── Responsive: Mobile Anpassung ─── */
@media (max-width: 900px) {
  .lang-switch {
    margin-left: 0;
    margin-top: 12px;
    align-self: center;
  }

  .lang-option {
    font-size: 14px;
    padding: 8px 18px;
  }
}

/* ═══════════════════════════════════════════
     Legal Pages – aus datenschutz.html SVG extrahiert
     ═══════════════════════════════════════════ */

.legal-toc a {
  color: var(--blue);
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-anchor {
  scroll-margin-top: 96px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav {
    padding: 0 20px;
  }

  /* ═══ NEW FIX ═══ */
  body.menu-open nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
  }

  /* Show hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Mobile menu: full-screen overlay */
  .nav-menu {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);

    padding: 80px 24px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity 0.35s ease,
      transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
      visibility 0.35s ease;
    z-index: 105;
  }

  /* Fallback for browsers without backdrop-filter */
  @supports not (backdrop-filter: blur(1px)) {
    .nav-menu {
      background: rgba(255, 255, 255, 1);
    }
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu .nav-links {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .nav-menu .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
  }

  .nav-menu .nav-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin-left: 0;
  }

  .nav-menu .nav-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  body.menu-open {
    overflow: hidden;
  }

  .logo-text {
    font-size: 20px;
  }

  .container,
  #hero,
  #problem,
  #forwho,
  #howitworks,
  #quote,
  #realtime,
  #companies,
  #auditors,
  #trusted,
  #cta,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  #companies,
  #auditors {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .problem-grid,
  .step-row,
  .tab-content.active {
    grid-template-columns: 1fr;
  }

  .three-cols {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid .col-card.featured {
    padding: 28px;
  }

  .featured-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-visual {
    display: none;
  }

  .question-grid {
    grid-template-columns: 1fr;
  }

  .step-row.reverse {
    direction: ltr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-marker {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 17px;
  }

  .timeline::before {
    left: 25px; /* center of 52px marker */
    top: 26px;
    bottom: 26px;
  }

  .timeline-step {
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .container,
  #hero,
  #problem,
  #forwho,
  #howitworks,
  #quote,
  #realtime,
  #companies,
  #auditors,
  #trusted,
  #cta,
  footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  nav {
    padding: 0 14px;
  }

  .tab-switcher {
    display: flex;
    width: 100%;
    border-radius: 16px;
  }

  .tab-btn {
    flex: 1;
    padding: 10px 10px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
  }

  .logo-card {
    min-width: 0;
    width: 100%;
    padding: 16px;
  }

  .logo-card img {
    max-width: 100%;
    height: auto;
  }

  .timeline-marker {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 15px;
  }

  .timeline::before {
    left: 21px;
    top: 22px;
    bottom: 22px;
  }

  .timeline-content {
    padding: 16px 18px;
  }
}


/* ─── LEGAL SECTION BASE ─── */
.legal-section {
  background: var(--light);
  padding: 140px 48px 100px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  /* Zu den bestehenden Selektoren hinzufügen: */
  .container,
  #hero, #problem, #forwho, #howitworks, #quote,
  #realtime, #companies, #auditors, #trusted, #cta,
  footer,
  .legal-section {                /* ← NEU */
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 600px) {
  .container,
  #hero, #problem, #forwho, #howitworks, #quote,
  #realtime, #companies, #auditors, #trusted, #cta,
  footer,
  .legal-section {                /* ← NEU */
    padding-left: 14px;
    padding-right: 14px;
  }
}
