@font-face{font-family:"Noto Sans Egyptian Hieroglyphs";src:url("hieroglyphen.ttf") format("truetype");font-display:swap}
:root{
  --deep:#0a211f;--gold:#e2bd79;--paper:#f6ead6;
  --ink:#28241c;--accent:#875523;--line:#d8c6a6;--muted:#605849
}
body{
  container-type:inline-size;
  background:linear-gradient(90deg,#e7ccaa 0%,#f1dfc3 21%,var(--paper) 45%,var(--paper) 55%,#f1dfc3 79%,#e7ccaa 100%);
  color:var(--ink)
}
main{padding-top:0}
.masthead{
  --cover-fade:clamp(7rem,15vw,12rem);
  position:relative;
  isolation:isolate;
  margin-inline:calc((100% - 100vw)/2);
  margin-inline:calc((100% - 100cqw)/2);
  color:#fff7e8
}
.masthead::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(115deg,var(--deep) 20%,#224643 66%,#966332);
  mask-image:linear-gradient(to bottom,#000 calc(100% - var(--cover-fade)),rgb(0 0 0 / .78) calc(100% - var(--cover-fade)*.65),transparent)
}
.masthead:has(.has-image)::before{
  background:linear-gradient(90deg,#041411d9,#071a17bf 37%,#102a2440 62%,transparent 78%),url("titelbild.png") right center/cover no-repeat
}
.cover{
  max-width:1160px;
  margin:auto;
  min-height:35rem;
  display:flex;
  align-items:center;
  padding:3.75rem clamp(1.5rem,6vw,5rem) calc(var(--cover-fade) + 1rem)
}
.cover-inner{max-width:34rem}
.cover h1{font-size:clamp(3rem,8.4vw,6.5rem);line-height:.99;font-weight:500;letter-spacing:-.05em;margin:.2em 0 .18em;text-wrap:balance}
.cover .lead{max-width:32rem;color:#f6e8cb}
.credit{font:500 .92rem/1.5 system-ui,sans-serif;color:var(--gold);margin:.9rem 0 1.5rem}
.cover-link{display:inline-block;margin-top:.45rem;padding:.5rem .95rem;color:#0c2724;background:var(--gold);border:1px solid var(--gold);text-decoration:none;font:600 .95rem/1.5 system-ui,sans-serif}
.cover-link:hover{background:#f0d5a2}
.seal,.topic-symbol{font-family:"Noto Sans Egyptian Hieroglyphs","Segoe UI Historic",serif;font-weight:normal}
.seal{font-size:2.1rem;color:var(--gold);line-height:1}
#inhalt{border-top:0;padding-top:.5rem}
#inhalt h2{margin-top:0}
.chapter-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));list-style:none;padding:0;gap:.6rem;margin:1.15rem 0}
.chapter-links a{display:flex;min-height:3.45rem;align-items:center;gap:.65rem;padding:.4rem .65rem;background:#fff8e8a6;border:1px solid var(--line);text-decoration:none;line-height:1.3}
.chapter-links a:hover{background:#fff8e8}
.topic-symbol{color:var(--accent);font-size:1.65em;min-width:1.25em;display:inline-block;vertical-align:middle;line-height:1.25}
section[id^="gruppe-"] h2 .topic-symbol{margin-right:.3em}
.practice{background:#fff7e86b;border-left-color:#9a652e}
#einstieg h2,#quellen h2,#register h2{color:#12332d}
@media(max-width:780px){
  .masthead{
    --art-height:clamp(14rem,71vw,25rem);
    --cover-fade:7.5rem
  }
  .masthead:has(.has-image)::before{
    background:
      linear-gradient(to bottom,transparent 58%,rgb(10 33 31 / .2) 76%,var(--deep) 100%) center top/100% var(--art-height) no-repeat,
      url("titelbild.png") right top/auto var(--art-height) no-repeat,
      var(--deep)
  }
  .cover{display:block;min-height:0;padding:2.5rem 1.65rem calc(var(--cover-fade) + 1.25rem)}
  .cover.has-image{padding-top:calc(var(--art-height) - 1.25rem)}
  .cover h1{font-size:clamp(2.85rem,9vw,4.5rem)}
  .cover .lead{font-size:1.05rem}
}
@media print{body{background:white}.masthead{color:black;margin:0}.cover,.cover.has-image{min-height:auto;padding:0}.masthead::before,.cover-link,.seal{display:none}.cover .lead,.credit{color:#333}}

