/* =========================================================
   Success Webdesign – Seite „Leistungen“
   Baut auf css/style.css auf. Der Hero nutzt denselben Aufbau
   wie die Startseite (.hero, .hero-in, .hero-text, .hero-bg).
   ========================================================= */

/* ================= HERO: Bausteine-Stapel ================= */
.ls-stack { position: relative; margin: 0; height: 470px; }
.ls-layer {
  position: absolute; left: 50%; width: min(86%, 440px); height: 92px;
  display: flex; align-items: center; gap: 16px; padding: 0 22px;
  border-radius: 20px; border: 1px solid #232835; background: #12151C; color: #fff;
  transform: translateX(-50%) var(--iso);
  --iso: rotate(-9deg) skewX(16deg) scaleY(.86);
  -webkit-font-smoothing: antialiased; backface-visibility: hidden;
  box-shadow: 0 30px 50px -24px rgba(15,17,21,.55);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), background-color .3s, border-color .3s;
  animation: ls-rise .8s cubic-bezier(.2,.8,.2,1) both;
}
.ls-l1 { top: 320px; background: var(--blue); border-color: var(--blue); animation-delay: .15s; }
.ls-l2 { top: 226px; animation-delay: .3s; }
.ls-l3 { top: 132px; animation-delay: .45s; }
.ls-l4 { top: 38px; animation-delay: .6s; }
.ls-layer:hover { transform: translateX(-50%) translateY(-16px) var(--iso); border-color: #7AA2FF; }
.ls-l-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.ls-l1 .ls-l-ic { background: rgba(255,255,255,.18); }
.ls-l-ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ls-l-t { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.ls-l-k { margin-left: auto; font-family: var(--mono); font-size: 13px; color: #7AA2FF; }
.ls-l1 .ls-l-k { color: #DDE6FF; }
.ls-stack-cap { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.ls-stack-cap b { color: var(--ink); }
@keyframes ls-rise { from { opacity: 0; margin-top: 30px; } to { opacity: 1; margin-top: 0; } }

/* ================= Gemeinsame Kopfzeilen ================= */
.ls-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.ls-head-sub { margin: 16px 0 0; color: var(--muted); font-size: 17px; }

/* ================= DETAIL-EXPLORER ================= */
.ls-explore { padding-block: clamp(80px, 10vw, 136px); background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ls-explore-in { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.ls-explore-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.ls-tabs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 110px; }
.ls-tab {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 18px 14px 14px; border-radius: 18px; border: 1px solid transparent; background: transparent;
  font: inherit; color: var(--muted); transition: background-color .25s, border-color .25s, color .25s;
}
.ls-tab:hover { background: #fff; color: var(--ink); }
.ls-tab[aria-selected="true"] { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 18px 40px -28px rgba(15,17,21,.3); }
.ls-tab-ic { width: 46px; height: 46px; border-radius: 14px; background: #E6E9EF; display: grid; place-items: center; flex: none; transition: background-color .25s; }
.ls-tab-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.ls-tab[aria-selected="true"] .ls-tab-ic { background: var(--blue); }
.ls-tab[aria-selected="true"] .ls-tab-ic svg { stroke: #fff; }
.ls-tab-t { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.ls-tab-no { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: #9AA0AB; }
.ls-tab[aria-selected="true"] .ls-tab-no { color: var(--blue); }

.ls-panes { min-width: 0; }
.ls-pane {
  background: var(--ink); color: #C3C8D2; border-radius: 28px; padding: clamp(28px, 4vw, 48px);
  position: relative; overflow: hidden; isolation: isolate; animation: ls-pane .45s ease both;
}
.ls-pane::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(47,98,255,.35), transparent 65%); }
.ls-pane-k { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; color: #7AA2FF; }
.ls-pane h3 { margin: 0 0 12px; color: #fff; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.1; }
.ls-pane-lead { margin: 0 0 28px; font-size: 17px; color: #A9AFBB; max-width: 34em; }
.ls-check { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.ls-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #E3E6EC; }
.ls-check svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: rgba(47,98,255,.2); fill: none; stroke: #7AA2FF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.ls-fit { display: flex; gap: 16px; align-items: baseline; padding-top: 22px; border-top: 1px solid #232835; }
.ls-fit span { font-family: var(--mono); font-size: 12.5px; color: #7D8494; white-space: nowrap; }
.ls-fit p { margin: 0; font-size: 15.5px; color: #C3C8D2; }
@keyframes ls-pane { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ================= PAKETE ================= */
.ls-pkgs { padding-block: clamp(80px, 10vw, 136px); }
.ls-pkgs-in { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.ls-pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.ls-pkg {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px;
  border-radius: 26px; border: 1px solid var(--line); background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ls-pkg:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(15,17,21,.35); }
.ls-pkg.is-featured { background: var(--ink); border-color: var(--ink); color: #C3C8D2; }
.ls-pkg-badge { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 999px; padding: 5px 11px; }
.ls-pkg-tag { margin: 0 0 8px; font-family: var(--mono); font-size: 13px; color: var(--blue); }
.ls-pkg.is-featured .ls-pkg-tag { color: #7AA2FF; }
.ls-pkg h3 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.03em; color: var(--ink); }
.ls-pkg.is-featured h3 { color: #fff; }
.ls-pkg-desc { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.ls-pkg.is-featured .ls-pkg-desc { color: #A9AFBB; }
.ls-pkg ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ls-pkg li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--text); }
.ls-pkg.is-featured li { color: #E3E6EC; }
.ls-pkg li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.ls-pkg.is-featured li::before { border-color: #7AA2FF; }
.ls-pkg-price { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.ls-pkg.is-featured .ls-pkg-price { border-top-color: #232835; }
.ls-pkg-price span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.ls-pkg-price b { font-size: 18px; color: var(--ink); }
.ls-pkg.is-featured .ls-pkg-price b { color: #fff; }
.ls-pkg .btn { width: 100%; }

/* ================= FAQ ================= */
.ls-faq { padding-block: 0 clamp(80px, 10vw, 136px); }
.ls-faq-in {
  max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start;
}
.ls-faq-head { position: sticky; top: 110px; }
.ls-faq-head > p:not(.sx-label) { margin: 16px 0 24px; color: var(--muted); font-size: 17px; }
.ls-faq-list { border-top: 1px solid var(--line); }
.ls-faq-item { border-bottom: 1px solid var(--line); }
.ls-faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.01em;
}
.ls-faq-item summary::-webkit-details-marker { display: none; }
.ls-faq-item summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color .3s, border-color .3s, transform .3s; }
.ls-faq-item summary i::before, .ls-faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .3s, background-color .3s; }
.ls-faq-item summary i::after { transform: rotate(90deg); }
.ls-faq-item[open] summary i { background: var(--blue); border-color: var(--blue); transform: rotate(180deg); }
.ls-faq-item[open] summary i::before, .ls-faq-item[open] summary i::after { background: #fff; }
.ls-faq-item[open] summary i::after { transform: rotate(0deg); }
.ls-faq-item summary:hover { color: var(--blue); }
.ls-faq-item p { margin: 0 0 24px; padding-right: 54px; color: var(--muted); font-size: 16px; max-width: 40em; }

/* ================= NÄCHSTER SCHRITT ================= */
.ls-next { padding: 0 max(12px, env(safe-area-inset-right, 0px)) clamp(24px, 4vw, 48px) max(12px, env(safe-area-inset-left, 0px)); }
.ls-next-card {
  max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 32px; align-items: center;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 6vw, 96px); border-radius: 40px; text-decoration: none;
  background: var(--blue); color: #fff; position: relative; overflow: hidden; isolation: isolate;
  transition: background-color .3s;
}
.ls-next-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.16) 1px, transparent 1.4px) 0 0 / 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.ls-next-card:hover { background: var(--blue-dark); }
.ls-next .sx-label { color: #DDE6FF; }
.ls-next .sx-label::before { color: #B9C9FF; }
.ls-next-text { display: block; }
.ls-next-title { display: block; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; max-width: 18em; text-wrap: balance; }
.ls-next-code { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; white-space: pre; background: rgba(15,17,21,.35); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 18px 22px; color: #E3E6EC; }
.ls-next-code .k { color: #BFD0FF; } .ls-next-code .s { color: #B8F0C8; } .ls-next-code .p { color: #9FB2EE; }
.ls-next-go { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-size: 26px; font-weight: 700; transition: transform .35s; }
.ls-next-card:hover .ls-next-go { transform: translateX(6px) rotate(-45deg); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .ls-next-code { display: none; }
  .ls-next-card { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 960px) {
  .ls-explore-grid { grid-template-columns: minmax(0, 1fr); }
  .ls-tabs { position: static; gap: 8px; }
  .ls-tab { min-width: 0; padding: 12px 18px 12px 12px; border-color: var(--line); background: rgba(255,255,255,.6); }
  .ls-tab-t { min-width: 0; overflow-wrap: anywhere; }
  .ls-pkg-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .ls-faq-in { grid-template-columns: minmax(0, 1fr); }
  .ls-faq-head { position: static; }
  .ls-stack { height: 400px; }
}
@media (max-width: 600px) {
  .ls-stack { height: 330px; }
  .ls-layer { height: 74px; padding: 0 16px; gap: 12px; border-radius: 16px; }
  .ls-l1 { top: 244px; } .ls-l2 { top: 172px; } .ls-l3 { top: 100px; } .ls-l4 { top: 28px; }
  .ls-layer { width: 84%; }
  .ls-stack { height: 350px; }
  .ls-l-ic { width: 38px; height: 38px; border-radius: 11px; }
  .ls-l-t { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ls-l-k { display: none; }
  .ls-check { grid-template-columns: minmax(0, 1fr); }
  .ls-fit { flex-direction: column; gap: 6px; }
  .ls-faq-item summary { font-size: 16.5px; }
  .ls-faq-item p { padding-right: 0; }
  .ls-next-card { border-radius: 28px; gap: 20px; }
  .ls-next-go { width: 52px; height: 52px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-layer, .ls-pane { animation: none; }
}
