/* =========================================================================
   Stevora Treuhand Software – nur diese Seite (/treuhand-software/)
   Baut auf /assets/style.css auf, ändert nichts an den übrigen Seiten.
   ========================================================================= */

/* ---- Hero ------------------------------------------------------------- */
.ts-hero { padding-block: clamp(110px, 14vw, 170px) clamp(40px, 6vw, 80px); }
.ts-hero .split { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.ts-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); margin: 22px 0 24px; max-width: 14ch; }
.ts-hero .lede { margin-bottom: 34px; }
.ts-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.ts-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet); background: var(--bg-card);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 7px 14px 7px 12px;
}
.ts-badge i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); flex: none;
  box-shadow: 0 0 0 0 rgba(139, 93, 189, .6); animation: ts-puls 2.4s infinite;
}
@keyframes ts-puls { 0% { box-shadow: 0 0 0 0 rgba(139,93,189,.55); } 70%,100% { box-shadow: 0 0 0 9px rgba(139,93,189,0); } }
@media (prefers-reduced-motion: reduce) { .ts-badge i { animation: none; } }

.ts-hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px;
  font-size: 0.9rem; color: var(--muted); }
.ts-hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.ts-hero-facts svg { width: 16px; height: 16px; color: var(--violet); flex: none; }

/* ---- App-Fenster (macOS-Rahmen um Screenshots) ------------------------ */
.ts-window {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -40px rgba(26, 15, 46, .45), 0 12px 30px -18px rgba(26, 15, 46, .25);
}
.ts-window-bar {
  display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  background: #ECE9E3; border-bottom: 1px solid var(--line);
}
.ts-window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #D6D1C8; }
.ts-window-bar span:nth-child(1) { background: #EE6A5F; }
.ts-window-bar span:nth-child(2) { background: #F5BE4F; }
.ts-window-bar span:nth-child(3) { background: #62C554; }
.ts-window-bar b { flex: 1; text-align: center; margin-right: 50px; font-weight: 500;
  font-size: 0.74rem; color: var(--muted-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-window img { width: 100%; height: auto; aspect-ratio: 1600 / 1025; }

.ts-hero-visual { position: relative; }
.ts-hero-visual::before {
  content: ""; position: absolute; inset: -8% -6% -10% 8%; z-index: -1; border-radius: 40px;
  background: radial-gradient(60% 60% at 60% 40%, rgba(139, 93, 189, .22), transparent 70%);
}

/* ---- Bänder ------------------------------------------------------------ */
.ts-band { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* ---- Argumente (Problem → Lösung) ---------------------------------------- */
.ts-why .card h3 { font-size: 1.35rem; }

/* ---- Funktionen -------------------------------------------------------- */
.ts-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ts-feature { background: var(--bg-card); padding: clamp(24px, 2.8vw, 34px); }
.ts-feature .card-icon { margin-bottom: 18px; }
.ts-feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.ts-feature p { font-size: 0.93rem; }
.ts-feature .tag-row { margin-top: 16px; }
.ts-feature .tag.is-soon { color: var(--violet); border-color: rgba(91, 44, 135, .35); }

/* ---- Screenshot-Galerie ---------------------------------------------- */
.ts-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ts-tabs button {
  font: 600 0.9rem var(--font-body); color: var(--ink);
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 9px 18px; min-height: 42px; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.ts-tabs button:hover { border-color: var(--violet); }
.ts-tabs button[aria-selected="true"] { background: var(--ink); color: #F7F4EE; border-color: var(--ink); }
.ts-shot[hidden] { display: none; }
.ts-shot figcaption { margin-top: 16px; font-size: 0.92rem; color: var(--muted); max-width: 70ch; }

/* ---- Sicherheit -------------------------------------------------------- */
.ts-secure { background: var(--ink); color: rgba(251, 249, 244, .78); border-radius: calc(var(--radius) + 8px);
  padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden; }
.ts-secure::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 90% 0%, rgba(139, 93, 189, .35), transparent 60%); }
.ts-secure > * { position: relative; }
.ts-secure h2 { color: #FBF9F4; margin: 20px 0 18px; }
.ts-secure h2 em { color: #D9C6EE; }
.ts-secure .eyebrow { color: #D9C6EE; }
.ts-secure .lede { color: rgba(251, 249, 244, .78); }
.ts-secure .feature-list li { color: rgba(251, 249, 244, .74); border-top-color: rgba(251, 249, 244, .14); }
.ts-secure .feature-list li strong { color: #FBF9F4; }

/* ---- Zielgruppen ------------------------------------------------------- */
.ts-audience .card ul { margin-top: 16px; display: grid; gap: 8px; font-size: 0.95rem; }
.ts-audience .card li { padding-left: 22px; position: relative; }
.ts-audience .card li::before { content: "→"; position: absolute; left: 0; color: var(--violet); font-family: var(--font-mono); }

/* ---- Preis ------------------------------------------------------------- */
.ts-price { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.ts-price .card { display: flex; flex-direction: column; }
.ts-price .card.is-main { border-color: rgba(91, 44, 135, .4); background:
  radial-gradient(100% 70% at 100% 0%, rgba(139, 93, 189, .12), transparent 60%), var(--bg-card); }
.ts-price .amount { font-family: var(--font-display); color: var(--ink); font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.05; margin: 6px 0 14px; }
.ts-price .amount small { display: block; font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.ts-price .feature-list { margin-top: 10px; flex: 1; }
.ts-price .feature-list li { padding-block: 12px; font-size: 0.95rem; }
.ts-price .feature-list li::before { top: calc(12px + 0.62em); }
.ts-price .btn { margin-top: 22px; align-self: flex-start; }

/* ---- FAQ --------------------------------------------------------------- */
.ts-faq { max-width: 860px; border-top: 1px solid var(--line); }
.ts-faq details { border-bottom: 1px solid var(--line); }
.ts-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; color: var(--ink); font-weight: 600; font-size: 1.05rem; min-height: 44px;
}
.ts-faq summary::-webkit-details-marker { display: none; }
.ts-faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--violet);
  transition: transform .3s var(--ease); flex: none; }
.ts-faq details[open] summary::after { transform: rotate(45deg); }
.ts-faq details p { padding: 0 0 24px; font-size: 0.98rem; }

/* ---- Anfrageformular --------------------------------------------------- */
.ts-form .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 15px 44px 15px 16px; color: var(--ink); font: 1rem var(--font-body); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B2C87' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.ts-form .field select:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(124,77,255,.22); }
.ts-form .field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.ts-form textarea { min-height: 120px; }
.ts-form .opt-label { font-weight: 400; color: var(--muted-dim); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.8rem; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .ts-hero .split { grid-template-columns: 1fr; }
  .ts-hero h1 { max-width: 18ch; }
  .ts-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-price { grid-template-columns: 1fr; }
  .ts-badge { font-size: 0.74rem; }
}
@media (max-width: 620px) {
  .ts-features { grid-template-columns: 1fr; }
  .ts-form .field-row { grid-template-columns: 1fr; }
  .ts-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none; }
  .ts-tabs::-webkit-scrollbar { display: none; }
  .ts-tabs button { flex: none; }
  .ts-window-bar b { margin-right: 0; }
}

/* Hero-Bild auf grossen Bildschirmen grösser, ragt bis an den Rand des Inhaltsbereichs */
@media (min-width: 981px) {
  .ts-hero .split { grid-template-columns: 0.78fr 1.22fr; gap: clamp(32px, 4vw, 56px); }
  .ts-hero-visual { margin-right: calc(var(--gutter) * -0.6); }
}

/* ---- Pakete ------------------------------------------------------------ */
.ts-early {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px 14px 14px; margin-bottom: 28px; max-width: max-content;
  background: var(--bg-card); border: 1px dashed rgba(91, 44, 135, .45); border-radius: var(--radius-pill);
}
.ts-early p { max-width: none; font-size: 0.95rem; }
.ts-early-pct {
  font: 600 0.95rem var(--font-mono); color: #FBF9F4; background: var(--grad);
  padding: 6px 12px; border-radius: var(--radius-pill); flex: none;
}

.ts-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.ts-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 3.4vw, 44px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.ts-plan:hover { transform: translateY(-4px); border-color: var(--line-strong);
  box-shadow: 0 30px 60px -36px rgba(26, 15, 46, .35); }
.ts-plan header { margin-bottom: 26px; }
.ts-plan-kicker { font: 500 0.74rem var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.ts-plan h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

.ts-plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink); max-width: none;
  padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ts-plan-price .cur { font: 500 0.9rem var(--font-mono); letter-spacing: 0.08em; color: var(--muted); }
.ts-plan-price .val { font-family: var(--font-display); font-weight: 460; font-size: clamp(3.2rem, 6vw, 4.6rem); line-height: 0.95; letter-spacing: -0.03em; }
.ts-plan-price .per { font-size: 0.92rem; color: var(--muted); }

.ts-plan-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 18px; }
.ts-plan-meta li { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; color: var(--muted); }
.ts-plan-meta b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--ink); line-height: 1.2; }

.ts-checks { display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.ts-checks li { position: relative; padding-left: 30px; font-size: 0.97rem; color: var(--ink); }
.ts-checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 19px; height: 19px; border-radius: 50%;
  background: center / 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B2C87' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"),
    rgba(91, 44, 135, .1);
  border: 1px solid rgba(91, 44, 135, .25);
}

.ts-plan-upd { max-width: none; font-size: 0.92rem; color: var(--muted); padding: 14px 16px; margin-bottom: 22px;
  border-radius: 12px; border: 1px solid var(--line); }
.ts-plan-upd span { display: block; font: 500 0.68rem var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 4px; }
.ts-plan-upd b { color: var(--ink); font-weight: 600; }
.ts-plan .btn { justify-content: center; width: 100%; }

/* hervorgehobenes Paket: dunkel */
.ts-plan.is-featured {
  background: radial-gradient(90% 60% at 100% 0%, rgba(139, 93, 189, .38), transparent 60%), var(--ink);
  border-color: transparent; color: rgba(251, 249, 244, .75);
  box-shadow: 0 40px 80px -40px rgba(26, 15, 46, .6);
}
.ts-plan.is-featured:hover { border-color: transparent; box-shadow: 0 46px 90px -40px rgba(26, 15, 46, .7); }
.ts-plan.is-featured h3, .ts-plan.is-featured .ts-plan-price, .ts-plan.is-featured .ts-checks li,
.ts-plan.is-featured .ts-plan-meta b, .ts-plan.is-featured .ts-plan-upd b { color: #FBF9F4; }
.ts-plan.is-featured .ts-plan-kicker { color: #D9C6EE; }
.ts-plan.is-featured .ts-plan-price { border-bottom-color: rgba(251, 249, 244, .14); }
.ts-plan.is-featured .ts-plan-price .cur, .ts-plan.is-featured .ts-plan-price .per,
.ts-plan.is-featured .ts-plan-meta li, .ts-plan.is-featured .ts-plan-upd { color: rgba(251, 249, 244, .7); }
.ts-plan.is-featured .ts-plan-meta li { background: rgba(251, 249, 244, .07); }
.ts-plan.is-featured .ts-plan-upd { border-color: rgba(251, 249, 244, .16); }
.ts-plan.is-featured .ts-plan-upd span { color: rgba(251, 249, 244, .5); }
.ts-plan.is-featured .ts-checks li::before { background-color: rgba(251, 249, 244, .1); border-color: rgba(217, 198, 238, .35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9C6EE' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.ts-plan.is-featured .btn-primary { background: #F7F4EE; color: var(--ink); }
.ts-plan.is-featured .btn-primary:hover { background: #fff; }
.ts-plan-flag {
  position: absolute; top: clamp(28px, 3.4vw, 44px); right: clamp(28px, 3.4vw, 44px);
  font: 500 0.68rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: #E8DDF0; padding: 6px 12px; border-radius: var(--radius-pill);
}

/* Update-Ablauf */
.ts-upd-flow { list-style: none; padding: 0; margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ts-upd-flow li { background: var(--bg-soft); padding: 22px 24px; display: flex; gap: 16px; }
.ts-upd-flow span { font: 500 0.78rem var(--font-mono); color: var(--violet); letter-spacing: 0.12em; padding-top: 3px; }
.ts-upd-flow p { font-size: 0.92rem; }
.ts-upd-flow strong { display: block; margin-bottom: 4px; }
.ts-price-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted-dim); }

@media (max-width: 900px) {
  .ts-plans { grid-template-columns: 1fr; }
  .ts-plan.is-featured { order: -1; }
  .ts-upd-flow { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ts-plan-flag { position: static; align-self: flex-start; margin-bottom: 18px; }
  .ts-early { border-radius: 18px; }
}

/* ---- Testversion ------------------------------------------------------- */
.ts-trial-list { display: grid; gap: 10px; margin-top: 26px; }
.ts-trial-list li { position: relative; padding-left: 30px; color: var(--ink); font-size: 0.98rem; }
.ts-trial-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 19px; height: 19px; border-radius: 50%;
  border: 1px solid rgba(91, 44, 135, .25);
  background: center / 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B2C87' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"),
    rgba(91, 44, 135, .1);
}

.ts-plan-trial { display: block; text-align: center; margin-top: 14px; font-size: 0.9rem; font-weight: 600;
  color: var(--violet); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.ts-plan.is-featured .ts-plan-trial { color: #D9C6EE; }

/* Umschalter Anliegen */
.ts-seg { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.ts-seg legend { font: 0.68rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.ts-seg-opts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 4px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.ts-seg label { position: relative; cursor: pointer; }
.ts-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ts-seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px 10px;
  border-radius: 10px; font-weight: 600; font-size: 0.92rem; color: var(--muted); transition: background .25s var(--ease), color .25s var(--ease); }
.ts-seg label:hover span { color: var(--ink); }
.ts-seg input:checked + span { background: var(--ink); color: #F7F4EE; box-shadow: 0 6px 16px -10px rgba(26, 15, 46, .6); }
.ts-seg input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (max-width: 480px) {
  .ts-seg span { white-space: nowrap; font-size: 0.86rem; padding: 8px 6px; }
}

/* ---- Lizenzmodelle: Umschalter, Baukasten, immer gültig ---------------- */
.ts-models {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px;
  max-width: 720px; margin: 0 0 30px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px;
}
.ts-models button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; min-height: 56px;
  border: 0; border-radius: 16px; background: transparent; color: var(--muted); cursor: pointer; font: inherit;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.ts-models button b { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; color: var(--ink); }
.ts-models button small { font-size: 0.78rem; }
.ts-models button:hover b { color: var(--violet); }
.ts-models button[aria-selected="true"] { background: var(--ink); color: rgba(251, 249, 244, .7); box-shadow: 0 10px 24px -14px rgba(26, 15, 46, .7); }
.ts-models button[aria-selected="true"] b { color: #FBF9F4; }
.ts-models button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.ts-model-panel { animation: tsFade .45s var(--ease); }
@keyframes tsFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ts-model-panel { animation: none; } }

.ts-bau { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ts-bau-list { display: grid; gap: 12px; }
.ts-mod {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 22px 24px; background: var(--bg-card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
  cursor: pointer; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.ts-mod:hover { border-color: var(--line-strong); }
.ts-mod h3 { font-size: 1.2rem; margin-bottom: 4px; }
.ts-mod p { font-size: 0.92rem; color: var(--muted); max-width: none; }
.ts-mod .ts-plan-kicker { margin-bottom: 6px; }
.ts-mod-price { font: 500 0.95rem var(--font-mono); color: var(--ink) !important; white-space: nowrap; }
.ts-mod.is-base { grid-template-columns: minmax(0, 1fr) auto; cursor: default; background: var(--grad-soft); border-color: rgba(91, 44, 135, .25); }
.ts-mod input { position: absolute; opacity: 0; width: 1px; height: 1px; clip-path: inset(50%); pointer-events: none; }
.ts-mod-box {
  width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--bg);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.ts-mod input:checked ~ .ts-mod-box {
  border-color: var(--violet);
  background: center / 15px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF9F4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"),
    var(--violet);
}
.ts-mod:has(input:checked) { border-color: var(--violet); box-shadow: 0 14px 30px -22px rgba(91, 44, 135, .7); }
.ts-mod input:focus-visible ~ .ts-mod-box { outline: 2px solid var(--violet); outline-offset: 2px; }

.ts-bau-sum {
  position: sticky; top: 96px; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 36px); border-radius: calc(var(--radius) + 6px);
  background: var(--ink); color: rgba(251, 249, 244, .7);
}
.ts-bau-sum .ts-plan-kicker { color: #D9C6EE; }
.ts-bau-sum .ts-plan-price { color: #FBF9F4; border-bottom-color: rgba(251, 249, 244, .14); }
.ts-bau-sum .ts-plan-price .cur, .ts-bau-sum .ts-plan-price .per { color: rgba(251, 249, 244, .7); }
.ts-bau-picked { margin: 14px 0 18px; font-size: 0.92rem; color: #D9C6EE; max-width: none; }
.ts-bau-sum .ts-checks li { color: #FBF9F4; }
.ts-bau-sum .ts-checks li::before { background-color: rgba(251, 249, 244, .1); border-color: rgba(217, 198, 238, .35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9C6EE' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.ts-bau-hint { font-size: 0.88rem; margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(217, 198, 238, .45); max-width: none; }
.ts-bau-hint b { color: #FBF9F4; }
.ts-bau-sum .btn { justify-content: center; width: 100%; background: #F7F4EE; color: var(--ink); }
.ts-bau-sum .btn:hover { background: #fff; }
.ts-bau-sum .ts-plan-trial { color: #D9C6EE; }
.ts-bau-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); max-width: 70ch; }

.ts-always {
  list-style: none; padding: 0; margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.ts-always li { background: var(--bg-card); padding: 20px 22px; font-size: 0.9rem; color: var(--muted); }
.ts-always strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 0.97rem; }

@media (max-width: 900px) {
  .ts-bau { grid-template-columns: 1fr; }
  .ts-bau-sum { position: static; }
  .ts-always { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ts-models { border-radius: 18px; }
  .ts-models button { padding: 10px 4px; border-radius: 13px; }
  .ts-models button b { font-size: 0.98rem; }
  .ts-models button small { display: none; }
  .ts-mod { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 14px; }
  .ts-mod-price { grid-column: 2; }
  .ts-mod.is-base .ts-mod-price { grid-column: 1; }
  .ts-always { grid-template-columns: 1fr; }
}

/* ---- Preise v2: drei Abo-Karten, Zusatzoptionen, Lifetime ------------- */
.ts-plans.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-plans.is-three .ts-plan { padding: clamp(26px, 2.6vw, 36px); }
.ts-plans.is-three .ts-plan-price .val { font-size: clamp(3rem, 5vw, 4rem); }
.ts-plans.is-three .ts-plan-meta b { font-size: 1.2rem; }
.ts-addons {
  display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; margin-top: 22px; padding: 18px 24px;
  background: var(--bg-card); border: 1px dashed rgba(91, 44, 135, .4); border-radius: var(--radius);
}
.ts-addons .ts-plan-kicker { margin: 0; }
.ts-addons ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ts-addons li { font-size: 0.95rem; color: var(--muted); }
.ts-addons li span { color: var(--ink); margin-right: 10px; }
.ts-addons li b { font: 500 0.95rem var(--font-mono); color: var(--violet); }

.ts-life { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.ts-upd-flow.is-stacked { grid-template-columns: 1fr; margin-top: 0; align-content: stretch; }
.ts-upd-flow.is-stacked li { align-items: center; }
.ts-val-text { font-size: clamp(2.2rem, 3.6vw, 3rem) !important; }
.ts-always.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1080px) and (min-width: 901px) {
  .ts-plans.is-three .ts-plan-meta { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ts-plans.is-three, .ts-life, .ts-always.is-three { grid-template-columns: 1fr; }
  .ts-plans.is-three .ts-plan.is-featured { order: 0; }
  .ts-addons { flex-direction: column; align-items: flex-start; }
  .ts-addons ul { flex-direction: column; }
}
.ts-checks { align-content: start; }
.ts-plans.is-three .ts-plan-flag { position: static; align-self: flex-start; margin-bottom: 16px; }
.ts-life { align-items: start; }
@media (max-width: 560px) {
  .ts-addons li span { display: block; margin: 0 0 2px; }
}
@media (max-width: 900px) {
  .ts-plans.is-three, .ts-life, .ts-always.is-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .ts-plan-meta b { font-size: 1.15rem; overflow-wrap: anywhere; }
}

/* ---- Baukasten v3: Grösse wählen, Preiszeilen -------------------------- */
.ts-size { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.ts-step {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px 22px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
}
.ts-step h3 { font-size: 1.2rem; margin-bottom: 4px; }
.ts-step p { font-size: 0.88rem; color: var(--muted); max-width: none; }
.ts-step-ctrl { display: flex; align-items: center; gap: 6px; padding: 5px; background: var(--bg-soft); border-radius: var(--radius-pill); align-self: flex-start; }
.ts-step-ctrl button {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-card); color: var(--ink);
  font: 500 1.25rem/1 var(--font-body); cursor: pointer; box-shadow: 0 1px 0 var(--line);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.ts-step-ctrl button:hover:not(:disabled) { background: var(--ink); color: #FBF9F4; }
.ts-step-ctrl button:disabled { opacity: .35; cursor: default; }
.ts-step-ctrl button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.ts-step-ctrl output { min-width: 3ch; text-align: center; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }

.ts-bau-lines { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 8px; }
.ts-bau-lines li { display: flex; justify-content: space-between; gap: 14px; font-size: 0.9rem; color: rgba(251, 249, 244, .75); }
.ts-bau-lines li b { font: 500 0.85rem var(--font-mono); color: #FBF9F4; white-space: nowrap; }
.ts-bau-lines li:first-child span { color: #D9C6EE; }

@media (max-width: 560px) {
  .ts-size { grid-template-columns: 1fr; }
  .ts-step { flex-direction: row; align-items: center; padding: 16px 18px; }
  .ts-step-ctrl { align-self: center; flex: none; }
}

/* ---- AGB-Zustimmung beim Kauf ----------------------------------------- */
.ts-agb { margin: 4px 0 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.ts-agb-check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.95rem; color: var(--ink); line-height: 1.45; }
.ts-agb-check input { position: absolute; opacity: 0; width: 1px; height: 1px; clip-path: inset(50%); }
.ts-agb-box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--bg-card);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.ts-agb-check input:checked + .ts-agb-box {
  border-color: var(--violet);
  background: center / 13px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF9F4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"),
    var(--violet);
}
.ts-agb-check input:focus-visible + .ts-agb-box { outline: 2px solid var(--violet); outline-offset: 2px; }
.ts-agb-check a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.ts-agb-hint { margin: 10px 0 0 34px; font-size: 0.86rem; color: var(--magenta); max-width: none; }
.ts-form button[type=submit]:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.ts-agb-note { margin: 12px 0 0 34px; font-size: 0.86rem; color: var(--muted); line-height: 1.5; max-width: none; }
