.pv-shell {
  max-width: 930px;
  margin: 24px auto;
  background: #fff;
  border: 1px solid var(--pv-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .08);
}

.pv-header {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 28px 34px;
  background: var(--pv-soft);
  border-bottom: 1px solid var(--pv-border);
}

.pv-brand {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pv-primary);
  color: #fff;
  font-size: 31px;
  line-height: 1;
  font-weight: 700;
  flex: none;
}

.pv-header__text {
  min-width: 0;
}

.pv-kicker {
  margin: 0 0 4px;
  color: var(--pv-primary);
  font-size: 18px;
  font-weight: 700;
}

.pv-header h1 {
  margin: 0;
  color: var(--pv-text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.pv-header__subtitle {
  margin: 8px 0 0;
  color: var(--pv-muted);
  font-size: 17px;
  line-height: 1.45;
}

.pv-main {
  padding: 32px;
}

.pv-card {
  border: 1px solid var(--pv-border);
  border-radius: 18px;
  padding: 28px;
  background: #fff;
}

.pv-card + .pv-card {
  margin-top: 24px;
}

.pv-build-notice {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  align-items: baseline;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--pv-border);
  border-radius: 11px;
  background: var(--pv-soft);
  color: var(--pv-muted);
  line-height: 1.45;
}

.pv-build-notice strong {
  color: var(--pv-primary-dark);
}

.pv-step {
  margin: 0 0 10px;
  color: var(--pv-muted);
  font-size: 16px;
}

.pv-question {
  margin: 0 0 12px;
  color: var(--pv-text);
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.25;
}

.pv-question--small {
  font-size: clamp(22px, 3vw, 30px);
}

.pv-help {
  font-size: 18px;
  line-height: 1.5;
  color: var(--pv-muted);
  margin: 0 0 24px;
  max-width: 66ch;
}

.pv-choice-grid {
  display: grid;
  grid-template-columns: repeat(var(--pv-columns-desktop), minmax(0, 1fr));
  gap: 16px;
}

.pv-choice-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--pv-border);
  border-radius: 14px;
  background: #fff;
}

.pv-card__icon {
  min-height: 48px;
  display: flex;
  align-items: center;
  margin-bottom: 9px;
  font-size: 38px;
  line-height: 1;
}

.pv-choice-card h3 {
  margin: 0 0 10px;
  color: var(--pv-primary-dark);
  font-size: 24px;
  line-height: 1.2;
}

.pv-choice-card p {
  margin: 0 0 20px;
  color: var(--pv-text);
  font-size: 17px;
  line-height: 1.5;
}

.pv-button {
  border: 0;
  border-radius: 11px;
  padding: 14px 20px;
  min-height: 54px;
  max-width: 100%;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pv-button--primary {
  background: var(--pv-primary);
  color: #fff;
}

.pv-button--preview {
  cursor: default;
}

.pv-app--theme-buttons .pv-button {
  background: var(--wp--preset--color--primary, var(--pv-primary));
  color: var(--wp--preset--color--base, #fff);
}

.pv-app--soft-buttons .pv-button {
  background: var(--pv-soft);
  color: var(--pv-primary-dark);
  border: 2px solid var(--pv-primary);
}

.pv-foundation ul {
  margin: 16px 0 0;
  padding-left: 23px;
  color: var(--pv-text);
  font-size: 17px;
  line-height: 1.55;
}

.pv-foundation li + li {
  margin-top: 9px;
}

.pv-notice--error {
  padding: 15px 17px;
  border-radius: 11px;
  background: #fff0f0;
  color: #8e2020;
}

.pv-app:not(.pv-app--rounded) .pv-shell,
.pv-app:not(.pv-app--rounded) .pv-card,
.pv-app:not(.pv-app--rounded) .pv-choice-card,
.pv-app:not(.pv-app--rounded) .pv-build-notice {
  border-radius: 0;
}

/* P003 – eigenes Bürgerkonto. Alle Regeln bleiben unter .pv-app gekapselt. */
.pv-account-card {
  display: block;
  margin-bottom: 24px;
  background: var(--pv-soft);
}

.pv-help--compact {
  margin-bottom: 0;
}

.pv-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.pv-button--secondary {
  background: #fff;
  color: var(--pv-primary-dark);
  border: 2px solid var(--pv-primary);
}

.pv-app .pv-button:hover,
.pv-app .pv-button:focus-visible {
  text-decoration: none;
}

.pv-app .pv-button--primary:hover,
.pv-app .pv-button--primary:focus-visible {
  background: var(--pv-primary-dark);
  color: #fff;
}

.pv-app .pv-button--secondary:hover,
.pv-app .pv-button--secondary:focus-visible {
  background: var(--pv-soft);
  color: var(--pv-primary-dark);
}

.pv-auth-card {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.pv-form {
  display: grid;
  gap: 18px;
}

.pv-field {
  display: grid;
  gap: 7px;
}

.pv-field label,
.pv-checkline {
  color: var(--pv-text);
  font-size: 17px;
  font-weight: 700;
}

.pv-app .pv-field input[type="text"],
.pv-app .pv-field input[type="email"],
.pv-app .pv-field input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  background: #fff;
  color: var(--pv-text);
  font: inherit;
  font-size: 17px;
  line-height: 1.35;
}

.pv-app .pv-field input:focus-visible,
.pv-app .pv-checkline input:focus-visible,
.pv-app .pv-button:focus-visible,
.pv-app a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pv-primary) 55%, white);
  outline-offset: 2px;
}

.pv-field__help {
  margin: 0;
  color: var(--pv-muted);
  font-size: 15px;
  line-height: 1.45;
}

.pv-checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.pv-checkline input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
}

.pv-notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 11px;
  line-height: 1.5;
}

.pv-notice ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.pv-notice--success {
  border: 1px solid #98c7a3;
  background: #f0faf2;
  color: #245c31;
}

.pv-notice--info {
  border: 1px solid var(--pv-border);
  background: var(--pv-soft);
  color: var(--pv-text);
}

.pv-notice--dev {
  border: 1px dashed var(--pv-primary);
  background: #fffbe8;
  color: var(--pv-text);
}

.pv-auth-links {
  margin: 20px 0 0;
  line-height: 1.8;
}

.pv-auth-links a,
.pv-notice a {
  color: var(--pv-primary-dark);
  font-weight: 700;
}

.pv-inline-form {
  margin: 0;
  flex: none;
}

/* P003.1 – gut sichtbare, barrierearme Passwort-Anzeige. */
.pv-app .pv-password-wrap {
  position: relative;
  width: 100%;
}

.pv-app .pv-password-wrap input[type="password"],
.pv-app .pv-password-wrap input[type="text"] {
  width: 100%;
  padding-right: 64px;
}

.pv-app .pv-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--pv-primary-dark);
  cursor: pointer;
  box-shadow: none;
  line-height: 1;
}

.pv-app .pv-password-toggle:hover {
  background: var(--pv-soft);
  color: var(--pv-primary-dark);
}

.pv-app .pv-password-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pv-primary) 55%, white);
  outline-offset: 1px;
}

.pv-app .pv-password-toggle svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}

.pv-app .pv-password-toggle__eye-off {
  display: none;
}

.pv-app .pv-password-toggle[aria-pressed="true"] .pv-password-toggle__eye {
  display: none;
}

.pv-app .pv-password-toggle[aria-pressed="true"] .pv-password-toggle__eye-off {
  display: block;
}

/* P004 – Mein Bereich, Profil und Datenschutz. */
.pv-account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
}

.pv-account-actions > *,
.pv-account-actions .pv-button,
.pv-account-actions .pv-inline-form,
.pv-account-actions .pv-inline-form .pv-button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.pv-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.pv-dashboard-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--pv-border);
  border-radius: 14px;
  background: #fff;
  color: var(--pv-text);
  text-decoration: none;
  display: grid;
  gap: 8px;
  align-content: start;
}

.pv-dashboard-card:hover,
.pv-dashboard-card:focus-visible {
  background: var(--pv-soft);
  color: var(--pv-text);
  text-decoration: none;
}

.pv-dashboard-card strong {
  color: var(--pv-primary-dark);
  font-size: 20px;
  line-height: 1.25;
}

.pv-dashboard-card span:not(.pv-dashboard-card__icon) {
  color: var(--pv-muted);
  font-size: 16px;
  line-height: 1.45;
}

.pv-dashboard-card__icon {
  font-size: 32px;
  line-height: 1;
}

.pv-dashboard-card--disabled {
  background: #f7f8f9;
  opacity: .72;
  cursor: default;
}

.pv-status-box {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  background: var(--pv-soft);
}

.pv-status-box strong {
  color: var(--pv-primary-dark);
}

.pv-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pv-app .pv-field textarea,
.pv-app .pv-field select,
.pv-app .pv-setting-row select {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  background: #fff;
  color: var(--pv-text);
  font: inherit;
  font-size: 17px;
  line-height: 1.35;
}

.pv-app .pv-field textarea {
  min-height: 140px;
  resize: vertical;
}

.pv-app .pv-field textarea:focus-visible,
.pv-app .pv-field select:focus-visible,
.pv-app .pv-setting-row select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pv-primary) 55%, white);
  outline-offset: 2px;
}

.pv-fieldset {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--pv-border);
  border-radius: 14px;
  background: #fff;
}

.pv-fieldset legend {
  padding: 0 8px;
  color: var(--pv-primary-dark);
  font-size: 20px;
  font-weight: 800;
}

.pv-fieldset__help {
  margin: 0 0 16px;
  color: var(--pv-muted);
  font-size: 15px;
  line-height: 1.5;
}

.pv-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--pv-border) 70%, transparent);
}

.pv-setting-row:first-of-type {
  border-top: 0;
}

.pv-setting-row__label {
  color: var(--pv-text);
  font-size: 17px;
  font-weight: 700;
}


/* P004.1 – wiederverwendbare, große Spracheingabe für geeignete Textfelder. */
.pv-app .pv-speech-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.pv-app .pv-speech-field--textarea {
  align-items: start;
}

.pv-app .pv-speech-button {
  min-width: 142px;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--pv-primary);
  border-radius: 10px;
  background: #fff;
  color: var(--pv-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}

.pv-app .pv-speech-field--textarea .pv-speech-button {
  margin-top: 2px;
}

.pv-app .pv-speech-button:hover,
.pv-app .pv-speech-button:focus-visible {
  background: var(--pv-soft);
  color: var(--pv-primary-dark);
}

.pv-app .pv-speech-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pv-primary) 55%, white);
  outline-offset: 2px;
}

.pv-app .pv-speech-button--listening {
  background: var(--pv-primary);
  color: #fff;
}

.pv-app .pv-speech-button:disabled {
  cursor: not-allowed;
  opacity: .62;
  background: #f4f5f6;
}

.pv-app .pv-speech-button__icon {
  font-size: 22px;
  line-height: 1;
}

.pv-app .pv-speech-status {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--pv-muted);
  font-size: 14px;
  line-height: 1.45;
}

.pv-app .pv-speech-status:empty {
  display: none;
}

.pv-app .pv-speech-status--notice {
  color: var(--pv-primary-dark);
}

.pv-app .pv-speech-status--error {
  color: #9b1c1c;
  font-weight: 700;
}

/* P005 – Stammdaten, Interessen und erster Eintragsablauf. */
.pv-app .pv-field input[type="number"],
.pv-app .pv-field input[type="date"] {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  background: #fff;
  color: var(--pv-text);
  font: inherit;
  font-size: 17px;
  line-height: 1.35;
}

.pv-app .pv-field input[type="number"]:focus-visible,
.pv-app .pv-field input[type="date"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pv-primary) 55%, white);
  outline-offset: 2px;
}

.pv-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pv-chip-check {
  position: relative;
  display: block;
  min-width: 0;
}

.pv-chip-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pv-chip-check span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--pv-border);
  border-radius: 11px;
  background: #fff;
  color: var(--pv-text);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.pv-chip-check input:checked + span {
  border-color: var(--pv-primary);
  background: var(--pv-soft);
  color: var(--pv-primary-dark);
  box-shadow: inset 0 0 0 1px var(--pv-primary);
}

.pv-chip-check input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--pv-primary) 55%, white);
  outline-offset: 2px;
}

.pv-form-step {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--pv-border);
  border-radius: 16px;
  background: #fff;
}

.pv-form-step h3 {
  margin: -6px 0 0;
  color: var(--pv-primary-dark);
  font-size: 24px;
  line-height: 1.25;
}

.pv-entry-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.pv-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--pv-border);
  border-radius: 14px;
  background: #fff;
}

.pv-entry-row h3 {
  margin: 5px 0 7px;
  color: var(--pv-primary-dark);
  font-size: 21px;
}

.pv-entry-row p { margin: 0; color: var(--pv-muted); }
.pv-entry-type { font-size: 14px; font-weight: 800; color: var(--pv-primary-dark); }
.pv-entry-status { display: grid; gap: 4px; min-width: 125px; text-align: right; }
.pv-entry-status strong { color: var(--pv-primary-dark); }
.pv-entry-status span { color: var(--pv-muted); font-size: 14px; }


/* P005.2 – klare Schrittführung für ältere und digital unerfahrene Bürger. */
.pv-app .pv-entry-progress {
  display: grid;
  gap: 5px;
  margin: -6px 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  background: var(--pv-soft);
  color: var(--pv-text);
  line-height: 1.45;
}

.pv-app .pv-entry-progress strong {
  color: var(--pv-primary-dark);
  font-size: 18px;
}

.pv-app .pv-entry-progress span {
  color: var(--pv-muted);
  font-size: 16px;
}

.pv-app .pv-form-step > .pv-step--form {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  margin: 0 0 2px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--pv-soft);
  color: var(--pv-primary-dark);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

/* P006 – Suche, Filter und Favoriten. */
.pv-app .pv-tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  background: var(--pv-soft);
}

.pv-app .pv-tool-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--pv-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.pv-app .pv-tool-nav a:hover,
.pv-app .pv-tool-nav a:focus-visible {
  background: #fff;
  outline: none;
  box-shadow: inset 0 0 0 2px var(--pv-primary);
}

.pv-app .pv-search-form {
  display: grid;
  gap: 18px;
}

.pv-app .pv-results-list {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.pv-app .pv-result-card {
  padding: 22px;
  border: 1px solid var(--pv-border);
  border-radius: 15px;
  background: #fff;
}

.pv-app .pv-result-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.pv-app .pv-result-card h3 {
  margin: 10px 0 5px;
  color: var(--pv-primary-dark);
  font-size: 24px;
  line-height: 1.25;
}

.pv-app .pv-result-card__author {
  margin: 0 0 12px;
  color: var(--pv-muted);
  font-size: 16px;
}

.pv-app .pv-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: var(--pv-text);
  font-size: 16px;
  font-weight: 700;
}

.pv-app .pv-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pv-app .pv-result-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--pv-border);
  border-radius: 999px;
  background: var(--pv-soft);
  color: var(--pv-primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.pv-app .pv-result-tags--detail span { font-size: 15px; }

.pv-app .pv-result-card__excerpt {
  margin: 14px 0 0;
  color: var(--pv-text);
  font-size: 17px;
  line-height: 1.55;
}

.pv-app .pv-result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pv-app .pv-result-card__actions .pv-inline-form { margin: 0; }

.pv-app .pv-favorite-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff4f5;
  color: #8d2f3c;
  font-size: 14px;
  font-weight: 800;
}

.pv-app .pv-empty-state {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 20px;
  border: 1px dashed var(--pv-border);
  border-radius: 14px;
  background: var(--pv-soft);
}

.pv-app .pv-empty-state strong {
  color: var(--pv-primary-dark);
  font-size: 20px;
}

.pv-app .pv-empty-state span {
  color: var(--pv-muted);
  font-size: 17px;
  line-height: 1.5;
}

.pv-app .pv-entry-detail-author {
  margin: -4px 0 18px;
  color: var(--pv-muted);
  font-size: 17px;
}

.pv-app .pv-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.pv-app .pv-detail-facts > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  background: #fff;
}

.pv-app .pv-detail-facts strong {
  color: var(--pv-primary-dark);
  font-size: 15px;
}

.pv-app .pv-detail-facts span {
  color: var(--pv-text);
  font-size: 17px;
}

.pv-app .pv-entry-description {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--pv-border);
}

.pv-app .pv-entry-description h3 {
  margin: 0 0 10px;
  color: var(--pv-primary-dark);
  font-size: 22px;
}

.pv-app .pv-entry-description p {
  margin: 0;
  color: var(--pv-text);
  font-size: 18px;
  line-height: 1.65;
}

/* P007 – geschützter 1:1- und Mehrpersonen-Chat. */
.pv-app .pv-conversation-list,
.pv-app .pv-invite-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.pv-app .pv-conversation-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 15px 16px;
  border: 1px solid var(--pv-border);
  border-radius: 14px;
  background: #fff;
  color: var(--pv-text);
  text-decoration: none;
}

.pv-app .pv-conversation-row:hover,
.pv-app .pv-conversation-row:focus-visible {
  outline: none;
  border-color: var(--pv-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pv-primary) 20%, transparent);
}

.pv-app .pv-conversation-row__icon {
  font-size: 30px;
  line-height: 1;
}

.pv-app .pv-conversation-row__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pv-app .pv-conversation-row__body strong {
  color: var(--pv-primary-dark);
  font-size: 20px;
  line-height: 1.25;
}

.pv-app .pv-conversation-row__body span {
  overflow: hidden;
  color: var(--pv-text);
  font-size: 16px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-app .pv-conversation-row__body small {
  color: var(--pv-muted);
  font-size: 14px;
}

.pv-app .pv-chat-unread {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--pv-primary);
  color: #fff;
  font-weight: 800;
}

.pv-app .pv-chat-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pv-app .pv-chat-history {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 680px);
  margin: 18px 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--pv-border);
  border-radius: 16px;
  background: var(--pv-soft);
  scroll-behavior: smooth;
}

.pv-app .pv-chat-empty {
  padding: 18px;
  color: var(--pv-muted);
  text-align: center;
}

.pv-app .pv-chat-message {
  width: fit-content;
  max-width: min(84%, 650px);
  padding: 11px 14px;
  border: 1px solid var(--pv-border);
  border-radius: 15px;
  background: #fff;
}

.pv-app .pv-chat-message--own {
  justify-self: end;
  border-color: color-mix(in srgb, var(--pv-primary) 34%, var(--pv-border));
  background: color-mix(in srgb, var(--pv-soft) 72%, #fff);
}

.pv-app .pv-chat-message--other { justify-self: start; }

.pv-app .pv-chat-message__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 5px;
}

.pv-app .pv-chat-message__meta strong {
  color: var(--pv-primary-dark);
  font-size: 15px;
}

.pv-app .pv-chat-message__meta span {
  color: var(--pv-muted);
  font-size: 13px;
}

.pv-app .pv-chat-message p {
  margin: 0;
  color: var(--pv-text);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.pv-app .pv-chat-compose {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.pv-app .pv-chat-details {
  margin-top: 24px;
  border: 1px solid var(--pv-border);
  border-radius: 14px;
  background: #fff;
}

.pv-app .pv-chat-details > summary {
  padding: 15px 17px;
  cursor: pointer;
  color: var(--pv-primary-dark);
  font-size: 18px;
  font-weight: 800;
}

.pv-app .pv-chat-details__body {
  display: grid;
  gap: 16px;
  padding: 0 17px 18px;
}

.pv-app .pv-chat-details__body h3 {
  margin: 9px 0 0;
  color: var(--pv-primary-dark);
  font-size: 20px;
}

.pv-app .pv-member-list { display: grid; gap: 8px; }

.pv-app .pv-member-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  background: var(--pv-soft);
}

.pv-app .pv-member-row > div:first-child { display: grid; gap: 2px; }
.pv-app .pv-member-row strong { color: var(--pv-text); font-size: 16px; }
.pv-app .pv-member-row span { color: var(--pv-muted); font-size: 14px; }
.pv-app .pv-member-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.pv-app .pv-link-button {
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--pv-primary-dark);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
}

.pv-app .pv-link-button--danger { color: #9a2d37; }

.pv-app .pv-invite-card {
  padding: 17px;
  border: 1px solid var(--pv-border);
  border-radius: 14px;
  background: #fff;
}

.pv-app .pv-invite-card > strong { color: var(--pv-primary-dark); font-size: 20px; }
.pv-app .pv-invite-card p { color: var(--pv-text); font-size: 16px; line-height: 1.5; }
.pv-app .pv-empty-state--small { margin-top: 0; padding: 14px; }

/* P008 – Meldungen, Moderation und Missbrauchsschutz. */
.pv-app .pv-button--report {
  border-color: #a04444;
  color: #842b2b;
  background: #fff;
}

.pv-app .pv-button--report:hover,
.pv-app .pv-button--report:focus-visible {
  background: #fff1f1;
  color: #6f1f1f;
}

.pv-app .pv-report-privacy {
  display: grid;
  gap: 4px;
  margin: 0 0 22px;
  padding: 15px 17px;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  background: var(--pv-soft);
  color: var(--pv-muted);
  line-height: 1.5;
}

.pv-app .pv-report-privacy strong { color: var(--pv-primary-dark); }

.pv-app .pv-check-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 12px;
  align-items: start;
  margin: 4px 0 20px;
  padding: 15px;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  background: #fff;
}

.pv-app .pv-check-row input { margin-top: 5px; transform: scale(1.2); }
.pv-app .pv-check-row span { display: grid; gap: 4px; }
.pv-app .pv-check-row small { color: var(--pv-muted); font-size: 15px; line-height: 1.45; }

.pv-app .pv-report-list { display: grid; gap: 12px; margin: 18px 0; }
.pv-app .pv-report-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  background: #fff;
}
.pv-app .pv-report-row > div { display: grid; gap: 4px; min-width: 0; }
.pv-app .pv-report-row span { color: var(--pv-muted); }
.pv-app .pv-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--pv-soft);
  color: var(--pv-primary-dark) !important;
  font-weight: 800;
  text-align: center;
}

.pv-app .pv-message-report-link,
.pv-app .pv-member-report-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  color: #842b2b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pv-app .pv-member-report-link { margin: 8px 0 0; }
.pv-app .pv-chat-heading__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* P009 – nachvollziehbares Matching / passende Einträge. */
.pv-app .pv-match-source-form {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--pv-border);
  border-radius: 14px;
  background: var(--pv-soft);
}

.pv-app .pv-match-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.pv-app .pv-match-source-row select {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  background: #fff;
  color: var(--pv-text);
  font: inherit;
  font-size: 17px;
}

.pv-app .pv-match-source-summary {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--pv-primary);
  background: var(--pv-soft);
  color: var(--pv-text);
}

.pv-app .pv-match-list {
  display: grid;
  gap: 18px;
}

.pv-app .pv-match-card {
  position: relative;
}

.pv-app .pv-match-score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pv-soft);
  color: var(--pv-primary-dark);
}

.pv-app .pv-match-score strong { font-size: 18px; }
.pv-app .pv-match-score span { font-weight: 800; }

.pv-app .pv-match-reasons {
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  color: var(--pv-text);
  font-size: 16px;
  line-height: 1.45;
}

/* P010 – Benachrichtigungen und Ablaufregeln. */
.pv-app .pv-notification-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.pv-app .pv-notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--pv-border);
  border-radius: 14px;
  background: #fff;
}

.pv-app .pv-notification-card--unread {
  border-width: 2px;
  border-color: var(--pv-primary);
  background: var(--pv-soft);
}

.pv-app .pv-notification-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pv-soft);
  font-size: 24px;
}

.pv-app .pv-notification-card__body {
  min-width: 0;
}

.pv-app .pv-notification-card__body strong {
  display: block;
  color: var(--pv-primary-dark);
  font-size: 19px;
  line-height: 1.3;
}

.pv-app .pv-notification-card__body p {
  margin: 5px 0;
  color: var(--pv-text);
  font-size: 16px;
  line-height: 1.45;
}

.pv-app .pv-notification-card__body span {
  color: var(--pv-muted);
  font-size: 14px;
}

.pv-app .pv-notification-settings {
  display: grid;
  gap: 12px;
}

.pv-app .pv-notification-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
}

.pv-app .pv-notification-setting strong {
  color: var(--pv-primary-dark);
  font-size: 18px;
}

.pv-app .pv-notification-setting p {
  margin: 4px 0 0;
  color: var(--pv-muted);
  line-height: 1.45;
}

.pv-app .pv-notification-setting label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 700;
  white-space: nowrap;
}

.pv-app .pv-entry-expiry {
  margin: 10px 0;
  color: var(--pv-muted);
  font-size: 15px;
}


/* P010.1 – strukturierte Navigationselemente und Zähler. */
.pv-app .pv-tool-nav__icon {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
}

.pv-app .pv-tool-nav__label {
  min-width: 0;
}

.pv-app .pv-tool-nav__badge {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pv-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}


/* P010.2 – klare NEU-/GELESEN-Anzeige für Hinweise. */
.pv-app .pv-notification-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 18px 0 10px;
  padding: 13px 15px;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  background: var(--pv-soft);
}

.pv-app .pv-notification-summary strong {
  color: var(--pv-primary-dark);
  font-size: 18px;
}

.pv-app .pv-notification-summary span {
  color: var(--pv-muted);
  font-size: 15px;
}

.pv-app .pv-notification-legend {
  margin: 0 0 14px;
  color: var(--pv-muted);
  font-size: 14px;
  line-height: 1.7;
}

.pv-app .pv-notification-card--unread {
  position: relative;
  box-shadow: inset 5px 0 0 var(--pv-primary);
}

.pv-app .pv-notification-card--read {
  background: #f8fafb;
  border-color: var(--pv-border);
}

.pv-app .pv-notification-card__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.pv-app .pv-notification-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.pv-app .pv-notification-status--new {
  background: var(--pv-primary);
  color: #fff;
}

.pv-app .pv-notification-status--read {
  border: 1px solid var(--pv-border);
  background: #fff;
  color: var(--pv-muted);
}

.pv-app .pv-notification-card__time {
  display: inline-block;
  margin-top: 2px;
}

/* P010.3 – NEU-Badge mit maximalem Kontrast, auch bei Theme-Overrides. */
.pv-app .pv-notification-status--new {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  opacity: 1;
  font-weight: 900;
}

/* P011 – Datenschutz & Bürgerkonto. */
.pv-app .pv-privacy-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}
.pv-app .pv-privacy-summary > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 14px;
    border: 1px solid var(--pv-line, #c9dce8);
    border-radius: 14px;
    background: #f6fbfe;
    text-align: center;
}
.pv-app .pv-privacy-summary strong {
    font-size: 1.6rem;
    color: var(--pv-primary, #1c5e8c);
    line-height: 1.1;
}
.pv-app .pv-privacy-summary span { margin-top: 6px; }
.pv-app .pv-privacy-section {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--pv-line, #c9dce8);
    border-radius: 16px;
    background: #fff;
}
.pv-app .pv-privacy-section h3 { margin-top: 0; }
.pv-app .pv-delete-account {
    margin: 28px 0 8px;
    border: 2px solid #b42318;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.pv-app .pv-delete-account > summary {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 800;
    color: #8f1d17;
    background: #fff4f2;
}
.pv-app .pv-delete-account__body { padding: 20px; }
.pv-app .pv-button--danger {
    border-color: #9f1c16 !important;
    background: #9f1c16 !important;
    color: #fff !important;
}
.pv-app .pv-button--danger:hover,
.pv-app .pv-button--danger:focus { background: #7e1712 !important; color: #fff !important; }

/* P011.1 – seniorengerechte Funktions-Info auf der Startseite. */
.pv-app .pv-function-info {
  margin: 0 0 24px;
  border: 2px solid var(--pv-primary);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.pv-app .pv-function-info > summary {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  background: var(--pv-soft);
  color: var(--pv-primary-dark);
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  line-height: 1.35;
}

.pv-app .pv-function-info > summary::-webkit-details-marker {
  display: none;
}

.pv-app .pv-function-info > summary::marker {
  content: '';
}

.pv-app .pv-function-info > summary:hover,
.pv-app .pv-function-info > summary:focus-visible {
  background: color-mix(in srgb, var(--pv-primary) 13%, white);
}

.pv-app .pv-function-info > summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pv-primary) 55%, white);
  outline-offset: -3px;
}

.pv-app .pv-function-info__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pv-primary);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.pv-app .pv-function-info__summary-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pv-app .pv-function-info__summary-text strong {
  font-size: 22px;
  line-height: 1.2;
}

.pv-app .pv-function-info__summary-text small {
  color: var(--pv-muted);
  font-size: 16px;
  font-weight: 600;
}

.pv-app .pv-function-info__hint {
  min-width: 86px;
  padding: 9px 12px;
  border: 2px solid var(--pv-primary);
  border-radius: 10px;
  background: #fff;
  color: var(--pv-primary-dark);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.pv-app .pv-function-info[open] .pv-function-info__hint::before {
  content: 'SCHLIESSEN';
}

.pv-app .pv-function-info[open] .pv-function-info__hint {
  font-size: 0;
}

.pv-app .pv-function-info[open] .pv-function-info__hint::before {
  font-size: 14px;
}

.pv-app .pv-function-info__body {
  display: grid;
  gap: 0;
  padding: 8px 24px 24px;
}

.pv-app .pv-function-info__section {
  padding: 20px 0;
  border-bottom: 1px solid var(--pv-border);
}

.pv-app .pv-function-info__section:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.pv-app .pv-function-info__section h2,
.pv-app .pv-function-info__section h3 {
  margin: 0 0 10px;
  color: var(--pv-primary-dark);
  line-height: 1.25;
}

.pv-app .pv-function-info__section h2 {
  font-size: 25px;
}

.pv-app .pv-function-info__section h3 {
  font-size: 21px;
}

.pv-app .pv-function-info__section p,
.pv-app .pv-function-info__steps {
  margin: 0;
  color: var(--pv-text);
  font-size: 17px;
  line-height: 1.6;
}

.pv-app .pv-function-info__section p + p {
  margin-top: 12px;
}

.pv-app .pv-function-info__steps {
  padding-left: 26px;
}

.pv-app .pv-function-info__steps li {
  padding-left: 5px;
}

.pv-app .pv-function-info__steps li + li {
  margin-top: 11px;
}


/* P011.3 – klare Sichtbarkeitsdauer bei eigenen Einträgen. */
.pv-app .pv-entry-lifetime-info {
  margin: 0 0 22px;
}

.pv-app .pv-entry-remaining {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 8px 0 10px;
  padding: 6px 10px;
  border: 1px solid var(--pv-border);
  border-radius: 999px;
  background: var(--pv-soft);
  color: var(--pv-primary-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.pv-app .pv-entry-remaining--expired {
  background: #fff;
}


/* P012.3 – Bilder zu Einträgen */
.pv-entry-image-upload input[type="file"],.pv-entry-image-add-form input[type="file"]{display:block;width:100%;margin-top:10px;padding:12px;border:1px solid #bfd4e3;border-radius:12px;background:#fff}
.pv-entry-card-image{display:block;margin:-2px -2px 16px;border-radius:16px;overflow:hidden;background:#eaf4fb;aspect-ratio:16/9}
.pv-entry-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.pv-entry-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 22px}
.pv-entry-gallery a{display:block;border-radius:14px;overflow:hidden;background:#eaf4fb;min-width:0}
.pv-entry-gallery img{display:block;width:100%;height:260px;object-fit:cover}
.pv-my-entry-images{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.pv-my-entry-image{width:150px;border:1px solid #c8dce8;border-radius:12px;overflow:hidden;background:#fff}
.pv-my-entry-image img{display:block;width:100%;height:105px;object-fit:cover}
.pv-image-delete-button{width:100%;padding:8px 6px;border:0;border-top:1px solid #dbe8ef;background:#fff;color:#9a2222;font-weight:700;cursor:pointer}
.pv-entry-image-add-form{margin:12px 0;padding:14px;border:1px dashed #abc9dc;border-radius:14px;background:#f7fbfe}
.pv-entry-image-add-form label,.pv-entry-image-add-form span{display:block;margin-bottom:8px}
