/* forms.css – Buttons, Eingabefelder, Feld-Fehler, Datums-Picker, Aktivitäts-Dropdown */

.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  background: #7ec8f4;
  color: #050d18;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: transform .06s, filter .15s;
}
.btn:hover { filter: brightness(.93) }
.btn:active { transform: scale(.97) }
.btn.alt { background: rgba(126, 200, 244, .10); color: var(--ink); border: 1px solid var(--line) }
.btn.navy { background: var(--navy); color: var(--ink); border: 1px solid var(--line) }
.btn.big { display: block; width: 100%; font-size: 15px; padding: 15px }

/* Ghost-/Outline-Button (transparent, füllt beim Hover) */
.btn.ghost { background: rgba(126, 200, 244, .08); color: var(--ink); border: 1.5px solid var(--line) }
.btn.ghost:hover { background: rgba(126, 200, 244, .15); filter: none }
.btn.ghost .plus { background: transparent; color: inherit; width: auto; height: auto; font-size: 20px }
.btn.ghost .muted { color: inherit; opacity: .7 }

.addbtn { display: flex; align-items: center; justify-content: center; gap: 10px }
.plus {
  width: 26px; height: 26px; border-radius: 50%;
  background: #7ec8f4; color: #050d18;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}

input, select {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  background: var(--card-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  width: 100%;
  outline: none;
}
input:focus, select:focus { border-color: #7ec8f4 }
input::placeholder { color: var(--faint) }
select option { background: #0d1930; color: var(--ink) }

/* Feld-Fehler (Variante B): rotes Feld + Meldung */
.field-bad { border-color: rgba(255, 120, 120, .65); background: rgba(255, 86, 86, .12) }
.field-msg { display: flex; align-items: center; gap: 6px; color: #ff9a9a; font-size: 13px; margin-top: 6px }
.field-msg .ic { color: #ff6b6b }

/* hebt die Karte über das Kalender-Popup an */
.card-elevated { position: relative; z-index: 20 }

/* eigener Datums-Picker */
.datepick { position: relative; width: 100% }
.datefield {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  background: var(--card-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.datefield:hover { background: rgba(126, 200, 244, .08) }
.datefield i { font-style: normal; opacity: .85 }
.datepop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #0d1930;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .50);
}
.datepop.hidden { display: none }
.dphead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px }
.dptitle { font-size: 15px; font-weight: 500 }
.dpnav {
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
}
.dpnav:active { transform: scale(.92) }
.dpweek, .dpgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px }
.dpweek span { font-size: 11px; color: var(--faint); text-align: center; text-transform: uppercase; padding-bottom: 6px }
.dpcell {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1;
  border-radius: 50%; font-size: 14px; cursor: pointer;
}
.dpcell.empty { cursor: default }
.dpcell:not(.empty):hover { background: rgba(126, 200, 244, .15) }
.dpcell.today { outline: 1px solid rgba(126, 200, 244, .6); outline-offset: -1px }
.dpcell.sel { background: #7ec8f4; color: #050d18; font-weight: 700 }

/* Aktivitäts-Vorschläge */
.actpick { position: relative; width: 100% }
.actpop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #0d1930;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .50);
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 200, 244, .3) transparent;
}
.actpop.hidden { display: none }
.actopt { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px }
.actopt:hover { background: rgba(126, 200, 244, .12) }
.actempty { padding: 10px 12px; color: var(--muted); font-size: 14px }

/* Dropdown-Pfeil am Aktivitätsfeld */
.actpick input { padding-right: 34px }
.actpick::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 14px;
  transition: transform .15s;
}
.actpick:has(.actpop:not(.hidden))::after { transform: translateY(-50%) rotate(180deg) }

/* Scrollbalken im Vorschlags-Popup */
.actpop::-webkit-scrollbar { width: 8px }
.actpop::-webkit-scrollbar-track { background: transparent; margin: 6px 0 }
.actpop::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 8px }
.actpop::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .45) }
