@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #f0f2f5;
  --bg2: #ffffff;
  --bg3: #e8eaed;
  --border: #d1d5db;
  --accent: #d4a017;
  --accent-dark: #b8860b;
  --accent2: #dc2626;
  --accent2-light: #fee2e2;
  --text: #1a1a2e;
  --text2: #6b7280;
  --text3: #9ca3af;
  --success: #16a34a;
  --success-light: #dcfce7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font-mono: 'IBM Plex Mono', monospace;
  --font-sans: 'IBM Plex Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 15px; min-height: 100vh; overflow-x: hidden; }

.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }

/* LOGIN */
#screen-login { justify-content: center; align-items: center; padding: 2rem; }
.login-box { width: 100%; max-width: 380px; }
.login-logo { text-align: center; margin-bottom: 2.5rem; }
.login-logo .cross {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; background: var(--accent2); border-radius: 20px;
  color: white; font-size: 2rem; margin-bottom: 1rem; box-shadow: var(--shadow-lg);
}
.login-logo h1 { font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: 0.1em; }
.login-logo .subtitle { font-size: 0.8rem; color: var(--text2); margin-top: 0.25rem; }
.card-form { background: var(--bg2); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text2); margin-bottom: 0.4rem; font-family: var(--font-mono); font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; max-width: 100%; min-width: 0; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-sans); font-size: 0.95rem; padding: 0.75rem 1rem; outline: none; transition: border-color 0.2s;
}
/* iOS-Fix: Datums-/Zeitfelder haben dort eine feste Mindestbreite und würden
   sonst über den Rand laufen oder in zweispaltigen Zeilen überlappen. */
input[type="date"], input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  max-width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group select option { background: white; }
.form-group textarea { resize: vertical; min-height: 80px; }

.btn { display: block; width: 100%; padding: 0.9rem; border: none; border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: center; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 4px 12px rgba(212,160,23,0.3); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--bg3); color: var(--text2); }
.btn-small { display: inline-block; width: auto; padding: 0.45rem 1rem; font-size: 0.8rem; }

.error-msg { background: var(--accent2-light); border: 1.5px solid var(--accent2); border-radius: var(--radius-sm); color: var(--accent2); padding: 0.75rem 1rem; font-size: 0.85rem; margin-bottom: 1rem; display: none; }
.error-msg.show { display: block; }

/* PIN */
#screen-pin, #screen-setpin { justify-content: center; align-items: center; padding: 2rem; }
.pin-box { width: 100%; max-width: 320px; text-align: center; }
.pin-title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text2); margin-bottom: 0.5rem; }
.pin-user-name { font-size: 1.3rem; color: var(--text); margin-bottom: 2rem; font-weight: 600; }
.pin-dots { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); background: white; transition: all 0.15s; }
.pin-dot.filled { background: var(--accent); border-color: var(--accent); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; max-width: 300px; margin: 0 auto 1rem; }
.pin-key { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; padding: 1.25rem 1rem; cursor: pointer; transition: transform 0.06s, background 0.06s; user-select: none; box-shadow: var(--shadow); touch-action: manipulation; }
.pin-key:active { background: var(--accent); color: white; transform: scale(0.95); }
.pin-key.del { font-size: 1rem; color: var(--text2); }
.pin-key.empty { visibility: hidden; }
.pin-attempts { font-size: 0.8rem; color: var(--accent2); margin-top: 0.5rem; }

/* MEMBER */
#screen-member { justify-content: center; align-items: center; padding: 2rem; }
.member-box { width: 100%; max-width: 380px; }
.member-title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text2); text-align: center; margin-bottom: 1.5rem; }
.member-card { background: white; border: 2px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 0.75rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); }
.member-card:hover { border-color: var(--accent); }
.member-card.selected { border-color: var(--accent); background: #fffbeb; }
.member-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.member-info h3 { font-size: 1.05rem; font-weight: 600; }
.member-info p { font-size: 0.8rem; color: var(--text2); margin-top: 0.15rem; }

/* APP HEADER */
#screen-app { background: var(--bg); }
.app-header { background: white; border-bottom: 1px solid var(--border); padding: 0.75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.header-left { display: flex; align-items: center; gap: 0.6rem; }
.header-cross { width: 32px; height: 32px; background: var(--accent2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; }
.header-title { font-weight: 600; font-size: 1rem; }
.header-member { background: #fffbeb; border: 1.5px solid rgba(212,160,23,0.4); border-radius: 20px; padding: 0.3rem 0.9rem; font-size: 0.8rem; color: var(--accent-dark); font-weight: 600; cursor: pointer; }
.header-right { display: flex; align-items: center; }
.logout-btn { background: var(--accent2); border: none; color: white; cursor: pointer; padding: 0.45rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; font-family: var(--font-sans); transition: all 0.2s; }
.logout-btn:hover { background: #b91c1c; }

.app-content { flex: 1; overflow-y: auto; padding: 1.25rem; min-height: 0; -webkit-overflow-scrolling: touch; }
#screen-app { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }

/* SECTIONS */
.section { display: none; }
.section.active { display: block; }

/* SECTION HEADER WITH BACK ARROW */
.section-header { position: sticky; top: 0; z-index: 20; background: var(--bg); margin: 0 -1.25rem 0.75rem; padding: 0.55rem 1.25rem 0.6rem; border-bottom: 1px solid var(--border); }
.section-actions { display: flex; align-items: center; gap: 0.6rem; }
.back-arrow-btn {
  background: #fee2e2; border: none; color: #dc2626; cursor: pointer;
  padding: 0.4rem 0.9rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.35rem;
  transition: all 0.2s; flex-shrink: 0; font-family: var(--font-sans);
}
.back-arrow-btn:active { transform: scale(0.97); background: #fecaca; }
.section-title { display: block; font-weight: 700; font-size: 1.15rem; color: var(--text); margin-bottom: 0.45rem; }

/* SEARCH */
.search-box { position: relative; margin-bottom: 1rem; }
.search-box input { width: 100%; padding: 0.7rem 1rem 0.7rem 2.5rem; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
.search-box input:focus { border-color: var(--accent); }
.search-box .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 1rem; pointer-events: none; }

/* HOME TILES */
.home-greeting { margin-bottom: 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.home-greeting-text h2 { font-size: 1.4rem; font-weight: 300; }
.home-greeting-text h2 strong { font-weight: 700; }
.home-greeting-text p { color: var(--text2); font-size: 0.82rem; margin-top: 0.15rem; }
.hint-badge {
  background: white; border-radius: var(--radius-sm); padding: 0.6rem 0.75rem;
  box-shadow: var(--shadow); cursor: pointer; flex-shrink: 0; min-width: 64px;
  text-align: center; border: 1.5px solid var(--border); transition: all 0.2s;
  position: relative;
}
.hint-badge:hover { border-color: var(--accent); }
.hint-badge .badge-icon { font-size: 1.2rem; display: block; }
.hint-badge .badge-count {
  font-size: 0.68rem; font-weight: 700; color: var(--accent2);
  font-family: var(--font-mono); display: block; margin-top: 0.1rem;
}
.hint-badge .badge-dot {
  position: absolute; top: -4px; right: -4px;
  width: 12px; height: 12px; background: var(--accent2);
  border-radius: 50%; border: 2px solid var(--bg);
  display: none;
}
.hint-badge .badge-dot.show { display: block; }

/* Hinweis Popup */
.hints-popup {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 150; align-items: flex-start; justify-content: flex-end;
  padding: 5rem 1rem 0;
  background: rgba(0,0,0,0.2);
}
.hints-popup.show { display: flex; }
.hints-popup-inner {
  background: white; border-radius: var(--radius); padding: 1rem;
  box-shadow: var(--shadow-lg); width: 100%; max-width: 320px;
  max-height: 60vh; overflow-y: auto;
}
.hints-popup-title {
  font-size: 0.72rem; font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text3); margin-bottom: 0.75rem;
  display: flex; align-items: center; justify-content: space-between;
}
.hints-popup-close { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 1rem; }

.tiles-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; margin-bottom: 0.85rem; }
.tile { background: white; border-radius: var(--radius-sm); padding: 0.6rem 0.6rem; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow); border: 1.5px solid transparent; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; min-height: 72px; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile:active { transform: scale(0.98); }
.tile-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.tile-label { font-weight: 600; font-size: 0.78rem; line-height: 1.2; }
.tile-count { font-size: 0.68rem; color: var(--text2); }
.tile-diagnoses .tile-icon { background: #fee2e2; }
.tile-doctors .tile-icon { background: #dbeafe; }
.tile-medications .tile-icon { background: #dcfce7; }
.tile-visits .tile-icon { background: #fef3c7; }
.tile-imaging .tile-icon { background: #f3e8ff; }
.tile-vaccinations .tile-icon { background: #ffedd5; }
.tile-allergies .tile-icon { background: #ffe4e6; }
.tile-childhood .tile-icon { background: #d1fae5; }
.tile-sickleave .tile-icon { background: #e0f2fe; }
.tile-organ .tile-icon { background: #fce7f3; }
.tile-personalien .tile-icon { background: #fef9c3; }

/* HINTS */
.hints-section { margin-top: 0.25rem; }
.hints-title { font-size: 0.72rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 0.75rem; }
.hint-card { background: white; border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin-bottom: 0.6rem; display: flex; align-items: flex-start; gap: 0.75rem; box-shadow: var(--shadow); border-left: 3px solid var(--accent); }
.hint-card.danger { border-left-color: var(--accent2); }
.hint-card.success { border-left-color: var(--success); }
.hint-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
.hint-text strong { display: block; font-size: 0.88rem; font-weight: 600; }
.hint-text span { font-size: 0.78rem; color: var(--text2); }

/* CARDS */
.card { background: white; border-radius: var(--radius-sm); padding: 0.6rem 0.85rem; margin-bottom: 0.5rem; box-shadow: var(--shadow); border: 1.5px solid transparent; transition: border-color 0.2s; }
.card:hover { border-color: var(--border); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; }
.card-title { font-weight: 600; font-size: 0.9rem; }
.card-subtitle { font-size: 0.78rem; color: var(--text2); margin-top: 0.1rem; }
.card-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }

.tag { background: var(--bg3); border-radius: 20px; padding: 0.2rem 0.65rem; font-size: 0.72rem; color: var(--text2); font-weight: 500; }
.tag.accent { background: #fffbeb; color: var(--accent-dark); }
.tag.danger { background: var(--accent2-light); color: var(--accent2); }
.tag.success { background: var(--success-light); color: var(--success); }

.inline-btn { background: var(--bg3); border: none; color: var(--text2); cursor: pointer; font-size: 0.82rem; padding: 0.3rem 0.55rem; border-radius: 8px; transition: all 0.15s; }
.inline-btn:hover { background: var(--accent2-light); color: var(--accent2); }
.inline-btn.edit:hover { background: #fffbeb; color: var(--accent-dark); }

.pill { background: var(--success-light); border-radius: 20px; padding: 0.15rem 0.55rem; font-size: 0.72rem; color: var(--success); font-weight: 600; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; align-items: flex-end; justify-content: center; backdrop-filter: blur(2px); }
.modal-overlay.show { display: flex; }
.modal { background: white; border-radius: var(--radius) var(--radius) 0 0; width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto; padding: 1.5rem; box-shadow: var(--shadow-lg); }
.modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 1.25rem; }
.modal-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.modal-close { background: var(--bg3); border: none; color: var(--text2); cursor: pointer; width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.modal-actions .btn { flex: 1; }
.form-row { display: flex; gap: 0.75rem; }
.form-row .form-group { flex: 1; min-width: 0; }
.time-input-group { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.time-input-group:last-child { border-bottom: none; }
.time-input-group .time-toggle { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.time-input-group .time-label { font-size: 0.9rem; min-width: 75px; cursor: pointer; }
.time-display {
  display: flex; align-items: center; gap: 0.2rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.35rem 0.6rem;
  cursor: pointer; transition: border-color 0.2s; flex-shrink: 0;
}
.time-display.disabled { opacity: 0.4; pointer-events: none; }
.time-display:hover { border-color: var(--accent); }
.time-seg {
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700;
  width: 28px; text-align: center; color: var(--text);
  background: none; border: none; outline: none;
}
.time-seg.active { color: var(--accent); background: rgba(212,160,23,0.12); border-radius: 4px; }
.time-colon { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--text2); }

/* Numpad Overlay */
.numpad-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.3); align-items: flex-end; justify-content: center;
}
.numpad-overlay.show { display: flex; }
.numpad-box {
  background: white; border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 400px; padding: 1.25rem;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
}
.numpad-display {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-bottom: 1rem; padding: 0.75rem;
  background: var(--bg); border-radius: var(--radius-sm);
}
.numpad-seg {
  font-family: var(--font-mono); font-size: 2rem; font-weight: 700;
  width: 56px; height: 56px; text-align: center; line-height: 56px;
  border-radius: var(--radius-sm); background: white; border: 2px solid var(--border);
}
.numpad-seg.active { border-color: var(--accent); color: var(--accent); }
.numpad-colon { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--text2); }
.numpad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.numpad-key {
  background: var(--bg); border: none; border-radius: var(--radius-sm);
  font-size: 1.4rem; font-weight: 600; padding: 0.9rem;
  cursor: pointer; transition: all 0.1s; color: var(--text);
  font-family: var(--font-sans);
}
.numpad-key:active { background: var(--accent); color: white; transform: scale(0.96); }
.numpad-key.del { font-size: 1rem; color: var(--text2); }
.numpad-key.ok { background: var(--accent); color: white; font-weight: 700; }
.numpad-key.ok:active { background: var(--accent-dark); }
.numpad-key.empty { background: none; cursor: default; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text3); }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.85rem; margin-bottom: 1.5rem; color: var(--text2); }
.loading { text-align: center; padding: 2rem; color: var(--text3); font-size: 0.85rem; }

/* ============================================================
   GLOBALE SUCHE (Startseite)
   ============================================================ */
.global-search-card {
  position: relative; display: flex; align-items: center;
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 0.7rem 1rem 0.7rem 2.5rem; margin-bottom: 0.75rem;
}
.global-search-card .search-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--text3); font-size: 1rem; pointer-events: none;
}
.global-search-card input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: 0.9rem; color: var(--text); min-width: 0;
}
.global-search-card input::placeholder { color: var(--text3); }

.search-results { display: none; margin-bottom: 1rem; }
.search-results.show { display: block; }

.search-result-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 0.7rem 0.9rem; margin-bottom: 0.5rem;
  cursor: pointer; transition: border-color 0.2s;
}
.search-result-item:hover { border-color: var(--accent); }
.search-result-item:active { transform: scale(0.99); }
.search-result-icon { font-size: 1.2rem; flex-shrink: 0; }
.search-result-text { flex: 1; min-width: 0; }
.search-result-title {
  font-weight: 600; font-size: 0.9rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-sub { font-size: 0.78rem; color: var(--text2); margin-top: 0.1rem; }
.search-result-type {
  flex-shrink: 0; font-size: 0.68rem; font-weight: 600;
  background: var(--bg3); color: var(--text2);
  padding: 0.2rem 0.6rem; border-radius: 20px;
}
.search-empty { text-align: center; padding: 1.5rem 1rem; color: var(--text3); font-size: 0.85rem; }

/* ============================================================
   MEDIKAMENTEN-ERINNERUNGEN (Startseite)
   ============================================================ */
.med-reminders { margin-top: 0.5rem; }
.med-reminders-title {
  font-size: 0.72rem; font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text3); margin-bottom: 0.75rem;
}
.med-reminder-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: white; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem; margin-bottom: 0.6rem; transition: opacity 0.2s;
}
.med-reminder-card.taken { border-left-color: var(--success); opacity: 0.65; }
.med-reminder-icon { font-size: 1.3rem; flex-shrink: 0; }
.med-reminder-info { flex: 1; min-width: 0; }
.med-reminder-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.med-reminder-detail { font-size: 0.78rem; color: var(--text2); margin-top: 0.1rem; }
.med-taken-btn {
  flex-shrink: 0; background: var(--success); color: white; border: none;
  border-radius: 20px; padding: 0.45rem 0.85rem;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: transform 0.15s;
}
.med-taken-btn:active { transform: scale(0.95); }
.med-taken-label { flex-shrink: 0; font-size: 0.78rem; font-weight: 600; color: var(--success); }


/* ============================================================
   VORSORGE-KACHEL + IMPFSERIE-TERMINE
   ============================================================ */
.tile-checkups .tile-icon { background: #cffafe; }

.dose-row { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; }
.dose-row input { width: auto; padding: 0.5rem 0.6rem; font-size: 0.85rem; }
.dose-row .dose-date { flex: 0 0 auto; }
.dose-row .dose-label { flex: 1 1 auto; min-width: 0; }
.dose-row .dose-del {
  flex: 0 0 auto; width: 36px; min-width: 36px; height: 38px;
  background: var(--bg3); border: 1.5px solid var(--border); color: var(--accent2);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.9rem;
}

/* ============================================================
   DRUCK-MENÜ (Bericht-Auswahl)
   ============================================================ */
.print-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4); align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
}
.print-menu-overlay.show { display: flex; }
.print-menu-box {
  background: white; border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto;
  padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.print-menu-title {
  font-weight: 700; font-size: 1.1rem; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.print-menu-close {
  background: var(--bg3); border: none; color: var(--text2); cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.print-menu-item {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin-bottom: 0.5rem;
  cursor: pointer; transition: all 0.15s; font-size: 0.92rem; font-weight: 600;
  color: var(--text);
}
.print-menu-item:hover { border-color: var(--accent); background: #fffbeb; }
.print-menu-item:active { transform: scale(0.99); }
.print-menu-desc {
  font-size: 0.75rem; font-weight: 400; color: var(--text2); margin-top: 0.2rem;
}

/* ── Passwort sichtbar/verbergen (Login) ── */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 1.15rem; line-height: 1; opacity: 0.55; transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pw-toggle:hover, .pw-toggle:focus { opacity: 1; outline: none; }
.pw-toggle.is-visible { opacity: 1; }
