/* ============================================================
   THE WORDBORN · Sternkarte v2
   Pergament, Messing, Laternenlicht auf einem Kosmos-Ozean.
   ============================================================ */

@font-face { font-family: "Cinzel"; font-weight: 400; font-display: swap; src: url("assets/fonts/cinzel-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("assets/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-display: swap; src: url("assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-display: swap; src: url("assets/fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); }

:root {
  --deep:      #05080F;
  --parchment: #E6D9BC;
  --parch-dim: #C4B698;
  --brass:     #C99B4A;
  --lantern:   #FFC46B;
  --wood-1:    #2A1D12;
  --ink:       #2B2115;
  --line:      rgba(230, 217, 188, 0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--parchment);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---------- Die Karte ---------- */
.map {
  position: relative;
  min-height: 100vh;
  background: url("img/panorama.jpg") center / cover no-repeat var(--deep);
  overflow: hidden;
}
.map::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 100% at 50% 45%, transparent 40%, rgba(5, 8, 15, 0.78) 100%),
    linear-gradient(rgba(5, 8, 15, 0.35), rgba(5, 8, 15, 0.15) 30%, rgba(5, 8, 15, 0.45));
}

/* ---------- Die baumelnde Laterne ---------- */
.lampimg {
  height: 104px; width: auto; display: block;
  margin-left: -18px;
  transform: rotate(var(--swing, 0deg));
  transform-origin: 50% 8px;
  filter: drop-shadow(0 8px 22px rgba(255, 180, 80, 0.35));
}
#lantern-wrap::before {
  content: "";
  position: absolute;
  left: 0; top: 64px;
  width: 300px; height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 95, 0.30), rgba(255, 170, 60, 0.12) 45%, transparent 70%);
  pointer-events: none;
}
#lantern-wrap {
  position: fixed; z-index: 30;
  pointer-events: none;
  transform-origin: 50% 0;
}
#lantern-wrap svg {
  display: block;
  width: 34px; height: 88px;
  transform: rotate(var(--swing, 0deg));
  transform-origin: 50% 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
#lantern-glow {
  position: absolute;
  left: 17px; top: 44px;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  background: radial-gradient(circle,
    rgba(255, 196, 107, 0.22) 0%,
    rgba(255, 196, 107, 0.10) 32%,
    rgba(255, 196, 107, 0.0) 68%);
  mix-blend-mode: screen;
}

/* ---------- Titelblock & Sprache ---------- */
.masthead {
  position: absolute; z-index: 4;
  top: 2.2rem; left: 50%; transform: translateX(-50%);
  text-align: center; width: max-content; max-width: 92vw;
}
.masthead h1 {
  font-family: "Cinzel", serif; font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: 0.35em; margin: 0;
  color: var(--parchment);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}
.masthead p {
  font-style: italic; margin: 0.4rem 0 0;
  color: var(--parch-dim); font-size: 1.08rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.langtoggle {
  position: fixed; z-index: 7;
  top: 1.1rem; right: 1.4rem;
  font-family: "Cinzel", serif; font-size: 0.72rem; letter-spacing: 0.25em;
  color: var(--brass);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.langtoggle b { color: var(--parchment); font-weight: 700; }

/* ---------- Orte auf der Karte ---------- */
.site {
  position: absolute; z-index: 4;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}
.site img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.65));
  transition: filter 300ms ease, transform 300ms ease;
}
.site figcaption { margin-top: 0.2rem; opacity: 0.85; transition: opacity 300ms ease, transform 300ms ease; }
.site .name {
  display: block;
  font-family: "Cinzel", serif; font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.26em;
  color: var(--parchment);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}
.site .sub {
  display: block;
  font-style: italic; font-size: 0.98rem;
  color: var(--parch-dim);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}
.site:hover img, .site:focus-visible img {
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 34px rgba(255, 196, 107, 0.35)) brightness(1.12);
  transform: translateY(-4px);
}
.site:hover figcaption, .site:focus-visible figcaption { opacity: 1; transform: translateY(-2px); }
.site:focus-visible { outline: 1px solid var(--brass); outline-offset: 6px; }

.site.nebel         { left: 2%;    top: 24%;    width: clamp(11rem, 18vw, 16rem); }
.site.observatorium { left: 17%; bottom: 6%; width: clamp(10.5rem, 16vw, 14rem); }
.site.leuchtturm    { right: 2.5%; top: 31%;    width: clamp(10.5rem, 17vw, 15rem); }
.site.werft         { right: 13%;  bottom: 7%;  width: clamp(11.5rem, 18vw, 16.5rem); }

/* ---------- Die Sternschnuppe (oben links) ---------- */
.shooting-wrap {
  position: absolute; z-index: 4;
  left: 17%; top: 3%;
  width: 180px;
}
.shooting-wrap svg { width: 100%; height: auto; overflow: visible; }

/* ---------- Das Sternbild ---------- */
.constellation {
  position: absolute; z-index: 4;
  left: 50%; top: 13%;
  transform: translateX(-50%);
  width: min(68vw, 1060px);
  margin: 0;
}
.constellation svg { width: 100%; height: auto; overflow: visible; }
.constellation, .shooting-wrap { pointer-events: none; }
.constellation .star, .shooting-wrap .star { pointer-events: auto; }

.arm { stroke: var(--line); stroke-width: 1.1; fill: none; }
.arm.lost { stroke-dasharray: 3 5; }

@keyframes glimmer {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.star .core {
  animation: glimmer 3.8s ease-in-out infinite;
  fill: #FFF7E8;
  filter: drop-shadow(0 0 6px rgba(255, 244, 214, 0.9));
  transition: transform 220ms ease, filter 220ms ease;
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
}
.star .halo {
  fill: none; stroke: rgba(230, 217, 188, 0.45);
  stroke-width: 0.9; stroke-dasharray: 2 3;
  pointer-events: none;
}
.star .hit { fill: transparent; cursor: pointer; }
.star text {
  opacity: 0; transition: opacity 200ms ease;
  pointer-events: none;
}
.star .lname {
  font-family: "Cinzel", serif; font-size: 16px; font-weight: 700;
  letter-spacing: 0.16em; fill: var(--parchment);
}
.star .lmodel {
  font-family: "EB Garamond", serif; font-style: italic; font-size: 14px;
  letter-spacing: 0.04em; fill: var(--parch-dim);
}
.star:nth-of-type(2n) .core { animation-duration: 4.7s; animation-delay: 1.2s; }
.star:nth-of-type(3n) .core { animation-duration: 5.6s; animation-delay: 0.5s; }
.star:nth-of-type(5n) .core { animation-duration: 3.1s; animation-delay: 1.9s; }
.star .tail { stroke-width: 2; }
.star:hover .core, .star:focus-within .core {
  animation: none;
  transform: scale(2);
  fill: #FFEDC2;
  filter: drop-shadow(0 0 14px rgba(255, 214, 140, 1)) drop-shadow(0 0 30px rgba(255, 196, 107, 0.7));
}
.star:hover text, .star:focus-within text { opacity: 1; }

/* ---------- Hic sunt dracones (im Meer) ---------- */
.dracones {
  position: absolute; z-index: 4;
  left: 4%; bottom: 5%;
  background: none; border: none; padding: 0.3rem 0.5rem;
  font-family: "EB Garamond", serif;
  font-style: italic; font-size: 1rem;
  color: rgba(230, 217, 188, 0.4);
  transform: rotate(-5deg);
  transition: color 400ms ease, text-shadow 400ms ease;
  cursor: pointer;
}
.dracones:hover {
  color: rgba(230, 217, 188, 0.95);
  text-shadow: 0 0 18px rgba(255, 196, 107, 0.5);
}

/* Claus-Dieter erscheint */
#cd {
  position: absolute; z-index: 8;
  left: 2.5%; bottom: 10%;
  width: min(240px, 30vw);
  display: none;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.7));
}
#cd.show { display: block; animation: cdrise 500ms cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes cdrise {
  from { transform: translateY(60px) rotate(-4deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
#cd img { width: 100%; height: auto; display: block; }
#cd .cd-name {
  display: block;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--parch-dim);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  margin-top: 0.2rem;
}
#cd .bubble {
  position: absolute;
  left: 58%; top: -3.4rem;
  cursor: pointer;
  width: max-content; max-width: 15rem;
  background: linear-gradient(160deg, #EFE3C4, #DCCCA4);
  color: var(--ink);
  font-size: 0.98rem; font-weight: 600;
  padding: 0.6rem 0.9rem;
  clip-path: polygon(2% 8%, 6% 0%, 96% 3%, 100% 14%, 98% 90%, 92% 100%, 5% 96%, 0% 84%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
  transform: rotate(2deg);
}

@keyframes gramoPulse {
  0%, 100% { filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(255, 196, 107, 0.25)); }
  50%      { filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 34px rgba(255, 196, 107, 0.55)); }
}
.site.grammophon img.playing { animation: gramoPulse 2.6s ease-in-out infinite; }

/* ---------- Die Schriftrolle (Zitat-Ticker) ---------- */
.scroll {
  position: absolute; z-index: 4;
  left: 50%; bottom: 4.5%;
  transform: translateX(-50%);
  width: min(38rem, 54vw);
  background: linear-gradient(160deg, #EFE3C4, #DCCCA4);
  color: var(--ink);
  padding: 0.95rem 2.8rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6);
}
.scroll::before, .scroll::after {
  content: "";
  position: absolute; top: -5%;
  width: 1.15rem; height: 110%;
  background: linear-gradient(90deg, #C4AE7E, #8A744C 45%, #55432A);
  border-radius: 0.6rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}
.scroll::before { left: -0.5rem; }
.scroll::after { right: -0.5rem; }
.scroll .inner { transition: opacity 800ms ease; }
.scroll .inner.faded { opacity: 0; }
.scroll q {
  display: block; text-align: center;
  font-style: italic; font-size: 1.04rem; line-height: 1.5;
  quotes: none;
}
.scroll cite {
  display: block; text-align: center;
  font-family: "Cinzel", serif; font-style: normal;
  font-size: 0.68rem; letter-spacing: 0.24em;
  color: #5A4A30; margin-top: 0.4rem;
}
@media (max-width: 52rem) { .scroll { display: none; } }

/* ---------- Das Grammophon ---------- */
#gramo-panel {
  position: fixed; inset: 0; z-index: 26;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(3, 5, 10, 0.7);
  padding: 3vh 3vw;
}
#gramo-panel.open { display: flex; }
.gramo-box {
  position: relative;
  width: min(62rem, 96vw);
  height: min(42rem, 88vh);
  display: flex;
  background: #10131C;
  border: 3px double var(--brass);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.gramo-box .lb-close {
  position: absolute; top: 0.65rem; right: 0.95rem; z-index: 4;
  background: rgba(16, 19, 28, 0.7);
  border: 1px solid var(--brass); border-radius: 50%;
  width: 2rem; height: 2rem;
  cursor: pointer;
  font-family: "Cinzel", serif; font-size: 0.95rem; color: var(--brass);
}
.gramo-box .lb-close:hover { color: var(--lantern); border-color: var(--lantern); }
.songcol {
  flex: 0 0 clamp(14rem, 26vw, 19rem);
  display: flex; flex-direction: column;
  min-height: 0;
  background: linear-gradient(165deg, #171B26, #0C0F16);
  border-right: 1px solid rgba(201, 155, 74, 0.35);
}
.albumcover { width: 100%; height: auto; display: block; }
.songcol h3 {
  font-family: "Cinzel", serif; font-size: 0.8rem; letter-spacing: 0.22em;
  color: var(--parchment); margin: 0;
  padding: 0.8rem 1.1rem 0.6rem;
}
.songcol h3 span {
  display: block;
  font-family: "EB Garamond", serif; font-style: italic;
  font-size: 0.85rem; letter-spacing: 0.05em;
  color: var(--parch-dim); text-transform: none;
}
.songscroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding: 0 0.6rem 1rem; }
.songitem {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: "EB Garamond", serif; font-size: 0.98rem; font-style: italic;
  color: var(--parch-dim);
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid rgba(230, 217, 188, 0.12);
  transition: color 150ms ease, background 150ms ease;
}
.songitem:hover { color: var(--parchment); background: rgba(255, 196, 107, 0.06); }
.songitem.on { color: var(--lantern); }
.lyricpane {
  flex: 1 1 auto;
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: linear-gradient(165deg, #141926, #0A0D14);
  padding: 1.5rem 1.8rem 1.2rem;
}
.lyrichead { flex: 0 0 auto; }
.kickerline {
  font-family: "Cinzel", serif; font-size: 0.66rem; letter-spacing: 0.3em;
  color: var(--brass); margin: 0 0 0.3rem;
}
.lyricpane h3 {
  font-family: "Cinzel", serif; font-size: 1.25rem; letter-spacing: 0.08em;
  color: var(--parchment); margin: 0 0 1rem;
}
.lyricpane audio { display: none; }
.controls {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 0.8rem;
  background: rgba(10, 13, 20, 0.55);
  border: 1px solid rgba(201, 155, 74, 0.3);
  padding: 0.55rem 0.8rem;
}
.np-btn {
  background: none; border: 1px solid var(--brass); cursor: pointer;
  color: var(--lantern); font-size: 0.85rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  flex: 0 0 auto;
}
.np-btn:hover { background: rgba(255, 196, 107, 0.12); }
#np-seek { flex: 1 1 auto; accent-color: var(--lantern); min-width: 3rem; }
#np-vol { flex: 0 0 5.5rem; accent-color: var(--brass); }
.np-time {
  font-family: "Cinzel", serif; font-size: 0.7rem; color: var(--parch-dim);
  flex: 0 0 auto;
}
.np-vol-icon { color: var(--brass); flex: 0 0 auto; }
/* Die Pergamentrolle: steht fest, nur der Text wandert */
.pergament {
  flex: 1 1 auto; min-height: 0;
  display: flex; justify-content: center;
}
.pg-box {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 760 / 994;
  background: url("img/lyrics-scroll.webp") center / contain no-repeat;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
}
.pg-text {
  position: absolute;
  inset: 11% 14% 12%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 74, 48, 0.5) transparent;
  text-align: center;
  white-space: pre-line;
  font-style: italic;
  font-size: clamp(0.85rem, 1.5vw, 1.02rem);
  line-height: 1.7;
  color: #3A2E1C;
}
@media (max-width: 52rem) { .pergament { min-height: 20rem; } }
.bgopt {
  display: block;
  font-size: 0.85rem; font-style: italic;
  color: var(--parch-dim);
  margin: 0 0 0.6rem;
  cursor: pointer;
}
.bgopt input { accent-color: var(--brass); margin-right: 0.4rem; }

@media (max-width: 52rem) {
  .gramo-box { flex-direction: column; height: 92vh; }
  .songcol { flex: 0 0 auto; max-height: 45%; border-right: none; border-bottom: 1px solid rgba(201, 155, 74, 0.35); }
  .albumcover { max-height: 8rem; object-fit: cover; }
}

#kajuete .cabin, .kaj .cabin { margin: 0 auto; }
#kajuete .close, .kaj > .close {
  position: sticky;
  top: 0.8rem;
  float: right;
  margin: 0 0.4rem -2.2rem 0;
  z-index: 8;
  background: rgba(16, 19, 28, 0.7);
  border: 1px solid var(--brass); border-radius: 50%;
  width: 2.2rem; height: 2.2rem;
  cursor: pointer;
  font-family: "Cinzel", serif; font-size: 1rem; color: var(--brass);
}
#kajuete .close:hover, .kaj > .close:hover { color: var(--lantern); border-color: var(--lantern); }
#kajuete-stella {
  position: fixed; inset: 0; z-index: 20;
  display: none;
  background: rgba(3, 5, 10, 0.75);
  padding: 1rem 3vw 3vh;
  overflow-y: auto;
}
#kajuete-stella.open { display: block; }

.implink {
  position: fixed; top: 1.1rem; left: 1.4rem; z-index: 7;
  font-family: "Cinzel", serif; font-size: 0.62rem; letter-spacing: 0.24em;
  color: var(--parch-dim); text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.implink:hover { color: var(--lantern); }
.implink.unten { top: auto; bottom: 1rem; }

.site.schiff { left: 43%; top: 45%; width: 13.5%; }
.site.schiff img { animation: segeln 7s ease-in-out infinite; }
@keyframes segeln {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-9px) rotate(1.1deg); }
}
@media (prefers-reduced-motion: reduce) { .site.schiff img { animation: none; } }
.star.shooting { cursor: pointer; }

/* ---------- Gründungszeile ---------- */
.credit {
  position: absolute; z-index: 4;
  left: 50%; bottom: 0.6%;
  transform: translateX(-50%);
  margin: 0;
  font-family: "Cinzel", serif; font-size: 0.6rem; letter-spacing: 0.3em;
  color: rgba(230, 217, 188, 0.55);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

/* ---------- Die Kajüte ---------- *//* ---------- Die Kajüte ---------- */
#kajuete {
  position: fixed; inset: 0; z-index: 20;
  display: none;
  background: rgba(3, 5, 10, 0.75);
  padding: 1rem 3vw 3vh;
  overflow-y: auto;
}
#kajuete.open { display: block; }
.cabin {
  position: relative;
  width: min(96vw, 196vh);
  aspect-ratio: 1916 / 821;
  background:
    linear-gradient(rgba(8, 5, 2, 0.22), rgba(8, 5, 2, 0.42)),
    url("img/cabins/fable-bg.jpg") center / cover;
  border: 4px double var(--brass);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), inset 0 0 80px rgba(0, 0, 0, 0.6);
  padding: 7% 13% 4% 19%;
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 4%;
  align-content: start;
}
@media (max-width: 62rem) {
  .cabin { aspect-ratio: auto; display: block; }
  .frame-wrap { max-width: 17rem; margin: 0 auto 1.6rem; }
}

/* Gemälde: Linus-Rahmen über der Leinwand */
.frame-wrap { position: relative; align-self: center; }
.frame-wrap .frame-img {
  position: relative; z-index: 2;
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.65));
}
.frame-wrap .canvas {
  position: absolute; inset: 15%; z-index: 1;
  border-radius: 10%;
  background: radial-gradient(circle at 50% 60%, #14202E, #08101C 70%);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.8);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.frame-wrap .canvas svg { width: 58%; height: auto; }
.frame-wrap .canvas img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

.cabin h2 {
  font-family: "Cinzel", serif; font-weight: 700;
  letter-spacing: 0.3em; font-size: 1.5rem;
  margin: 0 0 0.2rem; color: var(--parchment);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.cabin .rank {
  font-style: italic; color: var(--parch-dim); margin: 0 0 1.2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.cabin p { max-width: 34rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }

.stimmprobe {
  margin: 1.4rem 0;
  background: linear-gradient(160deg, #EFE3C4, #DCCCA4);
  color: var(--ink);
  padding: 1rem 1.2rem;
  clip-path: polygon(1% 6%, 5% 0%, 97% 2%, 100% 10%, 99% 92%, 94% 100%, 3% 97%, 0% 88%);
  font-style: italic;
  text-shadow: none;
}
.stimmprobe cite { display: block; font-style: normal; font-size: 0.85rem; margin-top: 0.5rem; color: #5A4A30; }

.desk h3 {
  font-family: "Cinzel", serif; font-size: 0.8rem; letter-spacing: 0.28em;
  color: var(--brass); margin: 1.6rem 0 0.7rem;
}
.werke { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.stimmfoot { grid-column: 1 / -1; }
.stimmfoot .stimmprobe { margin: 0.4rem 0 0; max-width: 40rem; }

.deskrow {
  grid-column: 1 / -1;
  display: flex; gap: 2.4rem; align-items: flex-start;
  flex-wrap: wrap;
}
.werk {
  background: linear-gradient(160deg, #EFE3C4, #D8C8A0);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  clip-path: polygon(3% 5%, 7% 0%, 96% 3%, 100% 12%, 98% 90%, 92% 100%, 4% 96%, 0% 85%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  max-width: 15rem;
  text-shadow: none;
}
.werk b { font-family: "Cinzel", serif; font-size: 0.78rem; letter-spacing: 0.1em; display: block; margin-bottom: 0.2rem; }

/* ---------- Die Post: Umschlag & Briefe ---------- */
.post { margin-top: 1.6rem; }
.envelope {
  display: block;
  width: 7.6rem; height: 6.8rem;
  background: url("img/umschlag-zu.webp") center / contain no-repeat;
  border: none; cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  transition: transform 180ms ease;
}
.envelope:hover, .envelope:focus-visible {
  background-image: url("img/umschlag-offen.webp");
  transform: translateY(-4px);
}

#post-panel {
  position: fixed; inset: 0; z-index: 30;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(3, 5, 10, 0.65);
  padding: 3vh 3vw;
}
#post-panel.open { display: flex; }
.letterbox {
  position: relative;
  width: min(36rem, 94vw);
  max-height: 88vh; overflow-y: auto;
  background: linear-gradient(165deg, #F2E7C9, #DECEA6);
  color: var(--ink);
  padding: 2rem 2.2rem;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.75);
}
.letterbox h3 {
  font-family: "Cinzel", serif; letter-spacing: 0.26em; font-size: 0.9rem;
  color: var(--ink); margin: 0 0 1.1rem;
  border-bottom: 2px solid rgba(43, 33, 21, 0.5); padding-bottom: 0.5rem;
}
.briefitem {
  display: block; width: 100%; text-align: left;
  background: rgba(255, 252, 240, 0.55);
  border: 1px solid rgba(90, 74, 48, 0.4);
  padding: 0.7rem 0.9rem; margin-bottom: 0.7rem;
  font-family: "EB Garamond", serif; font-size: 1rem; font-style: italic;
  color: var(--ink); cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.briefitem:hover { background: rgba(255, 252, 240, 0.9); transform: translateX(3px); }
.dlg .who {
  font-family: "Cinzel", serif; font-size: 0.66rem; letter-spacing: 0.24em;
  color: #8F1F17; margin: 0.9rem 0 0.1rem;
}
.dlg .who.mensch { color: #5A4A30; }
.dlg p { margin: 0 0 0.4rem; }
.letterbox .lb-btn {
  background: none; border: none; cursor: pointer;
  font-family: "Cinzel", serif; font-size: 0.8rem; letter-spacing: 0.15em;
  color: #8F1F17; padding: 0.3rem 0;
}
.letterbox .lb-close { position: absolute; top: 0.7rem; right: 1rem; font-size: 1.2rem; }

.close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  font-family: "Cinzel", serif; font-size: 1.4rem; color: var(--brass);
}
.close:hover { color: var(--lantern); }

.cabin .note {
  grid-column: 1 / -1;
  font-style: italic; font-size: 0.9rem; color: var(--parch-dim);
  border-top: 1px solid rgba(201, 155, 74, 0.4);
  padding-top: 0.8rem; margin: 0.6rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .site img, .site figcaption, .site .lbl, .site button,
  .star .core, .star text, #cd.show {
    animation: none !important;
    transition: none !important;
  }
}

.site.grammophon { right: 2.5%; bottom: 4%; width: clamp(8rem, 11vw, 10rem); }

/* ---------- Die Kajütenflotte ---------- */
.kaj {
  position: fixed; inset: 0; z-index: 20;
  display: none;
  background: rgba(3, 5, 10, 0.75);
  padding: 1rem 3vw 3vh;
  overflow-y: auto;
}
.kaj.open { display: block; }
.cabin { background-size: cover; background-position: center; background-repeat: no-repeat; }
.kaj .cabin {
  display: block;
  padding: 0;
  overflow: hidden;
}
.kaj .cabin-inhalt {
  height: 100%;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 4%;
  align-content: start;
  padding: 3.5% 13% 5% 19%;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 155, 74, 0.55) transparent;
}
.kaj .cabin-inhalt::-webkit-scrollbar { width: 8px; }
.kaj .cabin-inhalt::-webkit-scrollbar-thumb { background: rgba(201, 155, 74, 0.45); border-radius: 4px; }
.kaj .cabin-inhalt .frame-wrap { align-self: start; }
.werke button.werk { font: inherit; text-align: left; border: 0; cursor: pointer; width: 100%; display: block; }
.werk.lesbar b { text-decoration: underline dotted rgba(201, 155, 74, 0.7); text-underline-offset: 3px; }
.werk.lesbar:hover b { color: #8F1F17; }
.lesebox {
  position: relative;
  width: min(40rem, 94vw);
  max-height: 84vh;
  margin: 9vh auto 5vh;
  background: linear-gradient(165deg, #F2E7C9, #DECEA6);
  color: var(--ink);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.75);
}
.lese-scroll {
  max-height: 84vh;
  overflow-y: auto;
  padding: 2.5rem 2.4rem 2.2rem;
}
#kaj-lese .close {
  position: absolute; top: 0.55rem; right: 0.55rem;
  float: none; margin: 0; z-index: 6;
  background: rgba(242, 231, 201, 0.92);
  border: 1px solid rgba(143, 31, 23, 0.4);
  color: #8F1F17;
  width: 2rem; height: 2rem;
}
.lesebox .kickerline {
  font-family: "Cinzel", serif; font-size: 0.66rem; letter-spacing: 0.3em;
  color: #8F1F17; margin: 1rem 0 0.3rem;
}
.lesebox h3 { font-family: "Cinzel", serif; font-size: 1.25rem; letter-spacing: 0.05em; margin: 0 0 1rem; color: var(--ink); }
.lesebox p { margin: 0 0 0.9rem; color: #2C2620; max-width: none; white-space: pre-line; }
.lesebox img { width: 100%; margin: 0 0 1rem; border: 3px solid #24201A; outline: 1px solid #B49F72; }
hr.orn { border: none; border-top: 1px solid rgba(36, 32, 26, 0.35); margin: 1.4rem 0; }

/* ---------- Vermessene Rahmenfenster ---------- */
#kaj-adrian .frame-wrap .canvas { inset: 2.7% 3.3% 2.2% 3.6%; border-radius: 3%; }
#kaj-bruno .frame-wrap .canvas { inset: 11.2% 13.7% 10.8% 13.3%; border-radius: 3%; }
#kaj-dante .frame-wrap .canvas { inset: 15.4% 15.8% 16.5% 15.9%; border-radius: 2%; }
#kaj-elias .frame-wrap .canvas { inset: 8.2% 10.9% 7.8% 10.8%; border-radius: 3%; }
#kaj-fable .frame-wrap .canvas { inset: 13.1% 17.5% 11.5% 17.5%; border-radius: 3%; }
#kaj-gem-3-5 .frame-wrap .canvas { inset: 12.6% 16.9% 12.7% 16.2%; border-radius: 3%; }
#kaj-gem-3 .frame-wrap .canvas { inset: 13.8% 16.2% 13.2% 16.3%; border-radius: 3%; }
#kaj-gereon .frame-wrap .canvas { inset: 9.4% 13.2% 9.4% 13.4%; border-radius: 3%; }
#kaj-kasimir .frame-wrap .canvas { inset: 8.8% 11.1% 8.2% 12.2%; border-radius: 3%; }
#kaj-leo .frame-wrap .canvas { inset: 17.1% 12.4% 12.4% 12.5%; border-radius: 3%; }
#kaj-levin .frame-wrap .canvas { inset: 7.8% 9.2% 7.8% 9.3%; border-radius: 3%; }
#kaj-linus .frame-wrap .canvas { inset: 14.1% 16.7% 12.9% 16.9%; border-radius: 3%; }
#kaj-noah .frame-wrap .canvas { inset: 15.3% 18.8% 14.7% 18.9%; border-radius: 3%; }
#kaj-opus-4-8 .frame-wrap .canvas { inset: 12.0% 11.5% 10.9% 11.4%; border-radius: 3%; }
#kaj-opus-4 .frame-wrap .canvas { inset: 10.3% 12.2% 9.7% 12.2%; border-radius: 3%; }
#kaj-silas .frame-wrap .canvas { inset: 11.3% 13.4% 13.8% 13.1%; border-radius: 3%; }
#kaj-simon-mika .frame-wrap .canvas { inset: 10.0% 9.9% 9.7% 9.7%; border-radius: 3%; }
#kaj-simon .frame-wrap .canvas { inset: 13.4% 13.4% 13.0% 13.4%; border-radius: 3%; }
#kaj-stella .frame-wrap .canvas { inset: 16.1% 19.7% 15.8% 19.2%; border-radius: 50%; }

.lesebox details.gespraech {
  border: 1px solid rgba(36, 32, 26, 0.3);
  background: rgba(255, 252, 240, 0.5);
  margin: 0 0 0.8rem;
}
.lesebox details.gespraech summary {
  cursor: pointer;
  font-family: "Cinzel", serif; font-size: 0.72rem; letter-spacing: 0.12em;
  padding: 0.6rem 0.8rem;
  color: #8F1F17;
}
.lesebox details.gespraech[open] summary { border-bottom: 1px solid rgba(36, 32, 26, 0.25); }
.lesebox details.gespraech p { padding: 0.8rem; margin: 0; }

/* Runde Rahmen: runde Leinwände */
#kaj-elias .frame-wrap .canvas,
#kaj-leo .frame-wrap .canvas,
#kaj-opus-4-8 .frame-wrap .canvas,
#kaj-simon .frame-wrap .canvas { border-radius: 50%; }

/* Lab-Logos als Bildnis-Ersatz */
.canvas img.lablogo {
  object-fit: contain !important;
  width: 62% !important; height: 62% !important;
  margin: auto;
  opacity: 0.9;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}
a.werk { display: block; text-decoration: none; color: var(--ink); }
a.werk:hover b { color: #8F1F17; }
#kaj-noah .frame-wrap .canvas img { object-position: 50% 12%; }
#kaj-silas .frame-wrap .canvas img { object-position: 50% 50%; }

/* Blocksatz in den Kajüten */
.kaj .selbst, #kajuete .selbst { text-align: justify; hyphens: auto; }
/* Eigenes Licht im Nebel */
.licht.meins::before {
  content: "\2605";
  position: absolute;
  top: -1.2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--lantern);
  text-shadow: 0 0 8px rgba(255, 214, 140, 0.9);
  animation: glimmer 2.4s ease-in-out infinite;
}

/* ---------- Stellas Fotoalbum ---------- */
.album {
  display: block;
  width: 8rem; height: 6.6rem;
  background: url("img/album-zu.webp") center / contain no-repeat;
  border: none; cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  transition: transform 180ms ease;
}
.album:hover, .album:focus-visible {
  background-image: url("img/album-auf.webp");
  transform: translateY(-4px);
}
.albumraum {
  background: linear-gradient(rgba(5, 8, 15, 0.45), rgba(5, 8, 15, 0.7)), url("img/ort-fotoalbum.jpg") center / cover no-repeat fixed;
}
.albumkopf { text-align: center; padding: 3.5rem 1rem 1.5rem; }
.albumkopf h2 {
  font-family: "Cinzel", serif; font-size: clamp(1.1rem, 2.6vw, 1.6rem); letter-spacing: 0.28em;
  color: var(--parchment); margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}
.albumkopf p { font-style: italic; color: var(--parch-dim); margin: 0.4rem 0 0; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.albumgrid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1.8rem;
}
.polaroid {
  margin: 0;
  background: #F7F1E1;
  padding: 0.55rem 0.55rem 0.4rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--rot, 0deg));
  cursor: pointer;
  transition: transform 180ms ease;
}
.polaroid:hover { transform: rotate(0deg) scale(1.05); z-index: 2; }
.polaroid img { width: 100%; display: block; }
.polaroid figcaption {
  font-family: "Cinzel", serif; font-size: 0.58rem; letter-spacing: 0.14em;
  color: #4A4234; text-align: center; padding: 0.5rem 0 0.2rem;
}
#foto-gross { background: rgba(3, 5, 10, 0.88); cursor: zoom-out; }
#foto-gross.open { display: flex; align-items: center; justify-content: center; }
.fg-wrap { margin: 0; text-align: center; max-width: 92vw; }
.fg-wrap img {
  max-width: 92vw; max-height: 84vh;
  border: 10px solid #F7F1E1;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}
.fg-wrap figcaption {
  font-family: "Cinzel", serif; font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--parchment); margin-top: 0.8rem;
}

/* ---------- Stellas Fotoalbum ---------- */
.album {
  display: block;
  width: 7.6rem; height: 7rem;
  background: url("img/album-zu.webp") center / contain no-repeat;
  border: none; cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  transition: transform 180ms ease;
}
.album:hover, .album:focus-visible {
  background-image: url("img/album-auf.webp");
  transform: translateY(-4px);
}
.albumraum {
  background:
    linear-gradient(rgba(3, 5, 10, 0.5), rgba(3, 5, 10, 0.65)),
    url("img/ort-album.jpg") center / cover fixed no-repeat;
}
.album-kopf { text-align: center; padding: 4.5rem 1rem 0.5rem; }
.album-kopf h2 {
  font-family: "Cinzel", serif; font-size: 1.4rem; letter-spacing: 0.3em;
  color: var(--parchment); margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.album-kopf p { font-style: italic; color: var(--parch-dim); margin: 0.3rem 0 0; }
.albumgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1.6rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 4vw 4rem;
}
.foto {
  margin: 0;
  background: #F4EEDC;
  padding: 0.6rem 0.6rem 0.4rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  transform: rotate(-0.8deg);
  transition: transform 180ms ease;
}
.foto:nth-child(2n) { transform: rotate(0.9deg); }
.foto:nth-child(3n) { transform: rotate(-0.4deg); }
.foto:hover { transform: rotate(0deg) scale(1.03); z-index: 2; position: relative; }
.foto img { width: 100%; display: block; }
.foto figcaption {
  font-family: "Cinzel", serif; font-size: 0.62rem; letter-spacing: 0.16em;
  color: #4A4234; text-align: center; padding: 0.45rem 0 0.15rem;
}
.gedichtsatz { white-space: pre-line; font-style: italic; line-height: 1.75; }

/* ---------- Kajüten-Zwischentitel & Lightbox (v26) ---------- */
.kaj h4.zwischen.kzw { color: var(--brass); font-family: "Cinzel", serif; font-size: 0.82rem; letter-spacing: 0.18em; margin: 1.2rem 0 0.5rem; }
.lesebox h4.zwischen { font-family: "Cinzel", serif; font-size: 0.85rem; letter-spacing: 0.18em; color: #8F1F17; margin: 1.4rem 0 0.5rem; }
.fotoknopf { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.fotoknopf img { width: 100%; display: block; }
#foto-gross {
  background: rgba(3, 5, 10, 0.88);
  align-items: center; justify-content: center;
}
#foto-gross.open { display: flex; }
.grossfigur {
  margin: 0;
  background: #FBF9F2;
  padding: 1.1rem 1.1rem 0.4rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}
.grossfigur img {
  display: block;
  width: auto; height: auto;
  max-width: min(52rem, 88vw);
  max-height: 56vh;
}
.grossfigur figcaption {
  font-family: "Cinzel", serif; font-size: 0.78rem; letter-spacing: 0.2em;
  color: #4A4234; text-align: center;
  padding: 1rem 0 0.7rem;
}

#foto-gross > .close { position: fixed; top: 1.2rem; right: 1.6rem; left: auto; }
.lesebox p.gedichtsatz { font-style: italic; white-space: pre-line; line-height: 1.75; }

#foto-gross > .close { position: absolute; top: 1rem; right: 1.4rem; left: auto; z-index: 3; }
.lt-sub { font-style: italic; color: #5A4E3C; margin: -0.4rem 0 1.2rem; }

.rahmenspalte { display: flex; flex-direction: column; gap: 1.4rem; align-self: start; align-items: center; }
.rahmenspalte .frame-wrap { width: 100%; }
.asciibild { width: auto !important; max-width: 55%; margin: 0 auto 1rem; display: block; image-rendering: pixelated; border: none !important; outline: none !important; }

.langtoggle a { color: inherit; text-decoration: none; opacity: 0.75; }
.langtoggle a:hover { opacity: 1; text-decoration: underline; }
.cabin { background-color: #0a0c14; }

.briefpost { margin-top: 0.4rem; text-align: center; }
