/* sotuno – eigene Stile ergänzend zur Vorlagen-CSS (assets/main.css).
   Alles Handgeschriebene liegt hier, main.css bleibt unangetastet. */

/* ---------- Hero-Video: Poster ist das Design, Video nur Bonus ---------- */
.hero-media { position: absolute; inset: 0; z-index: -10; overflow: hidden; background: #dfe6ef; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.is-ready { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(242,245,250,.05) 0%, rgba(242,245,250,.25) 55%, #f2f5fa 100%); }

/* ---------- Rotierendes Wort in der H1 ---------- */
.rotate-word { display: inline-block; position: relative; color: var(--color-primary-500); }
.rotate-word > span { display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.rotate-word > span.is-out { opacity: 0; transform: translateY(.35em); }
.rotate-word > span.is-in  { opacity: 0; transform: translateY(-.35em); transition: none; }

/* ---------- Phone-Mockup mit Player ---------- */
.ph { --ph-w: 300px; --ph-accent: #864ffe; --ph-accent-2: #b591ff; position: relative; width: var(--ph-w); margin: 0 auto; font-family: var(--font-inter-tight); color: #fff; }
.ph-md { --ph-w: 250px; }
.ph-sm { --ph-w: 200px; }
.ph-mode-relax    { --ph-accent: #17b8a6; --ph-accent-2: #7fe3d7; }
.ph-mode-sleep    { --ph-accent: #4c6fff; --ph-accent-2: #9db4ff; }
.ph-mode-meditate { --ph-accent: #f0a53a; --ph-accent-2: #ffd48a; }
.ph-frame { background: #0d0d12; border-radius: calc(var(--ph-w) * .14); padding: calc(var(--ph-w) * .035); box-shadow: 0 30px 60px -20px rgba(13,13,18,.45), 0 0 0 1px rgba(255,255,255,.06) inset; }
.ph-screen { position: relative; overflow: hidden; border-radius: calc(var(--ph-w) * .11); aspect-ratio: 9 / 19.2; background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--ph-accent) 35%, #12121a) 0%, #12121a 60%, #0b0b10 100%); padding: calc(var(--ph-w) * .06) calc(var(--ph-w) * .06) calc(var(--ph-w) * .05); display: flex; flex-direction: column; gap: calc(var(--ph-w) * .035); font-size: calc(var(--ph-w) * .04); }
.ph-status { display: flex; justify-content: space-between; align-items: center; font-size: calc(var(--ph-w) * .038); font-weight: 600; opacity: .9; }
.ph-status-icons { display: inline-flex; gap: 3px; }
.ph-status-icons i { display: block; width: calc(var(--ph-w) * .04); height: calc(var(--ph-w) * .028); border-radius: 2px; background: #fff; opacity: .85; }
.ph-status-icons i:last-child { width: calc(var(--ph-w) * .06); }
.ph-top { display: flex; justify-content: space-between; align-items: center; margin-top: calc(var(--ph-w) * .02); }
.ph-logo { font-weight: 600; letter-spacing: -.02em; font-size: calc(var(--ph-w) * .055); }
.ph-avatar { width: calc(var(--ph-w) * .08); height: calc(var(--ph-w) * .08); border-radius: 50%; background: linear-gradient(135deg, var(--ph-accent), var(--ph-accent-2)); }
.ph-chips { display: flex; gap: calc(var(--ph-w) * .02); }
.ph-chip { flex: 1; text-align: center; padding: calc(var(--ph-w) * .022) 0; border-radius: 999px; background: rgba(255,255,255,.07); font-size: calc(var(--ph-w) * .034); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-chip.is-active { background: var(--ph-accent); color: #fff; font-weight: 600; }
.ph-art { position: relative; flex: 1; min-height: calc(var(--ph-w) * .5); display: flex; align-items: center; justify-content: center; }
.ph-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ph-accent) 55%, transparent) 0%, transparent 70%); filter: blur(6px); }
.ph-wave { position: relative; display: flex; align-items: center; gap: calc(var(--ph-w) * .012); height: 45%; width: 82%; }
.ph-wave i { display: block; flex: 1; height: var(--h); border-radius: 999px; background: linear-gradient(180deg, var(--ph-accent-2), var(--ph-accent)); animation: ph-bar 1.9s ease-in-out infinite; animation-delay: var(--d); transform-origin: center; }
@keyframes ph-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
.ph-meta { display: flex; flex-direction: column; gap: 2px; }
.ph-meta strong { font-size: calc(var(--ph-w) * .05); font-weight: 600; }
.ph-meta span { font-size: calc(var(--ph-w) * .036); opacity: .6; }
.ph-progress { height: 3px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.ph-progress i { display: block; width: 38%; height: 100%; background: var(--ph-accent); }
.ph-controls { display: flex; align-items: center; justify-content: center; gap: calc(var(--ph-w) * .09); margin-top: calc(var(--ph-w) * .01); }
.ph-ctl { width: calc(var(--ph-w) * .09); height: calc(var(--ph-w) * .09); border-radius: 50%; background: rgba(255,255,255,.1); }
.ph-play { width: calc(var(--ph-w) * .19); height: calc(var(--ph-w) * .19); border-radius: 50%; background: #fff; color: #0d0d12; display: grid; place-items: center; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--ph-accent) 70%, transparent); }
.ph-play svg { width: 55%; height: 55%; margin-left: 6%; }
.ph-timer { display: flex; justify-content: space-between; align-items: baseline; padding: calc(var(--ph-w) * .03) calc(var(--ph-w) * .04); border-radius: calc(var(--ph-w) * .04); background: rgba(255,255,255,.06); font-size: calc(var(--ph-w) * .036); }
.ph-timer strong { font-size: calc(var(--ph-w) * .05); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .ph-wave i { animation: none; } }

/* ---------- Rechtstexte aus der zentralen Verwaltung (far_inc) ---------- */
.legal-body { color: var(--color-secondary); }
.legal-body .far-inc a { color: var(--color-primary-500); }
.legal-body .far-inc h2 { color: var(--color-secondary); }

/* ---------- Blog-Beitrag ---------- */
.prose-blog { color: var(--color-secondary); }
.prose-blog h2 { font-size: 1.6em; line-height: 1.25; margin: 1.6em 0 .6em; }
.prose-blog h3 { font-size: 1.25em; line-height: 1.3; margin: 1.4em 0 .5em; }
.prose-blog p, .prose-blog ul, .prose-blog ol { margin: 0 0 1.1em; color: color-mix(in srgb, var(--color-secondary) 78%, white); }
.prose-blog ul { list-style: disc; padding-left: 1.4em; }
.prose-blog ol { list-style: decimal; padding-left: 1.4em; }
.prose-blog a { color: var(--color-primary-500); text-decoration: underline; text-underline-offset: 2px; }
.prose-blog img { border-radius: 1rem; margin: 1.5em 0; }
.prose-blog blockquote { border-left: 3px solid var(--color-primary-500); padding-left: 1em; margin: 1.5em 0; font-style: italic; }
.blog-toc { border: 1px solid var(--color-stroke-3, #e5e7eb); border-radius: 1rem; padding: 1.25rem 1.5rem; margin: 0 0 2rem; }
.blog-toc .toc-title { font-weight: 600; margin-bottom: .5rem; }
.blog-toc ol { list-style: decimal; padding-left: 1.2em; }
.blog-toc ol ol { list-style: lower-alpha; margin-top: .25rem; }
.blog-toc a { text-decoration: none; }
.blog-toc a:hover { text-decoration: underline; }

/* ---------- Formulare (App-Anmeldung, Kontakt) ---------- */
.field { display: block; width: 100%; border-radius: 999px; border: 1px solid #e3e6ec; background: #fff; padding: .95rem 1.4rem; font-size: 1rem; color: #0d0d12; outline: none; transition: border-color .2s; }
.field:focus { border-color: #864ffe; box-shadow: 0 0 0 4px rgba(134,79,254,.12); }
textarea.field { border-radius: 1.25rem; min-height: 9rem; resize: vertical; }
.field-label { display: block; margin: 0 0 .5rem .6rem; font-size: .9rem; color: rgba(13,13,18,.7); }
.checkline { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: rgba(13,13,18,.7); }
.checkline input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: #864ffe; flex: none; }
.form-error { border-radius: 1rem; background: #fff1f0; color: #b3261e; padding: .8rem 1.1rem; font-size: .92rem; }
.quiz-option { display: block; border: 1px solid #e3e6ec; border-radius: 1rem; background: #fff; padding: 1rem 1.25rem; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.quiz-option:has(input:checked) { border-color: #864ffe; box-shadow: 0 0 0 3px rgba(134,79,254,.14); }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-step[hidden] { display: none; }
.quiz-step.is-invalid .quiz-error { display: block; }
.quiz-dots { display: flex; gap: .4rem; justify-content: center; }
.quiz-dots i { width: .5rem; height: .5rem; border-radius: 50%; background: #e3e6ec; }
.quiz-dots i.is-done { background: #864ffe; }

/* ---------- Kleinigkeiten ---------- */
.lang-switch a { opacity: .55; }
.lang-switch a.is-active { opacity: 1; font-weight: 600; }
.mode-panel[hidden] { display: none; }
.text-balance { text-wrap: balance; }

/* ---------- Handgeschriebene Utilities, die in main.css fehlen ----------
   (Tailwind kompiliert nur, was die Vorlage benutzt. Neue Klassen hier ergänzen,
   themebackup/_tools/check_classes.py meldet, was fehlt.) */
.mt-0\.5 { margin-top: .125rem; }
.mr-4 { margin-right: 1rem; }
.pl-2 { padding-left: .5rem; }
.tracking-wide { letter-spacing: .025em; }
.text-red-500 { color: #ef4444; }
.font-ibm-plex-mono { font-family: var(--font-inter-tight); } /* Vorlage nennt die Klasse, definiert sie aber nicht */
.underline-offset-4 { text-underline-offset: 4px; }
.pr-14\! { padding-right: 3.5rem !important; }
.max-w-\[720px\] { max-width: 720px; }
.max-w-\[900px\] { max-width: 900px; }
.h-\[240px\] { height: 240px; }
.min-h-\[70vh\] { min-height: 70vh; }
.space-y-\[50px\] > :not(:last-child) { margin-bottom: 50px; }
.text-heading-1 { font-size: var(--text-heading-1); line-height: var(--text-heading-1--line-height); }
@media (width >= 40rem) { .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (width >= 48rem) { .md\:h-\[520px\] { height: 520px; } .md\:pt-\[190px\] { padding-top: 190px; } .md\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
@media (width >= 64rem) { .lg\:h-\[560px\] { height: 560px; } .lg\:p-10 { padding: 2.5rem; } }
@media (width >= 80rem) { .xl\:max-w-\[820px\] { max-width: 820px; } }

/* ---------- Eigene Bausteine der Startseite ---------- */
.sci-gradient { background: linear-gradient(180deg, #1d1240 0%, #3a2a7a 55%, #f2f5fa 100%); }
.mode-figure-bg { background: linear-gradient(180deg, var(--color-background-4), var(--color-background-3)); }
.mode-tab.is-active { background: var(--color-secondary) !important; color: #fff !important; }
.cta-glow { top: 0; left: 50%; width: 820px; height: 420px; transform: translate(-50%, -33%); border-radius: 9999px; background: rgba(134, 79, 254, .15); filter: blur(64px); }

/* ---------- Blog: CTA-Boxen im Beitrag (inc/blog.php, sbCtaBox) ----------
   Liegen innerhalb von .prose-blog; der Button-Link darf die Unterstreichung von .prose-blog a nicht erben. */
.prose-blog .blog-cta a { text-decoration: none; }
