.age-page {
  --age-accent: #294b3a;
  --age-soft: #e9f0e6;
  --age-line: #d8e0d3;
  --age-ink: #342f2a;
  width: min(70rem, calc(100% - 48px));
  padding-bottom: clamp(34px, 6vw, 70px);
  color: var(--age-ink);
}
.age-page[data-age-year="zweites-jahr"] {
  --age-accent: #6b3947;
  --age-soft: #f5e9e9;
  --age-line: #ead7db;
}
.age-page[data-age-year="drittes-jahr"] {
  --age-accent: #4e5531;
  --age-soft: #eef0e3;
  --age-line: #dce0cb;
}
.age-page[data-age-year="viertes-jahr"] {
  --age-accent: #304f58;
  --age-soft: #e8f0f1;
  --age-line: #d6e2e5;
}
.age-page a:focus-visible,
.age-choice-input:focus-visible + .age-choice,
.age-expand > summary:focus-visible {
  outline: 3px solid var(--age-accent);
  outline-offset: 3px;
}
.age-hero a:focus-visible { outline-color: #fff7eb; }
.age-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 12px 0;
}
.age-page-return,
.age-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--age-accent);
  font-size: .92rem;
  font-weight: 650;
}
.age-page-return { text-underline-offset: .2em; }
.age-switch { display: flex; flex-wrap: wrap; gap: 4px; }
.age-switch a {
  justify-content: center;
  padding-inline: 12px;
  border-radius: 7px;
  text-decoration: none;
}
.age-switch a:hover { background: var(--age-soft); }
.age-switch a[aria-current="page"] { color: #fffaf3; background: var(--age-accent); }
.age-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  border-radius: 17px;
  overflow: hidden;
  background: var(--age-accent);
  color: #fffbf3;
}
.age-hero-copy { align-self: center; min-width: 0; padding: clamp(24px, 4.4vw, 52px); }
.age-kicker { margin: 0 0 10px; color: #fff6eb; font-size: .91rem; font-weight: 650; }
.age-hero h1 {
  max-width: 20ch;
  margin: 0 0 14px;
  color: #fffbf3;
  font: 500 clamp(2.4rem, 4.5vw, 3.8rem)/1.04 var(--serif);
  letter-spacing: -.033em;
  text-wrap: balance;
}
.age-hero .lead {
  max-width: 48ch;
  margin: 0;
  color: #faf5ea;
  font: 400 1.06rem/1.52 var(--sans);
}
.age-hero-image { display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: center 48%; }
.age-jumps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 15px; }
.age-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff9f0;
  font-size: .91rem;
  font-weight: 650;
  text-underline-offset: .2em;
}
.age-jumps .age-jump-primary {
  padding: 8px 13px;
  border-radius: 7px;
  background: #fff9ef;
  color: var(--age-accent);
  text-decoration: none;
}
.age-jumps .age-jump-primary:hover { background: #e8eadf; }

.age-section { margin-top: clamp(25px, 4.5vw, 53px); }
.age-section h2 {
  margin: 0 0 14px;
  color: var(--age-ink);
  font: 500 clamp(1.9rem, 3.4vw, 2.86rem)/1.12 var(--serif);
  letter-spacing: -.026em;
}
.age-play-field { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.age-play-field legend { margin: 0 0 12px; padding: 0; color: var(--muted); font-size: 1rem; }
.age-workbench {
  position: relative;
  display: grid;
  grid-template-columns: minmax(215px, .78fr) minmax(0, 2fr);
  grid-template-rows: repeat(3, min-content) 1fr;
  align-items: start;
  gap: 9px 18px;
}
.age-choice-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.age-choice {
  grid-column: 1;
  display: grid;
  grid-template-columns: 61px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  min-height: 77px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--age-line);
  border-radius: 10px;
  background: var(--white);
  color: var(--age-ink);
  cursor: pointer;
}
.age-choice:hover, .age-choice-input:checked + .age-choice { background: var(--age-soft); }
.age-choice-input:checked + .age-choice { border-color: var(--age-accent); }
.age-choice-image { display: block; width: 100%; height: 56px; border-radius: 6px; object-fit: cover; }
.age-choice strong { display: block; font-size: .99rem; line-height: 1.29; }
.age-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: .86rem; }
.age-choice-mark { width: 16px; height: 16px; border: 1px solid var(--age-accent); border-radius: 50%; background: var(--white); }
.age-choice-input:checked + .age-choice .age-choice-mark { box-shadow: inset 0 0 0 3px var(--white); background: var(--age-accent); }
.age-recipe {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: none;
  grid-template-columns: minmax(0, 1.45fr) minmax(145px, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
  padding: clamp(17px, 2.4vw, 27px);
  border: 1px solid var(--age-line);
  border-radius: 14px;
  background: var(--white);
}
.age-choice-input:checked + .age-choice + .age-recipe { display: grid; }
.age-facts { margin: 0 0 7px; color: var(--age-accent); font-size: .89rem; font-weight: 700; line-height: 1.4; }
.age-page h3 { margin: 0 0 8px; color: var(--age-ink); font: 600 clamp(1.24rem, 2.1vw, 1.72rem)/1.18 var(--serif); }
.age-recipe h3 { font-size: clamp(1.48rem, 2.65vw, 2.05rem); }
.age-material { margin: 0 0 12px; font-size: .98rem; }
.age-material strong { display: block; margin-bottom: 2px; color: var(--age-accent); }
.age-material p, .age-material ul { margin: 0; }
.age-material ul { padding-inline-start: 1.3rem; }
.age-recipe-steps { margin: 0; padding-left: 1.45rem; }
.age-recipe-steps li { padding-left: 3px; margin: 0 0 7px; line-height: 1.55; }
.age-recipe-steps li::marker { color: var(--age-accent); font-weight: 700; }
.age-recipe-image { display: block; width: 100%; height: auto; aspect-ratio: 1.4; border-radius: 9px; object-fit: cover; }
.age-care { margin: 9px 0 5px; color: #575e52; font-size: .89rem; line-height: 1.5; }
.age-secondary-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  color: var(--age-accent);
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.4;
  text-underline-offset: .21em;
  overflow-wrap: anywhere;
}
.age-secondary-link:hover { text-decoration-thickness: 2px; }

.age-observations { display: flex; flex-wrap: wrap; gap: 13px; }
.age-observation {
  display: flex;
  flex: 1 1 calc((100% - 26px) / 3);
  flex-direction: column;
  min-width: 0;
  padding: clamp(16px, 2vw, 23px);
  border: 1px solid var(--age-line);
  border-radius: 11px;
  background: var(--white);
}
.age-observation p:not(.age-facts) { margin: 0 0 5px; font-size: 1rem; line-height: 1.53; }
.age-observation .age-secondary-link { margin-top: auto; }
.age-everyday-tip {
  display: grid;
  grid-template-columns: minmax(145px,.74fr) minmax(0,2fr);
  gap: 8px 21px;
  align-items: start;
  margin: 14px 0;
  padding: 16px clamp(15px, 2.5vw, 25px);
  border-radius: 10px;
  background: var(--age-soft);
}
.age-everyday-tip h3 { margin: 0; font-size: 1.19rem; }
.age-everyday-tip p { max-width: 70ch; margin: 0; font-size: 1rem; }
.age-expand { margin: 0; padding: 0; border: 1px solid var(--age-line); border-radius: 10px; background: var(--white); }
.age-expand > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 9px 14px;
  color: var(--age-accent);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.age-expand > summary::-webkit-details-marker { display: none; }
.age-expand > summary::after {
  width: 8px;
  height: 8px;
  margin-right: 4px;
  flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}
.age-expand[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.age-further-reading { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 0 14px 14px; }
.age-further-reading h3 { margin: 5px 0; font-size: 1.15rem; }
.age-further-reading ul { margin: 0; padding-left: 1.15rem; }
.age-further-reading li { padding: 4px 0; }
.age-further-reading a, .age-game-list a { color: var(--age-accent); text-underline-offset: .2em; }

.age-sheets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.age-sheet {
  display: grid;
  grid-template-columns: minmax(112px, .69fr) minmax(0,1fr);
  min-width: 0;
  border: 1px solid var(--age-line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--white);
}
.age-sheet-visual { display: grid; place-items: center; padding: 17px 11px; background: var(--age-soft); }
.age-sheet-visual img {
  display: block;
  width: clamp(99px, 88%, 157px);
  max-height: 221px;
  height: auto;
  object-fit: contain;
  border: 1px solid #ccc8bc;
  border-radius: 3px;
  box-shadow: 0 5px 13px #3238311a;
}
.age-sheet-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(13px, 2.1vw, 22px);
  overflow-wrap: anywhere;
}
.age-sheet-meta { display: flex; flex-wrap: wrap; gap: 0 10px; }
.age-sheet-copy > p:not(.age-facts) { margin: 0 0 9px; font-size: .98rem; line-height: 1.51; }
.age-sheet-actions { display: flex; flex-direction: column; align-items: flex-start; margin-top: auto; }
.age-pdf {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  padding: 7px 11px;
  border-radius: 7px;
  background: var(--age-accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.age-pdf:hover { text-decoration: underline; text-underline-offset: .21em; }
.age-catalogue { padding-top: 5px; }
.age-game-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px 19px;
  margin: 0 14px 14px;
  padding: 0;
  list-style: none;
}
.age-game-list li { display: grid; align-content: start; gap: 3px; min-width: 0; border-top: 1px solid var(--age-line); padding: 7px 0; }
.age-game-list small { color: var(--muted); font-size: .87rem; }

@media (min-width: 1080px) {
  .family-guide-page .header-inner { width: min(calc(100% - 48px), 70rem); height: 74px; }
}
@media (max-width: 900px) {
  .age-recipe { grid-template-columns: minmax(0, 1fr); }
  .age-recipe-visual { display: grid; grid-template-columns: minmax(95px,.9fr) minmax(0,1fr); gap: 5px 12px; align-items: start; }
  .age-recipe-image { grid-row: 1/span 2; }
  .age-care { margin: 0; }
  .age-sheet { grid-template-columns: minmax(100px,.63fr) minmax(0,1fr); }
}
@media (max-width: 760px) {
  .age-observation { flex-basis: calc((100% - 13px) / 2); }
  .age-sheets { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 710px) {
  .age-page { width: calc(100% - 28px); }
  .age-page-top { padding: 7px 0; }
  .age-switch { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; gap: 3px; }
  .age-switch a { padding-inline: 5px; text-align: center; }
  .age-hero { grid-template-columns: minmax(0,1fr); border-radius: 13px; }
  .age-hero-copy { padding: 19px 17px 18px; }
  .age-hero h1 { font-size: clamp(2.18rem, 8.6vw, 3.22rem); }
  .age-hero .lead { font-size: 1rem; }
  .age-hero-image { height: auto; min-height: 0; max-height: 252px; aspect-ratio: 2; }
  .age-jumps { gap: 3px 12px; margin-top: 11px; }
  .age-workbench { grid-template-columns: minmax(0,1fr); grid-template-rows: repeat(3,min-content) auto; gap: 7px; }
  .age-recipe { grid-column: 1; grid-row: 4; margin-bottom: 6px; gap: 13px; }
  .age-choice { min-height: 63px; grid-template-columns: 52px minmax(0,1fr) 16px; padding: 6px 10px 6px 6px; }
  .age-choice-image { height: 50px; }
  .age-game-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .age-page-top { gap: 2px; }
  .age-page-return { min-height: 38px; }
  .age-switch a { font-size: .85rem; }
  .age-jumps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 8px; }
  .age-jumps a { justify-content: center; font-size: .88rem; text-align: center; overflow-wrap: anywhere; }
  .age-jumps .age-jump-primary { grid-column: 1 / -1; }
  .age-section h2 { margin-bottom: 10px; }
  .age-recipe-visual { grid-template-columns: minmax(87px,.68fr) minmax(0,1fr); }
  .age-recipe-image { min-height: 85px; }
  .age-everyday-tip, .age-further-reading, .age-game-list { grid-template-columns: minmax(0,1fr); }
  .age-observations { gap: 9px; }
  .age-observation { flex-basis: 100%; }
  .age-sheet-copy { padding: 14px 10px 14px 12px; }
  .age-sheet { grid-template-columns: minmax(86px,.55fr) minmax(0,1fr); }
  .age-sheet-visual { padding: 12px 8px; }
  .age-sheet-visual img { width: min(100%, 120px); }
}
