/* =========================================================
   3faces — Landingpage
   Farbwelt & Typo gespiegelt aus der Flutter-App
   (Creme/Gelb/Tinte, Patrick Hand + Nunito, Sketch-Look)
   ========================================================= */

:root {
  --cream: #fdf8ec;
  --cream-2: #f6efdc;
  --yellow: #f7e08e;
  --yellow-deep: #f0cf5e;
  --ink: #2b2b2b;
  --ink-soft: #6b6b6b;
  --happy: #7cb342;
  --neutral: #ffb300;
  --sad: #8d6e63;
  /* aus dem Logo */
  --sage: #7c9070;
  --tan: #d8c09a;
  --slate-blue: #5b7ca0;

  --radius: 18px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --maxw: 1120px;

  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-hand); font-weight: 400; line-height: 1.1; letter-spacing: .3px; }

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

/* Papier-Körnung */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-size: 1.15rem;
  padding: 12px 26px; border: 2px solid var(--ink); border-radius: 999px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--cream); }

/* ============ NAVBAR ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(253, 248, 236, .8);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid transparent;
  transition: border-color .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled { border-color: var(--ink); box-shadow: 0 2px 0 rgba(43,43,43,.06); padding-top: 10px; padding-bottom: 10px; }
.nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__logo { width: 34px; height: 34px; }
.nav__name { font-family: var(--font-hand); font-size: 1.6rem; }
.nav__links { display: flex; gap: 26px; font-weight: 700; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--ink); transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { font-size: 1rem; padding: 9px 20px; }

@media (max-width: 760px) { .nav__links { display: none; } }

/* ============ HERO ============ */
.hero { position: relative; padding: 150px clamp(16px, 5vw, 48px) 80px; overflow: hidden; }
.hero__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0;
  animation: float 14s ease-in-out infinite;
}
.hero__blob--1 { width: 460px; height: 460px; background: var(--yellow); top: -120px; right: -120px; }
.hero__blob--2 { width: 380px; height: 380px; background: var(--sage); bottom: -160px; left: -140px; opacity: .3; animation-delay: -7s; }

.hero__copy { position: relative; z-index: 1; }
.tag {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .4px;
  background: var(--cream-2); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.tag--green { background: var(--happy); color: #fff; border-color: var(--ink); }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 20px; }
.hl { position: relative; display: inline-block; }
.hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 6px; height: 38%;
  background: var(--yellow); z-index: -1; transform: rotate(-1.2deg);
  border-radius: 4px;
}
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 28px; }

.hero__faces { display: flex; gap: 14px; margin-bottom: 32px; }
.face {
  width: 64px; height: 64px; font-size: 30px; line-height: 1;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.face:hover { transform: translateY(-6px) rotate(-4deg); }
.face.active { background: var(--yellow); transform: translateY(-8px) scale(1.08); box-shadow: 5px 7px 0 var(--ink); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  border: 2px solid var(--ink); border-radius: 14px; padding: 10px 18px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .68rem; opacity: .8; }
.store strong { font-size: 1.02rem; font-family: var(--font-hand); font-weight: 400; }
.store--web { background: var(--yellow); color: var(--ink); }
.hero__note { font-size: .8rem; color: var(--ink-soft); font-style: italic; }

/* Telefon-Mockup */
.hero__phone { position: relative; z-index: 1; display: grid; place-items: center; }
.phone {
  position: relative; width: 280px; height: 560px; background: var(--ink);
  border-radius: 42px; padding: 14px; box-shadow: 12px 16px 0 rgba(43,43,43,.18);
  animation: bob 6s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: var(--ink); border-radius: 0 0 14px 14px; z-index: 2; }
.phone__screen {
  width: 100%; height: 100%; background: var(--cream); border-radius: 30px;
  padding: 40px 18px 20px; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
}
.app-card {
  background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 16px;
  padding: 18px 16px; text-align: center;
}
.app-card__q { font-family: var(--font-hand); font-size: 1.35rem; margin-bottom: 14px; }
.app-card__faces { display: flex; justify-content: center; gap: 12px; }
.af { width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; background: var(--cream); border: 1.5px solid var(--ink); border-radius: 50%; }
.af--happy { background: var(--cream); animation: pop 4s ease-in-out infinite; }
.app-pixels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 4px; }
.app-pixels span { aspect-ratio: 1; border-radius: 5px; border: 1.2px solid rgba(43,43,43,.35); }
.app-pill {
  margin-top: auto; align-self: center; font-family: var(--font-hand); font-size: 1.05rem;
  background: var(--cream); border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 20px;
}

/* ============ LINIEN / STORY ============ */
.lines {
  max-width: var(--maxw); margin: 40px auto; padding: 60px clamp(16px,5vw,48px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.lines__svg svg { width: 100%; height: auto; }
.ln { stroke-width: 16; stroke-linecap: round; fill: none; }
.ln--ink { stroke: var(--ink); }
.ln--green { stroke: var(--sage); }
.ln--tan { stroke: var(--tan); }
.ln--blue { stroke: var(--slate-blue); }
/* Draw-in beim Sichtbarwerden */
.lines__svg .ln { stroke-dasharray: 320; stroke-dashoffset: 320; }
.lines__svg.in .ln { animation: draw 1.4s ease forwards; }
.lines__svg.in .ln--green, .lines__svg.in .ln--tan, .lines__svg.in .ln--blue { animation-delay: 1.1s; animation-duration: .5s; }
.lines__copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.lines__copy p { color: var(--ink-soft); font-size: 1.1rem; }

/* ============ ABSCHNITTE ALLGEMEIN ============ */
.section__title { text-align: center; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.section__sub { text-align: center; color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 48px; }

.sketch {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.sketch:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }

/* ============ STEPS ============ */
.steps, .features { max-width: var(--maxw); margin: 0 auto; padding: 80px clamp(16px,5vw,48px); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; padding: 34px 26px; text-align: center; }
.step:nth-child(2) { transform: rotate(-1deg); }
.step:nth-child(3) { transform: rotate(.8deg); }
.step__num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-hand); font-size: 1.3rem;
}
.step__emoji { font-size: 3rem; margin-bottom: 14px; }
.step h3 { font-size: 1.7rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* ============ FEATURES ============ */
.features { background: linear-gradient(180deg, transparent, var(--cream-2) 40%, transparent); }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 28px 24px; }
.feature__icon { font-size: 2.4rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.5rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); }

/* ============ COACH ============ */
.coach { max-width: var(--maxw); margin: 0 auto; padding: 40px clamp(16px,5vw,48px) 80px; }
.coach__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 48px; background: var(--cream-2);
}
.coach__copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0 14px; }
.coach__copy p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 18px; }
.coach__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.coach__list li { position: relative; padding-left: 30px; font-weight: 600; }
.coach__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--happy); font-weight: 800; }
.coach__bubble { display: grid; place-items: center; }
.bubble {
  position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 20px 20px 20px 4px;
  padding: 24px; font-size: 1.15rem; font-family: var(--font-hand); box-shadow: var(--shadow);
  animation: bob 7s ease-in-out infinite;
}

/* ============ CTA ============ */
.cta { padding: 60px clamp(16px,5vw,48px) 100px; }
.cta__inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 28px;
  padding: 56px 32px; box-shadow: var(--shadow);
}
.cta__logo { width: 70px; height: 70px; margin-bottom: 12px; }
.cta__inner h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.cta__inner p { font-size: 1.15rem; color: var(--ink); margin-bottom: 28px; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink); color: var(--cream); text-align: center;
  padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-hand); font-size: 1.6rem; }
.footer__logo { width: 32px; height: 32px; filter: brightness(0) invert(1) opacity(.9); }
.footer__tagline { font-family: var(--font-hand); font-size: 1.2rem; opacity: .85; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; font-weight: 700; }
.footer__links a { opacity: .85; transition: opacity .2s; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__copy { font-size: .85rem; opacity: .6; margin-top: 8px; }

/* ============ SCROLL-REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============ KEYFRAMES ============ */
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20px, 26px) scale(1.06); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pop { 0%,90%,100% { transform: scale(1); } 45% { transform: scale(1.18); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__phone { order: -1; }
  .lines, .coach__inner { grid-template-columns: 1fr; }
  .steps__grid, .features__grid { grid-template-columns: 1fr; }
  .coach__inner { padding: 32px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 120px; }
  .step:nth-child(n) { transform: none; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .lines__svg .ln { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
