/* ============================================================
   services.css — kapy.ch v2 · /services/
   Per spec/v2/06-SERVICES-HUB.md
   .shero* prefix = Services-Hero
   .sservices* prefix = Services-Grid Section
   ============================================================ */

/* ============================================================
   Section 01 — SERVICES-HERO (centered + Branchen-Strip)
   ============================================================ */

.shero {
  padding-block: clamp(var(--space-8), 10vw, var(--space-10));
}

.shero__inner {
  align-items: center;
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
}

.shero__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-wrap: balance;
  margin: 0;
  max-width: 22ch;
}

.shero__subline {
  font-size: var(--fs-body-xl);
  color: var(--text-secondary);
  line-height: var(--lh-body);
  text-wrap: pretty;
  margin: 0;
  max-width: 50ch;
}

.shero__cta {
  --cluster-justify: center;
}

/* ---------- Trust-Pills (3 items) ---------- */

.shero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.shero__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  white-space: nowrap;
  margin: 0;
}

.shero__pill-dot {
  inline-size: 6px;
  block-size: 6px;
  border-radius: var(--radius-circle);
  background-color: var(--brand-500);
  flex-shrink: 0;
}

.shero__pill-dot--accent {
  background-color: var(--accent-400);
}

/* ============================================================
   BRANCHEN-STRIP — Branchenoffenheits-Signal
   Horizontal pill row, scroll-snap on mobile
   ============================================================ */

.shero__branchen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--border-subtle);
  inline-size: 100%;
}

.shero__branchen-label {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}

.shero__branchen-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.shero__branchen-list li {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background-color: color-mix(in oklch, var(--brand-500) 4%, var(--bg-surface));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  white-space: nowrap;
  margin: 0;
}

[data-theme='dark'] .shero__branchen-list li {
  background-color: color-mix(in oklch, var(--brand-500) 10%, var(--bg-surface));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .shero__branchen-list li {
    background-color: color-mix(in oklch, var(--brand-500) 10%, var(--bg-surface));
  }
}

/* Mobile: horizontal scroll-snap */
@media (max-width: 600px) {
  .shero__branchen-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding-block: var(--space-1);
    padding-inline: var(--space-3);
    inline-size: 100%;
    justify-content: flex-start;
    mask-image: linear-gradient(
      to right,
      transparent,
      black var(--space-3),
      black calc(100% - var(--space-3)),
      transparent
    );
  }
  .shero__branchen-list li {
    scroll-snap-align: start;
  }
}

/* ============================================================
   Section 02 — SERVICES-GRID (Event-Pages prominent, Bundle featured)
   ============================================================ */

.sservices {
  padding-block: clamp(var(--space-8), 10vw, var(--space-10));
}

.sservices__head {
  max-width: 56ch;
}

/* Grid: Event-Pages span 2 cols Desktop (or all on mobile), then 3-col,
   then Bundle span 2. Total 6 cards in 4 visual rows. */

.sservices__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 600px) {
  .sservices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .sservices__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Event-Pages: span full row on tablet+, prominent */
@media (min-width: 600px) {
  .sservices__card--event {
    grid-column: 1 / -1;
  }
}

/* Bundle: span 2 cols on 3-col layout (bottom-right or solo) */
@media (min-width: 960px) {
  .sservices__card--bundle {
    grid-column: span 2;
  }
}

/* Card-internal layout */

.sservices__card {
  --card-padding: clamp(var(--space-5), 2.5vw, var(--space-6));
  --card-gap: var(--space-3);
}

.sservices__card--event {
  --card-padding: clamp(var(--space-6), 3vw, var(--space-7));
  --card-gap: var(--space-4);
}

.sservices__title {
  font-family: var(--font-display);
  font-size: var(--fs-headline-md);
  line-height: var(--lh-headline);
  letter-spacing: var(--ls-headline);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0;
}

.sservices__card--event .sservices__title {
  font-size: var(--fs-headline-lg);
}

.sservices__desc {
  font-size: var(--fs-body-md);
  color: var(--text-secondary);
  line-height: var(--lh-body);
  margin: 0;
  max-width: 56ch;
}

.sservices__price {
  font-family: var(--font-display);
  font-size: var(--fs-body-md);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings:
    'tnum' 1,
    'lnum' 1;
  color: var(--brand-700);
  margin: 0;
}

.sservices__card--event .sservices__price,
.sservices__card--bundle .sservices__price {
  font-size: var(--fs-headline-sm);
}

[data-theme='dark'] .sservices__price {
  color: var(--brand-300);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sservices__price {
    color: var(--brand-300);
  }
}

.sservices__price-unit {
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}

/* Event-Examples pill row (within Event-Pages card) */
.sservices__examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.sservices__examples li {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  white-space: nowrap;
  margin: 0;
}

[data-theme='dark'] .sservices__examples li {
  background-color: var(--bg-elevated);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sservices__examples li {
    background-color: var(--bg-elevated);
  }
}

/* "Mehr erfahren →" link, pushes to card bottom */

.sservices__more {
  display: inline-block;
  margin-block-start: auto;
  padding-block-start: var(--space-2);
  color: var(--text-link);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body-sm);
  transition:
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) {
  .sservices__card:hover .sservices__more {
    color: var(--brand-600);
    transform: translateX(2px);
  }
}

[data-theme='dark'] .sservices__more {
  color: var(--brand-400);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sservices__more {
    color: var(--brand-400);
  }
}

/* ============================================================
   Section 03 — WERK-BEISPIELE (Restaurant Schmiede, sober)
   .swerk* prefix
   ============================================================ */

.swerk {
  padding-block: clamp(var(--space-8), 10vw, var(--space-10));
}

.swerk__head {
  max-width: 56ch;
}

.swerk__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 720px) {
  .swerk__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .swerk__item--featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .swerk__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .swerk__item--featured {
    grid-column: span 2;
  }
}

/* ---------- Case (real Schmiede examples) ---------- */

.swerk__case {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  block-size: 100%;
  padding: clamp(var(--space-4), 2vw, var(--space-5));
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) {
  a.swerk__case:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
}

a.swerk__case:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}

/* ---------- Browser-Frame ---------- */

.swerk__frame {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-base);
}

.swerk__chrome {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background-color: color-mix(in oklch, var(--text-primary) 4%, var(--bg-surface));
  border-block-end: 1px solid var(--border-subtle);
}

[data-theme='dark'] .swerk__chrome {
  background-color: color-mix(in oklch, var(--text-primary) 8%, var(--bg-surface));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .swerk__chrome {
    background-color: color-mix(in oklch, var(--text-primary) 8%, var(--bg-surface));
  }
}

.swerk__dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.swerk__dot {
  inline-size: 10px;
  block-size: 10px;
  border-radius: var(--radius-circle);
  background-color: color-mix(in oklch, var(--text-primary) 18%, transparent);
}

.swerk__url {
  font-family: var(--font-mono);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-inline-size: 0;
}

/* ---------- Screenshot-Surrogate (text-based, kein Fake-Bild) ---------- */

.swerk__shot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  padding: clamp(var(--space-5), 4vw, var(--space-7)) clamp(var(--space-4), 3vw, var(--space-6));
  background-color: var(--bg-surface);
  text-align: center;
  min-block-size: 180px;
}

.swerk__item--featured .swerk__shot {
  min-block-size: 220px;
}

.swerk__shot--compact {
  min-block-size: 160px;
}

.swerk__shot-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}

.swerk__shot-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.75rem);
  line-height: var(--lh-headline);
  letter-spacing: var(--ls-headline);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

.swerk__shot-meta {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Meta-Block (Kicker + Context + Visit-Hint) ---------- */

.swerk__kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--brand-700);
  margin: 0;
}

[data-theme='dark'] .swerk__kicker {
  color: var(--brand-300);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .swerk__kicker {
    color: var(--brand-300);
  }
}

.swerk__context {
  font-size: var(--fs-body-md);
  color: var(--text-primary);
  line-height: var(--lh-body);
  margin: 0;
  max-width: 52ch;
}

.swerk__visit {
  display: inline-block;
  margin-block-start: auto;
  padding-block-start: var(--space-2);
  color: var(--text-link);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body-sm);
  transition: transform var(--dur-fast) var(--ease-out);
}

[data-theme='dark'] .swerk__visit {
  color: var(--brand-400);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .swerk__visit {
    color: var(--brand-400);
  }
}

@media (hover: hover) {
  .swerk__case:hover .swerk__visit {
    transform: translateX(2px);
  }
}

/* ---------- Phase-2-Placeholder ---------- */

.swerk__case--placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  block-size: 100%;
  min-block-size: 200px;
  padding: clamp(var(--space-5), 3vw, var(--space-6));
  background-color: transparent;
  border: 1.5px dashed color-mix(in oklch, var(--brand-500) 40%, var(--border-subtle));
  border-radius: var(--radius-lg);
  text-align: center;
}

[data-theme='dark'] .swerk__case--placeholder {
  border-color: color-mix(in oklch, var(--brand-400) 35%, var(--border-subtle));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .swerk__case--placeholder {
    border-color: color-mix(in oklch, var(--brand-400) 35%, var(--border-subtle));
  }
}

.swerk__placeholder-label {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}

.swerk__placeholder-text {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body);
  margin: 0;
  max-width: 28ch;
}

/* ---------- Disclaimer ---------- */

.swerk__disclaimer {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  margin: 0;
  max-width: 64ch;
}

/* ============================================================
   Section 04 — SO ARBEITE ICH (Prozess + Founder-Sig)
   .sproc* prefix
   ============================================================ */

.sproc {
  padding-block: clamp(var(--space-8), 10vw, var(--space-10));
}

.sproc__head {
  max-width: 56ch;
}

/* ---------- Timeline (4 Schritte) ---------- */

.sproc__timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: sproc-step;
}

@media (min-width: 720px) {
  .sproc__timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .sproc__timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sproc__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(var(--space-4), 2vw, var(--space-5));
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
}

.sproc__step--primary {
  border-color: color-mix(in oklch, var(--brand-500) 45%, var(--border-subtle));
}

.sproc__step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: var(--radius-circle);
  background-color: color-mix(in oklch, var(--brand-500) 12%, var(--bg-surface));
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: var(--fs-body-md);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums lining-nums;
  flex-shrink: 0;
}

[data-theme='dark'] .sproc__step-marker {
  background-color: color-mix(in oklch, var(--brand-500) 22%, var(--bg-surface));
  color: var(--brand-300);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sproc__step-marker {
    background-color: color-mix(in oklch, var(--brand-500) 22%, var(--bg-surface));
    color: var(--brand-300);
  }
}

.sproc__step--primary .sproc__step-marker {
  background-color: var(--brand-500);
  color: var(--text-on-brand, #fff);
}

.sproc__step-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sproc__step-label {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}

.sproc__step-title {
  font-family: var(--font-display);
  font-size: var(--fs-headline-sm);
  line-height: var(--lh-headline);
  letter-spacing: var(--ls-headline);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0;
}

.sproc__step-detail {
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Founder-Sig (klein, sekundär) ---------- */

.sproc__sig {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) clamp(var(--space-4), 2.5vw, var(--space-5));
  background-color: color-mix(in oklch, var(--brand-500) 4%, var(--bg-surface));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 56rem;
  margin-inline: auto;
  inline-size: 100%;
}

[data-theme='dark'] .sproc__sig {
  background-color: color-mix(in oklch, var(--brand-500) 8%, var(--bg-surface));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sproc__sig {
    background-color: color-mix(in oklch, var(--brand-500) 8%, var(--bg-surface));
  }
}

.sproc__sig-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 4rem;
  block-size: 4rem;
  border-radius: var(--radius-circle);
  background-color: color-mix(in oklch, var(--brand-500) 18%, var(--bg-base));
  flex-shrink: 0;
}

[data-theme='dark'] .sproc__sig-avatar {
  background-color: color-mix(in oklch, var(--brand-500) 28%, var(--bg-base));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sproc__sig-avatar {
    background-color: color-mix(in oklch, var(--brand-500) 28%, var(--bg-base));
  }
}

.sproc__sig-initials {
  font-family: var(--font-display);
  font-size: var(--fs-headline-sm);
  font-weight: var(--fw-bold);
  color: var(--brand-700);
  letter-spacing: 0.02em;
}

[data-theme='dark'] .sproc__sig-initials {
  color: var(--brand-300);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sproc__sig-initials {
    color: var(--brand-300);
  }
}

.sproc__sig-quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
  min-inline-size: 0;
}

.sproc__sig-quote p {
  font-family: var(--font-display);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}

.sproc__sig-attrib {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
}

.sproc__sig-name {
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.sproc__sig-sep {
  color: var(--text-tertiary);
}

.sproc__sig-phone {
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text-link);
  font-weight: var(--fw-medium);
}

[data-theme='dark'] .sproc__sig-phone {
  color: var(--brand-400);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sproc__sig-phone {
    color: var(--brand-400);
  }
}

@media (max-width: 480px) {
  .sproc__sig {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }
}

/* ============================================================
   Section 05 — CTA-CLOSER (Schwester von Home + Liefer)
   .scta-closer* prefix · Aurora--cta · container--narrow
   ============================================================ */

.scta-closer {
  padding-block: clamp(var(--space-9), 12vw, var(--space-11));
}

.scta-closer__inner {
  align-items: center;
  text-align: center;
}

.scta-closer__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-wrap: balance;
  margin: 0;
  max-width: 24ch;
}

.scta-closer__sub {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  text-wrap: pretty;
  margin: 0;
  max-width: 52ch;
}

.scta-closer__cta {
  display: flex;
  justify-content: center;
  margin-block-start: var(--space-1);
}

.scta-closer__backup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

.scta-closer__backup li {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--fs-body-md);
}

.scta-closer__backup-label {
  color: var(--text-secondary);
}

.scta-closer__backup-link {
  color: var(--text-link);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums lining-nums;
}

[data-theme='dark'] .scta-closer__backup-link {
  color: var(--brand-400);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .scta-closer__backup-link {
    color: var(--brand-400);
  }
}

.scta-closer__replytime {
  color: var(--text-tertiary);
  margin: 0;
}
