/* =========================================================================
   Branchensoftware-Vergleich – Stylesheet
   Farbwelt und Designsprache übernommen von joviva.de
   (Primär #004052, Mint #15db80, Eisblau #31ccff, Schrift Lato,
    Radien 8/12/16/24px, weiche Karten-Schatten, viel Weißraum)
   ========================================================================= */

/* ------------------------------------------------------------------ Fonts */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-900-latin.woff2') format('woff2');
}

/* ------------------------------------------------------------- Design-Tokens */
:root {
  /* joviva-Palette */
  --petrol:        #004052;
  --petrol-dark:   #002b38;
  --petrol-soft:   #0a5468;
  --mint:          #15db80;
  --mint-dark:     #009e3e;
  --mint-50:       #d0f8e6;
  --ice:           #31ccff;
  --ice-50:        #d6f5ff;
  --coral:         #ff4e4d;
  --coral-dark:    #c8202f;
  --sun:           #ffc933;
  --sun-50:        #fff4d6;
  --lavender:      #a35cff;
  --lavender-50:   #f5ebff;

  --grey-900: #1f1f1f;
  --grey-700: #3e3e3e;
  --grey-600: #6a6a6a;
  --grey-500: #818181;
  --grey-400: #b1b1b1;
  --grey-300: #d3d3d3;
  --grey-200: #e6e6e6;
  --grey-100: #f0f0f0;
  --grey-50:  #fafafa;
  --white:    #ffffff;

  /* Rollen */
  --bg:            #fafafa;
  --bg-elevated:   #ffffff;
  --text:          var(--grey-900);
  --text-muted:    var(--grey-600);
  --text-subtle:   var(--grey-500);
  --border:        var(--grey-200);
  --border-strong: var(--grey-300);
  --brand:         var(--petrol);
  --accent:        var(--mint);

  /* Radien */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Schatten */
  --shadow-card:  0 4px 12px 0 rgba(211, 211, 211, 0.28);
  --shadow-hover: 0 10px 28px -8px rgba(0, 64, 82, 0.18);
  --shadow-btn:   0 4px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-top:   0 0 8px 0 rgba(0, 0, 0, 0.08);

  /* Abstände */
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap:    20px;
  --gap-md: 28px;
  --gap-lg: 48px;
  --gap-xl: 80px;

  --maxw: 1120px;
  --maxw-narrow: 760px;
}

/* -------------------------------------------------------------- Grundlagen */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  color: var(--petrol);
  font-weight: 900;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--petrol); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--mint-dark); }

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

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--gap-md) 0;
}

:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--petrol);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ Layout */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--narrow { max-width: var(--maxw-narrow); }
.wrap--wide   { max-width: 1400px; }

.section { padding: var(--gap-lg) 0; }
.section--tight { padding: var(--gap-md) 0; }

.stack > * + * { margin-top: var(--gap); }
.stack-sm > * + * { margin-top: var(--gap-sm); }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-small  { font-size: 0.9rem; }
.text-xs     { font-size: 0.8rem; }
.mono        { font-variant-numeric: tabular-nums; }
.nowrap      { white-space: nowrap; }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--petrol);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--petrol) 0%, var(--petrol-soft) 60%, var(--mint) 160%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  flex: none;
}
.site-header__meta {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* ------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 82% -10%, var(--ice-50) 0%, rgba(214, 245, 255, 0) 62%),
    radial-gradient(760px 420px at 8% 108%, var(--mint-50) 0%, rgba(208, 248, 230, 0) 60%),
    var(--white);
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint-50);
  color: var(--mint-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--gap);
}
.hero h1 { max-width: 16ch; }
.hero__sub {
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  color: var(--petrol-soft);
  font-weight: 700;
  max-width: 40ch;
  margin-bottom: var(--gap);
}
.hero__lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 58ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-sm) var(--gap);
  margin-top: var(--gap-md);
}
.hero__note {
  font-size: 0.92rem;
  color: var(--text-subtle);
}

/* ----------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--petrol);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn--accent { --btn-bg: var(--mint); --btn-fg: #00301c; }
.btn--accent:hover { --btn-bg: #12c473; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--petrol);
  border-color: var(--border-strong);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--petrol); background: var(--white); }
.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--text-muted);
  box-shadow: none;
  min-height: 44px;
  padding: 8px 14px;
  font-weight: 700;
}
.btn--quiet:hover { --btn-fg: var(--petrol); background: var(--grey-100); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn--danger { --btn-bg: var(--coral-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  align-items: center;
}
.btn-row--split { justify-content: space-between; }

/* ------------------------------------------------------------------- Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}
.card--flat { box-shadow: none; }
.card--tight { padding: 18px 20px; }
.card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.card__icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--ice-50);
  color: var(--petrol);
  font-weight: 900;
  flex: none;
}

.feature-card h3 { margin-bottom: 6px; }
.feature-card p { color: var(--text-muted); font-size: 0.97rem; }

/* -------------------------------------------------------------- Steps/Flow */
.steps {
  display: grid;
  gap: var(--gap);
  counter-reset: step;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding-top: 12px;
}
.step__num {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: var(--petrol);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 900;
  margin-bottom: 12px;
}
.step h4 { margin-bottom: 4px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ----------------------------------------------------------------- Formular */
.field { margin-bottom: var(--gap); }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--petrol);
  margin-bottom: 7px;
}
.label .req { color: var(--coral-dark); }
.hint {
  display: block;
  font-size: 0.86rem;
  color: var(--text-subtle);
  margin-top: 6px;
}

.input, .textarea, .select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 13px 15px;
  min-height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--grey-400); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 4px rgba(0, 64, 82, 0.09);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 78, 77, 0.10);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23004052' d='M3 6l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.field-error {
  display: block;
  color: var(--coral-dark);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 6px;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.97rem;
  line-height: 1.5;
}
.checkbox input[type="checkbox"] {
  appearance: none;
  flex: none;
  width: 26px; height: 26px;
  margin-top: 1px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.checkbox input[type="checkbox"]:checked {
  background: var(--petrol) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E") center/16px no-repeat;
  border-color: var(--petrol);
}

/* --------------------------------------------------------- Software-Auswahl */
.choice-grid { display: grid; gap: var(--gap-sm); }
@media (min-width: 760px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }

.choice {
  position: relative;
  display: block;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.choice:hover { border-color: var(--grey-400); box-shadow: var(--shadow-card); }

/* Nur dieser Bereich schaltet die Software um. Die Erfahrungsauswahl darunter
   liegt außerhalb des <label>, damit ein Klick dort die Auswahl nicht aufhebt. */
.choice__main {
  display: block;
  padding-left: 42px;
  cursor: pointer;
}
.choice input[type="checkbox"] {
  position: absolute;
  left: 20px; top: 21px;
  appearance: none;
  width: 26px; height: 26px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
}
.choice input[type="checkbox"]:checked {
  background: var(--petrol) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E") center/16px no-repeat;
  border-color: var(--petrol);
}
.choice:has(input:checked) {
  border-color: var(--petrol);
  background: linear-gradient(0deg, rgba(214,245,255,.35), rgba(214,245,255,.35)), #fff;
  box-shadow: var(--shadow-card);
}
.choice:has(input:focus-visible) { outline: 3px solid var(--ice); outline-offset: 2px; }
.choice__name { display: block; font-weight: 900; font-size: 1.15rem; color: var(--petrol); line-height: 1.3; }
.choice__meta { display: block; font-size: 0.88rem; color: var(--text-subtle); margin-top: 2px; }
.choice__done {
  display: inline-block;
  margin-right: auto;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mint-dark);
  background: var(--mint-50);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}
.choice__exp {
  margin-top: 14px;
  padding-top: 14px;
  padding-left: 42px;
  border-top: 1px dashed var(--border-strong);
  display: none;
}
.choice:has(input[type="checkbox"]:checked) .choice__exp { display: block; }

/* Ohne :has()-Unterstützung (ältere Browser) bleibt die Auswahl sichtbar,
   statt dauerhaft verborgen zu sein. */
@supports not selector(:has(*)) {
  .choice__exp { display: block; }
}
.choice__exp .label { font-size: 0.86rem; margin-bottom: 6px; }

.pill-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-radio {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.pill-radio input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}
.pill-radio span {
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 2px solid var(--border-strong);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #fff;
  transition: all .15s ease;
}
.pill-radio input:checked + span {
  border-color: var(--petrol);
  background: var(--petrol);
  color: #fff;
}
.pill-radio input:focus-visible + span { outline: 3px solid var(--ice); outline-offset: 2px; }

/* -------------------------------------------------------- Umfrage-Kopfleiste */
.survey-bar {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0 12px;
}
.survey-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}
.survey-bar__software {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--petrol);
}
.survey-bar__software small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-subtle);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.survey-bar__step { font-size: 0.9rem; color: var(--text-muted); font-weight: 700; }

.progress {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--grey-200);
  overflow: hidden;
  margin-top: 10px;
}
.progress__bar {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--petrol), var(--mint));
  transition: width .35s ease;
}

.breadcrumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.crumb {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s ease;
}
.crumb:hover { border-color: var(--grey-400); color: var(--petrol); }
.crumb--current {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
}
.crumb--done { border-color: var(--mint); color: var(--mint-dark); background: var(--mint-50); }
.crumb--done::before { content: '✓'; font-weight: 900; }
.crumb--partial::before { content: '•'; font-weight: 900; color: var(--sun); }

/* --------------------------------------------------------- Bewertungsblöcke */
.category-head {
  margin-bottom: var(--gap-md);
}
.category-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--mint-dark);
  background: var(--mint-50);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}

.scale-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.84rem;
  color: var(--text-subtle);
  padding: 14px 18px;
  background: var(--grey-50);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}
.scale-legend b { color: var(--petrol); }

.criterion {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 20px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.criterion + .criterion { margin-top: var(--gap-sm); }
.criterion[data-answered="1"] { border-color: var(--mint); background: linear-gradient(0deg, rgba(208,248,230,.22), rgba(208,248,230,.22)), #fff; }
.criterion[data-answered="skip"] { border-color: var(--grey-300); background: var(--grey-50); }

.criterion__head { margin-bottom: 14px; }
.criterion__name {
  font-weight: 900;
  font-size: 1.06rem;
  color: var(--petrol);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.criterion__code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--grey-400);
  background: var(--grey-100);
  border-radius: 5px;
  padding: 2px 7px;
}
.criterion__desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-top: 3px;
}
.criterion__weight {
  font-size: 0.78rem;
  color: var(--petrol);
  background: var(--ice-50);
  border-radius: var(--r-pill);
  padding: 2px 10px;
  font-weight: 700;
}

/* Bewertungsskala 1–5 */
.rating {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.rating__opt { position: relative; display: block; }
.rating__opt input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.rating__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 68px;
  padding: 8px 4px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-md);
  background: #fff;
  text-align: center;
  transition: all .15s ease;
  user-select: none;
}
.rating__num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--petrol);
  line-height: 1;
}
.rating__lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-subtle);
  line-height: 1.15;
  letter-spacing: .01em;
}
.rating__opt:hover .rating__box { border-color: var(--grey-400); transform: translateY(-1px); }
.rating__opt input:checked + .rating__box {
  border-color: var(--petrol);
  background: var(--petrol);
  box-shadow: var(--shadow-hover);
}
.rating__opt input:checked + .rating__box .rating__num,
.rating__opt input:checked + .rating__box .rating__lbl { color: #fff; }
.rating__opt input:focus-visible + .rating__box { outline: 3px solid var(--ice); outline-offset: 2px; }

/* Farbverlauf der Skala als dezenter Hinweis */
.rating__opt[data-v="1"] input:checked + .rating__box { background: var(--coral-dark); border-color: var(--coral-dark); }
.rating__opt[data-v="2"] input:checked + .rating__box { background: #e2683d; border-color: #e2683d; }
.rating__opt[data-v="3"] input:checked + .rating__box { background: #c99a1a; border-color: #c99a1a; }
.rating__opt[data-v="4"] input:checked + .rating__box { background: #2f9e73; border-color: #2f9e73; }
.rating__opt[data-v="5"] input:checked + .rating__box { background: var(--mint-dark); border-color: var(--mint-dark); }

.rating-skip { margin-top: 10px; }
.rating-skip__opt { position: relative; display: inline-block; }
.rating-skip__opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rating-skip__box {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 16px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #fff;
  cursor: pointer;
  transition: all .15s ease;
}
.rating-skip__opt:hover .rating-skip__box { border-color: var(--grey-400); }
.rating-skip__opt input:checked + .rating-skip__box {
  border-style: solid;
  border-color: var(--grey-500);
  background: var(--grey-100);
  color: var(--grey-700);
}
.rating-skip__opt input:focus-visible + .rating-skip__box { outline: 3px solid var(--ice); outline-offset: 2px; }

@media (max-width: 560px) {
  .rating { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .rating__box { min-height: 76px; padding: 8px 2px; }
  .rating__num { font-size: 1.5rem; }
  .rating__lbl { font-size: 0.6rem; }
  .criterion { padding: 16px 14px; }
}

/* --------------------------------------------------------------- Statusbits */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--grey-100);
  color: var(--grey-700);
  white-space: nowrap;
}
.badge--ok      { background: var(--mint-50);     color: var(--mint-dark); }
.badge--warn    { background: var(--sun-50);      color: #8a6100; }
.badge--info    { background: var(--ice-50);      color: var(--petrol); }
.badge--danger  { background: #ffe6e6;            color: var(--coral-dark); }
.badge--muted   { background: var(--grey-100);    color: var(--text-subtle); }
.badge--demo    { background: var(--lavender-50); color: #6a1fd0; }

.notice {
  border-radius: var(--r-lg);
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.96rem;
}
.notice--info    { background: var(--ice-50);   border-color: #a9e6ff; color: var(--petrol); }
.notice--ok      { background: var(--mint-50);  border-color: #8fe9c0; color: #04603a; }
.notice--warn    { background: var(--sun-50);   border-color: #ffdf8f; color: #7a5600; }
.notice--danger  { background: #ffecec;         border-color: #ffb3b3; color: var(--coral-dark); }
.notice strong { font-weight: 900; }
.notice p:last-child { margin-bottom: 0; }

.autosave {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--petrol);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.autosave.is-visible { opacity: 1; transform: translateY(0); }
.autosave.is-error { background: var(--coral-dark); }
.autosave__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--mint);
}
.autosave.is-error .autosave__dot { background: #fff; }

/* ------------------------------------------------------------------ Footer */
.site-footer {
  margin-top: var(--gap-xl);
  background: var(--petrol);
  color: rgba(255,255,255,.82);
  padding: var(--gap-lg) 0 var(--gap-md);
  font-size: 0.92rem;
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: var(--mint); }
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm) var(--gap-md);
  justify-content: space-between;
  align-items: center;
}

/* ------------------------------------------------------------- Danke-Seite */
.thanks {
  text-align: center;
  padding: clamp(40px, 8vw, 90px) 0;
}
.thanks__mark {
  width: 96px; height: 96px;
  margin: 0 auto var(--gap);
  border-radius: 50%;
  background: var(--mint-50);
  color: var(--mint-dark);
  display: grid; place-items: center;
  font-size: 44px;
  animation: pop .5s cubic-bezier(.2,.9,.3,1.3) both;
}
@keyframes pop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

/* ---------------------------------------------------------------- Animation */
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   Adminbereich
   ========================================================================= */
.admin-body { background: var(--grey-50); }

.admin-header {
  background: var(--petrol);
  color: #fff;
  position: sticky; top: 0; z-index: 60;
}
.admin-header a { color: #fff; }
.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 62px;
  flex-wrap: wrap;
}
.admin-brand {
  font-weight: 900;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.admin-nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,.78);
  transition: background-color .15s ease, color .15s ease;
}
.admin-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav a.is-active { background: #fff; color: var(--petrol); }
.admin-user { font-size: 0.85rem; color: rgba(255,255,255,.7); }

.admin-main { padding: var(--gap-md) 0 var(--gap-lg); }

.kpi-grid {
  display: grid;
  gap: var(--gap-sm);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.kpi__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--text-subtle);
}
.kpi__value {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--petrol);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.kpi__sub { font-size: 0.84rem; color: var(--text-muted); }

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.panel__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px var(--gap);
  align-items: center;
  justify-content: space-between;
}
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1.1rem; }
.panel__body { padding: 20px; }
.panel__body--flush { padding: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data th, table.data td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data thead th {
  background: var(--grey-50);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-subtle);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
table.data tbody tr:hover { background: var(--grey-50); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr.is-total td { font-weight: 900; background: var(--ice-50); }
table.data tr.is-category td { font-weight: 700; background: var(--grey-50); }
table.data td.criterion-cell { padding-left: 30px; }

.n-chip {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--grey-100);
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}
.n-chip--low  { background: #ffe6e6; color: var(--coral-dark); }
.n-chip--mid  { background: var(--sun-50); color: #8a6100; }
.n-chip--good { background: var(--mint-50); color: var(--mint-dark); }

.score-bar {
  display: inline-block;
  vertical-align: middle;
  width: 62px; height: 7px;
  border-radius: var(--r-pill);
  background: var(--grey-200);
  overflow: hidden;
  margin-left: 8px;
}
.score-bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--petrol), var(--mint));
}

.filter-bar {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
}
.filter-bar .label { font-size: 0.8rem; margin-bottom: 4px; }
.filter-bar .input, .filter-bar .select { min-height: 44px; padding: 9px 12px; font-size: 0.92rem; }

.matrix-tree { list-style: none; margin: 0; padding: 0; }
.matrix-tree > li { border-bottom: 1px solid var(--border); }
.matrix-tree > li:last-child { border-bottom: 0; }
.matrix-cat {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  padding: 14px 20px;
  background: var(--grey-50);
  font-weight: 900;
  color: var(--petrol);
}
.matrix-crit-list { list-style: none; margin: 0; padding: 0; }
.matrix-crit {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.93rem;
}
.matrix-crit code { color: var(--grey-500); font-size: 0.78rem; }
.matrix-crit .desc { color: var(--text-muted); font-size: 0.85rem; }
@media (max-width: 700px) {
  .matrix-crit { grid-template-columns: 1fr; gap: 4px; }
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(800px 420px at 80% -10%, var(--ice-50) 0%, rgba(214,245,255,0) 60%),
    radial-gradient(600px 400px at 10% 110%, var(--mint-50) 0%, rgba(208,248,230,0) 60%),
    var(--grey-50);
}
.login-card { width: 100%; max-width: 420px; }

@media print {
  .site-header, .admin-header, .site-footer, .btn, .filter-bar, .autosave { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .panel, .card { box-shadow: none; border-color: #ccc; }
}

/* ------------------------------------------------------ Mobile-Feinschliff */
@media (max-width: 700px) {
  body { font-size: 16px; }

  .site-header__meta { display: none; }
  .site-header__inner { min-height: 60px; }
  .brand { font-size: 0.98rem; }
  .brand__mark { width: 30px; height: 30px; border-radius: 9px; font-size: 0.85rem; }

  .survey-bar { top: 60px; padding: 12px 0 10px; }
  .survey-bar__software { font-size: 0.98rem; }
  .survey-bar__step { font-size: 0.82rem; }

  .breadcrumbs {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .card { border-radius: var(--r-lg); }
  .choice { padding: 16px; }
  .choice__main, .choice__exp { padding-left: 38px; }
  .choice input[type="checkbox"] { left: 16px; top: 17px; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .btn--quiet, .btn--sm { width: auto; }
  .btn-row--split { flex-direction: row; }

  .autosave { right: 12px; bottom: 12px; left: 12px; justify-content: center; }

  .admin-header__inner { min-height: 56px; padding: 10px 0; }
  .admin-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .admin-nav a { white-space: nowrap; }
  .kpi__value { font-size: 1.7rem; }
}

@media (max-width: 420px) {
  .rating__lbl { display: none; }
  .rating__box { min-height: 60px; }
  .rating__num { font-size: 1.6rem; }
  .scale-legend { font-size: 0.8rem; }
}

/* ------------------------------------------- Zweistufige Kriteriumsabfrage */
.subquestion__label {
  display: block;
  padding: 0;
  margin-bottom: 9px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.subquestion__label strong { color: var(--petrol); font-weight: 900; }

/* Wichtigkeit visuell klar von der Bewertung trennen */
.rating--importance .rating__box {
  min-height: 58px;
  border-style: dashed;
  background: var(--grey-50);
}
.rating--importance .rating__num { font-size: 1.15rem; color: var(--petrol-soft); }
.rating--importance .rating__lbl { font-size: 0.63rem; }
.rating--importance .rating__opt input:checked + .rating__box {
  border-style: solid;
  border-color: var(--ice);
  background: var(--ice-50);
  box-shadow: none;
}
.rating--importance .rating__opt input:checked + .rating__box .rating__num,
.rating--importance .rating__opt input:checked + .rating__box .rating__lbl {
  color: var(--petrol);
}

.criterion__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--petrol);
  background: var(--ice-50);
  border-radius: var(--r-pill);
  padding: 3px 11px;
}

@media (max-width: 420px) {
  .rating--importance .rating__lbl { display: none; }
  .rating--importance .rating__box { min-height: 50px; }
}

/* --------------------------------------------- Karte „Andere Software" */
.choice--other {
  border-style: dashed;
}
.choice--other:has(input[type="checkbox"]:checked) {
  border-style: solid;
}
.choice--other .choice__exp .hint { margin-top: 8px; }
