/* ==========================================================================
   TAX SPARROW — Service Page Styles
   Styles for individual service (Leistung) pages.
   References design-system.css tokens and components.css patterns.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. SERVICE HERO
   -------------------------------------------------------------------------- */

.service-hero {
  position: relative;
  min-height: 35vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-12) 0 var(--space-8);
  overflow: hidden;
}

.service-hero__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
}

.service-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.service-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-base) 0%,
    rgba(6, 10, 16, 0.6) 40%,
    var(--bg-base) 100%
  );
  pointer-events: none;
}

.service-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--section-max);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.service-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.service-hero__breadcrumb a {
  color: var(--text-muted);
  transition: color var(--duration-normal) var(--ease-out);
}

.service-hero__breadcrumb a:hover {
  color: var(--text-accent);
}

.service-hero__breadcrumb-sep {
  color: var(--smoke);
  user-select: none;
}

.service-hero__breadcrumb-current {
  color: var(--text-secondary);
}

.service-hero__heading {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--text-heading);
  margin-bottom: var(--space-5);
  max-width: 18ch;
}

.service-hero__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 55ch;
}


/* --------------------------------------------------------------------------
   2. SERVICE CONTENT + SIDEBAR (Two-column)
   -------------------------------------------------------------------------- */

.service-body {
  background-color: var(--bg-base);
  padding: var(--space-12) 0;
}

.service-body__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-16);
  max-width: var(--section-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
  align-items: start;
}

/* --- Main content column ------------------------------------------------ */

.service-content {
  min-width: 0;
}

.service-content h2 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--text-heading);
  margin-bottom: var(--space-5);
  margin-top: var(--space-12);
}

.service-content h2:first-child {
  margin-top: 0;
}

.service-content h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--text-heading);
  margin-bottom: var(--space-4);
  margin-top: var(--space-10);
}

.service-content p {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  max-width: 65ch;
}

.service-content ul,
.service-content ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.service-content ul {
  list-style: none;
  padding-left: 0;
}

.service-content ul li {
  position: relative;
  padding-left: var(--space-8);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.service-content ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--bg-base);
  background-color: var(--orange);
  border-radius: var(--radius-full);
}

.service-content ol {
  list-style: decimal;
}

.service-content ol li {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.service-content ol li::marker {
  color: var(--orange);
  font-weight: 700;
}

.service-content strong {
  font-weight: 700;
  color: var(--text-primary);
}

.service-content em {
  font-style: italic;
  color: var(--text-accent);
}

.service-content a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-normal) var(--ease-out);
}

.service-content a:hover {
  color: var(--orange-300);
}

.service-content blockquote {
  border-left: 3px solid var(--orange);
  padding-left: var(--space-6);
  margin-block: var(--space-8);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

/* --- Sidebar ------------------------------------------------------------ */

.service-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.service-sidebar__cta {
  text-align: center;
}

.service-sidebar__cta .btn {
  width: 100%;
}

.service-sidebar__box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.service-sidebar__box-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-color);
}

.service-sidebar__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-sidebar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}


/* --------------------------------------------------------------------------
   3. PERSONAS SECTION
   -------------------------------------------------------------------------- */

.service-personas {
  background-color: var(--bg-deep);
  padding: var(--space-12) 0;
}

.service-personas__header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: var(--section-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.service-personas__header .pretitle {
  justify-content: center;
}

.service-personas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--section-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.service-personas__card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.service-personas__card:hover {
  border-color: var(--border-color-light);
}

.service-personas__card-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  color: var(--orange);
  display: block;
  margin-bottom: var(--space-4);
}

.service-personas__card-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--text-heading);
  margin-bottom: var(--space-3);
}

.service-personas__card-text {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}


/* --------------------------------------------------------------------------
   4. FAQ SECTION
   -------------------------------------------------------------------------- */

.service-faq {
  background-color: var(--bg-surface);
  padding: var(--space-12) 0;
}

.service-faq__inner {
  max-width: var(--section-narrow);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.service-faq__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.service-faq__header .pretitle {
  justify-content: center;
}

.service-faq__list {
  border-top: 1px solid var(--border-color);
}


/* --------------------------------------------------------------------------
   5. RELATED SERVICES
   -------------------------------------------------------------------------- */

.service-related {
  background-color: var(--bg-base);
  padding: var(--space-12) 0;
}

.service-related__header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: var(--section-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.service-related__header .pretitle {
  justify-content: center;
}

.service-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: var(--section-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.service-related__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  text-decoration: none;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.service-related__card:hover {
  border-color: var(--orange-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-related__card-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}

.service-related__card-number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  color: var(--orange);
  flex-shrink: 0;
}

.service-related__card-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--text-heading);
  transition: color var(--duration-normal) var(--ease-out);
}

.service-related__card:hover .service-related__card-title {
  color: var(--text-accent);
}

.service-related__card-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out);
}

.service-related__card:hover .service-related__card-arrow {
  transform: translateX(4px);
  color: var(--orange);
}


/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .service-body__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .service-sidebar {
    position: static;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .service-hero {
    min-height: 30vh;
    padding-top: calc(var(--section-py) + var(--space-10));
  }

  .service-hero__heading {
    font-size: var(--text-4xl);
  }

  .service-personas__grid {
    grid-template-columns: 1fr;
  }

  .service-related__grid {
    grid-template-columns: 1fr;
  }

  /* Related services horizontal scroll on mobile */
  .service-related__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
  }

  .service-related__grid::-webkit-scrollbar {
    display: none;
  }

  .service-related__card {
    flex-shrink: 0;
    min-width: 280px;
    scroll-snap-align: start;
  }
}


/* CTA Section Fix - Services Pages */
.cta-section__inner {
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section__inner .pretitle {
  justify-content: center !important;
}

.cta-section__heading {
  text-align: center;
  margin-bottom: var(--space-6) !important;
}

.cta-section__sub {
  text-align: center;
  margin-bottom: var(--space-8) !important;
}

.cta-section__button {
  margin-bottom: var(--space-8) !important;
}

.cta-section__trust {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: var(--space-3) var(--space-6) !important;
  max-width: 480px !important;
  margin: 0 auto var(--space-6) !important;
  text-align: left;
}

.cta-section__email {
  text-align: center;
}

@media (max-width: 768px) {
  .cta-section__trust {
    grid-template-columns: 1fr !important;
    max-width: 280px !important;
  }
}
