/* ==========================================================================
   Referenz DeepBreath – ruhig, hell, erzählt in Akten
   Zweitfarbe Türkis aus der DeepBreath-Marke, Syscore-Orange für Handlungen
   ========================================================================== */
.cs-page { --db: #1FA89A; --db-hi: #3CC9B8; --db-soft: #E3F5F2; }

/* ---------- Hero ---------- */
.db-hero { position: relative; overflow: clip; padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); background: linear-gradient(180deg, #F4F4F2 0%, #EEF4F2 100%); }
.db-hero-copy { text-align: center; }
.db-in { display: inline-block; opacity: 0; transform: translateY(16px); animation: db-in 1s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(var(--d) * 110ms + 120ms); }
.db-hero-copy > .db-in, .db-hero-media.db-in { display: block; }
@keyframes db-in { to { opacity: 1; transform: none; } }
.db-crumbs { justify-content: center; color: var(--muted); }
.db-crumbs a { color: var(--muted); }
.db-crumbs a:hover { color: var(--ink); }
.db-kicker { margin-top: 28px; font-size: 1rem; font-weight: 600; color: var(--db); }
.db-title { margin-top: 12px; font-size: clamp(3rem, 8vw, 7rem); font-weight: 600; letter-spacing: -0.055em; line-height: .98; color: var(--ink); }
.db-accent { background: linear-gradient(120deg, var(--db), #7FD9CC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.db-lead { max-width: 30em; margin: 24px auto 0; font-size: clamp(1.125rem, 1.7vw, 1.4375rem); line-height: 1.45; color: var(--ink-2); }
.db-hero-media { margin-top: clamp(40px, 5vw, 64px); }
.db-photo { position: relative; border-radius: 32px; overflow: hidden; box-shadow: 0 60px 120px -60px rgba(11, 11, 12, .45); }
.db-photo img { display: block; width: 100%; height: auto; }
/* Atemwelle um die Schnalle */
.db-breath { position: absolute; left: 38.5%; top: 71.5%; width: 0; height: 0; }
.db-breath i { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(31, 168, 154, .55); animation: db-breathe 6s cubic-bezier(.45, 0, .55, 1) infinite; }
.db-breath i:nth-child(2) { animation-delay: 2s; } .db-breath i:nth-child(3) { animation-delay: 4s; }
@keyframes db-breathe { 0% { transform: scale(.4); opacity: 0; } 20% { opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.db-live { position: absolute; left: 24px; top: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .8125rem; font-weight: 600; color: var(--ink); box-shadow: 0 10px 24px -14px rgba(11, 11, 12, .4); }
.db-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--db); box-shadow: 0 0 0 4px rgba(31, 168, 154, .2); animation: pulse 2s ease-in-out infinite; }
.db-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(40px, 5vw, 64px) 0 0; text-align: center; }
.db-facts dt { font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.db-facts dd { margin-top: 8px; font-size: .9375rem; color: var(--muted); }

/* ---------- Akte: große Sätze ---------- */
.db-story { padding: clamp(120px, 16vw, 220px) 0; text-align: center; background: var(--bg); }
.db-story-dark { background: var(--dark); color: var(--on-dark); --cover: var(--dark); }
.db-story-no { font-size: 1rem; font-weight: 600; letter-spacing: .02em; color: var(--db); margin-bottom: 22px; }
.db-story-dark .db-story-no { color: var(--db-hi); }
.db-story .db-story-h { font-size: clamp(2.75rem, 6.4vw, 6rem); font-weight: 600; letter-spacing: -0.055em; line-height: 1.02; color: var(--ink); }
.db-story-dark .db-story-h { color: #fff; }
.db-story-h em { font-style: normal; color: #9A9A94; }
.db-story-dark .db-story-h em { color: #6E6E76; }
.db-story-sub { max-width: 32em; margin: 30px auto 0; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.db-story-dark .db-story-sub { color: var(--on-dark-2); }
.db-center { text-align: center; }

/* ---------- Kreislauf ---------- */
.db-loop { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.db-loop::before { content: ""; position: absolute; left: 12%; right: 12%; top: 40px; height: 2px; background: linear-gradient(90deg, var(--db), var(--brand)); opacity: .3; }
.db-loop::after { content: ""; position: absolute; left: 12%; top: 35px; width: 12px; height: 12px; border-radius: 50%; background: var(--db); box-shadow: 0 0 0 6px rgba(31, 168, 154, .18); animation: db-travel 6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes db-travel { 0% { left: 12%; } 30% { left: 37%; } 55% { left: 62%; } 80%, 100% { left: 87%; } }
.db-loop li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.db-loop-ic { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 14px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--db); animation: db-hl 6s linear infinite; animation-delay: calc(var(--k) * 1.5s); }
.db-loop-ic .icon { width: 30px; height: 30px; }
@keyframes db-hl { 0%, 20% { border-color: var(--db); box-shadow: 0 0 0 6px rgba(31, 168, 154, .14), var(--shadow); } 30%, 100% { border-color: var(--line); } }
.db-loop b { font-size: 1.125rem; letter-spacing: -0.02em; }
.db-loop small { font-size: .9375rem; color: var(--muted); }

/* ---------- App ---------- */
.db-app { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.db-phone { position: relative; justify-self: center; width: min(100%, 300px); aspect-ratio: 9 / 19; padding: 56px 22px 24px; border-radius: 48px; background: linear-gradient(180deg, #F7FBFA, #E6F2EF); border: 8px solid #1C1C21; box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 80px -20px rgba(31, 168, 154, .45); display: flex; flex-direction: column; align-items: center; color: var(--ink); }
.db-notch { position: absolute; left: 50%; top: 12px; width: 90px; height: 26px; margin-left: -45px; border-radius: 16px; background: #0B0B0C; }
.db-phone-h { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.db-orb { position: relative; display: grid; place-items: center; width: 190px; height: 190px; margin: 28px 0 18px; }
.db-orb i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #BDEDE6, var(--db) 60%, #127C71); box-shadow: 0 0 60px rgba(31, 168, 154, .5); animation: db-orb 12s cubic-bezier(.45, 0, .55, 1) infinite; }
/* 4 s ein, 3 s halten, 5 s aus */
@keyframes db-orb { 0% { transform: scale(.55); } 33% { transform: scale(1); } 58% { transform: scale(1); } 100% { transform: scale(.55); } }
.db-phase { position: relative; display: grid; color: #fff; font-size: 1.125rem; }
.db-phase b { grid-area: 1 / 1; text-align: center; opacity: 0; animation: 12s linear infinite; }
.db-phase .p1 { animation-name: db-p1; } .db-phase .p2 { animation-name: db-p2; } .db-phase .p3 { animation-name: db-p3; }
@keyframes db-p1 { 0%, 31% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes db-p2 { 0%, 32% { opacity: 0; } 34%, 56% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes db-p3 { 0%, 57% { opacity: 0; } 59%, 98% { opacity: 1; } 100% { opacity: 0; } }
.db-curve { width: 100%; height: 44px; overflow: visible; }
.db-curve path { fill: none; stroke: var(--db); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 8 6; animation: db-dash 1.5s linear infinite; }
@keyframes db-dash { to { stroke-dashoffset: -28; } }
.db-audio { display: flex; gap: 8px; margin-top: auto; }
.db-audio span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #fff; font-size: .75rem; font-weight: 600; box-shadow: 0 6px 14px -10px rgba(11, 11, 12, .4); }
.db-audio i { width: 14px; height: 10px; background: linear-gradient(90deg, var(--db) 2px, transparent 2px) 0 0 / 4px 100%; animation: db-eq .8s ease-in-out infinite alternate; }
@keyframes db-eq { to { transform: scaleY(.4); } }
.db-app-tiles { grid-template-columns: 1fr 1fr; }
.db-app-tiles .ap-tile:first-child { grid-column: 1 / -1; }
.section-dark .ap-num { background-image: linear-gradient(120deg, #BDEDE6 0%, var(--db-hi) 50%, var(--db) 100%); }

/* ---------- Editor ---------- */
.db-editor, .db-portal { max-width: 1040px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 50px 100px -50px rgba(11, 11, 12, .45); }
.db-ed-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; background: #F1F1EE; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.db-ed-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D6D6CF; }
.db-ed-bar i:nth-child(1) { background: #FF6159; } .db-ed-bar i:nth-child(2) { background: #FFBD2E; } .db-ed-bar i:nth-child(3) { background: #28C941; }
.db-ed-bar span { margin-left: 12px; font-weight: 600; color: var(--ink); }
.db-ed-bar em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--db); }
.db-ed-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.db-ed-lanes { position: relative; padding: 22px; display: grid; gap: 10px; }
.db-lane { position: relative; display: flex; gap: 4px; min-height: 40px; }
.db-phases { min-height: 70px; padding-top: 24px; }
.ph { flex: 0 0 calc(var(--w) * 1%); display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: .75rem; font-weight: 700; color: #fff; }
.ph.in { background: linear-gradient(180deg, #3CC9B8, var(--db)); }
.ph.hold { background: #7FB8B1; }
.ph.out { background: linear-gradient(180deg, #2B7F77, #1E5E58); }
.ph.info { background: #C9C9C2; color: var(--ink); }
.ph.is-ai { position: relative; transition: flex-basis 1s cubic-bezier(.16, 1, .3, 1); box-shadow: 0 0 0 2px var(--brand); }
.db-editor.is-inview .ph.is-ai { animation: db-grow 9s ease-in-out infinite; }
@keyframes db-grow { 0%, 55% { flex-basis: 14%; box-shadow: none; } 62%, 95% { flex-basis: 22%; box-shadow: 0 0 0 2px var(--brand); } 100% { flex-basis: 14%; box-shadow: none; } }
.db-rep { position: absolute; left: 0; top: 0; width: calc(var(--w) * 1% + 8px); height: 18px; border: 2px solid var(--db); border-bottom: 0; border-radius: 8px 8px 0 0; font-size: .6875rem; font-weight: 700; color: var(--db); text-align: center; line-height: 14px; }
.db-wave { align-items: center; padding-left: 78px; border-radius: 10px; background: #F4F4F2; overflow: hidden; }
.db-wave b { position: absolute; left: 12px; font-size: .6875rem; font-weight: 600; color: var(--muted); }
.db-wave::after { content: ""; flex: 1; height: 24px; margin-right: 12px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(0deg, transparent 0 20%, #000 20% 80%, transparent 80%), repeating-linear-gradient(90deg, #000 0 30px, rgba(0,0,0,.4) 30px 44px, #000 44px 90px); mask: repeating-linear-gradient(90deg, #000 0 34px, rgba(0, 0, 0, .35) 34px 48px, #000 48px 96px); opacity: .8; }
.db-wave.m { color: var(--db); } .db-wave.v { color: var(--brand); } .db-wave.s { color: #9A9A94; }
.db-wave.v::after { mask: repeating-linear-gradient(90deg, #000 0 60px, transparent 60px 150px); -webkit-mask: repeating-linear-gradient(90deg, #000 0 60px, transparent 60px 150px); }
.db-wave.s::after { mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 110px); -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 110px); }
.db-playhead { position: absolute; top: 14px; bottom: 14px; left: 22px; width: 2px; background: var(--ink); box-shadow: 0 0 0 1px #fff; animation: db-play 9s linear infinite; }
.db-playhead::before { content: ""; position: absolute; left: -5px; top: -6px; width: 12px; height: 12px; border-radius: 3px 3px 50% 50%; background: var(--ink); }
@keyframes db-play { from { left: 22px; } to { left: calc(100% - 24px); } }
.db-ai { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; border-left: 1px solid var(--line); background: linear-gradient(180deg, #FFF8F4, #FFFFFF); }
.db-ai-h { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; }
.db-ai-orb { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFD2BD, #FF7A45 45%, #D9480F); box-shadow: 0 0 10px rgba(255, 91, 31, .5); }
.db-ai-q { font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.db-ai-diff { font-size: .875rem; color: var(--muted); }
.db-ai-diff s { color: #B42318; } .db-ai-diff b { color: #1E7A3E; }
.db-ai-btn { padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 700; }
.db-editor.is-inview .db-ai-btn { animation: db-press 9s ease-in-out infinite; }
@keyframes db-press { 0%, 52% { transform: none; background: var(--ink); } 55% { transform: scale(.92); } 58%, 95% { transform: none; background: #1E7A3E; } }
.db-ai small { font-size: .75rem; color: var(--muted); }

/* ---------- Signal ---------- */
.db-signal { max-width: 1040px; margin: 0 auto; }
.db-sig { display: block; width: 100%; height: 200px; overflow: visible; }
.db-sig path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.db-sig .raw { stroke: rgba(242, 242, 240, .35); stroke-width: 1.5; }
.db-sig .smooth { stroke: var(--db-hi); stroke-width: 3.5; stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.db-signal.is-inview .smooth { animation: db-draw 5s cubic-bezier(.65, 0, .35, 1) infinite; }
.db-signal.is-inview .raw { animation: db-fade 5s ease-in-out infinite; }
@keyframes db-draw { 0%, 10% { stroke-dashoffset: 1200; } 60%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes db-fade { 0%, 15% { opacity: 1; } 60%, 92% { opacity: .35; } 100% { opacity: 1; } }
.db-sig-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; }
.db-sig-steps li { counter-increment: s; padding: 14px 16px; border-radius: 14px; background: rgba(242, 242, 240, .04); border: 1px solid #26262B; }
.db-sig-steps b { display: block; color: #fff; font-size: 1rem; }
.db-sig-steps b::before { content: counter(s, decimal-leading-zero) "  "; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .75rem; color: var(--db-hi); }
.db-sig-steps span { font-size: .8125rem; color: var(--on-dark-2); }
.db-sig-note { margin-top: 16px; font-size: .75rem; color: #75757D; }
.db-next { margin-top: 20px; }
.db-next .ap-kicker { font-size: .875rem; }

/* ---------- Portal ---------- */
.db-portal { max-width: 860px; margin-bottom: 20px; }
.db-portal-body { padding: 10px 20px 20px; }
.db-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid #EFEFEA; font-size: .9375rem; }
.db-row:last-child { border-bottom: 0; }
.db-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; font-size: .75rem; font-weight: 700; }
.db-task { color: var(--muted); }
.db-state { display: grid; justify-items: end; }
.db-state em { grid-area: 1 / 1; padding: 4px 10px; border-radius: 999px; font-style: normal; font-size: .75rem; font-weight: 700; background: #FBEFD9; color: #A15C07; white-space: nowrap; }
.db-state em.done, .db-state em.n { background: #DDF3E4; color: #1E7A3E; }
.db-state.s1 em { transition: opacity .5s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.db-state.s1 .n { opacity: 0; transform: scale(.7); }
.db-portal.is-inview .db-state.s1 .o { animation: db-out 6s linear infinite; }
.db-portal.is-inview .db-state.s1 .n { animation: db-inn 6s linear infinite; }
@keyframes db-out { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes db-inn { 0%, 45% { opacity: 0; transform: scale(.7); } 52%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Ergebnis ---------- */
.db-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 46rem; margin: 48px auto 0; padding: 0; list-style: none; }
.db-stack li { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .db-app { grid-template-columns: 1fr; }
  .db-ed-body { grid-template-columns: 1fr; }
  .db-ai { border-left: 0; border-top: 1px solid var(--line); }
  .db-sig-steps { grid-template-columns: 1fr 1fr; }
  .db-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .db-loop { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .db-loop::before, .db-loop::after { display: none; }
  .db-app-tiles { grid-template-columns: 1fr; }
  .db-photo { border-radius: 22px; }
  .db-breath i { width: 70px; height: 70px; left: -35px; top: -35px; }
  .db-wave { padding-left: 64px; }
  .ph { font-size: .5625rem; }
  .db-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .db-task { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .db-in { animation: none; opacity: 1; transform: none; }
  .db-breath i, .db-orb i, .db-phase b, .db-curve path, .db-audio i, .db-playhead, .db-loop::after, .db-loop-ic, .db-sig .smooth, .db-sig .raw { animation: none !important; }
  .db-phase .p1 { opacity: 1; } .db-sig .smooth { stroke-dashoffset: 0; }
}
