:root {
  --bg-a: #fff3c4;
  --bg-b: #ffd7e8;
  --card: #ffffff;
  --ink: #2f2340;
  --pink: #ff5ea8;
  --orange: #ff9d42;
  --teal: #37c8b3;
  --lav: #8b7dff;
  --shadow: 0 12px 30px rgba(80, 39, 115, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Fredoka", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 15%, #ffffff66 0 22%, transparent 22%),
    radial-gradient(circle at 92% 85%, #ffffff66 0 20%, transparent 20%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b));
}

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 42px;
}

.hero {
  background: var(--card);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
}

h1 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: clamp(2rem, 5vw, 3.3rem);
  color: var(--pink);
}

.subtitle {
  margin: 8px 0 0;
  font-size: 1.1rem;
}

.layout {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  font-family: "Baloo 2", cursive;
  font-size: 1.6rem;
}

.progress-track {
  height: 24px;
  background: #ffe7f4;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #ffcce5;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--lav));
  transition: width 0.45s ease;
}

.money {
  font-size: 1.2rem;
  margin: 10px 0;
  font-weight: 700;
}

.goal-note {
  margin: 0;
  font-size: 0.95rem;
  color: #5d4d73;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

input, select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 2px solid #f1d9ff;
  font: inherit;
  background-color: #fff;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--lav);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #8b7dff 50%),
    linear-gradient(135deg, #8b7dff 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  cursor: pointer;
}

button:hover { filter: brightness(1.03); }

.error {
  color: #c32257;
  margin-top: 10px;
  font-size: 0.95rem;
}

.ok {
  color: #177a62;
  margin-top: 10px;
  font-size: 0.95rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 360px;
  overflow: auto;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed #ecd7fa;
}

.total-chip {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ecfbf8;
  color: #12715d;
  font-weight: 700;
}

.zelle {
  margin-top: 18px;
  text-align: center;
  background: #fff8ee;
  border: 2px dashed #ffd09c;
  border-radius: 16px;
  padding: 14px;
}

.zelle code {
  background: #fff;
  padding: 3px 8px;
  border-radius: 7px;
}

.footer {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #6d5a89;
}
