/* Stannek GmbH, Landingpage „DATEV geht in die Cloud. Wir gehen mit!“
   Baut auf site.css und datev-solution.css auf. Nur Ergänzungen für diese Seite. */

/* ---------- Einstieg ---------- */
.cl-hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--night);
  min-height: calc(100svh - var(--header-h)); display: grid; align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.cl-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 75% 40%, rgba(39, 82, 236, 0.6), transparent 70%),
    linear-gradient(180deg, #0c1a44 0%, #07112e 100%);
}
.cl-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(60% 70% at 72% 45%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 70% at 72% 45%, #000, transparent 75%);
}
.cl-hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .cl-hero-grid { grid-template-columns: 1fr 1.05fr; } }
.cl-hero-copy { display: grid; gap: 1.35rem; max-width: 36rem; }
.cl-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5.6vw, 4.7rem); font-weight: 700; letter-spacing: -0.024em; line-height: 1.02; }
.cl-hero h1 span {
  background: linear-gradient(90deg, #ffffff 0%, #8ff5d6 50%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cl-hero-sub { color: var(--on-night-muted); font-size: clamp(1.08rem, 1.4vw, 1.28rem); }
.cl-hero-note { color: var(--on-night-muted); font-size: 0.95rem; }

/* Wolke mit aufsteigenden Leistungen */
.cl-sky { position: relative; margin: 0; aspect-ratio: 6 / 5; width: 100%; max-width: 640px; justify-self: center; }
.cl-cloud { position: absolute; inset: 0 0 18% 0; width: 100%; height: 82%; overflow: visible; }
.cl-cloud-shape { stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 24px rgba(46, 230, 176, 0.35)); }
.cl-chips { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0 0 18% 0; }
.cl-chips li {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  white-space: nowrap; padding: 0.5rem 0.95rem; border-radius: 999px;
  background: rgba(12, 26, 68, 0.85); border: 1px solid rgba(46, 230, 176, 0.55);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(0.78rem, 1.05vw, 0.95rem); color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
/* „Ihre Kanzlei“ im Stil der Wolke: gleiche Füllung, gleiche leuchtende Kontur */
.cl-base {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.85rem; padding: 0.75rem 1.4rem 0.75rem 1.05rem;
  border-radius: 999px; white-space: nowrap; color: var(--white);
  background: linear-gradient(180deg, rgba(74, 114, 245, 0.55), rgba(39, 82, 236, 0.16));
  border: 2px solid var(--accent);
  box-shadow: 0 0 24px rgba(46, 230, 176, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cl-base-icon { width: 2.1rem; height: auto; flex: none; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(46, 230, 176, 0.5)); }
.cl-base-text { display: grid; gap: 0.1rem; line-height: 1.15; }
.cl-base-text strong { font: 700 1.1rem var(--font-display); letter-spacing: -0.01em; }
.cl-base-text small { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: #c9f7e9; }
.cl-base-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(46, 230, 176, 0.6); }
.js-motion .cl-base-dot { animation: cl-ping 2.4s ease-out infinite; }
@keyframes cl-ping { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 176, 0.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(46, 230, 176, 0); } }
.js-motion .cl-base { animation: cl-glow 2.4s ease-in-out infinite; }
@keyframes cl-glow { 0%, 100% { box-shadow: 0 0 18px rgba(46, 230, 176, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18); } 50% { box-shadow: 0 0 34px rgba(46, 230, 176, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18); } }
.cl-beams { position: absolute; left: 50%; bottom: 62px; height: 22%; width: 40%; transform: translateX(-50%); display: flex; justify-content: space-between; }
.cl-beams span { width: 2px; background: linear-gradient(to top, rgba(46, 230, 176, 0.7), transparent); border-radius: 2px; }

.js-motion .cl-cloud-shape { animation: cl-draw 2.2s var(--ease) 0.2s both; }
@keyframes cl-draw { from { stroke-dashoffset: 1; fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
.js-motion .cl-chips li { animation: cl-rise 12s var(--ease) infinite; animation-delay: calc(1.2s + var(--i) * 0.55s); opacity: 0; }
@keyframes cl-rise {
  0% { opacity: 0; transform: translate(-50%, 180%) scale(0.85); }
  8% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  76%, 100% { opacity: 0; transform: translate(-50%, -80%) scale(0.96); }
}
.js-motion .cl-beams span { animation: cl-beam 2.4s ease-in-out infinite; }
.js-motion .cl-beams span:nth-child(2) { animation-delay: 0.8s; }
.js-motion .cl-beams span:nth-child(3) { animation-delay: 1.6s; }
@keyframes cl-beam { 0%, 100% { opacity: 0.2; transform: scaleY(0.6); transform-origin: bottom; } 50% { opacity: 1; transform: scaleY(1); } }
.js-motion .cl-hero-copy > * { animation: cl-in 0.9s var(--ease) both; }
.js-motion .cl-hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.js-motion .cl-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.js-motion .cl-hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.js-motion .cl-hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes cl-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 959px) {
  .cl-sky { max-width: 520px; order: -1; aspect-ratio: 6 / 4.4; }
  .cl-hero-copy { gap: 1.1rem; }
  .cl-chips li { padding: 0.35rem 0.6rem; font-size: 0.72rem; }
  .cl-base { gap: 0.6rem; padding: 0.55rem 1.1rem 0.55rem 0.85rem; }
  .cl-base-icon { width: 1.7rem; }
  .cl-base-text strong { font-size: 1rem; }
  .cl-base-text small { font-size: 0.72rem; }
  .cl-beams { bottom: 52px; }
}

/* ---------- Angebots-Explorer ---------- */
.cl-explorer { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
@media (min-width: 960px) { .cl-explorer { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); align-items: start; } }
.cl-tabs { display: grid; gap: 0.55rem; }
@media (max-width: 959px) {
  .cl-tabs { display: flex; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.4rem; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
  .cl-tabs::-webkit-scrollbar { display: none; }
  .cl-tab { flex: none; scroll-snap-align: start; }
}
.cl-tab {
  display: flex; align-items: center; gap: 0.9rem; text-align: left; cursor: pointer;
  padding: 0.95rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.cl-tab svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s var(--ease); }
.cl-tab:hover { border-color: var(--blue); }
.cl-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.cl-tab[aria-selected="true"] svg { stroke: var(--white); }
@media (min-width: 960px) { .cl-tab[aria-selected="true"] { transform: translateX(8px); } }

.cl-panels { position: relative; }
.cl-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--ds-radius-lg);
  padding: clamp(1.6rem, 3.4vw, 2.75rem); display: grid; gap: 1.6rem;
}
.cl-panel[hidden] { display: none; }
.cl-panel-copy { display: grid; gap: 0.9rem; }
.cl-panel-kicker { font-family: var(--font-display); font-weight: 600; color: var(--blue); }
.cl-panel h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.025em; }
.cl-panel-copy > p:not(.cl-panel-kicker) { color: var(--muted); max-width: 40em; }
.cl-effect { display: grid; gap: 0.3rem; padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--light); border-left: 4px solid var(--petrol); }
.cl-effect-label { font-family: var(--font-display); font-weight: 650; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night); }
.cl-effect p { color: var(--night); font-weight: 600; }
.js-motion .cl-panel.is-entering { animation: cl-panel 0.55s var(--ease) both; }
@keyframes cl-panel { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Cloud-Check ---------- */
.cl-check {
  max-width: 54rem; background: var(--surface); border-radius: var(--ds-radius-lg);
  padding: clamp(1.4rem, 4vw, 3rem); display: grid; gap: 1.4rem;
}
.cl-check-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cl-check-bar span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--f, 0.2)); transition: transform 0.5s var(--ease); }
.cl-check-count { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.cl-q { border: 0; margin: 0; padding: 0; display: grid; gap: 1.1rem; min-width: 0; }
.cl-q legend { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.15; padding: 0; margin-bottom: 1.1rem; }
.cl-q legend small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--muted); letter-spacing: 0; margin-top: 0.4rem; }
.cl-options { display: grid; gap: 0.65rem; }
@media (min-width: 640px) {
  .cl-options-2 { grid-template-columns: 1fr 1fr; }
  .cl-options-4 { grid-template-columns: repeat(4, 1fr); }
}
.cl-options label { position: relative; cursor: pointer; }
.cl-options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cl-options span {
  display: flex; align-items: center; gap: 0.8rem; min-height: 58px; padding: 0.85rem 1.1rem;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cl-options span::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #9fb0c3; background: var(--white);
  transition: all 0.2s var(--ease);
}
.cl-options input[type="checkbox"] + span::before { border-radius: 6px; }
.cl-options label:hover span { border-color: var(--blue); }
.cl-options input:checked + span { border-color: var(--blue); background: var(--light); color: var(--night); }
.cl-options input:checked + span::before {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.cl-options input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.cl-check-nav { display: flex; justify-content: space-between; gap: 0.75rem; }
.cl-check-nav [disabled] { opacity: 0.4; cursor: not-allowed; }

/* Mit Skript: eine Frage nach der anderen */
.js .cl-q { display: none; }
.js .cl-q.is-active { display: grid; animation: cl-panel 0.45s var(--ease) both; }
html:not(.js) .cl-check-bar, html:not(.js) .cl-check-count, html:not(.js) .cl-check-nav { display: none; }
.cl-check.is-done .cl-q, .cl-check.is-done .cl-check-nav, .cl-check.is-done .cl-check-count { display: none; }

.cl-result { display: grid; gap: 1.1rem; }
.cl-result[hidden] { display: none; }
.cl-result h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.025em; }
.cl-result-intro { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.cl-plan { list-style: none; margin: 0.4rem 0 0.6rem; padding: 0; display: grid; gap: 0.75rem; counter-reset: plan; }
.cl-plan li {
  counter-increment: plan; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.25rem;
  animation: cl-panel 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.12s);
}
.cl-plan li::before {
  content: counter(plan); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: var(--white);
  font-family: var(--font-display); font-weight: 700;
}
.cl-plan li:first-child { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.cl-plan b { font-family: var(--font-display); font-size: 1.15rem; }
.cl-plan p { color: var(--muted); }
.cl-result-note { color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .cl-plan li, .cl-base, .cl-base-dot { animation: none; }
}

/* Hinweis auf „100 % digital“ unter dem Explorer */
.cl-digital-teaser { margin-top: clamp(2rem, 4vw, 3rem); }
