/* ── Reset & base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem 5rem;
}

/* ── Page title ──────────────────────────────────────── */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-align: center;
}

/* ── Grid ────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 960px;
  grid-template-columns: repeat(3, 1fr);
}

/* ── Card ────────────────────────────────────────────── */
.card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
}

.card-accent {
  height: 4px;
  width: 100%;
}

.card-body {
  padding: 1.25rem 1.25rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-day {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.card-status {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ── Today badge ─────────────────────────────────────── */
.card.today {
  border: 2px solid var(--accent);
}

.card.today::after {
  content: "HEUTE";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  line-height: 1;
}

/* ── Accent colors ───────────────────────────────────── */
.card[data-day="monday"]    { --accent: #3b82f6; }
.card[data-day="tuesday"]   { --accent: #22c55e; }
.card[data-day="wednesday"] { --accent: #f97316; }
.card[data-day="thursday"]  { --accent: #a855f7; }
.card[data-day="friday"]    { --accent: #ef4444; }

.card[data-day="monday"]    .card-accent { background: #3b82f6; }
.card[data-day="tuesday"]   .card-accent { background: #22c55e; }
.card[data-day="wednesday"] .card-accent { background: #f97316; }
.card[data-day="thursday"]  .card-accent { background: #a855f7; }
.card[data-day="friday"]    .card-accent { background: #ef4444; }

/* ── Resource boxes ──────────────────────────────────── */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
  max-width: 960px;
  margin: 2.5rem 0 0;
  text-align: center;
}

.res-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 960px;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 1rem;
}

.res-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.res-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.res-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.res-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ── Divider ─────────────────────────────────────────── */
.divider {
  width: 100%;
  max-width: 960px;
  border: none;
  height: 1px;
  background: #e2e8f0;
  margin: 2.5rem 0 0;
}

/* ── Settings icon ───────────────────────────────────── */
.settings-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: #64748b;
  z-index: 100;
}

.settings-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  color: #3b82f6;
}

.settings-btn svg {
  width: 22px;
  height: 22px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1023px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 639px) {
  body { padding: 2rem 1rem 4rem; }
  .card-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 1.35rem; }
}
