/* Notfallband – Design-System. Marke: Navy #1B2845, Koralle #E4572E. Keine externen Ressourcen (DSGVO). */

@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/poppins-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/poppins-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1b2845;
  --navy-2: #26365a;
  --coral: #e4572e;
  --coral-ink: #b8391a; /* Koralle für kleinen Text (Kontrast ≥ 4,5:1) */
  --coral-tint: #fff1ec;
  --coral-line: #f6c9bb;
  --ink: #1b2845;
  --muted: #566074;
  --line: #d9dde5;
  --bg: #f1f3f7;
  --surface: #ffffff;
  --field: #f5f6f8;
  --ok: #1e7a4c;
  --ok-tint: #e6f4ec;
  --danger: #b42318;
  --danger-tint: #fdecea;
  --radius: 14px;
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 1px 2px rgba(27, 40, 69, 0.06), 0 6px 20px rgba(27, 40, 69, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
}
h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--navy);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--coral-ink);
}
/* Schaltfläche, die wie ein Link aussieht (z. B. „E-Mail erneut senden“ innerhalb eines Formulars) */
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linklike:hover {
  color: var(--coral-ink);
}
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp {
  position: absolute;
  left: -5000px;
  height: 0;
  overflow: hidden;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.center {
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}

.container {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}
.container-narrow {
  width: min(640px, 100% - 32px);
  margin-inline: auto;
}
.container-wide {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}

/* --- Kopf & Fuß --------------------------------------------------------- */
.site-header {
  background: var(--navy);
  color: #fff;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand:hover {
  color: #fff;
}
.brand-icon {
  width: 44px;
  height: auto;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
}
.wordmark .band {
  color: var(--coral);
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aeb8ce;
  font-weight: 600;
  margin-top: 3px;
}
.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  color: #dfe5f2;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
}
.nav a:hover,
.nav a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.site-header--app .bar {
  min-height: 60px;
}

.site-footer {
  margin-top: 56px;
  background: var(--navy);
  color: #c9d1e3;
  font-size: 0.95rem;
}
.site-footer .inner {
  padding: 28px 0 32px;
  display: grid;
  gap: 18px;
}
.site-footer a {
  color: #fff;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-note {
  font-size: 0.85rem;
  color: #9aa6c0;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem; /* ≥ 18,66 px fett = „großer Text“ → Kontrast 3:1 genügt */
  text-decoration: none;
  cursor: pointer;
  background: var(--coral);
  color: #fff;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:hover {
  background: #d24b23;
  color: #fff;
}
.btn:active {
  transform: translateY(1px);
}
.btn-block {
  width: 100%;
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-2);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #8f1c12;
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--field);
  color: var(--navy);
}

/* --- Formulare ---------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.form-grid.cols-zip {
  grid-template-columns: 112px 1fr;
}
@media (min-width: 560px) {
  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .span-2 {
    grid-column: 1 / -1;
  }
  .form-grid.cols-zip {
    grid-template-columns: 140px 1fr;
  }
}
.field label,
.field .label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='password'],
.field input[type='number'],
.field input[type='date'],
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: var(--field);
  border: 2px solid transparent;
  border-radius: 12px;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23566074' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}
.field .hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 6px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-tint);
}
.field .error {
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 6px;
}
.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}
.check .check-text {
  display: block;
  line-height: 1.45;
}
.check.has-error {
  border-color: var(--danger);
  background: var(--danger-tint);
}
.check:has(input:checked) {
  border-color: var(--navy);
}
.consent {
  border-color: var(--coral-line);
  background: var(--coral-tint);
}
.consent:has(input:checked) {
  border-color: var(--navy);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 22px;
}
@media (min-width: 640px) {
  .panel {
    padding: 28px;
  }
}
.panel > h2:first-child,
.panel > h3:first-child {
  margin-top: 0;
}
.panel-soft {
  background: var(--field);
  box-shadow: none;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.row.between {
  justify-content: space-between;
}
.stack > * + * {
  margin-top: 16px;
}

/* --- Hinweise ----------------------------------------------------------- */
.alert {
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-weight: 600;
  border: 2px solid transparent;
}
.alert-error {
  background: var(--danger-tint);
  color: var(--danger);
  border-color: #f3b9b3;
}
.alert-ok {
  background: var(--ok-tint);
  color: var(--ok);
  border-color: #b9dfc9;
}
.alert-info {
  background: #eaf0fb;
  color: var(--navy);
  border-color: #c5d4ee;
}
.alert-warn {
  background: #fff7e0;
  color: #7a5200;
  border-color: #f0dca0;
}
.alert ul {
  margin: 6px 0 0;
  padding-left: 20px;
  font-weight: 500;
}

/* --- Bestell-Stepper ---------------------------------------------------- */
.page-title {
  background: var(--navy);
  color: #fff;
  padding: 18px 0 22px;
  text-align: center;
}
.page-title h1 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}
.page-title p {
  margin: 4px 0 0;
  color: #c9d1e3;
  font-size: 0.95rem;
}
.progress {
  height: 7px;
  background: #e1e4eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 22px 0;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--coral);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.progress.done > span {
  background: #2e9d62;
}
.js [data-step] {
  display: none;
}
.js [data-step].active {
  display: block;
}
.step-nav {
  display: flex;
  gap: 12px;
  flex-direction: column-reverse;
  margin-top: 8px;
}
@media (min-width: 560px) {
  .step-nav {
    flex-direction: row;
    justify-content: space-between;
  }
}
.js .no-js-only {
  display: none;
}
.card-block {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  margin-bottom: 22px;
}
.card-block > legend {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 8px;
  margin-left: -8px;
  color: var(--navy);
}

/* --- Zusammenfassung / Tabellen ---------------------------------------- */
.summary {
  width: 100%;
  border-collapse: collapse;
}
.summary td {
  padding: 8px 0;
  vertical-align: top;
}
.summary td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.summary tr.sep td {
  border-top: 1px solid var(--line);
}
.summary tr.total td {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  padding-top: 12px;
  border-top: 2px solid var(--navy);
}
.summary tr.discount td {
  color: var(--ok);
  font-weight: 600;
}
.kv {
  background: var(--field);
  border-radius: 12px;
  padding: 14px 18px;
}
.kv dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

/* --- Startseite --------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #22345e 100%);
  color: #fff;
  padding: 44px 0 56px;
  overflow: hidden;
}
.hero .grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 860px) {
  .hero .grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero {
    padding: 72px 0 80px;
  }
}
.hero h1 {
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  color: var(--coral);
}
.hero .lead {
  font-size: 1.2rem;
  color: #d5dcec;
  max-width: 34em;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
}
.hero .price-note {
  color: #c9d1e3;
  font-size: 0.98rem;
}
.hero .price-note strong {
  color: #fff;
  font-size: 1.3rem;
  font-family: var(--font-head);
}
.band-visual {
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}
.band-visual svg {
  display: block;
  width: 100%;
  height: auto;
}
.section {
  padding: 56px 0 8px;
}
.section-title {
  text-align: center;
  max-width: 36em;
  margin-inline: auto;
  margin-bottom: 28px;
}
.features {
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature .ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--coral-tint);
  color: var(--coral-ink);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feature h3 {
  margin-bottom: 6px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}
.steps {
  counter-reset: s;
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
  margin: 0;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  counter-increment: s;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 22px 22px 22px;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 10px;
}
.steps strong {
  display: block;
  margin-bottom: 4px;
}
.price-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.price-box .amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3rem;
  color: var(--navy);
  line-height: 1;
}
.price-box ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  text-align: left;
  display: inline-block;
}
.price-box li {
  padding: 5px 0 5px 30px;
  position: relative;
}
.price-box li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 16px;
  height: 9px;
  border-left: 3px solid #2e9d62;
  border-bottom: 3px solid #2e9d62;
  transform: rotate(-45deg);
}
details.faq {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
details.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--coral-ink);
}
details.faq[open] summary::after {
  content: '–';
}
details.faq .answer {
  padding: 0 20px 18px;
  color: var(--muted);
}

/* --- Öffentliche Notfallseite ------------------------------------------ */
body.emergency {
  background: #fff;
}
.em-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 0;
}
.em-header .bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.em-wrap {
  width: min(720px, 100% - 32px);
  margin-inline: auto;
  padding: 22px 0 140px;
}
.em-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  flex: none;
}
.em-person h1 {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  margin: 0;
}
.em-person p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 600;
}
.em-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.em-box {
  border: 2px solid var(--line);
  background: #f6f7f9;
  border-radius: 16px;
  padding: 16px 18px;
}
.em-box.span-2 {
  grid-column: 1 / -1;
}
.em-box .lab {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 6px;
}
.em-box .val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.em-box.allergy {
  background: var(--coral-tint);
  border-color: var(--coral);
}
.em-box.allergy .lab,
.em-box.allergy .val {
  color: var(--coral-ink);
}
.em-box .empty {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: #4b5563;
}
.em-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.em-box li {
  font-size: 1.3rem;
  font-weight: 700;
  padding: 3px 0 3px 22px;
  position: relative;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.em-box li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
}
.em-box .text {
  font-size: 1.3rem;
  font-weight: 700;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.em-contact {
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  grid-column: 1 / -1;
}
.em-contact .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}
.em-contact .phone {
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 600;
}
.em-note {
  text-align: center;
  color: #4b5563;
  font-size: 0.98rem;
  margin-top: 22px;
}
.em-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
}
.em-actions .btn {
  min-height: 62px;
  font-size: 1.1rem;
  padding: 0 10px;
  white-space: nowrap;
}
.em-actions .btn.btn-wrap {
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
@media (max-width: 440px) {
  .em-box .val {
    font-size: 1.3rem;
  }
  .em-contact {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* --- Admin & Partner ---------------------------------------------------- */
body.admin {
  background: #eef0f5;
  font-size: 1rem;
}
.admin-nav {
  background: var(--navy);
}
.admin-nav .bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-height: 60px;
}
.admin-nav .nav {
  flex: 1;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.data th {
  text-align: left;
  background: #f6f7f9;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.data td {
  padding: 11px 14px;
  border-top: 1px solid #edeff3;
  vertical-align: top;
}
table.data td.num,
table.data th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
table.data tr:hover td {
  background: #fafbfc;
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e8ebf2;
  color: var(--navy);
  white-space: nowrap;
}
.badge.ok {
  background: var(--ok-tint);
  color: var(--ok);
}
.badge.warn {
  background: #fff3cd;
  color: #7a5200;
}
.badge.bad {
  background: var(--danger-tint);
  color: var(--danger);
}
.badge.coral {
  background: var(--coral-tint);
  color: var(--coral-ink);
}
.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat .n {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stat .l {
  color: var(--muted);
  font-size: 0.9rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.filters .field {
  min-width: 150px;
}
.filters .field input,
.filters .field select {
  min-height: 44px;
  padding: 8px 12px;
}
.inline-form {
  display: inline;
}
.sep-title {
  margin: 30px 0 12px;
}
.notice-box {
  border-left: 5px solid var(--coral);
  background: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.login-box {
  max-width: 440px;
  margin: 48px auto;
}
.error-page {
  text-align: center;
  padding: 72px 0;
}
.error-page .code {
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--coral);
  font-weight: 700;
}
.legal h2 {
  margin-top: 1.6em;
  font-size: 1.3rem;
}
.legal .placeholder {
  background: #fff7e0;
  border: 2px dashed #e0b84a;
  padding: 2px 6px;
  border-radius: 6px;
}
.qr-inline svg {
  width: 180px;
  height: 180px;
}
.danger-zone {
  border: 2px solid #f3b9b3;
  background: var(--danger-tint);
}
@media print {
  .site-header,
  .site-footer,
  .em-actions,
  .admin-nav,
  .btn {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.mt-10 {
  margin-top: 10px;
}
.mt-28 {
  margin-top: 28px;
}
.mt-20 {
  margin-top: 20px;
}
.mb-0 {
  margin-bottom: 0;
}
.js-only {
  display: none !important;
}
.js .js-only {
  display: inline-flex !important;
}
.w-100 {
  width: 100%;
}

.progress > span {
  width: 0;
}
.progress > span.p33 {
  width: 33.3%;
}
.progress > span.p66 {
  width: 66.6%;
}
.progress > span.p100 {
  width: 100%;
}
.check-circle {
  width: 88px;
  height: 88px;
  margin: 8px auto 14px;
  border-radius: 50%;
  border: 2px solid #2e9d62;
  background: var(--ok-tint);
  display: grid;
  place-items: center;
}

.field .hint.ok-text {
  color: var(--ok);
  font-weight: 600;
}

.text-pre {
  white-space: pre-line;
}

.admin-nav .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.admin-nav .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
table.data td a strong {
  white-space: nowrap;
}

.stat .n.small {
  font-size: 1.2rem;
  line-height: 1.3;
}

/* --- Kostenloses Profil: Ablauf, Druckseite ---------------------------- */
.mini-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.mini-steps li {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border-radius: 10px;
  background: #e8ebf2;
}
.mini-steps li.current {
  background: var(--navy);
  color: #fff;
}
.mini-steps li.done {
  background: var(--ok-tint);
  color: var(--ok);
}
.panel-highlight {
  border: 2px solid var(--coral-line);
  background: var(--coral-tint);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover {
  background: #e8ebf2;
  color: var(--navy);
}
.price-grid {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.price-grid .price-box {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.price-grid .price-box ul {
  align-self: center;
  flex: 1;
}
.price-box h3 {
  margin-bottom: 10px;
}
.price-box--accent {
  border: 2px solid var(--coral);
}

@media (max-width: 640px) {
  .site-header .nav a:not(.btn) {
    display: none;
  }
  .site-header .brand-sub {
    display: none;
  }
}

/* --- Kacheln: Auswahl (Pflegegrad, Blutgruppe), Datum, Listenfelder ----------- */
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
fieldset.field legend {
  padding: 0;
}
.tiles {
  display: grid;
  gap: 8px;
}
.tiles-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.tiles-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 560px) {
  .tiles-3 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.tile {
  position: relative;
  display: block;
  cursor: pointer;
}
.tile input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.tile span {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 6px 2px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  text-align: center;
  transition: background 0.1s ease, border-color 0.1s ease;
}
.tile:hover span {
  border-color: var(--navy);
}
.tile input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.tile input:focus-visible + span {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.has-error .tile span {
  border-color: var(--danger);
}
.date-selects {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr) minmax(0, 1.05fr);
  gap: 8px;
}
.date-selects select {
  padding: 12px 26px 12px 12px;
  background-position: right 9px center;
  text-overflow: ellipsis;
}
.chips-field textarea {
  min-height: 80px;
}
.chips-ui[hidden],
.chips-field textarea[hidden] {
  display: none;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 8px;
  margin-bottom: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chip-allergy {
  background: var(--coral-ink);
}
.chip-x {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.chip-x:hover {
  background: rgba(255, 255, 255, 0.4);
}
.chips-add {
  display: flex;
  gap: 8px;
}
.chips-add input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: var(--field);
  border: 2px solid transparent;
  border-radius: 12px;
}
.chips-add input:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}
.chips-add .btn {
  flex: none;
}
.chips-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip-suggest {
  padding: 8px 14px;
  background: #fff;
  color: var(--navy);
  border: 2px dashed #b7bfce;
  cursor: pointer;
  font-size: 0.95rem;
}
.chip-suggest:hover {
  border-color: var(--navy);
  border-style: solid;
}
.chip-suggest[hidden] {
  display: none;
}

/* --- Hauptmenü: Aktionskacheln -------------------------------------------- */
.action-tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
}
.action-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: flex-start;
  min-height: 112px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}
.action-tile small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--muted);
}
.action-tile svg {
  color: var(--coral-ink);
}
.action-tile:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.action-tile.primary {
  grid-column: 1 / -1;
  background: var(--coral);
  color: #fff;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  font-size: 1.3rem;
}
.action-tile.primary small {
  color: #fff;
  opacity: 0.95;
  font-size: 0.95rem;
}
.action-tile.primary svg {
  color: #fff;
  flex: none;
}
.action-tile.primary:hover {
  background: #d24b23;
  color: #fff;
  border-color: transparent;
}
.recap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.recap .chip {
  padding: 8px 14px;
}
.recap .chip-light {
  background: var(--field);
  color: var(--navy);
}

/* --- Notfallseite: Kacheln -------------------------------------------------- */
.etiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.etile {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.etile.allergy {
  background: var(--coral-ink);
  border-color: var(--coral-ink);
  color: #fff;
}
.etile.plain {
  background: #eef1f7;
  border-color: #eef1f7;
}

.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--field);
  border: 2px solid transparent;
  border-radius: 12px;
}
.copy-row input:focus {
  outline: none;
  border-color: var(--navy);
}
.copy-row .btn {
  flex: none;
}
.start-hero {
  text-align: center;
  padding: 28px 0 8px;
}
.start-hero h1 {
  margin-bottom: 8px;
}
.start-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 auto 8px;
  max-width: 30em;
}

.product-tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: #fff;
}
.product-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  white-space: nowrap;
}
.field .tile {
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.tile-long span {
  font-size: 0.9rem;
}

/* --- Notfallband: Armband aktivieren, Status ------------------------------------ */
.action-tile.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  background: var(--navy);
  color: #fff;
}
.action-tile.wide small {
  color: #d5dcec;
}
.action-tile.wide svg {
  color: #fff;
  flex: none;
}
.action-tile.wide:hover {
  background: var(--navy-2);
  color: #fff;
  border-color: transparent;
}
.action-tile.status {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  background: var(--ok-tint);
  border-color: #b9dfca;
}
.action-tile.status svg {
  color: var(--ok);
  flex: none;
}
.band-status {
  border: 2px solid #b9dfca;
  background: var(--ok-tint);
}
.band-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ok);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.scanner [hidden],
.scanner[hidden] {
  display: none !important;
}
.scanner {
  display: grid;
  gap: 12px;
}
.scanner-view {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1426;
  aspect-ratio: 1 / 1;
  max-height: 70vh;
}
.scanner-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scan-frame {
  position: absolute;
  inset: 16% 16%;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(13, 20, 38, 0.45);
  pointer-events: none;
}
.scanner-msg {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-weight: 600;
}
.scanner-msg.is-error {
  color: var(--danger);
}
.scanner-msg.is-ok {
  color: var(--ok);
}

/* --- Produktwahl: Armband, Notfallkarte, Bundle ----------------------------------- */
.product-opt .check-text {
  flex: 1;
  min-width: 0;
}
.product-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.product-price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.save-badge {
  display: inline-block;
  background: var(--ok-tint);
  color: var(--ok);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 1px 10px;
  border-radius: 999px;
}
.card-visual {
  max-width: 230px;
  margin: 14px auto 4px;
}
.card-visual svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 900px) {
  .price-grid.price-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1080px;
  }
}
.bundle-banner {
  display: grid;
  gap: 14px;
  align-items: center;
  max-width: 900px;
  margin: 22px auto 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--coral-tint);
  border: 2px solid var(--coral);
}
.bundle-price {
  line-height: 1.3;
}
.bundle-price .was {
  color: var(--muted);
  text-decoration: line-through;
}
.bundle-price .now {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--navy);
}
@media (min-width: 760px) {
  .bundle-banner {
    grid-template-columns: 1fr auto auto;
    gap: 24px;
  }
}

.price-box .band-visual,
.price-box .card-visual {
  max-width: 230px;
  margin: 14px auto 4px;
}
.price-box .band-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Kopfzeile: Aktionsknopf bricht auch auf schmalen Handys (375 px) nicht um */
.site-header .nav {
  flex-wrap: nowrap;
}
.site-header .nav .btn {
  white-space: nowrap;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}
@media (max-width: 420px) {
  .site-header .bar {
    gap: 10px;
  }
  .site-header .brand {
    gap: 9px;
  }
  .site-header .brand-icon {
    width: 36px;
  }
  .site-header .wordmark {
    font-size: 1.3rem;
  }
  .site-header .nav .btn {
    padding: 0 12px;
    font-size: 0.85rem;
  }
}

/* ---------- Kundenbereich (Dashboard) ---------- */
.dash-profile h2 {
  margin-bottom: 4px;
}
.dash-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.dash-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef0f4;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 600;
}
.dash-badge.ok {
  background: #e3f4ea;
  color: #1d6b44;
}
.dash-actions {
  gap: 10px;
}
.action-tile-form {
  display: contents;
}
button.action-tile {
  appearance: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.mono,
textarea.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Öffentliche Partnerseite (/unsere-partner) und Leiste auf der Infoseite */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.partner-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line, #e3e6ee);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(27, 40, 69, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.partner-card:hover,
.partner-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 40, 69, 0.14);
  color: inherit;
}
.partner-card .avatar,
.partner-head .avatar {
  flex: none;
}
.partner-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.partner-name {
  color: var(--navy);
  font-size: 1.05rem;
}
.partner-cat {
  font-size: 0.85rem;
  color: var(--coral-ink);
  font-weight: 600;
}
.partner-text {
  font-size: 0.92rem;
  color: #4b5563;
}
.partner-more {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.partner-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.partner-card .avatar,
.partner-head .avatar {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
}
.lead {
  font-size: 1.1rem;
  color: #374151;
}

/* Hauptmenü: Status „bestellt, noch nicht aktiviert“ und Überschrift über der Person */
.dash-badge.warn {
  background: #fff3d6;
  color: #7a5200;
}
.dash-kicker {
  margin: 0 0 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dash-tiles {
  margin-top: 4px;
}

/* ---------- Kacheln: Navy mit weißer Schrift und orangem Akzent ----------
   Weiß auf Navy 14,6:1, Hellblau-Grau (#b8c0d4) auf Navy 8:1; Koralle nur für Streifen, Pfeil und Symbole (Grafik, ≥ 3:1). */
.action-tile {
  position: relative;
  padding-right: 46px;
  background: var(--navy);
  color: #fff;
  border-color: transparent;
  border-left: 6px solid var(--coral);
}
.action-tile small {
  color: #b8c0d4;
}
.action-tile svg {
  color: var(--coral);
}
.action-tile::after {
  content: '›';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-54%);
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
  color: var(--coral);
}
.action-tile:hover,
.action-tile:focus-visible {
  background: var(--navy-2);
  color: #fff;
  border-color: var(--coral);
}
/* wichtigste Kachel: Koralle mit weißer Schrift */
.action-tile.primary {
  border-left: 2px solid transparent;
}
.action-tile.primary::after {
  color: #fff;
}
.action-tile.primary:hover {
  border-color: transparent;
}
/* grüner Status („Notfallband aktiv“) */
.action-tile.status {
  color: var(--navy);
  border-color: #b9dfca;
  border-left: 6px solid var(--ok);
}
.action-tile.status small {
  color: var(--muted);
}
.action-tile.status::after {
  color: var(--ok);
}
.action-tile.status:hover {
  background: var(--ok-tint);
  color: var(--navy);
  border-color: var(--ok);
}
/* leise Kachel (Abmelden): hell mit Navy-Schrift, ohne Pfeil */
.action-tile.ghost {
  background: #fff;
  color: var(--navy);
  border: 2px solid #d5dcec;
  padding-right: 16px;
}
.action-tile.ghost small {
  color: var(--muted);
}
.action-tile.ghost::after {
  content: none;
}
.action-tile.ghost:hover {
  background: #f3f5f9;
  border-color: var(--navy);
  color: var(--navy);
}
