/* Themes/Color-Palettes */ /* <html class="theme-..."> */
/* Default */
:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;

  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #dbeafe;

  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;

  --primary-hover: #1e40af;
  --primary-active: #1e3a8a;
}

/* Green */
:root.theme-green {
  --bg: #f7faf7;
  --surface: #eef4ee;
  --text: #0f172a;
  --muted: #64748b;
  --border: #d7e3d7;

  --primary: #15803d;
  --primary-strong: #166534;
  --primary-soft: #dcfce7;

  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;

  --primary-hover: #166534;
  --primary-active: #14532d;
}

/* Ocean */
:root.theme-ocean {
  --bg: #f5fbff;
  --surface: #eaf4ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #cfe3f6;

  --primary: #0ea5e9;
  --primary-strong: #0284c7;
  --primary-soft: #e0f2fe;

  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;

  --primary-hover: #0284c7;
  --primary-active: #0369a1;
}

/* Night */
:root.theme-night {
  --bg: #0f1115;
  --surface: #171a21;
  --text: #e5e7eb;
  --muted: #9aa3b2;
  --border: #252a34;

  --primary: #60a5fa;
  --primary-strong: #3b82f6;
  --primary-soft: #1e293b;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --primary-hover: #3b82f6;
  --primary-active: #2563eb;
}

/* Clean */
:root.theme-clean {
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e2e8f0;

  --primary: #111827;
  --primary-strong: #0f172a;
  --primary-soft: #e5e7eb;

  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;

  --primary-hover: #0f172a;
  --primary-active: #020617;
}

/* Cozy */
:root.theme-cozy {
  --bg: #fff6ed;
  --surface: #f7e9db;
  --text: #2b2b2b;
  --muted: #7a6f63;
  --border: #e7dccf;

  --primary: #d97706;
  --primary-strong: #b45309;
  --primary-soft: #fde68a;

  --success: #2f855a;
  --warning: #f59e0b;
  --danger: #c2410c;

  --primary-hover: #b45309;
  --primary-active: #92400e;
}

/* Base: globale Defaults (body, a, img, hr, *, etc.) */
* {
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-top: 100px;
  padding-bottom: 50px;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1 {
  margin: 0;
  margin-bottom: 10px;
  text-align: center;
}

ul {
  padding-left: 1.5em;
}

header {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 100vw;
}


/* Layout: große Container/Struktur (container, section, grid, card) */
.container {
  background: var(--surface);
  border-radius: 10px;
  padding: 20px;
}

.themes {
  display: flex;
  justify-content: right;
  align-items: center;
  height: 60px;
  padding: 10px;
}

.preview {
  width: 40px;
  height: 40px;
  margin: 5px;
  border-radius: 10px;
  cursor: pointer;
}

.selected {
  box-shadow: 0 0 10px 2px var(--text);
}

.default {
  background: #2563eb;
}

.green {
  background: #15803d;
}

.ocean {
  background: #0ea5e9;
}

.night {
  background: #171a21;
}

.clean {
  background: #ffffff;
  border: 2px solid black;
}

.cozy {
  background: #d97706;
}

/* content: text/typo (title, subtitle, paragraph, message) */
.todo__row {
  display: flex;
  justify-content: space-between;
}

.thm-heading {
  font-size: 20px;
  margin: 5px;
  font-weight: bold;
}

.todo-done {
  text-decoration: line-through 1.5px;
}
/* components: form, buttons, inputs, badges, nav, etc. */
/* buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s,
    border-color 0.2s;
}
.btn:hover {
  background: var(--primary-soft);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.listBtns {
  padding: 3px;
  margin: 1px;
}

.delBtn {
  display: inline-block;
  height: 15px;
  width: 15px;
  background-color: var(--danger);
  color: var(--bg);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.sucBtn {
  display: inline-block;
  height: 15px;
  width: 15px;
  background-color: var(--success);
  color: var(--bg);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

/* Variants */
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary-soft);
}

/* Inputs */
.input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px; 
}

.input:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

/* Utilities: kleine Helfer (is-hidden, u-center, u-mb-16) */

/* Browser Fixes: vendor fixes, webkit overrides */
