body {
  margin: 0;
  background-color: #111;
  color: #eee;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
}

.settings-container {
  padding: 20px;
  max-width: 480px;
  margin: auto;
}

.section-title {
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.setting-item {
  background: #1c1c1c;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #ddd;
}

.setting-item .icon {
  margin-right: 10px;
  font-size: 1.2em;
  color: #669966;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #669966;
}

input:checked + .slider:before {
  transform: translateX(20px);
}









.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1c1c1c;
  color: #eee;
  padding: 20px;
  border-radius: 14px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}


.modal-content input {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 16px;
  border: none;
  border-radius: 8px;
  background: #2b2b2b;
  color: #fff;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
}




.modal-actions button {
  flex: 1;
  padding: 10px 0;
  margin: 0 5px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  color: #fff;
  background-color: #2a2a2a;
  transition: background 0.2s ease;
  cursor: pointer;
}

.modal-actions button:hover {
  background-color: #3a3a3a;
}

.modal-actions button:first-child {
  background-color: #669966; /* Speichern */
}

.modal-actions button:first-child:hover {
  background-color: #77aa77;
}

.modal-actions button:last-child {
  background-color: #444;
}

.closeUser-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ccc;
  font-size: 1.6rem;
  font-weight: bold;
  border: 2px solid #666;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}
.close-btn:hover {
  background-color: #ddd;
  border-color: #666;
  color: #000;
}



.avatar-grid {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.avatar-grid img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s;
}

.avatar-grid img:hover {
  border-color: #669966;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-top: 4px;
  margin-bottom: 12px;
  object-fit: cover;
  background: #333;
  display: block;
  margin-left: auto;
  margin-right: auto;
}







:root {
  --bg-color: #f8f8f5;
  --text-color: #2b2b2b;
  --card-bg: #ffffff;
  --accent: #5c7351;
  --tile-bg: #ffffff;
  --tile-text: #2b2b2b;
  --nav-bg: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] {
  --bg-color: #2e2e2e;
  --text-color: #e0e0e0;
  --card-bg: #3a3a3a;
  --accent: #669966;
  --tile-bg: #3a3a3a;
  --tile-text: #e0e0e0;
  --nav-bg: rgba(34, 34, 34, 0.85);
}

/* Anwendung der Variablen */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.dashboard-tile {
  background-color: var(--tile-bg);
  color: var(--tile-text);
}



.card, .modal-content {
  background: var(--card-bg);
  color: var(--text-color);
}




:root {
  --accent: #669966; /* Standard: Olivegrün */
  --button-bg: var(--accent);
  --button-text: white;
  --highlight: #dff2de;
}

[data-theme-color="olive"] {
  --accent: #669966;
}
[data-theme-color="türkis"] {
  --accent: #2db9b9;
}
[data-theme-color="orange"] {
  --accent: #f39c12;
}
[data-theme-color="lila"] {
  --accent: #9b59b6;
}





[data-theme-color="olive"] {
  --bg-color: #f8f8f5;
  --text-color: #2b2b2b;
  --card-bg: #ffffff;
  --tile-bg: #ffffff;
  --tile-text: #2b2b2b;
   --nav-bg: rgba(34, 34, 34, 0.85);
  --btn-bg: #5c7351;
  --btn-text: white;
  --btn-hover: #6c8460;
}

[data-theme-color="türkis"] {
  --bg-color: #f0fbfb;
  --text-color: #004444;
  --card-bg: #ffffff;
  --tile-bg: #e0fafa;
  --tile-text: #004444;
    --nav-bg: rgba(98, 233, 233, 0.95);
  --btn-bg: #2db9b9;
  --btn-text: white;
  --btn-hover: #4cd1d1;
}

/* analog für orange und lila */


button,
.filter-btn,
.add-btn,
.add-to-growlog-btn {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover,
.filter-btn:hover,
.add-btn:hover,
.add-to-growlog-btn:hover {
  background-color: var(--btn-hover);
}



/* Tools und Rechner Style */

.input-field {
  width: 100%; padding: 8px 10px; margin: 6px 0 12px 0;
  border: 1px solid #ccc; border-radius: 6px; font-size: 1em;
  box-sizing: border-box;
}
.green-button {
  background-color: #669966; color: white; padding: 10px 16px;
  border: none; border-radius: 8px; font-size: 1em;
  cursor: pointer; width: 100%;
}
.green-button:hover { background-color: #558855; }
.tool-grid {
  display: flex; flex-direction: column; gap: 10px; margin-top: 10px;
}
.tool-card {
  background: #f4f4f0; padding: 12px; border-radius: 10px;
  cursor: pointer; text-align: center; font-weight: bold;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}
.tool-card:hover { background: #e0e0dc; }




/*Benachrichtigung*/
.notification-option {
  background: #b4adad;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  border-left: 5px solid #666666;
  transition: background 0.2s ease;
}

.notification-option:hover {
  background: #494949;
}

.notification-option label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  width: 100%;
}

.notification-option input[type="checkbox"] {
  transform: scale(1.3);
  accent-color: #669966;
  margin: 0;
}

.notif-label-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.notif-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3em;
  width: 2em;  /* Einheitlich */
  min-width: 2em;
  text-align: center;
}

.notif-text {
  font-size: 1em;
  line-height: 1.4;
  flex: 1;
}





/* 🧊 Graustil Checkbox (modern, rund, animiert) */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #888888;
  border-radius: 6px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
}

input[type="checkbox"]:checked {
  background-color: #444444;
  border-color: #666666;
}

input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

input[type="checkbox"]:checked::before {
  opacity: 1;
}
