/* Poopy Timer: dieselben Farben wie lib/theme.dart (KawaiiPalette). */

@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo2-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo2-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fff6dc;
  --card: #ffffff;
  --ink: #6b3f1d;
  /* Blasser als ink, aber ueber 4,5:1 auf Creme, Weiss und Pink. */
  --muted: #85552f;
  --line: #4a2a12;
  --shadow: #4a2a12;
  --pink: #ffd9e3;
  --mint: #d5f5e3;
  --lavender: #e8ddff;
  --sky: #d6eaff;
  --peach: #ffe3cc;
  /* Knoepfe sind Gegenstaende und bleiben in beiden Modi gleich, wie in der App. */
  --button: #6ccb6e;
  --button-shadow: #3e9a42;
  --button-line: #4a2a12;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1512;
    --card: #2b2219;
    --ink: #f2e7d4;
    --muted: #c9b79e;
    --line: #8a7057;
    --shadow: #120e0b;
    --pink: #2a1e22;
    --mint: #1c2620;
    --lavender: #221e2a;
    --sky: #1b2228;
    --peach: #2a2119;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Baloo 2", ui-rounded, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Die Pastellkreise aus der App, fest hinter allem. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 6% 4%, var(--pink) 0 150px, transparent 151px),
    radial-gradient(circle at 96% 16%, var(--mint) 0 170px, transparent 171px),
    radial-gradient(circle at -2% 58%, var(--lavender) 0 140px, transparent 141px),
    radial-gradient(circle at 102% 66%, var(--sky) 0 160px, transparent 161px),
    radial-gradient(circle at 50% 106%, var(--peach) 0 190px, transparent 191px);
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Kopf */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 2px solid var(--line);
}

.lang {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Startseite */

.hero {
  text-align: center;
  padding: 28px 0 8px;
}

.hero .icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  border: 3px solid var(--line);
  box-shadow: 0 6px 0 var(--shadow);
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 9vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tagline {
  margin: 6px 0 0;
  font-size: clamp(1.25rem, 4.6vw, 1.55rem);
  font-weight: 700;
}

.lead {
  max-width: 34em;
  margin: 12px auto 0;
  color: var(--muted);
}

.cta {
  margin: 26px 0 0;
}

.cta small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Wie KawaiiButton: dicker Rand, Schatten nach unten, weisse Schrift mit Kontur. */
.button {
  display: inline-block;
  padding: 12px 28px 10px;
  border: 3px solid var(--button-line);
  border-radius: 22px;
  background: var(--button);
  box-shadow: 0 6px 0 var(--button-shadow);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow:
    -2px -2px 0 var(--button-line), 0 -2px 0 var(--button-line),
    2px -2px 0 var(--button-line), 2px 0 0 var(--button-line),
    2px 2px 0 var(--button-line), 0 2px 0 var(--button-line),
    -2px 2px 0 var(--button-line), -2px 0 0 var(--button-line);
  transition: transform 80ms, box-shadow 80ms;
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--button-shadow);
}

.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

/* Screenshots: auf dem Handy seitlich wischen, am Rechner nebeneinander. */
.shots {
  display: flex;
  gap: 16px;
  margin: 40px -16px 0;
  padding: 4px 16px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.shots figure {
  flex: 0 0 min(64vw, 228px);
  margin: 0;
  scroll-snap-align: center;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 6px 0 var(--shadow);
}

.shots figcaption {
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
}

@media (min-width: 740px) {
  .shots {
    justify-content: center;
    overflow: visible;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

/* Karten */

.card {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--shadow);
  padding: 18px 20px;
}

.card h2,
.card h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
}

.card p + p {
  margin-top: 8px;
}

.note {
  margin: 34px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Textseiten */

.page {
  padding: 22px 0 8px;
}

.page h1 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 7vw, 2.6rem);
}

.page .stand {
  margin: 0 0 22px;
  color: var(--muted);
}

.prose {
  display: grid;
  gap: 18px;
}

.prose h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.prose p,
.prose ul {
  margin: 0;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 10px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

.prose address {
  font-style: normal;
}

/* Fragen und Antworten */

.faq-title {
  margin: 34px 0 14px;
  font-size: 1.35rem;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 48px 12px 18px;
  position: relative;
  font-weight: 700;
  line-height: 1.35;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 1.5rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0;
  padding: 0 18px 16px;
}

/* Fuss */

.foot {
  margin-top: 48px;
  padding: 22px 0 36px;
  border-top: 2px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 700;
  font-size: 0.98rem;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
  .shots {
    scroll-behavior: auto;
  }
}
