 :root {
  --petrol: #2F6F6D;
  --petrol-dark: #1F4D4C;
  --petrol-soft: #E4F0EF;
  --paper: #FFFDF8;
  --ink: #172322;
  --muted: #637270;
  --line: rgba(31, 77, 76, 0.18);
  --heart: #E95C67;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 16px 38px rgba(31, 77, 76, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(47,111,109,0.14), transparent 32rem),
    linear-gradient(160deg, #F9FBF8 0%, #EEF7F5 100%);
  min-height: 100vh;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 22px 16px 42px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(31,77,76,0.18);
  background: white;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 11vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: var(--petrol-dark);
}

.tagline {
  margin: 8px 0 0;
  font-size: 1.02rem;
  color: var(--muted);
  font-weight: 600;
}

.card, .list-card, .today-summary, .praise-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin: 16px 0;
}

.intro-card p { margin: 0; font-size: 1.02rem; line-height: 1.45; }

h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--petrol-dark);
}

.muted {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.4;
}

label {
  display: block;
  margin: 14px 0 7px;
  font-weight: 700;
  color: var(--petrol-dark);
}

input, textarea {
  width: 100%;
  border: 2px solid rgba(31,77,76,0.2);
  border-radius: 18px;
  padding: 13px 14px;
  background: white;
  color: var(--ink);
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--petrol);
  box-shadow: 0 0 0 4px rgba(47,111,109,0.12);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

button, .file-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: white;
  background: var(--petrol);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(31,77,76,0.16);
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
}

button.secondary, .secondary {
  background: var(--petrol-dark);
}

button.ghost {
  color: var(--petrol-dark);
  background: white;
  border: 2px solid var(--line);
  box-shadow: none;
}

.today-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--petrol-dark);
  color: white;
}

.small-label {
  display: block;
  font-size: 0.88rem;
  opacity: 0.78;
  margin-bottom: 2px;
}

.today-summary strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 700;
}

.praise-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  background: #FFF1F2;
  border-color: rgba(233,92,103,0.35);
}

.praise-card.hidden { display: none; }

.heart {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--heart);
  color: white;
  font-size: 1.7rem;
  font-weight: 700;
}

.praise-card p {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.28;
}

.point-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: white;
  margin-bottom: 10px;
}

.point-row:last-child { margin-bottom: 0; }

.point-row.done {
  background: var(--petrol-soft);
}

.check {
  width: 38px;
  height: 38px;
  border: 3px solid var(--petrol);
  border-radius: 12px;
  background: white;
  display: grid;
  place-items: center;
  color: var(--petrol);
  font-size: 1.5rem;
  font-weight: 700;
}

.point-title {
  font-size: 1.18rem;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 22px 8px;
  color: var(--muted);
  font-weight: 600;
}

.edit-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: white;
  margin-bottom: 10px;
}

.edit-title { font-weight: 700; }

.edit-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.edit-actions button {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.danger { background: #C94B4B; }

.button-grid {
  display: grid;
  gap: 10px;
}

.refresh-box {
  text-align: center;
  margin-top: 26px;
  color: var(--muted);
}

.refresh-button {
  background: white;
  color: var(--petrol-dark);
  border: 2px solid var(--line);
  box-shadow: none;
}

.refresh-box p {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .input-row { grid-template-columns: 1fr; }
  .today-summary { align-items: stretch; flex-direction: column; }
  .today-summary button { width: 100%; }
  .edit-item { grid-template-columns: 1fr; }
  .edit-actions { justify-content: flex-start; }
}

.list-card h2 {
  margin-bottom: 14px;
}

.save-feedback {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--petrol-dark);
  font-weight: 700;
}

/* v3: Gut-tu-Punkte gut lesbar in Petrol */
.point-row,
.point-title,
.edit-item,
.edit-title {
  color: var(--petrol-dark);
}

.point-row.done .point-title {
  color: var(--petrol-dark);
}
