.family-home,
.age-guide-detail {
  --guide-surface: #eaf0e5;
  --guide-border: #d5ded0;
}
.family-guide-page main > .breadcrumb,
.age-guide-detail {
  width: min(calc(100% - 48px), 70rem);
}
.family-home {
  width: min(calc(100% - 48px), 70rem);
  margin-inline: auto;
  padding-bottom: clamp(34px, 5.5vw, 64px);
}
.family-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.19fr) minmax(0, 1fr);
  margin-top: clamp(17px, 2.6vw, 32px);
  overflow: hidden;
  border: 1px solid var(--guide-border);
  border-radius: 18px;
  background: var(--guide-surface);
}
.welcome-copy {
  min-width: 0;
  align-self: center;
  padding: clamp(23px, 3.1vw, 39px) clamp(22px, 4vw, 48px);
}
.family-welcome h1 {
  max-width: 18ch;
  margin: 0 0 12px;
  color: var(--ink);
  font: 500 clamp(2.4rem, 4.35vw, 3.6rem)/1.05 var(--serif);
  letter-spacing: -.038em;
  text-wrap: balance;
}
.family-welcome h1 em { color: var(--rose-dark); font-weight: 400; }
.welcome-purpose, .family-welcome .lead {
  max-width: 52ch;
  margin: 0;
  font: 400 1.025rem/1.52 var(--sans);
}
.welcome-purpose { color: var(--ink); }
.family-welcome .lead { margin-top: 7px; color: #57594e; }
.welcome-link, .guide-destination {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font: 650 .98rem/1.4 var(--sans);
  text-decoration: none;
}
.welcome-link { margin-top: 14px; padding: 8px 17px; color: #fff; background: #3b583e; }
.welcome-link:hover { background: #324c36; }
.welcome-picture { position: relative; min-width: 0; display: block; overflow: hidden; }
.welcome-picture img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.home-guide { padding: clamp(22px, 2.5vw, 31px) 0 0; scroll-margin-top: 92px; }
.guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15ch, 23ch);
  align-items: end;
  gap: 4px 22px;
  margin-bottom: 14px;
}
.guide-kicker {
  grid-column: 1/-1;
  margin: 0;
  color: var(--green);
  font: 650 .94rem/1.4 var(--sans);
}
.guide-intro h2 {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(2rem, 3.2vw, 2.8rem)/1.1 var(--serif);
  letter-spacing: -.027em;
}
.guide-instruction {
  margin: 0;
  color: var(--muted);
  font: 400 .94rem/1.45 var(--sans);
}
.guide-years {
  --guide-line: 21px;
  --guide-center: 34px;
  --guide-dot-size: 11px;
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  background: var(--white);
}
.guide-years > .guide-year {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  scroll-margin-top: 86px;
}
.guide-years > .guide-year + .guide-year { border-top: 1px solid #e3e7dd; }
.guide-year::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto -1px var(--guide-line);
  width: 1px;
  background: #bacab7;
  pointer-events: none;
  content: "";
}
.guide-year:first-child::before { top: var(--guide-center); }
.guide-year:last-child::before { bottom: auto; height: var(--guide-center); }
.home-guide summary { list-style: none; cursor: pointer; }
.home-guide summary::-webkit-details-marker { display: none; }
.guide-year > summary {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  align-items: center;
  gap: clamp(12px, 1.55vw, 19px);
  min-height: calc(2 * var(--guide-center));
  padding: 9px 14px 9px 40px;
}
.guide-year > summary::before {
  position: absolute;
  z-index: 2;
  top: calc(var(--guide-center) - .5 * var(--guide-dot-size));
  left: calc(var(--guide-line) + .5px - .5 * var(--guide-dot-size));
  width: var(--guide-dot-size);
  height: var(--guide-dot-size);
  border: 2px solid #758d71;
  border-radius: 50%;
  background: var(--white);
  box-sizing: border-box;
  content: "";
}
.guide-year:first-child > summary { border-radius: 13px 13px 0 0; }
.guide-year:last-child:not([open]) > summary { border-radius: 0 0 13px 13px; }
.guide-year > summary:hover { background: #f3f6ef; }
.guide-year[open] > summary { background: var(--guide-surface); }
.guide-year[open] > summary::before { border-color: var(--green); background: var(--green); }
.guide-year > summary img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 25/18;
  border-radius: 7px;
}
.guide-year-label { display: grid; grid-template-columns: 8.25rem minmax(0, 1fr); gap: 6px 17px; align-items: center; }
.guide-year-label strong { color: var(--ink); font: 600 clamp(1.35rem, 2.15vw, 1.7rem)/1.12 var(--serif); }
.guide-year-label > span { color: #5b6355; font: 400 1rem/1.35 var(--sans); }
.guide-fold { position: relative; display: inline-block; width: 30px; height: 30px; justify-self: center; flex: none; border-radius: 50%; background: #e9efe6; color: #405c41; }
.guide-fold::before, .guide-fold::after { position: absolute; inset: calc(50% - 1px) 28% auto; height: 2px; border-radius: 1px; background: currentColor; content: ""; }
.guide-fold::after { transform: rotate(90deg); }
.home-guide details[open] > summary > .guide-fold::after { display: none; }
.guide-year[open] > summary > .guide-fold { color: white; background: var(--green); }
.guide-year-body { padding: 18px 24px 22px 40px; }
.year-overview { max-width: 71ch; margin: 0 0 14px; color: var(--ink); font: 400 1.09rem/1.55 var(--sans); }
.year-moments { margin: 0; }
.year-moments > div { display: grid; grid-template-columns: minmax(155px, .8fr) minmax(0, 2.15fr); gap: 16px; padding: 7px 0; }
.year-moments dt { color: var(--green); font: 650 .97rem/1.5 var(--sans); }
.moment-age { display: block; color: var(--muted); font: 500 .86rem/1.45 var(--sans); }
.year-moments dd { max-width: 61ch; margin: 0; color: var(--ink); font: 400 1rem/1.55 var(--sans); }
.guide-phase, .year-moments dt { scroll-margin-top: 90px; }
.guide-destination { margin-top: 13px; padding: 8px 14px; border: 1px solid #81977a; background: var(--guide-surface); color: #364f38; }
.guide-destination:hover { border-color: #51694e; background: #e0e6d8; }
.guide-age-note { margin: 12px 0 0; color: var(--muted); font-size: .93rem; }
.home-guide .guide-finder { margin: 5px 0 0; padding: 0; border-bottom: 0; }
.guide-finder > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--green); font-size: .97rem; font-weight: 650; }
.guide-finder .guide-fold { width: 20px; height: 20px; }
.guide-finder form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: end; margin: 6px 0 0; padding: 18px; background: #f1f3e9; border-radius: 6px; }
.guide-finder form label { min-width: 0; font-size: .9rem; }
.guide-finder select { min-height: 44px; width: 100%; font-size: 1rem; }
.guide-finder button { width: max-content; min-height: 44px; }
.family-home :is(summary,a,button,select):focus-visible, .age-guide-detail a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.guide-year > summary:focus-visible { z-index: 3; outline-offset: -3px; }

.age-guide-detail .page-head {
  padding: clamp(19px, 3vw, 35px);
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--guide-surface);
}
.age-guide-detail .page-head h1 { font-size: clamp(2.05rem, 4.1vw, 3.15rem); margin-bottom: 12px; }
.age-contents { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 0 0 15px; border-bottom: 1px solid var(--line); }
.age-contents a, .age-reading a, .age-learning a, .age-pdf { color: #405d40; text-underline-offset: .2em; }
.age-contents a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--guide-border); font-weight: 650; text-decoration: none; }
.age-contents a:hover { background: var(--guide-surface); }
.age-background, .age-print-shelf { padding: clamp(22px, 4vw, 44px) 0; }
.age-guide-detail :is(#einordnung,#age-start,#druckvorlagen) { scroll-margin-top: 88px; }
.age-background > p { max-width: 69ch; font-size: 1.06rem; line-height: 1.65; }
.age-reading, .age-print-picks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.age-reading { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 15px 0; }
.age-reading h3, .age-learning h3 { margin: 0 0 5px; font: 600 1.13rem/1.35 var(--serif); }
.age-reading a { display: block; width: fit-content; padding-block: 4px; font-size: 1rem; }
.age-learning { max-width: 53rem; margin-top: 4px; padding: 14px 17px; border-left: 3px solid #8c9d7f; background: #f1f3e9; }
.age-learning p { margin: 5px 0; }
.age-learning a { display: inline-block; margin-right: 22px; padding: 5px 0; font-weight: 650; }
.age-print-picks article { display: grid; grid-template-columns: 77px minmax(0,1fr); align-items: start; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.age-print-picks img { width: 100%; height: auto; object-fit: contain; border: 1px solid #ddd8cf; }
.age-print-picks h3 { margin: 0 0 7px; font: 550 1.22rem/1.3 var(--serif); }
.age-print-picks h3 a { color: var(--ink); text-underline-offset: .17em; }
.age-print-picks p { margin: 0 0 6px; font: 400 1rem/1.5 var(--sans); }
.age-pdf { display: inline-flex; align-items: center; min-height: 44px; font-size: .96rem; font-weight: 650; }
.age-pick-text h3 a:focus-visible { outline-offset: 2px; }

@media (min-width: 1080px) {
  .family-guide-page .header-inner { width: min(calc(100% - 48px), 70rem); height: 74px; }
}

@media (max-width: 750px) {
  .guide-intro { grid-template-columns: 1fr; gap: 5px; }
  .guide-year-label { grid-template-columns: 1fr; gap: 3px; }
}

@media (min-width: 621px) and (max-width: 830px) {
  .age-reading { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .family-home, .family-guide-page main > .breadcrumb, .age-guide-detail { width: calc(100% - 28px); }
  .family-welcome { grid-template-columns: minmax(0, 1fr) clamp(74px, 23vw, 105px); gap: 6px 12px; padding: 14px; margin-top: 14px; border-radius: 14px; }
  .welcome-copy { display: contents; }
  .family-welcome h1 { grid-area: 1/1; align-self: center; margin: 0; font-size: clamp(1.86rem, 7.2vw, 2.52rem); }
  .welcome-picture { grid-area: 1/2; align-self: center; aspect-ratio: 1; border-radius: 8px; }
  .welcome-purpose, .family-welcome .lead, .welcome-link { grid-column: 1/-1; }
  .welcome-purpose, .family-welcome .lead { font-size: 1rem; line-height: 1.43; }
  .welcome-purpose { margin-top: 4px; }
  .family-welcome .lead { margin-top: 0; }
  .welcome-link { justify-self: start; margin-top: 6px; }
  .home-guide { padding-top: 21px; }
  .guide-intro { margin-bottom: 12px; }
  .guide-years { --guide-line: 14px; --guide-center: 35px; --guide-dot-size: 9px; }
  .guide-year > summary { grid-template-columns: 49px minmax(0, 1fr) 26px; gap: 9px; padding: 9px 9px 9px 28px; }
  .guide-year > summary .guide-fold { width: 25px; height: 25px; }
  .guide-year-label > span { font-size: .93rem; }
  .guide-year-body { padding: 13px 12px 17px 28px; }
  .year-overview { font-size: 1.02rem; margin-bottom: 6px; }
  .year-moments > div { grid-template-columns: minmax(0,1fr); gap: 1px; padding-block: 6px; }
  .guide-destination { margin-top: 9px; }
  .guide-finder form, .age-reading, .age-print-picks { grid-template-columns: minmax(0, 1fr); }
  .age-reading { gap: 12px; }
  .age-print-picks { gap: 10px; }
  .age-print-picks article { grid-template-columns: 60px minmax(0,1fr); padding: 12px; }
}
