/* ==========================================================================
   idlewise.de — Farbwelt „Fundstück"
   Papier (hell) / Tiefsee (dunkel), Bernstein-Funke, Space Grotesk.
   Statisch, self-contained, kein Tracking.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("spacegrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #f6f1e7;
  --surface: #fcf8f0;
  --surface-2: #efe8d9;
  --ink: #322e27;
  --muted: #6b6455;
  --outline: #dfd7c4;
  /* Eis-Türkis statt Tannengrün (Polarlicht-Welt, 09.07.2026) */
  --lagune: #2a7a94;
  --lagune-deep: #1d5568;
  --on-lagune: #ffffff;
  --spark: #9a6b22;
  --spark-bright: #d99a3d;
  --koralle: #ae5a4b;
  --farn: #587b4c;
  --shadow: 0 24px 60px -24px rgba(50, 46, 39, 0.28);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a2226;
    --surface: #212b30;
    --surface-2: #283439;
    --ink: #e6e4de;
    --muted: #a9b4b2;
    --outline: #3a474d;
    --lagune: #7fdcef;
    --lagune-deep: #a8ecf7;
    --on-lagune: #0f2b28;
    --spark: #f2c57c;
    --spark-bright: #f2c57c;
    --koralle: #efa093;
    --farn: #9ccb8f;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark, .step-no {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

a { color: var(--lagune); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--spark-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------- header */
header {
  padding: 22px 0;
}
header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { display: block; }
header nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
}
header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
header nav a:hover { color: var(--ink); }

/* ----------------------------------------------------------------- hero */
.hero {
  padding: 56px 0 84px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--spark);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--lagune);
}
.hero .sub {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 34px;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.play-badge img {
  height: 62px;
  width: auto;
  display: block;
}
.play-note {
  font-size: 0.92rem;
  color: var(--muted);
}
.play-note strong { color: var(--spark); font-weight: 600; }
.trust {
  margin-top: 30px;
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}
.trust span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust svg { flex: none; }

/* Die lebende Notification — das Herzstück der Seite */
.phone {
  position: relative;
  padding: 26px 0;
}
.noti-stack {
  position: relative;
  min-height: 220px;
}

/* Kalender-Visual: zeigt konkret, WARUM die Notification gerade kommt -
   ein echter Tages-Ausschnitt mit zwei Terminen und der Lücke dazwischen. */
.cal-strip {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}
.cal-strip-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 10px;
}
.cal-strip-track {
  display: flex;
  align-items: stretch;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  gap: 2px;
}
.cal-event {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
  min-width: 0;
}
.cal-event-time {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  color: var(--muted);
}
.cal-event-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-gap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background:
    repeating-linear-gradient(-55deg,
      transparent 0 9px,
      color-mix(in srgb, var(--spark) 22%, transparent) 9px 11px);
}
.cal-gap span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--spark);
  background: var(--surface);
  padding: 3px 8px;
  border-radius: 999px;
}
.noti {
  position: absolute;
  inset: 0 0 auto 0;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 18px;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  animation: noti-cycle 15s ease-in-out infinite;
}
.noti:nth-child(2) { animation-delay: 5s; }
.noti:nth-child(3) { animation-delay: 10s; }
/* Sanfterer Wechsel (Lenny 09.07.2026: "Übergang ist ziemlich schnell") -
   Ein- und Ausblenden dauern jetzt je ~1,2s statt ~0,5s. */
@keyframes noti-cycle {
  0%      { opacity: 0; transform: translateY(12px) scale(0.99); }
  8%, 26% { opacity: 1; transform: translateY(0) scale(1); }
  34%, 100% { opacity: 0; transform: translateY(-8px) scale(0.99); }
}
@media (prefers-reduced-motion: reduce) {
  .noti { opacity: 0; }
  .noti:first-child { opacity: 1; transform: none; }
}
.noti-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.noti-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 560;
  font-size: 1.12rem;
  margin-bottom: 4px;
}
.noti-text {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 16px;
}
.noti-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Echte Chip-Optik wie die Knöpfe in der App (idleChipColors/FilterChip):
   Pillenform, "Mach ich jetzt" gefüllt hervorgehoben, Rest nur umrandet. */
.chip {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  color: var(--ink);
  white-space: nowrap;
}
.chip-primary {
  border-color: transparent;
  background: color-mix(in srgb, var(--lagune) 18%, var(--surface));
  color: var(--lagune);
}

/* ------------------------------------------------------------- sections */
section { padding: 74px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--outline); }
.section-head {
  max-width: 40rem;
  margin-bottom: 48px;
}
.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin: 10px 0 14px;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
}
section.alt .step { background: var(--bg); }
.step-img {
  display: block;
  width: calc(100% + 52px);
  max-width: none;
  margin: -28px -26px 18px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: color-mix(in srgb, var(--lagune) 7%, var(--surface-2));
}
section.alt .step-img { background: color-mix(in srgb, var(--lagune) 7%, var(--bg)); }
.step-no {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lagune) 14%, transparent);
  color: var(--lagune);
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.22rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.99rem; }
.step p code {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92em;
  background: color-mix(in srgb, var(--spark) 14%, transparent);
  color: var(--spark);
  padding: 1px 7px;
  border-radius: 7px;
}

/* Passt-Filter-Visual */
.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.fit-visual {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
section.alt .fit-visual { background: var(--bg); }
.fit-visual .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--outline);
  font-size: 0.98rem;
}
.fit-visual .row:last-child { border-bottom: 0; }
.fit-visual .row .dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fit-visual .row .t { flex: 1; min-width: 0; }
.fit-visual .row .t small { display: block; color: var(--muted); }
.fit-visual .verdict {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  flex: none;
}
.row.passt .verdict { color: var(--farn); }
.row.zulang { opacity: 0.5; }
.row.zulang .verdict { color: var(--koralle); }
.fit-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 10px 0 16px; }
.fit-copy p { color: var(--muted); margin-bottom: 14px; }
.fit-copy p strong { color: var(--ink); }

/* Prinzipien */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.principle {
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.principle svg { flex: none; margin-top: 3px; }
.principle h3 { font-size: 1.12rem; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 0.97rem; }

/* FAQ */
.faq-list {
  /* Volle Breite wie .steps/.principles - vorher schmaler (42rem), dadurch
     wirkte die FAQ inkonsistent zum Rest der Seite (Lenny 09.07.2026). */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 2px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.2rem;
  color: var(--lagune);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  color: var(--muted);
  font-size: 0.97rem;
  padding-bottom: 18px;
}
/* Kontakt: sieht aus wie ein echtes Formular, ist aber komplett serverlos -
   oeffnet beim Absenden nur das Mail-Programm (mailto:) statt an einen
   Formular-Dienst zu senden. Passt zu "keine eigenen Server". */
.contact-block {
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 30px 32px;
  max-width: 30rem;
  box-shadow: var(--shadow);
}
section.alt .contact-block { background: var(--bg); }
.contact-block h3 { font-size: 1.18rem; margin-bottom: 8px; }
.contact-block > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 10px 13px;
  resize: vertical;
}
section.alt .contact-form input,
section.alt .contact-form textarea { background: var(--surface); }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--spark-bright);
  outline-offset: 1px;
}
.contact-form button {
  width: 100%;
  font: inherit;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--on-lagune);
  background: var(--lagune);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  text-align: center;
}
.contact-form button:focus-visible {
  outline: 3px solid var(--spark-bright);
  outline-offset: 3px;
}
.contact-fallback {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
.contact-fallback a { font-weight: 600; }
/* Bot-Falle: fuer Menschen unsichtbar (nicht display:none - manche Bots
   ignorieren das gezielt), aber weiterhin im DOM/Tab-Fluss ausgeschlossen. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-status {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--farn);
  min-height: 1.2em;
}
.contact-status.is-error { color: var(--koralle); }

/* Download-Band */
.dl {
  text-align: center;
  padding: 90px 0;
}
.dl .spark-big { margin: 0 auto 26px; }
.dl h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 14px; }
.dl p { color: var(--muted); margin-bottom: 34px; font-size: 1.1rem; }
.dl .cta-row { justify-content: center; }

/* ---------------------------------------------------------------- footer */
footer {
  border-top: 1px solid var(--outline);
  padding: 38px 0 46px;
  font-size: 0.92rem;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  gap: 14px 30px;
  flex-wrap: wrap;
  align-items: center;
}
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
.vadermae {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.vadermae:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------ legal (sub pages) */
.legal { padding: 40px 0 90px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 24px 0 10px; }
.legal .stand { color: var(--muted); font-size: 0.92rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal strong { color: var(--ink); }
.hinweis {
  background: color-mix(in srgb, var(--spark) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--spark) 35%, transparent);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--ink);
  margin-bottom: 30px;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 64px; }
  .steps { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; gap: 40px; }
  .principles { grid-template-columns: 1fr; }
  header nav { display: none; }
  section { padding: 56px 0; }
  /* Auf schmalen Handybreiten brauchen Text + Chip-Zeile in den Beispiel-
     Notifications mehr Platz (mehr Zeilenumbrueche) als am Desktop - sonst
     ragt die Karte ueber das Kalender-Beispiel darunter (Lenny 09.07.2026,
     Chrome mobil). */
  .noti-stack { min-height: 300px; }
}
@media (max-width: 420px) {
  .noti-stack { min-height: 330px; }
}
