/* ============================================================
   GmbH-Steuer – vier strukturell UNTERSCHIEDLICHE Layouts
   zwischen Header und FAQ:
   ① Strategische Hebel   → alternierende Zickzack-Reihen
   ② Sechs Fragen         → vertikale Timeline
   ③ GmbH-Compliance      → strukturierte Tabelle
   ④ Risiken & Prüffelder → Split-Karten (Risiko / Absicherung)
   ============================================================ */

/* ============================================================
   ① STRATEGISCHE HEBEL — alternierende Zickzack-Reihen
   ============================================================ */
.lever-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.lever-row {
  display: grid;
  grid-template-columns: clamp(240px, 30%, 340px) 1fr;
  align-items: stretch;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background: #fff;
  box-shadow: 0 6px 20px -14px rgba(20, 33, 61, 0.18);
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.lever-row.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1) var(--lv-delay,0s),
              transform 0.7s cubic-bezier(0.2,0.8,0.2,1) var(--lv-delay,0s),
              box-shadow 0.5s ease;
}
.lever-row.reveal.is-visible { opacity: 1; transform: translateY(0); }
.lever-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -24px rgba(20, 33, 61, 0.32);
}
/* every 2nd row: flip — stat panel goes right */
.lever-row:nth-child(even) {
  grid-template-columns: 1fr clamp(240px, 30%, 340px);
}
.lever-row:nth-child(even) .lever-stat { order: 2; }

/* --- Stat panel (navy) --- */
.lever-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(150deg, #14213D 0%, #1f3258 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.lever-stat::after {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  top: -40%;
  left: -25%;
  background: radial-gradient(circle, rgba(212,179,106,0.18) 0%, transparent 60%);
  z-index: -1;
  transition: transform 0.6s ease;
}
.lever-row:hover .lever-stat::after { transform: scale(1.15) translate(6%, 6%); }

.lever-stat__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(212, 179, 106, 0.16);
  color: #D4B36A;
  margin-bottom: 0.6rem;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1), background 0.4s ease;
}
.lever-stat__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.lever-row:hover .lever-stat__icon {
  transform: rotate(-6deg) scale(1.06);
  background: rgba(212, 179, 106, 0.28);
}
.lever-stat__num {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-size: clamp(2.6rem, 5.5vw, 3.6rem);
  line-height: 0.95;
  color: #D4B36A;
  display: inline-block;
  padding-right: 0.12em;
}
.lever-stat__unit {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: #ffffff;
}

/* --- Body (text) --- */
.lever-body {
  padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1.4rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lever-body__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #B08856;
  margin-bottom: 0.5rem;
}
.lever-body h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: #14213D;
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
}
.lever-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5366;
  margin: 0;
}
.lever-body p strong { color: #14213D; font-weight: 600; }

@media (max-width: 680px) {
  .lever-row,
  .lever-row:nth-child(even) { grid-template-columns: 1fr; }
  .lever-row:nth-child(even) .lever-stat { order: 0; }
  .lever-stat { flex-direction: row; align-items: center; gap: 1rem; }
  .lever-stat__icon { margin-bottom: 0; }
}

/* ============================================================
   ② SECHS FRAGEN — vertikale Timeline
   ============================================================ */
.qtimeline {
  max-width: 820px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}
.qstep {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  position: relative;
  padding-bottom: clamp(1rem, 2vw, 1.4rem);
}
.qstep:last-child { padding-bottom: 0; }

/* rail with number node + connecting line */
.qstep__rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.qstep:not(:last-child) .qstep__rail::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: -2px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(212,179,106,0.55) 0%, rgba(212,179,106,0.15) 100%);
}
.qstep__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #14213D 0%, #1f3258 100%);
  color: #D4B36A;
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-size: 1.25rem;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 5px #fff, 0 6px 14px -6px rgba(20,33,61,0.4);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), background 0.4s ease;
}
.qstep:hover .qstep__num,
.qstep:focus-within .qstep__num {
  transform: scale(1.12);
  background: linear-gradient(135deg, #B08856 0%, #D4B36A 100%);
  color: #14213D;
}

.qstep__card {
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 14px;
  padding: 1.1rem 1.35rem 1.2rem;
  box-shadow: 0 5px 16px -12px rgba(20, 33, 61, 0.14);
  transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 0.45s ease, border-color 0.4s ease;
}
.qstep.reveal .qstep__card,
.qstep.reveal .qstep__num {
  opacity: 0;
  transform: translateX(18px);
}
.qstep.reveal .qstep__num { transform: scale(0.6); }
.qstep.reveal.is-visible .qstep__card {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s cubic-bezier(0.2,0.8,0.2,1) var(--lv-delay,0s),
              transform 0.6s cubic-bezier(0.2,0.8,0.2,1) var(--lv-delay,0s),
              box-shadow 0.45s ease, border-color 0.4s ease;
}
.qstep.reveal.is-visible .qstep__num {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease var(--lv-delay,0s),
              transform 0.55s cubic-bezier(0.34,1.56,0.64,1) var(--lv-delay,0s),
              background 0.4s ease;
}
.qstep:hover .qstep__card,
.qstep:focus-within .qstep__card {
  transform: translateX(4px);
  border-color: rgba(212, 179, 106, 0.45);
  box-shadow: 0 18px 38px -20px rgba(20, 33, 61, 0.28);
}

.qstep__q {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1.06rem;
  font-weight: 600;
  color: #14213D;
  margin: 0 0 0.4rem;
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.qstep__q svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none; stroke: #B08856; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
.qstep:hover .qstep__q svg { transform: scale(1.15) rotate(8deg); }
.qstep__a {
  font-size: 0.93rem;
  line-height: 1.58;
  color: #4b5366;
  margin: 0 0 0.85rem;
}
.qstep__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #B08856;
  text-decoration: none;
  transition: gap 0.35s ease, color 0.3s ease;
}
.qstep__link svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
.qstep:hover .qstep__link { color: #14213D; gap: 0.7rem; }
.qstep:hover .qstep__link svg { transform: translateX(3px); }

@media (max-width: 540px) {
  .qstep { grid-template-columns: 40px 1fr; gap: 0.8rem; }
  .qstep__num { width: 40px; height: 40px; font-size: 1.05rem; }
  .qstep:not(:last-child) .qstep__rail::after { top: 44px; }
}

/* ============================================================
   ③ GmbH-COMPLIANCE — strukturierte Tabelle
   ============================================================ */
.ctable {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(20, 33, 61, 0.10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px -20px rgba(20, 33, 61, 0.22);
}
.ctable__row {
  display: grid;
  grid-template-columns: 56px 1.7fr 1fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
  padding: 1.05rem 1.5rem;
  border-bottom: 1px solid rgba(20, 33, 61, 0.07);
  transition: background 0.35s ease;
}
.ctable__row:last-child { border-bottom: none; }
.ctable__row.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.2,0.8,0.2,1) var(--lv-delay,0s),
              transform 0.55s cubic-bezier(0.2,0.8,0.2,1) var(--lv-delay,0s),
              background 0.35s ease;
}
.ctable__row.reveal.is-visible { opacity: 1; transform: translateY(0); }
.ctable__row:not(.ctable__head):hover {
  background: linear-gradient(90deg, rgba(212,179,106,0.10) 0%, rgba(212,179,106,0.03) 100%);
}

/* header row */
.ctable__head {
  background: linear-gradient(135deg, #14213D 0%, #1f3258 100%);
  color: #fff;
  border-bottom: none;
}
.ctable__head .ctable__cell {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
}
.ctable__head .ctable__cell:first-child { color: #D4B36A; }

/* number badge */
.ct-num {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(20,33,61,0.06) 0%, rgba(212,179,106,0.18) 100%);
  border: 1px solid rgba(212, 179, 106, 0.30);
  color: #14213D;
}
.ct-num svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.ctable__row:hover .ct-num {
  background: linear-gradient(135deg, #14213D 0%, #1f3258 100%);
  border-color: transparent;
  color: #D4B36A;
  transition: background 0.4s ease, color 0.4s ease;
}
.ctable__row:hover .ct-num svg { transform: rotate(8deg) scale(1.1); }

.ct-task h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #14213D;
  margin: 0 0 0.18rem;
  letter-spacing: -0.01em;
}
.ct-task p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6b7385;
  margin: 0;
}
.ct-cell-lbl {
  display: none;  /* shown on mobile only */
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8a93a6;
  margin-bottom: 2px;
}
.ct-deadline {
  font-size: 0.88rem;
  font-weight: 600;
  color: #14213D;
}
.ct-risk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5311f;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.18);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  width: fit-content;
}
.ct-risk::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c0392b;
  flex-shrink: 0;
}

@media (max-width: 780px) {
  .ctable__head { display: none; }
  .ctable__row {
    grid-template-columns: 44px 1fr;
    gap: 0.5rem 0.9rem;
    padding: 1.1rem 1.1rem;
  }
  .ct-num { grid-row: span 1; }
  .ct-task { grid-column: 2; }
  .ct-deadline-cell,
  .ct-risk-cell {
    grid-column: 2;
  }
  .ct-cell-lbl { display: block; }
}

/* ============================================================
   ④ RISIKEN & PRÜFUNGSFELDER — Split-Karten
   ============================================================ */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 760px) { .audit-grid { grid-template-columns: 1fr; } }

.audit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 5px 16px -12px rgba(20, 33, 61, 0.14);
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 0.5s cubic-bezier(0.2,0.8,0.2,1),
              border-color 0.4s ease;
}
.audit-card.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.2,0.8,0.2,1) var(--lv-delay, 0s),
              transform 0.65s cubic-bezier(0.2,0.8,0.2,1) var(--lv-delay, 0s),
              box-shadow 0.5s ease, border-color 0.4s ease;
}
.audit-card.reveal.is-visible { opacity: 1; transform: translateY(0); }
.audit-card:hover,
.audit-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(212, 179, 106, 0.45);
  box-shadow: 0 24px 50px -22px rgba(20, 33, 61, 0.30);
}

.audit-card__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(135deg, #14213D 0%, #25375f 100%);
  color: #ffffff;
}
.audit-card__icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(212, 179, 106, 0.22);
  color: #E4C988;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.audit-card__icon svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.audit-card:hover .audit-card__icon { transform: rotate(-8deg) scale(1.06); }
.audit-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
  color: #ffffff;
  line-height: 1.3;
}

.audit-pane {
  padding: 1.05rem 1.4rem 1.15rem;
  position: relative;
}
.audit-pane--risk {
  background: rgba(192, 57, 43, 0.045);
  flex: 1;
}

/* --- Fix pane: standardmäßig eingeklappt, öffnet bei Hover / Klick (focus) --- */
.audit-pane--fix {
  padding: 0;
  flex: 0 0 auto;
  background: rgba(212, 179, 106, 0.06);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.audit-pane--fix__inner {
  overflow: hidden;
  min-height: 0;
}
.audit-pane--fix__pad {
  padding: 1.05rem 1.4rem 1.15rem;
  border-top: 1px solid rgba(212, 179, 106, 0.30);
}
.audit-card:hover .audit-pane--fix,
.audit-card:focus-within .audit-pane--fix {
  grid-template-rows: 1fr;
}

/* --- "So sichern wir Sie ab"-Toggle im roten Pane --- */
.audit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 136, 86, 0.42);
  background: rgba(212, 179, 106, 0.14);
  color: #B08856;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease,
              border-color 0.35s ease, transform 0.35s cubic-bezier(0.2,0.8,0.2,1);
}
.audit-toggle svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.audit-card:hover .audit-toggle,
.audit-card:focus-within .audit-toggle {
  background: #B08856;
  color: #fff;
  border-color: #B08856;
  transform: translateY(-1px);
}
.audit-card:hover .audit-toggle svg,
.audit-card:focus-within .audit-toggle svg {
  transform: scale(1.12) rotate(8deg);
}

.audit-pane__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.45rem;
}
.audit-pane--risk .audit-pane__label { color: #c0392b; }
.audit-pane--fix  .audit-pane__label { color: #B08856; }
.audit-pane__label svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.audit-pane p {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.55;
  color: #4b5366;
}

@media (prefers-reduced-motion: reduce) {
  .lever-row, .lever-row *,
  .qstep, .qstep *,
  .ctable__row, .ctable__row *,
  .audit-card, .audit-card * {
    transition: none !important;
    animation: none !important;
  }
}
