:root {
  color-scheme: light;
  --ink: #1f1e26;
  --muted: #656270;
  --violet: #817e99;
  --violet-dark: #5f5b74;
  --violet-soft: #f1f0f5;
  --line: #e9e7ed;
  --white: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--white);
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
}

.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 64px;
  height: 64px;
}

.footer-logo {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.footer-logo img {
  display: block;
  width: 115px;
  height: auto;
}

.primary-navigation,
.language-selector {
  display: flex;
  align-items: center;
}

.primary-navigation {
  gap: 38px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 540;
}

.home-link {
  text-decoration: none;
}

.home-link:hover,
.home-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--violet-dark);
}

.home-link[aria-current="page"] {
  color: var(--ink);
}

.language-selector {
  gap: 9px;
  color: #aaa7b3;
}

.language-selector button {
  padding: 7px 3px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.language-selector button[aria-pressed="true"] {
  color: var(--violet-dark);
  font-weight: 720;
}

.language-selector button:focus-visible,
.brand:focus-visible,
.home-link:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 2px;
}

main {
  flex: 1;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1.07;
}

.intro {
  max-width: 680px;
  margin: 34px 0 0;
  color: #3d3b45;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.secondary {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.beta-notice {
  max-width: 650px;
  margin-top: 34px;
  padding: 20px 22px;
  border-left: 2px solid var(--violet);
  background: #faf9fc;
}

.beta-title {
  margin: 0;
  color: var(--violet-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.beta-copy {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}


.button {
  position: relative;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.button.is-loading .button-label {
  visibility: hidden;
}

.button-spinner {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid rgb(255 255 255 / 45%);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: button-spinner-rotation 700ms linear infinite;
}

@keyframes button-spinner-rotation {
  to {
    transform: rotate(360deg);
  }
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.button-primary {
  border-color: var(--violet-dark);
  color: var(--white);
  background: var(--violet-dark);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: #4d4960;
  background: #4d4960;
}

.button-success {
  /* "Entwarnung" (story #1060): green, white text with a contrast above AA (about 6.5:1). */
  border-color: #1e6b34;
  color: var(--white);
  background: #1e6b34;
}

.button-success:hover,
.button-success:focus-visible {
  border-color: #17562a;
  background: #17562a;
}

.button-secondary {
  border-color: #d8d5df;
  color: var(--ink);
  background: var(--white);
}

.button-link {
  margin-right: auto;
  color: var(--violet-dark);
  background: transparent;
}

.button-copy {
  min-height: 36px;
  padding: 8px 12px;
  border-color: #d8d5df;
  color: var(--violet-dark);
  background: var(--white);
  font-size: 0.78rem;
}

.button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}


/* Forms */
.form-panel {
  max-width: 620px;
  margin-top: 38px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #34323a;
  font-size: 0.87rem;
  font-weight: 630;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfccd5;
  border-radius: 3px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 450;
}

.form-field select {
  /* The same height as the text fields in every browser (Safari draws a native select smaller). */
  height: 48px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5d5a70 50%), linear-gradient(135deg, #5d5a70 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-panel > .form-field,
.form-panel > .field-error {
  margin-bottom: 16px;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--violet);
  outline: 2px solid rgb(129 126 153 / 18%);
  outline-offset: 0;
}


.verification-field {
  max-width: 190px;
  margin-top: 38px;
}

.verification-field input {
  font-size: 1.25rem;
  letter-spacing: 0.25em;
}

.inline-feedback,
.validation-message {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.validation-message {
  color: #8a3841;
}


.form-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-actions form {
  margin: 0;
}

.inline-feedback.is-success {
  color: var(--violet-dark);
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 450;
}

/* Header additions */
.brand-product {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--violet-dark);
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand {
  text-decoration: none;
}

.nav-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-button:hover,
.nav-button:focus-visible {
  color: var(--violet-dark);
}

.nav-form {
  margin: 0;
}

.primary-navigation a[aria-current="page"] {
  color: var(--ink);
}

.language-selector a {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.language-selector a[aria-current="true"] {
  color: var(--violet-dark);
  font-weight: 720;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus {
  top: 16px;
}

/* Content pages */
.content-page {
  padding-block: 96px 104px;
}

.content-page h1 {
  max-width: 780px;
}

.content-page .intro {
  max-width: 680px;
}

.note {
  max-width: 650px;
  margin-top: 34px;
  padding: 20px 22px;
  border-left: 2px solid var(--violet);
  background: #faf9fc;
  color: var(--muted);
  font-size: 0.95rem;
}

.note p {
  margin: 0;
}

/* The box of the review account (story #1478): little space above the title, a blank line after it, the three actions one under the other in the
   same colour, and the same space below the last one as above the title. */
.review-section {
  padding-top: 14px;
  padding-bottom: 14px;
}

.review-section .section-title {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.review-section .form-actions {
  margin-top: 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.review-section .field-hint {
  margin-top: 10px;
}

/* Legal texts (privacy policy): table of contents, chapters, address and tables */
.legal-text {
  max-width: 780px;
}

.legal-text h2 {
  margin-top: 40px;
}

.legal-text h3 {
  margin-top: 24px;
  font-size: 1.05rem;
}

/* The two-level privacy policy (Task #1492): a topic, its short version and the accordion "Mehr erfahren" with the details. */
.legal-text h4 {
  margin: 20px 0 6px;
  font-size: 1rem;
}

.legal-text .legal-more {
  margin: 12px 0 8px;
}

.legal-text .legal-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet-dark);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.legal-text .legal-more > summary::-webkit-details-marker {
  display: none;
}

.legal-text .legal-more > summary::before {
  content: '\203A';
  display: inline-block;
  transition: transform 0.15s;
}

.legal-text .legal-more[open] > summary::before {
  transform: rotate(90deg);
}

.legal-text .legal-more > summary:focus-visible {
  outline: 3px solid var(--violet-dark);
  outline-offset: 2px;
}

.legal-more-body {
  margin-top: 8px;
  padding-left: 14px;
  border-left: 3px solid var(--line);
  scroll-margin-top: 80px;
}

.legal-more-body > :first-child {
  margin-top: 0;
}

.legal-toggle-row {
  display: flex;
  justify-content: flex-end;
  max-width: 780px;
}

.legal-toc .legal-toc-list,
.legal-toc .legal-toc-list ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.legal-toc .legal-toc-list ul {
  padding-left: 1.2em;
}

.legal-toc ol ol {
  margin-top: 0.35em;
}

@media print {
  .legal-toggle-row,
  .legal-text .legal-more > summary {
    display: none;
  }
}

.legal-stand {
  color: var(--muted, inherit);
}

.legal-toc {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
}

.legal-toc h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.4em;
}

.legal-toc li {
  margin-block: 0.35em;
}

.legal-address {
  margin-block: 16px;
  font-style: normal;
}

.legal-table {
  width: 100%;
  margin-block: 16px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 640px) {
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
  }

  .legal-table tr {
    margin-bottom: 12px;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
  }
}

/* Help page: table of contents and chapters with anchors */
.help-hero {
  max-width: 960px;
  margin: 32px 0 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.help-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* The heading of the FAQ with the button that opens or closes every accordion (AC9 of story #1270). */
.faq-heading,
.details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 780px;
}

.faq-heading h2,
.details-heading h2 {
  margin: 0;
}

.faq-toggle-all,
.details-toggle-all {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--violet-dark);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.faq-toggle-all:focus-visible,
.details-toggle-all:focus-visible,
.faq-search-clear:focus-visible {
  outline: 3px solid var(--violet-dark);
  outline-offset: 2px;
}

/* The search field of the FAQ: plain, white, a thin violet border, a darker one while it has the focus. */
.faq-search {
  position: relative;
  max-width: 780px;
  margin: 14px 0 6px;
}

.faq-search input {
  width: 100%;
  padding: 12px 44px 12px 44px;
  border: 1px solid var(--violet);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.faq-search input:focus {
  border-color: var(--violet-dark);
  outline: 2px solid var(--violet-dark);
  outline-offset: 0;
}

.faq-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--violet-dark);
  pointer-events: none;
}

.faq-search-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  min-width: 40px;
  min-height: 40px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--violet-dark);
  font: inherit;
  cursor: pointer;
}

.faq-nohit {
  max-width: 780px;
  margin: 14px 0 0;
  font-weight: 600;
  color: var(--violet-dark);
}

.faq-result {
  max-width: 780px;
  min-height: 1.4em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* The term of the search in a question and an answer: a yellow text marker. */
.help-faq mark {
  padding: 0 2px;
  border-radius: 2px;
  background: linear-gradient(transparent 12%, #ffe66d 12%, #ffe66d 92%, transparent 92%);
  color: var(--ink);
}

/* The title of a topic group is larger than the questions in it; a question is an accordion of its own (white card, bold black title),
   in the legal group a plain bold line. */
.faq-group > summary {
  font-size: 1.125rem;
}

.faq-group .faq-question-item {
  max-width: none;
  background: var(--white);
}

.faq-group .faq-question-item > summary {
  font-weight: 700;
  color: var(--ink);
}

.faq-item {
  margin-top: 22px;
}

.faq-question {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--ink);
}

.help-toc {
  max-width: 780px;
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--line);
}

.help-toc h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.help-toc ol {
  margin: 0;
  padding-left: 1.4em;
}

.help-toc li {
  margin-block: 0.35em;
}

.help-chapter {
  max-width: 780px;
  margin-top: 48px;
}

.help-chapter h2 {
  scroll-margin-top: 24px;
}

/* The menu after the date of a row (three dots, native details/summary) */
.row-menu {
  position: relative;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

/* The place of the menu in a row that has none: the same width, so the dates end at the same edge */
.row-menu-spacer {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-left: 6px;
  vertical-align: middle;
}

.row-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.row-menu summary::-webkit-details-marker {
  display: none;
}

.row-menu summary:hover,
.row-menu[open] summary {
  background: var(--violet-soft);
}

.row-menu summary:focus-visible {
  outline: 3px solid var(--violet-dark);
  outline-offset: 2px;
}

.row-menu-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 10;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(31, 30, 38, 0.12);
}

.row-menu-list form {
  margin: 0;
}

.row-menu-list a,
.row-menu-list button {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.row-menu-list button {
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.row-menu-list a:hover,
.row-menu-list a:focus-visible,
.row-menu-list button:hover,
.row-menu-list button:focus-visible {
  background: var(--violet-soft);
}

/* The invitation to the free introduction: a visible box with a call to action */
.intro-box {
  max-width: 780px;
  margin-top: 40px;
  padding: 22px 24px;
  border-left: 3px solid var(--violet-dark);
  border-radius: 0 8px 8px 0;
  background: var(--violet-soft);
}

.intro-box h2 {
  margin-top: 0;
}

.intro-box p {
  margin-block: 0.6em;
}

.intro-box p:last-child {
  margin-bottom: 0;
}

/* Accordions (native details/summary, as on the help page of CERTENTIC Vote) */
.help-accordions {
  margin-top: 24px;
}

/* The seven accordions under the heading "Tecum im Detail" (Task #1474). */
.details-heading {
  margin-bottom: 12px;
}

.accordion-item {
  max-width: 780px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--violet-soft);
}

.accordion-item + .accordion-item {
  margin-top: 10px;
}

.accordion-item summary {
  position: relative;
  padding-right: 28px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: '+';
  position: absolute;
  top: 0;
  right: 0;
  color: var(--violet-dark);
}

.accordion-item[open] summary::after {
  content: '\2212';
}

.accordion-item summary:focus-visible {
  outline: 3px solid var(--violet-dark);
  outline-offset: 2px;
}

.accordion-content {
  margin-top: 12px;
  scroll-margin-top: 80px;
}

.accordion-content > :first-child {
  margin-top: 0;
}

.accordion-content > :last-child {
  margin-bottom: 0;
}

.help-chapter ul,
.help-chapter ol {
  padding-left: 1.4em;
}

.help-chapter li {
  margin-block: 0.4em;
}

.help-legal {
  max-width: 780px;
  margin-top: 56px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 3px 11px;
  border-radius: 999px;
  color: var(--white);
  background: var(--violet-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}


.footer-meta {
  padding-block: 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer-meta p {
  max-width: 760px;
  margin: 0;
}

.footer-build {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 620px);
  }

  .header-inner {
    min-height: 92px;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-block: 12px;
  }

  .brand-product {
    display: none;
  }

  .primary-navigation {
    gap: 18px;
    /* Three language links (story #1699) do not fit beside the links on a phone: the row wraps instead of widening the page. */
    flex-wrap: wrap;
    row-gap: 8px;
    min-width: 0;
  }

  .content-page {
    padding-block: 72px 80px;
  }

  .footer-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-block: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Checkbox fields (stay signed in) */
.checkbox-field {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #34323a;
  font-size: 0.92rem;
  font-weight: 560;
  cursor: pointer;
}

.checkbox-field input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--violet-dark);
  cursor: pointer;
}

/* A group of radio buttons ("Ich bin älter als 18 Jahre"): no frame, the radio buttons are the small ones of .checkbox-field (not the 48 px text field style of .form-field). */
.radio-group {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.radio-group legend {
  padding: 0;
  color: #34323a;
  font-size: 0.87rem;
  font-weight: 630;
}
.radio-group .checkbox-field {
  margin-top: 12px;
}

/* Room between the last radio button and the field that follows ("Eine andere Nummer verwenden", then the country) */
.checkbox-field + .form-field {
  margin-top: 28px;
}

.checkbox-field + .field-hint {
  margin: 8px 0 0 32px;
}

/* --- Meine Tecum-Übersicht: lists, cards, status --- */
.section-title {
  margin: 44px 0 0;
  font-size: 1.15rem;
}
/* The lists, the tables and the hint about the smartwatch of the overview all have the full width of the page content (requester 2026-10-22: the boxes
   with the tables may become wider), and the hint the gap of the list above it. */
.smartwatch-hint {
  max-width: none;
  margin-top: 14px;
}
/* The message of the operator (story #1838): the first item of the overview, in the flow of the page (never an overlay), the full width of the content. */
.operator-messages .operator-message {
  max-width: none;
  margin-top: 14px;
  border-left: 4px solid var(--violet-dark);
}
.operator-message-body {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.card-list {
  display: grid;
  gap: 14px;
  /* The same width as the tables (.contact-table) and the hint, so the blocks of the overview line up. */
  max-width: none;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
}
.card-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}
.status.is-accepted {
  background: #e8f3ec;
  color: #25603a;
}
.status.is-declined {
  background: #f6eaea;
  color: #8a3030;
}
/* An organizer who is no accepted contact person (no calls for help, story #1141 AC12): orange, text #8a3b00 on #fff1e0 (contrast above 4.5:1). */
.status.is-notice {
  background: #fff1e0;
  color: #8a3b00;
}
.status.is-alert {
  /* Room before the tag (after the name) and after it (before "seit x Minuten"). */
  margin: 0 16px 0 32px;
  padding: 5px 16px;
  background: #b3261e;
  color: #ffffff;
  font-size: 1.05rem;
}
.alarm-since {
  color: var(--muted);
  font-size: 0.86rem;
}
.chain {
  max-width: 720px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: chain;
}
.chain li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.chain li:last-child {
  border-bottom: 1px solid var(--line);
}
.chain-name {
  font-weight: 620;
}
.chain-name::before {
  counter-increment: chain;
  content: counter(chain) ". ";
  color: var(--muted);
  font-weight: 500;
}
.chain-meta {
  color: var(--muted);
  font-size: 0.84rem;
}
.form-field input[type="text"],
.form-field input[type="tel"] {
  width: 100%;
}
.field-error {
  margin: 8px 0 0;
  color: #8a3030;
  font-size: 0.85rem;
}

/* Buttons and tag on a card of the overview */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.card-actions .nav-form {
  margin: 0;
}

/* Alarm view (/alarm/<token>) */
.note.is-warning {
  border-left-color: #b3261e;
  background: #fdf3f2;
  color: #6e1f1a;
}
.note.is-success {
  border-left-color: #25603a;
  background: #eef7f1;
  color: #1f4d30;
}
.alarm-view .call-form {
  margin: 18px 0 0;
}
.alarm-reach {
  max-width: 680px;
  margin: 22px 0 0;
}
.alarm-reach-title {
  margin: 0 0 8px;
  font-weight: 650;
}
.alarm-reach-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 8px 0;
}
.alarm-reach-name {
  font-weight: 400;
  min-width: 9rem;
  margin-right: auto;
  padding-left: 16px;
}
.alarm-reach .call-form,
.alarm-view .alarm-reach .call-form {
  margin: 0;
}
.alarm-location {
  max-width: 680px;
  margin-top: 30px;
}
.alarm-map {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.alarm-address {
  margin: 14px 0 4px;
  font-weight: 620;
}
.alarm-route,
.alarm-distance {
  margin: 10px 0 0;
}
.alarm-helpers {
  max-width: 680px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.alarm-helpers li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.alarm-helpers li:last-child {
  border-bottom: 1px solid var(--line);
}
.alarm-helper-name {
  font-weight: 620;
}
.alarm-helper-status {
  flex: 1;
  color: var(--muted);
  font-size: 0.88rem;
}
.alarm-helpers .call-form {
  margin: 0;
}
.alarm-helper.is-taken .alarm-helper-status {
  color: #25603a;
}

/* Overview cards: the lines one below the other */
.card.card-stacked {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}
.card.card-stacked .card-meta {
  margin: 0;
}
/* The title row and the details take the full width of the card, so the three dots stand at its right edge (task #1174) and the envelope at the right edge of the details (story #1141 AC9) */
.card.card-stacked > .card-title-row,
.card.card-stacked > .card-detail,
.card.card-stacked > .card-person {
  align-self: stretch;
}

/* "Ich bin Kontaktperson für": a table on wide screens, stacked cells with their column title on narrow ones */
.contact-table {
  width: 100%;
  max-width: none;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
}
.contact-table th {
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: left;
}
.contact-table td {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.contact-table tbody tr:first-child td {
  border-top: 0;
}
.contact-table .card-meta {
  margin: 4px 0 0;
}
.contact-table .contact-status {
  text-align: right;
  white-space: nowrap;
}
.contact-table .contact-status .card-actions {
  justify-content: flex-end;
}

/* The card of a managed person: the name, the tag and the three-dot menu in one line (story #950) */
.card-title-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

/* The menu list opens directly left of the three dots (it used to open at the left edge of the card, far from the button) */
.card-title-row .row-menu {
  position: relative;
  /* The three dots stand at the right edge of the card, at the same place on every card (task #1174). */
  margin-left: auto;
}

.card-title-row .row-menu-list {
  /* directly left of the three dots, top-aligned with them */
  top: 0;
  right: calc(100% + 6px);
  left: auto;
  max-width: calc(100vw - 48px);
  font-size: 1rem;
  font-weight: 400;
}

/* The + / - sign of a row (Task #1575): in the last cell under the status tag and the three-dot menu, at the right edge like on the card; the touch target is 44 px. */
.contact-table .contact-toggle {
  display: inline-flex;
  margin: 0;
}
.contact-table .contact-toggle .expand-toggle {
  margin: 0;
}

/* The three-dot menu of a row of the table, in the same line as the status tag, at the right edge (story #947, Task #1578) */
.contact-table .contact-menu {
  display: inline-flex;
  margin: 0;
}

.contact-table .contact-menu .row-menu {
  margin-left: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .contact-table thead {
    display: none;
  }
  .contact-table,
  .contact-table tbody,
  .contact-table tr,
  .contact-table td {
    display: block;
  }
  .contact-table td {
    padding: 10px 18px;
    border-top: 0;
  }
  .contact-table tr {
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }
  .contact-table tbody tr:first-child {
    border-top: 0;
  }
  .contact-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
  }
  .contact-table .contact-status {
    text-align: left;
  }
  .contact-table .contact-status .card-actions {
    justify-content: flex-start;
  }
}

/* The dialog that asks before an entry is removed (app.js) */
.confirm-dialog {
  max-width: 420px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.confirm-dialog::backdrop {
  background: rgb(31 30 38 / 40%);
}
.confirm-dialog p {
  margin: 0 0 18px;
}

/* Step indicator of forms with several steps (as in apps/connectors-admin) */
.wizard-progress-wrapper {
  max-width: 780px;
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.wizard-progress {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}
.wizard-progress.steps-2 {
  min-width: 260px;
  grid-template-columns: repeat(2, 1fr);
}
.wizard-progress.steps-3 {
  min-width: 390px;
  grid-template-columns: repeat(3, 1fr);
}
.wizard-progress.steps-4 {
  min-width: 480px;
  grid-template-columns: repeat(4, 1fr);
}
.wizard-progress.steps-5 {
  min-width: 600px;
  grid-template-columns: repeat(5, 1fr);
}
.wizard-progress.steps-7 {
  /* Seven columns inside the 780 px of the wrapper, so "Abschluss" is not cut off on a wide screen (a narrow one scrolls as before). */
  min-width: 770px;
  grid-template-columns: repeat(7, 1fr);
}
.wizard-progress.steps-8 {
  /* Eight columns inside the 780 px of the wrapper (the registration, requester 2026-11-09); a narrow screen scrolls as before. */
  min-width: 776px;
  grid-template-columns: repeat(8, 1fr);
}
.wizard-progress li {
  position: relative;
  padding-top: 17px;
  border-top: 1px solid #dcd9e2;
  color: #8a8791;
}
.wizard-progress li::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8c5ce;
}
.wizard-progress li[aria-current="step"],
.wizard-progress li.is-complete {
  border-color: var(--violet);
  color: var(--violet-dark);
}
.wizard-progress li[aria-current="step"]::before,
.wizard-progress li.is-complete::before {
  background: var(--violet);
}
.wizard-progress span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.7rem;
}
.wizard-progress strong {
  max-width: 130px;
  display: block;
  font-size: 0.78rem;
  font-weight: 640;
  line-height: 1.35;
}
.step-count {
  margin: 28px 0 12px;
  color: var(--violet-dark);
  font-size: 0.74rem;
  font-weight: 690;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Wearer page: the line above the name */
.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* A profile a manager may only look at: the fields stay visible, disabled */
.readonly-fields {
  margin: 0;
  padding: 0;
  border: 0;
}
.readonly-fields select:disabled,
.readonly-fields input:disabled {
  color: var(--ink);
  background: var(--violet-soft);
  opacity: 1;
  cursor: default;
}
.chain-name a {
  color: inherit;
}
/* The spinner on a secondary (white) button */
.button-secondary .button-spinner {
  border-color: rgb(95 91 116 / 30%);
  border-top-color: var(--violet-dark);
}

/* The wearer in the portal: help button, status, contacts */
.wearer-section {
  margin-top: 28px;
}
/* The help button: the image of the requester, one element (link; app.js makes it a button). */
.help-button {
  display: inline-block;
  max-width: 100%;
  margin: 4px 0 8px;
  border-radius: 999px;
  line-height: 0;
}
.help-button img {
  display: block;
  width: 420px;
  max-width: 100%;
  height: auto;
}
.help-button:hover img {
  filter: brightness(1.08);
}
.help-button:focus-visible {
  outline: 3px solid var(--violet-dark);
  outline-offset: 4px;
}
.help-locked {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid #b3261e;
  background: #fdf1f0;
}
.help-open .withdraw-button {
  margin: 0 0 14px;
}
.stop-sign {
  flex: 0 0 auto;
  color: #b3261e;
}
.help-confirm {
  margin: 18px 0;
}
.status.is-pending {
  background: #e3f0ff;
  color: #1b4f8f;
}
.status.is-muted {
  background: #ececf0;
  color: #55535f;
}
.wearer-section .card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

/* "Aktuelle Hilferufe": a card is the link to the alarm page. */
.alarm-card .alarm-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.alarm-card .alarm-card-link:hover .card-title,
.alarm-card .alarm-card-link:focus-visible .card-title {
  text-decoration: underline;
}
.alarm-card .card-title .status.is-alert {
  /* A gap after the name; nothing after the tag (the table has room for "seit x Minuten"). */
  margin: 0 0 0 16px;
}

.consent-block { border: 0; padding: 0; margin: 1rem 0; }
.consent-box { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.6rem 0; }
.consent-box input { margin-top: 0.3rem; flex: none; }
/* The space above the buttons is larger than between the boxes (requester 2026-10-22) */
.consent-block .form-actions { margin-top: 2rem; }
/* A form straight after a heading starts as close as any text after a heading (the question of the invitation page) */
.section-title + .form-panel { margin-top: 14px; }
.section-title + .form-panel > .consent-block { margin-top: 0; }

.isolated-banner { background: #8a3b00; color: #fff; font-weight: 600; text-align: center; padding: .5rem 0; }
.consent-banner { background: var(--violet-soft); border-bottom: 1px solid var(--line); }
.consent-banner-inner { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.consent-banner p { margin: 0; flex: 1 1 280px; }

/* Separate areas of a page as tiles, the status tags one under the other, "Trennen" as a link (requester's feedback 2026-10-15) */
.tile {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.tile > :first-child {
  margin-top: 0;
}
.tile > :last-child {
  margin-bottom: 0;
}
.tile h1 {
  margin-bottom: 0;
}
.tile .contact-table {
  max-width: 100%;
}
.back-link {
  margin: 12px 0 0;
}
.status-line {
  display: block;
  margin-top: 6px;
}
.status-line:first-child {
  margin-top: 0;
}
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
@media (max-width: 720px) {
  .tile {
    padding: 16px;
  }
}
.alarm-card .alarm-card-details {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* The menu behind "Angemeldet als <Name>" (story #1127): the text and the three dots in one line, the list opens to the right */
.greeting-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.greeting-row .intro {
  margin: 0;
}
.greeting-menu {
  /* The list is positioned by the line, not by the dots, so it never leaves the screen on a phone (task #1184). */
  position: static;
}
.greeting-menu .row-menu-list {
  right: auto;
  left: 0;
  min-width: min(260px, 100%);
  max-width: 100%;
}
/* The entries wrap instead of running out of the list on a narrow screen */
.greeting-menu .row-menu-list a {
  white-space: normal;
}

/* The rows of "Ich bin Kontaktperson für" with details on a tap (story #1141) */
.expand-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.expand-toggle[hidden] {
  display: none;
}
.expand-toggle:hover {
  background: var(--violet-soft);
}
.expand-toggle:focus-visible {
  outline: 3px solid var(--violet-dark);
  outline-offset: 2px;
}
.contact-accordion tr[data-expandable].is-enhanced,
li.card[data-expandable].is-enhanced {
  cursor: pointer;
}
.card-detail[hidden] {
  display: none !important;
}
.card-detail {
  margin: 0;
}
.card-detail .card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
/* The + / - button of the card of a managed person (story #1141 AC11): under the three-dot button, at the same right edge; the touch target is 44 px. */
li.card[data-expandable] {
  position: relative;
}
/* Always directly under the three dots; the sign is centred in the 44 px target, so the space below it is about the card's own padding. */
/* Story #1141 AC17 (Task #1877): the sign stands in the title row right of the three-dot button, as in the rows of "Ich bin Kontaktperson für". */
.card-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.card-toggle {
  margin: 0;
}
/* A card without details (an invitation that is not answered yet) keeps the room of the sign, so the three dots stand at the same place on every card (task #1174). */
.card-toggle-space {
  display: inline-block;
  width: 44px;
  height: 44px;
}
.card-toggle-sign::before {
  content: '+';
  font-size: 1.1rem;
  line-height: 1;
}
.expand-toggle[aria-expanded='true'] .card-toggle-sign::before {
  content: '\2212';
}
/* The opened card: the number line starts below the button, so the envelope does not run under it */
li.card[data-expandable].is-open > .card-person {
  margin-top: 8px;
}
/* The opened card (story #1141 AC9): the closed-only lines are shown while the card is closed (and never without the script, which shows the opened view
   once), the open-only lines while it is open. */
li.card[data-expandable]:not(.is-enhanced) .card-closed-only,
li.card[data-expandable].is-open .card-closed-only,
li.card[data-expandable].is-enhanced:not(.is-open) .card-open-only {
  display: none;
}
.detail-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
/* Story #1141 AC17 (requester 2026-11-14, Task #1877): the envelope stands directly behind the WhatsApp icon, as in the list "Ich bin Kontaktperson für". */
.detail-contact .mail-link {
  margin-left: 0;
}
.card-detail .detail-name {
  margin: 12px 0 0;
  font-weight: 600;
}
.card-detail > .card-meta:first-child {
  margin-top: 4px;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-accordion .contact-detail[hidden] {
  display: none !important;
}
.contact-accordion .contact-detail td {
  padding-top: 0;
  border-top: 0;
}
/* A line of the details: name, number and envelope in three columns, so the numbers of all lines (also the alternative number) start at the same
   place and the envelope stands at the right edge (requester 2026-10-22) */
.contact-accordion .contact-detail .card-meta {
  display: grid;
  /* Story #1141 AC16 (Task #1874): the number of an organizer stands directly after her name with the tag. */
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
  margin: 8px 0 0;
}
.contact-accordion .detail-name {
  font-weight: 650;
  white-space: nowrap;
}
.contact-accordion .detail-number {
  grid-column: 2;
}
.contact-accordion .contact-detail .card-meta .mail-link {
  grid-column: 3;
  justify-self: end;
}
/* Story #1141 AC14 (Task #1871): the first line of a row: name, "Verwaltet von", tag, menu and sign on one line, no empty space below the name. */
@media (min-width: 721px) {
  .contact-accordion tr[data-expandable] > td {
    vertical-align: middle;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .contact-accordion tr[data-expandable] > td .card-meta,
  .contact-accordion tr[data-expandable] > td .card-title {
    margin: 0;
  }
}

/* Story #1141 AC14 (Task #1871): the first line of the details is the number of the person cared for with the WhatsApp icon and the envelope right behind it, and
   the alternative number below: no name column, so they start at the left edge. */
.contact-accordion .contact-detail .detail-first,
.contact-accordion .contact-detail .detail-alternative {
  grid-template-columns: minmax(0, 1fr);
  /* AC16: the numbers of the person cared for are indented. */
  padding-left: 1.5rem;
}
.contact-accordion .contact-detail .detail-first .detail-number,
.contact-accordion .contact-detail .detail-alternative .detail-number {
  grid-column: 1;
}
.contact-accordion .contact-detail .detail-number .mail-link {
  grid-column: auto;
  justify-self: auto;
  margin-left: 6px;
  vertical-align: middle;
}
/* Opened: no empty space between the first line of the row and the first line of the details (requester 2026-11-14). */
.contact-accordion tr[data-expandable].is-open > td {
  padding-bottom: 0;
}
.contact-accordion tr.contact-detail .card-meta:first-child {
  margin-top: 0;
}
/* Annehmen / Ablehnen: one column, the same size, right-aligned */
.answer-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 9.5rem;
}
.answer-buttons .nav-form,
.answer-buttons .button {
  width: 100%;
}
.mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  color: var(--ink);
}
@media (max-width: 560px) {
  .contact-accordion .contact-detail td {
    padding: 0 18px 12px;
  }
  .contact-accordion .contact-detail .card-meta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .contact-accordion .detail-name {
    grid-column: 1 / -1;
    white-space: normal;
  }
  .contact-accordion .detail-number {
    grid-column: 1;
  }
  .contact-accordion .contact-detail .card-meta .mail-link {
    grid-column: 2;
  }
}

/* Access codes (story #1651): two rows in the form, the password field with the icon, the names in the alarm view and the summary on the smartwatch pages. */
.access-code-row {
  border: 1px solid var(--line, #d9d9e3);
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 8px 16px 12px;
}
.access-code-row legend {
  font-weight: 650;
  padding: 0 6px;
}
.secret-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.secret-field input {
  flex: 1 1 auto;
  min-width: 0;
}
.secret-toggle {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line, #d9d9e3);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
}
.secret-toggle[aria-pressed='true'] {
  background: var(--violet-soft, #efeafc);
}
.secret-toggle:focus-visible {
  outline: 3px solid var(--violet, #5b3fd4);
  outline-offset: 2px;
}
.access-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 8px 0;
}
.access-code-name {
  font-weight: 650;
  min-width: 9rem;
}
.access-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}
.access-code-page-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.75rem;
  overflow-wrap: anywhere;
}
.access-code-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.access-code-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 8px 0;
}

/* Story #1676: the WhatsApp glyph as its own link beside a phone number or call button (own touch target of at least 44 px). */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  vertical-align: middle;
}
.whatsapp-link img {
  display: block;
}
.call-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* Story #860 (Task #1884): the envelope in the list "Meine Kontaktpersonen" is a touch target of at least 44 px like the WhatsApp glyph. */
.call-actions .mail-link {
  min-width: 44px;
  min-height: 44px;
}
.whatsapp-form .whatsapp-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
/* Task #1681: the hint about access codes is indented like the names above it. */
.alarm-reach .alarm-reach-codes {
  padding-left: 16px;
}
/* Audit F-009 of story #1676: the glyph in front of the call buttons of the taker and of the helper list. */
.alarm-call-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
}
.alarm-call-row .call-form,
.alarm-view .alarm-call-row .call-form {
  margin: 0;
}
.alarm-helpers .whatsapp-form {
  margin: 0 4px 0 0;
}

/* Story #867 AC16 (Task #1767): the official App Store badge, 40 px high, with the clear space of a quarter of its height around it (Apple's guidelines). */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
}
.store-badge {
  display: inline-block;
  padding: 10px;
  line-height: 0;
}
.store-badge img {
  display: block;
  height: 40px;
  width: auto;
}
/* Audit F-001 of PR 1050: Google's PNG (646 x 250 px) carries a transparent margin of 29 px above and below the visible badge (646 x 192 px) and none at the
   sides, so it is shown 52 px high (the visible badge 40 px, as high as Apple's); the negative margin of 6 px takes back that margin above and below, so the
   visible badge has the 10 px clear space of .store-badge on every side and starts at the height of Apple's. */
.store-badge.store-badge-google img {
  height: 52px;
  margin: -6px 0;
}

/* The static QR codes of the stores (story #1007, Tasks #1772, #1773; the platform choice itself is gone since story #1685 AC18). */
.store-badge-note {
  margin: 0 0 8px 10px;
  font-size: 0.9375rem;
}
.store-qr {
  margin: 8px 0 0;
}
.store-qr img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #d0d5dd;
}
.store-qr figcaption {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}

/* Task #1768: Google Play next to the App Store; the notice stands under its badge. */
.store-badge-item {
  display: flex;
  flex-direction: column;
}

/* While the notice of the upcoming release stands under the Google badge, the badges keep a wider gap (requester 2026-11-09; Task #1769 removes it with the notice). */
.store-badges.store-badges-with-note {
  column-gap: 40px;
}
/* The address under a QR code (the platform choice of the smartwatch step) breaks within the width of the code. */
.store-qr {
  max-width: 180px;
}
/* The notice under the Google badge: smaller and close to the badge (the badge link has a padding of 10 px and the PNG its own transparent margin; requester 2026-11-09). */
.store-badge-item .store-badge-note,
.store-badges > .store-badge-note {
  margin: -4px 0 8px 10px;
  font-size: 0.8125rem;
  line-height: 1.35;
}

/* The help page (chapter "Technik und Verfügbarkeit", second box) and the closing pages of the onboarding: each badge above its QR code in one column, both left aligned at the visible edge of the badge (the badge link has a padding of
   10 px); no address under the code, the notice of the Google release only under the Google code (requester 2026-11-09). */
.store-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 40px;
  row-gap: 12px;
  margin: 16px 0;
}
.store-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* As wide as a QR code with its border and its indent (164 + 2 + 10 px), so the badges alone (the first box of the help page) align with the badges above
     their codes (the chapter "Technik und Verfügbarkeit"). */
  min-width: 176px;
}
.store-column .store-qr {
  margin: 0 0 0 10px;
}
.store-column .store-badge-note {
  margin: 6px 0 8px 10px;
  font-size: 0.8125rem;
  line-height: 1.35;
}

/* A paragraph outside a form that breaks like the form below it (the hint about the number of a smartwatch on the profile, requester 2026-11-09). */
.form-width {
  max-width: 620px;
}

/* Task #1780: the welcome page with the setup of the smartwatch: numbered steps and, for a watch of an unknown platform, the name of each platform. */
.welcome-steps {
  max-width: 680px;
  padding-left: 1.5em;
}
.welcome-steps li {
  margin-bottom: 6px;
}
.welcome-platform {
  margin: 18px 0 6px;
  font-size: 1rem;
}
.welcome-page p {
  max-width: 680px;
}
/* The button below the last section keeps the distance of a section (requester 2026-11-09). */
.welcome-page .welcome-actions {
  margin-top: 36px;
}

/* "Smartwatch verbinden": the grey box with the help when the Tecum app is not on the smartwatch (requester 2026-11-09). */
.accordion-item.watch-app-help {
  max-width: 680px;
  margin: 20px 0;
  background: #f1f1f4;
}

/* Story #1685 AC19 (Task #1872): the link "Kontaktperson einladen" in the box without a contact person stands one empty line below the sentence. */
.note .nocontact-invite {
  margin-top: 1.5em;
}
