/* GLOBAL */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Inter", sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-y: auto;
}

/* Farben & Variablen */
:root {
  --bg-main: #0d0d0f;
  --bg-card: rgba(20, 20, 25, 0.7);
  --bg-soft: rgba(255, 255, 255, 0.05);
  --text-primary: #fff;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --accent: #ff2bd6;
  --accent-soft: rgba(255, 43, 214, 0.4);
  --accent-glow: rgba(255, 43, 214, 0.8);
  --danger: #ff4f4f;
  --radius-lg: 14px;
  --radius-pill: 50px;
  --shadow-soft: 0 0 20px rgba(0,0,0,0.4);
  --transition-fast: 0.2s ease;
}

/* Layout */
.app-shell {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* HEADER */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.app-title {
  font-size: 2rem;
  margin: 0;
}

.app-subtitle {
  margin: 0;
  opacity: 0.7;
}

/* Titel & Untertitel pink + Glow */
.app-title {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

.app-subtitle {
  color: var(--accent);
  opacity: 0.9;
  text-shadow: 0 0 10px var(--accent-soft);
}

/* KALENDER */
.calendar-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 22px 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px) saturate(130%);
  margin-bottom: 28px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cal-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cal-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  padding: 12px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
}

.calendar-day:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.calendar-day.today {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 18px var(--accent-glow);
}

.calendar-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}

/*  PINKER PUNKT */
.calendar-day.has-events {
  position: relative;
}

.calendar-day.has-events::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

/* POPUP */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.popup.visible {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.popup-inputs input,
.popup-inputs textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-primary);
}

.popup-save {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
}

.popup-close {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  color: var(--text-primary);
}
.app-title {
  color: var(--accent);
}

.app-subtitle {
  color: var(--accent);
  opacity: 0.9;
}
/* TODO CARD */
.todo-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px) saturate(130%);
  margin-top: 20px;
}

/* Input Row */
.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

#task-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-primary);
  font-size: 1rem;
}

#add-task-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  color: #000;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 0 12px var(--accent-soft);
  transition: var(--transition-fast);
}

#add-task-btn:hover {
  box-shadow: 0 0 18px var(--accent-glow);
}

/* Task List */
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.task-item.completed {
  opacity: 0.5;
  text-decoration: line-through;
}

.checkbox-wrap {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
  margin-right: 12px;
}

.checkbox-wrap-inner {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  display: none;
}

.task-item.completed .checkbox-wrap-inner {
  display: block;
}

.task-text {
  flex: 1;
  font-size: 1rem;
}

/* Delete Button */
.delete-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Footer Row */
.meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.task-count {
  opacity: 0.8;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}
