/* =============================================================
   digirelation · Leistung-Subpages (/leistungen/<bereich>/)
   Benutzt .section-headline und .eyebrow aus home.css
   ============================================================= */

/* ============ HERO ============ */
.leistung-hero {
  position: relative;
  padding: 32px 0 36px;
  overflow: hidden;
}
.leistung-hero-bg {
  position: absolute;
  top: -80px; right: -140px;
  width: 720px; height: 720px;
  pointer-events: none;
  z-index: 0;
  background: none;
  filter: blur(40px);
}
[data-theme="dark"] .leistung-hero-bg {
  background: radial-gradient(circle, rgba(174,207,228,0.14) 0%, transparent 55%);
}
.leistung-hero .container { position: relative; z-index: 4; }
.leistung-hero-inner { max-width: 880px; }

/* Video-Background */
.leistung-hero--video { padding: 44px 0 40px; }
.leistung-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(100%) contrast(1.05) brightness(1.12) opacity(0.55);
}
[data-theme="dark"] .leistung-hero-video {
  filter: grayscale(100%) contrast(1.2) brightness(0.55) opacity(0.7);
}
.leistung-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(248,249,250,0.4) 0%, rgba(248,249,250,0.78) 60%, var(--c-background) 100%),
    radial-gradient(65% 75% at 18% 40%, rgba(248,249,250,0.7) 0%, transparent 60%),
    radial-gradient(40% 60% at 82% 75%, rgba(248,249,250,0.5) 0%, transparent 60%);
}
[data-theme="dark"] .leistung-hero-overlay {
  background:
    linear-gradient(180deg, rgba(7,15,22,0.45) 0%, rgba(7,15,22,0.8) 60%, #070f16 100%),
    radial-gradient(65% 75% at 18% 40%, rgba(7,15,22,0.7) 0%, transparent 60%),
    radial-gradient(40% 60% at 82% 75%, rgba(194,233,242,0.18) 0%, transparent 60%);
}
.leistung-hero-bg { z-index: 2; }
.leistung-hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--heading);
  margin: 16px 0 16px;
}
.leistung-hero-subtext {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 24px;
}
.leistung-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ YOUTUBE EMBED ============ */
.leistung-yt {
  padding: 0 0 64px;
}
.leistung-yt-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(7,15,22,0.12);
  border: 1px solid var(--border);
}
.leistung-yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
@media (max-width: 720px) {
  .leistung-yt { padding-bottom: 40px; }
  .leistung-yt-wrap { border-radius: 12px; }
}

/* ============ Shared Section-Head ============ */
.leistung-section-head {
  max-width: 820px;
  margin-bottom: 40px;
}

/* ============ BENEFITS (4 Grid) ============ */
.leistung-benefits { padding: 72px 0 56px; }
.leistung-benefits-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
}
.leistung-benefit-card {
  padding: 28px 24px;
  border-radius: 18px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  transition: all var(--t-base);
}
[data-theme="dark"] .leistung-benefit-card {
  background: rgba(242,248,250,0.03);
  border-color: rgba(242,248,250,0.08);
}
.leistung-benefit-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}
.leistung-benefit-num {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--c-accent-deep);
  background: var(--c-accent-soft);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
[data-theme="dark"] .leistung-benefit-num {
  background: rgba(174,207,228,0.12);
  color: var(--c-accent);
}
.leistung-benefit-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--heading);
  line-height: 1.25;
  margin-bottom: 8px;
}
.leistung-benefit-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ============ AUDIENCE (Long-form, zentriert) ============ */
.leistung-audience {
  padding: 72px 0 56px;
  background: var(--surface-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .leistung-audience {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(242,248,250,0.025) 10%,
    rgba(242,248,250,0.025) 90%,
    transparent 100%
  );
  border-color: transparent;
}
.leistung-audience-inner {
  max-width: 820px;
  margin: 0 auto;
}
.leistung-audience-inner .section-headline {
  margin-bottom: 28px;
}
.leistung-audience-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
}
.leistung-audience-claim {
  color: var(--heading) !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  padding-top: 6px;
}

/* ============ SERVICES-GRID (6 Items) ============ */
.leistung-services { padding: 80px 0 64px; }
.leistung-services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
}
.leistung-service-card { margin: 0; }
.leistung-service-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px;
  border-radius: 18px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all var(--t-base);
  position: relative;
}
[data-theme="dark"] .leistung-service-link {
  background: rgba(242,248,250,0.03);
  border-color: rgba(242,248,250,0.08);
}
.leistung-service-link:hover {
  border-color: var(--c-accent);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
}
.leistung-service-index {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.leistung-service-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: 10px;
}
.leistung-service-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
}
.leistung-service-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent-deep);
  transition: gap var(--t-fast);
  margin-top: auto;
}
[data-theme="dark"] .leistung-service-more { color: var(--c-accent); }
.leistung-service-link:hover .leistung-service-more { gap: 10px; }

/* ============ CONTEXT (Long-form SEO Content) ============ */
.leistung-context {
  padding: 80px 0 64px;
}
.leistung-context-inner {
  max-width: 820px;
  margin: 0 auto;
}
.leistung-context-inner .section-headline {
  margin-bottom: 24px;
}
.leistung-context-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

/* ============ ABOUT-INTRO ============ */
.leistung-about {
  padding: 80px 0 64px;
  background: var(--surface-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .leistung-about {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(242,248,250,0.025) 10%,
    rgba(242,248,250,0.025) 90%,
    transparent 100%
  );
  border-color: transparent;
}
.leistung-about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.leistung-about-content .eyebrow { margin-bottom: 12px; }
.leistung-about-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 560px;
}
.leistung-about-claim {
  color: var(--heading) !important;
  font-weight: 600 !important;
  padding-top: 10px;
}
.leistung-about-ctas { margin-top: 24px; }
.leistung-about-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-background);
  border: 1px solid var(--border);
}
[data-theme="dark"] .leistung-about-visual {
  background: rgba(242,248,250,0.04);
  border-color: rgba(242,248,250,0.08);
}
.leistung-about-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ FAQ (nutzt .faq-* aus home.css) ============ */
.leistung-faq {
  padding: 80px 0 64px;
}

/* ============ Howto — Interactive Accordion ============ */
.leistung-howto {
  padding: 96px 0 80px;
  background: var(--surface-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .leistung-howto {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(242,248,250,0.025) 10%,
    rgba(242,248,250,0.025) 90%,
    transparent 100%
  );
  border-color: transparent;
}

.howto-widget { max-width: 780px; }

/* ---- List + connecting line ---- */
.howto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.howto-list::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  z-index: 0;
}
[data-theme="dark"] .howto-list::before {
  background: rgba(242,248,250,0.1);
}

/* ---- Item ---- */
.howto-item { position: relative; }

/* ---- Trigger (clickable row) ---- */
.howto-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--t-fast);
}
.howto-trigger:active { opacity: 0.75; }

/* ---- Dot (numbered circle) ---- */
.howto-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
[data-theme="dark"] .howto-dot {
  background: #070F16;
  border-color: rgba(242,248,250,0.12);
}

/* ---- Step title ---- */
.howto-title {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--heading);
  transition: color 0.25s ease;
}

/* ---- Chevron ---- */
.howto-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.howto-chevron svg {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  display: block;
}

/* ---- Expandable body ---- */
.howto-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.38s cubic-bezier(0.16,1,0.3,1),
    opacity    0.3s ease;
}

.howto-detail {
  padding: 2px 16px 28px 60px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text);
  margin: 0;
}

/* ---- Active (open) state ---- */
.howto-item.is-open .howto-dot {
  background: var(--c-accent-soft);
  border-color: var(--c-accent);
  color: var(--c-accent-deep);
  box-shadow: 0 0 0 4px rgba(174,207,228,0.18);
}
[data-theme="dark"] .howto-item.is-open .howto-dot {
  background: rgba(174,207,228,0.1);
  border-color: rgba(174,207,228,0.4);
  color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(174,207,228,0.08);
}

.howto-item.is-open .howto-title {
  color: var(--c-accent-deep);
}
[data-theme="dark"] .howto-item.is-open .howto-title {
  color: var(--c-accent);
}

.howto-item.is-open .howto-chevron {
  border-color: var(--c-accent);
  color: var(--c-accent-deep);
  background: var(--c-accent-soft);
}
[data-theme="dark"] .howto-item.is-open .howto-chevron {
  border-color: rgba(174,207,228,0.35);
  color: var(--c-accent);
  background: rgba(174,207,228,0.08);
}
.howto-item.is-open .howto-chevron svg {
  transform: rotate(180deg);
}

.howto-item.is-open .howto-body {
  opacity: 1;
}

/* ---- Hover (non-open) ---- */
.howto-item:not(.is-open) .howto-trigger:hover .howto-dot {
  border-color: var(--c-accent);
  color: var(--c-accent-deep);
}
[data-theme="dark"] .howto-item:not(.is-open) .howto-trigger:hover .howto-dot {
  border-color: rgba(174,207,228,0.3);
  color: var(--c-accent);
}
.howto-item:not(.is-open) .howto-trigger:hover .howto-title {
  color: var(--c-accent-deep);
}
[data-theme="dark"] .howto-item:not(.is-open) .howto-trigger:hover .howto-title {
  color: var(--c-accent);
}
.howto-item:not(.is-open) .howto-trigger:hover .howto-chevron {
  border-color: var(--c-accent);
}

/* ---- Separator lines ---- */
.howto-item::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  margin-left: 60px;
}
[data-theme="dark"] .howto-item::after {
  background: rgba(242,248,250,0.07);
}
.howto-item:last-child::after { display: none; }

/* ---- Reduced motion: no animation ---- */
@media (prefers-reduced-motion: reduce) {
  .howto-body,
  .howto-dot,
  .howto-chevron,
  .howto-chevron svg,
  .howto-title { transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .leistung-howto { padding: 64px 0 56px; }
  .howto-detail { padding: 2px 8px 24px 56px; font-size: 15px; }
}
@media (max-width: 480px) {
  .leistung-howto { padding: 48px 0 40px; }
  .howto-dot  { width: 36px; height: 36px; font-size: 10px; }
  .howto-list::before { left: 17px; }
  .howto-title { font-size: 15px; }
  .howto-detail { padding: 2px 4px 20px 52px; font-size: 14px; }
  .howto-chevron { width: 28px; height: 28px; }
  .howto-trigger { gap: 14px; }
}
@media (pointer: coarse) {
  .howto-trigger { padding: 18px 0; }
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .leistung-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .leistung-services-grid { grid-template-columns: repeat(2, 1fr); }
  .leistung-about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .leistung-hero { padding: 32px 0 28px; }
  .leistung-hero--video { padding: 36px 0 32px; }
  .leistung-benefits,
  .leistung-audience,
  .leistung-services,
  .leistung-context,
  .leistung-about,
  .leistung-faq { padding: 56px 0; }
  .leistung-hero-subtext { font-size: 16px; }
  .leistung-benefits-grid { grid-template-columns: 1fr; gap: 12px; }
  .leistung-services-grid { grid-template-columns: 1fr; gap: 14px; }
  .leistung-benefit-card { padding: 22px 20px; }
  .leistung-service-link { padding: 22px 20px; }
  .leistung-audience-text p { font-size: 16px; }
  .leistung-context-text p { font-size: 15px; }
  .leistung-section-head { margin-bottom: 28px; }
}
@media (max-width: 480px) {
  .leistung-hero { padding: 28px 0 24px; }
  .leistung-hero--video { padding: 32px 0 28px; }
  .leistung-benefits,
  .leistung-services,
  .leistung-faq { padding: 48px 0; }
  .leistung-hero-subtext { font-size: 15px; }
  .leistung-benefit-card { padding: 18px 16px; }
  .leistung-service-link { padding: 18px 16px; }
  .leistung-section-head { margin-bottom: 22px; }
}

@media (pointer: coarse) {
  .leistung-benefit-card:active { opacity: 0.82; transform: scale(0.99); }
  .leistung-service-link:active { opacity: 0.82; }
}
