/* nom – Landingpage. Schriften liegen lokal (keine Google-Server). */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fredoka-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --mist: #f6f3fa; /* Seitengrund, lavendelweiß wie Chub */
  --lilac: #ebe4f5; /* zweite Fläche, eingehende Nachrichten */
  --blush: #ffe5ed; /* warme Fläche */
  --plum: #23173a; /* Schrift */
  --muted: #6c6282;
  --pink: #fd648c; /* Logo-Pink, nur Akzent */
  --rose: #d6336b; /* Knöpfe und eigene Nachrichten, AA mit Weiß */
  --rose-dark: #b82a59;
  --white: #ffffff;

  --display: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--plum);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

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

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 50;
}
.skip:focus {
  left: 8px;
}

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--rose);
  background: var(--rose);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
}
.btn:active {
  transform: translateY(1px);
}
.btn--ghost {
  background: transparent;
  color: var(--rose);
}
.btn--ghost:hover {
  background: var(--blush);
  color: var(--rose-dark);
}
.btn--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* Kopfzeile */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--mist) 88%, transparent);
  backdrop-filter: blur(10px);
}
.topbar__logo img {
  height: 28px;
  width: auto;
}
.topbar__nav {
  display: none;
  gap: 26px;
  margin-left: auto;
}
.topbar__nav a {
  color: var(--plum);
  text-decoration: none;
  font-weight: 500;
}
.topbar__nav a:hover {
  color: var(--rose);
}
.topbar .btn {
  margin-left: auto;
}

/* Abschnitte */
main > section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--gutter);
}

/* Hero */
.hero {
  display: grid;
  gap: 48px;
  align-items: center;
}
main > section.hero {
  padding-top: clamp(24px, 5vw, 64px);
}
.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 13ch;
}
.hero__lead {
  margin-top: 22px;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__note {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 40px;
}
.hero__chub {
  position: absolute;
  left: -8px;
  bottom: -6px;
  width: 128px;
  z-index: 2;
  filter: drop-shadow(0 18px 24px rgba(35, 23, 58, 0.16));
}

/* Handy mit Chat */
.phone {
  position: relative;
  margin: 0;
  width: min(300px, calc(100% - 24px));
  min-height: 540px;
  padding: 18px 14px 22px;
  border-radius: 46px;
  background: var(--white);
  box-shadow:
    0 0 0 9px var(--plum),
    0 40px 70px -20px rgba(35, 23, 58, 0.45);
}
.phone__notch {
  width: 96px;
  height: 22px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: var(--plum);
}
.phone__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 12px;
  border-bottom: 1px solid var(--lilac);
}
.phone__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb35c, var(--pink));
  color: var(--white);
  font-family: var(--display);
  font-weight: 600;
}
.phone__name {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}
.phone__name small {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75rem;
}

.chat {
  list-style: none;
  margin: 0;
  padding: 16px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat__event {
  align-self: center;
  max-width: 92%;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.chat__event strong {
  color: var(--plum);
}
.chat__stamp {
  align-self: flex-end;
  font-size: 0.72rem;
  color: var(--muted);
}
.chat__typing {
  align-self: flex-end;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 20px 20px 6px 20px;
  background: var(--blush);
}
.chat__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  animation: dot 1s infinite ease-in-out;
}
.chat__typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat__typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* Ablauf: Schritte erscheinen nacheinander (JS setzt data-show) */
.chat[data-animated] > li {
  display: none;
}
.chat[data-animated] > li.is-on {
  display: block;
  animation: pop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.chat[data-animated] > li.chat__typing.is-on {
  display: inline-flex;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sprechblasen, überall gleich */
.bubble {
  max-width: 84%;
  padding: 10px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.bubble--in {
  align-self: flex-start;
  border-radius: 20px 20px 20px 6px;
  background: var(--lilac);
}
.bubble--out {
  align-self: flex-end;
  margin-left: auto;
  border-radius: 20px 20px 6px 20px;
  background: var(--rose);
  color: var(--white);
}
.bubble__link {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Kennst du das? */
.pain h2 {
  margin-bottom: 36px;
}
.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.note {
  display: grid;
  gap: 10px;
}
.note__time {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}
.note__msg {
  grid-row: 1;
  padding: 26px 18px 16px 62px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 30px -18px rgba(35, 23, 58, 0.45);
  font-weight: 600;
  position: relative;
}
.note__msg::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 9px;
  background: var(--plum)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 8.6 8.6 0 0 1-3.9-.9L3 20.5l1.5-4.6A8.4 8.4 0 0 1 12 3a8.4 8.4 0 0 1 9 8.5z'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}
.note__say {
  padding-left: 18px;
  color: var(--muted);
}

/* Funktionen */
.features h2 {
  margin-bottom: 20px;
}
.feature {
  display: grid;
  gap: 20px;
  padding: 36px 0;
}
.feature + .feature {
  border-top: 2px dashed var(--lilac);
}
.feature > img {
  width: 132px;
}
.feature__text p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 36rem;
}
.feature__demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: var(--white);
}
.rule p,
.plan p,
.inbox p {
  font-size: 0.95rem;
}
.rule__label {
  display: inline-block;
  min-width: 48px;
  font-family: var(--display);
  font-weight: 600;
  color: var(--rose);
}
.plan p span {
  display: inline-block;
  min-width: 82px;
  font-weight: 600;
}
.inbox p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}
.inbox em {
  font-style: normal;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--rose-dark);
}

/* Schritte (echte Reihenfolge, daher nummeriert) */
.steps__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.steps__head img {
  width: 120px;
  flex-shrink: 0;
}
.steps__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}
.steps__list li {
  counter-increment: step;
  position: relative;
  padding-left: 64px;
}
.steps__list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
}
.steps__list p {
  margin-top: 6px;
  color: var(--muted);
}

/* Kontrolle */
.control {
  display: grid;
  gap: 40px;
  align-items: center;
}
.control ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.control li {
  color: var(--muted);
}
.control li strong {
  color: var(--plum);
}
.fix {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 22px 24px;
  border-radius: 32px;
  background: var(--white);
}
.fix img {
  position: absolute;
  right: -10px;
  top: -78px;
  width: 104px;
}
.bubble--old {
  opacity: 0.55;
  text-decoration: line-through;
}
.fix__label {
  align-self: flex-end;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rose);
}

/* Branchen */
.trades h2 {
  max-width: 20ch;
}
.trades__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--lilac);
  background: var(--white);
  color: var(--plum);
  font: 500 1rem var(--text);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--pink);
}
.chip[aria-pressed='true'] {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
}
.trades__chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin-top: 26px;
  padding: 22px;
  border-radius: 28px;
  background: var(--white);
}

/* Beratung */
.advice {
  display: grid;
  gap: 24px;
  align-items: center;
}
.advice > img {
  width: 150px;
}
.advice > div {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.advice p {
  color: var(--muted);
  max-width: 34rem;
}
main > section.advice {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
  margin-top: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(24px, 4vw, 48px);
  border-radius: 40px;
  background: var(--blush);
  max-width: calc(var(--wide) - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
}

/* Fragen */
.faq h2 {
  margin-bottom: 24px;
}
.faq details {
  max-width: 46rem;
  border-bottom: 2px dashed var(--lilac);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--rose);
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
  max-width: 40rem;
}

/* Abschluss */
.final {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}
.final img {
  width: 200px;
}
.final h2 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}
.final p {
  color: var(--muted);
  margin-bottom: 10px;
}

/* Fußzeile */
.footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer img {
  height: 22px;
  width: auto;
}
.footer nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.footer a {
  color: var(--muted);
}

/* Früh-Zugang */
.signup {
  width: min(440px, calc(100% - 32px));
  padding: 28px 24px 24px;
  border: 0;
  border-radius: 30px;
  background: var(--white);
  color: var(--plum);
  box-shadow: 0 40px 80px -30px rgba(35, 23, 58, 0.5);
}
.signup::backdrop {
  background: rgba(35, 23, 58, 0.45);
}
.signup > img {
  width: 110px;
  margin: -6px auto 6px;
}
.signup h2 {
  font-size: 1.8rem;
  text-align: center;
}
.signup > p {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
}
.signup__close {
  position: absolute;
  right: 14px;
  top: 10px;
}
.signup__close button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--plum);
  font-size: 1.4rem;
  cursor: pointer;
}
.signup__form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.signup__form label {
  font-weight: 600;
  font-size: 0.95rem;
}
.signup__form input {
  height: 52px;
  padding: 0 16px;
  border: 2px solid var(--lilac);
  border-radius: 16px;
  font: 400 1rem var(--text);
  color: var(--plum);
}
.signup__form input:focus {
  border-color: var(--rose);
  outline: none;
}
.signup__msg:empty {
  display: none;
}
.signup__msg {
  font-size: 0.95rem;
}
.signup__msg[data-tone='ok'] {
  color: #2e7d32;
}
.signup__msg[data-tone='error'] {
  color: var(--rose-dark);
}
.signup__legal {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Rechtstexte */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 24px var(--gutter) 80px;
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 24px 0 24px;
}
.legal h2 {
  font-size: 1.35rem;
  margin: 32px 0 8px;
}
.legal p,
.legal li {
  color: var(--plum);
}
.legal p + p {
  margin-top: 10px;
}

/* Größere Bildschirme */
@media (min-width: 760px) {
  .topbar__nav {
    display: flex;
  }
  .topbar .btn {
    margin-left: 0;
  }
  .note {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
  }
  .note__say {
    padding-left: 0;
    font-size: 1.1rem;
  }
  .feature {
    grid-template-columns: 150px minmax(0, 1fr) minmax(0, 330px);
    align-items: center;
    gap: 36px;
  }
  .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps__head img {
    width: 150px;
  }
  .advice {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 40px;
  }
  main > section.advice {
    padding-left: clamp(28px, 5vw, 64px);
    padding-right: clamp(28px, 5vw, 64px);
  }
  .advice > img {
    width: 180px;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
  .hero__stage {
    padding: 8px 0 8px 120px;
  }
  .hero__chub {
    width: 220px;
    left: -10px;
    bottom: -24px;
  }
  .phone {
    width: 320px;
    min-height: 560px;
  }
  .control {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
