/* ============================================================
   LORIVQARA LAB – MAIN STYLESHEET
   CSS Custom Properties > Resets > Layout > Components > Sections
   ============================================================ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f4f9;
  --color-surface-dark: #0f1623;
  --color-text-primary: #12192a;
  --color-text-secondary: #4a5568;
  --color-text-muted: #8896a9;
  --color-text-inverse: #f0f5ff;

  --color-accent-teal: #0fbfb5;
  --color-accent-teal-light: #d4f7f5;
  --color-accent-teal-dark: #0a9991;
  --color-accent-indigo: #5b6ef5;
  --color-accent-indigo-light: #eaecfe;
  --color-accent-indigo-dark: #3d50d9;

  --color-border: #dde3ed;
  --color-border-subtle: #eef1f6;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(15, 25, 50, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 25, 50, 0.08), 0 1px 3px rgba(15, 25, 50, 0.05);
  --shadow-md: 0 4px 20px rgba(15, 25, 50, 0.10), 0 2px 8px rgba(15, 25, 50, 0.06);
  --shadow-lg: 0 8px 40px rgba(15, 25, 50, 0.12), 0 4px 16px rgba(15, 25, 50, 0.07);
  --shadow-xl: 0 16px 64px rgba(15, 25, 50, 0.14), 0 8px 32px rgba(15, 25, 50, 0.08);
  --shadow-teal: 0 4px 24px rgba(15, 191, 181, 0.25), 0 2px 8px rgba(15, 191, 181, 0.15);
  --shadow-indigo: 0 4px 24px rgba(91, 110, 245, 0.22), 0 2px 8px rgba(91, 110, 245, 0.12);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast), opacity var(--transition-fast); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
address { font-style: normal; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.u-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.u-text-center { text-align: center; }
.u-hidden { display: none !important; }

/* ── TYPOGRAPHY SCALE ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw + 0.5rem, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

p { color: var(--color-text-secondary); }

/* ── LABEL COMPONENT ─────────────────────────────────────────── */
.c-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-teal-dark);
  background: var(--color-accent-teal-light);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.c-label--light {
  color: var(--color-accent-indigo);
  background: var(--color-accent-indigo-light);
}

/* ── BUTTON COMPONENTS ───────────────────────────────────────── */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), color var(--transition-base);
  min-height: 44px;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.c-btn--primary {
  background: var(--color-accent-teal);
  color: #ffffff;
  box-shadow: var(--shadow-teal);
}
.c-btn--primary:hover {
  background: var(--color-accent-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(15, 191, 181, 0.35), 0 4px 12px rgba(15, 191, 181, 0.2);
}
.c-btn--primary:active { transform: translateY(0); }

.c-btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}
.c-btn--ghost:hover {
  border-color: var(--color-accent-teal);
  color: var(--color-accent-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.c-btn--outline {
  background: transparent;
  color: var(--color-accent-teal-dark);
  border-color: var(--color-accent-teal);
}
.c-btn--outline:hover {
  background: var(--color-accent-teal);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.c-btn--sm {
  font-size: 0.82rem;
  padding: 0.55rem 1.2rem;
  min-height: 38px;
}

/* ── NAVIGATION ──────────────────────────────────────────────── */
.c-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(248, 249, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.c-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.c-nav__logo img {
  height: 36px;
  width: auto;
}

.c-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.c-nav__link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.c-nav__link:hover { color: var(--color-text-primary); background: var(--color-surface-alt); }
.c-nav__link.is-active { color: var(--color-accent-teal-dark); }

.c-nav__link--cta {
  background: var(--color-accent-teal);
  color: #ffffff !important;
  padding: var(--space-2) var(--space-5);
  box-shadow: var(--shadow-teal);
}
.c-nav__link--cta:hover {
  background: var(--color-accent-teal-dark) !important;
  box-shadow: 0 6px 20px rgba(15, 191, 181, 0.3);
}

.c-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.c-nav__hamburger:hover { background: var(--color-surface-alt); }
.c-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Nav border scroll effect */
.c-nav__border {
  height: 1px;
  background: var(--color-border);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.c-nav.is-scrolled .c-nav__border { transform: scaleX(1); }

/* ── MOBILE TAB BAR ──────────────────────────────────────────── */
.c-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(15, 25, 50, 0.08);
}

.c-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--color-text-muted);
  font-size: 0.62rem;
  font-family: var(--font-heading);
  font-weight: 500;
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  min-height: 48px;
  text-decoration: none;
}
.c-tabbar__item i { font-size: 1.1rem; }
.c-tabbar__item:hover,
.c-tabbar__item.is-active {
  color: var(--color-accent-teal-dark);
  background: var(--color-accent-teal-light);
}

/* ── WAVE DIVIDERS ───────────────────────────────────────────── */
.c-wave {
  line-height: 0;
  overflow: hidden;
  margin-bottom: -2px;
}
.c-wave svg { display: block; width: 100%; }
.c-wave--hero-to-about { background: var(--color-bg); }
.c-wave--tracker-to-platform { background: var(--color-surface-alt); }
.c-wave--leistungen-to-faq { background: var(--color-surface); }

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

/* ── HERO SECTION ────────────────────────────────────────────── */
.s-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1623 0%, #172236 50%, #0f1e30 100%);
  padding-top: 70px;
}

.s-hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.s-hero__bg-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 191, 181, 0.18) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}
.s-hero__bg-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 110, 245, 0.15) 0%, transparent 70%);
  bottom: -100px;
  left: 10%;
}

.s-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: var(--space-16);
  padding-bottom: var(--space-20);
}

.s-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-teal);
  background: rgba(15, 191, 181, 0.12);
  border: 1px solid rgba(15, 191, 181, 0.25);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.s-hero__headline {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}
.s-hero__headline-accent {
  color: var(--color-accent-teal);
  position: relative;
}

.s-hero__subline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(240, 245, 255, 0.72);
  max-width: 540px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.s-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.s-hero__actions .c-btn--ghost {
  color: rgba(240, 245, 255, 0.85);
  border-color: rgba(240, 245, 255, 0.25);
}
.s-hero__actions .c-btn--ghost:hover {
  color: #fff;
  border-color: rgba(240, 245, 255, 0.6);
}

.s-hero__indicators {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.s-hero__indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: rgba(240, 245, 255, 0.55);
}
.s-hero__indicator i { color: var(--color-accent-teal); font-size: 0.9rem; }

.s-hero__visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.s-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(15, 191, 181, 0.15);
  animation: heroRingPulse 4s ease-in-out infinite;
}
.s-hero__ring--outer { width: 380px; height: 380px; animation-delay: 0s; }
.s-hero__ring--mid { width: 280px; height: 280px; animation-delay: 0.8s; border-color: rgba(91, 110, 245, 0.18); }
.s-hero__ring--inner { width: 180px; height: 180px; animation-delay: 1.6s; border-color: rgba(15, 191, 181, 0.25); }

@keyframes heroRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 0.4; }
}

.s-hero__pulse {
  width: 160px;
  color: var(--color-accent-teal);
  opacity: 0.7;
  animation: pulseLine 2.5s ease-in-out infinite;
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── ABOUT SECTION ───────────────────────────────────────────── */
.s-about {
  background: var(--color-surface-alt);
  padding: var(--space-24) 0;
}

.s-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.s-about__heading {
  margin-bottom: var(--space-5);
}

.s-about__body {
  margin-bottom: var(--space-5);
  font-size: 1.02rem;
}

.s-about__body:last-of-type { margin-bottom: var(--space-8); }

.s-about__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.c-feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-border-subtle);
}
.c-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.c-feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
}

.c-feature-card--teal .c-feature-card__icon {
  background: var(--color-accent-teal-light);
  color: var(--color-accent-teal-dark);
}
.c-feature-card--indigo .c-feature-card__icon {
  background: var(--color-accent-indigo-light);
  color: var(--color-accent-indigo);
}

.c-feature-card h3 { margin-bottom: var(--space-2); font-size: 1.05rem; }
.c-feature-card p { font-size: 0.92rem; }

/* ── TRACKER SECTION ─────────────────────────────────────────── */
.s-tracker {
  background: var(--color-bg);
  padding: var(--space-24) 0 var(--space-20);
}

.s-tracker__header { margin-bottom: var(--space-12); }
.s-tracker__header h2 { margin-bottom: var(--space-4); }
.s-tracker__intro {
  font-size: 1.05rem;
  max-width: 580px;
  margin-inline: auto;
}

.s-tracker__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.c-tracker-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.c-tracker-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-teal);
}

.c-tracker-card__icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-accent-teal-light), var(--color-accent-indigo-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-accent-teal-dark);
  margin-bottom: var(--space-5);
  transition: background var(--transition-base);
}
.c-tracker-card:hover .c-tracker-card__icon-wrap {
  background: linear-gradient(135deg, var(--color-accent-teal), var(--color-accent-indigo));
  color: #fff;
}

.c-tracker-card__title { margin-bottom: var(--space-3); }
.c-tracker-card__text { font-size: 0.93rem; }

.s-tracker__cta { padding-top: var(--space-4); }

/* ── PLATFORM SECTION ────────────────────────────────────────── */
.s-plattform {
  background: var(--color-surface-alt);
  padding: var(--space-24) 0;
}

.s-plattform__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.s-plattform__heading { margin-bottom: var(--space-5); }
.s-plattform p { margin-bottom: var(--space-5); font-size: 1.02rem; }

.s-plattform__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.s-plattform__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.s-plattform__list i {
  color: var(--color-accent-teal);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Dashboard Mockup */
.c-dashboard-mockup {
  background: var(--color-surface-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.05);
}

.c-dashboard-mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-4) var(--space-5);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.c-dashboard-mockup__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.c-dashboard-mockup__bar span:nth-child(1) { background: #ff5f56; }
.c-dashboard-mockup__bar span:nth-child(2) { background: #febc2e; }
.c-dashboard-mockup__bar span:nth-child(3) { background: #28c840; }

.c-dashboard-mockup__content {
  padding: var(--space-6) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.c-dashboard-mockup__metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.c-dashboard-mockup__label {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: rgba(240, 245, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.c-dashboard-mockup__bar-chart {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.c-dashboard-mockup__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-teal), var(--color-accent-teal-dark));
  border-radius: var(--radius-full);
  transition: width 1s ease;
}
.c-dashboard-mockup__bar-fill--indigo {
  background: linear-gradient(90deg, var(--color-accent-indigo), var(--color-accent-indigo-dark));
}
.c-dashboard-mockup__bar-fill--teal {
  background: linear-gradient(90deg, var(--color-accent-teal), var(--color-accent-indigo));
}

.c-dashboard-mockup__val {
  font-size: 0.7rem;
  color: rgba(240, 245, 255, 0.4);
  font-family: var(--font-heading);
}

.c-dashboard-mockup__wave {
  margin-top: var(--space-2);
  opacity: 0.8;
}

/* ── LEISTUNGEN / CHECKLIST SECTION ──────────────────────────── */
.s-leistungen {
  background: var(--color-surface);
  padding: var(--space-24) 0;
}

.s-leistungen__header { margin-bottom: var(--space-12); }
.s-leistungen__header h2 { margin-bottom: var(--space-4); }
.s-leistungen__intro {
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}

.s-leistungen__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.s-leistungen__col {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border-subtle);
  transition: box-shadow var(--transition-base);
}
.s-leistungen__col:hover { box-shadow: var(--shadow-md); }

.s-leistungen__col-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.s-leistungen__col-title i { color: var(--color-accent-teal); }

.c-checklist { display: flex; flex-direction: column; gap: var(--space-3); }

.c-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.c-checklist__icon { flex-shrink: 0; color: var(--color-accent-teal); font-size: 1rem; margin-top: 2px; }
.c-checklist__icon--neutral { color: var(--color-accent-indigo); }

/* ── FAQ SECTION ─────────────────────────────────────────────── */
.s-faq {
  background: var(--color-surface-alt);
  padding: var(--space-24) 0;
}

.s-faq__header { margin-bottom: var(--space-12); }
.s-faq__header h2 { margin-bottom: var(--space-4); }

.s-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.c-faq-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
}
.c-faq-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent-teal); }

.c-faq-card__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  gap: var(--space-4);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.c-faq-card__icon {
  flex-shrink: 0;
  color: var(--color-accent-teal);
  font-size: 0.85rem;
  transition: transform var(--transition-base);
}

.c-faq-card.is-active .c-faq-card__icon { transform: rotate(180deg); }

.c-faq-card__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.c-faq-card__answer p {
  padding: 0 var(--space-6) var(--space-6);
  font-size: 0.92rem;
  line-height: 1.7;
}
.c-faq-card.is-active .c-faq-card__answer { max-height: 300px; }

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.s-kontakt {
  background: var(--color-bg);
  padding: var(--space-24) 0;
}

.s-kontakt__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.s-kontakt__heading { margin-bottom: var(--space-5); }
.s-kontakt p { margin-bottom: var(--space-6); }

.s-kontakt__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.s-kontakt__detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.93rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}
.s-kontakt__detail-item i { color: var(--color-accent-teal); font-size: 1rem; width: 20px; }
a.s-kontakt__detail-item:hover { color: var(--color-accent-teal-dark); }

.s-kontakt__map { border-radius: var(--radius-lg); overflow: hidden; }

/* Chat Form */
.c-chat-form {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
}

.c-chat-form__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, var(--color-surface-dark), #1a2540);
  color: var(--color-text-inverse);
}

.c-chat-form__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.c-chat-form__header strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--color-text-inverse);
}
.c-chat-form__header span {
  font-size: 0.78rem;
  color: rgba(240,245,255,0.55);
}

.c-chat-form__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.c-chat-bubble {
  max-width: 85%;
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-5);
  font-size: 0.92rem;
}

.c-chat-bubble--company {
  background: var(--color-surface-alt);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) var(--radius-sm);
  align-self: flex-start;
}
.c-chat-bubble--company p { color: var(--color-text-secondary); font-size: 0.88rem; margin: 0; }

.c-chat-bubble--user {
  align-self: flex-end;
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: none;
}

.c-chat-bubble--user input,
.c-chat-bubble--user textarea {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  color: var(--color-text-primary);
  background: var(--color-bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  resize: none;
}
.c-chat-bubble--user input:focus,
.c-chat-bubble--user textarea:focus {
  outline: none;
  border-color: var(--color-accent-teal);
  box-shadow: 0 0 0 3px rgba(15, 191, 181, 0.12);
}

.c-chat-form__privacy {
  padding-top: var(--space-2);
}

.c-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.c-checkbox input { display: none; }

.c-checkbox__mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  flex-shrink: 0;
  margin-top: 1px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-checkbox input:checked + .c-checkbox__mark {
  background: var(--color-accent-teal);
  border-color: var(--color-accent-teal);
}
.c-checkbox input:checked + .c-checkbox__mark::after {
  content: '';
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.c-checkbox a { color: var(--color-accent-teal-dark); text-decoration: underline; }

.c-chat-form__send {
  margin-top: var(--space-2);
  width: 100%;
  justify-content: center;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.c-footer {
  background: var(--color-surface-dark);
  color: var(--color-text-inverse);
}

.c-footer__top {
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.c-footer__top-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
}

.c-footer__brand img { margin-bottom: var(--space-4); filter: brightness(0) invert(1) opacity(0.85); }
.c-footer__brand p { font-size: 0.88rem; color: rgba(240,245,255,0.45); line-height: 1.65; }

.c-footer__links-group h4,
.c-footer__contact-group h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,245,255,0.4);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
}

.c-footer__links-group ul { display: flex; flex-direction: column; gap: var(--space-2); }
.c-footer__links-group a {
  font-size: 0.88rem;
  color: rgba(240,245,255,0.6);
  transition: color var(--transition-fast);
}
.c-footer__links-group a:hover { color: var(--color-accent-teal); }

.c-footer__contact-group address { display: flex; flex-direction: column; gap: var(--space-3); }
.c-footer__contact-group p { font-size: 0.88rem; color: rgba(240,245,255,0.6); }
.c-footer__contact-group a {
  font-size: 0.88rem;
  color: rgba(240,245,255,0.6);
  transition: color var(--transition-fast);
}
.c-footer__contact-group a:hover { color: var(--color-accent-teal); }

.c-footer__bottom {
  padding: var(--space-6) 0;
}

.c-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.c-footer__bottom p { font-size: 0.82rem; color: rgba(240,245,255,0.35); }
.c-footer__disclaimer {
  font-size: 0.78rem !important;
  color: rgba(240,245,255,0.25) !important;
  max-width: 500px;
  text-align: right;
  line-height: 1.5;
}

/* ── COOKIE CONSENT ──────────────────────────────────────────── */
.c-cookie-trigger {
  position: fixed;
  bottom: var(--space-5);
  left: var(--space-5);
  z-index: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.c-cookie-trigger:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent-teal);
  box-shadow: var(--shadow-md);
}
.c-cookie-trigger i { color: var(--color-accent-teal); }
.c-cookie-trigger.is-pulsing {
  animation: cookiePulse 2s ease-in-out 3;
}
@keyframes cookiePulse {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: 0 0 0 6px rgba(15, 191, 181, 0.15), var(--shadow-sm); }
}

.c-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.c-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 35, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.c-cookie-modal__panel {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.c-cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
}
.c-cookie-modal__header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-primary);
}
.c-cookie-modal__header h3 i { color: var(--color-accent-teal); }

.c-cookie-modal__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.c-cookie-modal__close:hover { background: var(--color-border); color: var(--color-text-primary); }

.c-cookie-modal__body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.c-cookie-modal__body > p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.c-cookie-modal__category {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.c-cookie-modal__cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.c-cookie-modal__cat-header strong { font-size: 0.9rem; color: var(--color-text-primary); display: block; margin-bottom: 2px; }
.c-cookie-modal__cat-header p { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; }

.c-cookie-modal__always-on {
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent-teal-dark);
  background: var(--color-accent-teal-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.c-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.c-toggle input { opacity: 0; width: 0; height: 0; }
.c-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}
.c-toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-base);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.c-toggle input:checked + .c-toggle__slider { background: var(--color-accent-teal); }
.c-toggle input:checked + .c-toggle__slider::before { transform: translateX(20px); }

.c-cookie-modal__footer {
  padding: var(--space-4) var(--space-6) var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── LEGAL PAGES BASE ────────────────────────────────────────── */
.s-legal-page {
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.s-legal-hero {
  background: linear-gradient(135deg, var(--color-surface-dark) 0%, #1a2540 100%);
  padding: var(--space-16) 0 var(--space-12);
  color: var(--color-text-inverse);
}

.s-legal-hero h1 {
  color: var(--color-text-inverse);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: var(--space-3);
}
.s-legal-hero p { color: rgba(240,245,255,0.55); font-size: 0.92rem; }

.s-legal-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-12);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-top: var(--space-10);
  padding-bottom: var(--space-16);
  align-items: start;
}

.c-legal-sidebar {
  position: sticky;
  top: 90px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.c-legal-sidebar__title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
}

.c-legal-sidebar__nav { display: flex; flex-direction: column; gap: var(--space-1); }
.c-legal-sidebar__link {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  line-height: 1.4;
}
.c-legal-sidebar__link:hover { color: var(--color-text-primary); background: var(--color-surface-alt); }
.c-legal-sidebar__link.is-active { color: var(--color-accent-teal-dark); background: var(--color-accent-teal-light); font-weight: 500; }

/* Mobile TOC Dropdown */
.c-legal-toc-mobile {
  display: none;
  margin-bottom: var(--space-8);
}
.c-legal-toc-mobile__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.c-legal-toc-mobile__toggle:hover { border-color: var(--color-accent-teal); }
.c-legal-toc-mobile__toggle i { transition: transform var(--transition-base); }
.c-legal-toc-mobile__toggle.is-open i { transform: rotate(180deg); }

.c-legal-toc-mobile__list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.c-legal-toc-mobile__list.is-open { max-height: 600px; }
.c-legal-toc-mobile__list a {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.c-legal-toc-mobile__list a:hover { color: var(--color-accent-teal-dark); background: var(--color-surface-alt); }

.c-legal-content { min-width: 0; }
.c-legal-content section { margin-bottom: var(--space-12); scroll-margin-top: 90px; }
.c-legal-content h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-accent-teal-light);
  color: var(--color-text-primary);
}
.c-legal-content h3 { font-size: 1.05rem; margin-bottom: var(--space-3); margin-top: var(--space-5); }
.c-legal-content p { font-size: 0.95rem; line-height: 1.75; margin-bottom: var(--space-4); color: var(--color-text-secondary); }
.c-legal-content ul { list-style: disc; padding-left: var(--space-6); margin-bottom: var(--space-4); }
.c-legal-content ul li { font-size: 0.95rem; color: var(--color-text-secondary); margin-bottom: var(--space-2); line-height: 1.65; }
.c-legal-content a { color: var(--color-accent-teal-dark); text-decoration: underline; }
.c-legal-content a:hover { color: var(--color-accent-teal); }
.c-legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
  font-size: 0.9rem;
}
.c-legal-content table th {
  background: var(--color-surface-alt);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.c-legal-content table td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  vertical-align: top;
}

/* ── THANKS PAGE ─────────────────────────────────────────────── */
.s-thanks {
  background: linear-gradient(135deg, var(--color-accent-teal-dark) 0%, var(--color-accent-indigo) 100%);
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.s-thanks__content { max-width: 560px; }
.s-thanks__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto var(--space-8);
}
.s-thanks h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-5);
}
.s-thanks p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.c-btn--thanks {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
}
.c-btn--thanks:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .c-nav__links { display: none; }
  .c-nav__hamburger { display: flex; }
  .c-tabbar { display: flex; }

  body { padding-bottom: 70px; }

  .s-hero__visual { display: none; }
  .s-about__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .s-plattform__layout { grid-template-columns: 1fr; gap: var(--space-10); }
  .s-kontakt__layout { grid-template-columns: 1fr; gap: var(--space-10); }
  .c-footer__top-inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }

  .s-legal-layout { grid-template-columns: 1fr; }
  .c-legal-sidebar { display: none; }
  .c-legal-toc-mobile { display: block; }
}

@media (max-width: 768px) {
  .s-tracker__grid { grid-template-columns: 1fr; }
  .s-leistungen__grid { grid-template-columns: 1fr; }
  .s-faq__grid { grid-template-columns: 1fr; }
  .c-footer__top-inner { grid-template-columns: 1fr; }
  .c-footer__bottom-inner { flex-direction: column; text-align: center; }
  .c-footer__disclaimer { text-align: center; }
  .s-hero__indicators { flex-direction: column; gap: var(--space-3); }
  .s-hero__actions { flex-direction: column; }
  .s-hero__actions .c-btn { justify-content: center; }
  .c-cookie-modal__footer { flex-direction: column; }
  .c-cookie-modal__footer .c-btn { width: 100%; justify-content: center; }
  .c-tabbar { padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
  .u-container { padding-inline: var(--space-4); }
  .s-hero__content { padding-top: var(--space-10); }
  .c-chat-form__body { padding: var(--space-4); }
  .s-about, .s-tracker, .s-plattform, .s-leistungen, .s-faq, .s-kontakt { padding-top: var(--space-16); padding-bottom: var(--space-16); }
}

/* ── PRINT ───────────────────────────────────────────────────── */
@media print {
  .c-nav, .c-tabbar, .c-cookie-trigger, .c-cookie-modal { display: none; }
  body { padding-bottom: 0; }
}