:root {
  --rosa: #ffd6e0;
  --rosa-dunkel: #f7a8bf;
  --pink: #f58fb1;
  --creme: #fff8ef;
  --hellblau: #d8ecff;
  --flieder: #e8dcff;
  --flieder-dunkel: #c9b3f5;
  --mint: #d9f5e8;
  --pfirsich: #ffe3cf;
  --text: #5b4a55;
  --text-hell: #8a7683;
  --titel: #6b4a5e;
  --schatten: 0 8px 24px rgba(120, 80, 100, .14);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--rosa) 0%, var(--creme) 45%, var(--flieder) 78%, var(--hellblau) 100%);
  color: var(--text);
  font: 17px/1.45 "Nunito", "Quicksand", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
button { font: inherit; color: inherit; cursor: pointer; }

.kopf { flex: 0 0 auto; padding: 8px 12px 4px; max-width: 640px; width: 100%; margin: 0 auto; }
.kopf-zeile { display: flex; align-items: center; gap: 8px; }
.kopf-titel { flex: 1; text-align: center; font-weight: 800; color: var(--titel); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfad { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 2px; height: 20px; }
.pfad i {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .75);
  border: 1.5px solid rgba(201, 179, 245, .9); font-style: normal; display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; transition: transform .25s ease;
}
.pfad i.fertig { background: none; border: none; width: auto; height: auto; }
.pfad i.jetzt { transform: scale(1.35); border-color: var(--pink); background: var(--rosa-dunkel); }
.pfad i.trenner { width: 3px; height: 14px; border-radius: 2px; background: rgba(201, 179, 245, .6); border: none; }
.kopf-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-hell); font-weight: 700; padding: 0 2px; }

.buehne-w { flex: 1 1 auto; position: relative; overflow: hidden; width: 100%; max-width: 640px; margin: 0 auto; touch-action: pan-y; }
.schritt {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(6px, 1.6vh, 14px); padding: 8px 18px; text-align: center; overflow: hidden;
}
.schritt.aktiv { display: flex; animation: herein .35s ease-out both; }
.schritt.aktiv.rueck { animation-name: herein-rueck; }
@keyframes herein { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes herein-rueck { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.schritt h1 { font-size: clamp(30px, 5.5vh, 46px); line-height: 1.1; margin: 0; color: var(--titel); }
.schritt h2 { font-size: clamp(22px, 3.8vh, 32px); line-height: 1.15; margin: 0; color: var(--titel); }
.schritt p { margin: 0; max-width: 32em; }
.rahmen { font-weight: 700; color: var(--titel); font-size: clamp(15px, 2.3vh, 19px); }
.leise { color: var(--text-hell); font-size: clamp(14px, 2.1vh, 17px); }
.leise.klein { font-size: clamp(13px, 1.8vh, 15px); }
.logo img { display: block; width: min(46vw, 26vh, 240px); height: auto; border-radius: 24px; filter: drop-shadow(0 10px 22px rgba(120, 80, 100, .18)); }

.gross, .mittel, .nav-knopf {
  border: none; font-weight: 800; color: var(--titel); border-radius: 999px; box-shadow: var(--schatten);
  background: linear-gradient(135deg, var(--rosa-dunkel), var(--rosa)); transition: transform .15s ease, opacity .2s ease;
}
.gross { font-size: 24px; padding: 16px 60px; }
.mittel { font-size: 17px; padding: 12px 22px; }
.mittel.hell, .nav-knopf.zurueck { background: rgba(255, 255, 255, .85); }
.gross:active, .mittel:active, .nav-knopf:active { transform: scale(.97); }
.mittel:disabled { opacity: .55; }
.knopf-reihe { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.steuer { flex: 0 0 auto; display: flex; gap: 12px; padding: 8px 14px calc(10px + env(safe-area-inset-bottom)); max-width: 640px; width: 100%; margin: 0 auto; }
.steuer[hidden] { display: none; }
.nav-knopf { flex: 1; font-size: 20px; padding: 15px 10px; min-height: 56px; }
.nav-knopf.zurueck { flex: 0 0 34%; }
.nav-knopf.weiter.gesperrt { opacity: .5; }
.nav-knopf:disabled { visibility: hidden; }
.wackeln-x { animation: wackeln-x .4s ease; }
@keyframes wackeln-x { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.streichel-buehne { position: relative; width: min(62vw, 34vh, 340px); height: min(62vw, 34vh, 340px); margin-top: 34px; }
.puppy {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .6);
  box-shadow: var(--schatten), 0 0 0 8px rgba(255, 255, 255, .7); cursor: pointer; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.puppy img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
@keyframes wackeln { 0% { transform: rotate(0) scale(1); } 25% { transform: rotate(-2.5deg) scale(1.03); } 50% { transform: rotate(0) scale(1.05); } 75% { transform: rotate(2.5deg) scale(1.03); } 100% { transform: rotate(0) scale(1); } }
.puppy.wackelt { animation: wackeln .45s ease-in-out infinite; }
.heart { position: absolute; pointer-events: none; z-index: 2; transform: translate(-50%, -50%); animation: aufsteigen 1.1s ease-out forwards; }
@keyframes aufsteigen {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 110px)) scale(1.3) rotate(var(--rot, 0deg)); }
}
.blase {
  position: absolute; left: 50%; top: -8px; transform: translate(-50%, -100%) scale(.85); background: #fff; color: var(--titel);
  font-weight: 700; font-size: 16px; padding: 7px 14px; border-radius: 18px; box-shadow: var(--schatten); white-space: nowrap;
  opacity: 0; transition: opacity .3s ease, transform .3s ease; z-index: 3; pointer-events: none;
}
.blase.sichtbar { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.zaehler { font-size: clamp(18px, 3vh, 24px); font-weight: 800; color: var(--titel); }
.zaehler strong { color: #d97a9a; }
.balken { width: min(70vw, 300px); height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.balken span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rosa-dunkel), var(--flieder-dunkel)); transition: width .2s ease; }

.atem-kreis {
  width: min(48vw, 27vh, 200px); height: min(48vw, 27vh, 200px); border-radius: 50%; border: none; cursor: pointer;
  background: radial-gradient(circle at 35% 35%, #fff, var(--rosa) 55%, var(--flieder-dunkel));
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .5), var(--schatten);
  display: flex; align-items: center; justify-content: center; font: inherit; font-weight: 800; color: var(--titel); font-size: 19px; padding: 10px;
  transform: scale(.72); transition: transform 4s ease-in-out; margin: 10px 0;
}
.atem-kreis.inhale { transform: scale(1.05); transition-duration: 4s; }
.atem-kreis.exhale { transform: scale(.72); transition-duration: 6s; }
.relax-satz { font-size: clamp(24px, 4.5vh, 36px); font-weight: 900; color: var(--titel); min-height: 1.3em; transition: opacity .4s ease; margin: 6px 0 !important; }
.relax-satz.weg { opacity: 0; }
.halten { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.halten.aktiv { transform: scale(.97); background: linear-gradient(135deg, var(--flieder-dunkel), var(--rosa-dunkel)); color: #fff; }

.ende-bild { width: min(34vw, 17vh, 150px); height: min(34vw, 17vh, 150px); object-fit: cover; border-radius: 50%; box-shadow: var(--schatten), 0 0 0 6px rgba(255, 255, 255, .7); }
.abzeichen-liste { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 420px; }
.abzeichen {
  background: linear-gradient(135deg, #fff, var(--flieder)); border: 2px solid #fff; border-radius: 999px; padding: 6px 12px;
  font-weight: 800; color: var(--titel); font-size: 15px; box-shadow: 0 4px 12px rgba(120, 80, 100, .12);
}
.abzeichen.offen { opacity: .4; background: rgba(255, 255, 255, .5); }

.toast {
  position: fixed; left: 50%; top: 22%; transform: translate(-50%, -10px) scale(.9); opacity: 0; pointer-events: none; z-index: 40;
  background: #fff; color: var(--titel); font-weight: 900; font-size: 20px; padding: 14px 24px; border-radius: 24px; box-shadow: var(--schatten);
  transition: opacity .3s ease, transform .3s ease; text-align: center; max-width: 86vw;
}
.toast.sichtbar { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast small { display: block; font-size: 14px; color: var(--text-hell); font-weight: 700; }

@media (min-height: 760px) { body { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .schritt.aktiv, .puppy.wackelt, .heart { animation: none; }
  .atem-kreis { transition: none; }
}
@media (max-height: 600px) {
  .atem-kreis { width: min(44vw, 24vh); height: min(44vw, 24vh); }
  .streichel-buehne { width: min(52vw, 26vh); height: min(52vw, 26vh); margin-top: 26px; }
  .schritt[data-id^="pet"] .rahmen { font-size: 14px; }
  .schritt[data-id^="pet"] .leise { font-size: 13px; }
}

/* 12.10.2026 20:50: Erinnerungen (Push) und Install-Hinweis */
.glocke { border: 0; background: rgba(255, 255, 255, .8); color: var(--titel); font: inherit; font-weight: 800; font-size: 13px;
  padding: 4px 10px; border-radius: 999px; cursor: pointer; box-shadow: 0 2px 8px rgba(120, 80, 100, .12); }
.glocke.an { background: var(--mint); }
.schicht { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(91, 74, 85, .35); }
.schicht[hidden] { display: none; }
.karte { background: #fff; border-radius: 24px; box-shadow: var(--schatten); padding: 20px 20px 16px; width: min(92vw, 380px);
  max-height: 92vh; overflow: auto; text-align: center; }
.karte img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.karte h3 { margin: 8px 0 6px; color: var(--titel); font-size: 20px; }
.karte p { margin: 6px 0; }
.karte ol { text-align: left; margin: 8px 0 10px; padding-left: 22px; line-height: 1.45; }
.karte .knopf-reihe { margin-top: 12px; }
.kopf-info { align-items: center; }
