
:root {
  --s3-navy: #01132b;
  --s3-teal: #23a2aa;
  --s3-teal-dark: #1b8b92;
  --s3-teal-soft: #e8f5f6;
  --s3-orange: #ff8e5b;
  --s3-lime: #e5f200;
  --s3-bg: #f5f7f8;
  --s3-card: #ffffff;
  --s3-border: #d8e2e7;
  --s3-text: #1f3047;
  --s3-text-soft: #5e7287;
  --s3-ring: rgba(112, 129, 142, 0.28);
  --shadow-soft: 0 14px 34px rgba(1, 19, 43, 0.08);
  --shadow-card: 0 8px 24px rgba(1, 19, 43, 0.05);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container-width: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--s3-bg);
  color: var(--s3-text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 34px 24px 72px;
}

.page-home .container {
  max-width: none;
  padding: 0;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--s3-navy);
}

p { margin-top: 0; }

/* =========================
   Topbar / Navigation
   ========================= */

.topbar {
  background: linear-gradient(90deg, #01132b 0%, #05224d 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.14);
}

.topbar-inner,
.subnav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.brand-sub {
  font-size: 0.86rem;
  opacity: 0.82;
  line-height: 1.1;
}

.main-nav,
.subnav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a,
.subnav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.subnav-links a:hover {
  transform: translateY(-1px);
}

.main-nav a { color: rgba(255, 255, 255, 0.9); }

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.subnav-wrap {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(1, 19, 43, 0.08);
}

.subnav-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.subnav-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--s3-text-soft);
}

.subnav-links a {
  color: var(--s3-text-soft);
}

.subnav-links a:hover,
.subnav-links a.active {
  background: var(--s3-teal-soft);
  color: var(--s3-teal-dark);
}

.subnav-info {
  color: var(--s3-text-soft);
  font-size: 0.94rem;
}

/* =========================
   Messages
   ========================= */

.error-box,
.success-box,
.status {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 20px;
  font-weight: 600;
}

.error-box {
  background: #fff0ef;
  border: 1px solid #ffc7c1;
  color: #a53d31;
}

.success-box {
  background: #edf9f1;
  border: 1px solid #bde8ca;
  color: #247447;
}

.status {
  background: #eef3f8;
  border: 1px solid #dbe5f0;
  color: var(--s3-navy);
  display: block;
  font-weight: 700;
}

/* =========================
   Forms / Login / Buttons
   ========================= */

.login-screen {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 0 10px;
}

.login-panel {
  width: min(100%, 640px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--s3-border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 38px 38px 32px;
}

.login-panel h1 {
  margin-bottom: 10px;
  color: #01132b;
  font-size: clamp(2rem, 5vw, 3rem);
}

.login-intro {
  margin-bottom: 24px;
  color: var(--s3-text);
  font-size: 1.05rem;
}

.login-form,
.app-form {
  display: grid;
  gap: 12px;
}

.login-form label,
.app-form label {
  font-weight: 700;
  color: var(--s3-navy);
}

.login-form input,
.login-form select,
.login-form textarea,
.app-form input,
.app-form select,
.app-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #c8d3e1;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--s3-text);
  background: #f8fbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-form textarea,
.app-form textarea {
  min-height: 110px;
  resize: vertical;
}

.login-form input:focus,
.login-form select:focus,
.login-form textarea:focus,
.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
  outline: none;
  border-color: #7f93b3;
  box-shadow: 0 0 0 4px rgba(1, 19, 43, 0.08);
  background: #fff;
}

.login-form button,
.app-form button,
.button-primary,
.button-secondary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.login-form button,
.app-form button,
.button-primary,
.btn-primary {
  background: #01132b;
  color: #fff;
  box-shadow: 0 12px 24px rgba(35, 162, 170, 0.18);
  border: 1px solid #01132b;
}

.login-form button:hover,
.app-form button:hover,
.button-primary:hover,
.btn-primary:hover,
.button-secondary:hover,
.btn-secondary:hover,
.btn:hover {
  transform: translateY(-1px);
}

.button-secondary,
.btn-secondary {
  background: #edf4f6;
  color: var(--s3-teal-dark);
  border-color: #cfdee4;
}

.login-backlink-wrap { margin-top: 18px; }
.login-backlink { color: var(--s3-teal-dark); font-weight: 700; }

/* =========================
   Landing / Home
   ========================= */

.landing-shell {
  padding: 28px 24px 56px;
}

.wosi-hero {
  max-width: 1420px;
  margin: 0 auto;
  padding: 42px 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,250,251,0.96) 100%);
  border: 1px solid rgba(1, 19, 43, 0.08);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.wosi-hero-inner {
  display: grid;
  grid-template-columns: minmax(620px, 1.2fr) minmax(420px, 0.8fr);
  gap: 52px;
  align-items: start;
}

.wosi-copy {
  min-width: 0;
  max-width: 760px;
}

.wosi-eyebrow {
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #01132b;
}

.wosi-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #01132b;
  white-space: nowrap;
}

.wosi-copy > p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.55;
  color: var(--s3-text);
}

.wosi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.wosi-info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 34px;
  max-width: 980px;
}

.info-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--s3-border);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  min-height: 180px;
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  color: #01132b;
}

.info-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--s3-text);
}

.wosi-visual-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 670px;
  padding-top: 48px;
}

.wosi-orbit-system {
  position: relative;
  width: 600px;
  height: 600px;
  aspect-ratio: 1 / 1;
}

.orbit-ring {
  position: absolute;
  inset: 80px;
  border: 2px dashed rgba(1, 19, 43, 0.1);
  border-radius: 50%;
  animation: orbitRotate 90s linear infinite;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 102px;
  height: 102px;
  margin-top: -51px;
  margin-left: -51px;
  border-radius: 50%;
  border: 1px solid rgba(1, 19, 43, 0.07);
  background: rgba(255,255,255,0.94);
  color: var(--s3-navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(1, 19, 43, 0.08);
  z-index: 3;
}

.orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 124px;
  height: 1px;
  background: rgba(1, 19, 43, 0.14);
  transform-origin: 0 50%;
  z-index: 1;
}

.orbit-line-top { transform: rotate(-90deg); }
.orbit-line-left { transform: rotate(150deg); }
.orbit-line-right { transform: rotate(30deg); }

.orbit-node {
  position: absolute;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
  color: var(--s3-navy);
  border: 2px solid rgba(1, 19, 43, 0.08);
  box-shadow: 0 16px 28px rgba(1, 19, 43, 0.10);
  animation: none;
  will-change: transform, box-shadow, filter;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
  z-index: 3;
}

.orbit-node span {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  color: #01132b;
}

.node-top {
  top: 24px;
  left: 50%;
  margin-left: 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #41c7da 0%, #21afc9 100%);
}

.node-left {
  left: 66px;
  bottom: 92px;
  transform: none;
  background: linear-gradient(180deg, #ffb17f 0%, #ff9960 100%);
}

.node-right {
  right: 66px;
  bottom: 92px;
  transform: none;
  background: linear-gradient(180deg, #FEC10D 0%, #FEC10D 100%);
}

.node-top:hover {
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 24px 40px rgba(1, 19, 43, 0.18);
  filter: saturate(1.05) brightness(1.02);
  z-index: 5;
}

.node-left:hover,
.node-right:hover {
  transform: scale(1.08);
  box-shadow: 0 24px 40px rgba(1, 19, 43, 0.18);
  filter: saturate(1.05) brightness(1.02);
  z-index: 5;
}

.standby-logo-top {
  position: absolute;
  top: 54px;
  right: 62px;
  z-index: 3;
}

.standby-logo-top img {
  height: 55px;
  width: auto;
  display: block;
}

/* =========================
   Cards / Tables / Dashboard
   ========================= */

.dashboard-section { margin-bottom: 40px; }

.section-kicker {
  margin-top: 0px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--s3-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-intro {
  color: var(--s3-text-soft);
  max-width: 860px;
}

.dashboard-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-grid-project {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-card,
.module-card {
  display: block;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--s3-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.dashboard-card h3,
.module-card h2,
.app-table th {
  color: #01132b;
}

.dashboard-card,
.info-card {
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.dashboard-card:hover,
.info-card:hover {
  background: #edf4f6;
  border-color: #cfdee4;
  transform: translateY(-2px);
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--s3-border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.app-table {
  width: 100%;
  border-collapse: collapse;
}

.app-table th,
.app-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8eef1;
  text-align: left;
  vertical-align: top;
}

.app-table th {
  background: #eef3f8;
  font-size: 0.95rem;
}

.app-table tr:last-child td {
  border-bottom: 0;
}

.module-grid-2col {
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.5fr);
  align-items: start;
}

.module-card--wide .table-wrap { overflow-x: auto; }
.module-card--wide .app-table { min-width: 760px; }

.page-variant h1,
.page-variant h2 {
  color: #01132b;
}

/* legacy classes kept hidden for safety */
.hero,
.home-grid,
.home-card,
.orbit-stage,
.orbit-center,
.standby-hero,
.standby-grid,
.standby-copy,
.standby-visual,
.orbit-node-top,
.orbit-node-left,
.orbit-node-right {
  display: none;
}

/* =========================
   Animations
   ========================= */

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1220px) {
  .dashboard-grid,
  .dashboard-grid-project,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 821px) and (max-width: 1366px) {
  .wosi-hero-inner {
    grid-template-columns: minmax(460px, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: start;
  }

  .wosi-copy {
    max-width: none;
  }

  .wosi-copy h1 {
    font-size: clamp(2.6rem, 5vw, 3.9rem);
    white-space: normal;
  }

  .wosi-copy > p {
    font-size: 1.02rem;
    line-height: 1.45;
  }

  .wosi-actions {
    margin-top: 22px;
    margin-bottom: 22px;
  }

  .wosi-info-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 16px;
    margin-top: 24px;
  }

  .info-card {
    min-height: auto;
    padding: 20px 18px;
  }

  .wosi-visual-wrap {
    min-height: auto;
    padding-top: 70px;
    align-items: start;
  }

  .wosi-orbit-system {
    width: 420px;
    height: 420px;
  }

  .orbit-ring {
    inset: 48px;
  }

  .orbit-core {
    width: 84px;
    height: 84px;
    margin-left: -42px;
    margin-top: -42px;
  }

  .orbit-line {
    width: 92px;
  }

  .orbit-node {
    width: 118px;
    height: 118px;
  }

  .orbit-node span {
    font-size: 0.94rem;
  }

  .node-top {
    top: 6px;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
  }

  .node-left {
    left: 24px;
    bottom: 48px;
  }

  .node-right {
    right: 24px;
    bottom: 48px;
  }

  .standby-logo-top {
    top: 26px;
    right: 28px;
  }

  .standby-logo-top img {
    height: 56px;
    width: auto;
  }
	.wosi-visual-wrap {
  padding-top: 120px; /* vorher ~70px */
}
	.wosi-copy h1 {
  white-space: nowrap;
}
}

@media (max-width: 860px) {
  .topbar-inner,
  .subnav-inner,
  .container,
  .landing-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar-inner,
  .subnav-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 820px) {
  .wosi-hero {
    padding: 26px 18px 30px;
  }

  .wosi-hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .wosi-copy { max-width: none; }

  .wosi-copy h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.02;
    white-space: normal;
    max-width: 100%;
  }

  .wosi-copy > p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
  }

  .wosi-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 24px;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .wosi-info-cards,
  .dashboard-grid,
  .dashboard-grid-project,
  .module-grid,
  .module-grid-2col {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .info-card {
    min-height: auto;
    padding: 18px 16px;
  }

  .wosi-visual-wrap {
    min-height: auto;
    padding-top: 6px;
    justify-content: center;
  }

  .wosi-orbit-system {
    width: 320px;
    height: 320px;
  }

  .orbit-ring { inset: 38px; }

  .orbit-core {
    width: 74px;
    height: 74px;
    margin-left: -37px;
    margin-top: -37px;
    font-size: 0.95rem;
  }

  .orbit-line { width: 74px; }

  .orbit-node {
    width: 98px;
    height: 98px;
  }

  .orbit-node span {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .node-top {
    top: -2px;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
  }

  .node-left { left: 2px; bottom: 34px; }
  .node-right { right: 2px; bottom: 34px; }

  .standby-logo-top {
    top: 20px;
    right: 20px;
  }

  .standby-logo-top img { height: 48px; }
}

@media (max-width: 620px) {
  .container {
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .login-panel {
    padding: 26px 20px 24px;
    border-radius: 18px;
  }
}

/* =========================================
   WoSI – Projekte / Detailansicht responsive
   Safe CSS step for Desktop, iPad, Mobile
   ========================================= */

.project-link {
  color: var(--s3-teal);
  font-weight: 700;
  text-decoration: none;
}

.project-link:hover {
  color: var(--s3-teal-dark);
  text-decoration: underline;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.module-card .table-wrap {
  border-radius: var(--radius-md);
}

/* Detailansicht unter Projekte */
.dashboard-section .module-card p strong {
  color: var(--s3-navy);
}

.dashboard-grid-project {
  gap: 18px;
}

.dashboard-grid-project .dashboard-card {
  min-height: 0;
}

/* iPad / kleinere Laptops */
@media (max-width: 1180px) {
  .module-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .app-table th,
  .app-table td {
    padding: 12px 12px;
    font-size: 0.92rem;
  }
}

/* Handy */
@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .module-card {
    padding: 18px 16px;
  }

  .app-form button,
  .btn,
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  /* Tabellen auf Mobil bewusst scrollbar statt abgeschnitten */
  .module-card .table-wrap {
    overflow-x: auto;
  }

  .module-card .app-table {
    min-width: 620px;
  }
}
/* WoSI – mobile/tablet fix for projects + customers pages */

/* safer card sizing on narrow screens */
.module-card,
.dashboard-card,
.table-wrap,
.app-form,
.app-form input,
.app-form select,
.app-form textarea,
.app-form button {
  box-sizing: border-box;
}

.project-link {
  color: #23A2AA;
  font-weight: 700;
  text-decoration: none;
}
.project-link:hover { text-decoration: underline; }

/* keep forms inside the viewport */
@media (max-width: 820px) {
  .container,
  .topbar-inner,
  .subnav-inner,
  .landing-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .module-grid,
  .module-grid-2col,
  .dashboard-grid,
  .dashboard-grid-project {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .module-card,
  .dashboard-card {
    min-width: 0;
    padding: 18px 14px;
    overflow: hidden;
  }

  .app-form,
  form {
    min-width: 0;
  }

  .app-form input,
  .app-form select,
  .app-form textarea,
  .app-form button,
  .btn,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 100%;
  }
}

/* project/customer/scenario tables: controlled mobile scrolling instead of clipping */
@media (max-width: 820px) {
  .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap .app-table {
    width: max-content;
    min-width: 620px;
  }

  .table-wrap .app-table th,
  .table-wrap .app-table td {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding: 12px 12px;
    font-size: 0.95rem;
  }
}

/* phone: reduce table footprint and button clipping */
@media (max-width: 640px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .module-card,
  .dashboard-card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .app-form button,
  .btn,
  .btn-primary,
  .btn-secondary {
    display: block;
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.98rem;
  }

  .table-wrap {
    margin-top: 18px;
  }

  .table-wrap .app-table {
    min-width: 560px;
  }

  .table-wrap .app-table th,
  .table-wrap .app-table td {
    padding: 10px 10px;
    font-size: 0.88rem;
  }
}

/* very small phones */
@media (max-width: 420px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .module-card,
  .dashboard-card {
    padding: 14px 10px;
  }

  .table-wrap .app-table {
    min-width: 520px;
  }

  .table-wrap .app-table th,
  .table-wrap .app-table td {
    padding: 9px 8px;
    font-size: 0.84rem;
  }
}
/* =========================================
   WoSI – Projekt-Detailblock Feinschliff
   ========================================= */

.project-detail-section {
  margin-top: 32px;
}

.project-detail-section .project-detail-card,
.project-detail-section .project-snapshot-card,
.project-detail-section .module-card {
  margin-bottom: 0;
}

.project-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.project-detail-title {
  margin: 6px 0 14px;
}

.project-detail-description {
  max-width: 780px;
  margin-bottom: 0;
}

.project-detail-meta {
  align-self: stretch;
}

.project-meta-list {
  display: grid;
  gap: 10px;
}

.project-meta-item {
  display: grid;
  gap: 2px;
}

.project-meta-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--s3-teal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-meta-value {
  color: var(--s3-text);
}

.project-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.project-snapshot-card {
  min-height: 132px;
}

.project-detail-grid {
  gap: 20px;
  margin-top: 20px;
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.project-detail-note {
  margin-top: 16px;
}

.project-detail-section .module-card,
.project-detail-section .dashboard-card {
  box-shadow: 0 1px 0 rgba(1, 19, 43, 0.03);
}

/* etwas mehr Luft zwischen den unteren Reihen */
.project-detail-section .module-grid + .module-grid {
  margin-top: 22px;
}

/* iPad */
@media (max-width: 1180px) {
  .project-detail-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .project-detail-grid {
    gap: 18px;
  }
}

/* Handy */
@media (max-width: 640px) {
  .project-detail-section {
    margin-top: 24px;
  }

  .project-snapshot-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .project-detail-grid {
    gap: 16px;
    margin-top: 16px;
  }

  .project-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-detail-actions .btn,
  .project-detail-actions .btn-primary,
  .project-detail-actions .btn-secondary {
    width: 100%;
  }

  .project-meta-list {
    gap: 12px;
  }
}
/* =========================================
   WoSI – 3.23b Block 2
   Projekt-Hub Feinschliff
   ========================================= */

.project-detail-section {
  margin-top: 34px;
}

.project-detail-card {
  padding: 24px 24px;
}

.project-detail-card--header {
  padding: 26px 24px;
}

.project-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.project-detail-main {
  max-width: 760px;
}

.project-detail-title {
  margin: 6px 0 14px;
  line-height: 1.15;
}

.project-detail-description {
  margin-bottom: 0;
  max-width: 720px;
}

.project-detail-meta {
  align-self: start;
}

.project-meta-list {
  display: grid;
  gap: 12px;
}

.project-meta-item {
  display: grid;
  gap: 2px;
}

.project-meta-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--s3-teal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-meta-value {
  color: var(--s3-text);
  line-height: 1.35;
}

.project-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 20px;
}

.project-snapshot-card {
  min-height: 132px;
  padding: 20px 22px;
}

.project-snapshot-card h3 {
  margin-bottom: 18px;
}

.project-next-step-card {
  border-color: rgba(35, 162, 170, 0.35);
  box-shadow: 0 0 0 1px rgba(35, 162, 170, 0.08);
}

.project-next-step-card h2 {
  margin-bottom: 16px;
}

.project-next-step-card p + p {
  margin-top: 10px;
}

.project-detail-grid {
  gap: 20px;
  margin-top: 20px;
}

.project-detail-grid .module-card {
  min-height: 100%;
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.project-detail-actions .btn,
.project-detail-actions .btn-primary,
.project-detail-actions .btn-secondary {
  min-width: 220px;
}

.project-detail-note {
  margin-top: 16px;
}

.project-detail-section .module-grid + .module-grid {
  margin-top: 22px;
}

.project-detail-section .status {
  margin-top: 14px;
}

.project-detail-section .table-wrap {
  margin-top: 12px;
}

/* Tablet / iPad */
@media (max-width: 1180px) {
  .project-detail-header {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .project-detail-grid {
    gap: 18px;
  }
}

/* Handy */
@media (max-width: 640px) {
  .project-detail-section {
    margin-top: 26px;
  }

  .project-detail-card,
  .project-detail-card--header {
    padding: 20px 16px;
  }

  .project-snapshot-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 18px;
  }

  .project-snapshot-card {
    min-height: auto;
    padding: 18px 16px;
  }

  .project-detail-grid {
    gap: 16px;
    margin-top: 16px;
  }

  .project-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-detail-actions .btn,
  .project-detail-actions .btn-primary,
  .project-detail-actions .btn-secondary {
    width: 100%;
    min-width: 0;
  }

  .project-meta-list {
    gap: 12px;
  }
}
/* =========================================
   WoSI – 3.23c Block 3 Micro Polish
   ========================================= */

.project-next-step-card {
  background: linear-gradient(180deg, rgba(35, 162, 170, 0.04) 0%, rgba(35, 162, 170, 0.02) 100%);
}

.project-snapshot-card p {
  font-weight: 500;
}

.project-meta-value {
  font-weight: 500;
}
/* =========================================
   WoSI – Demo Workspace Journey
   ========================================= */

.page-usecase .topbar,
.page-impact .topbar,
.page-journey .topbar {
  background: linear-gradient(90deg, #1cc9c8 0%, #18bbb9 100%);
  color: #01132b;
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.08);
}

.page-usecase .main-nav a,
.page-impact .main-nav a,
.page-journey .main-nav a {
  color: rgba(1, 19, 43, 0.92);
}

.page-usecase .main-nav a:hover,
.page-usecase .main-nav a.active,
.page-impact .main-nav a:hover,
.page-impact .main-nav a.active,
.page-journey .main-nav a:hover,
.page-journey .main-nav a.active {
  background: rgba(255, 255, 255, 0.28);
  color: #01132b;
}

.journey-page {
  display: grid;
  gap: 28px;
}

.journey-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.journey-eyebrow {
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1b8b92;
}

.journey-lead {
  max-width: 920px;
  color: var(--s3-text);
  font-size: 1.05rem;
}

.journey-intro-note {
  max-width: 800px;
  color: var(--s3-text-soft);
}

.journey-step-nav {
  min-width: 220px;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.journey-step-nav__meta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--s3-text-soft);
}

.journey-step-nav__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.journey-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38c9c8 0%, #28b7b5 100%);
  color: #01132b;
  border: 1px solid rgba(1, 19, 43, 0.18);
  box-shadow: 0 10px 20px rgba(1, 19, 43, 0.08);
  font-weight: 700;
}

.journey-step-btn--ghost {
  background: rgba(255, 255, 255, 0.9);
}

.journey-step-btn--disabled {
  background: #edf2f4;
  color: #94a2b4;
  border-color: #dbe4e8;
  box-shadow: none;
  pointer-events: none;
}

.card-surface,
.journey-hero-card,
.journey-side-nav,
.journey-story-badge {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(1, 19, 43, 0.08);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(1, 19, 43, 0.06);
}

.journey-landing-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.journey-landing-grid--full {
  grid-template-columns: 1fr;
}

.journey-side-nav {
  padding: 24px;
}

.journey-side-nav__title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--s3-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.journey-side-nav__list {
  display: grid;
  gap: 14px;
}

.journey-side-link {
  display: block;
  padding: 18px 20px;
  border-radius: 18px;
  background: #eff4f7;
  border: 1px solid #dde6ec;
  font-size: 1.1rem;
  font-weight: 700;
  color: #01132b;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.journey-side-link:hover {
  transform: translateY(-1px);
  background: #e6fbfb;
  box-shadow: 0 8px 18px rgba(1, 19, 43, 0.08);
}

.journey-hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 520px;
}

.journey-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(28,201,200,0.16), transparent 36%);
  pointer-events: none;
}

.journey-landing-grid--full .journey-hero-card {
  min-height: 500px;
}

.journey-landing-grid--full .journey-hero-placeholder__inner p {
  max-width: 860px;
}

.journey-hero-card__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.journey-hero-card__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6fbfb;
  color: #1b8b92;
  font-size: 0.9rem;
  font-weight: 700;
}

.journey-hero-placeholder__inner {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
}

.journey-hero-placeholder__inner h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.journey-hero-placeholder__inner p {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--s3-text);
}

.journey-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  color: #4c6076;
  background: transparent;
  border: none;
  border-radius: 28px;
  padding: 0px;
}

.journey-image-placeholder--hero {
    width: 100%;
    height: 300px; /* kannst du anpassen */
    border-radius: 16px;
    overflow: hidden;
}

.journey-image-placeholder--hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.journey-hero-image {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
}

.journey-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.journey-basics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.journey-basics-copy,
.journey-basics-visual,
.journey-layout-card,
.journey-metrics-card,
.journey-data-panel {
  padding: 26px;
}

.journey-basics-copy h2 {
  margin-bottom: 20px;
}

.journey-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.journey-mini-card {
  background: #f7f9fb;
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.journey-mini-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* optional: leichter Hover Effekt */
.journey-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.journey-image-placeholder--small {
  min-height: 140px;
  border-radius: 20px;
  font-size: 0.98rem;
}

.journey-panel-title {
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--s3-text-soft);
}

.journey-image-placeholder--big {
  min-height: 520px;
  font-size: 1.35rem;
}

.journey-big-visual-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.journey-story-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.journey-story-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6fbfb;
  color: #1b8b92;
  font-weight: 800;
}

.journey-story-badge strong {
  color: #01132b;
  font-size: 1rem;
}

.journey-stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 340px;
  gap: 24px;
  align-items: start;
}

.journey-image-placeholder--layout {
  min-height: 420px;
  font-size: clamp(1.7rem, 2.8vw, 2.9rem);
  color: rgba(185, 36, 36, 0.92);
  font-weight: 700;
}

.journey-layout-note {
  margin-top: 14px;
  color: var(--s3-text-soft);
  font-size: 0.95rem;
}

.journey-chart-wrap {
  margin-bottom: 20px;
}

.journey-image-placeholder--chart {
  min-height: 180px;
  border-radius: 22px;
  color: rgba(185, 36, 36, 0.92);
  font-weight: 700;
}

.journey-metric-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.journey-metric-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7fafb;
  border: 1px solid #e4ecef;
}

.journey-metric-value {
  display: block;
  font-size: 1.38rem;
  font-weight: 800;
  color: #01132b;
}

.journey-metric-label {
  display: block;
  margin-top: 4px;
  color: var(--s3-text-soft);
  font-size: 0.92rem;
}

.journey-legend {
  display: grid;
  gap: 10px;
}

.journey-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f4;
}

.journey-legend-item:last-child {
  border-bottom: 0;
}

.journey-legend-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.journey-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
}

.journey-color-dot--focus { background: #01132B; } /* Arbeitsplätze */
.journey-color-dot--communication { background: #FEC10D; } /* Kommunikation */
.journey-color-dot--collaboration { background: #ff8e5b; } /* Zusammenarbeit */
.journey-color-dot--retreat { background: #007AAB; } /* Rückzug */

.journey-stage-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.journey-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.journey-panel-header h2 {
  margin-bottom: 0;
}

.journey-panel-header p {
  margin-bottom: 0;
  color: var(--s3-text-soft);
  font-size: 0.92rem;
}

.journey-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.journey-kv-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.journey-kv-item.is-highlight {
  background: linear-gradient(180deg, rgba(28,201,200,0.12) 0%, rgba(28,201,200,0.06) 100%);
  border-color: rgba(28,201,200,0.24);
}

.journey-kv-label,
.journey-kpi-label {
  color: var(--s3-text-soft);
  font-size: 0.9rem;
}

.journey-kv-value,
.journey-kpi-value {
  color: #01132b;
  font-size: 1.04rem;
}

.journey-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.journey-kpi-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28,201,200,0.14) 0%, rgba(28,201,200,0.07) 100%);
  border: 1px solid rgba(28,201,200,0.22);
}

.journey-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
}

.journey-table-wrap {
  margin-top: 4px;
}

.journey-table th {
  background: #f0f6f8;
}

@media (max-width: 1180px) {
  .journey-landing-grid,
  .journey-basics-grid,
  .journey-stage-top,
  .journey-stage-bottom {
    grid-template-columns: 1fr;
  }

  .journey-step-nav {
    justify-items: start;
  }

  .journey-step-nav__buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .journey-header-row,
  .journey-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .journey-kv-grid,
  .journey-kpi-row,
  .journey-mini-grid {
    grid-template-columns: 1fr;
  }

  .journey-image-placeholder--hero,
  .journey-image-placeholder--big,
  .journey-image-placeholder--layout {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .journey-page {
    gap: 20px;
  }

  .journey-side-nav,
  .journey-hero-card,
  .journey-basics-copy,
  .journey-basics-visual,
  .journey-layout-card,
  .journey-metrics-card,
  .journey-data-panel {
    padding: 18px;
  }

  .journey-side-link {
    padding: 15px 16px;
    font-size: 1rem;
  }

  .journey-story-badge {
    flex-direction: column;
    align-items: flex-start;
  }

  .journey-image-placeholder--chart {
    min-height: 140px;
  }
}
.main-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 36px;
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.1;
}

/* =========================================
   WoSI – Subnav Design Upgrade
   ========================================= */

.subnav-wrap {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(1, 19, 43, 0.08);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.35);
}

.subnav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  min-height: 62px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.subnav-label {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #63788d;
  white-space: nowrap;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subnav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #6b7f93;
  background: transparent;
  border: 1px solid transparent;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.subnav-links a:hover {
  color: var(--s3-navy);
  background: #eef5f7;
  border-color: #d9e6eb;
  transform: translateY(-1px);
}

.subnav-links a.active {
  color: var(--s3-teal-dark);
  background: linear-gradient(180deg, #edf8f9 0%, #e3f4f6 100%);
  border-color: #d1e8eb;
  box-shadow: 0 6px 14px rgba(35, 162, 170, 0.08);
}

.subnav-links a.active:hover {
  color: var(--s3-teal-dark);
  background: linear-gradient(180deg, #edf8f9 0%, #e3f4f6 100%);
  border-color: #c8e1e5;
}

.subnav-info {
  font-size: 0.96rem;
  color: var(--s3-text-soft);
}

/* Desktop etwas luftiger */
@media (min-width: 1024px) {
  .subnav-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .subnav-links a {
    min-height: 42px;
    padding: 0 20px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .subnav-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .subnav-links {
    width: 100%;
    gap: 8px;
  }

  .subnav-links a {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.94rem;
  }
}

/* Handy */
@media (max-width: 640px) {
  .subnav-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .subnav-label {
    font-size: 0.84rem;
  }

  .subnav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subnav-links::-webkit-scrollbar {
    display: none;
  }

  .subnav-links a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}
/* =========================================
   WoSI – Journey Header
   ========================================= */

.journey-header {
  margin-bottom: 28px;
  padding: 22px 24px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border: 1px solid rgba(1, 19, 43, 0.06);
  box-shadow: 0 10px 30px rgba(1, 19, 43, 0.04);
}

/* Top Bereich */
.journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.journey-title h2 {
  margin: 4px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--s3-navy);
}

.journey-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--s3-teal-dark);
  background: rgba(35, 162, 170, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Fortschritt Text */
.journey-progress-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--s3-navy);
}

.step-divider {
  opacity: 0.5;
  margin: 0 4px;
}

/* Progress Bar */
.journey-progress-bar {
  height: 8px;
  width: 100%;
  background: #e8f0f3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.journey-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #23A2AA 0%, #5ec6cc 100%);
  box-shadow: 0 4px 10px rgba(35, 162, 170, 0.2);
  transition: width 0.4s ease;
}

/* Navigation Buttons */
.journey-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.journey-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Secondary */
.journey-btn.secondary {
  color: #6b7f93;
  background: #f2f6f8;
}

.journey-btn.secondary:hover {
  background: #e6eff3;
  color: var(--s3-navy);
}

/* Primary */
.journey-btn.primary {
  color: white;
  background: linear-gradient(90deg, #01132B 0%, #23A2AA 100%);
  box-shadow: 0 8px 18px rgba(1, 19, 43, 0.18);
}

.journey-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(1, 19, 43, 0.22);
}

/* Mobile */
@media (max-width: 640px) {
  .journey-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .journey-nav {
    flex-direction: column;
  }
}
/* =========================================
   WoSI – Journey Step Slider
   ========================================= */

.journey-slider-card {
  margin-bottom: 22px;
  padding: 22px 24px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border: 1px solid rgba(1, 19, 43, 0.06);
  box-shadow: 0 12px 30px rgba(1, 19, 43, 0.05);
}

.journey-slider-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.journey-slider-card__title h1 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.08;
  color: var(--s3-navy);
}

.journey-slider-card__progress {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s3-navy);
  white-space: nowrap;
  padding-top: 8px;
}

.step-divider {
  opacity: 0.45;
}

.journey-step-slider {
  position: relative;
  height: 48px;
  margin: 4px 4px 16px;
  user-select: none;
  touch-action: none;
}

.journey-step-slider__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #e6eef2;
  box-shadow: inset 0 1px 2px rgba(1, 19, 43, 0.05);
}

.journey-step-slider__fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #23a2aa 0%, #53c7cc 100%);
  box-shadow: 0 6px 14px rgba(35, 162, 170, 0.18);
  pointer-events: none;
}

.journey-step-slider__point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.journey-step-slider__dot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  border-radius: 50%;
  background: #b7c7d2;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(1, 19, 43, 0.14);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.journey-step-slider__point:hover .journey-step-slider__dot {
  transform: scale(1.12);
  background: #7fcfd3;
}

.journey-step-slider__point.is-active .journey-step-slider__dot {
  background: var(--s3-teal);
  box-shadow: 0 4px 12px rgba(35, 162, 170, 0.28);
}

.journey-step-slider__handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border: 1px solid rgba(1, 19, 43, 0.08);
  box-shadow: 0 10px 20px rgba(1, 19, 43, 0.14);
  z-index: 4;
  pointer-events: none;
}

.journey-step-slider__handle-inner {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #23a2aa 0%, #15919b 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
}

.journey-step-slider__labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.journey-step-slider__label {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #768a9b;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  transition: color 0.2s ease, transform 0.2s ease;
}

.journey-step-slider__label:hover {
  color: var(--s3-navy);
  transform: translateY(-1px);
}

.journey-step-slider__label.is-active {
  color: var(--s3-teal-dark);
}

@media (max-width: 980px) {
  .journey-slider-card__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .journey-slider-card__progress {
    padding-top: 0;
    font-size: 1.35rem;
  }

  .journey-step-slider__labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 8px;
  }
}

@media (max-width: 640px) {
  .journey-slider-card {
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .journey-slider-card__title h1 {
    font-size: 1.75rem;
  }

  .journey-step-slider {
    height: 44px;
    margin-left: 0;
    margin-right: 0;
  }

  .journey-step-slider__track,
  .journey-step-slider__fill {
    height: 10px;
  }

  .journey-step-slider__handle {
    width: 36px;
    height: 36px;
  }

  .journey-step-slider__handle-inner {
    inset: 8px;
  }

  .journey-step-slider__label {
    font-size: 0.8rem;
  }
}

/* =========================================
   WoSI – Journey Slider Compact Tuning
   ========================================= */

.journey-slider-card {
  margin-bottom: 18px;
  padding: 18px 20px 12px;
  border-radius: 22px;
}

.journey-slider-card__top {
  margin-bottom: 14px;
}

.journey-slider-card__title h1 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  line-height: 1.08;
}

.journey-slider-card__progress {
  font-size: 1.05rem;
  padding-top: 2px;
}

.journey-step-slider {
  height: 34px;
  margin: 2px 2px 8px;
}

.journey-step-slider__track,
.journey-step-slider__fill {
  height: 8px;
}

.journey-step-slider__point {
  width: 24px;
  height: 24px;
}

.journey-step-slider__dot {
  width: 10px;
  height: 10px;
}

.journey-step-slider__handle {
  width: 30px;
  height: 30px;
}

.journey-step-slider__handle-inner {
  inset: 7px;
}

.journey-step-slider__labels {
  margin-top: 2px;
  gap: 8px;
}

.journey-step-slider__label {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.15;
  color: #8193a3;
}

.journey-step-slider__label.is-active {
  color: var(--s3-teal-dark);
  font-weight: 700;
}

.journey-badge {
  font-size: 0.68rem;
  padding: 4px 9px;
}

@media (max-width: 980px) {
  .journey-slider-card {
    padding: 16px 16px 10px;
  }

  .journey-slider-card__title h1 {
    font-size: 1.9rem;
  }

  .journey-step-slider__labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 6px;
  }

  .journey-step-slider__label {
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  .journey-slider-card__title h1 {
    font-size: 1.55rem;
  }

  .journey-slider-card__progress {
    font-size: 1rem;
  }

  .journey-step-slider {
    height: 30px;
  }

  .journey-step-slider__track,
  .journey-step-slider__fill {
    height: 7px;
  }

  .journey-step-slider__handle {
    width: 26px;
    height: 26px;
  }

  .journey-step-slider__handle-inner {
    inset: 6px;
  }

  .journey-step-slider__label {
    font-size: 0.68rem;
  }
}

/* =========================================
   WoSI – Mobile Fix
   Subnav + Journey Slider Labels
   Ganz unten einfügen
   ========================================= */

@media (max-width: 640px) {

  /* ---------- Subnavigation sauber scrollbar ---------- */

  .subnav-wrap {
    overflow: hidden;
  }

  .subnav-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .subnav-label {
    flex: 0 0 auto;
    font-size: 0.8rem;
    line-height: 1.1;
  }

  .subnav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subnav-links::-webkit-scrollbar {
    display: none;
  }

  .subnav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  /* ---------- Journey Slider kompakter ---------- */

  .journey-slider-card {
    padding: 14px 14px 10px;
    border-radius: 18px;
  }

  .journey-slider-card__top {
    gap: 8px;
    margin-bottom: 10px;
  }

  .journey-slider-card__title h1 {
    font-size: 1.2rem;
    line-height: 1.08;
    margin-top: 3px;
  }

  .journey-slider-card__progress {
    font-size: 0.95rem;
    padding-top: 0;
  }

  .journey-step-slider {
    height: 28px;
    margin: 0 0 6px;
  }

  .journey-step-slider__track,
  .journey-step-slider__fill {
    height: 6px;
  }

  .journey-step-slider__point {
    width: 18px;
    height: 18px;
  }

  .journey-step-slider__dot {
    width: 8px;
    height: 8px;
  }

  .journey-step-slider__handle {
    width: 22px;
    height: 22px;
  }

  .journey-step-slider__handle-inner {
    inset: 5px;
  }

  /* ---------- Labels: eine einzige Zeile statt 2 Reihen ---------- */

  .journey-step-slider__labels {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .journey-step-slider__labels::-webkit-scrollbar {
    display: none;
  }

  .journey-step-slider__label {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.66rem;
    line-height: 1;
    padding: 0 2px;
  }

  /* aktive Station etwas klarer */
  .journey-step-slider__label.is-active {
    font-weight: 700;
  }

  /* optional etwas weniger Abstand zum Content */
  .journey-lead {
    font-size: 0.98rem;
    margin-top: 2px;
  }

  .journey-intro-note {
    font-size: 0.95rem;
  }
}

/* =========================================
   WoSI – Mobile Final Tuning
   Topbar + Subnav
   Ganz unten einfügen
   ========================================= */

@media (max-width: 640px) {

  /* ---------- Topbar kompakter und sauberer ---------- */

  .topbar-inner {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .brand-link {
    gap: 10px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-mark {
    font-size: 0.92rem;
  }

  .brand-sub {
    font-size: 0.66rem;
    line-height: 1.05;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    width: 100%;
  }

  .main-nav a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  /* Logout soll optisch nicht so abfallen */
  .main-nav a:last-child {
    margin-left: 0;
  }

  /* ---------- Subnav noch etwas sauberer ---------- */

  .subnav-wrap {
    overflow: hidden;
  }

  .subnav-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 6px;
  }

  .subnav-label {
    font-size: 0.74rem;
    line-height: 1;
  }

  .subnav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding-bottom: 2px;
    padding-right: 12px; /* kleiner Sicherheitspuffer gegen rechtes Abschneiden */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subnav-links::-webkit-scrollbar {
    display: none;
  }

  .subnav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  /* ---------- Journey oben minimal kompakter ---------- */

  .journey-slider-card {
    padding: 12px 12px 8px;
    margin-bottom: 14px;
  }

  .journey-slider-card__top {
    margin-bottom: 8px;
  }

  .journey-slider-card__title h1 {
    font-size: 1.08rem;
    margin-top: 2px;
  }

  .journey-slider-card__progress {
    font-size: 0.88rem;
  }

  .journey-badge {
    font-size: 0.58rem;
    padding: 3px 7px;
  }

  .journey-step-slider {
    height: 24px;
    margin-bottom: 4px;
  }

  .journey-step-slider__labels {
    gap: 8px;
  }

  .journey-step-slider__label {
    font-size: 0.62rem;
  }

  .journey-lead,
  .journey-intro-note {
    font-size: 0.9rem;
  }
}
/* =========================================
   WoSI – Mobile Final Fix
   Hauptnav Pills + Subnav rechts nicht abschneiden
   Ganz unten einfügen
   ========================================= */

@media (max-width: 640px) {

  /* ---------- Hauptnavigation optisch sauber zentrieren ---------- */

  .topbar-inner {
    align-items: flex-start;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    line-height: 1;
    border-radius: 999px;
    vertical-align: middle;
  }

  .main-nav a.active,
  .main-nav a:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ---------- Subnav: rechter Rand mit Sicherheitspuffer ---------- */

  .subnav-wrap {
    overflow: visible;
  }

  .subnav-inner {
    overflow: hidden;
    padding-left: 12px;
    padding-right: 12px;
  }

  .subnav-links {
    width: 100%;
    max-width: 100%;
    padding-right: 22px; /* mehr Luft rechts */
    margin-right: -6px;  /* optischer Ausgleich */
    box-sizing: border-box;
  }

  .subnav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}
/* =========================================
   WoSI – Journey Stage Layout Upgrade
   Effekte über volle Breite, Rahmenbedingungen darunter
   Ganz unten einfügen
   ========================================= */

.journey-stage-stack {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.journey-effects-panel,
.journey-conditions-panel {
  width: 100%;
}

.journey-kv-grid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journey-effects-matrix {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.journey-effects-matrix__head,
.journey-effects-matrix__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.75fr 1fr;
  gap: 12px;
  align-items: center;
}

.journey-effects-matrix__head {
  padding: 0 4px 6px;
  border-bottom: 1px solid #e5edef;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--s3-text-soft);
  text-transform: none;
}

.journey-effects-matrix__row {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.journey-effects-matrix__model {
  font-weight: 800;
  color: #01132b;
}

.journey-effects-matrix__row > div {
  font-size: 0.94rem;
  color: var(--s3-text);
}

.journey-effects-panel .journey-kpi-row {
  margin-bottom: 18px;
}

.journey-conditions-panel .journey-kv-item {
  min-height: 86px;
  align-content: start;
}

@media (max-width: 1180px) {
  .journey-kv-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-effects-matrix__head,
  .journey-effects-matrix__row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .journey-effects-matrix__head div:nth-child(4),
  .journey-effects-matrix__head div:nth-child(5),
  .journey-effects-matrix__row div:nth-child(4),
  .journey-effects-matrix__row div:nth-child(5) {
    display: none;
  }
}

@media (max-width: 900px) {
  .journey-kv-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-effects-matrix__head,
  .journey-effects-matrix__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .journey-effects-matrix__head {
    display: none;
  }

  .journey-effects-matrix__row {
    gap: 8px;
  }

  .journey-effects-matrix__row > div {
    display: grid;
    gap: 2px;
  }

  .journey-effects-matrix__row > div::before {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--s3-text-soft);
  }

  .journey-effects-matrix__row > div:nth-child(1)::before { content: "Modell"; }
  .journey-effects-matrix__row > div:nth-child(2)::before { content: "Kosten / Nutzungseinheit / Monat"; }
  .journey-effects-matrix__row > div:nth-child(3)::before { content: "Mieteinsparung / Jahr"; }
  .journey-effects-matrix__row > div:nth-child(4)::before { content: "Fläche (m²)"; }
  .journey-effects-matrix__row > div:nth-child(5)::before { content: "Effizienzvorteil / Jahr"; }

  .journey-effects-matrix__head div:nth-child(4),
  .journey-effects-matrix__head div:nth-child(5),
  .journey-effects-matrix__row div:nth-child(4),
  .journey-effects-matrix__row div:nth-child(5) {
    display: block;
  }
}

@media (max-width: 640px) {
  .journey-stage-stack {
    gap: 18px;
    margin-top: 18px;
  }

  .journey-kv-grid--wide {
    grid-template-columns: 1fr;
  }

  .journey-effects-matrix__row {
    padding: 12px 14px;
    border-radius: 16px;
  }
}

/* =========================================
   WoSI – Journey Stage Top Height Balancing
   Flächenkennung an Layouthöhe annähern
   Ganz unten einfügen
   ========================================= */

.journey-stage-top {
  align-items: stretch;
}

.journey-layout-card,
.journey-metrics-card {
  height: 100%;
}

.journey-metrics-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  padding: 20px 20px 18px;
}

.journey-metrics-card .journey-panel-title {
  margin-bottom: 10px;
}

.journey-chart-wrap {
  margin-bottom: 14px;
}

.journey-image-placeholder--chart {
  min-height: 128px;
  border-radius: 18px;
  font-size: 0.92rem;
}

.journey-metric-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.journey-metric-item {
  padding: 12px 14px;
  border-radius: 14px;
}

.journey-metric-value {
  font-size: 1.12rem;
  line-height: 1.05;
}

.journey-metric-label {
  margin-top: 3px;
  font-size: 0.8rem;
  line-height: 1.2;
}

.journey-legend {
  margin-top: auto;
  gap: 8px;
}

.journey-legend-item {
  padding: 8px 0;
}

.journey-legend-item strong {
  font-size: 0.88rem;
}

.journey-legend-left {
  gap: 8px;
  font-size: 0.88rem;
}

.journey-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Layoutblock optisch etwas geschlossener */
.journey-layout-card {
  display: flex;
  flex-direction: column;
}

.journey-image-placeholder--layout {
  min-height: 360px;
}

.journey-layout-note {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.25;
}

/* Tablet / kleiner Desktop */
@media (max-width: 1180px) {
  .journey-metrics-card {
    padding: 18px 18px 16px;
  }

  .journey-image-placeholder--chart {
    min-height: 120px;
  }

  .journey-image-placeholder--layout {
    min-height: 320px;
  }
}

/* Mobile bleibt gestapelt */
@media (max-width: 900px) {
  .journey-metrics-card {
    min-height: auto;
  }

  .journey-legend {
    margin-top: 10px;
  }

  .journey-image-placeholder--layout {
    min-height: 280px;
  }
}

/* =========================================
   WoSI – Journey Effects Matrix Feinschliff
   Ganz unten einfügen
   ========================================= */

.journey-effects-matrix--comparison {
  margin-top: 6px;
}

.journey-effects-matrix__head {
  font-size: 0.8rem;
  line-height: 1.22;
}

.journey-effects-matrix__head div:first-child {
  color: var(--s3-navy);
}

.journey-effects-matrix__row > div {
  line-height: 1.25;
}

@media (max-width: 1180px) {
  .journey-effects-matrix__head {
    font-size: 0.76rem;
  }
}

/* =========================================
   WoSI – iPhone Real Device Overflow Fix
   Ganz unten einfügen
   ========================================= */

@media (max-width: 640px) {

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    width: 100%;
  }

  .container,
  .journey-page,
  .journey-stage-top,
  .journey-stage-stack,
  .journey-layout-card,
  .journey-metrics-card,
  .journey-effects-panel,
  .journey-conditions-panel,
  .journey-slider-card,
  .journey-hero-card,
  .card-surface {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* wichtigste Korrektur: Subnav nicht künstlich breiter machen */
  .subnav-inner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-left: 12px;
    padding-right: 12px;
  }

  .subnav-links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
    padding-right: 8px;
    box-sizing: border-box;
  }

  /* Hauptnavigation ebenfalls hart begrenzen */
  .topbar-inner,
  .main-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Journey Slider und Labels dürfen nicht die Seite verbreitern */
  .journey-step-slider,
  .journey-step-slider__labels {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .journey-step-slider__labels {
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 4px;
  }

  /* Stage-Top auf Mobile wirklich sauber einspaltig */
  .journey-stage-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .journey-layout-card,
  .journey-metrics-card {
    overflow: hidden;
  }

  /* Placeholder nicht breiter als Card */
  .journey-image-placeholder,
  .journey-image-placeholder--layout,
  .journey-image-placeholder--chart {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Effekte-Matrix und KV-Grid dürfen Mobile nicht aufblasen */
  .journey-effects-matrix,
  .journey-kv-grid,
  .journey-kv-grid--wide,
  .journey-kpi-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
/* =========================================
   WoSI – Journey Stage Layout Images
   vollständig sichtbar statt beschnitten
   ========================================= */

.journey-layout-image-wrap {
  width: 100%;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: #f5f7f9;
  border: 1px solid rgba(1, 19, 43, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.journey-layout-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .journey-layout-image-wrap {
    min-height: 320px;
  }

  .journey-layout-image {
    max-height: 420px;
  }
}

@media (max-width: 900px) {
  .journey-layout-image-wrap {
    min-height: 280px;
    padding: 10px;
  }

  .journey-layout-image {
    max-height: 340px;
  }
}
/* =========================================
   WoSI – Journey Stage Top Rebalance
   Layout links + Arbeitsmodi unten
   Flächenkennung rechts kompakter
   Ganz unten einfügen
   ========================================= */

.journey-stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 320px;
  gap: 24px;
  align-items: stretch;
}

.journey-stage-left {
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  min-width: 0;
}

.journey-layout-card {
  display: flex;
  flex-direction: column;
}

.journey-layout-image-wrap {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
}

.journey-layout-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid rgba(1, 19, 43, 0.10);
}

.journey-layout-note {
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.25;
}

.journey-distribution-card {
  padding: 18px 22px;
}

.journey-distribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
}

.journey-distribution-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f4;
}

.journey-distribution-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.journey-metrics-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 20px 18px;
  height: 100%;
}

.journey-chart-wrap {
  margin-bottom: 14px;
}

.journey-image-placeholder--chart {
  min-height: 142px;
  border-radius: 20px;
}

.journey-metric-stack--balanced {
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: space-between;
}

.journey-metric-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7fafb;
  border: 1px solid #e4ecef;
}

.journey-metric-item--highlight {
  background: linear-gradient(180deg, rgba(28,201,200,0.12) 0%, rgba(28,201,200,0.06) 100%);
  border-color: rgba(28,201,200,0.24);
}

.journey-metric-value {
  display: block;
  font-size: 1.16rem;
  line-height: 1.05;
  font-weight: 800;
}

.journey-metric-label {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.journey-legend-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.journey-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Tablet */
@media (max-width: 1180px) {
  .journey-stage-top {
    grid-template-columns: 1fr;
  }

  .journey-distribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-metric-stack--balanced {
    align-content: start;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .journey-stage-left {
    gap: 14px;
  }

  .journey-distribution-card {
    padding: 16px 16px;
  }

  .journey-distribution-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .journey-distribution-item {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f4;
  }

  .journey-distribution-item:last-child {
    border-bottom: 0;
  }
}
/* =========================================
   WoSI – Journey Dynamic Pie Chart
   Ganz unten einfügen
   ========================================= */

.journey-chart-svg-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  padding: 12px;
  border-radius: 16px;

  background: #f7fafb;
  border: 1px dashed rgba(1, 19, 43, 0.16);
}

.journey-chart-svg {
  display: block;
  width: 140px;
  height: 140px;
  overflow: visible;
}

@media (max-width: 1180px) {
  .journey-chart-svg-card {
    max-width: 200px;
  }
}

@media (max-width: 640px) {
  .journey-chart-svg-card {
    max-width: 190px;
    padding: 8px;
    border-radius: 18px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .journey-chart-svg path,
  .journey-chart-svg circle {
    cursor: pointer;
  }
}

/* =========================================
   WoSI – FINAL Journey Layout Fade
   ganz unten lassen
   ========================================= */

.journey-layout-image-wrap {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  border: 0;
  padding: 0;
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-layout-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(1, 19, 43, 0.10);

  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s ease;
}

/* Startzustand */
.journey-layout-image-wrap.is-preload {
  opacity: 0;
}

.journey-layout-image-wrap.is-preload .journey-layout-image {
  opacity: 0.01;
  transform: scale(1.012);
  filter: blur(5px);
}

/* weiches Einblenden */
.journey-layout-image-wrap.is-visible {
  opacity: 1;
}

.journey-layout-image-wrap.is-visible .journey-layout-image {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Ausblendung vor Seitenwechsel */
.journey-layout-image-wrap.is-fading-out {
  opacity: 0;
  transition: opacity 0.38s ease-in-out;
}

.journey-layout-image-wrap.is-fading-out .journey-layout-image {
  opacity: 0.15;
  transform: scale(0.995);
  filter: blur(2px);
}
/* =========================================
   WoSI – Basics Swap Layout
   Großes Bild links, 4 Moduskarten rechts
   Ganz unten einfügen
   ========================================= */

.journey-basics-grid--swapped {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.journey-basics-visual--left,
.journey-basics-copy--right {
  height: 100%;
}

.journey-basics-visual--left {
  display: flex;
  flex-direction: column;
}

.journey-big-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f9fb;
  border-radius: 20px;
  padding: 14px;
  overflow: hidden;
}

.journey-big-visual-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.journey-basics-copy--right {
  display: flex;
  flex-direction: column;
}

.journey-basics-copy--right > p:last-of-type {
  margin-bottom: 0;
}

.journey-mini-grid--with-copy {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-content: end;
}

.journey-mini-card--descriptive {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  padding: 16px;
  background: #f7f9fb;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.06);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
}

.journey-mini-card__copy {
  margin-bottom: 14px;
}

.journey-mini-card__copy h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.15;
}

.journey-mini-card__copy p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.38;
  color: var(--s3-text-soft);
}

.journey-mini-card--descriptive:nth-child(1) .journey-mini-card__copy h3 {
  color: #68aeca;
}

.journey-mini-card--descriptive:nth-child(2) .journey-mini-card__copy h3 {
  color: #a6b94f;
}

.journey-mini-card--descriptive:nth-child(3) .journey-mini-card__copy h3 {
  color: #e79b45;
}

.journey-mini-card--descriptive:nth-child(4) .journey-mini-card__copy h3 {
  color: #d38f9b;
}

.journey-mini-card--descriptive .journey-mini-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-top: auto;
}

@media (max-width: 1180px) {
  .journey-basics-grid--swapped {
    grid-template-columns: 1fr;
  }

  .journey-mini-card--descriptive {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .journey-mini-grid--with-copy {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .journey-mini-card--descriptive {
    padding: 14px;
  }

  .journey-mini-card__copy h3 {
    font-size: 0.96rem;
  }

  .journey-mini-card__copy p {
    font-size: 0.82rem;
  }
}
/* =========================================
   WoSI – Basics FINAL Fix
   - gleiche Höhe der Cards
   - saubere Proportionen
   - keine doppelten Bilder
   ========================================= */

.journey-basics-grid--swapped {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

/* Beide Cards gleich hoch */
.journey-basics-copy--left,
.journey-basics-visual--right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* LINKS: Text + großes Bild */
.journey-big-visual--embedded {
  margin-top: 20px;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.journey-big-visual-image {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* RECHTS: 4 Karten sauber ausrichten */
.journey-mini-grid--with-copy {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  height: 100%;
  align-content: space-between;
}

/* einzelne Karten */
.journey-mini-card--descriptive {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: #f7f9fb;
  border-radius: 18px;
  border: 1px solid rgba(1,19,43,0.06);
  min-height: 260px;
}

/* Textbereich */
.journey-mini-card__copy {
  margin-bottom: 12px;
}

.journey-mini-card__copy h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.2;
}

.journey-mini-card__copy p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #5f6b7a;
}

/* Bilder */
.journey-mini-card--descriptive .journey-mini-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-top: auto;
}

/* WICHTIG: alte Placeholder komplett killen */
.journey-image-placeholder,
.journey-image-placeholder--small {
  display: none !important;
}

/* Mobile */
@media (max-width: 1100px) {
  .journey-basics-grid--swapped {
    grid-template-columns: 1fr;
  }

  .journey-mini-grid--with-copy {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI – Standby Mobile Orbit Reorder
   Orbit direkt unter Headline nur auf Handy
   ========================================= */

.wosi-visual-wrap-mobile {
  display: none;
}

@media (max-width: 640px) {
  .wosi-copy {
    display: flex;
    flex-direction: column;
  }

  .wosi-copy .wosi-eyebrow {
    order: 1;
  }

  .wosi-copy h1 {
    order: 2;
    margin-bottom: 0;
  }

  .wosi-visual-wrap-mobile {
    display: flex;
    order: 3;
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 8px;
    justify-content: center;
  }

  .wosi-copy > p {
    order: 4;
    margin-top: 4px;
  }

  .wosi-actions {
    order: 5;
  }

  .wosi-info-cards {
    order: 6;
  }

  .wosi-visual-wrap-desktop {
    display: none;
  }

  .wosi-visual-wrap-mobile .wosi-orbit-system {
    width: 320px;
    height: 320px;
  }
}


/* =========================================
   WoSI – Standby Mobile Orbit Final Polish
   Headline mittig + Modulname korrigiert
   ganz unten lassen
   ========================================= */

@media (max-width: 640px) {
  .wosi-copy .wosi-eyebrow {
    text-align: left;
  }

  .wosi-copy h1 {
    text-align: center;
    margin-bottom: 0;
  }

  .wosi-visual-wrap-mobile {
    padding-top: 28px;
    padding-bottom: 10px;
  }

  .wosi-visual-wrap-mobile .orbit-node span {
    font-size: 0.72rem;
    line-height: 1.08;
  }

  .wosi-visual-wrap-mobile .node-top span {
    letter-spacing: -0.01em;
  }
}
/* =========================================
   WoSI – Journey Panel Toggles
   Kennzahleneffekte / Rahmenbedingungen
   Ganz unten einfügen
   ========================================= */

.journey-panel-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.journey-panel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.journey-panel-toggle__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(1, 19, 43, 0.08);
  box-shadow: 0 10px 24px rgba(1, 19, 43, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: #01132b;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.journey-panel-toggle__label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eaf5f4;
  color: #23364a;
  font-size: 0.98rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.journey-panel-toggle:hover .journey-panel-toggle__icon {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(1, 19, 43, 0.08);
}

.journey-panel-toggle:hover .journey-panel-toggle__label {
  background: #e2f1ef;
}

.journey-panel-toggle.is-open .journey-panel-toggle__icon {
  background: #ffffff;
  color: #01132b;
}

.journey-panel-toggle.is-open .journey-panel-toggle__label {
  background: #dff1ef;
  color: #01132b;
}

.journey-panel-collapse {
  display: none;
}

.journey-panel-collapse.is-open {
  display: block;
}

.journey-stage-stack {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .journey-panel-toggles {
    gap: 14px;
  }

  .journey-panel-toggle__icon {
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
  }

  .journey-panel-toggle__label {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.9rem;
  }
}

/* =========================================
   WoSI – Grundlagen Zusatzkacheln FINAL
   Bild-Platzhalter statt SVG
   bisherigen Block komplett ersetzen
   ========================================= */

.journey-basics-extra {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.journey-basics-info-card {
  padding: 22px 24px;
}

.journey-basics-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.journey-basics-info-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.journey-basics-info-item--full {
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.journey-basics-info-media {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  background: #f7f9fb;
  border: 1px solid rgba(1, 19, 43, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 10px;
}

.journey-basics-info-media--desksharing {
  width: 400px;
  height: 330px;
  border-radius: 20px;
  padding: 12px;
}

.journey-basics-info-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.journey-basics-info-copy {
  margin-bottom: 10px;
}

.journey-basics-info-copy strong {
  display: block;
  margin-top: 10px;
  color: var(--s3-navy);
}

.desksharing-example {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f7fafb;
  border: 1px solid #e4ecef;
}

.journey-basics-info-media--desksharing {
  box-shadow: 0 12px 30px rgba(1, 19, 43, 0.12);
  background: white;
}

.journey-basics-info-copy h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--s3-navy);
}

.journey-basics-info-copy p {
  margin: 0 0 8px;
  font-size: 0.91rem;
  line-height: 1.5;
  color: var(--s3-text);
}

.journey-basics-info-copy p:last-child {
  margin-bottom: 0;
}

.journey-basics-info-card--desksharing .journey-basics-info-copy h3 {
  margin-bottom: 10px;
}

/* Tablet */
@media (max-width: 1180px) {
  .journey-basics-info-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .journey-basics-info-card {
    padding: 20px 20px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .journey-basics-extra {
    gap: 16px;
    margin-top: 18px;
  }

  .journey-basics-info-card {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .journey-basics-info-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .journey-basics-info-item--full {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
  }

  .journey-basics-info-media {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    padding: 8px;
  }

  .journey-basics-info-media--desksharing {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    padding: 9px;
  }

  .journey-basics-info-copy h3 {
    font-size: 0.94rem;
    margin-bottom: 6px;
  }

  .journey-basics-info-copy p {
    font-size: 0.84rem;
    line-height: 1.4;
  }
}
/* =========================================
   WoSI – Premium Hover Effekt (Desksharing Card)
   Bild + gesamte Kachel hebt sich an
   ========================================= */

/* Container vorbereiten */
.journey-basics-info-media--desksharing {
  overflow: hidden;
  border-radius: 16px;
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

/* Bild Basiszustand */
.journey-basics-info-media--desksharing .journey-basics-info-image {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 0.5s ease;
  transform-origin: center center;
  will-change: transform;
}

/* Hover nur auf Desktop / mit Maus */
@media (hover: hover) and (pointer: fine) {

  .journey-basics-info-media--desksharing:hover {
    transform: translateY(-4px);
    box-shadow: 
      0 18px 40px rgba(1, 19, 43, 0.12),
      0 6px 14px rgba(1, 19, 43, 0.08);
    background: rgba(255,255,255,0.65);
  }

  .journey-basics-info-media--desksharing:hover .journey-basics-info-image {
    transform: scale(1.18);
  }

}
/* =========================================
   WoSI – Grundlagen Toggle Panels
   Definitionen + Desksharing
   ganz unten einfügen
   ========================================= */

.journey-basics-toggles {
  margin-top: 24px;
  margin-bottom: 6px;
}

.journey-basics-extra {
  margin-top: 6px;
}

.journey-basics-extra .journey-panel-collapse.is-open {
  display: block;
}

.journey-basics-extra .journey-panel-collapse + .journey-panel-collapse {
  margin-top: 0;
}

@media (max-width: 640px) {
  .journey-basics-toggles {
    margin-top: 18px;
    margin-bottom: 4px;
  }

  .journey-basics-extra {
    margin-top: 4px;
  }
}
/* =========================================
   WoSI – Kosten-/Nutzen-Simulation
   Schritt A2 – Frontend Styling
   Ganz unten einfügen
   ========================================= */

.page-impact .topbar {
  background: linear-gradient(90deg, #1cc9c8 0%, #18bbb9 100%);
  color: #01132b;
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.08);
}

.page-impact .main-nav a {
  color: rgba(1, 19, 43, 0.92);
}

.page-impact .main-nav a:hover,
.page-impact .main-nav a.active {
  background: rgba(255, 255, 255, 0.28);
  color: #01132b;
}

.impact-page {
  display: grid;
  gap: 24px;
}

.impact-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.impact-header-row h1 {
  margin-bottom: 10px;
}

.impact-lead {
  max-width: 980px;
  color: var(--s3-text);
  font-size: 1.04rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.impact-header-actions {
  flex: 0 0 auto;
}

.impact-calc-btn {
  min-width: 170px;
  min-height: 54px;
  border-radius: 18px;
  background: #edf7f7;
  color: #01132b;
  border: 1px solid #d8ecec;
  box-shadow: none;
}

.impact-calc-btn:hover {
  background: #e3f3f3;
  border-color: #cfe6e6;
}

.impact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 300px;
  gap: 22px;
  align-items: start;
}

.impact-main,
.impact-sidebar {
  display: grid;
  gap: 22px;
}

.impact-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(1, 19, 43, 0.07);
  border-radius: 26px;
  box-shadow: 0 10px 26px rgba(1, 19, 43, 0.05);
}

.impact-panel {
  padding: 22px 20px;
}

.impact-panel-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #22b8bd;
}

.impact-metric-grid {
  display: grid;
  gap: 14px;
}

.impact-metric-grid--inputs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-metric-grid--results {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-metric-grid--conditions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-field-card,
.impact-value-card {
  min-height: 92px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: #f7fafb;
  border: 1px solid #edf2f4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.impact-field-label {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
  color: #4d6278;
}

.impact-value-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 800;
  color: #01132b;
  letter-spacing: -0.02em;
}

.impact-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d6e1e6;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--s3-text);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.impact-input:focus {
  outline: none;
  border-color: #87cfd2;
  box-shadow: 0 0 0 4px rgba(35, 162, 170, 0.10);
  background: #fff;
}

.impact-sidebar .impact-panel {
  padding: 20px 18px;
}

.impact-slider-group + .impact-slider-group {
  margin-top: 18px;
}

.impact-slider-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #23364a;
}

.impact-range,
.impact-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  margin: 0;
}

.impact-range:focus,
.impact-slider:focus {
  outline: none;
}

.impact-range::-webkit-slider-runnable-track,
.impact-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: #dff1f2;
}

.impact-range::-webkit-slider-thumb,
.impact-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #20b7bd;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.16);
  margin-top: -6px;
  cursor: pointer;
}

.impact-range::-moz-range-track,
.impact-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #dff1f2;
}

.impact-range::-moz-range-thumb,
.impact-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #20b7bd;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.16);
  cursor: pointer;
}

.impact-slider-scale {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #7a8ea0;
}

.impact-slider-scale span:nth-child(2) {
  font-size: 0.86rem;
  font-weight: 700;
  color: #20aeb4;
  background: #eef8f8;
  border: 1px solid #dceeee;
  border-radius: 999px;
  padding: 4px 10px;
  min-width: 68px;
  text-align: center;
}

.impact-slider-scale span:first-child {
  justify-self: start;
}

.impact-slider-scale span:last-child {
  justify-self: end;
}

.impact-check-option,
.impact-radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  color: #2d4055;
}

.impact-check-option + .impact-check-option,
.impact-radio-option + .impact-radio-option {
  margin-top: 12px;
}

.impact-check-option input,
.impact-radio-option input {
  width: 19px;
  height: 19px;
  accent-color: #22b8bd;
  flex: 0 0 auto;
}

.impact-summary-btn {
  min-height: 58px;
  border-radius: 18px;
  background: #edf7f7;
  color: #01132b;
  border: 1px solid #d8ecec;
  box-shadow: none;
  font-size: 1.02rem;
}

.impact-summary-btn:hover {
  background: #e3f3f3;
  border-color: #cfe6e6;
}

.impact-bottom-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: -2px;
}

.impact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.impact-toggle-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(1, 19, 43, 0.08);
  box-shadow: 0 10px 20px rgba(1, 19, 43, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
  color: #01132b;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.impact-toggle-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eaf5f4;
  color: #23364a;
  font-size: 0.96rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.impact-toggle:hover .impact-toggle-icon {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(1, 19, 43, 0.08);
}

.impact-toggle:hover .impact-toggle-label {
  background: #e2f1ef;
}

.impact-toggle.is-open .impact-toggle-label {
  background: #dff1ef;
  color: #01132b;
}

.impact-collapse {
  display: none;
  padding: 22px 20px;
}

.impact-collapse.is-open {
  display: block;
}

.impact-options-note {
  margin: 0;
  color: var(--s3-text-soft);
  line-height: 1.5;
}

.impact-investment-result.is-hidden {
  display: none;
}

/* bessere Optik im Projektkopf */
.page-impact .project-detail-card--header {
  padding: 22px 22px;
}

.page-impact .project-detail-header {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 26px;
}

.page-impact .project-detail-title {
  margin-bottom: 14px;
}

.page-impact .project-detail-description {
  max-width: 820px;
}

.page-impact .project-meta-label {
  color: #20aeb4;
}

/* Hover-Feeling ähnlich Journey */
.impact-card,
.impact-field-card,
.impact-value-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.impact-card:hover {
  border-color: rgba(35, 162, 170, 0.12);
  box-shadow: 0 14px 32px rgba(1, 19, 43, 0.06);
}

.impact-field-card:hover,
.impact-value-card:hover {
  background: #f4fbfb;
  border-color: #dcedef;
}

/* große Desktop-Bildschirme */
@media (min-width: 1400px) {
  .impact-layout {
    grid-template-columns: minmax(0, 1.62fr) 320px;
  }
}

/* Tablet / iPad */
@media (max-width: 1180px) {
  .impact-layout {
    grid-template-columns: 1fr;
  }

  .impact-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .impact-summary-btn {
    grid-column: 1 / -1;
  }

  .impact-metric-grid--inputs,
  .impact-metric-grid--results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-metric-grid--conditions {
    grid-template-columns: 1fr;
  }

  .page-impact .project-detail-header {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .impact-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .impact-header-actions,
  .impact-calc-btn {
    width: 100%;
  }

  .impact-main,
  .impact-sidebar {
    gap: 18px;
  }

  .impact-sidebar {
    grid-template-columns: 1fr;
  }

  .impact-metric-grid--inputs,
  .impact-metric-grid--results,
  .impact-metric-grid--conditions {
    grid-template-columns: 1fr;
  }

  .impact-panel,
  .impact-collapse {
    padding: 18px 16px;
  }

  .impact-field-card,
  .impact-value-card {
    min-height: 84px;
    padding: 13px 13px 11px;
  }

  .impact-value-card strong {
    font-size: 1.45rem;
  }

  .impact-bottom-toggles {
    gap: 14px;
  }

  .impact-toggle-icon {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }

  .impact-toggle-label {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .impact-slider-scale {
    font-size: 0.76rem;
  }

  .impact-slider-scale span:nth-child(2) {
    min-width: 60px;
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

/* kleine Handys */
@media (max-width: 480px) {
  .impact-header-row h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .impact-lead {
    font-size: 0.96rem;
  }

  .impact-panel-title {
    font-size: 1rem;
  }

  .impact-value-card strong {
    font-size: 1.3rem;
  }
}

/* =========================================
   WoSI – Kosten-/Nutzen-Simulation
   Schritt A2b – UX / Layout Feinschliff
   ganz unten einfügen
   ========================================= */

.impact-project-context-section {
  margin-bottom: 18px;
}

.impact-project-context {
  display: grid;
  gap: 14px;
  padding: 14px 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(35, 162, 170, 0.10);
}

.impact-project-context__title {
  margin: 2px 0 0;
  font-size: 1.75rem;
  line-height: 1.12;
  color: var(--s3-navy);
}

.impact-project-context__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f7f8;
  border: 1px solid #dde8ec;
  color: #23364a;
  font-size: 0.94rem;
  font-weight: 500;
}

.impact-chip strong {
  color: #20aeb4;
  font-weight: 800;
}

.impact-project-context__details {
  border-top: 1px solid rgba(1, 19, 43, 0.07);
  padding-top: 12px;
}

.impact-project-context__details summary {
  list-style: none;
  cursor: pointer;
  color: #20aeb4;
  font-size: 0.94rem;
  font-weight: 700;
}

.impact-project-context__details summary::-webkit-details-marker {
  display: none;
}

.impact-project-context__details summary::after {
  content: " +";
}

.impact-project-context__details[open] summary::after {
  content: " –";
}

.impact-project-context__details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.impact-project-context__detail-item {
  display: grid;
  gap: 4px;
}

.impact-project-context__detail-item--full {
  grid-column: 1 / -1;
}

.impact-project-context__detail-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #20aeb4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.impact-project-context__detail-value {
  color: var(--s3-text);
  line-height: 1.45;
}

.impact-header-row {
  align-items: end;
}

.impact-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.impact-calc-btn {
  min-width: 190px;
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #eef8f8 100%);
  border: 1px solid #d6ecec;
  box-shadow: 0 10px 24px rgba(35, 162, 170, 0.10);
  font-size: 1.02rem;
  font-weight: 800;
}

.impact-calc-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff 0%, #e7f5f5 100%);
}

.impact-results-panel {
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.impact-results-panel.is-locked {
  opacity: 0.42;
  filter: grayscale(0.12);
}

.impact-results-panel.is-locked .impact-value-card strong {
  opacity: 0.72;
}

.impact-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -2px;
}

.impact-bottom-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.impact-summary-btn {
  min-width: 240px;
  min-height: 56px;
  border-radius: 18px;
  background: #edf7f7;
  color: #01132b;
  border: 1px solid #d8ecec;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 800;
}

.impact-summary-btn.is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .impact-project-context__details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .impact-project-context {
    padding: 14px 14px 15px;
  }

  .impact-project-context__title {
    font-size: 1.45rem;
  }

  .impact-project-context__chips {
    gap: 8px;
  }

  .impact-chip {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .impact-project-context__details-grid {
    grid-template-columns: 1fr;
  }

  .impact-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .impact-bottom-actions,
  .impact-summary-btn {
    width: 100%;
  }
}

/* =========================================
   WoSI – Impact Fine Tuning
   Sicherer Feinschliff auf gutem Arbeitsstand
   Ganz unten einfügen
   ========================================= */

.impact-project-context-section {
  margin-bottom: 30px;
}

.impact-project-context {
  padding: 12px 16px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(35, 162, 170, 0.08);
  box-shadow: none;
}

.impact-project-context__title {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.impact-project-context__chips {
  gap: 8px;
  margin-top: 10px;
}

.impact-chip {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.88rem;
  background: #f4f8f9;
}

.impact-project-context__details {
  padding-top: 10px;
}

.impact-project-context__details summary {
  font-size: 0.9rem;
}

.impact-page {
  gap: 28px;
}

.impact-header-row {
  align-items: center;
  margin-top: 4px;
}

.impact-header-row h1 {
  margin-bottom: 12px;
}

.impact-lead {
  max-width: 860px;
}

.impact-header-actions {
  align-self: center;
}

.impact-calc-btn {
  min-width: 180px;
  min-height: 60px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #eff9f9 100%);
  border: 1px solid #d6ecec;
  box-shadow: 0 10px 24px rgba(35, 162, 170, 0.12);
}

.impact-calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(35, 162, 170, 0.16);
}

.impact-layout {
  align-items: start;
}

.impact-main {
  gap: 24px;
}

.impact-sidebar {
  gap: 18px;
}

.impact-panel-title {
  margin-bottom: 18px;
}

.impact-results-panel {
  min-height: 334px;
}

.impact-results-panel.is-locked {
  opacity: 0.38;
  filter: grayscale(0.10);
}

.impact-bottom-row {
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: -6px;
}

.impact-bottom-toggles {
  gap: 16px;
  flex: 1 1 auto;
}

.impact-bottom-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.impact-summary-btn {
  min-width: 250px;
  min-height: 58px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 800;
}

.impact-summary-btn.is-hidden {
  display: none !important;
}

.impact-toggle {
  align-items: center;
}

.impact-toggle-label {
  min-height: 40px;
  padding: 0 18px;
}

.impact-collapse {
  margin-top: -8px;
}

@media (max-width: 1180px) {
  .impact-project-context-section {
    margin-bottom: 24px;
  }

  .impact-header-row {
    align-items: flex-start;
  }

  .impact-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .impact-bottom-actions {
    margin-left: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .impact-project-context {
    padding: 12px 14px 14px;
  }

  .impact-project-context__title {
    font-size: 1.26rem;
  }

  .impact-header-row {
    gap: 14px;
  }

  .impact-calc-btn,
  .impact-summary-btn {
    width: 100%;
  }

  .impact-bottom-actions {
    width: 100%;
  }
}
/* =========================================
   WoSI – Impact Fine Tuning
   Projektkontext schlanker + Summary unten rechts
   Ganz unten anhängen
   ========================================= */

.impact-project-context__chips {
  gap: 10px;
}

.impact-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -4px;
}

.impact-bottom-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex: 1 1 auto;
}

.impact-bottom-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.impact-summary-btn {
  min-width: 270px;
  min-height: 56px;
}

@media (max-width: 1180px) {
  .impact-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .impact-bottom-actions {
    margin-left: 0;
    width: 100%;
  }

  .impact-summary-btn {
    width: 100%;
  }
}

/* =========================================
   WoSI – Impact Projektkopf kompakt mit Toggle
   Ganz unten anhängen
   ========================================= */

.page-impact .project-detail-card--header {
  padding: 18px 20px;
}

.page-impact .project-detail-header {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.page-impact .project-detail-title {
  margin-bottom: 10px;
}

.page-impact .project-detail-description {
  max-width: 760px;
  margin-bottom: 0;
}

.project-detail-meta--compact {
  display: grid;
  gap: 12px;
  align-self: start;
}

.project-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f8f9;
  border: 1px solid #dce8ec;
  color: #23364a;
  font-size: 0.94rem;
  font-weight: 500;
}

.project-meta-pill strong {
  color: #20aeb4;
  font-weight: 800;
}

.project-meta-toggle {
  border-top: 1px solid rgba(1, 19, 43, 0.08);
  padding-top: 10px;
}

.project-meta-toggle summary {
  list-style: none;
  cursor: pointer;
  color: #20aeb4;
  font-size: 0.92rem;
  font-weight: 700;
}

.project-meta-toggle summary::-webkit-details-marker {
  display: none;
}

.project-meta-toggle summary::after {
  content: " +";
}

.project-meta-toggle[open] summary::after {
  content: " –";
}

.project-meta-toggle-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.project-meta-toggle-grid .project-meta-item {
  display: grid;
  gap: 3px;
}

@media (max-width: 1180px) {
  .page-impact .project-detail-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .page-impact .project-detail-card--header {
    padding: 16px 16px;
  }

  .project-meta-pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .project-meta-toggle summary {
    font-size: 0.88rem;
  }
}
/* =========================================
   WoSI – Impact ONLY
   kompakter Projektkopf + Summary unten rechts
   minimalinvasiv / nur Kosten-Nutzen-Simulation
   ========================================= */

.page-impact .impact-project-context-section {
  margin-top: 8px;
  margin-bottom: 16px;
}

.page-impact .impact-project-context-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(1, 19, 43, 0.07);
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(1, 19, 43, 0.05);
  padding: 18px 20px;
}

.page-impact .impact-project-context {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.page-impact .impact-project-context__title {
  margin: 4px 0 10px;
  font-size: 1.35rem;
  line-height: 1.12;
  color: var(--s3-navy);
}

.page-impact .impact-project-context__lead {
  margin: 0;
  max-width: 700px;
  color: var(--s3-text);
  line-height: 1.45;
}

.page-impact .impact-project-context__meta {
  display: grid;
  gap: 12px;
}

.page-impact .impact-project-context__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-impact .impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f8f9;
  border: 1px solid #dce8ec;
  color: #23364a;
  font-size: 0.9rem;
  font-weight: 500;
}

.page-impact .impact-chip strong {
  color: #20aeb4;
  font-weight: 800;
}

.page-impact .impact-project-context__details {
  border-top: 1px solid rgba(1, 19, 43, 0.08);
  padding-top: 10px;
}

.page-impact .impact-project-context__details summary {
  list-style: none;
  cursor: pointer;
  color: #20aeb4;
  font-size: 0.92rem;
  font-weight: 700;
}

.page-impact .impact-project-context__details summary::-webkit-details-marker {
  display: none;
}

.page-impact .impact-project-context__details summary::after {
  content: " +";
}

.page-impact .impact-project-context__details[open] summary::after {
  content: " –";
}

.page-impact .impact-project-context__details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.page-impact .impact-project-context__detail-item {
  display: grid;
  gap: 4px;
}

.page-impact .impact-project-context__detail-item--full {
  grid-column: 1 / -1;
}

.page-impact .impact-project-context__detail-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #20aeb4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-impact .impact-project-context__detail-value {
  color: var(--s3-text);
  line-height: 1.4;
}

.page-impact .impact-header-row {
  margin-top: 6px;
}

.page-impact .impact-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -4px;
}

.page-impact .impact-bottom-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex: 1 1 auto;
}

.page-impact .impact-bottom-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.page-impact .impact-summary-btn {
  min-width: 250px;
  min-height: 56px;
  border-radius: 18px;
}

@media (max-width: 1180px) {
  .page-impact .impact-project-context {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-impact .impact-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-impact .impact-bottom-actions {
    width: 100%;
    margin-left: 0;
  }

  .page-impact .impact-summary-btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .page-impact .impact-project-context-card {
    padding: 16px 16px;
  }

  .page-impact .impact-project-context__title {
    font-size: 1.18rem;
  }

  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr;
  }

  .page-impact .impact-chip {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.86rem;
  }
}
/* =========================================
   WoSI – Impact Header Fine Tuning
   kompakter, flacher, Toggle oben rechts
   nur Kosten-/Nutzen-Simulation
   ========================================= */

.page-impact .impact-project-context-card {
  padding: 14px 16px;
}

.page-impact .impact-project-context {
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.page-impact .impact-project-context__title {
  margin: 2px 0 0;
  font-size: 1.18rem;
  line-height: 1.1;
}

.page-impact .impact-project-context__main .section-kicker {
  margin-bottom: 4px;
}

.page-impact .impact-project-context__meta {
  gap: 0;
}

.page-impact .impact-project-context__topline {
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-impact .impact-project-context__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.page-impact .impact-chip {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.page-impact .impact-project-context__details--inline {
  border-top: 0;
  padding-top: 0;
}

.page-impact .impact-project-context__details--inline summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  min-height: 34px;
  font-size: 0.9rem;
}

.page-impact .impact-project-context__details--inline summary::after {
  content: " +";
  margin-left: 4px;
}

.page-impact .impact-project-context__details--inline[open] summary::after {
  content: " –";
}

.page-impact .impact-project-context__details-body {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.page-impact .impact-project-context__lead {
  margin: 0 0 12px;
  color: var(--s3-text);
  line-height: 1.42;
}

.page-impact .impact-project-context__details-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-impact .impact-project-context__detail-label {
  font-size: 0.78rem;
}

.page-impact .impact-project-context__detail-value {
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .page-impact .impact-project-context {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-impact .impact-project-context__chips {
    justify-content: flex-start;
  }

  .page-impact .impact-project-context__details--inline summary {
    justify-content: flex-start;
    text-align: left;
  }

  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .page-impact .impact-project-context-card {
    padding: 14px 14px;
  }

  .page-impact .impact-project-context__title {
    font-size: 1.08rem;
  }

  .page-impact .impact-project-context__chips {
    gap: 8px;
  }

  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI Impact Header FINAL CLEAN
   Chips + Toggle sauber in einer Linie
   ========================================= */

.page-impact .impact-project-context {
  grid-template-columns: minmax(0, 1.15fr) minmax(560px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.page-impact .impact-project-context__meta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.page-impact .impact-project-context__topline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
  width: 100%;
}

.page-impact .impact-project-context__chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.page-impact .impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.page-impact .impact-chip strong {
  white-space: nowrap;
}

.page-impact .impact-project-context__details--inline {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.page-impact .impact-project-context__details--inline summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  padding: 0;
  margin: 0;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 700;
  color: #23A2AA;
}

.page-impact .impact-project-context__details--inline summary::-webkit-details-marker {
  display: none;
}

.page-impact .impact-project-context__details--inline summary::after {
  content: " +";
  margin-left: 4px;
}

.page-impact .impact-project-context__details--inline[open] summary::after {
  content: " –";
}

/* Dropdown sauber unter der rechten Kopfzeile */
.page-impact .impact-project-context__details-body {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 760px;
  max-width: calc(100vw - 180px);
  background: #fff;
  border: 1px solid rgba(1, 19, 43, 0.06);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 16px 34px rgba(1, 19, 43, 0.08);
  z-index: 30;
}

.page-impact .impact-project-context__details--inline:not([open]) .impact-project-context__details-body {
  display: none;
}

.page-impact .impact-project-context__lead {
  margin: 0 0 14px;
  line-height: 1.4;
}

.page-impact .impact-project-context__details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-impact .impact-project-context__detail-item--full {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .page-impact .impact-project-context {
    grid-template-columns: 1fr;
  }

  .page-impact .impact-project-context__meta {
    align-items: flex-start;
  }

  .page-impact .impact-project-context__topline {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .page-impact .impact-project-context__chips {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .page-impact .impact-project-context__details--inline summary {
    justify-content: flex-start;
    text-align: left;
  }

  .page-impact .impact-project-context__details-body {
    position: relative;
    top: 12px;
    right: auto;
    width: 100%;
    max-width: 100%;
  }

  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr;
  }

  .page-impact .impact-chip {
    padding: 0 12px;
    font-size: 0.86rem;
  }
}
/* Nur Kosten-/Nutzen-Simulation */
.page-impact .section-kicker {
  margin-top: 22px;
}
/* =========================================
   WoSI – Projekt-Detail Statuskachel
   nur Projektdetailseite
   ========================================= */

.project-detail-status-card {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 2px solid rgba(1, 19, 43, 0.9);
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
}

.project-detail-status-card__title {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--s3-navy);
}

.project-detail-status-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  grid-template-areas:
    "dot label"
    "dot value";
  column-gap: 10px;
  row-gap: 2px;
}

.project-detail-status-row + .project-detail-status-row {
  margin-top: 10px;
}

.project-detail-status-dot {
  grid-area: dot;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  display: inline-block;
}

.project-detail-status-dot.is-beauftragt {
  background: #18b84f;
}

.project-detail-status-dot.is-offen {
  background: #f2e600;
}

.project-detail-status-dot.is-verloren {
  background: #ff2020;
}

.project-detail-status-label {
  grid-area: label;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--s3-text);
  line-height: 1.25;
}

.project-detail-status-value {
  grid-area: value;
  font-size: 0.9rem;
  color: var(--s3-text-soft);
  line-height: 1.2;
}

/* mobil etwas kompakter */
@media (max-width: 640px) {
  .project-detail-status-card {
    padding: 14px 14px;
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .project-detail-status-card__title {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .project-detail-status-label,
  .project-detail-status-value {
    font-size: 0.86rem;
  }
}
/* =========================================
   WoSI – Projekte Header + Modulstatuspanel
   nur Projektdetailseite / Projekte
   ========================================= */

.projects-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.projects-page-head__main {
  min-width: 0;
}

.projects-page-head__main p {
  max-width: 860px;
  margin-bottom: 0;
}

.project-module-status-panel {
  flex: 0 0 390px;
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid rgba(1, 19, 43, 0.9);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
}

.project-module-status-panel__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--s3-navy);
  margin-bottom: 2px;
}

.project-module-status-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 10px;
}

.project-module-status-item__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--s3-text);
  line-height: 1.2;
}

.project-module-status-select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cdd9df;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: var(--s3-text);
  background: #fff;
}

.project-module-status-select:focus {
  outline: none;
  border-color: #87cfd2;
  box-shadow: 0 0 0 4px rgba(35, 162, 170, 0.10);
}

.project-module-status-save {
  min-height: 40px;
  justify-self: end;
  padding-left: 16px;
  padding-right: 16px;
}

/* vorhandene Dots weiterverwenden + neue Farben */
.project-detail-status-dot.is-angeboten {
  background: #f5dd00;
}

.project-detail-status-dot.is-offen {
  background: #ff9f1a;
}

.project-detail-status-dot.is-in-bearbeitung {
  background: #18b84f;
}

.project-detail-status-dot.is-verloren {
  background: #ff2020;
}

/* alte Kachel im Projektkopf bewusst neutralisieren */
.project-detail-status-card {
  display: none;
}

@media (max-width: 1180px) {
  .projects-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .project-module-status-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .project-module-status-panel {
    padding: 14px 14px;
    border-radius: 16px;
  }

  .project-module-status-item {
    grid-template-columns: 14px 1fr;
    align-items: start;
  }

  .project-module-status-select {
    grid-column: 2 / 3;
    margin-top: 4px;
  }

  .project-module-status-save {
    width: 100%;
    justify-self: stretch;
  }
}
/* =========================================
   WoSI – Projekte Detail oben links/rechts
   Projektkarte + Modulstatus als eigene Kachel
   ========================================= */

.project-detail-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 340px;
  gap: 20px;
  align-items: stretch;
  margin-top: 22px;
  margin-bottom: 20px;
}

.project-detail-card--main {
  min-height: 100%;
}

.project-detail-card--main .project-detail-header {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.project-detail-card--main .project-detail-description {
  max-width: 640px;
}

.project-module-status-card {
  display: grid;
  gap: 18px;
  padding: 22px 20px;
  border-radius: 18px;
  min-height: 100%;
  height: 100%;
  align-content: start;
}

.project-module-status-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--s3-navy);
  margin-bottom: 2px;
}

.project-module-status-card__item {
  display: grid;
  gap: 7px;
  padding-bottom: 10px;
}

.project-module-status-card__item:not(:last-of-type) {
  border-bottom: 1px solid rgba(1, 19, 43, 0.04);
  margin-bottom: 6px;
}

.project-module-status-card__line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 2px;
}

.project-module-status-card__label {
  font-size: 0.98rem;
  font-weight: 700;
  color: #647182;
  line-height: 1.2;
}

.project-module-status-card__control {
  padding-left: 26px;
}

.project-module-status-select {
  width: 100%;
  min-height: 32px;
  height: 32px;
  border: 1px solid #d9e2e7;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #405062;
  background: #fbfcfd;
}

.project-module-status-select:focus {
  outline: none;
  border-color: #9ccfd3;
  box-shadow: 0 0 0 3px rgba(35,162,170,0.08);
}

.project-module-status-save {
  margin-top: 14px;
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
}

/* Ampellogik zurück auf 3 Zustände */
.project-detail-status-dot.is-offen {
  background: #f0e400;
}

.project-detail-status-dot.is-beauftragt {
  background: #23a2aa;
}

.project-detail-status-dot.is-verloren {
  background: #f47a33;
}

/* alte Headline-Panel-Variante stilllegen */
.projects-page-head,
.project-module-status-panel {
  display: block;
}

@media (max-width: 1180px) {
  .project-detail-top-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-detail-card--main .project-detail-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .project-module-status-card {
    padding: 18px 16px;
  }

.project-module-status-card__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #5f6f80;
  line-height: 1.15;
}
    
.project-module-status-select:hover {
  border-color: #23a2aa;
}

  .project-module-status-card__control {
    padding-left: 0;
  }

  .project-module-status-save {
    width: 100%;
    justify-self: stretch;
  }
}
/* =========================================
   WoSI – Auto dismiss success box
   nur sanftes Ausblenden
   ========================================= */

.success-box--auto-dismiss {
  overflow: hidden;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    max-height 0.45s ease,
    margin 0.45s ease,
    padding 0.45s ease,
    border-width 0.45s ease;
  max-height: 120px;
}

.success-box--auto-dismiss.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}
/* =========================================
   WoSI Impact – Zielmodus Switch
   nur Kosten-/Nutzen-Simulation
   ========================================= */

.page-impact .impact-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.page-impact .impact-target-mode {
  width: 320px;
  padding: 14px 16px 12px;
  border: 1px solid #dce8ec;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
}

.page-impact .impact-target-mode__label {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #23A2AA;
}

.page-impact .impact-target-mode__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.page-impact .impact-target-mode__option {
  position: relative;
  display: block;
  cursor: pointer;
}

.page-impact .impact-target-mode__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-impact .impact-target-mode__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #dce8ec;
  background: #f6fbfb;
  color: #23364a;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}

.page-impact .impact-target-mode__option input:checked + span {
  background: #e8f7f7;
  border-color: #bfe5e6;
  color: #01132B;
  box-shadow: 0 6px 16px rgba(35, 162, 170, 0.08);
}

.page-impact .impact-target-mode__note {
  margin: 10px 2px 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #5e7287;
}

@media (max-width: 1180px) {
  .page-impact .impact-target-mode {
    width: 100%;
  }
}
/* =========================================
   WoSI Impact – Defizitdarstellung
   ========================================= */

.page-impact .impact-value-card.is-deficit {
  border-color: rgba(200, 94, 54, 0.28);
  background: rgba(255, 245, 241, 0.92);
}

.page-impact .impact-value-card.is-deficit .impact-field-label {
  color: #9a4e2f;
}

.page-impact .impact-value-card.is-deficit strong {
  color: #9a2f2f;
}

/* =========================================
   WoSI Impact – Hilfe-Kachel
   ========================================= */

.page-impact .impact-help-box {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-impact .impact-help-item {
  padding: 12px 0;
  border-top: 1px solid #eef4f6;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #01132B;
}

.page-impact .impact-help-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-impact .impact-help-item strong {
  color: #23A2AA;
}

/* =========================================
   WoSI Kosten-Nutzen SImulation. Header Bereich einrücken
   ========================================= */
.impact-header-content {
    padding-left: 28px;
}

/* =========================================
   WoSI Kosten-Nutzen SImulation. Header Bereich optmiert nach tausch!
   ========================================= */
/* ===== Impact Modul Feintuning ===== */

.page-impact .impact-lead{
    margin-top:14px;
}

.page-impact .impact-project-context-card{
    margin-top:6px;
}

.page-impact .impact-header-content{
    max-width:760px;
}
/* =========================================
   WoSI Impact – Ergebniskontext
   laufender Betrieb / inkl. Transformation und Investition
   ========================================= */

.impact-panel-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 18px;
}

.impact-panel-title-wrap .impact-panel-title {
  margin-bottom: 0;
}

.impact-panel-context {
  font-size: 0.88rem;
  font-weight: 700;
  color: #7aa5a8;
  line-height: 1.2;
}

@media (max-width: 760px) {
  .impact-panel-context {
    font-size: 0.82rem;
  }
}
/* =========================================
   WoSI Impact – Feinschliff
   1) Switch kompakter in 2 Spalten
   2) Ergebniszahlen unten bündig
   ganz unten einfügen
   ========================================= */

/* ---------- 1) Switch-Kachel kompakter ---------- */

.page-impact .impact-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  align-items: start;
}

.page-impact .impact-switch-grid .impact-radio-option {
  margin-top: 0 !important;
}

.page-impact .impact-switch-grid .impact-radio-option--full {
  grid-column: 1 / 2;
}

/* Mobile: lieber wieder untereinander */
@media (max-width: 760px) {
  .page-impact .impact-switch-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-impact .impact-switch-grid .impact-radio-option--full {
    grid-column: auto;
  }
}

/* ---------- 2) Ergebniszahlen unten bündig ---------- */

.page-impact .impact-metric-grid--results .impact-value-card {
  min-height: 122px;
  padding-top: 14px;
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.page-impact .impact-metric-grid--results .impact-field-label {
  display: block;
  line-height: 1.12;
  margin-bottom: 4px;
  min-height: 48px;
}

.page-impact .impact-metric-grid--results .impact-value-card strong {
  margin-top: 0;
  line-height: 1;
}

/* etwas kompakter auf Tablet / Mobile */
@media (max-width: 760px) {
  .page-impact .impact-metric-grid--results .impact-value-card {
    min-height: 148px;
  }
}
/* ---------- Nicht relevant Ergebniskacheln außerhalb One Off Invest verstecken ---------- */
.page-impact .impact-investment-result.is-hidden {
  display: none !important;
}

/* =========================================
   WoSI Impact – Hilfe Download Links
   ========================================= */

.page-impact .impact-help-item--downloads {
  padding-top: 12px;
}

.page-impact .impact-help-downloads {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.page-impact .impact-help-download-entry {
  display: grid;
  gap: 4px;
}

.impact-help-download-formula {
  display: grid;
  gap: 4px;
}

.page-impact .impact-help-download-title {
  color: #01132B;
  font-size: 0.96rem;
  line-height: 1.35;
}

.page-impact .impact-help-download-entry a {
  color: #23A2AA;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.impact-help-download-formula a {
  color: #23A2AA;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.page-impact .impact-help-download-entry a:hover {
  text-decoration: underline;
}

.impact-help-download-formula a:hover {
  text-decoration: underline;
}

.impact-scenario-link {
  color: #01132B;
  font-weight: 600;
  text-decoration: none;
}

.impact-scenario-link:hover {
  color: #23A2AA;
  text-decoration: underline;
}

.impact-scenario-link {
  color: #01132B;
  font-weight: 600;
  text-decoration: none;
}

.impact-scenario-link:hover {
  color: #23A2AA;
  text-decoration: underline;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #dfe8ec;
  vertical-align: top;
}

.data-table th {
  width: 35%;
  color: #01132B;
  font-weight: 700;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #cfdde3;
  background: #eef5f7;
  color: #01132B;
  font-weight: 700;
  text-decoration: none;
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #cfdde3;
  background: #eef5f7;
  color: #01132B;
  font-weight: 700;
  text-decoration: none;
}

.btn-secondary-link:hover {
  background: #e3eef2;
  color: #23A2AA;
}

/* =====================================
   Scenario Detail – saubere vertikale Abstände
===================================== */

.scenario-detail-columns {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  column-gap: 24px;
  align-items: start;
}

.scenario-detail-column {
  display: block;
}

.scenario-detail-column > .module-card {
  margin: 0 0 24px 0;
}

.scenario-detail-column > .module-card:last-child {
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .scenario-detail-columns {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .scenario-detail-column > .module-card {
    margin-bottom: 22px;
  }

  .scenario-detail-column > .module-card:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .scenario-detail-column > .module-card {
    margin-bottom: 18px;
  }

  .scenario-detail-column > .module-card:last-child {
    margin-bottom: 0;
  }
}
/* =====================================
   Scenario List – Projektfilter
===================================== */

.scenario-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.scenario-list-head h2 {
  margin-bottom: 0;
}

.scenario-filter-form {
  flex: 0 0 320px;
}

.scenario-filter-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfdde3;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: #01132B;
  background: #f8fbfc;
}

.scenario-filter-form select:focus {
  outline: none;
  border-color: #87cfd2;
  box-shadow: 0 0 0 4px rgba(35, 162, 170, 0.10);
  background: #fff;
}

@media (max-width: 760px) {
  .scenario-list-head {
    flex-direction: column;
    align-items: stretch;
  }

  .scenario-filter-form {
    flex: 1 1 auto;
  }
}
/* =====================================
   WoSI – Optionen / Mehrere Einheiten
===================================== */

.impact-option-block {
  margin-top: 12px;
}

.impact-option-head {
  margin-bottom: 12px;
}

.impact-checkline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #01132B;
  cursor: pointer;
}

.impact-checkline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #23A2AA;
}

.impact-option-panel {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #d9e8ea;
  border-radius: 16px;
  background: #f8fbfc;
}

.impact-option-hint {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #5f7387;
}

.impact-units-toolbar {
  margin-bottom: 14px;
}

.impact-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cfdde3;
  border-radius: 12px;
  background: #eef5f7;
  color: #01132B;
  font-weight: 700;
  cursor: pointer;
}

.impact-mini-btn:hover {
  background: #e3eef2;
  color: #23A2AA;
}

.impact-units-list {
  display: grid;
  gap: 14px;
}

.impact-unit-card {
  border: 1px solid #d9e8ea;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.impact-unit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.impact-unit-title {
  font-size: 16px;
  font-weight: 700;
  color: #01132B;
}

.impact-unit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.impact-unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.impact-unit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.impact-unit-field label {
  font-size: 13px;
  font-weight: 700;
  color: #4f6478;
}

.impact-unit-field input,
.impact-unit-field select {
  min-height: 42px;
  border: 1px solid #cfdde3;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: #01132B;
  background: #fff;
}

.impact-unit-field input:focus,
.impact-unit-field select:focus {
  outline: none;
  border-color: #87cfd2;
  box-shadow: 0 0 0 4px rgba(35, 162, 170, 0.10);
}

@media (max-width: 980px) {
  .impact-unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .impact-unit-grid {
    grid-template-columns: 1fr;
  }

  .impact-unit-head {
    flex-direction: column;
    align-items: stretch;
  }
}
.scenario-unit-card {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #dce8ec;
  border-radius: 14px;
  background: #ffffff;
}

/* =========================================
   WoSI – Dashboard 2.0
   Demo-Modus vs. Projektmodus
   ========================================= */

.dashboard-section-demo,
.dashboard-section-project {
  position: relative;
}

.dashboard-grid-demo {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-card-demo,
.dashboard-card-project {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

.dashboard-card-demo {
  background: linear-gradient(180deg, rgba(235, 250, 251, 0.98) 0%, rgba(255,255,255,0.96) 100%);
  border-color: rgba(35, 162, 170, 0.22);
  box-shadow: 0 12px 30px rgba(35, 162, 170, 0.08);
}

.dashboard-card-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(35, 162, 170, 0.16), transparent 42%);
  pointer-events: none;
}

.dashboard-card-demo-main {
  border-color: rgba(35, 162, 170, 0.34);
}

.dashboard-card-project {
  background: rgba(255,255,255,0.96);
  border-color: var(--s3-border);
}

.dashboard-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(35, 162, 170, 0.12);
  color: var(--s3-teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-card-label-project {
  background: #eef3f8;
  color: var(--s3-navy);
}

.dashboard-card-demo h3,
.dashboard-card-project h3 {
  margin-bottom: 14px;
}

.dashboard-card-demo p,
.dashboard-card-project p {
  margin-bottom: 0;
}

.dashboard-card-demo:hover {
  background: linear-gradient(180deg, rgba(225, 247, 248, 1) 0%, rgba(255,255,255,0.98) 100%);
  border-color: rgba(35, 162, 170, 0.38);
  box-shadow: 0 16px 34px rgba(35, 162, 170, 0.12);
}

.dashboard-card-project:hover {
  background: #edf4f6;
  border-color: #cfdee4;
}

/* Tablet */
@media (max-width: 1220px) {
  .dashboard-grid-demo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 820px) {
  .dashboard-grid-demo {
    grid-template-columns: 1fr;
  }

  .dashboard-card-demo,
  .dashboard-card-project {
    min-height: auto;
  }
}

/* =========================================
   WoSI – Tabellen-Suche Kunden / Projekte
   ========================================= */

.wosi-table-search {
  margin: 14px 0 16px;
}

.wosi-table-search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfdde3;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.96rem;
  color: var(--s3-text);
  background: #f8fbfc;
  box-shadow: 0 6px 16px rgba(1, 19, 43, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wosi-table-search-input::placeholder {
  color: #7a8ea0;
}

.wosi-table-search-input:focus {
  outline: none;
  border-color: #87cfd2;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(35, 162, 170, 0.10);
}

/* =========================================
   WoSI – Demo Hinweisbox Modul-Einzelseiten
   ========================================= */

.wosi-demo-notice {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(235, 250, 251, 0.98) 0%, rgba(255,255,255,0.96) 100%);
  border: 1px solid rgba(35, 162, 170, 0.24);
  box-shadow: 0 12px 30px rgba(35, 162, 170, 0.08);
}

.wosi-demo-notice__label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(35, 162, 170, 0.12);
  color: var(--s3-teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wosi-demo-notice h2 {
  margin: 0 0 8px;
  color: var(--s3-navy);
}

.wosi-demo-notice p {
  margin: 0;
  max-width: 920px;
  color: var(--s3-text);
}

.wosi-demo-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .wosi-demo-notice {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .wosi-demo-notice__actions .btn,
  .wosi-demo-notice__actions .btn-secondary {
    width: 100%;
  }
}

/* =====================================
   WoSI Impact – Zusatz-Einheiten
   individuelle Optimierungsfelder ausblenden
===================================== */

.impact-unit-grid--optimization.is-hidden {
  display: none !important;
}

/* =========================================
   WoSI – Tätigkeitsanalyse Modul
   Schritt 1: Premium Landing / Konzeptseite
   ========================================= */

.page-activity .topbar {
  background: linear-gradient(90deg, #ff8e5b 0%, #ffad7f 100%);
  color: #01132b;
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.08);
}

.page-activity .main-nav a {
  color: rgba(1, 19, 43, 0.92);
}

.page-activity .main-nav a:hover,
.page-activity .main-nav a.active {
  background: rgba(255, 255, 255, 0.28);
  color: #01132b;
}

.activity-page {
  display: grid;
  gap: 24px;
}

.activity-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(1, 19, 43, 0.07);
  border-radius: 26px;
  box-shadow: 0 10px 26px rgba(1, 19, 43, 0.05);
  padding: 24px 22px;
}

.activity-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 330px;
  gap: 28px;
  align-items: start;
}

.activity-hero h1 {
  margin-bottom: 12px;
}

.activity-lead {
  max-width: 920px;
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.activity-mode-switch {
  padding: 16px;
  border-radius: 20px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.24);
}

.activity-mode-switch__label {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c45d2e;
}

.activity-mode-switch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.activity-mode-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #f1d5c7;
  color: #23364a;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.activity-mode-pill.is-active {
  background: #ffe9df;
  border-color: #ffc5aa;
  color: #01132b;
}

.activity-mode-switch p {
  margin: 10px 2px 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #5e7287;
}

.activity-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.activity-kpi-card {
  display: grid;
  gap: 8px;
  padding: 18px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 142, 91, 0.14) 0%, rgba(255, 142, 91, 0.06) 100%);
  border: 1px solid rgba(255, 142, 91, 0.22);
}

.activity-kpi-value {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
  color: #01132b;
}

.activity-kpi-label {
  color: #5e7287;
  font-size: 0.92rem;
  font-weight: 700;
}

.activity-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.activity-mini-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.activity-mini-flow div {
  min-height: 54px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  color: #01132b;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.activity-detail-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.activity-detail-list div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-detail-list strong {
  color: #01132b;
}

.activity-detail-list span {
  color: #5e7287;
  font-size: 0.92rem;
}

.activity-engine-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.activity-engine-step {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-engine-step strong {
  color: #01132b;
  line-height: 1.2;
}

.activity-engine-step span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

.activity-card--highlight {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,244,238,0.96) 100%);
  border-color: rgba(255, 142, 91, 0.24);
}

@media (max-width: 1180px) {
  .activity-hero,
  .activity-main-grid {
    grid-template-columns: 1fr;
  }

  .activity-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-engine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .activity-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .activity-kpi-grid,
  .activity-mini-flow,
  .activity-engine-grid {
    grid-template-columns: 1fr;
  }

  .activity-actions .btn,
  .activity-actions .btn-primary,
  .activity-actions .btn-secondary {
    width: 100%;
  }
}

.activity-tabs
.activity-tab
.activity-tab.is-active

/* =========================================
   WoSI – Tätigkeitsanalyse Tabs
   ========================================= */

.activity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(1, 19, 43, 0.07);
  box-shadow: 0 8px 22px rgba(1, 19, 43, 0.04);
}

.activity-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #5e7287;
  font-size: 0.94rem;
  font-weight: 800;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.activity-tab:hover {
  color: #01132b;
  background: #fff4ee;
  border-color: #f4d7c8;
  transform: translateY(-1px);
}

.activity-tab.is-active {
  color: #01132b;
  background: linear-gradient(180deg, #ffe9df 0%, #fff4ee 100%);
  border-color: #ffc5aa;
  box-shadow: 0 8px 18px rgba(255, 142, 91, 0.10);
}

@media (max-width: 640px) {
  .activity-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .activity-tabs::-webkit-scrollbar {
    display: none;
  }

  .activity-tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.86rem;
  }
}
/* WoSI – Tätigkeitsanalyse Zonenbedarf */

.activity-zone-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.activity-zone-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-zone-card strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-zone-card span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .activity-zone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .activity-zone-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Zonenbedarf erweitert
   Schritt 3
   ========================================= */

.activity-translation-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 24px;
}

.activity-translation-step {
  min-height: 150px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  display: grid;
  align-content: start;
  gap: 8px;
}

.activity-translation-step span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #01132b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.activity-translation-step strong {
  color: #01132b;
  font-size: 1.05rem;
}

.activity-translation-step p {
  margin: 0;
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.35;
}

.activity-translation-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8e5b;
  font-size: 1.6rem;
  font-weight: 800;
}

.activity-zone-grid--detailed .activity-zone-card {
  min-height: 190px;
  position: relative;
  overflow: hidden;
}

.activity-zone-card em {
  display: block;
  margin-top: 10px;
  color: #7a8ea0;
  font-style: normal;
  font-size: 0.84rem;
  line-height: 1.35;
}

.activity-zone-card::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 999px;
  margin-bottom: 8px;
  display: block;
}

.activity-zone-card--work::before {
  background: #01132b;
}

.activity-zone-card--retreat::before {
  background: #007aab;
}

.activity-zone-card--meeting::before {
  background: #ff8e5b;
}

.activity-zone-card--community::before {
  background: #fec10d;
}

.activity-zone-card--infrastructure::before {
  background: #818995;
}

.activity-demand-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.activity-demand-preview div {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255, 142, 91, 0.20);
}

.activity-demand-preview strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-demand-preview span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .activity-translation-flow {
    grid-template-columns: 1fr;
  }

  .activity-translation-arrow {
    transform: rotate(90deg);
    min-height: 20px;
  }

  .activity-demand-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .activity-demand-preview {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Detail Analyse
   Schritt 4: Rollenprofile + Stundenplan
   ========================================= */

.activity-detail-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.activity-detail-stage-card {
  min-height: 150px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  display: grid;
  align-content: start;
  gap: 8px;
}

.activity-detail-stage-card span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #01132b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.activity-detail-stage-card strong {
  color: #01132b;
  font-size: 1.05rem;
}

.activity-detail-stage-card p {
  margin: 0;
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.35;
}

.activity-role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.activity-role-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  min-height: 150px;
}

.activity-role-card strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-role-card span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

.activity-schedule-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 300px;
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.activity-schedule-table {
  display: grid;
  grid-template-columns: 90px repeat(5, minmax(60px, 1fr));
  border: 1px solid #e3ecef;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

.activity-schedule-table > div {
  min-height: 44px;
  padding: 10px;
  border-right: 1px solid #e3ecef;
  border-bottom: 1px solid #e3ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #01132b;
}

.activity-schedule-table > div:nth-child(6n) {
  border-right: 0;
}

.activity-schedule-head {
  background: #f0f6f8;
  color: #5e7287 !important;
  font-weight: 800 !important;
}

.mode-work {
  background: rgba(1, 19, 43, 0.10);
}

.mode-retreat {
  background: rgba(0, 122, 171, 0.16);
}

.mode-collab {
  background: rgba(255, 142, 91, 0.18);
}

.mode-communication {
  background: rgba(254, 193, 13, 0.24);
}

.mode-remote {
  background: rgba(129, 137, 149, 0.16);
}

.activity-schedule-legend {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-schedule-legend div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.3;
}

.mode-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dot-work {
  background: #01132B; /* Arbeitsplätze */
}

.dot-collab {
  background: #ff8e5b; /* Zusammenarbeit */
}

.dot-comm {
  background: #FEC10D; /* Kommunikation */
}

.dot-retreat {
  background: #007AAB; /* Rückzug */
}

.mode-dot-remote {
  background: #818995;
}

@media (max-width: 1180px) {
  .activity-detail-stage-grid,
  .activity-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-schedule-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .activity-detail-stage-grid,
  .activity-role-grid {
    grid-template-columns: 1fr;
  }

  .activity-schedule-table {
    grid-template-columns: 76px repeat(5, minmax(48px, 1fr));
    overflow-x: auto;
  }

  .activity-schedule-table > div {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 0.78rem;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Detail Mini-Fix
   Rollenprofile + Wochenmuster hinzufügen
   ========================================= */

.activity-role-card--add {
  border-style: dashed;
  border-color: rgba(255, 142, 91, 0.42);
  background: linear-gradient(180deg, rgba(255, 244, 238, 0.92) 0%, rgba(255,255,255,0.92) 100%);
}

.activity-role-card--add strong {
  color: #01132b;
}

.activity-schedule-note {
  max-width: 980px;
  margin: 0 0 14px;
  color: #5e7287;
  font-size: 0.98rem;
  line-height: 1.45;
}

.activity-schedule-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}

.activity-add-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 142, 91, 0.55);
  background: #fff4ee;
  color: #01132b;
  font: inherit;
  font-weight: 800;
  cursor: not-allowed;
  opacity: 0.82;
}

.activity-schedule-actions span {
  color: #7a8ea0;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .activity-schedule-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-add-btn {
    width: 100%;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5A
   ========================================= */

.activity-light-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.activity-light-step {
  min-height: 150px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  display: grid;
  align-content: start;
  gap: 8px;
}

.activity-light-step span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #01132b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.activity-light-step strong {
  color: #01132b;
  font-size: 1.05rem;
}

.activity-light-step p {
  margin: 0;
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.35;
}

.activity-light-scan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.activity-light-input-card {
  padding: 18px 18px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-light-input-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.activity-light-input-head strong {
  color: #01132b;
  font-size: 1.08rem;
}

.activity-light-input-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #c45d2e;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-slider-preview {
  display: grid;
  gap: 14px;
}

.activity-slider-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1.4fr) 48px;
  gap: 12px;
  align-items: center;
}

.activity-slider-row label {
  color: #01132b;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.activity-slider-row strong {
  color: #01132b;
  font-size: 0.92rem;
  text-align: right;
}

.activity-fake-slider {
  height: 10px;
  border-radius: 999px;
  background: #e6eef2;
  overflow: hidden;
}

.activity-fake-slider span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #01132b 0%, #23a2aa 100%);
}

.activity-place-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.activity-place-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  min-height: 150px;
}

.activity-place-card strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-place-card span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

.activity-place-card em {
  margin-top: auto;
  color: #23a2aa;
  font-style: normal;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
}

.activity-light-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.activity-light-result-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255, 142, 91, 0.20);
}

.activity-light-result-card strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-light-result-card span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

.activity-light-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.activity-light-actions span {
  color: #7a8ea0;
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .activity-light-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-light-scan-grid,
  .activity-place-grid,
  .activity-light-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-slider-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .activity-slider-row strong {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .activity-light-flow,
  .activity-light-scan-grid,
  .activity-place-grid,
  .activity-light-result-grid {
    grid-template-columns: 1fr;
  }

  .activity-light-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-light-actions .activity-add-btn {
    width: 100%;
  }
}
/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5B: Mo–Fr Wochenkarten
   ========================================= */

.activity-week-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.activity-day-card {
  display: grid;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  min-height: 280px;
}

.activity-day-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-day-card__head strong {
  color: #01132b;
  font-size: 1.25rem;
}

.activity-day-card__head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #c45d2e;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-day-bars {
  display: grid;
  gap: 13px;
}

.activity-day-bar {
  display: grid;
  gap: 6px;
}

.activity-day-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.activity-day-bar__top span {
  color: #01132b;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.activity-day-bar__top strong {
  color: #5e7287;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-day-bar__track {
  height: 9px;
  border-radius: 999px;
  background: #e6eef2;
  overflow: hidden;
}

.activity-day-bar__track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.activity-week-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.22);
  color: #5e7287;
  font-size: 0.92rem;
  line-height: 1.45;
}

.activity-week-note strong {
  color: #01132b;
}

@media (max-width: 1280px) {
  .activity-week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .activity-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .activity-week-grid {
    grid-template-columns: 1fr;
  }

  .activity-day-card {
    min-height: auto;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5B: Mo–Fr Wochenkarten
   ========================================= */

.activity-week-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.activity-day-card {
  display: grid;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  min-height: 280px;
}

.activity-day-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-day-card__head strong {
  color: #01132b;
  font-size: 1.25rem;
}

.activity-day-card__head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #c45d2e;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-day-bars {
  display: grid;
  gap: 13px;
}

.activity-day-bar {
  display: grid;
  gap: 6px;
}

.activity-day-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.activity-day-bar__top span {
  color: #01132b;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.activity-day-bar__top strong {
  color: #5e7287;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-day-bar__track {
  height: 9px;
  border-radius: 999px;
  background: #e6eef2;
  overflow: hidden;
}

.activity-day-bar__track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.activity-week-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.22);
  color: #5e7287;
  font-size: 0.92rem;
  line-height: 1.45;
}

.activity-week-note strong {
  color: #01132b;
}

@media (max-width: 1280px) {
  .activity-week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .activity-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .activity-week-grid {
    grid-template-columns: 1fr;
  }

  .activity-day-card {
    min-height: auto;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5C: echte Slider
   ========================================= */

.activity-day-card--interactive {
  min-height: 330px;
}

.activity-day-sliders {
  display: grid;
  gap: 13px;
}

.activity-day-slider-row {
  display: grid;
  gap: 6px;
}

.activity-day-slider-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.activity-day-slider-row__top label {
  color: #01132b;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.activity-day-slider-row__top strong {
  color: #5e7287;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-day-range {
  --fill-percent: 0%;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  margin: 0;
}

.activity-day-range:focus {
  outline: none;
}

.activity-day-range::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      #7bcf9d 0%,
      #7bcf9d var(--fill-percent),
      #e6eef2 var(--fill-percent),
      #e6eef2 100%
    );
}

.activity-day-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #23a2aa;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.18);
  cursor: pointer;
}

.activity-day-range::-moz-range-track {
  height: 9px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      #7bcf9d 0%,
      #7bcf9d var(--fill-percent),
      #e6eef2 var(--fill-percent),
      #e6eef2 100%
    );
}

.activity-day-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #23a2aa;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.18);
  cursor: pointer;
}

.activity-day-reset {
  margin-top: auto;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid #dce8ec;
  background: #ffffff;
  color: #5e7287;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.activity-day-reset:hover {
  color: #01132b;
  border-color: #ffc5aa;
  background: #fff4ee;
}

.activity-day-card__head span.is-warning {
  background: #fff0ef;
  border-color: #ffc7c1;
  color: #a53d31;
}

/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5D: IST / IDEAL Toggle
   ========================================= */

.activity-week-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin: 4px 0 20px;
  border-radius: 999px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-week-toggle__btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #5e7287;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.activity-week-toggle__btn:hover {
  color: #01132b;
  background: #fff7f3;
}

.activity-week-toggle__btn.is-active {
  color: #01132b;
  background: #ffe9df;
  border-color: #ffc5aa;
  box-shadow: 0 8px 18px rgba(255, 142, 91, 0.10);
}

@media (max-width: 640px) {
  .activity-week-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .activity-week-toggle__btn {
    padding: 0 12px;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5E.1: Team-DNA Ergebnis-Kachel
   ========================================= */

.activity-dna-card {
  margin-top: 22px;
  padding: 22px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,251,252,0.98) 100%);
  border: 1px solid rgba(1, 19, 43, 0.07);
  box-shadow: 0 10px 24px rgba(1, 19, 43, 0.04);
}

.activity-dna-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.activity-dna-card__head h2 {
  margin-bottom: 8px;
}

.activity-dna-card__head p {
  max-width: 840px;
  margin-bottom: 0;
  color: #5e7287;
  line-height: 1.45;
}

.activity-dna-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #c45d2e;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.activity-dna-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.activity-dna-metric {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-dna-metric strong {
  color: #01132b;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
}

.activity-dna-metric span {
  color: #5e7287;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.activity-dna-insight {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.22);
  display: grid;
  gap: 4px;
}

.activity-dna-insight strong {
  color: #01132b;
}

.activity-dna-insight span {
  color: #5e7287;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .activity-dna-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-dna-card__head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .activity-dna-grid {
    grid-template-columns: 1fr;
  }

  .activity-dna-card {
    padding: 18px 16px;
    border-radius: 20px;
  }
}

/* WoSI – Tätigkeitsanalyse Arbeitsorte interaktiv */

.activity-place-sliders {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-place-slider-row {
  display: grid;
  gap: 8px;
}

.activity-place-slider-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-place-slider-row__top label {
  color: #01132b;
  font-size: 0.95rem;
  font-weight: 800;
}

.activity-place-slider-row__top strong {
  color: #5e7287;
  font-size: 0.92rem;
  font-weight: 800;
}

.activity-place-range {
  --fill-percent: 0%;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  margin: 0;
}

.activity-place-range:focus {
  outline: none;
}

.activity-place-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #7bcf9d 0%,
    #7bcf9d var(--fill-percent),
    #e6eef2 var(--fill-percent),
    #e6eef2 100%
  );
}

.activity-place-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #23a2aa;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.18);
  cursor: pointer;
}

.activity-place-range::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #7bcf9d 0%,
    #7bcf9d var(--fill-percent),
    #e6eef2 var(--fill-percent),
    #e6eef2 100%
  );
}

.activity-place-range::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #23a2aa;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.18);
  cursor: pointer;
}

.activity-place-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.22);
}

.activity-place-total strong {
  color: #01132b;
  font-size: 1.25rem;
}

.activity-place-total span {
  color: #5e7287;
  font-size: 0.9rem;
  font-weight: 700;
}

.activity-place-total.is-warning {
  background: #fff0ef;
  border-color: #ffc7c1;
}

.activity-place-total.is-warning strong {
  color: #a53d31;
}

@media (max-width: 640px) {
  .activity-place-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* WoSI – Tätigkeitsanalyse 5I: IST/IDEAL Delta */

.activity-delta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.activity-delta-metric {
  display: grid;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.22);
}

.activity-delta-metric strong {
  color: #01132b;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
}

.activity-delta-metric strong.is-positive {
  color: #0b8f66;
}

.activity-delta-metric strong.is-negative {
  color: #c45d2e;
}

.activity-delta-metric span {
  color: #5e7287;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .activity-delta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .activity-delta-grid {
    grid-template-columns: 1fr;
  }
}

.activity-delta-metric strong.is-neutral {
  color: #5e7287;
}

.activity-delta-metric strong.is-positive::before,
.activity-delta-metric strong.is-negative::before {
  display: none;
}

/* WoSI – Tätigkeitsanalyse Arbeitsorte-Auswertung live */

.activity-place-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.activity-place-insight-card {
  display: grid;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 18px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-place-insight-card strong {
  color: #01132b;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
}

.activity-place-insight-card span {
  color: #5e7287;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .activity-place-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .activity-place-insights {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Smart Analytics Data Layer
   ========================================= */

.activity-data-switch {
  background: linear-gradient(180deg, #fff7f3 0%, #ffffff 100%);
}

.activity-mode-pill--recommended {
  background: #e8f7f7;
  border-color: #bfe5e6;
  color: #01132b;
}

.activity-data-layer-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(235,250,251,0.92) 100%);
  border-color: rgba(35, 162, 170, 0.22);
}

.activity-data-layer-card p {
  max-width: 980px;
}

.activity-data-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.activity-data-layer-item {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-data-layer-item strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-data-layer-item span {
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.4;
}

.activity-data-layer-item--highlight {
  background: linear-gradient(180deg, rgba(35,162,170,0.12) 0%, rgba(35,162,170,0.05) 100%);
  border-color: rgba(35,162,170,0.26);
}

@media (max-width: 900px) {
  .activity-data-layer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Delta / Kosten-Nutzen Bridge
   ========================================= */

.activity-delta-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border-color: rgba(35, 162, 170, 0.18);
}

.activity-delta-card p {
  max-width: 980px;
}

.activity-delta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.activity-delta-metric {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-delta-metric span {
  color: #5e7287;
  font-size: 0.9rem;
  font-weight: 700;
}

.activity-delta-metric strong {
  color: #01132b;
  font-size: 1.35rem;
  line-height: 1;
}

.activity-delta-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e7eff2;
  overflow: hidden;
}

.activity-delta-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #ff8e5b;
}

.activity-delta-metric--measured .activity-delta-bar i {
  background: #23a2aa;
}

.activity-delta-metric--delta {
  background: linear-gradient(180deg, rgba(35,162,170,0.10) 0%, rgba(255,142,91,0.06) 100%);
  border-color: rgba(35,162,170,0.22);
}

.activity-delta-metric--delta .activity-delta-bar i {
  background: linear-gradient(90deg, #23a2aa 0%, #ff8e5b 100%);
}

.activity-impact-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 18px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #dce8ec;
}

.activity-impact-bridge div:first-child {
  display: grid;
  gap: 4px;
}

.activity-impact-bridge strong {
  color: #01132b;
}

.activity-impact-bridge span {
  color: #5e7287;
  font-size: 0.92rem;
  line-height: 1.4;
}

.activity-impact-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #e8f7f7;
  border: 1px solid #bfe5e6;
  color: #01132b;
  font-weight: 800;
}

@media (max-width: 900px) {
  .activity-delta-grid {
    grid-template-columns: 1fr;
  }

  .activity-impact-bridge {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-impact-badge {
    width: 100%;
  }
}

.activity-impact-badge--validated {
  background: linear-gradient(180deg, #e8f7f7 0%, #f0fbfb 100%);
  border-color: #bfe5e6;
  color: #01132b;
}

/* =========================================
   WoSI – Data Layer: Subjektive Nutzung orange hervorheben
   ganz unten einfügen
   ========================================= */

.page-activity .activity-data-layer-item.activity-data-layer-item--subjective {
  background: linear-gradient(
    180deg,
    rgba(255, 142, 91, 0.16) 0%,
    rgba(255, 142, 91, 0.07) 100%
  ) !important;
  border-color: rgba(255, 142, 91, 0.42) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 142, 91, 0.08);
}

.page-activity .activity-data-layer-item.activity-data-layer-item--subjective strong {
  color: #01132b;
}

.page-activity .activity-data-layer-item.activity-data-layer-item--subjective span {
  color: #5e7287;
}

/* =========================================
   WoSI – Ergebnisdialog Data Layer
   ========================================= */

.activity-results-data-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 28px 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(235, 250, 251, 0.7) 0%,
    rgba(255, 245, 240, 0.6) 100%
  );
  border: 1px solid rgba(35, 162, 170, 0.18);
}

.activity-results-data-layer__content {
  display: grid;
  gap: 4px;
}

.activity-results-data-layer__content strong {
  color: #01132b;
}

.activity-results-data-layer__content span {
  color: #5e7287;
  font-size: 0.92rem;
}

.activity-results-data-layer__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #e8f7f7;
  border: 1px solid #bfe5e6;
  color: #01132b;
  font-weight: 800;
}

/* =========================================
   WoSI – Journey Grundlagen Update 2
   Eine breite Kachel + 4 Zonen-Karten
   ========================================= */

.journey-basics-single {
  padding: 28px;
}

.journey-basics-single__intro h2 {
  margin-bottom: 16px;
}

.journey-basics-single__textgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
}

.journey-basics-single__textgrid p {
  margin-bottom: 0;
}

.journey-zone-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.journey-zone-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f9fb;
  border: 1px solid rgba(1, 19, 43, 0.07);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.journey-zone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(1, 19, 43, 0.08);
  border-color: rgba(35, 162, 170, 0.20);
}

.journey-zone-card__copy {
  margin-bottom: 14px;
}

.journey-zone-card__copy h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.2;
}

.journey-zone-card__copy p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.38;
  color: var(--s3-text-soft);
}

.journey-zone-card--work h3 {
  color: #01132b;
}

.journey-zone-card--collab h3 {
  color: #e79b45;
}

.journey-zone-card--communication h3 {
  color: #c6a800;
}

.journey-zone-card--retreat h3 {
  color: #007aab;
}

.journey-zone-card__image-wrap {
  margin-top: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.journey-zone-card__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

@media (max-width: 1180px) {
  .journey-zone-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-zone-card {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .journey-basics-single {
    padding: 20px 16px;
  }

  .journey-basics-single__textgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .journey-zone-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
  }

  .journey-zone-card {
    min-height: 0;
    padding: 14px;
  }
}

/* =========================================
   WoSI – Journey Grundlagen Text zweispaltig
   Desktop: zweiter Absatz rechts
   Mobile: sauber untereinander
   ========================================= */

.journey-basics-single__textgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  max-width: 100%;
  align-items: start;
}

.journey-basics-single__textgrid p {
  max-width: 560px;
}

@media (max-width: 760px) {
  .journey-basics-single__textgrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .journey-basics-single__textgrid p {
    max-width: none;
  }
}

/* =========================================
   WoSI – Hinweis Referenzwert
   ========================================= */

.journey-conditions-note {
  margin-top: 14px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(1, 19, 43, 0.55);
  text-align: left;
  padding-left: 4px;
}

/* =========================================
   WoSI – Dashboard Projektmodus Karten Verlauf
   dezenter S3-Blau-Verlauf von Nordost nach Südwest
   ========================================= */

.dashboard-card-project {
  background:
    linear-gradient(
      225deg,
      #dce8f4 0%,
      #eef4fa 38%,
      #ffffff 78%,
      #ffffff 100%
    );
  border-color: rgba(1, 19, 43, 0.14);
  box-shadow: 0 12px 28px rgba(1, 19, 43, 0.06);
}

.dashboard-card-project:hover {
  background:
    linear-gradient(
      225deg,
      #cfddeb 0%,
      #e8f0f8 40%,
      #ffffff 80%,
      #ffffff 100%
    );
  border-color: rgba(1, 19, 43, 0.20);
  box-shadow: 0 16px 34px rgba(1, 19, 43, 0.09);
}

/* =========================================
   WoSI – Tätigkeitsanalyse 5J.4
   Teilnehmer-/Abteilungs-Kontext Light Scan
   ========================================= */

.activity-participant-context {
  border-color: rgba(255, 142, 91, 0.18);
}

.activity-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.activity-context-field {
  display: grid;
  gap: 7px;
}

.activity-context-field label {
  color: #01132b;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.activity-context-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6e1e6;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: #1f3047;
  background: #f8fbfc;
}

.activity-context-field input:focus {
  outline: none;
  border-color: #ffc5aa;
  box-shadow: 0 0 0 4px rgba(255, 142, 91, 0.10);
  background: #ffffff;
}

@media (max-width: 1180px) {
  .activity-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .activity-context-grid {
    grid-template-columns: 1fr;
  }
}

.activity-context-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6e1e6;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: #1f3047;
  background: #f8fbfc;
}

.activity-scan-switcher {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 18px;
  align-items: center;
  margin: 18px 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(35, 162, 170, 0.18);
  border-radius: 18px;
  background: rgba(35, 162, 170, 0.045);
}

.activity-scan-switcher strong {
  display: block;
  color: #01132b;
  font-weight: 900;
}

.activity-scan-switcher span {
  display: block;
  margin-top: 4px;
  color: #607187;
  font-size: 0.92rem;
}

/* =========================================
   WoSI – Multi-Light-Scans
   ========================================= */

.activity-scan-switcher select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6e1e6;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: #1f3047;
  background: #ffffff;
}

@media (max-width: 760px) {
  .activity-scan-switcher {
    grid-template-columns: 1fr;
  }
}

/* Abstand zwischen Arbeitsorte und Arbeitsmodi */
.activity-card + .activity-card {
  margin-top: 28px;
}

.activity-active-scan {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7a86;
}

.activity-active-context-card {
  border: 1px solid rgba(35, 162, 170, 0.18);
  background: rgba(35, 162, 170, 0.045);
}

.activity-active-context-card h2 {
  margin-bottom: 8px;
}

.activity-active-context-card p {
  color: #607187;
}

.activity-active-scan {
  margin-top: 8px;
  color: #607187;
  font-size: 0.95rem;
}

.activity-active-context-card {
    border: 2px solid #d9ecec;
    background: #f4fbfb;
}

.activity-active-context-card {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.activity-active-context-card.is-missing {
  border-color: rgba(255, 142, 91, 0.35);
  background: rgba(255, 142, 91, 0.055);
}

.activity-active-context-card.is-set {
  border-color: rgba(35, 162, 170, 0.28);
  background: rgba(35, 162, 170, 0.07);
}

.activity-active-context-card.is-set h2::before {
  content: "✓ ";
  color: #238f8f;
}

.activity-profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 16px;
  margin: 20px 0;
}

.activity-profile-summary__item {
  padding: 18px;
  border: 1px solid #dfe9ee;
  border-radius: 18px;
  background: #f7fafb;
}

.activity-profile-summary__item strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #01132b;
  line-height: 1;
}

.activity-profile-summary__item span {
  display: block;
  margin-top: 6px;
  color: #607187;
  font-weight: 700;
}

.activity-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.activity-profile-card {
  padding: 18px;
  border: 1px solid rgba(255, 142, 91, 0.28);
  border-radius: 20px;
  background: rgba(255, 142, 91, 0.045);
}

.activity-profile-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #607187;
  font-size: 0.86rem;
  font-weight: 800;
}

.activity-profile-card h3 {
  margin: 0 0 8px;
  color: #01132b;
}

.activity-profile-card p {
  margin: 0 0 10px;
  color: #607187;
}

.activity-profile-card small {
  color: #7a8a9a;
}

.activity-profile-empty {
  padding: 18px;
  border: 1px dashed #d9e4ea;
  border-radius: 18px;
  color: #607187;
}

.activity-dna-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.activity-dna-item {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #dfe9ee;
  background: #f7fafb;
  text-align: center;
}

.activity-dna-item strong {
  font-size: 2rem;
  display: block;
  color: #01132b;
}

.activity-dna-item span {
  margin-top: 6px;
  display: block;
  color: #607187;
}

.activity-entry-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.activity-entry-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #dfe9ee;
  border-radius: 18px;
  background: #f7fafb;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.activity-entry-choice:hover {
  transform: translateY(-1px);
}

.activity-entry-choice.is-active {
  border-color: rgba(35, 162, 170, .35);
  background: rgba(35, 162, 170, .07);
}

.activity-entry-choice input {
  margin-top: 4px;
}

.activity-entry-choice strong {
  display: block;
  color: #01132b;
  margin-bottom: 6px;
}

.activity-entry-choice small {
  display: block;
  color: #607187;
  line-height: 1.35;
}

.activity-entry-hint {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 142, 91, .06);
  border: 1px solid rgba(255, 142, 91, .22);
  color: #607187;
  font-weight: 700;
}

@media (max-width: 760px) {
  .activity-entry-choice-grid {
    grid-template-columns: 1fr;
  }
}

.activity-delta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.activity-delta-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dfe9ee;
  background: #f7fafb;
}

.activity-delta-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #01132b;
}

.activity-delta-item span {
  display: block;
  margin-top: 6px;
  font-weight: 800;
  color: #607187;
}

.activity-delta-item small {
  display: block;
  margin-top: 8px;
  color: #7a8a9a;
}

.activity-delta-item.is-positive strong {
  color: #238f8f;
}

.activity-delta-item.is-negative strong {
  color: #b85f36;
}

.activity-delta-impulse {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 142, 91, .24);
  background: rgba(255, 142, 91, .055);
  color: #607187;
  font-weight: 800;
}

@media (max-width: 900px) {
  .activity-delta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .activity-delta-grid {
    grid-template-columns: 1fr;
  }
}

.activity-delta-item__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.activity-delta-item__head span {
  font-weight: 900;
  color: #01132b;
}

.activity-delta-item__head strong {
  font-size: 1.7rem;
  line-height: 1;
}

.activity-delta-bars {
  display: grid;
  gap: 10px;
}

.activity-delta-bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.activity-delta-bar-row small,
.activity-delta-bar-row em {
  color: #607187;
  font-weight: 800;
  font-style: normal;
  font-size: 0.82rem;
}

.activity-delta-bar {
  height: 9px;
  border-radius: 999px;
  background: #e8eff3;
  overflow: hidden;
}

.activity-delta-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #8fcda3;
}

.activity-delta-item.is-positive {
  border-color: rgba(35, 143, 143, .32);
  background: rgba(35, 162, 170, .055);
}

.activity-delta-item.is-negative {
  border-color: rgba(255, 142, 91, .34);
  background: rgba(255, 142, 91, .055);
}

.activity-delta-item.is-neutral {
  border-color: #dfe9ee;
  background: #f7fafb;
}

.activity-delta-item.is-positive .activity-delta-item__head strong {
  color: #238f8f;
}

.activity-delta-item.is-negative .activity-delta-item__head strong {
  color: #b85f36;
}

.activity-delta-item.is-neutral .activity-delta-item__head strong {
  color: #607187;
}

.js-lightbox-trigger {
    cursor: zoom-in;
}

.wosi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(1, 19, 43, 0.82);
}

.wosi-lightbox.is-active {
    display: flex;
}

.wosi-lightbox img {
    max-width: min(94vw, 1100px);
    max-height: 88vh;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.wosi-lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #01132b;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

/* =========================================
   WoSI Impact – Reset exakt wie Zielmodus
   ========================================= */

.page-impact .impact-header-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.page-impact .impact-reset-panel {
  width: 100%;
}

.page-impact .impact-target-mode__reset-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #dce8ec;
  background: #f6fbfb;
  color: #23364a;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-impact .impact-target-mode__reset-btn:hover {
  background: #e8f7f7;
  border-color: #bfe5e6;
  color: #01132B;
}

@media (max-width: 640px) {
  .page-impact .impact-header-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI Impact – Rahmenbedingungen 6 Kacheln
   ========================================= */

.page-impact .impact-metric-grid--conditions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .page-impact .impact-metric-grid--conditions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-impact .impact-metric-grid--conditions {
    grid-template-columns: 1fr;
  }
}