/* ---------------------------------------------------------------------------
   Leistungsseiten (z. B. /leistungen/powerpoint-master-templates/)
   Baut auf blog.css auf: Hero, Textspalte, Inhaltsverzeichnis, Tabellen und
   Kontaktblock kommen von dort. Hier steht nur, was Leistungsseiten zusätzlich
   brauchen.
   --------------------------------------------------------------------------- */

/* Hero-Headline wie auf /referenzen/ und /blog/ (überschreibt .artikel-hero h1) */
.uebersicht-hero.leistung-hero h1 {
  display: flex;
  max-width: none;
  margin: 0 0 26px;
  flex-direction: column;
  color: var(--purple);
  font-size: clamp(62px, 8.2vw, 112px);
  font-weight: 500;
  line-height: .98;
  overflow-wrap: normal;
}

.leistung-lead {
  max-width: 62ch;
}

@media (max-width: 900px) {
  .uebersicht-hero.leistung-hero h1 {
    font-size: clamp(34px, 10vw, 78px);
  }
}

/* Aufzählungen: Balken aus dem Logo statt Punkt */
.artikel-text ul:not(.leistung-refs) {
  padding-left: 0;
  list-style: none;
}

.artikel-text ul:not(.leistung-refs) > li {
  position: relative;
  padding-left: 34px;
}

.artikel-text ul:not(.leistung-refs) > li::before {
  position: absolute;
  top: .55em;
  left: 0;
  width: 20px;
  height: 10px;
  content: "";
  background: var(--purple);
}

/* Kundenzitat mit Foto */
.artikel-text .leistung-zitat {
  margin: 72px 0;
}

.leistung-zitat footer {
  display: flex;
  margin-top: 22px;
  gap: 14px;
  align-items: center;
}

.leistung-zitat img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.artikel-text .leistung-zitat cite {
  margin-top: 0;
  line-height: 1.45;
}

.leistung-zitat cite b {
  display: block;
  color: var(--ink);
  font-size: var(--text-m);
}

/* Zitat: kein Kachel-Schatten beim Überfahren (kommt aus style.css) */
.artikel-text .leistung-zitat,
.artikel-text .leistung-zitat:hover {
  box-shadow: none;
  transition: none;
}

/* Kurz gesagt: weiße Karte ohne Seitenstreifen, Balken vor dem Label */
.page-leistung .artikel-kurz {
  border-left: 0;
  border-radius: 12px;
}

.page-leistung .artikel-kurz .eyebrow::before {
  display: inline-block;
  width: 1.45em;
  height: .72em;
  margin-right: .6em;
  content: "";
  background: var(--purple);
  vertical-align: baseline;
}

/* Runder Störer über der Modultabelle. Liegt rechts oben über der Tabellenkante
   und überdeckt nur Fläche, keine Schrift: Der Absatz darüber endet vorher,
   die Überlappung mit der Tabelle (8px) bleibt im Innenabstand der Kopfzeile. */
.leistung-stoerer-text {
  max-width: calc(100% - 150px);
}

.leistung-stoerer-bereich {
  position: relative;
  margin-top: 36px;
}

.leistung-stoerer-bereich .artikel-tabelle {
  margin-top: 0;
}

.artikel-text .leistung-stoerer {
  position: absolute;
  z-index: 1;
  top: -108px;
  right: -26px;
  display: flex;
  width: 116px;
  height: 116px;
  margin: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--purple);
  font-size: 13px;
  font-weight: var(--h2-weight);
  line-height: 1.2;
  text-align: center;
  transform: rotate(-10deg);
}

.leistung-stoerer span:first-child {
  font-size: 15px;
}

@media (max-width: 1240px) {
  .artikel-text .leistung-stoerer {
    right: 0;
  }
}

@media (max-width: 620px) {
  .leistung-stoerer-text {
    max-width: calc(100% - 112px);
  }

  .artikel-text .leistung-stoerer {
    top: -88px;
    width: 96px;
    height: 96px;
    font-size: 12px;
  }

  .leistung-stoerer span:first-child {
    font-size: 13px;
  }
}

/* Zwei Buttons unter dem Lead */
.leistung-aktionen {
  display: flex;
  margin-top: 32px;
  gap: 12px;
  flex-wrap: wrap;
}

/* Leistungstabellen: erste Spalte ist Text, nicht Nummer – darf umbrechen */
.leistung-tabelle td:first-child,
.leistung-tabelle th:first-child {
  white-space: normal;
}

/* Pakettabelle: Häkchen- und Preisspalten bleiben einzeilig */
.leistung-paket td:not(:first-child) {
  white-space: nowrap;
}

/* Modultabelle: Inhaltsspalte bekommt den meisten Platz */
.leistung-module td:nth-child(2) {
  width: 46%;
}

/* Pakettabelle mit dem Verlauf aus dem Startseiten-Header, wie dort mit Korn.
   Erst JPG/PNG als Rückfall für ältere Browser, dann WebP per image-set. */
.artikel-tabelle.leistung-paket {
  background-color: var(--paper);
  background-image: url("noise.png"), url("hero-gradient.jpg");
  background-repeat: repeat, no-repeat;
  background-position: top left, center;
  background-size: 64px 64px, cover;
}

@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .artikel-tabelle.leistung-paket {
    background-image:
      image-set(url("noise.webp") type("image/webp"),
                url("noise.png") type("image/png")),
      image-set(url("hero-gradient.webp") type("image/webp"),
                url("hero-gradient.jpg") type("image/jpeg"));
  }
}

.leistung-paket th,
.leistung-paket td {
  border-bottom-color: rgba(8, 8, 8, .1);
}

.leistung-preis td {
  color: var(--purple);
  font-weight: var(--h2-weight);
}

/* Referenzkarten im Textfluss */
.artikel-text .leistung-refs {
  display: grid;
  margin: 36px 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

.leistung-ref a {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.leistung-ref img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.leistung-ref-label {
  margin: 18px 20px 0;
  color: var(--purple);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.artikel-text .leistung-ref h3 {
  margin: 8px 20px 6px;
  font-size: 20px;
}

.leistung-ref p {
  margin: 0 20px 22px;
  color: var(--muted);
  font-size: var(--text-m);
  line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
  .leistung-ref a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(8, 8, 8, .08);
  }
}

/* Ablauf: nummerierte Schritte mit Zahl in Indigo */
.artikel-text .leistung-schritte {
  margin: 28px 0;
  padding: 0;
  counter-reset: schritt;
  list-style: none;
}

.leistung-schritte li {
  position: relative;
  margin: 0;
  padding: 18px 0 18px 64px;
  border-top: 1px solid var(--line);
  counter-increment: schritt;
}

.leistung-schritte li:last-child {
  border-bottom: 1px solid var(--line);
}

.leistung-schritte li::before {
  position: absolute;
  top: 16px;
  left: 0;
  content: counter(schritt, decimal-leading-zero);
  color: var(--purple);
  font-size: 22px;
  font-weight: var(--h2-weight);
}

@media (max-width: 620px) {
  .artikel-text .leistung-refs {
    grid-template-columns: 1fr;
  }

  .leistung-schritte li {
    padding-left: 48px;
  }
}
