/* ============================================================
   DMITRI DRAGILEW — Mobile-Stylesheet
   Tab-Bar + „Mehr"-Sheet, hover-frei, backdrop-filter-frei,
   Ein-Spalten-Layouts, reduzierte Effekte. Tokens wie Desktop.
   ============================================================ */

:root {
  --ink: #151110;
  --ink-2: #1c1614;
  --panel: #221913;
  --panel-2: #2a2018;
  --paper: #f2e8d5;
  --paper-dim: #e3d4b9;
  --amber: #e0a84f;
  --amber-glow: #f4d18c;
  --wine: #6f1f2e;
  --wine-bright: #93293c;
  --text: #eadfc9;
  --muted: #a5947c;
  --dark-txt: #241b12;
  --hair: rgba(224, 168, 79, .28);
  --f-disp: 'Cormorant Garamond', Georgia, serif;
  --f-text: 'PT Serif', Georgia, serif;
  --f-mono: 'PT Mono', 'Courier New', monospace;
  --f-ui: 'PT Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.62;
  padding-bottom: 76px; /* Platz für die Tab-Bar */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
p a, li a { border-bottom: 1px solid var(--hair); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--f-disp); font-weight: 600; color: var(--paper); line-height: 1.15; }
h1 { font-size: 32px; }
h2 { font-size: 24px; margin-bottom: 18px; }
h3 { font-size: 20px; }

.wrap { padding: 34px 18px; max-width: 680px; margin: 0 auto; }
.kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.cap { font-family: var(--f-ui); font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.lead { font-size: 17px; }

/* ---------- Kopf ---------- */

.m-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--ink);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .b-1, .brand .b-2 {
  font-family: var(--f-disp); font-weight: 700; font-size: 15px;
  letter-spacing: .3em; color: var(--paper);
}
.brand .b-1 { color: var(--amber); }
.langs { display: flex; gap: 10px; font-family: var(--f-mono); font-size: 13px; }
.langs a { color: var(--muted); padding: 6px 2px; }
.langs a.on { color: var(--amber); border-bottom: 1px solid var(--amber); }
@media (max-height: 500px) { .m-head { display: none; } }

/* ---------- Tab-Bar + Sheet ---------- */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex;
  background: var(--ink-2);
  border-top: 1px solid var(--hair);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabbar a, .tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 2px 8px; min-height: 54px;
  background: none; border: none;
  font-family: var(--f-ui); font-size: 11px; color: var(--muted);
}
.tabbar .t-i { font-size: 17px; line-height: 1; }
.tabbar a.on, .tabbar button.on { color: var(--amber); }

.sheet {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(12, 9, 8, .8);
}
.sheet-in {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--panel);
  border-top: 1px solid var(--amber);
  border-radius: 14px 14px 0 0;
  padding: 18px 22px calc(24px + env(safe-area-inset-bottom, 0));
  display: flex; flex-direction: column; gap: 4px;
}
.sheet-in a {
  font-family: var(--f-ui); font-size: 17px; color: var(--text);
  padding: 12px 4px; border-bottom: 1px solid rgba(224, 168, 79, .12);
}
.sheet-in .langs { margin-top: 14px; justify-content: center; gap: 26px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(140% 80% at 60% 0%, #241b12 0%, var(--ink) 60%);
  border-bottom: 1px solid var(--hair);
}
.lamp { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 2; padding: 44px 22px 40px; }
.wordmark { display: flex; flex-direction: column; }
.wordmark span { font-family: var(--f-disp); font-weight: 700; font-size: 30px; letter-spacing: .26em; line-height: 1.1; }
.wordmark span:first-child { color: var(--amber); }
.subtitle { font-family: var(--f-ui); font-size: 14.5px; color: var(--muted); letter-spacing: .1em; margin-top: 10px; }
.hero-img { margin-top: 26px; }
.hero-img img {
  border-radius: 4px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .55), 0 0 0 1px var(--hair);
}
.epi { margin-top: 26px; }
.epi-line { font-family: var(--f-mono); font-size: 14.5px; color: var(--amber-glow); min-height: 1.6em; }
.epi-line.typing::after { content: "▎"; color: var(--amber); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.epi-att { font-family: var(--f-ui); font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* ---------- Wegweiser / Spotlight / About ---------- */

.wegweiser { display: flex; flex-direction: column; gap: 14px; }
.wg { display: block; padding: 20px 18px; background: var(--panel); border: 1px solid var(--hair); border-radius: 4px; position: relative; }
.wg h3 { color: var(--amber); margin-bottom: 5px; }
.wg p { font-size: 14.5px; }
.wg-a { position: absolute; right: 16px; bottom: 12px; color: var(--muted); font-family: var(--f-mono); }

.b-cover {
  aspect-ratio: 2 / 3; width: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px 10px; text-align: center; border-radius: 2px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(242, 232, 213, .2);
  position: relative;
}
.b-cover::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(242, 232, 213, .3); pointer-events: none; }
.b-cover.big { width: 170px; }
.bc-t { font-family: var(--f-disp); font-weight: 600; font-size: 14.5px; line-height: 1.25; color: var(--paper); margin-top: 16px; }
.bc-p { font-family: var(--f-ui); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(242, 232, 213, .75); }
.bc-y { font-family: var(--f-mono); font-size: 11px; color: rgba(242, 232, 213, .85); }
.cat-prosa { background: linear-gradient(160deg, #7c2434 0%, #571825 70%); }
.cat-lyrik { background: linear-gradient(160deg, #8a6a2f 0%, #5d461e 70%); }
.cat-musikbuecher { background: linear-gradient(160deg, #6d4a22 0%, #452d13 70%); }
.cat-herausgaben { background: linear-gradient(160deg, #5a4a3a 0%, #3a2f24 70%); }

.spotlight {
  background: linear-gradient(150deg, var(--panel) 0%, var(--ink-2) 100%);
  border: 1px solid var(--hair); border-radius: 6px;
  margin: 0 18px; padding: 26px 22px;
}
.spot-cover { display: flex; justify-content: center; margin-bottom: 20px; }
.spot-meta { font-family: var(--f-ui); font-size: 13px; color: var(--muted); margin: 8px 0 12px; }
.btn {
  display: inline-block; margin-top: 14px;
  font-family: var(--f-ui); font-size: 14px;
  color: var(--paper); background: var(--wine);
  padding: 11px 20px; border-radius: 3px;
}
.about-txt p { margin-bottom: 14px; }
.member-line { font-family: var(--f-ui); font-size: 13px; color: var(--muted); border-top: 1px solid var(--hair); padding-top: 12px; }
.about-img { margin-top: 20px; }
.about-img img { border-radius: 4px; }

/* ---------- Seitenkopf / Biografie ---------- */

.page-head { padding-bottom: 4px; }
.page-head h1 { border-bottom: 1px solid var(--hair); padding-bottom: 14px; }

.bio-intro .sketch { max-width: 260px; margin: 0 auto 24px; padding: 18px; background: var(--paper); border-radius: 4px; }
.sketch img { clip-path: inset(0 100% 0 0); }
.sketch.drawn img { clip-path: inset(0 0 0 0); transition: clip-path 2.2s cubic-bezier(.6, .05, .3, 1); }
.bio-txt p { margin-bottom: 15px; }

.tl { position: relative; padding: 16px 0 4px; }
.tl-line { position: absolute; top: 0; bottom: 0; left: 10px; width: 2px; background: linear-gradient(var(--hair), rgba(224, 168, 79, .1)); }
.tl-pendel {
  position: absolute; left: 50%; top: 0; width: 12px; height: 12px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, var(--amber-glow), var(--amber) 60%, #7c5a22);
  border-radius: 50%; box-shadow: 0 0 10px rgba(224, 168, 79, .6);
}
.tl-st { position: relative; padding: 0 0 32px 38px; }
.tl-anchor { position: absolute; left: 0; top: 4px; color: var(--amber); background: var(--ink); padding: 2px 0; }
.tl-card { background: var(--panel); border: 1px solid var(--hair); border-radius: 4px; padding: 16px 18px; }
.tl-year { font-family: var(--f-mono); font-size: 14px; color: var(--amber); }
.tl-place { font-family: var(--f-disp); font-size: 19px; color: var(--paper); margin: 2px 0 6px; }
.tl-txt { font-size: 14.5px; }
.tl-img { margin-top: 12px; border-radius: 3px; }

.bio-radio-in figure { margin-top: 18px; }
.bio-radio-in img { border-radius: 4px; filter: sepia(.25); }
.awards { list-style: none; margin-bottom: 24px; }
.awards li { padding: 9px 0; border-bottom: 1px solid rgba(224, 168, 79, .12); font-size: 14.5px; }
.aw-y { font-family: var(--f-mono); color: var(--amber); margin-right: 10px; }
.quote { border-left: 2px solid var(--wine-bright); padding-left: 16px; margin: 16px 0; }
.quote p { font-style: italic; color: var(--paper-dim); font-size: 15.5px; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--f-ui); font-size: 12.5px; color: var(--muted); }

/* ---------- Werke: Regal als Scrollleiste ---------- */

.shelf-block { margin-bottom: 38px; }
.shelf {
  display: flex; align-items: flex-end; gap: 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 0 4px 2px;
  border-bottom: 5px solid var(--panel-2);
}
/* Bücher frontal (Cover lesbar), horizontal scrollbar */
.shelfbook {
  flex: 0 0 auto; width: 104px;
  background: none; border: none; padding: 0 0 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.shelfbook.featured { width: 126px; }
.shelfbook[aria-expanded="true"] .sb-c { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
.sb-c { display: block; width: 100%; }
.sb-y { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

.cover-img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(242, 232, 213, .12);
}
.cover-img.big { width: 170px; aspect-ratio: auto; object-fit: contain; }
.shelfbook .b-cover { width: 100%; padding: 10px 7px; }
.shelfbook .bc-t { font-size: 11.5px; margin-top: 10px; }
.shelfbook .bc-p { font-size: 7.5px; letter-spacing: .1em; }
.shelfbook .bc-y { font-size: 10px; }
.shelfbook.featured .bc-t { font-size: 13px; }

.book-details { margin-top: 18px; }
.book { background: var(--panel); border: 1px solid var(--hair); border-radius: 5px; padding: 20px 18px; }
.book[hidden] { display: none; }
.book .b-cover { margin: 0 auto 18px; width: 150px; }
.book-cover { display: flex; justify-content: center; margin-bottom: 16px; }
.book-cover .cover-img { width: 170px; aspect-ratio: auto; object-fit: contain; }
.b-sub { font-family: var(--f-ui); font-size: 14px; color: var(--muted); margin-top: 2px; }
.b-meta { font-family: var(--f-ui); font-size: 12.5px; color: var(--muted); margin: 8px 0 12px; }
.b-info h3 { font-size: 21px; }
.werk-foot { border-top: 1px solid var(--hair); padding-top: 20px; }
.ak-cite { font-size: 14px; margin-bottom: 10px; }
.journals { font-family: var(--f-ui); font-size: 13px; color: var(--muted); }

/* ---------- Lyrik ---------- */

.lyrik-lead p { margin-bottom: 12px; }
.school { font-family: var(--f-mono); font-size: 12.5px; color: var(--amber); }
.poems { display: flex; flex-direction: column; gap: 18px; }
.poem {
  background: var(--paper); color: var(--dark-txt);
  border-radius: 3px; padding: 22px 20px 20px;
  background-image: repeating-linear-gradient(0deg, transparent 0 28px, rgba(36, 27, 18, .035) 28px 29px);
}
.poem h3 { color: #3a2413; font-size: 19px; }
.po-sub { font-family: var(--f-ui); font-size: 13px; color: #6d5a41; margin-top: 2px; }
.po-lines { font-size: 15px; line-height: 1.7; margin: 12px 0 10px; font-style: italic; color: #33261a; }
.po-ell { color: #8a7458; }
.po-tr { font-family: var(--f-ui); font-size: 12.5px; color: #6d5a41; margin-bottom: 14px; }
.po-btn { background: var(--wine); margin-top: 0; }
.lyrik-foot p { font-family: var(--f-ui); font-size: 13.5px; color: var(--muted); }

/* ---------- Musik ---------- */

.musik-hero { margin-bottom: 18px; max-width: 420px; margin-left: auto; margin-right: auto; }
.musik-hero img { border-radius: 4px; }

.piano { position: relative; height: 44px; max-width: 420px; margin: 4px auto; display: flex; gap: 2px; padding: 0 24px; }
.wk { flex: 1; background: linear-gradient(#f6efe0, #ddcfb2); border-radius: 0 0 3px 3px; box-shadow: 0 2px 3px rgba(0, 0, 0, .5); transition: transform .18s; }
.bk {
  position: absolute; top: 0; width: 3.4%; height: 56%;
  left: calc(24px + (100% - 48px) * (var(--k) + 1) / 14 - 1.7%);
  background: linear-gradient(#3a3129, #0c0908); border-radius: 0 0 2px 2px; z-index: 2;
}
.wk.pressed { transform: translateY(3px); background: linear-gradient(#efe4cc, #cbbb9a); }

.ens-grid { display: flex; flex-direction: column; gap: 16px; }
.ens { background: var(--panel); border: 1px solid var(--hair); border-radius: 5px; padding: 20px 18px; }
.ens figure { margin-bottom: 14px; }
.ens img { border-radius: 4px; }
.ens h3 { color: var(--amber); margin-bottom: 4px; }
.ens-role { font-family: var(--f-ui); font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.ens .ext { font-size: 12px; margin-left: 4px; }
.quote.small p { font-size: 14px; }

.komp { list-style: none; margin: 4px 0 14px; }
.komp li { padding: 8px 0; border-bottom: 1px solid rgba(224, 168, 79, .12); font-size: 14.5px; }
.k-t { color: var(--paper); font-weight: 700; }
.k-y { font-family: var(--f-mono); color: var(--muted); font-size: 12.5px; }
.k-fact { font-size: 14.5px; color: var(--paper-dim); margin-bottom: 18px; }
.forsch-img { max-width: 320px; margin: 0 auto 18px; }
.forsch-img img { border-radius: 4px; }
.taz-lead { margin-top: 12px; font-family: var(--f-ui); font-size: 13.5px; color: var(--muted); }
.fest-line { font-family: var(--f-mono); font-size: 12.5px; color: var(--amber); margin-top: 14px; }

/* ---------- YouTube-Fassade ---------- */

.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: var(--panel); }
.yt img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--amber-glow);
  background: rgba(21, 17, 16, .74);
}
.yt-play span {
  position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent var(--amber-glow);
}
.yt-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; font-family: var(--f-ui); font-size: 12.5px; color: var(--paper); background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Medien / Kontakt / Legal ---------- */

.press { list-style: none; }
.press li { padding: 9px 0; border-bottom: 1px solid rgba(224, 168, 79, .12); font-size: 14.5px; }
.med-strip { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.ms-i img { border-radius: 4px; }

.kont-img { max-width: 380px; margin: 0 auto 20px; }
.kont-img img { border-radius: 4px; }
.kont-links { list-style: none; margin-top: 16px; }
.kont-links li { padding: 8px 0; }
.legal .todo { background: var(--panel); border: 1px dashed var(--hair); border-radius: 4px; padding: 18px 20px; color: var(--paper-dim); }
.credits { margin-top: 16px; font-family: var(--f-ui); font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-foot { border-top: 1px solid var(--hair); margin-top: 28px; padding: 32px 18px 40px; text-align: center; }
.f-name { font-family: var(--f-disp); font-weight: 700; letter-spacing: .3em; color: var(--amber); font-size: 15px; }
.f-sub { font-family: var(--f-ui); font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; }
.f-legal { font-family: var(--f-ui); font-size: 13.5px; margin-bottom: 6px; }
.f-legal a { color: var(--text); }
.f-c { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }

/* ---------- Lightbox ---------- */

#lb-ov {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(12, 9, 8, .95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
#lb-ov.open { opacity: 1; pointer-events: auto; }
#lb-ov img { max-width: 96vw; max-height: 86vh; border-radius: 3px; }
.lb-btn { position: fixed; background: none; border: none; color: var(--paper); font-size: 40px; padding: 16px; opacity: .8; }
#lb-prev { left: 2px; top: 50%; transform: translateY(-50%); }
#lb-next { right: 2px; top: 50%; transform: translateY(-50%); }
#lb-close { top: 8px; right: 12px; font-size: 32px; }

/* ---------- Reveals / Reduced Motion ---------- */

html.js .reveal { opacity: 0; transform: translateY(12px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
  .sketch img { clip-path: none !important; transition: none !important; }
  .wk { transition: none !important; }
  .epi-line.typing::after { animation: none; }
}
