
/*Growlog Seite*/
body {
  font-family: 'Fredoka', sans-serif;
  background-color: #5c615c;
  color: #2b2b2b;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  padding-bottom: 80px; /* oder je nach Höhe deiner .bottom-nav */
  max-width: 100vw;

}
/* Stellt sicher, dass alle Container innerhalb bleiben */
body * {
  box-sizing: border-box;
}
/* Falls ein flex-Container zu breit wird */
.row,
.flex-wrap-container {
  flex-wrap: wrap;
  max-width: 100%;
  overflow-x: hidden;
}

.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#start-view {
  padding-bottom: 10px; /* Höhe deiner Bottom-Navigation + etwas Luft */
}

.bg-image {
  width: 100vw;
  height: 100vh;
  object-fit: cover;               /* füllt Bildschirm */
  object-position: center 25%;    /* zeigt mehr vom oberen Bildbereich */
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}


html.modal-open,
body.modal-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}



/*Plantchecker design */
.hero {
  background-color: #e6e6e6;
  padding: 30px 20px 20px;
  text-align: center;
  border-bottom: 4px solid #494849;
  position: relative;
  z-index: 1;
}

.gb-logo {
  height: 140px;
  max-width: 90%;
  margin-bottom: 15px;
  display: block;
  margin: 0 auto 20px;
  object-fit: contain;
}




/* Responsive Strain-Card-Layout */
@media (max-width: 800px) {
  .strain-preview,
  .scroll-strain-list,
  .featured-strains .strain-preview {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .strain-preview .card,
  .scroll-strain-list .card,
  .strain-card,
  .featured-strains .card {
    width: calc(50% - 16px); /* zwei nebeneinander mit Abstand */
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .strain-preview .card,
  .scroll-strain-list .card,
  .strain-card,
  .featured-strains .card {
    width: 100%;
  }
}




.strain-search-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 20px;
}

/* Suchfeld mit runder Box + Lupe links drin */
.strain-search-wrapper {
  position: relative;
  max-width: 320px;
  margin: 20px auto;
}

.strain-search-wrapper input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  font-size: 16px;
  border-radius: 24px;
  border: none;
  background: #f1f5f1;
  color: #2b2b2b;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.search-icon-inside {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #5c7351;
}

/* Buttonreihe – alle gleich breit */
.strain-type-filter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px auto 25px;
  max-width: 360px;
}

.strain-type-filter-row button {
  flex: 1 1 calc(50% - 10px);
  padding: 10px 0;
  font-size: 14px;
  border: none;
  border-radius: 18px;
  background-color: #383838;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: background-color 0.2s ease;
}

.strain-type-filter-row button:hover {
  background-color: #6c8460;
}



.strain-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 20px auto 10px;
  max-width: 95%;
}

.strain-toolbar .filter-btn,
.strain-toolbar .filter-select {
  padding: 10px 14px;
  font-size: 0.95em;
  border-radius: 14px;
  border: 2px solid #1e1f1d;
  background: rgba(255, 255, 255, 0.08);
  color: #080808;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 160px;
  margin-bottom: 6px;
}

/* Responsive: auf kleineren Geräten untereinander anordnen */
@media (max-width: 600px) {
  .strain-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .strain-toolbar .filter-btn,
  .strain-toolbar .filter-select {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 400px) {
  .strain-type-filter-row button {
    flex: 1 1 calc(33.33% - 10px);
  }
}

  #pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }

#pagination-controls button {
  background-color: rgba(255, 255, 255, 0.1); /* leicht transparent */
  color: #383838;                             /* GrowBuddy-hellgrün */
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 1em;
  font-weight: bold;
  backdrop-filter: blur(6px);                 /* Glas-Effekt */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

#pagination-controls button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}


#page-indicator {
  font-weight: bold;
  font-size: 1.1em;
  color: #383838; 
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1); /* leicht transparent */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  backdrop-filter: blur(6px); /* Glas-Effekt */
  margin: 0 10px;
  display: inline-block;
}



#neuePflanzePanel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 460px;
  height: 100%;
  background-color: var(--card-bg, #ffffff);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

#neuePflanzePanel.open {
  right: 0;
}

#neuePflanzePanel h2 {
  color: #5c7351;
  margin-top: 0;
}

#neuePflanzePanel label {
  font-weight: bold;
  color: #3e5b36;
  margin-top: 10px;
  display: block;
}

#neuePflanzePanel input,
#neuePflanzePanel select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #5c7351;
  border-radius: 10px;
  font-size: 1em;
  margin-top: 4px;
  margin-bottom: 12px;
  box-sizing: border-box;
  background-color: #fff;
  color: #2b2b2b;
}

#neuePflanzePanel button:not(.close-button) {
  background-color: #5c7351;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  transition: background-color 0.2s ease;
}

#neuePflanzePanel button:not(.close-button):hover {
  background-color: #4b5f41;
}

#neuePflanzePanel .close-button {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.5rem;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  #neuePflanzePanel {
    width: 100%;
    max-width: none;
    border-left: none;
    border-top: 4px solid #5c7351;
  }
}

#strain-sort-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px auto;
  max-width: 95%;
  flex-wrap: wrap;
}

#strain-sort-bar select {
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  background-color: #e9f0eb;
  color: #2b2b2b;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
@media (max-width: 480px) {
  #strain-sort-bar {
    justify-content: flex-end;
    margin: 10px 16px 0 auto;
    max-width: 100%;
  }

  #strain-sort-bar label {
    display: none;
  }

  #strain-sort-bar select {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 10px;
    background-color: #dce8df;
  }
}


/*THC Schieberegler*/
.filter-btn {
  background-color: rgba(255, 255, 255, 0.493);
  color: #222222;
  font-weight: bold;
  padding: 10px 16px;
  font-size: 1em;
  border: 2px solid #4d4e4d;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.filter-btn:hover {
  background-color: rgba(184, 182, 182, 0.61);
  transform: scale(1.03);
}
.thc-dropdown {
  margin: 20px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #3e3f3d;
  border: 2px solid #3e3f3d;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  text-align: center;
}

.thc-label {
  font-weight: bold;
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: 1.1em;
  color: #202020;
}

.thc-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.03);
}



#strain-view {
  padding-bottom: 75px;
}


.strain-preview,
#strain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}
.strain-image-wrapper {
  position: relative;
  display: inline-block;
}


.sticker-badge {
  position: absolute;
  top: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: bold;
  color: #111;
  background-color: #66BB6A;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

.sticker-badge.left {
  right: 20px;
  background-color: #ffd54f; /* Auto */
}

.sticker-badge.right {
  left: 10px;
  background-color: #66BB6A; /* Fem */
}

.strain-card {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  height: 480px; /* oder ein fixer Wert wie 100% wenn im Grid */
  background-color: #f4f1e9;
  border: 1px solid #cbd5c0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 320px;
  margin: 16px auto;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.strain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.strain-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  background: #ccc;
}

.strain-info {
  padding: 12px 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
    font-size: 0.85em;       /* kleiner als normal */
  line-height: 1.4;        /* trotzdem gut lesbar */
  word-break: break-word;
}

.strain-info h4 {
  font-size: 1.2em;
  color: #222; /* statt grün */
  margin: 0 0 4px 0;
  font-weight: bold;
}


.strain-info p {
  font-size: 0.9em;
  margin: 4px 0;
  white-space: normal;
  overflow-wrap: break-word;
  max-height: 80px; /* weiches Limit */
}
.strain-info button {
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #111;
  border: none;
  padding: 10px 16px;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.strain-info button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}



.card.strain-card h3 {
  color: #222;
  margin: 10px 0;
  font-weight: bold;
}
/*Textfarbe übersicht Straincard *Minicards* */
.card.strain-card p {
  font-size: 0.9em;
  margin: 4px 0;
  color: #0f0f0f;
}

.favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5em;
  background-color: white;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.favorite-toggle::before {
  content: "🤍";
}
.favorite-toggle.active::before {
  content: "❤️";
}



.erweitertes-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 5vh 16px;
  overflow-y: auto;
}

.erweitertes-modal-content {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 2px solid #3d3d3d;
  border-radius: 16px;
  padding: 20px;
  max-width: 420px;
  width: 100%;
  color: #070707;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
  animation: fadeInScale 0.25s ease-out;
}



.add-to-growlog-btn {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  color: #111;
  font-weight: bold;
  font-size: 1em;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  margin-top: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  backdrop-filter: blur(6px);
  width: 100%;
  text-align: center;
}

.add-to-growlog-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.02);
}

.growlog-spacer {
  flex-grow: 1;
}

/* Bild-Zoom Modal initial unsichtbar */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.image-modal.show {
  display: flex;
}

.image-modal .image-wrapper {
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  cursor: grab;
}


.image-modal .close-btn {
  position: absolute;
    width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}
/*Button Growlogseite*/
.action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.action-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.slide-down-panel {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e9f0eb;
  z-index: 9998;
  overflow-y: auto;
  padding: 20px;
  transition: top 0.4s ease;
}

.slide-down-panel.open {
  top: 0;
}

footer {
  background-color: #40996d;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  margin-top: 40px;
}

select#filterSelect,
select#sortSelect {
  width: auto;
  max-width: 250px;
  display: inline-block;
}

.modal.fade-in .modal-content {
  animation: fadeInScale 0.25s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.dashboard-header {
  width: 100%;
  margin: 0;
  padding: 16px 10px;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 10;
}







.header-avatar {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}
.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.greeting {
  color: #abb1aa;
  font-size: 1em;
}

.weather-info {
  text-align: right;
  font-size: 1em;
  color: #abb1aa;
}

.weather-info .temp {
  font-weight: bold;
  font-size: 1.2em;
}


@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;   
  }


}

.dashboard-tile {
  width: 100%;
  max-width: 430px;
  min-width: 280px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 18px;
  border-radius: 16px;
  margin: 10px 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  box-sizing: border-box;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 16px;
  padding: 16px;
}




.tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  
}

.tile-icon-img {
  width: 69px;
  height: 69px;
  object-fit: contain;
}

.tile-label {
  font-size: 1.8em;
  font-weight: bold;
  color: #f8f5f5;
    margin-top: 6px;
  margin-bottom: 6px;
}

.dashboard-tile:hover {
  transform: scale(1.05);
}

.tile-icon {
  font-size: 2.4em;
  margin-bottom: 10px;
 
}



.plant-mini-card {
  background: rgba(255,255,255,0.07);
  position: relative;
  border: 1px solid #5c7351;
   color: #2b2b2b;
  border-radius: 8px;
  padding: 6px;
  margin: 0 auto 8px;     /* ⬅️ zentriert die Card */
  width: 100%;
  max-width: 360px;       /* ⬅️ verhindert, dass sie zu breit wird */
  box-sizing: border-box;
    display: flex;
  flex-direction: column;
  align-items: center;  /* ⬅️ das zentriert die Cards */
}



.plant-log-link:hover {
  text-decoration: underline;
}
body.panel-open {
  overflow: hidden;
}
#raeumePanel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background-color: #f4f4f4;
  z-index: 9999;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  #raeumePanel {
    padding: 12px;
  }
}
/*GrowRäume*/
/* Vollbild-Panel */
.fullscreen-page {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 10, 0.85);
  backdrop-filter: blur(12px);
  color: #949b94;
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 100px;
  display: none;
  max-width: 100vw;
  box-sizing: border-box;
}
.fullscreen-page:not(.hidden) {
  display: block;
  animation: slideIn 0.3s ease forwards;
}
@keyframes slideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.raum-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 80px;
}

.raum-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.raum-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #494747;
}

.raum-card p {
  margin: 4px 0;
  font-size: 0.95em;
  color: #cfc;
}

.raum-details {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 10px;
}

.strain-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #222;
}

.plant-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.plant-details h4 {
  margin: 0;
  font-size: 1em;
  color: #eaffea;
}

.stats {
  font-size: 0.85em;
  line-height: 1.4;
  color: #b0d0b0;
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions button {
  background-color: rgba(255, 255, 255, 0.815);
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.actions button:hover {
  background-color: rgba(238, 233, 233, 0.89);
}

.add-btn {
background-color: rgba(255, 255, 255, 0.815);
  color: #111;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  padding: 12px 20px
 }


.mini-close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  font-size: 1.1em !important;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  color: #969292;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 !important;
  z-index: 5;
}


.mini-close-button:hover {
  background: rgba(200, 0, 0, 0.2);
  color: #c00;
}










.growraum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: #fff;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 600px) {
  .raum-details {
    flex-direction: column;
    align-items: flex-start;
  }

   .strain-img,
  .plant-thumb {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
  }

  .plant-details h4 {
    font-size: 1.1em;
    margin: 0 0 4px 0;
  }

  .stats {
    font-size: 0.95em;
    line-height: 1.4;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
  }

  .actions button {
    width: 100%;
  }
}


.log-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 20px;
  margin-top: 20px;
  font-size: 0.95em;
  color: #111;
}

.log-card h3 {
  margin: 0 0 12px 0;
  font-weight: bold;
  color: #222;
  font-size: 1.1em;
}

.log-entry {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #222;
}
.log-entry span {
  font-size: 1.2em;
}



.plant-card {
  background: #f4f1e9;
  color: #222;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.plant-card button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #111;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 0.95em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.plant-card button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/*Raumzuweisung Übersicht Pflanzen*/
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}
.modal-content {
  background: rgb(76, 77, 76);
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  z-index: 1001;
}
@media (max-width: 768px) {
  .modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 16px;
    border-radius: 0 !important;
    overflow-y: auto;
    box-sizing: border-box;
  }
}
.hidden {
  display: none;
}
.modal.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}
.modal2.hidden {
 display: none;
  }
.modal.show {
  display: flex !important;
}


#strain-modal {
  z-index: 1000;
}

#modal-strain-content {
  position: relative;
  z-index: 1001;
}

#phaseDatumModal.modal {
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5vh;
  background-color: rgba(0,0,0,0.75);
}


/* Startdatum wechseln*/
.start-edit {
  text-decoration: underline dotted;
  cursor: pointer;
  color: #3e5b36;
}

.start-date-input {
  font-size: 0.9em;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Alle Pflanzen Anzeigen Button*/

.plant-log-link {
  display: inline-block;
  margin-top: 8px;
  background-color: rgba(239, 240, 239, 0.1);
  color: #e9ebe8;
  font-weight: bold;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 0.95em;
  box-shadow: 0 2px 6px rgba(224, 220, 220, 0.1);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
  text-decoration: none;
  
}

.plant-log-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

#favoritenListe .strain-card {
  background-color: #e9f0eb;
  border: 2px solid #1c3112;
  border-radius: 12px;
  padding: 16px;
  margin: 10px auto;
  max-width: 450px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  color: #2b2b2b;
  display: flex;
  flex-direction: column;
min-height: 460px
}


#favoritenListe .strain-card:hover {
  transform: scale(1.02);
}

#favoritenListe .strain-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #222;
}

#favoritenListe .strain-card h4 {
  font-size: 1.1em;
  color: #3e5b36;
  margin: 6px 0;
}

#favoritenListe .strain-card p {
  font-size: 0.9em;
  color: #2b2b2b;
  margin: 4px 0;
}

#favoritenListe .strain-card button {
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #111;
  border: none;
  padding: 10px 14px;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

#favoritenListe .strain-card button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}


.eintrag-modal {
  background-color: #ffffff;
  color: #222;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 14px rgba(0,0,0,0.15);
  font-family: 'Fredoka', sans-serif;
}
.eintrag-modal h2 {
  margin-top: 0;
  color: #3e5b36;
}
.eintrag-modal label {
  display: block;
  margin-top: 14px;
  margin-bottom: 4px;
  font-weight: bold;
  color: #3e5b36;
}
.eintrag-modal input,
.eintrag-modal select,
.eintrag-modal textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #5c7351;
  border-radius: 10px;
  font-size: 1em;
  margin-bottom: 10px;
  box-sizing: border-box;
  background-color: #f4f1e9;
  color: #222;
}
.eintrag-modal textarea {
  resize: vertical;
  min-height: 60px;
}
.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.modal-actions button {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  background-color: #669966;
  color: white;
  transition: background-color 0.2s ease;
}
.modal-actions button:hover {
  background-color: #4d7f4d;
}





.tile-left {
  font-size: 2.2em;
  padding-right: 14px;
  flex-shrink: 0;
}
.tile-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;  /* 👈 Inhalte starten oben */
  height: 100%;
}





.tile-subcards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
   align-items: center;
}

.room-mini-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  border: 1px solid #5c7351;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  color: rgb(109, 92, 92);
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
}







.mini-room-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  border: 1px solid #5c7351;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  color: rgb(255, 255, 255);
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  position: relative; /* ❗ nötig für Button-Position */
}
.klima-box {
  background: #cfe7d0;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 6px 0;
  font-size: 0.85em;
  display: inline-block;
  font-weight: bold;
  color: #2b2b2b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}



.edit-room-btn {
  background: #ccc;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #050505;
  position: relative;
  top: 0px;
align-items: center;
  padding: 6px;
  border-radius: 5px;
  transition: background 0.2s ease;
  z-index: 2;
}

.edit-room-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  color: #333;
}
.tile-title-with-icon {
  display: flex;
  align-items: center;
   justify-content: flex-start;  /* 👈 Inhalte starten oben */
  gap: 6px;
  font-size: 1.9em;
  font-weight: bold;
  margin-bottom: 10px;
}

.tile-icon-img-inline {
  width: 60px;
  height: 60px;
  object-fit: contain;
}


.tile-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* sorgt für zentrierte Buttons */
  gap: 8px;
}

.tile-buttons button {
  min-width: 140px;
}

@media (max-width: 600px) {
  .tile-buttons {
    flex-direction: column;
    align-items: center;
      justify-content: center;
  }

  .tile-buttons button {
    width: 100%;
    max-width: 260px;
  }
}
@media (max-width: 600px) {
.tile-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;  /* 👈 Inhalte starten oben */
  height: 100%;
}


  .tile-center button {
    width: 100%;
    max-width: 280px;
    margin: 6px auto;
  }


}



/*Erweiterte Filter modal*/ 

.modal-label {
  font-weight: bold;
  margin-top: 12px;
  display: block;
}

.modal-select,
.modal-input {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 14px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

.modal-checkboxes label {
  display: block;
  margin: 6px 0;
  font-size: 0.95em;
}

.green-button {
  background-color: #669966;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
}
.green-button:hover {
  background-color: #558855;
}

.gray-button {
  background-color: #ddd;
  color: #333;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
}
.gray-button:hover {
  background-color: #ccc;
}




.timeline-wrapper {
  margin-top: 16px;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}
.timeline-toggle-btn {
  background: #5c7351;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.timeline-toggle-btn:hover {
  background: #3e5b36;
}
.plant-timeline {
  margin-top: 12px;
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.plant-timeline.hidden {
  max-height: 0;
  overflow: hidden;
}
.phase-entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}
.phase-icon {
  font-size: 1.4em;
  margin-right: 10px;
  line-height: 1.2;
}
.phase-info {
  font-size: 0.9em;
  line-height: 1.4;
}



/* Growraum bearbeiten Panel*/

/* Basis (Cards etc. bleiben unverändert) */
.raum-modal {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #2b2b2b;
}

/* === Fullscreen-Overrides NUR für das Panel #raumFormPanel === */
body.modal-open { overflow: hidden; overscroll-behavior: none; }

#raumFormPanel.raum-modal{
  position: fixed; inset: 0; z-index: 9999;
  width: 100vw; height: 100vh;       /* Fallback */
  height: 100dvh;                     /* modernes Mobile */
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff;
  display: flex; flex-direction: column;
  /* iOS Safe Areas */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Inhalt im Panel: kompakt, scrollt intern */
#raumFormPanel .raum-form-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;                      /* dezenter Innenabstand */
  padding-bottom: 12px !important;    /* vorher 80px → unnötig */
  overflow: auto;                     /* nur der Inhalt scrollt */
}

/* Labels: kontrastreicher */
#raumFormPanel .raum-form-body label {
  font-weight: 600;
  color: #334155;                     /* statt sehr hellem Grau */
  margin-bottom: 4px;
}

/* Inputs/Selects: volle Breite, konsistente Ränder */
.raum-form-body input,
#raumFormPanel select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #5c7351;
  border-radius: 10px;
  background: #fff;
  color: #2b2b2b;
  font-size: 1em;
  box-sizing: border-box;
}

/* Raumtyp-Auswahl (unverändert, nur formatiert) */
.raumtyp-auswahl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.raumtyp-option {
  display: inline-block;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.raumtyp-option.selected {
  border: 2px solid #669966;
  background-color: rgba(102, 153, 102, 0.15);
  box-shadow: 0 0 8px rgba(102, 153, 102, 0.4);
}
.raumtyp-option input[type="radio"] { display: none; }
.raumtyp-option img {
  width: 45px;
  height: 45px;
  margin-bottom: 6px;
}
.raumtyp-option span {
  display: block;
  font-size: 0.85em;
  font-weight: bold;
  color: #3e5b36;
}

/* Selects im Panel konsistent (überschreibt Basis-Select) */
#raumFormPanel select {
  width: 100%;
  padding: 10px 12px;                 /* gleich wie Inputs */
  border-radius: 10px;
  border: 2px solid #5c7351;          /* gleich wie Inputs */
  margin-bottom: 12px;
  font-size: 1rem;
}

/* Speichern-Button (wie gehabt) */
.speichern-btn {
  padding: 12px;
  font-size: 1.1em;
  background: #5c7351;
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 12px;
}
.speichern-btn:hover { background: #6e8c62; }

/* Raum Buttons */
.raum-plant-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.raum-plant-buttons button {
  background-color: #669966;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 1 1 auto;
  min-width: 110px;
  text-align: center;
}
.raum-plant-buttons button:hover { background-color: #557755; }
@media (max-width: 600px) {
  .raum-plant-buttons { flex-direction: column; }
  .raum-plant-buttons button { width: 100%; margin-right: 0; }
}

/* Details/Stats – kontrastreicher als #ccc */
.raum-plant-details { flex: 1; }
.raum-plant-stats {
  font-size: 0.9em;
  margin: 4px 0;
  color: #6b7280;                     /* besser lesbar als #ccc */
}


/*Buttons*/

/*mehr infos button Strain detail*/
.strain-info-block {
  background: rgba(255,255,255,0.8);
  padding: 12px 16px;
  margin-top: 16px;
  border-radius: 10px;
  font-size: 0.95em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.info-box.grow-hint {
  background: #fff3cd;
  color: #5c3b00;
  padding: 14px;
  margin-top: 18px;
  border: 1px solid #ffeeba;
  border-radius: 10px;
  font-size: 0.95em;
}

.info-link-button {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  color: rgb(179, 41, 41);
  background-color: var(--accent);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: background-color 0.2s ease;
}
.info-link-button:hover {
  background-color: #557755;
}

@media (max-width: 768px) {
  .modal-content {
    padding-bottom: 120px; /* genug Platz über der Bottom Nav */
  }
}

.fav-toggle-btn {
  display: block;
  margin: 8px auto 20px auto; /* oben, rechts, unten, links */
  padding: 10px 16px;
  font-size: 1em;
  font-weight: bold;
  border: 2px solid #5c7351;
  background-color: rgba(255,255,255,0.85);
  color: #5c7351;
  border-radius: 10px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  transition: all 0.2s ease;
}

.fav-toggle-btn.active {
  background-color: #5c7351;
  color: white;
}


.fav-toggle-btn:hover {
  background-color: #6c8460;
  color: white;
}


/* --- MOBILE FIX für DetailCard + ActionButtons --- */

/* Detailkarte mobil größer + ohne schwarze Kanten */
/* Standardkarte (wie jetzt) */
.plant-detail-card {
  width: 100% !important;
  max-width: 95vw;
  margin: 16px auto;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  border: none;
  box-sizing: border-box;
}

/* Vollbildmodus */
.plant-detail-card.fullscreen {
  position: fixed;
  inset: 0;             /* top:0; right:0; bottom:0; left:0 */
  width: 100vw !important;
  max-width: none;
  height: 100vh;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 1200;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* Action-Buttons in einer Spalte untereinander auf Mobil */
@media (max-width: 640px) {
  .action-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .action-grid .full-button {
    grid-column: auto !important;
    width: 100%;
  }
}

/* Sicherheitsnetz, damit Buttons nicht überstehen */
.action-grid button,
.action-grid .full-button {
  width: 100%;
  box-sizing: border-box;
}



.plant-header {
  display: flex;
  align-items: center;

  margin-bottom: 12px;
}

.plant-thumb-large {
  width: 40%;
  max-width: 160px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.plant-title-block h2 {
  margin: 0;
  font-size: 1.2em;
}
.subtext {
  color: #000000;
}

h2 {
  color: #555;
}

.plant-title-block .subtext {
  margin: 0;
  color: #1b1b1b;
  font-size: 0.95em;
}
.plant-title-block h2 {
  font-family: 'Poppins', sans-serif;
  color: #2b2b2b;
  font-size: 1.4em;
  font-weight: 600;
  margin: 0;
}



.plant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.tag {
  background: #e6f0e6;
  color: #2b2b2b;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 0.85em;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.action-button {
  background: white;
  border: 2px solid #5c7351;
  border-radius: 16px;
  padding: 14px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  color: #2b2b2b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s ease;
}

.action-button:hover {
  background: #e5f2e5;
}

.full-button {
  grid-column: span 2;
  background: #5c7351;
  color: white;
}

.action-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.action-list li {
  background: #f3f7f3;
  margin: 4px 0;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.action-list li:hover {
  background: #e5efe5;
}



.verlauf-panel {
  background: #f4f7f4;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.verlauf-panel ul {
  list-style: disc;
  padding-left: 20px;
}

.verlauf-panel li {
  margin: 6px 0;
}
#verlaufContainer {
  display: block;
  background: #eef3ee;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
  z-index: 9999;
  position: relative;
}

.hidden {
  display: none !important;
}




.prognose-box {
  display: flex;
  align-items: center;
  background: #f0f6ef;
  border-left: 5px solid #8bc34a;
  padding: 12px 16px;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.prognose-icon {
  font-size: 1.8em;
  margin-right: 12px;
}

.prognose-info {
  display: flex;
  flex-direction: column;
}

.prognose-label {
  font-weight: bold;
  color: #4a7043;
  font-size: 0.95em;
  margin-bottom: 2px;
}

.prognose-wert {
  font-size: 1.05em;
  color: #333;
}



.verlauf-modal {
  background: #f9fbf8;
  border: 1px solid #c2d2c2;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 20;
}

.verlauf-modal-inner h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.verlauf-modal ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.verlauf-modal li {
  margin-bottom: 6px;
  font-size: 0.95em;
}


.verlauf-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #5c7351;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 1em;
  font-weight: 600;
  margin-top: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.verlauf-close-button:hover {
  background-color: #4a7043;
  transform: scale(1.02);
}

.verlauf-close-button span {
  display: inline-block;
}


.plant-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.plant-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
}

.plant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  cursor: zoom-in;
}





.dashboard-horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 12px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.dashboard-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.dashboard-horizontal-scroll .plant-mini-card {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 240px;
  scroll-snap-align: start;
  background: white;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}










.plant-slider-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0;
}

.plant-slider {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 0 12px;
}

.plant-slider .plant-slide {
  flex: 0 0 85%;
  max-width: 85%;
  scroll-snap-align: center;
  background: white;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  box-sizing: border-box;
  transition: transform 0.2s ease;
}
.plant-slider .plant-slide:active {
  transform: scale(0.98);
}

.raumtyp-option.selected {
  border: 2px solid #669966; /* oder var(--accent) */
  background-color: rgba(102, 153, 102, 0.1);
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(102, 153, 102, 0.5);
}
.buddy-login-modal{display:none;position:fixed;z-index:10050;inset:0;background:rgba(0,0,0,0.6);justify-content:center;align-items:center;animation:fadeIn .25s ease forwards}
.buddy-login-modal .modal-content{background:#fff;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.15);width:100%;max-width:500px;text-align:center;transform:translateY(-12px);animation:slideIn .25s ease forwards;position:relative;background: url("images/WallpaperCanna.png") no-repeat center center}
.buddy-login-modal .close-btn{position:absolute;top:8px;right:10px;background:transparent;border:none;font-size:24px;line-height:1;cursor:pointer;color:#666}
.buddy-login-modal .logo{width:150px;margin-bottom:18px}
.buddy-login-modal h2{margin:0 0 16px;color:#e9e9e9;font-size:20px}
.buddy-login-modal input{width:100%;padding:10px;margin-bottom:12px;border:1px solid #ccc;border-radius:6px;font-size:14px}
.buddy-login-modal .modal-actions{display:flex;gap:10px;margin-top:6px}
.buddy-login-modal .modal-actions button{flex:1;padding:12px;border:none;border-radius:6px;font-size:16px;cursor:pointer}
.buddy-login-modal .login-btn{background:#669966;color:#fff}
.buddy-login-modal .login-btn:hover{background:#557755}
.buddy-login-modal .register-btn{background:#e6e6e6;color:#333}
.buddy-login-modal .register-btn:hover{background:#d2d2d2}
.buddy-login-modal .links{margin-top:12px;font-size:13px}
.buddy-login-modal .links a{color:#e9e9e9;text-decoration:none}
.buddy-login-modal .links a:hover{text-decoration:underline}
.buddy-login-modal .guest-line{margin-top:16px}
.buddy-login-modal .guest-btn{width:100%;padding:10px;background:transparent;color:#34c734;border:1px solid #669966;border-radius:6px;cursor:pointer;font-size:14px}
.buddy-login-modal .guest-btn:hover{background:rgba(102,153,102,.08)}
.buddy-login-modal .form-error{min-height:18px;margin:6px 0 0;font-size:13px;color:#b00020}
.buddy-login-modal input.invalid{border-color:#b00020;outline:none;box-shadow:0 0 0 3px rgba(176,0,32,.08)}
@keyframes shakeX{10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(4px)}30%,50%,70%{transform:translateX(-6px)}40%,60%{transform:translateX(6px)}}
.buddy-login-modal .modal-content.shake{animation:shakeX .35s ease}
.requires-auth[disabled]{opacity:.6;cursor:not-allowed}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideIn{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}
@media (max-width:480px){.buddy-login-modal .modal-content{max-width:92%;padding:22px}.buddy-login-modal .logo{width:175px;margin-bottom:14px}.buddy-login-modal h2{font-size:18px;margin-bottom:12px}.buddy-login-modal .modal-actions button{padding:10px;font-size:14px}}




/*Training*/

.info-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  color: var(--accent, #669966);
  margin-left: 6px;
}
.info-btn:hover {
  color: #88bb88;
}



.training-timing-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08); /* semi-transparent Glas-Effekt */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5ffe5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: background 0.25s ease;
}

.training-timing-box:hover {
  background: rgba(255, 255, 255, 0.15);
}

.training-timing-box h4 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #d9ffd9;
}

.training-timing-box .field {
  margin: 10px 0;
}

.training-timing-box label {
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  color: #434443;
}

.training-timing-box input[type="number"],
.training-timing-box input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: #f1f5f1;
  color: #2b2b2b;
  font-size: 0.95em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2) inset;
}

.flip-row {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.proj-preview {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.2);
  font-size: 0.95em;
  color: #5e755e;
}

.auto-hint {
  margin-top: 8px;
  font-size: 0.85em;
  opacity: 0.85;
  color: #415c41;
}


/* Bilder-Sektion */
.plant-images-section {
  margin-top: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid #e6eedf;
  border-radius: 14px;
}

/* WICHTIG: Native File-Inputs verstecken */
.plant-images-section input[type="file"].plantPhotoInput {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* Olivgrüner Upload-Button (Label) */
.plant-images-section .photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #5c7351;            /* olivgrün */
  color: #fff;
  font-weight: 600;
  border: 1px solid #4f6646;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
  user-select: none;
}

.plant-images-section .photo-btn:hover {
  background: #536a49;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.plant-images-section .photo-btn:active {
  transform: translateY(1px);
}

/* Tastaturfokus schön */
.plant-images-section .photo-btn:focus-visible {
  outline: 3px solid #9ec297;
  outline-offset: 2px;
  border-radius: 12px;
}

/* Datumslabel/Date-Feld */
.plant-images-section .date-label {
  display: inline-block;
  margin-left: 10px;
  margin-right: 6px;
  font-weight: 600;
  color: #3e5b36;
}

.plant-images-section input[type="date"] {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #cfe0ca;
  background: #fff;
  color: #2a2a2a;
}

/* Grid für Bild-Previews (optional) */
.plant-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.plant-image-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}





/* ======= OVERVIEW v2 ======= */
.overview-v2 { 
  padding: 12px; 
}

.overview-v2 .gb-header {
  display:flex;
  justify-content:center;   /* Inhalt mittig */
  align-items:center;
  margin-bottom:10px;
}

.overview-v2 .gb-header h2 {
  margin:0;
  font-size:1.4rem;
  font-weight:700;
  color:#3e5b36;            /* schönes Olivegrün, kannst anpassen */
  text-align:center;
}


.ov2-panels {
  display:grid; gap:12px; margin-bottom:10px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (min-width: 900px){
  .ov2-panels { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.ov2-card {
  background:#fff; border:1px solid rgba(0,0,0,.08);
  border-radius:12px; padding:12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ov2-card.stat { display:flex; flex-direction:column; align-items:flex-start; }
.stat-number { font-weight:800; font-size:1.6rem; line-height:1.1; }
.stat-label  { opacity:.8; }
.stat-sub    { font-size:.9rem; opacity:.7; margin-top:6px; }

.panel-title { font-weight:700; margin-bottom:6px; }
.compact-list { margin:0; padding-left:18px; }
.compact-list li { margin:2px 0; }

.ov2-tabs {
  display:flex;
  align-items:center;
  gap:8px;
  margin:10px 0 8px;
  flex-wrap:wrap;              /* erlaubt Umbruch */
}

.tab-btn {
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.1);
  background:#f7f7f7;
  font-weight:600;
}

.tab-btn.active {
  background:#eaeaea;
}

.ov2-tabs #ov2-search {
  flex:0 0 180px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  padding:8px 10px;
}

/* Abstandshalter für Desktop */
.ov2-spacer { flex:1; }

/* 🔹 Mobile: Input unter Buttons */
@media (max-width: 600px) {
  .ov2-tabs #ov2-search {
    flex:1 1 100%;      /* nimmt ganze Zeile */
    max-width:100%;
    order:99;           /* springt nach unten */
  }
}


.ov2-grid {
  display:grid; gap:12px;
  grid-template-columns: repeat(2, minmax(0,1fr));
   padding-bottom: 20px; /* kleine Luft direkt im Grid */
}
@media (min-width: 800px){
  .ov2-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.ov2-plant {
  background:#fff; border:1px solid rgba(0,0,0,.08);
  border-radius:14px; overflow:hidden; cursor:pointer;
  transition:transform .06s ease;
}
.ov2-plant:active { transform:scale(.99); }
.ov2-thumb {
  position:relative; width:100%; aspect-ratio: 4/3; overflow:hidden; background:#eee;
}
.ov2-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.ov2-body { padding:10px; }
.ov2-name { font-weight:800; line-height:1.2; margin-bottom:2px; }
.ov2-meta { font-size:.9rem; opacity:.8; }
.ov2-badge {
  display:inline-block; font-size:.75rem; padding:2px 8px; border-radius:999px;
  background:#f0f0f0; margin-top:6px;
}

/* mobile overflow safety */
html,body{ overflow-x:hidden; max-width:100%; }

#tab-overview {
  padding-bottom: 60px; /* Höhe der Bottom-Navigation + Luft */
}

/* ==== Overview Buttons ==== */

/* Grundbutton */
.ov2-btn{
  -webkit-appearance:none; appearance:none;
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 12px; border-radius:10px;
  font-weight:600; font-size:.9rem; line-height:1;
  border:1px solid rgba(0,0,0,.1);
  background:#f7f7f7; color:#2b2b2b;
  cursor:pointer; user-select:none;
  transition: background .2s ease, transform .06s ease;
}
.ov2-btn:hover{ background:#eee; transform:translateY(-1px); }
.ov2-btn:active{ transform:scale(.98); }
.ov2-btn:disabled{ opacity:.5; cursor:not-allowed; }

/* Varianten */
.ov2-btn.subtle{ background:#f2f2f2; }
.ov2-btn.success{
  background:#2e7d32; border-color:transparent; color:#fff;
}
.ov2-btn.success:hover{ background:#388e3c; }
.ov2-btn.danger{
  background:#d9534f; border-color:transparent; color:#fff;
}
.ov2-btn.danger:hover{ background:#c9302c; }

/* Outline-Variante (z. B. für Archiv-Leeren im Tab) */
.ov2-btn.outline{
  background:#fff; color:#2b2b2b; border:1px solid rgba(0,0,0,.2);
}
.ov2-btn.outline.danger{ color:#d9534f; border-color:rgba(217,83,79,.4); }
.ov2-btn.outline.danger:hover{ background:#fff5f5; }

/* Container für Karten-Actions */
.ov2-actions{
  display:flex; flex-wrap:wrap; gap:8px;
  margin:10px;
}

/* Archiv-Leeren-Button in Tabs */
.tab-action{
  margin-left:8px;
}






.detailcard.fullscreen {
  position: fixed;
  inset: 0;                 /* top, right, bottom, left = 0 */
  width: 100vw;
  height: 100vh;
  z-index: 1200;            /* über allen anderen Elementen */
  background: var(--bg, #fff);
  overflow-y: auto;         /* Card-Inhalt scrollt */
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* Body lock, wenn Detail offen */
body.detail-open {
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Bottom-Navigation ausblenden, wenn Detail offen */
body.detail-open .bottom-nav {
  display: none;
}




