/* Fensterflora – Bald-verfügbar-Seite
   Farben als Tokens. Seit 24.09.2026 wie die App: Cappuccino-Wand, salbeigrüne
   Leisten, Creme-Karten, Terrakotta als Akzent. */

/* Baloo 2, selbst gehostet (SIL OFL 1.1) – siehe fonts/README.txt.
   Variable Datei, deshalb deckt ein Font-Face den ganzen Gewichtsbereich ab. */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/baloo2-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;
}

:root {
  --bg: #f4ecdd;
  --text: #3b382e;
  --muted: #6f6656;
  --line: #e0d3bd;

  /* Titelfläche in der Wandfarbe der App (Cappuccino). Text darauf ist dunkel (5,97:1). */
  --stage: #bfa086;
  --stage-light: #c9ad94;
  --stage-deep: #a98a70;
  --on-stage: #2e281f;
  /* Leisten wie in der App: dunkles Salbeigrün mit Creme (7,42:1) */
  --dock: #47563f;
  --dock-hover: #3c4a36;
  --on-dock: #fdf8ec;
  /* Karte auf der Titelfläche */
  --stage-card: #fdf8ec;
  --stage-card-muted: #6f6656;

  --accent: #d98c5f;
  --link: #436e49;
  /* Fokus-Rahmen: mindestens 3:1 gegen den Hintergrund (auf Cappuccino 4,42:1) */
  --focus: #34412f;

  /* Illustration */
  --window: #fffaf0;
  --wood: #e2c29c;
  --pot: #d98c5f;
  --pot-rim: #e6a179;
  --pot-shade: #bf7449;
  /* Ufopflanze: Grüntöne wie im Zustandsblatt (konzept/bilder/18-zustaende-ufopflanze.jpg) */
  --leaf: #6a8a4c;
  --leaf-light: #8fa865;
  --leaf-spot: #c3d19a;
  --stem: #86a05c;
  --can: #4a6a57;
  /* der Begleiter – dieselben Töne wie das 3D-Modell der App (palette.js, companion*) */
  --buddy: #9a7462;
  --buddy-dark: #7a5848;
  --buddy-light: #b8927d;
  --buddy-eye: #fdfaf2;
  --buddy-ink: #2a211c;
  /* Karten und Zeichnungen unterhalb der grünen Fläche */
  --card: #fffaf0;
  --pic-bg: #e7eedd;
  --water: #7fb2cf;
  --pane: #cfe6f3;
  --dirt: #9c8a6a;
  --heart: #d9676f;
  --stem-pink: #d98a9a;
  --rope: #b59c78;
  --basket: #f1e8d6;
  --pic-night: #3b4560;
  --pic-night-ink: #dfe4f2;
  --tool-body: #8fa0ab;
  --tool-wood: #cba679;
  --tool-rubber: #6b7076;
  /* Krabbler in Apricot wie in der App, Umzugsglas, Münzen */
  --crawler: #f0a27a;
  --crawler-dark: #c8764f;
  --jar: rgba(225, 240, 246, 0.85);
  --jar-line: #9fbccb;
  --coin: #e8b84a;
  --coin-edge: #b8862a;
  /* Fensterrahmen der Aussichten, wie das Holz in der App */
  --view-frame: #6e4a33;


  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Baloo 2", var(--font);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #23241d;
    --text: #efe8da;
    --muted: #b0a894;
    --line: #3c3e33;

    /* nachts: Espresso statt Cappuccino */
    --stage: #3a3029;
    --stage-light: #43372f;
    --stage-deep: #2d251f;
    --on-stage: #f1e9dc;
    --dock: #3c4a37;
    --dock-hover: #34412f;
    --on-dock: #f1ece0;
    --stage-card: #2f2822;
    --stage-card-muted: #c2b8a4;

    --accent: #c47c53;
    --link: #9cc4a0;
    --focus: #e6d6bf;

    --window: #3b4238;
    --wood: #7a624f;
    --pot: #b86f55;
    --pot-rim: #c98468;
    --pot-shade: #96583f;
    --leaf: #6f9150;
    --leaf-light: #8aa664;
    --leaf-spot: #b3c38c;
    --stem: #7f9958;
    --can: #263d31;
    --buddy: #8a6858;
    --buddy-dark: #6c4d3f;
    --buddy-light: #a07f6c;
    --card: #2c2e25;
    --pic-bg: #343b2f;
    --water: #6f9fbb;
    --pane: #4d6473;
    --dirt: #b3a482;
    --heart: #c95f67;
    --stem-pink: #c77e8d;
    --rope: #9c8566;
    --basket: #d9cfbd;
    --pic-night: #232a3c;
    --pic-night-ink: #c9d0e2;
    --crawler: #e0906a;
    --crawler-dark: #b06a48;
    --jar: rgba(120, 150, 165, 0.45);
    --jar-line: #7d98a6;
    --coin: #d7a940;
    --coin-edge: #a57a26;
  }
}


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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

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

/* ---------- Titelfläche in Cappuccino, wie die Wand in der App ---------- */

.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 700px at 78% 18%, var(--stage-light), transparent 70%),
    linear-gradient(160deg, var(--stage) 0%, var(--stage-deep) 100%);
  color: var(--on-stage);
  padding-bottom: 72px;
}

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

.brand {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 34px; height: 34px; }

.lang {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-dock);
  background: var(--dock);
  border: 0;
  border-radius: 999px;
  /* Zielgröße mindestens 44 × 44 px, auch für Finger */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  cursor: pointer;
}
.lang:hover { background: var(--dock-hover); }
/* Ohne JavaScript funktioniert der Umschalter nicht – dann bleibt er ausgeblendet */
.lang[hidden] { display: none; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 12px;
}

.art { order: -1; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.05fr; gap: 56px; padding-top: 16px; }
  .art { order: 0; }
  .stage { padding-bottom: 64px; }
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 10px 0 12px;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 20px;
  max-width: 18em;
}

.badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dock);
  background: var(--dock);
  border: 0;
  border-radius: 999px;
  padding: 6px 15px;
}

/* Texte auf einer Creme-Karte, wie die Karten in der App */
.card {
  background: var(--stage-card);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(46, 40, 31, 0.16);
  padding: 22px 24px;
  max-width: 34em;
}

.intro { color: var(--stage-card-muted); margin: 0 0 16px; }

.facts {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

.note {
  font-size: 0.9375rem;
  color: var(--stage-card-muted);
  margin: 12px 0 0;
}

/* Titelbild: ein echter Screenshot der App (Issue #3) */
.frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(46, 36, 26, 0.32);
  aspect-ratio: 1200 / 750;
  background: var(--stage-deep);
}
.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.window { fill: var(--window); }
.wood { fill: var(--wood); }
.pot { fill: var(--pot); }
.pot-rim { fill: var(--pot-rim); }
.pot-shade { fill: var(--pot-shade); }
.leaf { fill: var(--leaf); }
.leaf-light { fill: var(--leaf-light); }
.leaf-spot { fill: var(--leaf-spot); }
.stem { fill: none; stroke: var(--stem); stroke-width: 2.2; stroke-linecap: round; }
.stem-main { stroke-width: 3.2; }
/* Ableger „Pink Lady“ und hell gesprenkelte Blätter („Mojito“) */
.stem-pink { stroke: var(--stem-pink); }
.speck { fill: var(--leaf-spot); }
/* Efeutute in der Ampel */
.rope { fill: none; stroke: var(--rope); stroke-width: 1.4; stroke-linecap: round; }
.ring-brass { fill: none; stroke: var(--coin-edge); stroke-width: 1.6; }
.basket { fill: var(--basket); stroke: var(--rope); stroke-width: 1; }
.basket-band { fill: var(--leaf-light); }
/* Einschlafen: dunkler Hintergrund, Mond */
.pic-night { fill: var(--pic-night); }
.moon { fill: var(--coin); }
.zzz-night { fill: var(--pic-night-ink); }
.shadow { fill: #000; opacity: 0.09; }



/* Leiste mit den drei Werkzeugen, wie unter einer Fensterbank */
.toolbar {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  width: fit-content;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 11px 22px;
  background: var(--dock);
  border-radius: 0 0 22px 22px;
}
.toolbar li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--on-dock);
}
.toolbar svg { width: 22px; height: 22px; flex: none; }
.ico { fill: none; stroke: var(--on-dock); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 420px) {
  .toolbar { gap: 8px 16px; padding: 12px 16px; }
  .toolbar li { font-size: 0.8125rem; }
}

/* Welliger Übergang zur Fußzeile */
.wave {
  display: block;
  width: 100%;
  height: 36px;
  fill: var(--bg);
  background: var(--stage-deep);
  margin-bottom: -1px;
}

/* ---------- Fußzeile ---------- */

.foot {
  padding-top: 18px;
  padding-bottom: 26px;
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ---------- Rechtstexte ---------- */

.legal-page .wrap { max-width: 792px; }
.legal-page .top { color: var(--text); padding-bottom: 8px; }
.legal-page .foot { border-top: 1px solid var(--line); }

.legal {
  flex: 1;
  padding-top: 8px;
  padding-bottom: 56px;
}
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 24px; }
.legal h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 32px 0 8px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 1.25em; }
.legal address { font-style: normal; margin-bottom: 12px; }
.back { display: inline-block; margin-bottom: 8px; font-weight: 600; }

/* ---------- 404 ---------- */

.center { flex: 1; display: grid; place-content: center; text-align: center; padding-bottom: 64px; }

/* ============================================================================
   Startseite mit Abschnitten (23.09.2026)
   Alles hier hängt an .home oder an neuen Klassen – die Rechtstexte benutzen dieselbe
   Datei und bleiben unberührt.
   ============================================================================ */

/* Gemeinsame Formen der Zeichnungen: im Dokument, aber unsichtbar */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Die Kopfzeile liegt über der Titelfläche, damit <main> mit ihr beginnen kann */
.top-over { position: absolute; top: 0; left: 0; right: 0; z-index: 2; color: var(--on-stage); }
.home .stage { padding-top: 84px; }

.buddy { fill: var(--buddy); }
.buddy-dark { fill: var(--buddy-dark); }
.buddy-light { fill: var(--buddy-light); }
.buddy-eye { fill: var(--buddy-eye); }
.buddy-ink { fill: var(--buddy-ink); }
.buddy-mouth, .buddy-lid { fill: none; stroke: var(--buddy-ink); stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Abschnitte ---------- */

.block { padding-top: 56px; padding-bottom: 8px; }
.block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.lead { color: var(--muted); max-width: 40em; margin: -8px 0 24px; }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; gap: 22px; }
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px 14px 20px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 16px 8px 6px;
}
.feature p { color: var(--muted); margin: 0 8px; }

.pic { display: block; width: 100%; height: auto; }
.pic-bg { fill: var(--pic-bg); }
.drop { fill: var(--water); }
.pane { fill: var(--pane); }
.dirt { fill: var(--dirt); stroke: var(--dirt); stroke-width: 2; stroke-linecap: round; opacity: 0.6; }
.glint { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: 0.75; }
.sparkle { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.tool-body { fill: var(--tool-body); }
.tool-wood { fill: var(--tool-wood); }
.tool-rubber { fill: var(--tool-rubber); }
.bowl { fill: var(--can); }
.bowl-food { fill: #c79a5b; }
.ball { fill: var(--accent); }
.ball-stripe { fill: none; stroke: #fffaf0; stroke-width: 2.2; stroke-linecap: round; }
.heart { fill: var(--heart); }
.ring-track { fill: none; stroke: var(--line); stroke-width: 6; }
.ring { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.zzz { font-family: var(--font-display); font-weight: 700; font-size: 11px; fill: var(--muted); }
.zzz-big { font-size: 15px; }

/* ---------- Aussichten ---------- */

.views {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .views { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}
.views li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
/* Echte Aussicht im Holzrahmen: Rahmen und Mittelsprosse im Braun des Fensters in der App */
.view-pic {
  position: relative;
  display: block;
  width: 100%;
  border: 7px solid var(--view-frame);
  border-radius: 12px;
  overflow: hidden;
  background: var(--view-frame);
  box-shadow: 0 8px 14px rgba(40, 36, 26, 0.16);
}
.view-pic img { display: block; width: 100%; height: auto; }
.view-pic::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  background: var(--view-frame);
}

/* ---------- Fair zu dir ---------- */

.fair {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .fair { grid-template-columns: 1fr 1fr; gap: 14px 22px; }
}
.fair li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
}
/* Eine ungerade letzte Kachel geht über die ganze Breite, statt allein zu stehen */
@media (min-width: 720px) {
  .fair li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.fair svg { width: 28px; height: 28px; flex: none; margin-top: 1px; }
.fair p { margin: 0; color: var(--muted); }
.fair strong { color: var(--text); }
.ico-ink { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.closing {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  font-weight: 600;
  text-align: center;
  margin: 48px 0 40px;
}

/* ---------- Krabbler und Spielgeld (24.09.2026) ---------- */

.crawler { fill: var(--crawler); }
.crawler-eye { fill: var(--buddy-ink); }
.crawler-leg { fill: none; stroke: var(--crawler-dark); stroke-width: 1.2; stroke-linecap: round; }
.hop { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 4; }
.jar { fill: var(--jar); stroke: var(--jar-line); stroke-width: 1.5; }
.jar-lid { fill: var(--tool-wood); }
.coin { fill: var(--coin); }
.coin-edge { fill: var(--coin-edge); }
.coin-mark { fill: none; stroke: var(--coin-edge); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkle-ink { fill: none; stroke: var(--coin); stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Echte Bilder ---------- */

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
/* Am PC: zwei Querformate links untereinander, das Handy rechts über beide Reihen */
@media (min-width: 720px) {
  .shots { grid-template-columns: 1.73fr 1fr; gap: 22px; }
  .shot-phone { grid-column: 2; grid-row: 1 / span 2; }
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 10px 10px 14px;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.shot figcaption { color: var(--muted); font-size: 0.9375rem; margin: 0 6px; }
@media (min-width: 720px) {
  .shot-phone img { flex: 1 1 0; min-height: 0; height: 100%; object-fit: cover; object-position: top; }
}
@media (max-width: 719px) {
  .shot-phone img { max-width: 300px; margin: 0 auto; }
}
