/* LlamaCRM Webseite – Atelier-Farben wie in der App, mobil zuerst. */

:root {
  --bg: #F4F1EA;
  --surface: #FBFAF6;
  --fill: #ECE8DF;
  --line: #E2DDD2;
  --ink: #1D1B17;
  --ink2: #6B655B;
  --accent: #2F5D50;
  --accent-soft: #E1EAE5;
  --on-accent: #FBFAF6;
  --radius: 20px;
  --max: 640px;
  --tone-green: #2F5D50; --tone-green-soft: #E1EAE5;
  --tone-plum: #7A3E5C; --tone-plum-soft: #F1E1E8;
  --tone-ochre: #85561A; --tone-ochre-soft: #F3E6CF;
  color-scheme: light dark;
}

/* Dunkel: nach Gerät, außer der Besucher hat „Hell“ gewählt – oder ausdrücklich „Dunkel“ gewählt. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15140F;
    --surface: #1F1D18;
    --fill: #2A2822;
    --line: #34312A;
    --ink: #F1EDE4;
    --ink2: #A8A194;
    --accent: #8CC2AE;
    --accent-soft: #1F332C;
    --on-accent: #15140F;
    --tone-green: #8CC2AE; --tone-green-soft: #1F332C;
    --tone-plum: #E0A5C2; --tone-plum-soft: #3A2230;
    --tone-ochre: #E3B877; --tone-ochre-soft: #3A2D18;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
    --bg: #15140F;
    --surface: #1F1D18;
    --fill: #2A2822;
    --line: #34312A;
    --ink: #F1EDE4;
    --ink2: #A8A194;
    --accent: #8CC2AE;
    --accent-soft: #1F332C;
    --on-accent: #15140F;
    --tone-green: #8CC2AE; --tone-green-soft: #1F332C;
    --tone-plum: #E0A5C2; --tone-plum-soft: #3A2230;
    --tone-ochre: #E3B877; --tone-ochre-soft: #3A2D18;
    color-scheme: dark;
}

:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Kopfzeile */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand svg { width: 30px; height: 30px; fill: var(--accent); }
.brand b { font-weight: 600; }
.brand b span { color: var(--accent); font-weight: 400; }

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

.theme {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Mond im hellen Design, Sonne im dunklen */
.theme .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }

.lang {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
}

/* Einstieg */
.hero { text-align: center; padding-top: 24px; }

.hero .icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}

h1 {
  font-size: clamp(32px, 9vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 14px;
}

.lead {
  color: var(--ink2);
  font-size: 18px;
  margin: 0 auto 28px;
  max-width: 30em;
}

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

.store svg { width: 20px; height: 20px; fill: currentColor; }

.note {
  color: var(--ink2);
  font-size: 14px;
  margin: 12px 0 0;
}

/* Screenshots (dieselben Bilder wie im App Store): wischbar, Punkte darunter */
.gallery { padding-top: 32px; }

.shots {
  position: relative;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 16px;
  scroll-padding: 0 20px;
  margin: 0 auto;
  max-width: 1240px;
  scrollbar-width: none;
}

.shots::-webkit-scrollbar { display: none; }

.shots img {
  flex: 0 0 auto;
  width: min(72vw, 280px);
  height: auto;
  scroll-snap-align: center;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.10);
}

.dots { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }

.dots button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  transition: width 0.2s, background 0.2s;
}

.dots button[aria-current="true"]::before { width: 20px; background: var(--accent); }

/* Abschnittskopf (KI-Erfassung und Funktionen gleich aufgebaut): Kennzeile, Überschrift, Einleitung, darunter Karten */
.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow + h2 { margin-bottom: 8px; }
.intro { color: var(--ink2); margin: 0 0 18px; }

/* KI-Erfassung: Hauptfunktion, daher eine große Karte mit Beispiel */
.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
}

.bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--accent-soft);
  border-radius: 18px 18px 18px 6px;
  padding: 14px 16px;
  font-size: 16px;
}

.bubble svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; fill: var(--accent); }

.arrow {
  width: 44px;
  height: 44px;
  margin: 12px auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.results { list-style: none; margin: 0; padding: 0; }

.results li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.results li:first-child { border-top: 0; }

.av {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
}

.av.green { color: var(--tone-green); background: var(--tone-green-soft); }
.av.plum { color: var(--tone-plum); background: var(--tone-plum-soft); }
.av.ochre { color: var(--tone-ochre); background: var(--tone-ochre-soft); }

.results div { flex: 1; min-width: 0; }
.results b { display: block; font-weight: 600; font-size: 16px; }
.results small { display: block; color: var(--ink2); font-size: 14px; }

.badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: 2px;
}

.check { flex: 0 0 auto; width: 22px; height: 22px; fill: var(--accent); }

.demo .note { text-align: center; margin-top: 14px; }

/* Funktionen */
section { padding: 40px 0 0; }

h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

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

.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 64px;
  position: relative;
}

.features li::before {
  content: attr(data-icon);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.features b { display: block; font-weight: 600; margin-bottom: 2px; }
.features p { margin: 0; color: var(--ink2); font-size: 16px; }

/* Ab Tablet-Breite zwei Spalten, Symbol über dem Titel, damit der Text nicht zu schmal wird */
@media (min-width: 600px) {
  .features:not(.books) { grid-template-columns: 1fr 1fr; }
  .features:not(.books) li { padding: 18px; }
  .features:not(.books) li::before { position: static; margin-bottom: 12px; }
}

/* Bücher (Die Idee dahinter): immer eine Spalte, Autor unter dem Titel */
.books .by { display: block; font-size: 14px; color: var(--accent); margin-bottom: 4px; }
.idea .note { margin-top: 12px; }

/* Abschluss-Aufruf */
.cta {
  margin-top: 40px;
  padding: 32px 22px 26px;
  border-radius: 28px;
  text-align: center;
  background: var(--accent);
  color: var(--on-accent);
}

.cta img {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 17px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25), 0 6px 18px rgb(0 0 0 / 0.18);
}

.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0 auto 22px; max-width: 26em; opacity: 0.85; }
.cta .store { background: var(--on-accent); color: var(--accent); }
.cta .small { margin: 14px 0 0; font-size: 14px; opacity: 0.75; }

/* Textseiten (Datenschutz, Impressum, Support) */
.doc { padding-top: 8px; padding-bottom: 24px; }
.doc h1 { font-size: 34px; margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc h3 { font-size: 17px; margin: 20px 0 4px; }
.doc p, .doc li { color: var(--ink); }
.doc .meta { color: var(--ink2); font-size: 15px; margin: 0 0 8px; }
.doc ul { padding-left: 20px; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--ink2); }

/* Fußzeile */
footer {
  margin-top: 56px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: 15px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }
