.two-pane .site-header { position: relative; z-index: 2; }
.two-pane .header-inner { flex-direction: row; align-items: center; gap: 10px 24px; }
.two-pane .brand-link img { width: 47px; height: 47px; }
.two-pane .brand-link strong { font-size: clamp(1.2rem, 2vw, 1.68rem); }
.two-pane .brand-link small { font-size: .78rem; }
.two-pane :focus-visible { outline: 2px solid var(--aqua-dark); outline-offset: 3px; }
.sidebar-nav { color: var(--navy); }
.sidebar-nav summary, .sidebar-shell > summary { list-style: none; cursor: pointer; }
.sidebar-shell summary::-webkit-details-marker { display: none; }
.sidebar-shell summary::after {
  content: "";
  display: inline-block;
  width: .42em;
  height: .42em;
  margin-left: .7em;
  vertical-align: .18em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.sidebar-shell details[open] > summary::after,
.sidebar-shell[open] > summary::after { transform: rotate(225deg); vertical-align: -.05em; }
.sidebar-nav a[aria-current] {
  background: var(--aqua-soft);
  color: var(--aqua-dark);
}
.sidebar-nav a {
  display: block;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: .91rem;
}
.two-pane { --two-pane-width: min(1430px, calc(100% - 32px)); }
.two-pane .header-inner {
  width: var(--two-pane-width);
  justify-content: flex-start;
}
.side-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  align-items: start;
  width: var(--two-pane-width);
  gap: clamp(18px, 2.7vw, 38px);
  margin: 26px auto 0;
}
.side-content { min-width: 0; }
.side-content main { width: 100%; }
.side-content .hero, .side-content .page-hero { margin-top: 0; }
.sidebar-shell {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.sidebar-shell > summary {
  padding: 13px 15px;
  color: var(--navy);
  font-weight: 750;
}
.sidebar-nav { padding: 11px; }
.sidebar-nav a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sidebar-nav > a { font-weight: 700; }
.sidebar-nav > .eduki-button {
  display: flex;
  margin-top: 8px;
  min-height: 40px;
  box-shadow: none;
}
.sidebar-nav > .side-heading {
  margin: 10px 8px 3px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
}
.sidebar-nav details + details { margin-top: 2px; }
.sidebar-nav summary {
  padding: 5px 8px;
  border-radius: 5px;
  font-size: .9rem;
  font-weight: 700;
}
.sidebar-nav details a { margin-left: 9px; }
.sidebar-school > details { margin-left: 10px; }
.sidebar-nav hr { border: 0; border-top: 1px solid var(--line); margin: 9px 0; }
.two-pane .side-content .hero-visual {
  min-height: 510px;
  padding: clamp(20px, 4vw, 56px);
  gap: clamp(14px, 2.8vw, 38px);
}
.two-pane .side-content .cover-stack { min-height: clamp(290px, 34vw, 430px); }
.sachunterricht-preview { margin-bottom: 48px; }
.sachunterricht-preview .page-hero { margin: 26px 0; }
.sachunterricht-preview .page-hero p:last-child { margin-bottom: 0; }
.subject-covers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}
.subject-covers li {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--navy);
}
.subject-covers img { width: 100%; border-radius: 4px; margin-bottom: 8px; }
.subject-covers strong { display: block; line-height: 1.35; }

@media (min-width: 901px) {
  .sidebar-shell[open] > summary { display: none; }
}
@media (max-width: 1050px) {
  .two-pane .side-content .hero-visual { grid-template-columns: 1fr; }
  .two-pane .side-content .cover-stack { width: min(100%, 420px); min-height: 360px; justify-self: center; }
}
@media (max-width: 900px) {
  .side-layout { grid-template-columns: minmax(0, 1fr); margin-top: 14px; gap: 14px; }
  .sidebar-shell { position: static; max-height: none; }
  .sidebar-nav { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .two-pane .side-content .cover-stack { width: min(100%, 370px); min-height: clamp(220px, 85vw, 395px); }
  .two-pane .cover-stack img:nth-child(2) { top: 16%; }
  .two-pane .cover-stack img:nth-child(3) { top: 27%; }
}
