/* Bereich "leistung": eigenes Layout und eigene Komponenten.
   Wird NACH styles.css geladen; body trägt die Klasse .area-leistung.
   Alle Overrides und Neuheiten unter body.area-leistung gescoped. */

/* ---------- Gemeinsamer Signatur-Kopf (links statt zentriert) ---------- */

body.area-leistung .sig-head {
  max-width: 740px;
  margin-bottom: clamp(38px, 5vw, 56px);
}

body.area-leistung .sig-head h2 {
  margin: 10px 0 0;
  color: #071d28;
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.area-leistung .sig-head .card-rule {
  width: 58px;
  height: 5px;
  margin: 20px 0 22px;
}

body.area-leistung .sig-head > p:not(.section-kicker) {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
}

/* ---------- Signatur: Modul-Landschaft (odoo-erp) ---------- */

body.area-leistung .module-map {
  max-width: 1180px;
  margin-inline: auto;
}

body.area-leistung .module-core {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 12%, rgba(1, 141, 150, 0.38), transparent 22rem),
    linear-gradient(120deg, #071d28 0%, #00313e 100%);
  box-shadow: 0 24px 60px rgba(7, 29, 40, 0.24);
  color: #ffffff;
  padding: clamp(26px, 3.4vw, 40px) clamp(24px, 3.6vw, 44px);
}

body.area-leistung .module-core .module-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(56px, 6vw, 72px);
  aspect-ratio: 1;
  border: 1px solid rgba(140, 237, 166, 0.45);
  border-radius: 18px;
  background: rgba(140, 237, 166, 0.13);
  color: #8ceda6;
}

body.area-leistung .module-core .module-icon svg {
  width: 52%;
  height: 52%;
}

body.area-leistung .module-chip {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(140, 237, 166, 0.16);
  padding: 5px 12px;
  color: #8ceda6;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.area-leistung .module-core h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: var(--display-font);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.15;
}

body.area-leistung .module-core p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.99rem;
  line-height: 1.6;
}

body.area-leistung .module-link {
  position: relative;
  display: block;
  width: 0;
  height: 46px;
  margin-inline: auto;
  border-left: 2px dotted rgba(0, 106, 116, 0.45);
}

body.area-leistung .module-link::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, 50%);
  border-radius: 999px;
  background: var(--teal-500);
  content: "";
}

body.area-leistung .module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

body.area-leistung .module-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 24px 24px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.area-leistung .module-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(1, 141, 150, 0.4);
  box-shadow: 0 18px 42px rgba(18, 42, 48, 0.13);
}

body.area-leistung .module-tile .module-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid rgba(1, 141, 150, 0.18);
  border-radius: 13px;
  background: linear-gradient(135deg, #eef9f1, #e2f4ef);
  color: var(--teal-700);
}

body.area-leistung .module-tile .module-icon svg {
  width: 24px;
  height: 24px;
}

body.area-leistung .module-tile h3 {
  margin: 0 0 8px;
  color: #071d28;
  font-family: var(--display-font);
  font-size: 1.08rem;
  line-height: 1.2;
}

body.area-leistung .module-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Signatur: Einsatzszenarien (ki) ---------- */

body.area-leistung .scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

body.area-leistung .scenario-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.area-leistung .scenario-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--green-500));
  content: "";
}

body.area-leistung .scenario-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(18, 42, 48, 0.13);
}

body.area-leistung .scenario-num {
  position: absolute;
  right: 16px;
  bottom: 2px;
  color: rgba(0, 106, 116, 0.07);
  font-size: 4.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
}

body.area-leistung .scenario-tag {
  display: inline-block;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e9f8ee;
  padding: 5px 12px;
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.area-leistung .scenario-card h3 {
  margin: 0 0 10px;
  color: #071d28;
  font-family: var(--display-font);
  font-size: 1.22rem;
  line-height: 1.25;
}

body.area-leistung .scenario-card p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Signatur: Prozess-Funnel (recruiting) ---------- */

body.area-leistung .funnel {
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

body.area-leistung .funnel-stage {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(160px, 0.32fr) 1fr;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  width: calc(100% - var(--i) * 11%);
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(100deg, #08222e 0%, #0b3442 100%);
  box-shadow: 0 16px 38px rgba(7, 29, 40, 0.16);
  color: #ffffff;
  padding: 22px clamp(22px, 3vw, 34px);
}

body.area-leistung .funnel-stage:not(:last-child)::after {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: #0b3442;
  content: "";
}

body.area-leistung .funnel-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 38px;
  border: 2px solid rgba(140, 237, 166, 0.7);
  border-radius: 9px;
  color: #8ceda6;
  font-size: 0.95rem;
  font-weight: 700;
}

body.area-leistung .funnel-stage h3 {
  margin: 0;
  color: #ffffff;
  font-family: var(--display-font);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.2;
}

body.area-leistung .funnel-stage p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

body.area-leistung .funnel-stage-human {
  border-color: rgba(7, 29, 40, 0.1);
  background: linear-gradient(100deg, #8ceda6 0%, #65da84 100%);
  color: #071d28;
}

body.area-leistung .funnel-stage-human h3 {
  color: #071d28;
}

body.area-leistung .funnel-stage-human p {
  color: rgba(7, 29, 40, 0.78);
}

body.area-leistung .funnel-stage-human .funnel-num {
  border-color: rgba(7, 29, 40, 0.65);
  color: #071d28;
}

body.area-leistung .funnel-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  border-radius: 999px;
  background: #071d28;
  padding: 5px 12px;
  color: #8ceda6;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.area-leistung .funnel-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
  color: var(--accent-text);
  font-size: 0.98rem;
  font-weight: 700;
}

body.area-leistung .funnel-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

/* ---------- Signatur: Tech-Stack (softwareentwicklung) ---------- */

body.area-leistung .stack-panel {
  overflow: hidden;
  border: 1px solid rgba(7, 29, 40, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
  box-shadow: var(--shadow-soft);
}

body.area-leistung .stack-row {
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(20px, 2.6vw, 28px) clamp(22px, 3vw, 36px);
}

body.area-leistung .stack-row + .stack-row {
  border-top: 1px dashed rgba(7, 29, 40, 0.16);
}

body.area-leistung .stack-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--teal-900);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.area-leistung .stack-index {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 30px;
  border: 2px solid #071d28;
  border-radius: 7px;
  background: #ffffff;
  color: #071d28;
  font-size: 0.82rem;
  letter-spacing: 0;
}

body.area-leistung .stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.area-leistung .stack-chips li {
  border: 1px solid rgba(0, 106, 116, 0.35);
  border-radius: 999px;
  background: #eef8f3;
  padding: 9px 18px;
  color: var(--teal-900);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.area-leistung .stack-chips li:hover {
  border-color: rgba(0, 106, 116, 0.6);
  background: #dcf5e5;
}

/* ---------- Signatur: Vorher/Nachher (prozessautomatisierung) ---------- */

body.area-leistung .compare {
  display: grid;
  gap: 18px;
}

body.area-leistung .compare-pair {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: stretch;
  gap: 16px;
}

body.area-leistung .compare-before,
body.area-leistung .compare-after {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

body.area-leistung .compare-before {
  border: 1px solid var(--line);
  background: #f2f6f6;
}

body.area-leistung .compare-after {
  border: 1px solid rgba(56, 191, 103, 0.5);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

body.area-leistung .compare-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.area-leistung .compare-before .compare-tag {
  color: #8499a1;
}

body.area-leistung .compare-after .compare-tag {
  color: var(--accent-text);
}

body.area-leistung .compare-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  line-height: 1.55;
}

body.area-leistung .compare-line svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

body.area-leistung .compare-before .compare-line {
  color: var(--muted);
}

body.area-leistung .compare-before .compare-line svg {
  color: #9ab0b5;
}

body.area-leistung .compare-after .compare-line {
  color: var(--ink);
}

body.area-leistung .compare-after .compare-line svg {
  color: var(--green-600);
}

body.area-leistung .compare-arrow {
  display: grid;
  place-items: center;
  color: var(--teal-500);
}

body.area-leistung .compare-arrow svg {
  width: 26px;
  height: 26px;
}

/* ---------- Signatur: Datenblatt (datenschutz) ---------- */

body.area-leistung .fact-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 0%, rgba(101, 218, 132, 0.16), transparent 24rem),
    radial-gradient(circle at 8% 100%, rgba(0, 106, 116, 0.42), transparent 26rem),
    linear-gradient(135deg, #04121a 0%, #071d28 55%, #002b36 100%);
  box-shadow: 0 28px 70px rgba(7, 29, 40, 0.26);
  color: #ffffff;
  padding: clamp(10px, 1.4vw, 16px) clamp(22px, 3.4vw, 44px);
}

body.area-leistung .fact-rows {
  margin: 0;
}

body.area-leistung .fact-row {
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr;
  align-items: baseline;
  gap: clamp(14px, 2.6vw, 36px);
  padding: clamp(16px, 2vw, 22px) 0;
}

body.area-leistung .fact-row + .fact-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.area-leistung .fact-row dt {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.area-leistung .fact-row dt::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8ceda6;
  box-shadow: 0 0 10px rgba(140, 237, 166, 0.9);
  content: "";
}

body.area-leistung .fact-row dd {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  font-weight: 600;
  line-height: 1.45;
}

/* ---------- Bereichsweite Politur ---------- */

body.area-leistung .deliverable-card:hover {
  border-color: rgba(1, 141, 150, 0.38);
}

/* Weiße Sektionen direkt hintereinander: doppeltes Polster vermeiden */
body.area-leistung .content-section.page-shell + .content-section.sig-section,
body.area-leistung .content-section.sig-section + .content-section.page-shell {
  padding-top: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  body.area-leistung .scenario-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.area-leistung .funnel-stage {
    grid-template-columns: 52px 1fr;
    width: 100%;
  }

  body.area-leistung .funnel-stage p {
    grid-column: 1 / -1;
  }

  body.area-leistung .stack-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.area-leistung .compare-pair {
    grid-template-columns: 1fr;
  }

  body.area-leistung .compare-arrow svg {
    transform: rotate(90deg);
  }

  body.area-leistung .fact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 430px) {
  body.area-leistung .module-core {
    align-items: flex-start;
  }

  body.area-leistung .funnel-badge {
    right: 14px;
  }
}
