/* ============================================================
   EasyTax · Leistungen — immersive service experience
   Eigenständige Bühne pro Leistung über einer fixen 3D-Welt.
   Nutzt die Design-Tokens aus styles.css.
   ============================================================ */

.svc-body { color: var(--ink);
  background: radial-gradient(120% 90% at 30% 20%, #f6f1e7 0%, #ece4d6 38%, #d9cdb8 70%, #c3b49a 100%) fixed; }

/* ---------- Fixed 3D world (behind everything) ---------- */
.svc-world { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(135% 105% at 50% 4%, #fcf9f2 0%, #f4eee3 46%, #ece3d4 100%);
  transition: background 2.4s cubic-bezier(.5,0,.1,1);
}
.svc-world canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.svc-world-fallback { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 35%, rgba(255,255,255,.6), transparent 72%);
  transition: opacity 1.2s; }
html:not(.js) .svc-world { background:
  linear-gradient(180deg, #fbf7f0 0%, #f1ebdf 60%, #e8dfd0 100%); }
html:not(.js) .svc-world-fallback { opacity: 1; }

/* Atmosphere shift per chapter — all bright, only a whisper of warmth apart */
html[data-atmo="a1"] .svc-world { background: radial-gradient(135% 105% at 48% 4%, #fdfaf4, #f4eee2 48%, #ece2d2 100%); }
html[data-atmo="a2"] .svc-world { background: radial-gradient(135% 105% at 52% 5%, #fbf8f1, #f2ece0 48%, #e9e0cf 100%); }
html[data-atmo="a3"] .svc-world { background: radial-gradient(135% 105% at 46% 4%, #fdfbf3, #f4eddc 48%, #eee2cb 100%); }
html[data-atmo="a4"] .svc-world { background: radial-gradient(135% 105% at 50% 6%, #fafbf5, #edefe3 48%, #e4e5d5 100%); }
html[data-atmo="a5"] .svc-world { background: radial-gradient(135% 105% at 50% 4%, #fcf9f2, #f3ece0 48%, #eae0cf 100%); }
html[data-atmo="a6"] .svc-world { background: radial-gradient(135% 105% at 48% 6%, #fbf7ef, #efe6d6 48%, #e6dcc7 100%); }
html[data-atmo="a7"] .svc-world { background: radial-gradient(135% 105% at 52% 4%, #fafaf4, #eeeade 48%, #e6e0d0 100%); }
html[data-atmo="a8"] .svc-world { background: radial-gradient(135% 105% at 48% 7%, #fbf8f0, #efe6d6 48%, #e6dccb 100%); }

.svc-vignette { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 130% at 60% 16%, transparent 60%, rgba(70,56,32,.08) 100%),
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 16%, transparent 84%, rgba(70,56,32,.06)); }

/* soft cursor light */
.svc-light { position: absolute; top: 0; left: 0; width: 46vmax; height: 46vmax; margin: -23vmax 0 0 -23vmax;
  border-radius: 50%; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, rgba(255,250,236,.55), rgba(255,246,222,.16) 40%, rgba(255,246,222,0) 68%);
  transform: translate3d(50vw, 40vh, 0); transition: opacity .6s; will-change: transform; }

/* drifting dust (very subtle — the 3D world carries its own marble dust) */
.svc-dust { position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,250,235,.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,250,235,.7), transparent 60%),
    radial-gradient(1px 1px at 45% 80%, rgba(255,250,235,.8), transparent 60%),
    radial-gradient(1px 1px at 85% 25%, rgba(255,250,235,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 33% 55%, rgba(255,250,235,.7), transparent 60%),
    radial-gradient(1px 1px at 60% 15%, rgba(255,250,235,.6), transparent 60%);
  background-size: 100% 100%; animation: svcDust 26s linear infinite; will-change: transform; }
@keyframes svcDust { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-3%, -5%, 0); } }

.grain { z-index: 1; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; z-index: 60;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); box-shadow: 0 0 14px rgba(176,137,62,.6); }

/* ---------- Header tweak on this page ---------- */
.svc-body .site-header { background: transparent; }
.svc-body .site-header.scrolled { background: rgba(244,238,228,.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }

/* ---------- Intro ---------- */
.svc-intro { position: relative; z-index: 2; min-height: 92vh; display: flex; align-items: center; }
.svc-intro-kicker { font-size: .78rem; letter-spacing: .36em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 26px; }
.svc-intro-title { font-family: var(--serif); font-weight: 600; line-height: 1.0; letter-spacing: -.02em;
  font-size: clamp(2.7rem, 7.4vw, 6.6rem); color: var(--ink); }
.svc-intro-title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.svc-intro-title .ln > span { display: block; transform: translateY(115%); transition: transform 1.05s cubic-bezier(.16,1,.3,1); }
.svc-intro.in .svc-intro-title .ln > span { transform: none; }
.svc-intro-lead { margin-top: 34px; max-width: 60ch; }
.svc-intro-lead p { color: var(--soft); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.75; }
.svc-intro-lead p + p { margin-top: 16px; }

.svc-scrollcue { margin-top: 60px; display: inline-flex; align-items: center; gap: 14px; color: var(--mute); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; }
.svc-scrollcue i { width: 1px; height: 46px; background: linear-gradient(var(--gold-deep), transparent); position: relative; overflow: hidden; }
.svc-scrollcue i::after { content: ""; position: absolute; top: -50%; left: 0; width: 1px; height: 50%; background: var(--gold-hi); animation: svcCue 2.2s var(--e2) infinite; }
@keyframes svcCue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ---------- Chapters ---------- */
.svc-main { position: relative; z-index: 2; }
.svc { position: relative; }

/* Hero — cinematic title over the 3D object */
.svc-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 12vh 0; }
.svc-hero .shell { width: 100%; }

.svc-no { display: block; font-family: var(--serif); font-weight: 500; line-height: 1;
  font-size: clamp(3.4rem, 8vw, 7rem); color: transparent; -webkit-text-stroke: 1px rgba(120,95,45,.45);
  opacity: 0; transform: translateY(26px); transition: opacity 1s var(--e2), transform 1s var(--e2); }
.svc-hero.in .svc-no { opacity: 1; transform: none; }

.svc-title { font-family: var(--serif); font-weight: 600; line-height: .95; letter-spacing: -.02em;
  font-size: clamp(3rem, 8.5vw, 7.5rem); color: var(--ink); margin: 6px 0 22px; max-width: 15ch; }
.svc-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.svc-title .ln > span { display: block; transform: translateY(115%); transition: transform 1.05s cubic-bezier(.16,1,.3,1); }
.svc-hero.in .svc-title .ln > span { transform: none; }
.svc-title-sub { display: block; font-size: clamp(1.1rem, 2.4vw, 1.9rem); font-style: italic; color: var(--gold-deep);
  letter-spacing: 0; margin-top: 6px; opacity: 0; transition: opacity 1.1s .25s; }
.svc-hero.in .svc-title-sub { opacity: 1; }

.svc-statement { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  line-height: 1.32; color: var(--soft); max-width: 24ch;
  opacity: 0; transform: translateY(20px); transition: opacity 1s .2s var(--e2), transform 1s .2s var(--e2); }
.svc-hero.in .svc-statement { opacity: 1; transform: none; }

.svc-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 42px; color: var(--mute);
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  opacity: 0; transition: opacity 1s .5s; }
.svc-hero.in .svc-more { opacity: 1; }
.svc-more::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold-deep), transparent); }

/* Editorial brochure sheet — the reading surface */
.svc-doc { position: relative; padding: 4vh 0 16vh; }
.svc-sheet { position: relative; max-width: 860px; margin: 0 auto; padding: clamp(30px, 4vw, 60px);
  border-radius: 24px; background: rgba(249,245,237,.82);
  backdrop-filter: blur(26px) saturate(135%); -webkit-backdrop-filter: blur(26px) saturate(135%);
  border: 1px solid rgba(255,255,255,.55); box-shadow: 0 60px 120px -60px rgba(40,30,15,.7);
  opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--e2), transform 1.1s var(--e2); }
.svc-sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.95), transparent 45%, rgba(176,137,62,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.svc-sheet.in { opacity: 1; transform: none; }

.svc-lead p { color: var(--ink); font-size: 1.12rem; line-height: 1.75; }
.svc-lead p + p { margin-top: 16px; }
.svc-lead p:first-child::first-letter { font-family: var(--serif); font-size: 3.1em; line-height: .8; float: left;
  margin: 6px 12px 0 0; color: var(--gold-deep); font-weight: 600; }

.svc-why, .svc-for { margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(120,95,45,.18); }
.svc-why h3, .svc-for h3 { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.svc-why p { color: var(--soft); font-size: 1.04rem; line-height: 1.7; }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-tags li { font-size: .9rem; color: var(--ink); padding: 8px 16px; border-radius: 100px;
  background: rgba(255,255,255,.5); border: 1px solid rgba(120,95,45,.2); transition: transform .3s var(--e2), border-color .3s, background .3s; }
.svc-tags li:hover { transform: translateY(-2px); border-color: rgba(176,137,62,.55); background: rgba(255,255,255,.75); }

/* Accordion toggle spacing inside sheet */
.svc-sheet .svc-acc-toggle { margin-top: 30px; }

/* ---------- Accordion ---------- */
.svc-acc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  background: none; border: 0; padding: 0 0 18px; cursor: pointer; text-align: left;
  font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep);
  border-bottom: 1px solid rgba(120,95,45,.22); transition: color .3s; }
.svc-acc-toggle:hover { color: var(--ink); }
.svc-acc-x { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.svc-acc-x::before, .svc-acc-x::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; transition: transform .5s var(--e2), opacity .4s; }
.svc-acc-x::before { width: 16px; height: 1.5px; }
.svc-acc-x::after { width: 1.5px; height: 16px; }
.svc-acc-toggle[aria-expanded="true"] .svc-acc-x::after { transform: rotate(90deg); opacity: 0; }

.svc-acc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--e2); }
.svc-acc.open { grid-template-rows: 1fr; }
.svc-acc-in { overflow: hidden; min-height: 0; }

.svc-list { list-style: none; margin: 22px 0 0; }
.svc-list li { position: relative; padding: 12px 0 12px 26px; color: var(--ink); font-size: 1.02rem; line-height: 1.5;
  border-bottom: 1px solid rgba(120,95,45,.12);
  opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--e2), transform .6s var(--e2); }
.svc-acc.open .svc-list li { opacity: 1; transform: none; }
.svc-acc.open .svc-list li:nth-child(1) { transition-delay: .08s; }
.svc-acc.open .svc-list li:nth-child(2) { transition-delay: .16s; }
.svc-acc.open .svc-list li:nth-child(3) { transition-delay: .24s; }
.svc-acc.open .svc-list li:nth-child(4) { transition-delay: .32s; }
.svc-acc.open .svc-list li:nth-child(5) { transition-delay: .40s; }
.svc-acc.open .svc-list li:nth-child(6) { transition-delay: .48s; }
.svc-acc.open .svc-list li:nth-child(7) { transition-delay: .56s; }
.svc-acc.open .svc-list li:nth-child(8) { transition-delay: .64s; }
.svc-acc.open .svc-list li:nth-child(9) { transition-delay: .72s; }
.svc-acc.open .svc-list li:nth-child(10) { transition-delay: .80s; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2dda8, var(--gold) 60%, var(--gold-deep));
  box-shadow: 0 0 10px rgba(176,137,62,.5); }
.svc-lede { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--gold-deep);
  opacity: 0; transform: translateY(8px); transition: opacity .6s .5s, transform .6s .5s; }
.svc-acc.open .svc-lede { opacity: 1; transform: none; }

/* ---------- CTA (per chapter) ---------- */
.svc-cta { margin-top: 36px; padding-top: 30px; border-top: 1px solid rgba(120,95,45,.18); }
.svc-cta-h { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15; color: var(--ink); letter-spacing: -.01em; max-width: 20ch; }
.svc-cta-t { margin-top: 14px; color: var(--soft); font-size: 1.02rem; line-height: 1.7; max-width: 60ch; }
.svc-cta-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.svc-cta-btns .btn { font-size: .92rem; }

/* ---------- Outro ---------- */
.svc-outro { position: relative; z-index: 2; min-height: 88vh; display: flex; align-items: center; text-align: center; }
.svc-outro .shell { width: 100%; }
.svc-outro-title { font-family: var(--serif); font-weight: 600; line-height: 1; letter-spacing: -.02em;
  font-size: clamp(2.6rem, 7vw, 6rem); color: var(--ink); }
.svc-outro-title .ln { display: block; overflow: hidden; padding-bottom: .05em; }
.svc-outro-title .ln > span { display: block; transform: translateY(115%); transition: transform 1s cubic-bezier(.16,1,.3,1); }
.svc-outro.in .svc-outro-title .ln > span { transform: none; }
.svc-outro-lede { margin: 26px auto 0; max-width: 44ch; color: var(--soft); font-size: 1.15rem; }
.svc-outro-cta { margin-top: 38px; display: inline-flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- generic reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--e2), transform .9s var(--e2); }
.in [data-reveal], [data-reveal].in { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--e2), transform .9s var(--e2); }
.reveal.in { opacity: 1; transform: none; }

/* progressive-enhancement: without JS, show everything */
html:not(.js) .svc-sheet,
html:not(.js) .svc-no,
html:not(.js) .svc-statement,
html:not(.js) .svc-more,
html:not(.js) [data-reveal],
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }
html:not(.js) .svc-title .ln > span,
html:not(.js) .svc-outro-title .ln > span,
html:not(.js) .svc-intro-title .ln > span { transform: none !important; }
html:not(.js) .svc-title-sub { opacity: 1 !important; }
html:not(.js) .svc-acc { grid-template-rows: 1fr; }
html:not(.js) .svc-acc .svc-list li { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* Legibility: darken world a touch behind text on small screens */
  .svc-vignette { background:
    radial-gradient(120% 100% at 50% 40%, transparent 30%, rgba(25,19,10,.28) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 22%); }
  .svc-hero { min-height: 88vh; }
  .svc-title { font-size: clamp(2.6rem, 13vw, 4.6rem); }
  .svc-no { font-size: clamp(3rem, 16vw, 5rem); }
  .svc-sheet { background: rgba(250,246,238,.9); }
  .svc-dust { display: none; }
}
@media (max-width: 560px) {
  .svc-intro-title { font-size: clamp(2.6rem, 15vw, 4.2rem); }
  .svc-sheet { padding: 26px 20px; }
  .svc-lead p:first-child::first-letter { font-size: 2.6em; }
  .svc-cta-btns .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .svc-dust, .svc-light, .svc-scrollcue i::after { animation: none; }
  .svc-world { transition: none; }
  .svc-title .ln > span, .svc-outro-title .ln > span, .svc-intro-title .ln > span,
  .svc-no, .svc-statement, .svc-more, .svc-sheet, [data-reveal], .reveal { transition: none; }
}

/* Touch / small screens: no live backdrop blur over the moving 3D world */
@media (max-width: 860px), (hover: none) {
  .svc-sheet { background: rgba(250,247,240,.93); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .svc-body .site-header.scrolled { background: rgba(246,241,232,.95); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
/* real marble ground under the 3D world */
.svc-world::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url("../img/marble-bg.jpg") center / cover no-repeat; }
