@layer components {
  .auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
  .auth-card { width: min(400px, 100%); background: #ffffff; border: 1px solid #d9e4ea; border-radius: 20px;
    box-shadow: 0 30px 100px #122c2c30; padding: 30px; }
  .auth-card h1 { font-size: 23px; letter-spacing: -0.5px; margin-bottom: 6px; }
  .auth-card > p { color: #7191a4; font-size: 12px; line-height: 1.7; margin-bottom: 22px; }
  .auth-field { margin-bottom: 16px; }
  .auth-error { background: #f8e9e7; color: #a34b3e; border-radius: 10px; padding: 10px 14px; font-size: 12px;
    line-height: 1.6; margin-bottom: 16px; }
  .auth-notice { background: #edf6ee; color: #24533a; padding: 12px; border-radius: 10px; margin-bottom: 16px; line-height: 1.6; }
  .auth-notice-warning { background: #fff6e8; color: #68330f; }
  .legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; margin-top: 20px; font-size: 13px; }
  .legal-links a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
  .donation-section { background: #edf5f6; border: 1px solid #cad9ec; border-radius: 14px; margin: 0 0 24px; padding: 16px 18px; }
  .donation-banner { align-items: center; background: #fdf3e3; border: 1px solid #f0d9ae; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 14px 18px; }
  .donation-banner div { display: grid; gap: 2px; }
  .donation-banner span { font-size: 14px; }
  .donation-custom { align-items: center; gap: 8px; }
  .donation-custom label { flex-basis: 100%; font-size: 14px; }
  .donation-amount { width: 7em; padding: 8px 10px; border: 1px solid #d9e4ea; border-radius: 8px; font: inherit; }
  .feedback-intro { font-size: 14px; line-height: 1.6; margin: 12px 0 16px; }
  .feedback-text { display: block; min-height: 144px; resize: vertical; font: inherit; font-size: 16px; line-height: 1.5; }
  .feedback-counter { font-size: 14px; margin: 6px 0 12px; text-align: right; color: #4d5d70; }
  .feedback-status { margin: 0 0 12px; }
  .donation-section p { font-size: 14px; line-height: 1.6; margin: 12px 0; }
  .account-danger-zone { border-top: 1px solid #d9e4ea; margin-top: 24px; padding-top: 20px; }
  .account-danger-zone button { color: #a34b3e; }
  .account-danger-zone p, .account-dialog p { font-size: 14px; line-height: 1.6; margin: 12px 0; }
  .account-dialog fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
  .account-dialog a { color: var(--green); text-decoration: underline; }
  .account-dialog .settings-actions { flex-wrap: wrap; }
  .auth-submit { width: 100%; justify-content: center; margin-top: 6px; }
  .auth-switch { text-align: center; margin-top: 18px; font-size: 12px; color: #7191a4; }
  .auth-switch button { color: var(--green); font-weight: 600; text-decoration: underline; }
  .auth-loading { min-height: 100dvh; display: grid; place-items: center; color: #7191a4; font-size: 13px; }
  .auth-topbar { position: fixed; top: calc(var(--topbar-height, 79px) + 8px); right: 14px; z-index: 50; display: flex; align-items: center; gap: 8px;
    max-width: min(300px, calc(100% - 28px)); background: #ffffff; border: 1px solid #d9e4ea; border-radius: 999px; padding: 4px 5px 4px 12px;
    box-shadow: 0 8px 25px #122c2c1f; font-size: 10px; color: #436f89; }
  .offline-banner { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
    width: min(560px, calc(100% - 28px)); box-sizing: border-box; background: #fff7e0; color: #5a4300; border: 1px solid #ecd48a;
    border-radius: 14px; padding: 10px 14px; font-size: 13px; line-height: 1.4; box-shadow: 0 8px 25px #122c2c1f; text-align: center; }
  .auth-topbar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .auth-topbar button { flex-shrink: 0; font-size: 10px; padding: 5px 10px; }
  @media (max-width: 600px) {
    .auth-page { padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
    .auth-card { padding: 24px 20px; border-radius: 16px; }
    .auth-card input, .auth-card select { min-height: 46px; }
    .auth-submit { min-height: 48px; }
    .auth-topbar { right: max(10px, env(safe-area-inset-right)); max-width: calc(100% - 20px); }
    .auth-topbar button { min-height: 36px; }
  }
}

/* Reise-Modus (REISE-01..04) */
.trip-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-bottom: 14px; border-radius: 16px; background: var(--card, #fff); border: 1px solid rgba(0, 0, 0, 0.12); }
.trip-card h2 { margin: 2px 0 4px; font-size: 18px; }
.trip-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.travel-phrases { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.travel-phrase { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.travel-phrase strong { display: block; font-size: 17px; }
.travel-phrase span, .travel-phrase small { display: block; font-size: 14px; opacity: 0.8; }
@media print {
  body > *:not(#settings-dialog) { display: none !important; }
  #settings-dialog { position: static !important; width: auto !important; max-height: none !important; box-shadow: none !important; border: 0 !important; }
  .no-print { display: none !important; }
}
.travel-words-title { margin: 8px 0; font-size: 15px; }
.travel-words { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.travel-words li { padding: 4px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.travel-words span { color: #5b6b78; font-size: 13px; }
