/* ─────────────────────────────────────────────────────────────
   nowa · Euer gemeinsamer Takt (/zusammen, /en/together)
   Zusätzlich zu style.css und blog.css (Etikett, Knöpfe, Phasenwort kommen von dort). Die Kugeln sind die des Blogs, in
   den Farben des Duetts: „Du“ in duett-du, gegenüber duett-partner, die Schnittmenge in Tinte Duett, wie das
   Duett-Zeichen der App (lib/components/paar_zeichen.dart), „Du“ links. Im Duett gibt es eine Farbquelle: Knöpfe in duett-du
   (Styleguide, 22.10.2026). Bewegung nur über SVG-Werte, transform und opacity, ohne Weichzeichner und Mischmodi.
   ───────────────────────────────────────────────────────────── */
:root.blog .zs {
  --zs-du: #3D5BC0;  --zs-du-schrift: #334CA0;  --zs-du-kugel: #8FA3E4;
  --zs-an: #1B7F76;  --zs-an-schrift: #15615A;  --zs-an-kugel: #74C4BA;
  --zs-linse: #8FA3E4;  --zs-linse-deckung: 0.45;
  --zs-knopf: linear-gradient(135deg, #C9D1ED, #96A6DD);   /* duett-du, 72 % bis 46 % zu Weiß */
}
@media (prefers-color-scheme: dark) {
  :root.blog .zs {
    --zs-du: #8FA3E4;  --zs-du-schrift: #A9BCEC;  --zs-du-kugel: #8CA2E8;
    --zs-an: #4FC0B4;  --zs-an-schrift: #6FD0C6;  --zs-an-kugel: #4FB3A8;
    --zs-linse: #A9BCEC;  --zs-linse-deckung: 0.4;
    --zs-knopf: linear-gradient(#354365, #354365);
  }
}

.blog .doc.zusammen { max-width: 40rem; min-height: 100vh; min-height: 100svh; text-align: center; }
.zs [hidden] { display: none !important; }
.zs .etikett { margin-bottom: 12px; }
.blog .doc .zs__titel { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 7.4vw, 3rem); line-height: 1.06; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; hyphens: manual; outline: none; }
.blog .doc .zs__text { margin: 16px auto 0; max-width: 31rem; font-size: 1.06rem; line-height: 1.55; color: var(--ink-2); text-wrap: balance; }
.zs__satz { display: inline-block; max-width: 100%; }   /* bricht zwischen den Sätzen, wenn es eng wird */

/* Überschrift und Text gehen auf und zu, damit die Kugel ruhig nach oben rückt statt zu springen */
.zs__auf { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.7s var(--ease), opacity 0.4s; }
.zs__auf > div { min-height: 0; overflow: hidden; }
.zs[data-schritt="ergebnis"] .zs__auf--text,
.zs[data-schritt="paar"] .zs__auf, .zs[data-schritt="schluss"] .zs__auf { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }

/* ───────────── Bühne ───────────── */
.zs__buehne, .zs__namen { --breit: max(230px, (100svh - 350px) * 1.525); width: min(100%, 430px, var(--breit)); transition: margin-top 0.9s var(--ease), width 0.9s var(--ease); }
.zs__buehne { position: relative; margin: 14px auto 0; display: grid; place-items: center; }
/* Solange sich die Kugeln angleichen, stehen sie mitten im Bild; zum Schluss rücken sie hoch und machen Platz */
.zs[data-schritt="paar"] .zs__buehne { margin-top: max(14px, 50svh - 330px); }
.zs__bild { display: block; width: 100%; height: auto; overflow: visible; }
.zs-kugel--du { fill: url(#zs-v-du); }
.zs-kugel--an { fill: url(#zs-v-an); }
stop.zs-v-du { stop-color: var(--zs-du-kugel); }
stop.zs-v-an { stop-color: var(--zs-an-kugel); }
.zs-rand { fill: none; stroke-width: 1.6; opacity: 0.85; }
.zs-rand--du { stroke: var(--zs-du); }
.zs-rand--an { stroke: var(--zs-an); }
.zs-linse { fill: var(--zs-linse); opacity: var(--zs-linse-deckung); }
.zs-ring { fill: none; stroke: var(--zs-du); stroke-width: 1.4; opacity: 0; }
.zs-welle { fill: none; stroke: var(--zs-du); stroke-width: 2; opacity: 0; }
.zs__zahl { position: absolute; font-size: 3.2rem; letter-spacing: -0.03em; pointer-events: none; }
/* Die Kugel ist die Tipp-Fläche, wie auf den Mitatmen-Seiten */
.zs__tipp { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; translate: -50% -50%; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.zs__namen { position: relative; margin: 0 auto; }
.zs__name { position: absolute; left: 0; top: 0; max-width: calc(50% - 9px); width: max-content; font: 700 15px/1.3 var(--f-body); overflow-wrap: anywhere; }
.zs__name--an { color: var(--zs-an-schrift); }
.zs__name--du { color: var(--zs-du-schrift); }

/* ───────────── Worte ───────────── */
.zs__worte { margin-top: 16px; }
.zs[data-schritt="paar"] .zs__worte { min-height: 5.6rem; }   /* zwei Zeilen: Was darunter steht, springt nicht */
.blog .doc .zs__zeile { margin: 0 !important; min-height: 0; line-height: 1.2; text-wrap: balance; outline: none; }
.blog .doc .zs__unter { margin: 4px 0 0 !important; min-height: 0; line-height: 1.5; }
.zs-neu { animation: zs-neu 0.5s ease-out; }
@keyframes zs-neu { from { opacity: 0; } }

/* ───────────── Knöpfe ───────────── */
.zs__haupt { justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: 24px; font-size: 16px; line-height: 1.15; background: var(--zs-knopf); touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.zs__haupt:active { transform: scale(0.96); }
.zs__tippen { position: relative; z-index: 1; margin-top: 10px; }   /* die Welle der Kugel läuft hinter dem Knopf aus */
.blog .doc .zs__zaehler { margin: 12px 0 0 !important; font-variant-numeric: tabular-nums; }
.blog .doc .zs__status { margin: 8px auto 0; min-height: 1.5em; max-width: 24rem; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.blog .doc .zs__leise, .zs__leise {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 22px; cursor: pointer;
  background: none; font: 700 15.5px/1.3 var(--f-body); color: var(--zs-du-schrift); text-align: center; text-decoration: none; text-wrap: balance; overflow-wrap: anywhere;
}
.zs__leise:hover { background: var(--still); }
.zs button:focus-visible, .zs a:focus-visible, .zs input:focus-visible { outline: 2px solid var(--zs-du); outline-offset: 3px; }

/* ───────────── Vorname und Link ───────────── */
.zs__teilen { margin-top: 20px; }
.zs__form { display: flex; flex-direction: column; align-items: stretch; width: min(100%, 22rem); margin: 0 auto; text-align: left; }
.zs__form label { font: 700 14.5px/1.3 var(--f-body); color: var(--ink); }
.zs__form input {
  box-sizing: border-box; width: 100%; min-height: 52px; margin-top: 8px; padding: 0 16px; border: 0; border-radius: 16px;
  background: var(--feld); font: 400 16px/1.3 var(--f-body); color: var(--ink); outline: none; transition: box-shadow 160ms;
}
.zs__form input:focus { box-shadow: 0 0 0 2px var(--zs-du); outline: none; }
.blog .doc .zs__klein { margin: 8px 2px 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.zs__form .zs__haupt { margin-top: 16px; }
.blog .doc .zs__form .zs__status { text-align: center; }
.blog .doc .zs__form .zs__status:empty, .blog .doc .zs__form .zs__rueck:empty { margin: 0; min-height: 0; }
.blog .doc .zs__form .zs__rueck { margin-top: 12px; text-align: center; text-wrap: balance; }
.zs__kopie { display: block; width: 100%; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--f-body); resize: none; }

/* ───────────── Schluss ───────────── */
.zs__schluss { margin-top: 18px; animation: zs-neu 0.8s ease-out; }
.blog .doc .zs__schluss .zs__text { max-width: 27rem; }
.blog .doc .zs__duett { margin: 14px auto 0; max-width: 24rem; color: var(--ink-3); text-align: center; }
.zs__wege { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 26px; }
.zs__wege > div { width: 100%; }
.zs__wege .zs__form { margin: 10px auto 18px; }

/* Duett-Teaser unten auf der Mitatmen-Übersicht und im Duett-Kapitel: siehe .beat__mehr in style.css */

@media (max-width: 860px) {
  .blog .doc.zusammen { padding-top: calc(92px + env(safe-area-inset-top)); }
}
/* Niedrige Fenster (kleine Telefone mit Browserleisten): alles etwas enger, damit der Knopf im ersten Bild steht */
@media (max-width: 860px) and (max-height: 640px) {
  .blog .doc.zusammen { padding-top: calc(82px + env(safe-area-inset-top)); }
  .zs .etikett { margin-bottom: 8px; }
  .blog .doc .zs__text { margin-top: 10px; line-height: 1.5; }
  .zs__buehne { margin-top: 2px; }
  .zs__tippen { margin-top: 2px; }
  /* Zum Schluss noch etwas kleiner: Die Store-Knöpfe stehen dann über der Menü-Kugel */
  .zs[data-schritt="schluss"] .zs__buehne, .zs[data-schritt="schluss"] .zs__namen { --breit: max(200px, (100svh - 395px) * 1.525); }
}
@media (max-width: 860px) {
  .zs__form { width: min(100% - 84px, 22rem); }   /* links und rechts so viel Platz, dass die Menü-Kugel nie auf Feld oder Knopf liegt */
}
@media (max-width: 359px) {
  .blog .doc .zs__text { font-size: 1rem; }
  .blog .doc .zs__zeile { font-size: 1.45rem; }
  .zs__tippen .zs__haupt { padding: 12px 9px; font-size: 15px; }
}
/* Mindestens 12 px zwischen dem Knopf zum Tippen und der Menü-Kugel (Design 24.11.2026) */
@media (min-width: 360px) and (max-width: 374px) {
  .zs__tippen .zs__haupt { padding: 12px 22px; }
}
/* Schluss: Überschrift in einer Zeile, und die kleine Zeile bleibt neben der Menü-Kugel frei (Design 24.11.2026) */
@media (max-width: 374px) {
  .blog .doc #zs-schluss { font-size: 7.8vw; }
}
@media (max-width: 389px) {
  .blog .doc .zs__schluss .zs__duett { max-width: min(230px, 100vw - 130px); }   /* unter 360 px noch schmaler */
  .zs__duett .zs__satz { text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) {
  .zs__auf, .zs__buehne, .zs__namen { transition: none; }
  .zs-neu, .zs__schluss { animation: none; }
  .zs__haupt:active { transform: none; }
}
