:root {
  /* Surface -- one color for page, cards, buttons, inputs (intentional). */
  --color-bg: #EBEFF0;
  --color-bg-header: #EBEFF0;
  --color-surface: #EDF1F2;
  --color-surface-sunk: #E5EAEB;

  /* Neumorphic shadow pair -- defines the material, never change independently */
  --shadow-light: #FFFFFF;
  --shadow-dark: rgba(163, 177, 186, 0.55);

  --e-raised: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  --e-raised-sm: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
  --e-inset: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  --e-float: 8px 8px 20px var(--shadow-dark), -8px -8px 20px var(--shadow-light);

  /* Accent -- forest green, the only hue besides slate text */
  --color-accent: #2F8F5B;
  --color-accent-strong: #2A7A4C;
  --color-accent-soft: #A9CDB6;
  --color-accent-wash: #DCEAE0;
  --color-accent-contrast: #ffffff;

  /* Type */
  --color-text: #2D3748;
  --color-muted: #46526B;
  --color-dim: #6B7A90;

  --color-border: rgba(120, 140, 155, 0.18);

  --font: Nunito, "Nunito Sans", system-ui, sans-serif;

  --r-card: 20px;
  --r-ctl: 14px;
  --r-pill: 999px;
}

* {
  box-sizing: border-box;
}

/* [hidden] muss unabhaengig davon gewinnen, welches display: eine Klasse
   sonst auf demselben Element setzt (z. B. .audience-name { display: block }
   fuer den DE/EN-Sprachumschalter, siehe site.js) -- sonst zeigt die Seite
   ohne Sprachauswahl beide Sprachen gleichzeitig an. */
[hidden] {
  display: none !important;
}

html {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
}

body {
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  max-width: 76rem;
  margin: 0 auto;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--color-text);
}

.site-header .brand img {
  height: 32px;
  width: 32px;
  border-radius: var(--r-ctl);
  box-shadow: var(--e-raised-sm);
  padding: 4px;
  background: var(--color-surface);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.site-header nav a:hover {
  color: var(--color-accent);
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--color-surface);
  box-shadow: var(--e-inset);
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  font: 700 0.75rem/1 var(--font);
  color: var(--color-muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.lang-switch button:hover {
  color: var(--color-text);
}

.lang-switch button.active {
  background: var(--color-surface);
  box-shadow: var(--e-raised-sm);
  color: var(--color-accent);
}

main {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  text-align: left;
}

.hero-copy {
  flex: 1 1 480px;
  max-width: 640px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.hero .lead {
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 34rem;
  margin: 0 0 2.25rem;
}

.hero .lead strong {
  color: var(--color-text);
  font-weight: 700;
}

.hero-visual-wrap {
  flex: 0 0 auto;
  perspective: 1000px;
}

.hero-visual {
  display: block;
  width: min(320px, 34vw);
  height: auto;
  border-radius: var(--r-card);
  box-shadow: var(--e-raised);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-visual-wrap:hover .hero-visual {
  box-shadow: var(--e-float);
}

/* Kursor-Tilt: CSP dieser App (style-src 'self') blockiert jede Form von
   Inline-Style, auch per JS/CSSOM gesetzte -- daher feste, in JS per
   Klassenwechsel angesteuerte Zwischenschritte statt kontinuierlichem
   transform. Bei genug Schritten (5x5) wirkt es durch die Transition
   trotzdem fluessig. */
.hero-visual.tilt-xn2-yn2 { transform: rotateY(-12deg) rotateX(8deg); }
.hero-visual.tilt-xn2-yn1 { transform: rotateY(-12deg) rotateX(4deg); }
.hero-visual.tilt-xn2-y0  { transform: rotateY(-12deg) rotateX(0deg); }
.hero-visual.tilt-xn2-yp1 { transform: rotateY(-12deg) rotateX(-4deg); }
.hero-visual.tilt-xn2-yp2 { transform: rotateY(-12deg) rotateX(-8deg); }

.hero-visual.tilt-xn1-yn2 { transform: rotateY(-6deg) rotateX(8deg); }
.hero-visual.tilt-xn1-yn1 { transform: rotateY(-6deg) rotateX(4deg); }
.hero-visual.tilt-xn1-y0  { transform: rotateY(-6deg) rotateX(0deg); }
.hero-visual.tilt-xn1-yp1 { transform: rotateY(-6deg) rotateX(-4deg); }
.hero-visual.tilt-xn1-yp2 { transform: rotateY(-6deg) rotateX(-8deg); }

.hero-visual.tilt-x0-yn2 { transform: rotateY(0deg) rotateX(8deg); }
.hero-visual.tilt-x0-yn1 { transform: rotateY(0deg) rotateX(4deg); }
.hero-visual.tilt-x0-y0  { transform: rotateY(0deg) rotateX(0deg); }
.hero-visual.tilt-x0-yp1 { transform: rotateY(0deg) rotateX(-4deg); }
.hero-visual.tilt-x0-yp2 { transform: rotateY(0deg) rotateX(-8deg); }

.hero-visual.tilt-xp1-yn2 { transform: rotateY(6deg) rotateX(8deg); }
.hero-visual.tilt-xp1-yn1 { transform: rotateY(6deg) rotateX(4deg); }
.hero-visual.tilt-xp1-y0  { transform: rotateY(6deg) rotateX(0deg); }
.hero-visual.tilt-xp1-yp1 { transform: rotateY(6deg) rotateX(-4deg); }
.hero-visual.tilt-xp1-yp2 { transform: rotateY(6deg) rotateX(-8deg); }

.hero-visual.tilt-xp2-yn2 { transform: rotateY(12deg) rotateX(8deg); }
.hero-visual.tilt-xp2-yn1 { transform: rotateY(12deg) rotateX(4deg); }
.hero-visual.tilt-xp2-y0  { transform: rotateY(12deg) rotateX(0deg); }
.hero-visual.tilt-xp2-yp1 { transform: rotateY(12deg) rotateX(-4deg); }
.hero-visual.tilt-xp2-yp2 { transform: rotateY(12deg) rotateX(-8deg); }

@media (max-width: 840px) {
  .hero-inner {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
  }

  .hero-copy {
    flex: none;
    max-width: 100%;
    order: 2;
  }

  .hero-visual-wrap {
    order: 1;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    width: min(220px, 55vw);
  }
}

@media (max-width: 840px) {
  .hero h1 {
    letter-spacing: -0.01em;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.875rem 1.5rem;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--color-surface);
  color: var(--color-accent);
  box-shadow: var(--e-raised);
  font: 700 0.9375rem/1 var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 180ms ease, color 180ms ease;
}

.btn:hover {
  box-shadow: var(--e-float);
}

.btn:active {
  box-shadow: var(--e-inset);
}

.btn.secondary {
  color: var(--color-text);
  box-shadow: var(--e-raised-sm);
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.section p {
  color: var(--color-muted);
  font-size: 1.0625rem;
  max-width: 52ch;
}

.problem-section h2,
.problem-section p {
  margin-left: auto;
  margin-right: auto;
}

.problem-section {
  text-align: center;
}

.problem-section p {
  font-size: 1.1875rem;
  line-height: 1.55;
}

/* Icon-Glyphen (Phosphor, regular) -- immer aus der Bibliothek, nie
   freihaendig gezeichnet. */
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Vertrauens-Leiste direkt unter dem Hero -- ehrliche Fakten statt
   erfundener Social-Proof-Zahlen (noch keine belastbare Kundenbasis). */
.trust-strip {
  padding: 0 0 clamp(3rem, 7vw, 4.5rem);
}

.trust-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-surface);
  box-shadow: var(--e-raised);
  border-radius: var(--r-card);
  padding: 1.1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: box-shadow 220ms ease;
}

.trust-badge:hover {
  box-shadow: var(--e-float);
}

.trust-badge .icon {
  color: var(--color-accent);
  width: 24px;
  height: 24px;
}

/* "So funktioniert es" -- asymmetrisches Bento statt drei identischer
   Zeilen: Schritt 1 gross und featured, 2+3 daneben gestapelt. */
.how-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1.25rem;
}

.how-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  box-shadow: var(--e-raised-sm);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: box-shadow 260ms ease;
}

.how-card:hover {
  box-shadow: var(--e-float);
}

.how-card-featured {
  grid-row: 1 / 3;
  justify-content: center;
}

.how-card-body {
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.how-card-featured .how-card-body {
  padding: 2.5rem 2rem;
  align-items: center;
  text-align: center;
}

.how-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-ctl);
  background: var(--color-accent-wash);
  box-shadow: var(--e-raised-sm);
  margin-bottom: 1rem;
}

.how-card-featured .how-card-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--r-card);
}

.how-card-icon .icon {
  color: var(--color-accent);
  width: 28px;
  height: 28px;
}

.how-card-featured .how-card-icon .icon {
  width: 38px;
  height: 38px;
}

.how-card-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--color-surface-sunk);
  color: var(--color-accent-strong);
  font-weight: 800;
  font-size: 0.8125rem;
  margin-bottom: 0.6rem;
}

.how-card-body p {
  margin: 0;
  color: var(--color-muted);
}

.how-card-featured .how-card-body p {
  max-width: 26rem;
}

.how-card-body strong {
  color: var(--color-text);
}

@media (max-width: 780px) {
  .how-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .how-card-featured {
    grid-row: auto;
  }
}

/* "Was der Assistent kann" -- 2x2-Bento aus konkreten, bereits gebauten
   Faehigkeiten (kein Marketing-Wunschdenken). */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--color-surface);
  box-shadow: var(--e-raised-sm);
  border-radius: var(--r-card);
  padding: 1.5rem 1.6rem;
  transition: box-shadow 260ms ease;
}

.feature-card:hover {
  box-shadow: var(--e-float);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-ctl);
  background: var(--color-accent-wash);
  box-shadow: var(--e-raised-sm);
  margin-bottom: 0.9rem;
}

.feature-icon .icon {
  color: var(--color-accent);
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

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

/* "Fuer wen" -- eine featured Kachel (Handwerk) plus zwei kleinere statt
   drei optisch identischer Karten. */
.audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.25rem;
}

.audience li {
  background: var(--color-surface);
  box-shadow: var(--e-raised-sm);
  border-radius: var(--r-card);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 260ms ease;
}

.audience li:hover {
  box-shadow: var(--e-float);
}

.audience-featured {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
}

.audience-text {
  display: flex;
  flex-direction: column;
}

.audience:not(.audience-featured) li {
  text-align: center;
}

.audience-icon-well {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--r-ctl);
  background: var(--color-accent-wash);
  box-shadow: var(--e-raised-sm);
}

.audience-featured .audience-icon-well {
  width: 72px;
  height: 72px;
  border-radius: var(--r-card);
}

.audience-icon-well .icon {
  color: var(--color-accent);
  width: 26px;
  height: 26px;
}

.audience-featured .audience-icon-well .icon {
  width: 32px;
  height: 32px;
}

.audience li:not(.audience-featured) .audience-icon-well {
  margin: 0 auto 1rem;
}

.audience-name,
.audience-desc {
  display: block;
}

.audience-name {
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.audience-featured .audience-name {
  margin-top: 0;
}

.audience-desc {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--color-dim);
}

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

.contact-section {
  text-align: center;
}

.contact-section p {
  margin: 0 auto;
}

.legal h2 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.site-footer-brand img {
  border-radius: 6px;
}

.site-footer-claim {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  font-size: 0.875rem;
  color: var(--color-dim);
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.85rem;
}

.site-footer nav a {
  color: var(--color-dim);
  text-decoration: none;
}

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

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  box-shadow: var(--e-float);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Hero: läuft sofort beim Laden, braucht kein JS. */
@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero .lead,
.hero .btn {
  opacity: 0;
  animation: reveal-in 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
  animation-delay: 60ms;
}

.hero .lead {
  animation-delay: 200ms;
}

.hero .btn {
  animation-delay: 340ms;
}

/*
 * Restliche Abschnitte: erscheinen erst beim Reinscrollen (IntersectionObserver
 * in site.js). Ohne JS bleibt alles normal sichtbar -- die html.js-Klasse wird
 * per Inline-Script im <head> gesetzt, noch vor dem ersten Paint.
 */
html.js .reveal,
html.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal.in-view,
html.js .reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
html.js .reveal-stagger.in-view > *:nth-child(2) { transition-delay: 90ms; }
html.js .reveal-stagger.in-view > *:nth-child(3) { transition-delay: 180ms; }
html.js .reveal-stagger.in-view > *:nth-child(4) { transition-delay: 270ms; }
html.js .reveal-stagger.in-view > *:nth-child(5) { transition-delay: 360ms; }
html.js .reveal-stagger.in-view > *:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .hero h1,
  .hero .lead,
  .hero .btn {
    animation: none;
    opacity: 1;
  }

  html.js .reveal,
  html.js .reveal-stagger > * {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero-visual {
    transition: none;
    transform: none !important;
  }
}
