* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f4f0;
  background-image: radial-gradient(circle, rgba(45,122,79,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #333;
  min-height: 100vh;
}

/* Header */
.header {
  background: #2d7a4f;
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.header h1 {
  font-size: 1.4rem;
  font-weight: 600;
}

/* Auth Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: #2d7a4f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.overlay-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.overlay-card h2 {
  margin-bottom: 0.5rem;
  color: #2d7a4f;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2d7a4f;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: #2d7a4f;
  color: white;
  width: 100%;
}

.btn-primary:hover { opacity: 0.9; }

.btn-danger {
  background: #f44336;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #2d7a4f;
  color: #2d7a4f;
}

.btn-edit {
  background: #e8f5e9;
  border: 1.5px solid #2d7a4f;
  color: #2d7a4f;
  font-weight: 600;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  padding-bottom: 6rem;
}

/* Legend */
.legend {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #666;
}

/* Plant cards */
.plants-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.plant-card {
  background: white;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 8px solid #ccc;
}
.plant-card:active { transform: scale(0.99); }

.plant-card.status-ok       { border-left-color: #4CAF50; }
.plant-card.status-warning  { border-left-color: #FF9800; }
.plant-card.status-overdue  { border-left-color: #f44336; }
.plant-card.status-new      { border-left-color: #9E9E9E; }
.plant-card.plant-card-alt  { background: #f5fbf7; }

.plant-info { flex: 1; min-width: 0; }

.plant-name {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  color: #1a1a1a;
}

.plant-meta {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.2rem;
}
.plant-meta-location,
.plant-meta-rhythm,
.plant-meta-notes {
  line-height: 1.5;
}

.plant-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-icon {
  width: 32px; height: 32px; padding: 0; border: none;
  border-radius: 8px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.1s; font-family: inherit;
}
.btn-icon:active { transform: scale(0.92); }
.btn-icon-edit, .btn-icon-qr, .btn-icon-nfc { background: #e8f5e9; color: #2d7a4f; }
.btn-icon-edit:hover, .btn-icon-qr:hover, .btn-icon-nfc:hover { background: #c8e6c9; }
.btn-icon-delete { background: #ffebee; color: #e53935; }
.btn-icon-delete:hover { background: #ffcdd2; }

/* Add plant form */
.add-form {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-top: 1.25rem;
  display: none;
}

.add-form.visible { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.25rem;
  display: block;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.modal-overlay.visible { display: flex; }

.modal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 360px;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 {
  margin-bottom: 1rem;
  color: #2d7a4f;
}

#qr-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.modal-url {
  font-size: 0.72rem;
  color: #aaa;
  word-break: break-all;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* ─── Plant Page ─── */
.plant-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: #f0f4f0;
}

.plant-icon {
  font-size: 4rem;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px white, 0 0 0 7px rgba(45,122,79,0.25);
}

.plant-page h1 {
  font-size: 1.9rem;
  color: #2d7a4f;
  margin-bottom: 0.4rem;
}

.plant-location {
  color: #888;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.status-badge {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.badge-ok      { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-overdue { background: #ffebee; color: #c62828; }
.badge-new     { background: #f5f5f5; color: #616161; }

.last-watered {
  font-size: 1rem;
  margin-bottom: 2.25rem;
  color: #666;
}

/* Notiz-Schritt (nach Klick auf Gießen) */
.water-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.water-note-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  text-align: center;
  color: #555;
  background: white;
  margin-bottom: 0;
  transition: border-color 0.2s;
}
.water-note-input::placeholder { color: #bbb; }
.water-note-input:focus { outline: none; border-color: #2d7a4f; }

.water-confirm-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-water-confirm {
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
}

.water-cancel-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0.25rem;
  transition: color 0.2s;
}
.water-cancel-btn:hover { color: #555; }

/* Notiz in der Historie */
.history-note {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.2rem;
}

.btn-water {
  background: #2d7a4f;
  color: white;
  border: none;
  border-radius: 99px;
  padding: 1.1rem 2.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, opacity 0.2s;
  box-shadow: 0 4px 18px rgba(45,122,79,0.35);
}

.btn-water:hover  { opacity: 0.92; }
.btn-water:active { transform: scale(0.96); }
.btn-water:disabled { opacity: 0.45; cursor: not-allowed; }

.success-msg {
  color: #2d7a4f;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1rem;
  display: none;
}

.history {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 360px;
}

.history h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaa;
  margin-bottom: 0.6rem;
}

.history-item {
  background: white;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: #666;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.history-month-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #bbb;
  margin: 0.9rem 0 0.35rem;
  padding-left: 0.25rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3rem;
}
.history-month-header:first-child { margin-top: 0; }

.history-toggle-btn {
  width: 100%;
  margin-top: 0.5rem;
  background: none;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: #aaa;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}
.history-toggle-btn:hover { color: #2d7a4f; border-color: #2d7a4f; }

/* Fotos in Pflanzenkarten (Admin) */
.card-photo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.card-photo-empty {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #f0f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Foto auf der Pflanzenseite */
.plant-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px white, 0 0 0 7px rgba(45,122,79,0.25), 0 6px 24px rgba(0,0,0,0.14);
}

.photo-change-btn {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #aaa;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  border: 1px solid #ddd;
  transition: color 0.2s, border-color 0.2s;
}

.photo-change-btn:hover {
  color: #2d7a4f;
  border-color: #2d7a4f;
}

/* Avatar Wrapper (plant.html) */
.plant-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Bearbeiten-Button am Avatar (plant.html) */
.edit-plant-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  background: white;
  color: #2d7a4f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.edit-plant-btn:hover { background: #f0f4f0; }

/* Idee-Button oben mittig (plant.html) */
.idea-btn {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #2d7a4f;
  border-radius: 99px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
  transition: box-shadow 0.2s, background 0.2s;
}
.idea-btn:hover { background: #f0f4f0; box-shadow: 0 4px 14px rgba(0,0,0,0.13); }

/* Schließen-Button (plant.html) */
.close-tab-btn {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  background: white;
  color: #666;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.close-tab-btn:hover { background: #f5f5f5; color: #333; }

.close-hint {
  display: none;
  position: fixed;
  top: 3rem;
  right: 0.75rem;
  background: #fff3e0;
  color: #e65100;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ─── Feature Requests (öffentlich) ─── */
.req-form-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 1.75rem;
}

.req-list-heading {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaa;
  margin-bottom: 0.75rem;
}

.req-done-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ccc;
  margin: 1.25rem 0 0.5rem;
}

.req-card {
  background: white;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 5px rgba(0,0,0,0.07);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-left: 3px solid #2d7a4f;
}

.req-card.req-done {
  border-left-color: #ccc;
  opacity: 0.65;
}

.req-card-content { flex: 1; min-width: 0; }
.req-card-title { font-weight: 600; font-size: 0.92rem; color: #333; }
.req-card-desc  { font-size: 0.82rem; color: #888; margin-top: 0.2rem; }
.req-card-meta  { font-size: 0.75rem; color: #bbb; margin-top: 0.3rem; }

.req-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.req-badge-open { background: #e8f5e9; color: #2d7a4f; }
.req-badge-done { background: #f0f0f0; color: #999; }

/* Link auf plant.html */
.req-suggest-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  text-decoration: none;
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  background: white;
  border: 1.5px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 320px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.req-suggest-link:hover {
  border-color: #2d7a4f;
  box-shadow: 0 4px 14px rgba(45,122,79,0.15);
}
.req-suggest-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.req-suggest-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.req-suggest-text strong {
  font-size: 0.9rem;
  color: #333;
}
.req-suggest-text small {
  font-size: 0.78rem;
  color: #2d7a4f;
}

/* ─── Feature Requests Admin Modal ─── */
.requests-modal-inner {
  max-width: 520px;
  width: 95%;
  text-align: left;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.req-public-link {
  font-size: 0.78rem;
  color: #2d7a4f;
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  border: 1px solid #a5d6a7;
  border-radius: 99px;
  transition: background 0.2s;
}
.req-public-link:hover { background: #e8f5e9; }

.req-admin-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #eee;
  transition: opacity 0.2s;
}
.req-admin-card.req-done { opacity: 0.5; }

/* Custom Checkbox */
.req-admin-check {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.req-admin-check input { display: none; }
.req-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.req-admin-check input:checked + .req-checkmark {
  background: #2d7a4f;
  border-color: #2d7a4f;
}
.req-admin-check input:checked + .req-checkmark::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.req-delete-btn {
  background: none;
  border: none;
  color: #ddd;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
  margin-top: 0.05rem;
}
.req-delete-btn:hover { color: #f44336; background: #ffebee; }

/* ─── Version & Requests (Header) ─── */
.version-badge {
  background: none;
  color: rgba(255,255,255,0.85);
  border: none;
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.version-badge:hover { color: white; }
.version-badge .version-text { display: inline; }
.version-badge .version-icon { display: none; font-size: 1.25rem; }

.requests-badge {
  background: none;
  color: rgba(255,255,255,0.85);
  border: none;
  padding: 0.25rem 0.4rem;
  font-size: 1.25rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}
.requests-badge:hover { color: white; }

@media (max-width: 480px) {
  .version-badge .version-text { display: none; }
  .version-badge .version-icon { display: inline; }
}

.btn-add-plant {
  background: white;
  color: #2d7a4f;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.btn-add-plant:hover { opacity: 0.9; }
.btn-add-plant:active { transform: scale(0.97); }

/* ─── Changelog Modal ─── */
.changelog-modal-inner {
  max-width: 480px;
  width: 95%;
  text-align: left;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.changelog-header h3 { color: #2d7a4f; margin: 0; }

.changelog-version-tag {
  background: #e8f5e9;
  color: #2d7a4f;
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.changelog-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.changelog-tab {
  background: none;
  border: none;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  color: #aaa;
  border-radius: 6px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.changelog-tab:hover { color: #2d7a4f; background: #f0f4f0; }
.changelog-tab.active { color: #2d7a4f; background: #e8f5e9; }

.changelog-pane {
  overflow-y: auto;
  flex: 1;
}

/* Versions-Tab */
.cl-version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  background: #f9f9f9;
  border: 1px solid #eee;
}
.cl-version-row.cl-current {
  background: #e8f5e9;
  border-color: #a5d6a7;
}

.cl-version-info { display: flex; flex-direction: column; gap: 0.1rem; }
.cl-version-name { font-weight: 600; font-size: 0.92rem; color: #333; }
.cl-version-date { font-size: 0.75rem; color: #aaa; }

.cl-type-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cl-type-beta    { background: #fff3e0; color: #e65100; }
.cl-type-release { background: #e8f5e9; color: #2e7d32; }
.cl-type-hotfix  { background: #ffebee; color: #c62828; }

/* Changelog-Tab */
.cl-entry { margin-bottom: 1.25rem; }

.cl-entry-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.cl-current-label {
  background: #2d7a4f;
  color: white;
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  font-weight: 600;
  text-transform: uppercase;
}

.cl-changes {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cl-changes li {
  font-size: 0.85rem;
  color: #555;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.cl-changes li::before {
  content: '·';
  position: absolute;
  left: 0.3rem;
  color: #2d7a4f;
  font-weight: bold;
}

/* Utility */
.error   { color: #f44336; font-size: 0.88rem; margin-top: 0.25rem; }
.hidden  { display: none !important; }

/* Print: nur QR-Code */
@media print {
  body * { visibility: hidden; }
  .modal, .modal * { visibility: visible; }
  .modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }
  .btn { display: none; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .plant-card { flex-wrap: wrap; }
  .plant-actions { width: 100%; justify-content: flex-end; }
}

/* Admin Gießerinnerung */
.watering-reminder {
  background: #fff8e1;
  border-left: 4px solid #FF9800;
  color: #7a4f00;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.watering-reminder.hidden { display: none; }

/* Gieß-Overlay (QR + NFC) */
.nfc-overlay {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.nfc-overlay.hidden { display: none; }

.nfc-note-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  outline: none;
}

.nfc-banner {
  background: #1a6e3c;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.nfc-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nfc-banner-text {
  font-size: 1.2rem;
  font-weight: 600;
}
.nfc-banner-warning {
  font-size: 0.82rem;
  opacity: 0.9;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 0.25rem 0.65rem;
}
.nfc-swipe-hint {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ─── Pflanzenscan-Result ─────────────────────────────────────────────── */
.scan-btn {
  width: 100%;
  margin-top: 0.25rem;
}
.scan-result {
  background: #f0faf4;
  border: 1px solid #b2dfdb;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-top: 0.6rem;
}
.scan-result-name {
  font-weight: 600;
  color: #2d7a4f;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.scan-result-care {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.7;
}

/* ─── Care Badges ─────────────────────────────────────────────────────── */
.plant-care-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.35rem;
}
.care-badge {
  color: #555;
  font-size: 0.78rem;
}

/* Formular-Abschnitt */
.form-section-divider {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2d7a4f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 2px solid #2d7a4f;
  padding-top: 0.85rem;
  margin: 1.25rem 0 0.5rem;
}
.form-section-sub {
  font-weight: 400;
  color: #888;
  text-transform: none;
  letter-spacing: 0;
}

/* Care Badges auf Pflanzenseite: vertikal zentriert */
.plant-page .plant-care-badges {
  flex-direction: column;
  align-items: center;
}

/* ─── Gruppen-Header in der Admin-Übersicht ─── */
.plant-group-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #2d7a4f;
  padding: 0.5rem 0.25rem 0.25rem;
  margin-top: 0.75rem;
  border-bottom: 2px solid #e8f5e9;
}
.plant-group-header:first-child { margin-top: 0; }

/* Label-Badge auf der Pflanzenkarte */
.plant-label-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2d7a4f;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  margin-bottom: 0.2rem;
}

/* ─── Foto-Upload im Edit-Modal ─── */
.photo-upload-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.edit-photo-thumb {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.edit-photo-empty {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  background: #f0f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.photo-upload-btn {
  width: auto;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
}

.photo-source-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.photo-source-picker .btn {
  width: auto;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}

.photo-picker-cancel {
  background: none;
  border: none;
  color: #aaa;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0.25rem;
}
.photo-picker-cancel:hover { color: #555; }

/* ─── Label-Filterleiste ─── */
.label-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.filter-chip {
  background: white;
  border: 1.5px solid #ccc;
  color: #666;
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-chip:hover {
  border-color: #2d7a4f;
  color: #2d7a4f;
}
.filter-chip-active {
  background: #2d7a4f;
  border-color: #2d7a4f;
  color: white;
}

/* Pflege-Abschnitt: Abstand nach unten */
.plant-care-section {
  margin-bottom: 0.5rem;
}

/* Care Toggle Button */
.care-toggle {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: #888;
  cursor: pointer;
  padding: 0;
  margin-top: 0.25rem;
}
.care-toggle.open { color: #2d7a4f; }

/* Water-Card (plant.html) */
.water-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

/* Admin-Link unten (plant.html) */
.admin-hint-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #ccc;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1px solid #eee;
  transition: color 0.2s, border-color 0.2s;
}
.admin-hint-link:hover { color: #2d7a4f; border-color: #c8e6c9; }

/* ── Scan FAB (runder QR-Button) ── */
.scan-fab {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #2d7a4f;
  color: #fff; border: none; cursor: pointer; z-index: 450;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(45,122,79,0.45), 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  user-select: none;
}
.scan-fab:hover { background: #246040; box-shadow: 0 6px 20px rgba(45,122,79,0.55); }
.scan-fab:active { transform: scale(0.93); box-shadow: 0 2px 8px rgba(45,122,79,0.3); }

/* ─── Label-Chips Autocomplete ─── */
.label-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 0.5rem;
}
.label-chips-row.hidden { display: none; }
.label-chip {
  padding: 3px 11px;
  border-radius: 20px;
  background: #e8f5e9;
  color: #2d7a4f;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #b2dfdb;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
  user-select: none;
}
.label-chip:hover { background: #2d7a4f; color: white; border-color: #2d7a4f; }

/* ─── Lucide Icon Größen ─── */
.icon    { width: 16px; height: 16px; vertical-align: middle; flex-shrink: 0; display: inline-block; }
.icon-sm { width: 14px; height: 14px; vertical-align: middle; flex-shrink: 0; display: inline-block; }
.icon-xs { width: 12px; height: 12px; vertical-align: middle; flex-shrink: 0; display: inline-block; }
.icon-lg { width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; display: inline-block; }
