:root {
  /* =========================
    CORPORATE THEME
    ========================= */
  --brand-blue-500: #2563EB; /* Primary Brand (PaceKeeper Blue) */
  --brand-cyan-500: #22D3EE; /* Accent (sparsam) */

  /* Backgrounds / Surfaces */
  --bg0: #F8FAFC; /* Background Primary */
  --bg1: #FFFFFF; /* Background Secondary */
  --surface-1: #FFFFFF; /* Surface Card */
  --surface-2: #FFFFFF;

  /* Text */
  --fg: #0F172A;       /* Primary text */
  --muted: #64748B;    /* Meta / Labels */
  --muted2: #64748B;

  /* Divider / Border */
  --line: #E5EAF0;

  /* States (reduced) */
  --ok: #16A34A;
  --ok-soft: #EAF7EF;
  --warn: #D97706;
  --warn-soft: #FEF3E2;
  --info: #64748B;
  --danger: #DC2626;
  --danger-soft: #FEE2E2;

  /* Soft brand surfaces */
  --primary-soft: #EFF6FF;
  --accent-soft: rgba(34, 211, 238, 0.08);

  /* Actions */
  --accent: var(--brand-cyan-500);
  --accent2: var(--brand-blue-500);
  --primary-bg: var(--brand-blue-500);
  --primary-fg: #FFFFFF;

  /* Layout */
  --maxw: 1120px;
  --radius: 12px; /* Cards */
  --radius-btn: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow2: 0 1px 2px rgba(0, 0, 0, 0.04);

  --focus: 0 0 0 3px rgba(37, 99, 235, 0.18),
        0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* Optional: Dark theme prepared for later toggle */
[data-theme="dark"] {
  --bg0: #050B14;
  --bg1: #060A12;

  --fg: #F6F8FC;
  --muted: #B5C0D0;
  --muted2: #8A96A8;
  --line: rgba(255, 255, 255, 0.10);

  --surface-1: rgba(10, 22, 46, 0.62);
  --surface-2: rgba(10, 22, 46, 0.42);

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow2: 0 10px 30px rgba(0, 0, 0, 0.40);
}


* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

pre {
  max-width: 100%;
  overflow: auto;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  color: var(--fg);
  background: var(--bg0);
  line-height: 1.5;
  padding-top: var(--headerH, 0px);
}

/* =========================
  Admin (local tool)
  Visible only via #admin / ?admin=1
  ========================= */
.adminHidden { display: none; }

/* Admin: Full-width layout (do not clamp to --maxw). */
#adminRoot .container { max-width: none; }

.adminGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.adminCard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 16px;
}

.adminForm { margin-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.adminField { display: flex; flex-direction: column; gap: 6px; }

.adminInput {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg1);
  color: var(--fg);
  outline: none;
}

.adminInput:focus { box-shadow: var(--focus); }

.adminActions { display: flex; gap: 10px; flex-wrap: wrap; }
.adminActions--end { align-items: flex-end; }

.adminTabs { display: flex; gap: 10px; flex-wrap: wrap; }
.adminTabBtn[aria-pressed="true"] {
  background: var(--primary-soft);
  border-color: rgba(37, 99, 235, 0.28);
}

.adminRow2 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.adminStatus {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg1);
  color: var(--muted);
}

.adminStatus[data-kind="ok"] {
  border-color: rgba(22, 163, 74, 0.25);
  background: var(--ok-soft);
  color: var(--fg);
}

.adminStatus[data-kind="bad"] {
  border-color: rgba(220, 38, 38, 0.25);
  background: var(--danger-soft);
  color: var(--fg);
}

.adminStatus[data-kind="info"] {
  border-color: rgba(100, 116, 139, 0.25);
  background: var(--primary-soft);
  color: var(--fg);
}

.adminTableWrap { overflow: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.adminTable { width: 100%; border-collapse: collapse; background: var(--surface-1); }
.adminTable th, .adminTable td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.adminTable th { text-align: left; color: var(--muted); font-weight: 800; }
.adminRow:hover { background: var(--primary-soft); cursor: pointer; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand .t {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand .name {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.brand .sub {
  font-size: 12.5px;
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navlinks {
  display: flex;
  gap: 10px;
  align-items: center;
}

.navlinks a {
  padding: 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  transition: 0.18s ease;
}

.navlinks a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--fg);
}

/* Link Button – warm glass (single source of truth) */
.linkBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  font-weight:600;
  font-size:14px;
  letter-spacing:0.15px;

  height: 42px;
  padding:0 14px;
  border-radius: var(--radius-btn);

  color: var(--accent2);
  background: var(--bg1);
  border: 1px solid var(--line);

  box-shadow: var(--shadow);

  cursor:pointer;
  text-decoration:none;
  transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
}

.linkBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
}

.linkBtn:active{ transform: translateY(0); }

.linkBtn:focus-visible{
  outline:none;
  box-shadow: var(--focus), var(--shadow);
}


.lang {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg1);
}

.lang--dropdown {
  position: relative;
  padding: 6px;
}

.langToggle {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.18s ease;
}

.langToggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.langToggle:focus-visible {
  box-shadow: var(--focus);
}

.langToggle::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid var(--muted2);
  border-bottom: 2px solid var(--muted2);
  transform: rotate(45deg);
  opacity: 0.9;
}

.langMenu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  bottom: auto;
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
}

footer #langWrap .langMenu {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
}

.langOption {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.18s ease;
}

.langOption:hover {
  background: rgba(0, 0, 0, 0.04);
}

.langOption[aria-selected="true"] {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18) inset;
}

.langFlag {
  display: inline-flex;
  align-items: center;
}

.flagSvg {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--line) inset;
}

.lang button {
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.18s ease;
}

.lang button:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--fg);
}

.lang button[aria-pressed="true"] {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18) inset;
  color: var(--fg);
}

/* =========================
   Buttons – PaceKeeper Style
   ========================= */

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.01px;
  padding: 0 14px;
  border-radius: var(--radius-btn);

  background: var(--primary-bg);
  color: var(--primary-fg);
  box-shadow: var(--shadow);

  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.primary:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.primary:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}

.primary:focus-visible {
  outline: none;
  box-shadow: var(--focus), var(--shadow);
}

/* Ghost: “Glas” im Splash-Stil – klar, nicht grau */
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg1);
  cursor: pointer;
  font-weight: 500;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  color: var(--accent2);
  box-shadow: var(--shadow);

  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.ghost:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.ghost:active {
  transform: translateY(0px);
}

.ghost:focus-visible {
  outline: none;
  box-shadow: var(--focus), var(--shadow);
}


section {
  padding: 84px 0;
}

.kicker {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14px;
  font-weight: 500;
  text-transform: uppercase;
}

.h1 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.12px;
  margin: 14px 0 18px;
  font-weight: 600;
}

.h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.06px;
  font-weight: 600;
}

.h3 {
  font-size: 16px;
  margin: 0 0 10px;
  font-weight: 500;
  letter-spacing: -0.02px;
}

.lead {
  font-size: 14px;
  color: var(--fg);
  max-width: 72ch;
}

p {
  margin: 0 0 14px;
  color: var(--fg);
}

strong {
  color: var(--fg);
}

.accent {
  color: var(--accent);
}

.accent2 {
  color: var(--accent2);
}

.hero {
  position: relative;
  padding: 7rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(37, 99, 235, 0.08), transparent 62%),
    radial-gradient(760px 420px at 80% 30%, rgba(34, 211, 238, 0.06), transparent 66%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "content media"
    "actions media";
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  grid-area: content;
}

.hero-actions {
  grid-area: actions;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: var(--bg1);
  border: 1px solid var(--line);
  color: var(--fg);
  box-shadow: none;
  padding-left: 10px;
  border-left: 3px solid var(--brand-blue-500);
}

.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.hero .accent {
  color: var(--brand-blue-500);
}

.hero-text {
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 18px;
}

.hero-media {
  position: relative;
  z-index: 1;
  justify-self: end;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-1);
  grid-area: media;
}

.hero-media img {
  display: block;
  width: 118%;
  max-width: none;
  height: auto;
  opacity: 1;
  filter: none;
  transform: translate(-10%, 0);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "media"
      "actions";
    gap: 3rem;
  }

  .hero-media img {
    opacity: 1;
    width: 112%;
    transform: translate(-6%, 0);
  }
}


.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;

  padding: 9px 14px;
  border-radius: 999px;

  border: 1px solid var(--line);
  background: var(--primary-soft);

  color: var(--brand-blue-500);
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 13px;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--brand-blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}


.ctaRow {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.splashWrap {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.splashWrap::before {
  content: none;
}

.splashInner {
  position: relative;
  padding: 14px;
}

.splashImg {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted2);
  font-size: 13px;
  align-items: center;
}

.caption .chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg1);
  font-weight: 600;
}

.caption .chip i {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--brand-blue-500);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.divider {
  height: 1px;
  background: var(--line);
}

.sectionHead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 18px;
}

.sectionHead .h2 {
  margin-bottom: 4px;
}

.sectionHead .hint {
  color: var(--muted2);
  font-size: 13px;
  max-width: none;
  width: 100%;
  text-align: left;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.grid2--center {
  align-items: center;
}

.grid2--tech {
  align-items: stretch;
}

.grid2--tech > .panel {
  min-height: 430px;
}

.grid2 > .panel:only-child {
  grid-column: 1 / -1;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid3 > .panel {
  min-height: 320px;
}

.panel {
  --panelPadX: 18px;
  --panelPadY: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-1);
  box-shadow: var(--shadow2);
  padding: var(--panelPadY) var(--panelPadX);
  position: relative;
  overflow: hidden;
}

.panel--compact30 {
  --panelPadY: 3px;
}

.panel::before {
  content: none;
}

/* Generic card surface (week/bring pages) */
.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 18px;
}

.panel--verteilung {
  background-image: none;
  isolation: isolate;
}

.panel--validierung {
  background-image: none;
  isolation: isolate;
}

.panel--pflichtfelder {
  background-image: none;
  isolation: isolate;
}

.panel--ausgabe {
  background-image: none;
  isolation: isolate;
}

.panel--ausgabe::before {
  opacity: 1;
  background:
    linear-gradient(
      180deg,
      rgba(7, 11, 18, 0.88) 0%,
      rgba(7, 11, 18, 0.55) 18%,
      rgba(7, 11, 18, 0) 30%
    ),
    radial-gradient(640px 260px at 0% 0%, rgba(94, 234, 212, 0.09), transparent 60%);
}

.panel--ausgabe > * {
  position: relative;
  z-index: 2;
}

.panel--ausgabe::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(7, 11, 18, 1) 0%,
      rgba(7, 11, 18, 1) 10%,
      rgba(7, 11, 18, 0) 30%
    ),
    url("../assets/img/output.png");
  background-image:
    linear-gradient(
      180deg,
      rgba(7, 11, 18, 1) 0%,
      rgba(7, 11, 18, 1) 10%,
      rgba(7, 11, 18, 0) 30%
    ),
    image-set(
      url("../assets/img/output.webp") 1x,
      url("../assets/img/output.png") 1x
    );
  background-repeat: no-repeat;
  background-position: center calc(100% + 46px);
  background-size: 100% auto;
  opacity: 1;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 1) 100%
  );
}

.panel--pflichtfelder::before {
  opacity: 1;
  background:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.60) 18%,
      rgba(248, 250, 252, 0) 34%
    ),
    radial-gradient(760px 320px at 0% 0%, rgba(37, 99, 235, 0.06), transparent 62%);
}

.panel--pflichtfelder > * {
  position: relative;
  z-index: 2;
}

.panel--pflichtfelder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.92) 14%,
      rgba(248, 250, 252, 0) 38%
    ),
    url("../assets/img/required-fields.png");
  background-image:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.92) 14%,
      rgba(248, 250, 252, 0) 38%
    ),
    image-set(
      url("../assets/img/required-fields.webp") 1x,
      url("../assets/img/required-fields.png") 1x
    );
  background-repeat: no-repeat;
  background-position: center calc(100% + 30px);
  background-size: 100% auto;
  opacity: 0.24;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.panel--validierung::before {
  opacity: 1;
  background:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.60) 18%,
      rgba(248, 250, 252, 0) 34%
    ),
    radial-gradient(760px 320px at 0% 0%, rgba(37, 99, 235, 0.06), transparent 62%);
}

.panel--validierung > * {
  position: relative;
  z-index: 2;
}

.panel--validierung::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.92) 14%,
      rgba(248, 250, 252, 0) 38%
    ),
    url("../assets/img/validation.png");
  background-image:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.92) 14%,
      rgba(248, 250, 252, 0) 38%
    ),
    image-set(
      url("../assets/img/validation.webp") 1x,
      url("../assets/img/validation.png") 1x
    );
  background-repeat: no-repeat;
  background-position: center calc(100px);
  background-size: 100% auto;
  opacity: 0.22;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.panel--versionierung {
  background-image: none;
  isolation: isolate;
}

.panel--versionierung::before {
  opacity: 1;
  background:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.60) 18%,
      rgba(248, 250, 252, 0) 34%
    ),
    radial-gradient(760px 320px at 0% 0%, rgba(37, 99, 235, 0.06), transparent 62%);
}

.panel--versionierung > * {
  position: relative;
  z-index: 2;
}

.panel--versionierung::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.92) 14%,
      rgba(248, 250, 252, 0) 38%
    ),
    url("../assets/img/versioning.png");
  background-image:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.92) 14%,
      rgba(248, 250, 252, 0) 38%
    ),
    image-set(
      url("../assets/img/versioning.webp") 1x,
      url("../assets/img/versioning.png") 1x
    );
  background-repeat: no-repeat;
  background-position: center calc(110px);
  background-size: 100% auto;
  opacity: 0.22;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.panel--verteilung::before {
  opacity: 1;
  background:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.60) 18%,
      rgba(248, 250, 252, 0) 34%
    ),
    radial-gradient(760px 320px at 0% 0%, rgba(37, 99, 235, 0.06), transparent 62%);
}

.panel--verteilung > * {
  position: relative;
  z-index: 2;
}

.panel--verteilung::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.92) 14%,
      rgba(248, 250, 252, 0) 38%
    ),
    url("../assets/img/distribution.png");
  background-image:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.92) 14%,
      rgba(248, 250, 252, 0) 38%
    ),
    image-set(
      url("../assets/img/distribution.webp") 1x,
      url("../assets/img/distribution.png") 1x
    );
  background-repeat: no-repeat;
  background-position: center calc(90px);
  background-size: 100% auto;
  opacity: 0.22;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

/* SOLUTION section: balanced cards with explicit media zone */
#solution .grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

#solution .grid3 > .panel {
  min-height: 0;
}

@media (max-width: 980px) {
  #solution .grid3 {
    grid-template-columns: 1fr;
  }
}

#solution .panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 22px;
}

#solution .panel p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

/* Disable old pseudo background screenshots in Solution cards */
#solution .panel.panel--validierung::after,
#solution .panel.panel--versionierung::after,
#solution .panel.panel--verteilung::after {
  content: none;
}

/* Subtle category stripe (reuses existing tokens, no new hard-coded colors) */
#solution .panel.panel--validierung::before,
#solution .panel.panel--versionierung::before,
#solution .panel.panel--verteilung::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  z-index: 0;
}

#solution .panel.panel--validierung::before {
  background: var(--brand-blue-500);
  opacity: 0.18;
}

#solution .panel.panel--versionierung::before {
  background: var(--ok);
  opacity: 0.14;
}

#solution .panel.panel--verteilung::before {
  background: var(--warn);
  opacity: 0.14;
}

/* Ensure card contents sit above stripe */
#solution .panel > * {
  position: relative;
  z-index: 1;
}

#solution .solutionMedia {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow2);
  margin-top: auto;
}

#solution .solutionMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.06) 45%,
    rgba(0, 0, 0, 0.03)
  );
  pointer-events: none;
}

#solution .solutionMedia picture {
  width: 100%;
  height: 100%;
  display: block;
}

#solution .solutionMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}

#solution .featureList {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#solution .featureList li {
  line-height: 1.35;
}

/* TECH section: balanced panels with explicit media zone */
#tech .grid2--tech {
  gap: 18px;
  align-items: stretch;
}

#tech .panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  position: relative;
}

#tech .panel p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

/* Disable old pseudo screenshot backgrounds in Tech tiles */
#tech .panel.panel--pflichtfelder::before,
#tech .panel.panel--pflichtfelder::after,
#tech .panel.panel--ausgabe::before,
#tech .panel.panel--ausgabe::after {
  content: none;
}

/* Optional subtle category stripe (kept corporate and quiet) */
#tech .panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: var(--brand-blue-500);
  opacity: 0.16;
}

#tech .panel--ausgabe::before {
  opacity: 0.10;
}

#tech .techMedia {
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-1);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow2);
  position: relative;
}

#tech .techMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.08) 55%,
    rgba(0, 0, 0, 0.02)
  );
  pointer-events: none;
}

#tech .techMedia picture {
  width: 100%;
  height: 100%;
  display: block;
}

#tech .techMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.03) brightness(1.05);
}

.panel--validierung .featureList,
.panel--versionierung .featureList,
.panel--verteilung .featureList {
  margin-top: clamp(120px, 16vw, 190px);
}

.panel > * {
  position: relative;
}

.featureList {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.featureList li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.tick {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  margin-top: 2px;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--line));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
}

.tick.tick--bad {
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--line));
}

.tick.tick--bad::before,
.tick.tick--bad::after {
  background: var(--danger);
}

.tick::before,
.tick::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--danger);
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.tick::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.tick::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.tick.tick--ok {
  background: var(--ok-soft);
  border: 1px solid color-mix(in srgb, var(--ok) 28%, var(--line));
}

.tick.tick--ok::before,
.tick.tick--ok::after {
  background: var(--ok);
}

.tick.tick--ok::before {
  width: 6px;
  transform: translate(-88%, -5%) rotate(45deg);
}

.tick.tick--ok::after {
  width: 11px;
  transform: translate(-34%, -28%) rotate(-45deg);
}

.tick svg {
  width: 12px;
  height: 12px;
  display: none;
}

.callout {
  border-left: 2px solid rgba(37, 99, 235, 0.45);
  padding-left: 14px;
  margin-top: 12px;
}

.diagramWrap {
  display: flex;
  justify-content: center;
}

.diagram {
  width: 100%;
  max-width: 980px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  box-shadow: var(--shadow2);
  padding: 16px;
}

.diagram--workflow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.diagram--workflow .featureList {
  margin-top: clamp(260px, 22vw, 340px);
}



.diagram--workflow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/workflow.png");
  background-image: image-set(
    url("../assets/img/workflow.webp") 1x,
    url("../assets/img/workflow.png") 1x
  );
  background-repeat: no-repeat;
  background-position: center calc(16px - 185px);
  background-size: 100% auto;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.diagram--workflow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0) 0%,
    rgba(248, 250, 252, 0.88) 78%,
    rgba(248, 250, 252, 0.92) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.diagram--workflow > * {
  position: relative;
  z-index: 2;
}

.diagramTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 10px;
}

/* WORKFLOW section: convert diagram to a light explainer */
#workflow .diagramWrap {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow2);
}

#workflow .diagram {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#workflow .diagramTitle {
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0;
}

#workflow .diagramTitle .small {
  color: var(--muted);
}

/* Workflow graphic: framed footer image (no dark hero / no overlay gradients) */
#workflow .diagram--workflow {
  --wfMediaH: clamp(180px, 22vw, 260px);
  min-height: 0;
  padding: 16px;
  padding-bottom: calc(16px + var(--wfMediaH) + 14px);
}

#workflow .diagram--workflow .featureList {
  margin-top: 0;
}

#workflow .diagram--workflow::before {
  content: none;
}

#workflow .diagram--workflow::after {
  inset: auto 16px 16px 16px;
  height: var(--wfMediaH);
  border-radius: 14px;
  border: 1px solid var(--line);
  background-color: var(--surface-1);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow2);
  filter: brightness(1.12) saturate(0.9);
  opacity: 0.85;
}

/* Steps: show process (1-2-3) instead of generic benefits */
#workflow .diagram--workflow .featureList {
  counter-reset: wfStep;
}

#workflow .diagram--workflow .featureList .tick {
  display: none;
}

#workflow .diagram--workflow .featureList li {
  position: relative;
  padding-left: 32px;
}

#workflow .diagram--workflow .featureList li::before {
  counter-increment: wfStep;
  content: counter(wfStep);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  color: var(--brand-blue-500);
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Callout: clarity, not alarm */
#workflow .callout {
  background: color-mix(in srgb, var(--bg0) 78%, var(--surface-1));
  border-left: 3px solid var(--brand-blue-500);
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--muted);
}

.panelImage {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  opacity: 1;
}

.panelImage--bleedFadeTop {
  width: calc(100% + var(--panelPadX) + var(--panelPadX));
  margin-left: calc(0px - var(--panelPadX));
  margin-right: calc(0px - var(--panelPadX));
  margin-bottom: calc(0px - var(--panelPadY));
  border-radius: 0 0 var(--radius) var(--radius);
  border: 0;
  /* Keep same 4-side fade, but a touch stronger for wide bleed images. */
  --imgFadeEdge: 10%;
}

/* PROBLEM section: content left, smaller graphic right (reduces card height). */
#problem .panel--compact30,
#connectivity .panel--compact30 {
  --panelPadY: 16px;
}

#problem .problemCard,
#connectivity .problemCard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

#problem .problemCardTop,
#connectivity .problemCardTop {
  min-width: 0;
  padding-bottom: 6px;
}

#problem .problemCardBottom,
#connectivity .problemCardBottom {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  align-items: start;
}

#problem .problemCardBottom > .featureList,
#connectivity .problemCardBottom > .featureList {
  min-width: 0;
}

#problem .problemCardMedia {
  position: relative;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-1);
  box-shadow: var(--shadow2);
  aspect-ratio: 3 / 2;
}

#problem .problemCardMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0) 45%,
    rgba(0, 0, 0, 0.03)
  );
  pointer-events: none;
}

#problem .problemCardMedia picture {
  width: 100%;
  height: 100%;
  display: block;
}

#problem .problemCardMedia .panelImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 0;
  border-radius: 0;

  /* In this tile, keep images crisp (no edge fade). */
  -webkit-mask-image: none;
  mask-image: none;
  -webkit-mask-composite: initial;
  mask-composite: initial;

  filter: saturate(0.95) contrast(1.02);
}

#problem .grid2 {
  align-items: stretch;
}

#problem .grid2 .panel {
  height: 100%;
}

@media (max-width: 860px) {
  #problem .problemCardBottom,
  #connectivity .problemCardBottom {
    grid-template-columns: 1fr;
  }
}

.logoWall{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px 18px;
  align-items:center;
  margin-top:14px;
  opacity:.95;
}

.logoWall .logoLink{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width: 0;
  height: 38px;
  padding: 6px 8px;
  overflow: hidden;
  text-decoration:none;
  color:inherit;
  line-height:0;
  border-radius: 10px;
}

.logoWall .logoLink:focus-visible{
  outline:none;
  box-shadow: var(--focus);
}
.logoWall img{
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter:none;
  opacity:.95;
  transition:opacity .2s ease, transform .2s ease;
}
.logoWall img:hover{
  opacity:1;
  transform:translateY(-1px);
}
@media (max-width: 900px){
  .logoWall{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width: 520px){
  .logoWall{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .logoWall .logoLink{ height: 34px; }
}

#connectivity .problemCardBottom--logos {
  grid-template-columns: 1fr;
}

#connectivity .intervalsLogoWrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-1);
  box-shadow: var(--shadow2);
  aspect-ratio: 3 / 2;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#connectivity .intervalsLogoWrap .logoLink{
  display:flex;
  width: 100%;
  height: 100%;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:inherit;
  line-height:0;
  border-radius: 12px;
}

#connectivity .intervalsLogoWrap .logoLink:focus-visible{
  outline:none;
  box-shadow: var(--focus);
}

#connectivity .intervalsLogo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.small {
  font-size: 13px;
  color: var(--muted2);
}

.tooltip {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
  background: rgba(10, 14, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow2);
  max-width: 320px;
}

.tooltip .t {
  font-weight: 900;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.tooltip .d {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.gptList {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

/* GPTs section: card grid links */
#gpts .panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#gpts .panel .small {
  color: var(--muted);
  margin: 0;
  max-width: 80ch;
}

#gpts .gptMedia {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;

  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    var(--surface-1),
    color-mix(in srgb, var(--surface-1) 92%, var(--brand-blue-500))
  );

  box-shadow: var(--shadow2);
  margin-bottom: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

#gpts .gptMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.05) 55%,
    rgba(0, 0, 0, 0.04)
  );
}

#gpts .gptMedia img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  /* sehr wichtig für transparente PNGs */
  filter: saturate(0.98) contrast(1.02);
}

#gpts .gptGrid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  #gpts .gptGrid {
    grid-template-columns: 1fr;
  }
}

#gpts .gptCard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  text-decoration: none;
  box-shadow: var(--shadow2);
  color: var(--fg);
}

#gpts .gptCard:hover {
  background: var(--primary-soft);
}

#gpts .gptCard:hover .gptMedia {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

#gpts .gptCard:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

#gpts .gptIcon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.08);
  font-size: 20px;
}

#gpts .gptTitle {
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

#gpts .gptDesc {
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 6px;
}

#gpts .gptCta {
  margin-top: auto;
  font-weight: 700;
  color: var(--brand-blue-500);
}

.gptRow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.gptLeft {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.gptIcon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(94, 234, 212, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  flex: 0 0 auto;
}

.gptIcon svg {
  width: 20px;
  height: 20px;
  opacity: 0.92;
}

.gptText {
  min-width: 0;
}

.gptName {
  font-weight: 950;
  letter-spacing: -0.2px;
}

.gptDesc {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 2px;
}





/* Download section: embed media + OS download tiles */
#download .panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#download .downloadMedia {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-1);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow2);
  position: relative;
}

#download .downloadMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.1) 55%,
    rgba(0, 0, 0, 0.02)
  );
  pointer-events: none;
}

#download .downloadMedia picture {
  width: 100%;
  height: 100%;
  display: block;
}

#download .downloadMedia .downloadGraphic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.03) brightness(1.05);
}

#download .downloadActions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  #download .downloadActions {
    grid-template-columns: 1fr;
  }
}

#download .dlBtn {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  cursor: pointer;
  box-shadow: var(--shadow2);
  text-decoration: none;
  color: var(--fg);
  text-align: center;
}

#download .dlBtn:hover {
  background: var(--primary-soft);
}

#download .dlBtn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

#download .dlText {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

#download .dlTitle {
  display: block;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
}

#download .dlNote {
  margin-top: 6px;
  color: var(--muted);
}

/* =========================
   Disclaimer / Legal
   ========================= */

.panel--legal {
  background: var(--surface-1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

.panel--legal p {
  color: var(--fg);
}

.panel--legal .small {
  color: var(--muted2);
}

.panel--legalLead {
  background: linear-gradient(
    180deg,
    var(--primary-soft),
    var(--surface-1)
  );
  border-left: 4px solid var(--brand-blue-500);
}

.panel--legalLead strong {
  font-weight: 600;
}

.panel--legalSection {
  position: relative;
  padding-left: 22px;
}

.panel--legalSection::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: var(--brand-blue-500);
  opacity: 0.18;
}

.panel--legalSection:hover {
  background: color-mix(
    in srgb,
    var(--surface-1) 94%,
    var(--brand-blue-500)
  );
}

.panel--legalConfirm {
  background: linear-gradient(
    180deg,
    var(--surface-1),
    var(--bg0)
  );
  border-left: 4px solid var(--ok);
}

.panel--legalConfirm .h3 {
  color: var(--fg);
}

/* =========================
   Legal pages (Datenschutz, Impressum, Disclaimer)
   ========================= */

.legalPage .sectionHead {
  margin-bottom: 18px;
}

.legalPaper {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  padding: 22px;
}

@media (min-width: 900px) {
  .legalPaper {
    padding: 28px;
  }
}

.legalToc {
  display: grid;
  gap: 10px;
}

.legalTocList {
  margin: 0;
  padding-left: 20px;
  color: var(--muted2);
}

.legalTocList a {
  color: var(--brand-blue-500);
  text-decoration: none;
}

.legalTocList a:hover {
  text-decoration: underline;
}

.legalDivider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.legalContent {
  display: grid;
  gap: 18px;
}

.legalSection {
  scroll-margin-top: 90px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.legalSection:last-child {
  border-bottom: 0;
}

.legalH3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px 0;
}

.legalSection p {
  color: var(--fg);
  margin: 8px 0;
}

.legalSection .featureList {
  margin-top: 10px;
}

.downloadGrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

/* Download-List Items (falls du die im Disclaimer nutzt) */
.dlItem {
  border: 1px solid var(--line);
  background: var(--surface-1);
}

/* OS Tag: light pill */
.osTag {
  border: 1px solid var(--line);
  background: var(--primary-soft);
  color: var(--fg);
}

/* Warn / Danger: über Tokens */
.warnBox {
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line));
  background: var(--warn-soft);
  color: var(--fg);
}

.dangerBox {
  border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line));
  background: var(--danger-soft);
  color: var(--fg);
}

.dlActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

footer {
  padding: 26px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 18, 0.25);
}

.footGrid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footLinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footLinks a {
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
}

.footLinks a:hover {
  background: transparent;
  color: var(--fg);
  text-decoration: underline;
}

.footBrand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footSocial {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footSocialLink {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.footSocialLink:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  transform: translateY(-1px);
}

.footSocialLink:active {
  transform: translateY(0);
}

.footSocialLink:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.footSocialIcon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.progressRail {
  position: fixed;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 60;
}

.progressBar {
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.12),
    0 6px 20px rgba(94, 234, 212, 0.1);
}

.modalBack {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 80;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.modalBack[aria-hidden="false"] {
  display: flex;
}

/* Modal selbst: helles Paper */
.modal {
  width: min(720px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--fg);
  box-shadow: var(--shadow2);
}

/* Kopfzeile: keine Dark-Border */
.modalHead {
  border-bottom: 1px solid var(--line);
}

.modalTitle {
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.2px;
}

/* Close Button: light */
.closeBtn {
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--fg);
}

.closeBtn:hover {
  background: var(--primary-soft);
}

/* Body Text: nicht muted auf dunkel, sondern sauber lesbar */
.modalBody {
  color: var(--fg);
}

/* Checkbox-Reihe: light card */
.checkRow {
  border: 1px solid var(--line);
  background: var(--surface-1);
}

/* Accent passt zum Brand-Blue */
.checkRow input {
  accent-color: var(--brand-blue-500);
}

/* Actions Border: light */
.modalActions {
  border-top: 1px solid var(--line);
}


.disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

@media (max-width: 980px) {
  .heroGrid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .logoWall{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .splashImg {
    height: 300px;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
  }

  .navlinks {
    display: flex;
    flex: 1 1 100%;
    order: 3;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 6px 0 2px;
    scroll-snap-type: x proximity;
  }

  .navlinks::-webkit-scrollbar {
    display: none;
  }

  .navlinks a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 8px 10px;
  }

  .navActions {
    order: 2;
    margin-left: auto;
  }

  .sectionHead {
    flex-direction: column;
    align-items: flex-start;
  }

  .sectionHead .hint {
    text-align: left;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .panel--validierung .featureList,
  .panel--versionierung .featureList,
  .panel--verteilung .featureList {
    margin-top: clamp(90px, 18vw, 140px);
  }

  .grid3 {
    grid-template-columns: 1fr;
  }

  .downloadGrid {
    grid-template-columns: 1fr;
  }

  .diagram--workflow {
    min-height: 500px;
  }

  .diagram--workflow .featureList {
    margin-top: clamp(210px, 34vw, 280px);
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 64px 0;
  }

  .nav {
    padding: 10px 0;
    gap: 10px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand .sub {
    display: none;
  }

  .hero {
    padding: 5.25rem 0 4.25rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta a {
    width: 100%;
    justify-content: center;
  }

  .logoWall{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .footGrid {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* extracted from inline styles */
.navActions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.flexCenterGap12 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mt4 {
  margin-top: 4px;
}

.mt10 {
  margin-top: 10px;
}

.mt12 {
  margin-top: 12px;
}

.mt10 {
  margin-top: 10px;
}

.mt12 {
  margin-top: 12px;
}

.mt14 {
  margin-top: 14px;
}

.mt18 {
  margin-top: 18px;
}

.spacer10 {
  height: 10px;
}

.fw950 {
  font-weight: 950;
}

.diagramNarrow {
  max-width: 520px;
}

.gptIconAlt1 {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.14), rgba(251, 191, 36, 0.1));
}

.gptIconAlt2 {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(251, 113, 133, 0.1));
}

.footerLogo {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.icon18 {
  width: 18px;
  height: 18px;
}

/* =========================
   LEGAL PAGES – tighter layout
   ========================= */

.legalPage {
  padding-top: 28px;
}

.legalPage .container > section {
  padding: 18px 0;
}

.legalHead {
  margin-bottom: 24px;
}

.legalHead h1 {
  margin-top: 6px;
  margin-bottom: 8px;
}

.legalIntro {
  margin-bottom: 0;
  max-width: 60ch;
  color: var(--muted);
}

.legalPage--wide .legalIntro,
.legalPage--wide .legalText p,
.legalPage--wide .legalHighlight {
  max-width: none;
}

.legalNotice {
  margin-top: 6px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  border-radius: 14px;
  box-shadow: var(--shadow2);
  padding: 14px 16px;
}

.legalHighlight {
  margin: 0;
  max-width: 72ch;
  color: var(--fg);
  font-weight: 600;
  line-height: 1.55;
  padding-left: 12px;
  border-left: 3px solid var(--brand-blue-500);
}

.legalText h2 {
  margin: 18px 0 8px;
}

.legalText p {
  max-width: 72ch;
  margin: 8px 0;
}

.legalText h2:first-child {
  margin-top: 0;
}

.legalEmphasis {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 3px solid color-mix(in srgb, var(--warn) 55%, var(--line));
  color: var(--fg);
}

