:root{--text:#f0eae0;--gold:#e4a875;--blue:#8dd2c4;--red:#ca6547;--line:#594537;--muted:#c0b5a9;--panel:#14272d;--sans:"Bahnschrift","Segoe UI",sans-serif;--serif:Georgia,serif}
/* Diffused colours from the page illustration continue around the content. */
body {
  --ambient: url("img/sternwarte-licht.webp");
  background: #0b161b;
  isolation: isolate;
  font: 1.06rem/1.65 var(--sans);
}
body:has(.project-hero img[src$="muninkeep-panorama.webp"]) { --ambient: url("img/muninkeep-panorama-licht.webp"); }
body:has(.project-hero img[src$="smtw-panorama.webp"]) { --ambient: url("img/smtw-panorama-licht.webp"); }
body:has(.project-hero img[src$="zodrik-panorama.webp"]) { --ambient: url("img/zodrik-panorama-licht.webp"); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #05101570, #081318ad 50%, #090f1b63),
    linear-gradient(0deg, #071119b3, transparent 75%), var(--ambient) center / 100% 100% no-repeat;
}
body:has(.essay-hero) { --ambient: url("img/einschaetzung-panorama-licht.webp"); }
.mast,.foot{display:flex;align-items:center;justify-content:space-between;gap:1.4rem;flex-wrap:wrap;padding:1.1rem max(5vw,calc((100% - 74rem)/2));border-bottom:1px solid var(--line);background:#0a161a}
.mark{display:flex;gap:.8rem;align-items:center;font:bold 1.35rem Georgia,serif;color:var(--text)}
.mark i{display:grid;place-items:center;height:2.3rem;width:2.3rem;border:3px double #c18b63;color:#dfb28d;transform:rotate(-5deg);font:bold italic 1.6rem Georgia}
.mast a,.track{text-decoration:none}.mast nav{display:flex;gap:.4rem 1.4rem;flex-wrap:wrap}.mast nav a,.foot a{color:#ded7ce;font-size:.97rem}.mast a:hover,.foot a:hover{color:var(--gold)}
.pf{max-width:84rem;padding:0 clamp(1rem,5vw,5rem) 4rem}.pf h1,.pf h2,.pf h3{font-family:Georgia,serif;font-weight:bold;letter-spacing:-.045em;color:var(--text)}.pf h2{font-size:clamp(2rem,4vw,3.2rem)}.pf .kicker{font:600 .83rem/1.4 Consolas,monospace;text-transform:uppercase;color:var(--gold);letter-spacing:.14em}
.block{min-width:0;margin:2.5rem auto}.block section{padding-top:.7rem}.block.narrow{max-width:48rem}.block.plate{background:#172b2e;border:1px solid var(--line);padding:clamp(1rem,3vw,2.5rem)}
/* Illustrated observatory, shared by the opening page and the visual editor. */
.observatory {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: clamp(26rem, 39vw, 36rem);
  background: #081819;
  border: 1px solid #9a805c;
  box-shadow: 0 1rem 3rem #02090980;
}
.observatory-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  z-index: -2;
}
.observatory::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #061719f5, #061719d9 28%, #06171980 43%, transparent 61%);
}
.observatory::after {
  content: "";
  position: absolute;
  inset: .45rem;
  pointer-events: none;
  border: 1px solid #dfbc7c52;
}
.liner {padding: clamp(2rem, 4vw, 4rem); max-width: 35rem; width: 50%;}
.observatory h1 {
  font-size: clamp(3.3rem, 6.3vw, 6.4rem);
  line-height: .98;
  margin: 1rem 0 1.4rem;
}
.observatory h1 em {color: #efca95; font-weight: 400;}
.observatory .intro {color: #ece8dd; line-height: 1.55;}
.hero-actions {display:flex;flex-wrap:wrap;gap:.65rem;}
.action {
  display: inline-flex;
  border: 1px solid #d9b47d;
  padding: .52rem 1.2rem;
  background: #152f30;
  color: #ffe2ae;
  font-weight: 650;
  text-decoration: none;
}
.action:hover {background: #285052; color: white;}
@media (max-width: 48rem) {
  .observatory {display: flex; flex-direction: column; min-height: auto;}
  .observatory-art {position: static; aspect-ratio: 2.15; height: auto; object-position: right center;}
  .observatory::before {display: none;}
  .liner {max-width: none; width: 100%; padding: 1.5rem;}
  .observatory h1 {font-size: clamp(3rem, 10vw, 4.5rem);}
}
/* Scale to the actual text column, including in narrow editor layouts. */
.project-hero .liner, .essay-hero .liner {container-type: inline-size;}
.project-hero h1 {
  font-size: min(14cqi, 5rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.essay-hero h1 {
  font-size: min(11cqi, 4rem);
  text-wrap: balance;
}
.essay-hero .lead {font-size: 1.08rem;}
.tracks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.15rem;margin:1.4rem 0}.track{background:linear-gradient(135deg,#183435,#111f26);border:1px solid #514d42;border-top:2px solid #bc995f;display:block;overflow:hidden;color:var(--text)}.track img{width:100%;height:10.5rem;object-fit:cover;object-position:50% 24%;background:#101314}.track img{object-position:70% center;}.track div{padding:1.2rem}.track p{color:#cdc6ba;margin:0}.track:hover{background:#244044}.pf-shot img{width:100%}.pf-cover{width:100%}.pf-facts th{width:auto}.pf-meter .bar{background:#373833}
.foot{justify-content:center;border-top:1px solid var(--line)}.console{padding-top:2rem}.console h1{font-size:2.6rem;margin:1rem 0}.console form,.controls{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem}.console label{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:wrap}input,button,select{max-width:100%;font:inherit;border:1px solid #897663;border-radius:.2rem;padding:.45rem .65rem;color:var(--text);background:#222522}button,select{cursor:pointer}button:hover{border-color:var(--gold)}.pagelist{list-style:none;padding:0!important}.pagelist li{border-bottom:1px solid var(--line);padding:.6rem 0}.pagelist small{color:var(--muted);margin-left:1rem}.controls{background:#272823;padding:.5rem}.controls button,.controls select{font-size:.88rem}.region{margin:1.5rem 0}.region .block{margin:0 auto;padding:.75rem;border:1px dashed #8a806e}.region .plate{padding:clamp(1rem,3vw,2.5rem)}.preview .controls,.preview #add{display:none}.preview .region .block{padding:0;border:0}.preview .region .plate{padding:clamp(1rem,3vw,2.5rem);border:1px solid var(--line)}.console #edit{margin:1.4rem 0}.console output{color:var(--blue)}
@media(max-width:48rem){.tracks{grid-template-columns:1fr}.track{display:grid;grid-template-columns:6rem 1fr}.track img{height:100%;max-height:11rem}.mast{gap:.7rem}.mast nav{gap:.6rem 1rem}.pf-facts td,.pf-facts th{overflow-wrap:anywhere}.pf-phones{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


.music {
  position: fixed;
  z-index: 6;
  right: max(.9rem, env(safe-area-inset-right));
  bottom: max(.9rem, env(safe-area-inset-bottom));
  color-scheme: dark;
}
body:has(> .page-scroll) {
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  height:100vh;height:100dvh;min-height:0;overflow:hidden;
}
.page-scroll {overflow:auto;min-height:0;overscroll-behavior:contain;scroll-padding-block:.8rem;}
.foot {grid-row:3;min-height:3.8rem;padding-block:.5rem max(.5rem,env(safe-area-inset-bottom));}
body:has(.music:not([hidden])) .foot {padding-inline-end:max(11rem,10vw);}
.music {bottom:max(.5rem,env(safe-area-inset-bottom));}
@media (max-width:40rem) {
  .foot {justify-content:flex-start;gap:.15rem .8rem;padding-inline-start:1rem;}
  body:has(.music:not([hidden])) .foot {padding-inline-end:4.7rem;}
  .music-deck summary {justify-content:center;}
  .music-deck #deck-name {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
}
.music-deck {display:flex; flex-direction:column; align-items:flex-end;}
.music-deck summary, .deck-panel {
  background:linear-gradient(140deg,#203739,#0b171c 78%);
  border:1px solid #987b54;
  box-shadow:0 .35rem 1.3rem #0008,inset 0 1px #e6c89732;
}
.music-deck summary {
  display:flex;align-items:center;gap:.55rem;width:max-content;margin-left:auto;
  padding:.55rem 1rem;min-height:44px;border-radius:2rem;cursor:pointer;
  color:#efd4a6;font-weight:650;list-style:none;
}
.music-deck summary::-webkit-details-marker {display:none;}
.music svg {width:1.25rem;height:1.25rem;display:block;flex:none;}
.music summary svg,.shuffle-key svg {fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.deck-panel {
  position:absolute;right:0;bottom:calc(100% + .45rem);width:min(19rem,calc(100vw - 2rem));
  display:grid;gap:.55rem;padding:.8rem;border-radius:.9rem;
}
.deck-panel select,.deck-panel audio {width:100%;min-width:0;}
.deck-panel select {text-overflow:ellipsis;color:#e9dbbf;background:#101f23;}
.deck-panel audio {height:2.5rem;}
.deck-keys {display:flex;align-items:center;justify-content:center;gap:.6rem;}
.deck-keys button,.shuffle-key {
  display:grid;place-items:center;position:relative;width:44px;height:44px;
  border-radius:50%;padding:0;color:#e7c99d;background:#17282d;border:1px solid #887353;cursor:pointer;
}
.deck-keys button:disabled {opacity:.4;cursor:default;}
.shuffle-key input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;}
.shuffle-key:has(:checked) {color:#a4ebdc;border-color:#8cccbf;background:#254945;}
.shuffle-key:has(:focus-visible) {outline:2px solid var(--gold);outline-offset:3px;}

.mast .mark img {border-radius:50%;border:1px solid var(--gold);}
.mast a.language {border-inline-start:1px solid var(--line);padding-inline-start:1rem;color:var(--gold);}
.radio-admin {margin:2.4rem 0;padding:1.3rem;border:1px solid var(--line);background:var(--panel);}
.radio-admin ol {padding-inline-start:1.7rem;}
.song-row {display:flex;justify-content:space-between;align-items:center;gap:.8rem;flex-wrap:wrap;}
.song-row button:disabled {opacity:.45;cursor:default;}

.music[hidden] {display:none;}
.song-row details {padding:.35rem 0;}
.song-row summary {cursor:pointer;color:var(--gold);}
.radio-admin ol li {border-bottom:1px solid var(--line);padding:.65rem 0;}
#staerken .pf-card:nth-child(-n+9)::before {
  content:"";
  display:block;
  width:2.75rem;
  height:2.75rem;
  margin-bottom:.75rem;
  background: url("img/strengths.svg") var(--icon-position,0%) center / 900% 100% no-repeat;
}
#staerken .pf-card:nth-child(2) {--icon-position:12.5%;}
#staerken .pf-card:nth-child(3) {--icon-position:25%;}
#staerken .pf-card:nth-child(4) {--icon-position:37.5%;}
#staerken .pf-card:nth-child(5) {--icon-position:50%;}
#staerken .pf-card:nth-child(6) {--icon-position:62.5%;}
#staerken .pf-card:nth-child(7) {--icon-position:75%;}
#staerken .pf-card:nth-child(8) {--icon-position:87.5%;}
#staerken .pf-card:nth-child(9) {--icon-position:100%;}

/* The transparent sky sits over the light sampled from each page illustration. */
.night-sky {
  position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;
}
.night-sky i {position:absolute;display:block;}
.stars-far,.stars-near {
  inset:-4rem;background:url("img/sky-stars.svg") repeat;
  animation:star-drift 62s ease-in-out infinite alternate, star-glow 7s ease-in-out infinite alternate;
}
.stars-far {background-size:380px;--star-low:.32;--star-high:.58;}
.stars-near {
  background-size:670px;background-position:107px 231px;--star-low:.5;--star-high:.92;
  animation-duration:88s,11s;animation-direction:alternate-reverse,alternate;animation-delay:-26s,-4s;
}
.raven {
  width:clamp(8rem,17vw,17rem);aspect-ratio:5/4;background:center/contain no-repeat;
  --star-low:.56;--star-high:.95;animation:star-glow 9s ease-in-out infinite alternate;
}
.raven.resting {left:1vw;top:21%;background-image:url("img/sky-perched.svg");}
.raven.flying {right:1vw;bottom:16%;background-image:url("img/sky-soaring.svg");animation-delay:-5s;}
.meteor {
  top:19%;right:13%;width:6.5rem;height:2px;opacity:0;border-radius:50%;
  background:linear-gradient(90deg,#fff1d6,#b5dfed90 28%,transparent);
  animation:sky-meteor 19s linear infinite;
}
@keyframes star-drift {to {transform:translate(27px,-19px);}}
@keyframes star-glow {from {opacity:var(--star-low);} to {opacity:var(--star-high);}}
@keyframes sky-meteor {
  0%,87% {opacity:0;transform:translate(0,0) rotate(-28deg);}
  88% {opacity:.8;}
  93%,100% {opacity:0;transform:translate(-35vw,18vw) rotate(-28deg);}
}
@media (prefers-reduced-motion:reduce) {
  .night-sky i {animation:none;}
  .stars-far,.stars-near,.raven {opacity:var(--star-low);}
}

.console form.account-form {display:grid;max-width:30rem;gap:1rem;margin-block:1.5rem;}
.console .account-form label {display:grid;gap:.25rem;}
.account-form button {justify-self:start;}

body:has(.project-hero img[src$="suno-panorama.webp"]) { --ambient: url("img/suno-panorama-licht.webp"); }
@media(min-width:72rem){.tracks{grid-template-columns:repeat(3,minmax(0,1fr));}}

body:has(.project-hero img[src$="profil-panorama.webp"]) { --ambient: url("img/profil-panorama-licht.webp"); }
body:has(.project-hero img[src$="koenigstafel-panorama.webp"]) { --ambient: url("img/koenigstafel-panorama-licht.webp"); }
.pf-wide { margin: 1.4rem 0; }
.pf-wide img { display: block; width: 100%; height: auto; border: 1px solid #514d42; }
