:root {
  --bg: #f6f1e9; --panel: #fffdf9; --ink: #2b2620; --muted: #7a7064; --line: #e4dccf;
  --accent: #c2562b; --today: #fdf0e4;
  --bee: #d9822b; --otto: #3f7d6e; --aksel: #5b6bb5;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
h1, h2, h3 { margin: 0; font-weight: 650; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 2vh 1.6vw; }
.muted { color: var(--muted); }
.pladsholder { color: var(--muted); font-style: italic; }

/* Forside, variant A (Opslagstavle) */
.forside {
  height: 100vh; padding: 2.2vh 2vw; display: grid; grid-template-columns: 1.7fr 1fr; gap: 2vw;
}
.venstre { display: grid; grid-template-rows: auto 1fr; gap: 2vh; min-height: 0; }
.idag { background: var(--today); font-size: 2.8vh; }
.idag h1 { font-size: 5vh; font-variant-numeric: tabular-nums; }
.idag .muted { margin-bottom: 1vh; }
.dage { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 1vw; min-height: 0; }
.dag { font-size: 1.8vh; overflow: hidden; }
.dag h3 { font-size: 2.1vh; margin-bottom: .6vh; }

.hoejre { display: flex; flex-direction: column; gap: 2vh; min-height: 0; }
.hoejre h2 { font-size: 3.4vh; }
#fordeling { display: flex; flex-direction: column; gap: 2vh; }
.pligt { display: flex; align-items: center; justify-content: space-between; gap: 1vw; font-size: 2.6vh; }
.pligt small { display: block; font-size: 1.7vh; color: var(--muted); font-weight: 400; }
.hjaelp { font-size: 1.6vh; color: var(--muted); }

/* Barnets navn som farvet mærke */
.barn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 999px; color: #fff;
  font-weight: 700; font-size: 3vh; min-width: 6.5em; padding: .25em .9em; cursor: pointer;
  transition: transform .15s, box-shadow .15s; touch-action: manipulation;
}
.barn.Bee { background: var(--bee); } .barn.Otto { background: var(--otto); } .barn.Aksel { background: var(--aksel); }
.barn.loeftet { transform: scale(1.15) translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.25); outline: 4px solid #fff; }
.bytter .barn:not(.loeftet) { animation: vrik .5s infinite alternate; }
@keyframes vrik { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }

.opskrifter-knap {
  margin-top: auto; border-radius: 16px; background: var(--line); color: var(--muted); font-weight: 700;
  font-size: 3.4vh; padding: 1em; text-align: center;
}
.opskrifter-knap small { display: block; font-size: 1.7vh; font-weight: 400; }
