:root {
  color-scheme: light;
  --ink: #35291c;
  --muted: #655640;
  --rust: #873f27;
  --mono: "Courier New", monospace;
  --serif: Georgia, "Times New Roman", serif;
  --edge: polygon(0 21px,5px 21px,5px 8px,13px 8px,13px 3px,42px 3px,42px 6px,75px 6px,75px 1px,18% 1px,18% 5px,23% 5px,23% 0,38% 0,38% 3px,55% 3px,55% 0,68% 0,68% 5px,73% 5px,73% 2px,85% 2px,85% 6px,91% 6px,91% 2px,calc(100% - 15px) 2px,calc(100% - 15px) 6px,calc(100% - 5px) 6px,calc(100% - 5px) 17px,100% 17px,100% 19%,calc(100% - 3px) 19%,calc(100% - 3px) 26%,100% 26%,100% 61%,calc(100% - 3px) 61%,calc(100% - 3px) 71%,100% 71%,100% calc(100% - 18px),calc(100% - 6px) calc(100% - 18px),calc(100% - 6px) calc(100% - 7px),calc(100% - 19px) calc(100% - 7px),calc(100% - 19px) 100%,83% 100%,83% calc(100% - 4px),76% calc(100% - 4px),76% 100%,46% 100%,46% calc(100% - 5px),40% calc(100% - 5px),40% 100%,16px 100%,16px calc(100% - 6px),5px calc(100% - 6px),5px calc(100% - 12px),0 calc(100% - 12px),0 82%,3px 82%,3px 76%,0 76%,0 49%,4px 49%,4px 44%,0 44%);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--serif); background: #152e23; isolation: isolate; }
@media screen {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(rgb(8 35 23 / 38%), rgb(5 26 17 / 55%)),
                url("serverkarte.png") center 55% / cover no-repeat #29523c;
    background-blend-mode: normal, luminosity;
  }
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #ba6b26; outline-offset: 3px; }
.icon,.arrow { display:inline-block; flex:none; vertical-align:middle; background-position:center; background-size:contain; background-repeat:no-repeat; image-rendering:pixelated; }
.icon { width:24px; height:24px; }
.icon-paper { background-image:url("sprites/paper.png"); }
.icon-feather { background-image:url("sprites/feather.png"); }
.icon-chest { background-image:url("sprites/chest.png"); }
.icon-grass { background-image:url("sprites/grass.png"); }
.icon-book { background-image:url("sprites/book.png"); }
.arrow { width:16px; height:16px; background-image:url("sprites/arrow.png"); }
.arrow-right { transform:scaleX(-1); }
.skip { position: absolute; z-index: 4; left: 10px; top: -75px; padding: 12px; background: #fff5d6; }
.skip:focus { top: 10px; }
.top { background: #20231d; color: #f0e5c9; border-bottom: 1px solid #555541; box-shadow: 0 3px #171b1766; }
.top-inner { max-width: 1320px; min-height: 64px; margin: auto; padding: 0 clamp(18px,4vw,64px); display: flex; align-items: stretch; gap: 54px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: bold 23px var(--serif); letter-spacing: -.9px; white-space: nowrap; }
.brand .icon { width:32px; height:32px; }
.tabs { display: flex; align-items: stretch; gap: 28px; }
.tabs a { display: flex; align-items: center; gap: 7px; position: relative; text-decoration: none; color: #c3c2af; font: bold 13px var(--mono); }
.tabs .icon { width: 19px; height: 19px; }
.tabs a[aria-current] { color: #f0d69e; }
.tabs a[aria-current]::after { content:""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #c99c55; }
.tabs a:hover, .brand:hover, .crumb a:hover { color: #fff1cc; }
.domain { align-self: center; margin-left: auto; font: 13px var(--mono); display: flex; gap: 9px; align-items: center; color: #c6c8b4; }
.domain .icon { width: 20px; height: 20px; }
.desk { max-width: 848px; margin: 0 auto; padding: 0 14px; }
.toolbar { min-height: 73px; display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 0; gap: 10px; color: #d0cbb4; }
.crumb,.page-controls { display: flex; gap: 11px; align-items: center; font: 12px var(--mono); }
.crumb .icon { width: 19px; height: 19px; }
.crumb a { text-decoration: none; }
.crumb span,.page-controls i { color: #8c917e; font-style: normal; }
.crumb b { font-weight: normal; color: #eee6cf; }
.page-controls { gap: 8px; font-size: 11px; letter-spacing: .4px; }
.turn { display: grid; place-items: center; width: 30px; height: 30px; color: #ddcca3; text-decoration: none; }
.turn[href]:hover { background: #c3b27a30; }
.unavailable { opacity: .27; }
.map { filter: drop-shadow(4px 8px 0 #12160f88) drop-shadow(0 13px 25px #11150f35); padding: 7px; position: relative; isolation: isolate; }
.map::before { content:""; position: absolute; z-index: -1; inset: 0; clip-path: var(--edge); background: repeating-linear-gradient(90deg,#a18660 0 29px,#b39269 29px 57px,#9e805a 57px 71px,#b69b75 71px 104px); }
.sheet { position: relative; clip-path: var(--edge); padding: 38px clamp(20px,5vw,57px) 25px; min-height: 1110px; background-color: #f1e5c7; background-image: url("papier.png"), radial-gradient(ellipse at 52% 34%, #fbf2dc 0%,#f5e9cd 60%,#e8d5af 100%); color: var(--ink); }
.masthead { text-align: center; }
.mast-logo { display: flex; align-items: center; justify-content: center; gap: clamp(12px,3vw,38px); }
.mast-logo img { display: block; width: min(79%,535px); height: auto; }
.diamond { display: inline-block; width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); }
.mast-logo .diamond { background: #745d3c; width: 7px; height: 7px; box-shadow: 4px -4px 0 -2px #a08662,-4px 4px 0 -2px #a08662; }
.subtitle { margin: 11px 0 19px; font: italic 16px var(--serif); letter-spacing: .25px; }
.issue-meta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; border-top: 3px double #6a583f; border-bottom: 1px solid #8f7d60; padding: 9px 0 8px; font: 11px var(--mono); letter-spacing: .35px; }
.issue-meta strong { justify-self: start; text-transform: uppercase; }
.issue-meta span { justify-self: end; }
.category { display: flex; align-items: center; gap: 8px; color: var(--rust); font: bold 11px var(--mono); letter-spacing: 1.8px; text-transform: uppercase; margin: 31px 0 10px; }
.category span { width: 7px; height: 7px; background: var(--rust); }
h1 { margin: 0; font-size: clamp(32px,4.55vw,60px); line-height: 1.04; letter-spacing: -.052em; text-wrap: balance; }
.lead { font: 19px/1.48 var(--serif); margin: 12px 0 20px; color: #544430; }
figure { margin: 0 0 20px; }
.picture { padding: 3px; border: 1px solid #8e7957; }
.picture img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
figcaption { font: italic 13px/1.45 var(--serif); color: var(--muted); margin: 6px 0 0; display: flex; align-items: baseline; gap: 8px; }
figcaption b { font: bold 10px var(--mono); text-transform: uppercase; white-space: nowrap; color: var(--rust); }
.copy { font: 17px/1.65 var(--serif); }
.copy p { margin: 12px 0; }
.copy > p:first-child::first-letter { float: left; font: bold 3.4em/.85 var(--serif); padding: .09em .09em 0 0; color: #6d3c27; }
.copy h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.04em; margin: 20px 0 6px; }
.colophon { display: flex; gap: 9px; align-items: center; font: italic 13px var(--serif); color: #74634d; margin: 24px 0 14px; }
.colophon .icon { width: 17px; height: 17px; }
.colophon .diamond { width: 3px; height: 3px; }
.paperfoot { display: flex; align-items: center; justify-content: space-between; border-top: 3px double #938163; padding-top: 14px; font: 11px var(--mono); color: var(--muted); }
.paperfoot a,.missing a { display: inline-flex; align-items: center; gap: 9px; color: var(--rust); text-decoration: none; font-weight: bold; padding: 6px 0; }
.paperfoot a:hover,.missing a:hover { text-decoration: underline; }
.inventory { max-width: 640px; margin: 0 auto; padding: 29px clamp(14px,4vw,34px); color:#33372e; background:#cac9b9; border: 4px solid; border-color:#f2efdb #686b5d #686b5d #f2efdb; outline: 3px solid #22251e; box-shadow: 6px 8px #10140e66; }
.inventory h1 { font-size: clamp(32px,5vw,45px); }
.inventory p { font-size: 16px; line-height: 1.45; margin: 10px 0 20px; }
.chest {
  max-width: 576px; padding: clamp(10px,2vw,18px); margin-inline:auto;
  background:#c6c6c6; color:#303030; border:4px solid;
  border-color:#fff #555 #555 #fff; outline:3px solid #151515;
  box-shadow:6px 7px 0 #17130ea3;
}
.chest h1 { font: bold clamp(18px,3vw,24px)/1.2 var(--mono); letter-spacing:-.055em; }
.month { display:flex; align-items:center; justify-content:space-between; margin:8px 0 2px; }
.month h2 { margin:0; font:bold clamp(14px,2.5vw,17px) var(--mono); }
.month .turn { color:#363636; width:36px; height:36px; }
.month .turn[href]:hover { background:#aaa; }
.week,.slots { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); }
.week span { text-align:center; font:bold 12px var(--mono); padding:5px 0; }
.slot { aspect-ratio:1; position:relative; display:grid; place-items:center; background:#8b8b8b;
  border:2px solid; border-color:#373737 #fff #fff #373737; }
.slot:not(.empty) { background-color:#9c9c9c; }
.occupied { text-decoration:none; }
.slot b { position:absolute; right:2px; bottom:1px; color:#fff; font:bold clamp(12px,2.4vw,18px)/1 var(--mono); text-shadow:1px 1px #202020,2px 2px #202020; }
.occupied .icon { width:79%; height:79%; }
.occupied:hover { box-shadow:inset 0 0 0 2px #c6c6c6; }
.occupied:focus-visible { outline:3px solid #37234c; outline-offset:-3px; }
.issue-list { margin-top:14px; font: bold 13px var(--mono); }
.issue-list summary { cursor:pointer; padding:6px 0; }
.issue-list summary:hover { text-decoration:underline; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid #9b9d8d; }
.list a { display: flex; align-items: center; gap: 12px; padding: 10px 3px; text-decoration: none; }
.list a:hover strong { text-decoration: underline; }
.list a span { display: grid; gap: 3px; }
.list small { font: 11px var(--mono); }
.list strong { font: bold 17px var(--serif); }
.list .arrow { margin-left: auto; }
.missing { margin-top: 80px; }
@media(min-width: 900px) { .sheet { min-height: 1145px; } }
@media(max-width: 680px) {
  .top-inner { min-height: 57px; gap: 23px; padding: 0 16px; }
  .tabs { gap: 16px; } .domain { display: none; }
  .brand { font-size: 20px; gap: 6px; } .brand .icon { width: 25px; height: 25px; }
  .desk { padding: 0 8px; } .toolbar { min-height: 52px; }
  .sheet { padding: 28px 5% 20px; min-height: 0; } .category { margin-top: 23px; }
  .subtitle { font-size: 14px; margin: 10px 0 14px; }
  .issue-meta { font-size: 10px; gap: 4px; letter-spacing: 0; }
  .lead { font-size: 17px; } .copy { font-size: 16px; }
  .inventory { width: calc(100% - 10px); margin-inline: auto; } .page-controls { gap: 1px; }
}
@media(max-width: 420px) {
  .top-inner { gap: 14px; justify-content: space-between; } .tabs a { font-size: 12px; gap: 4px; }
  .tabs { gap: 12px; } .tabs .icon { width: 15px; height: 15px; }
  .issue-meta { grid-template-columns: auto 1fr; text-align: right; } .issue-meta span { grid-column: 1/-1; justify-self:center; font-size: 9px; }
  .crumb { gap: 6px; font-size: 11px; } .page-controls { font-size: 10px; }
  .week span { font-size: 10px; }
}
@page { size: A4 portrait; margin: 14mm; }
@media print {
  body { background: white; } .top,.toolbar,.paperfoot,.skip { display:none; }
  .desk,.map,.sheet { max-width:none; margin:0; padding:0; }
  .map { filter:none; } .map::before { display:none; } .sheet { background:white; min-height:0; clip-path:none; }
  figure,.issue-meta,.colophon { break-inside:avoid; } h2 { break-after:avoid; }
  .mast-logo img { max-width:110mm; } h1 { font-size:30pt; } .copy,.lead { font-size:11pt; }
}
.pdf-map .pdf-sheet { min-height:0; padding:clamp(10px,2.5vw,22px); background:#fff; }
.pdf-nav { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; margin-top:8px; font:bold 12px var(--mono); }
.pdf-nav a { grid-column:3; grid-row:1; justify-self:end; padding:10px 0; }
.pdf-nav a,.back-archive { color:inherit; text-underline-offset:3px; }
.toolbar time,.back-archive { font: bold 12px var(--mono); }
.pdf-buttons { grid-column:2; grid-row:1; display:flex; align-items:center; gap:4px; }
.pdf-buttons button { width:44px; height:44px; background:transparent; border:0; color:var(--rust); cursor:pointer; }
.pdf-buttons button:disabled { opacity:.28; cursor:default; }
.pdf-buttons button:enabled:hover { background:#a68e6133; }
.pdf-buttons button:focus-visible { outline:2px solid var(--rust); }
#pdf-reader canvas { width:100%; height:auto; display:block; background:white; }
#pdf-reader [hidden] { display:none; }
@media(max-width:480px) {
  .pdf-nav { grid-template-columns:1fr; }
  .pdf-buttons { grid-column:1; justify-self:center; }
  .pdf-nav a { grid-column:1; grid-row:auto; }
}
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
