/* ==========================================================================
   Versicherungs-Check – Onboarding Prototyp
   Design-Tokens
   ========================================================================== */
:root {
  --navy-900: #0d1f3c;
  --navy-800: #122a4e;
  --navy-700: #1a3a68;
  --blue-600: #1b4e9b;
  --blue-500: #2f6cc4;
  --blue-100: #dcebf5;
  --blue-75:  #e9f2f8;
  --blue-50:  #f2f7fb;
  --ink:      #14294e;
  --muted:    #5b7089;
  --line:     #d8e2ec;
  --bg:       #f2f4f6;
  --surface:  #ffffff;
  --green:    #1e9e4a;
  --red:      #d64541;
  --orange:   #f59300;
  --tick-sky:    #7ec2e8;
  --tick-violet: #8b8fe8;
  --tick-green:  #2fa84f;
  --tick-navy:   #14294e;
  --tick-idle:   #d9dee5;

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1400px;
  --gutter: 24px;

  --shadow-lg: 0 24px 60px -20px rgba(13, 31, 60, .18);
  --shadow-md: 0 10px 30px -12px rgba(13, 31, 60, .16);
  --shadow-sm: 0 4px 14px -6px rgba(13, 31, 60, .14);

  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.card-shadow { box-shadow: var(--shadow-lg); }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Innenkante bündig mit dem 1400px-Raster der Screens */
  padding: 14px max(var(--gutter), calc((100% - var(--container)) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand__logo { width: 38px; height: 38px; transition: transform .35s var(--ease-spring); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.06); }

.site-header__nav { display: flex; gap: 10px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 34px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out),
              background-color .18s, color .18s, border-color .18s;
  user-select: none;
}
.btn:active { transform: scale(.97); }

.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--xl { padding: 17px 44px; font-size: 16px; }
.btn--wide { min-width: 220px; }

.btn--primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0) scale(.97); }
.btn--primary:disabled {
  background: #b9c4d2;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--navy-800);
  background: var(--blue-50);
  transform: translateY(-2px);
}

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--blue-50); }

.btn--soft { background: var(--blue-100); }
.btn--soft:hover { background: var(--blue-75); transform: translateY(-1px); }

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn--light:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-lg); }

.btn--restart {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--muted);
  padding: 10px 22px;
  font-size: 14px;
}
.btn--restart:hover {
  color: var(--red);
  border-color: var(--red);
  background: #fdf1f0;
  transform: translateY(-1px);
}
.btn--restart svg { transition: transform .4s var(--ease-out); }
.btn--restart:hover svg { transform: rotate(-180deg); }

.btn__arrow { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Loading-Spinner im Button */
.btn__spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: .75; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Shake bei fehlender Auswahl */
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.shake { animation: shake .5s var(--ease-out); }

/* ==========================================================================
   Screens & Übergänge
   ========================================================================== */
#app {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.screen {
  display: none;
  animation: screenIn .45s var(--ease-out) both;
}
.screen.is-active { display: block; }
.screen.is-leaving { animation: screenOut .25s ease both; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes screenOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); }
}

/* ==========================================================================
   Startseite / Hero
   ========================================================================== */
/* Startseite bewusst statisch: keine Einblend- oder Schwebe-Animationen */
#screen-start { animation: none; }

.hero {
  display: grid;
  /* Splitscreen: linke Hälfte Text, rechte Hälfte vollflächiges Bild */
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
  min-height: 600px;
}

.hero__panel {
  padding: clamp(32px, 5vw, 68px);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero__title {
  margin: 0 0 34px;
  /* skaliert mit dem Viewport, damit die 3 Originalzeilen nie neu umbrechen */
  font-size: clamp(26px, 3.1vw, 44px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.hero__title em { font-style: italic; }
.hero__underline {
  position: relative;
  white-space: nowrap;
}
.hero__underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

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

.hero__usp {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}
@keyframes usppop {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero__usp-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.hero__usp-icon svg { width: 26px; height: 26px; color: #fff; }

.hero__cta {
  margin-top: 42px;
  min-width: 230px;
}

/* Bild füllt die rechte Hälfte vollflächig (Splitscreen) */
.hero__media {
  position: relative;
  min-height: 420px;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Schwebende Bewertungs-Karten über dem Foto */
.rating-cards {
  position: absolute;
  z-index: 2;
  left: clamp(-40px, -3vw, -16px);
  top: 50%;
  transform: translateY(-38%);
  display: grid;
  gap: 16px;
}

.rating-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 18px 40px -18px rgba(13, 31, 60, .45);
}
.rating-card--indent { transform: translateX(56px); }

.rating-card__name {
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink);
  white-space: nowrap;
}

.rating-card__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.rating-card__dashes { display: flex; gap: 3px; }
.rating-card__dashes i {
  width: 9px;
  height: 4px;
  border-radius: 2px;
  background: var(--tick-idle);
}
.rating-card__dashes--good i { background: var(--green); }
.rating-card__dashes--mid i:nth-child(-n+4) { background: var(--orange); }
.rating-card__dashes--bad i:first-child { background: var(--red); }

.rating-card__badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px;
}
.rating-card__badge--good { color: var(--green); background: #e7f6ec; }
.rating-card__badge--mid { color: var(--orange); background: #fdf3e2; }
.rating-card__badge--bad { color: var(--red); background: #fdecea; }

/* ==========================================================================
   Login (Prototyp-Zugang)
   ========================================================================== */
body.is-login .trustbar { display: none; }

.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: min(720px, calc(100vh - 160px));
  background: var(--surface);
}

.login__panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
  display: flex;
  align-items: center;
  padding: clamp(32px, 5vw, 80px);
}

/* dünne Deko-Kreise wie im Design */
.login__deco { position: absolute; inset: 0; pointer-events: none; }
.login__circle {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
}
.login__circle--1 { width: 560px; height: 640px; top: -220px; left: -60px; transform: rotate(18deg); }
.login__circle--2 { width: 420px; height: 420px; bottom: -160px; left: -140px; }
.login__circle--3 { width: 380px; height: 380px; bottom: -190px; right: -60px; }

.login__title {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -.01em;
}
.login__title em { font-style: italic; font-weight: 800; }

.login__side {
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
}

.login__card {
  width: min(100%, 440px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  gap: 16px;
}

.login__heading { margin: 0 0 6px; font-size: 26px; font-weight: 800; }

/* Feld mit Label innen (wie im Design) */
.lfield {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 14px 10px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.lfield:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47, 108, 196, .14);
}
.lfield.is-invalid { border-color: var(--red); background: #fdf6f6; }

.lfield__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1px;
}
.lfield__input {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}
.lfield__input:focus { outline: none; }
.lfield__input::placeholder { color: #a4b2c2; }

.login__error {
  margin: -4px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red);
  animation: usppop .3s var(--ease-out);
}

.login__divider { height: 1px; background: var(--line); margin: 4px 0; }

.login__submit { width: 100%; }

/* ==========================================================================
   Wizard-Card & Stepper
   ========================================================================== */
.wizard {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px) clamp(24px, 3vw, 36px);
}

.stepper {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 4px auto 38px;
  max-width: 760px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.step__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color .3s;
  transform: translateX(-38%);
  white-space: nowrap;
}
.step:first-child .step__label { transform: none; }
.step.is-current .step__label,
.step.is-done .step__label { color: var(--ink); }

.step__track {
  display: flex;
  align-items: center;
  width: 100%;
}

.step__dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-100);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color .3s, transform .3s var(--ease-spring), box-shadow .3s;
}
.step__dot svg { width: 12px; height: 12px; opacity: 0; transform: scale(0); transition: all .3s var(--ease-spring); }

.step.is-current .step__dot {
  background: var(--navy-800);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--navy-800);
  transform: scale(1.05);
}
.step.is-done .step__dot { background: var(--navy-800); }
.step.is-done .step__dot svg { opacity: 1; transform: scale(1); }

.step__line {
  flex: 1;
  height: 3px;
  margin: 0 6px;
  border-radius: 2px;
  background: var(--blue-100);
  position: relative;
  overflow: hidden;
}
.step:last-child .step__line { display: none; }
.step__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy-800);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform .7s .15s var(--ease-out);
  border-radius: 2px;
}

.wizard__title {
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

.wizard__subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 40px;
}

.wizard__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 26px;
}

/* ==========================================================================
   Auswahl-Karten (Über Sie I–III)
   ========================================================================== */
.option-grid {
  display: grid;
  gap: 18px;
  justify-content: center;
  margin: 0 auto;
  max-width: 980px;
}
.option-grid--4 { grid-template-columns: repeat(4, minmax(150px, 200px)); }
.option-grid--5 { grid-template-columns: repeat(5, minmax(140px, 175px)); }

.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 190px;
  padding: 22px 14px;
  background: var(--blue-50);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out),
              background-color .25s, border-color .25s, color .25s;
  animation: cardIn .5s var(--ease-out) both;
}
.option-grid .option-card:nth-child(1) { animation-delay: .05s; }
.option-grid .option-card:nth-child(2) { animation-delay: .12s; }
.option-grid .option-card:nth-child(3) { animation-delay: .19s; }
.option-grid .option-card:nth-child(4) { animation-delay: .26s; }
.option-grid .option-card:nth-child(5) { animation-delay: .33s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
  background: #fff;
}

.option-card__icon { width: 64px; height: 64px; color: var(--ink); transition: color .25s, transform .3s var(--ease-spring); }
.option-card__icon svg { width: 100%; height: 100%; }
.option-card:hover .option-card__icon { transform: scale(1.08); }

.option-card__label { text-align: center; line-height: 1.3; }

.option-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-800);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0) rotate(-40deg);
  transition: all .35s var(--ease-spring);
}
.option-card__check svg { width: 13px; height: 13px; }

.option-card.is-selected {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.option-card.is-selected .option-card__icon { color: #fff; }
.option-card.is-selected .option-card__check { opacity: 1; transform: scale(1) rotate(0deg); }

/* ==========================================================================
   Versicherungs-Chips
   ========================================================================== */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1010px;
  margin: 0 auto;
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s,
              background-color .25s, border-color .25s, color .25s;
  animation: cardIn .45s var(--ease-out) both;
}
.chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--blue-500);
}

.chip__icon { width: 30px; height: 30px; flex: 0 0 auto; color: var(--ink); transition: color .25s; }
.chip__icon svg { width: 100%; height: 100%; }

.chip__label { flex: 1; text-align: left; line-height: 1.25; }

.chip__state {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all .3s var(--ease-spring);
  position: relative;
}
.chip__state .icon-plus,
.chip__state .icon-check {
  position: absolute;
  width: 13px;
  height: 13px;
  transition: all .3s var(--ease-spring);
}
.chip__state .icon-check { opacity: 0; transform: scale(0) rotate(-40deg); }

.chip.is-selected {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.chip.is-selected .chip__icon { color: #fff; }
.chip.is-selected .chip__state { background: #fff; border-color: #fff; color: var(--navy-800); }
.chip.is-selected .chip__state .icon-plus { opacity: 0; transform: scale(0) rotate(90deg); }
.chip.is-selected .chip__state .icon-check { opacity: 1; transform: scale(1) rotate(0); }

.chip--more {
  border-style: dashed;
  background: transparent;
  color: var(--ink);
  justify-content: center;
}
.chip--more:hover { background: var(--blue-50); }

/* ==========================================================================
   Erste Einschätzung
   ========================================================================== */
.analysis {
  background: var(--blue-50);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 32px);
  max-width: 1010px;
  margin: 0 auto;
}

.analysis__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.analysis__title { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.analysis__note { margin: 0; color: var(--muted); font-size: 14.5px; }

.analysis__layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.score-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 30px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  animation: cardIn .5s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

.score-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.score-card__title { font-size: 20px; font-weight: 800; }
.score-card__badge { width: 32px; height: 32px; opacity: .9; }
.score-card__badge svg { width: 100%; height: 100%; }

.score-card__label { font-size: 13px; opacity: .75; }
.score-card__value { font-size: 52px; font-weight: 800; line-height: 1.05; }
.score-card__value small { font-size: 22px; font-weight: 600; opacity: .8; margin-left: 4px; }

/* Skala sitzt unten in der Kachel */
.score-card .tickbar--score { margin-top: auto; padding-top: 26px; }

/* Empfehlungs-Vorschau rechts neben dem Score */
.preview-recos {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.preview-reco {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  animation: cardIn .5s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

.preview-reco__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-75);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.preview-reco__icon svg { width: 20px; height: 20px; }

.preview-reco__content { flex: 1; min-width: 0; }
.preview-reco__name { margin: 0 0 2px; font-size: 15px; font-weight: 800; }
.preview-reco__text { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }

.preview-reco__badge {
  flex: 0 0 auto;
  align-self: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.preview-reco__badge--high { color: var(--orange); background: #fdf3e2; }
.preview-reco__badge--mid { color: var(--muted); background: var(--blue-50); border: 1px solid var(--line); }

/* Dritte Karte als Teaser ausgeblendet – volle Analyse erst mit Konto */
.preview-reco--teaser {
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 82%);
  pointer-events: none;
}

/* Tick-Bars (vertikale Striche) */
.tickbar {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
}
.tickbar span {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: var(--tick-idle);
  height: 60%;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: tickIn .4s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 18ms);
}
.tickbar span.is-on { height: 100%; }
@keyframes tickIn { to { transform: scaleY(1); } }

/* Score-Skala: gleichmäßig dünne Striche, hellere End-Caps links/rechts */
.tickbar--score { height: 48px; gap: 4px; }
.tickbar--score span { background: rgba(255, 255, 255, .22); height: 74%; }
.tickbar--score span.is-on { background: var(--c, #7ec2e8); height: 74%; }
.tickbar--score span.is-cap { height: 100%; background: rgba(255, 255, 255, .85); }
.tickbar--score span.is-cap--end { background: rgba(255, 255, 255, .4); }

/* ==========================================================================
   Konto anlegen
   ========================================================================== */
.account {
  display: grid;
  grid-template-columns: minmax(260px, 330px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  max-width: 1010px;
  margin: 0 auto;
  align-items: start;
}

.benefits {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
}
.benefits__img { width: 100%; height: 260px; object-fit: cover; object-position: top; }

.benefits__panel { padding: 26px 24px 30px; color: #fff; }
.benefits__title { margin: 0 0 18px; font-size: 20px; font-weight: 800; }

.benefits__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.benefits__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; }

.benefits__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
}
.benefits__icon svg { width: 18px; height: 18px; color: #fff; }

/* Formular */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: flex; flex-direction: column; position: relative; }

.field__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.field__optional { font-weight: 400; opacity: .8; }

.field__input {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  width: 100%;
}
.field__input::placeholder { color: #a4b2c2; }
.field__input:hover { border-color: #b6c4d4; }
.field__input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47, 108, 196, .14);
}

.field__error {
  display: none;
  font-size: 12.5px;
  color: var(--red);
  margin-top: 5px;
}
.field.is-invalid .field__input { border-color: var(--red); background: #fdf6f6; }
.field.is-invalid .field__error { display: block; animation: usppop .3s var(--ease-out); }
.field.is-valid .field__input { border-color: var(--green); }

.field__password { position: relative; }
.field__eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  transition: background-color .2s, color .2s;
}
.field__eye:hover { background: var(--blue-50); color: var(--ink); }
.field__eye svg { width: 21px; height: 21px; position: absolute; transition: opacity .2s, transform .2s; }
.field__eye .eye-closed { opacity: 1; }
.field__eye .eye-open { opacity: 0; transform: scale(.7); }
.field__eye[aria-pressed="true"] .eye-closed { opacity: 0; transform: scale(.7); }
.field__eye[aria-pressed="true"] .eye-open { opacity: 1; transform: scale(1); }

/* Passwortstärke */
.pwmeter { animation: usppop .35s var(--ease-out); }
.pwmeter__label { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.pwmeter__label strong { transition: color .3s; }
.pwmeter[data-level="1"] .pwmeter__label strong { color: var(--red); }
.pwmeter[data-level="2"] .pwmeter__label strong { color: var(--orange); }
.pwmeter[data-level="3"] .pwmeter__label strong { color: #c8a400; }
.pwmeter[data-level="4"] .pwmeter__label strong { color: var(--green); }

.pwmeter__bar { display: flex; gap: 8px; margin-bottom: 12px; }
.pwmeter__bar span {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--tick-idle);
  transition: background-color .35s;
}
.pwmeter[data-level="1"] .pwmeter__bar span:nth-child(-n+1) { background: var(--red); }
.pwmeter[data-level="2"] .pwmeter__bar span:nth-child(-n+2) { background: var(--orange); }
.pwmeter[data-level="3"] .pwmeter__bar span:nth-child(-n+3) { background: #d4b400; }
.pwmeter[data-level="4"] .pwmeter__bar span:nth-child(-n+4) { background: var(--green); }

.pwmeter__rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 20px;
}
.pwmeter__rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color .25s;
}
.pwmeter__rules li svg {
  width: 14px;
  height: 14px;
  color: var(--tick-idle);
  transition: color .25s, transform .25s var(--ease-spring);
}
.pwmeter__rules li.is-ok { color: var(--green); font-weight: 600; }
.pwmeter__rules li.is-ok svg { color: var(--green); transform: scale(1.15); }

/* Zustimmungen */
.consents {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--blue-50);
  padding: 20px 22px;
  margin: 4px 0 0;
  display: grid;
  gap: 14px;
}
.consents__title {
  font-weight: 800;
  font-size: 16px;
  padding: 0 6px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  cursor: pointer;
  line-height: 1.45;
}
.consent input { position: absolute; opacity: 0; pointer-events: none; }

.consent__box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid #b6c4d4;
  background: #fff;
  display: grid;
  place-items: center;
  color: #fff;
  transition: all .25s var(--ease-spring);
}
.consent__box svg { width: 13px; height: 13px; opacity: 0; transform: scale(0); transition: all .25s var(--ease-spring); }

.consent:hover .consent__box { border-color: var(--blue-500); }
.consent input:checked + .consent__box {
  background: var(--navy-800);
  border-color: var(--navy-800);
}
.consent input:checked + .consent__box svg { opacity: 1; transform: scale(1); }
.consent input:focus-visible + .consent__box { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.consent.is-error .consent__box { border-color: var(--red); animation: shake .4s; }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.screen--wide { max-width: none; }

.dashboard { display: grid; gap: 24px; }

.dashboard__welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 6px 4px 0;
}
.dashboard__greeting {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}

.dashboard__top {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Aufgaben-Karte */
.tasks {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tasks__title { margin: 0; font-size: 22px; font-weight: 800; }
.tasks__sub { margin: -8px 0 0; font-size: 14px; opacity: .8; }

.tasks__progress { margin-top: 6px; }
.tasks__progress-label { font-size: 13.5px; opacity: .9; }
.tasks__bar {
  margin-top: 8px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}
.tasks__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #7ec2e8, #fff);
  transition: width 1.1s .3s var(--ease-out);
}

.tasks__list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 12px; }
.tasks__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.tasks__list li.is-muted { opacity: .45; }
.tasks__dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

/* Absicherungs-Karte */
.shield {
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}
.shield__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.shield__title { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.shield__sub { margin: 0; color: var(--muted); font-size: 14.5px; }

.shield__score { text-align: right; }
.shield__score-label { display: block; font-size: 13px; color: var(--muted); }
.shield__score-value { font-size: 42px; font-weight: 800; line-height: 1; }
.shield__score-value small { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 3px; }

.shield__cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  /* Skala unten in der Kachel verankert (wie im Design) */
  margin-top: auto;
  padding-top: 34px;
}
.shield__cat-label {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.shield__cat-pct { font-size: 13px; font-weight: 700; color: var(--muted); }

/* Meine Versicherungen */
.dashboard__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.policies, .recos {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}

.policies__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.policies__title, .recos__title { margin: 0; font-size: 22px; font-weight: 800; }

.polgroup { margin-bottom: 26px; animation: cardIn .5s var(--ease-out) both; }
.polgroup:last-child { margin-bottom: 0; }

.polgroup__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.polgroup__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.polgroup__icon svg { width: 20px; height: 20px; }
.polgroup__name { font-size: 17px; font-weight: 800; flex: 1; }

.polgroup__meta { display: flex; align-items: center; gap: 10px; }
.polgroup__pct { font-weight: 800; font-size: 15px; }
.polgroup .tickbar { width: 130px; height: 18px; }

.polgroup__items {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.policy {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background-color .18s;
}
.policy:last-child { border-bottom: 0; }
.policy:hover { background: var(--blue-50); }
.policy:hover .policy__chev { transform: translateX(3px); }

.policy__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  color: var(--green);
  display: grid;
  place-items: center;
}
.policy__check svg { width: 12px; height: 12px; }

.policy__name { flex: 1; }

.policy__badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--navy-800);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.policy__badge--warn { color: var(--red); border-color: var(--red); background: #fdf4f3; }

.policy__chev { color: var(--muted); transition: transform .2s var(--ease-out); }

/* Empfehlungen */
.recos__sub { margin: 4px 0 20px; color: var(--muted); font-size: 14px; }

.reco {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: transform .18s var(--ease-out), box-shadow .18s;
  animation: cardIn .5s var(--ease-out) both;
}
.reco:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.reco__flag {
  background: var(--navy-900);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  letter-spacing: .02em;
}

.reco__body { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }

.reco__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.reco__icon svg { width: 22px; height: 22px; }

.reco__content { flex: 1; }
.reco__name { margin: 0 0 4px; font-size: 15.5px; font-weight: 800; }
.reco__text { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.reco__more {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background-color .18s;
}
.reco__more:hover { background: var(--blue-50); }
.reco__more svg { transition: transform .2s var(--ease-out); }
.reco__more:hover svg { transform: translateX(3px); }

.recos__all {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 18px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.recos__all:hover { color: var(--blue-600); }

/* ==========================================================================
   Trust-Bar
   ========================================================================== */
.trustbar {
  max-width: var(--container);
  margin: 28px auto 48px;
  padding: 22px clamp(16px, 3vw, 40px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: calc(100% - 2 * var(--gutter));
}

.trustbar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.trustbar__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: var(--line);
}

.trustbar__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-100);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.trustbar__icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 60, .5);
  backdrop-filter: blur(3px);
  animation: fadeIn .25s ease both;
}
@keyframes fadeIn { from { opacity: 0; } }

.modal__card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 36px 30px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: modalIn .35s var(--ease-spring) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue-75);
  color: var(--navy-800);
  display: grid;
  place-items: center;
}
.modal__icon svg { width: 30px; height: 30px; }

.modal__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.modal__text { margin: 0 0 26px; color: var(--muted); font-size: 15px; }

.modal__actions { display: flex; justify-content: center; gap: 12px; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  z-index: 120;
  background: var(--navy-900);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease-out);
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Confetti
   ========================================================================== */
#confetti {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

/* ==========================================================================
   Druckansicht (Analyse drucken)
   ========================================================================== */
@media print {
  body * { visibility: hidden; }
  #printArea, #printArea * { visibility: visible; }
  #printArea { position: absolute; inset: 0; box-shadow: none; }
  .no-print, .wizard__footer, .stepper { display: none !important; }
}

/* ==========================================================================
   Reduzierte Bewegung
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .option-grid--4, .option-grid--5 { grid-template-columns: repeat(2, minmax(150px, 220px)); }
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis__layout { grid-template-columns: 1fr; }
  .dashboard__top, .dashboard__main { grid-template-columns: 1fr; }
  .shield__cats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  /* Header kompakt */
  .site-header { padding: 10px 16px; }
  .brand__logo { width: 32px; height: 32px; }
  .btn--sm { padding: 8px 14px; font-size: 13px; }
  #app { padding-top: 18px; }

  /* Login mobil: Panel oben, Karte darunter */
  .login { grid-template-columns: 1fr; min-height: 0; }
  .login__panel { min-height: 240px; padding: 36px 24px; }
  .login__circle--1 { width: 360px; height: 420px; top: -180px; left: -80px; }
  .login__side { padding: 24px 16px 32px; }

  /* Hero mobil: Bild zuerst, darunter Headline, USPs und CTA */
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__panel { display: contents; }
  .hero__media { order: 1; min-height: 420px; }
  .hero__title { order: 2; margin: 28px 22px 0; }
  .hero__usps { order: 3; margin: 24px 22px 0; gap: 14px; }
  .hero__cta { order: 4; margin: 28px 22px 32px; align-self: stretch; }
  .rating-cards { left: 14px; top: 58%; gap: 12px; }
  .rating-card { padding: 11px 14px; gap: 10px; border-radius: 13px; }
  .rating-card__name { font-size: 13px; white-space: normal; }
  .rating-card--indent { transform: translateX(22px); }

  /* Wizard-Karte */
  .wizard { padding: 22px 16px 20px; border-radius: 18px; }
  .wizard__title { font-size: 22px; }
  .wizard__subtitle { font-size: 14px; margin-bottom: 26px; }
  .wizard__subtitle br { display: none; }
  .wizard__footer { flex-direction: column-reverse; margin-top: 30px; padding-top: 20px; }
  .wizard__footer .btn { width: 100%; }

  /* Stepper kompakt: nur Punkte, aktueller Schritt als Label darüber */
  .stepper { position: relative; padding-top: 28px; margin-bottom: 26px; }
  .step { position: static; } /* Label positioniert sich am Stepper, nicht am einzelnen Schritt */
  .step:last-child { flex: 0 0 auto; } /* letzter Punkt ohne Leerraum → Punktreihe mittig ausbalanciert */
  .step__label { display: none; }
  .step.is-current .step__label {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13.5px;
    white-space: nowrap;
  }

  /* Erste Einschätzung */
  .analysis { padding: 18px 14px; }
  .analysis__head { flex-direction: column; }
  /* Kacheln dürfen unter ihre Inhaltsbreite schrumpfen (sonst drückt
     die Tick-Skala die Score-Kachel aus dem Container) */
  .analysis__layout > * { min-width: 0; }
  .score-card { padding: 24px 20px; min-height: 220px; }
  .score-card__value { font-size: 44px; }
  .tickbar--score { gap: 2px; }
  .tickbar--score span { min-width: 1px; }
  /* Vorschlags-Kachel mobil als Grid: Name volle Breite, Badge in Zeile 2 */
  .preview-reco {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 8px;
    padding: 12px 14px;
  }
  .preview-reco__icon { grid-row: 1; grid-column: 1; }
  .preview-reco__content { grid-row: 1; grid-column: 2; }
  .preview-reco__badge { grid-row: 2; grid-column: 2; justify-self: start; }
  /* Lange Komposita brechen nur an den gesetzten Soft-Hyphens (Wortfugen) */
  .preview-reco__name, .reco__name, .policy__name, .chip__label, .option-card__label {
    hyphens: manual;
    overflow-wrap: break-word;
  }

  /* Konto anlegen */
  .account { grid-template-columns: 1fr; }
  .benefits { max-width: 420px; margin: 0 auto; }
  .benefits__img { height: 200px; }
  .form__row { grid-template-columns: 1fr; }
  .field__input { font-size: 16px; } /* verhindert Auto-Zoom beim Fokus in iOS Safari */
  .pwmeter__rules { grid-template-columns: 1fr; }
  .consents { padding: 16px; }

  /* Dashboard */
  .dashboard__welcome { flex-direction: column; align-items: stretch; }
  .btn--restart { justify-content: center; }
  .tasks, .shield, .policies, .recos { padding: 22px 18px; border-radius: 18px; }
  .tasks .btn { width: 100%; }
  .shield__score { text-align: left; }
  .shield__score-value { font-size: 34px; }
  .shield__cats { padding-top: 26px; }
  .policies__head { align-items: flex-start; }
  /* Policy-Zeile als Grid: Name bekommt die volle Breite, Badge rutscht in Zeile 2 */
  .policy {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 12px 14px;
    row-gap: 4px;
  }
  .policy__check { grid-row: 1; grid-column: 1; }
  .policy__name { grid-row: 1; grid-column: 2; }
  .policy__chev { grid-row: 1; grid-column: 3; }
  .policy__badge {
    grid-row: 2;
    grid-column: 2 / 4;
    justify-self: start;
  }
  .polgroup__head { flex-wrap: wrap; row-gap: 8px; }
  .polgroup .tickbar { width: 100px; }
  .reco__body { flex-wrap: wrap; }
  .reco__more { margin-left: auto; }

  /* Trust-Bar */
  .trustbar { grid-template-columns: 1fr; gap: 18px; padding: 20px; margin: 20px auto 32px; }
  .trustbar__item { justify-content: flex-start; text-align: left; }
  .trustbar__item br { display: none; }
  .trustbar__item:not(:last-child)::after { display: none; }
}

@media (max-width: 520px) {
  .option-grid--4, .option-grid--5 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .option-card { min-height: 140px; padding: 16px 10px; gap: 12px; }
  .option-card__icon { width: 44px; height: 44px; }
  .option-card__label { font-size: 13.5px; }
  .chip-grid { grid-template-columns: 1fr; gap: 10px; }
  .chip { padding: 13px 14px; }
  .shield__cats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .dashboard__greeting { font-size: 22px; }
  .modal__card { padding: 26px 20px 22px; }
  .modal__actions { flex-direction: column-reverse; }
  .modal__actions .btn { width: 100%; }
  .toast { bottom: 16px; font-size: 13.5px; }
}
