/* ===========================
   Local Fonts
   =========================== */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-300-italic.woff2') format('woff2');
}

/* ===========================
   Special Elite (Schreibmaschine)
   =========================== */
@font-face {
  font-family: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/special-elite.woff2') format('woff2');
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-color: #272b33;
  color: #b8c6d4;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* ===========================
   Sidebar Navigation
   =========================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  background-color: #191c21;
  border-right: 1px solid #222530;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  margin-bottom: 3rem;
}

.sidebar-brand .author-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d0d6dc;
  line-height: 1.4;
  display: block;
  text-decoration: none;
}

.sidebar-brand .author-role {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a8490;
  margin-top: 0.4rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

nav ul li a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a8490;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

nav ul li a::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background-color: #d0d6dc;
  transition: height 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #d0d6dc;
}

nav ul li a.active::before {
  height: 1rem;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.7rem;
  color: #4a5058;
  letter-spacing: 0.06em;
}

/* ===========================
   Main Content
   =========================== */
.content-wrapper {
  margin-left: 240px;
  padding: 5rem 4rem 15rem 5rem;
}

.content {
  width: 100%;
  max-width: 720px;
}

/* ===========================
   Typography
   =========================== */
h1 {
  font-size: 2.2rem;
  font-weight: 400;
  color: #b8c6d4;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #b8c6d4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  margin-top: 3.5rem;
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #b8c6d4;
  margin-bottom: 0.5rem;
}

p {
  color: #b8c6d4;
  font-size: 0.975rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: #b8c6d4;
  text-decoration: underline;
  text-decoration-color: #444e5c;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: #b8c6d4;
}

/* ===========================
   Bio Portrait
   =========================== */
#veroeffentlichungen-portrait {
  display: block;
  margin: 0 auto 3rem;
  width: 100%;
  max-width: 480px;
  height: 480px;
  object-fit: cover;
  object-position: center center;
}

#projekte-portrait {
  display: block;
  margin: 0 auto 3rem;
  width: 100%;
  max-width: 480px;
  height: 480px;
  object-fit: cover;
  object-position: center center;
}

#kontakt-portrait {
  display: block;
  margin: 0 auto 3rem;
  width: 100%;
  max-width: 480px;
  height: 360px;
  object-fit: cover;
  object-position: center 20%;
}

#bio-portrait {
  display: block;
  margin: 2rem auto 3rem;
  width: 100%;
  max-width: 420px;
  height: 500px;
  object-fit: cover;
  object-position: center 15%;
}

/* ===========================
   Stationen
   =========================== */
.stationen {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 0;
}

.stationen dt {
  font-weight: bold;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: monospace;
}

.stationen dd {
  margin: 0;
}

/* ===========================
   Page Header
   =========================== */
.page-header {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333a44;
}

.page-header .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a8490;
  margin-bottom: 1rem;
}

/* ===========================
   Hero (index.html)
   =========================== */
.hero {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

#hero-image {
  width: 400px;
  height: 500px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

#hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.hero-text {
  padding-top: 0.5rem;
  max-width: 580px;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.hero-text .tagline {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8490;
  margin-bottom: 2rem;
}

.hero-text p {
  font-size: 1rem;
  color: #b8c6d4;
  margin-bottom: 0.85rem;
}

/* ===========================
   Publication List
   =========================== */
.publication-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.publication-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid #333a44;
}

.publication-item:first-child {
  border-top: 1px solid #333a44;
}

.pub-year {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #7a8490;
  padding-top: 0.2rem;
}

.pub-body h3 {
  margin-bottom: 0.3rem;
}

.pub-body .pub-source {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8490;
  margin-bottom: 0.6rem;
}

.pub-body p {
  font-size: 0.9rem;
  color: #b8c6d4;
  margin-bottom: 0;
}

/* ===========================
   Project List
   =========================== */
.project-item {
  padding: 2rem 0;
  border-bottom: 1px solid #333a44;
}

.project-item:first-child {
  border-top: 1px solid #333a44;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a8490;
  border: 1px solid #3a4250;
  padding: 0.2rem 0.6rem;
}

.project-year {
  font-size: 0.75rem;
  color: #7a8490;
  letter-spacing: 0.06em;
}

/* ===========================
   Collapsible (details/summary)
   =========================== */
details {
  border-top: 1px solid #333a44;
  border-bottom: 1px solid #333a44;
  margin-bottom: -1px;
}

details + details {
  border-top: none;
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #b8c6d4;
  font-size: 1rem;
  font-weight: 500;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: #7a8490;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

details[open] summary::after {
  content: '−';
}

.details-body {
  padding-bottom: 2rem;
}

.details-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.details-body h3:first-child {
  margin-top: 0;
}

.details-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.details-body .scene-header {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8490;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.details-body .stage-direction {
  font-style: italic;
  color: #7a8490;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.details-body .speaker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a8490;
  margin-bottom: 0.3rem;
  margin-top: 1.25rem;
}

.details-body .voice {
  font-style: italic;
  color: #7a8490;
  margin-bottom: 1rem;
}

.details-body blockquote {
  border-left: 2px solid #333a44;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #7a8490;
  font-size: 0.9rem;
  line-height: 1.75;
}

.details-body blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #4a5058;
}

/* ===========================
   Contact
   =========================== */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-item label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8490;
  margin-bottom: 0.4rem;
}

.contact-item span,
.contact-item a {
  font-size: 0.975rem;
  color: #b8c6d4;
  text-decoration: none;
}

.contact-item a:hover {
  color: #ffffff;
}

/* ===========================
   Video Embed
   =========================== */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin-bottom: 2rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.youtube-link img {
  border-radius: 4px;
}

.youtube-play-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #c00;
  text-decoration: underline;
}

/* ===========================
   PDF Embed
   =========================== */
.pdf-embed {
  display: block;
  width: 100%;
  height: 800px;
  max-width: 100%;
  border: none;
  margin-top: 1.5rem;
}

.photo-credit {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #4a5058;
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.hero-image-wrap {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.hero-image-wrap .photo-credit {
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-align: left;
}

.pub-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pub-summary-title {
  font-size: 1rem;
  font-weight: 500;
  color: #b8c6d4;
}

.pub-source-inline {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a8490;
  font-weight: 300;
}

.pub-teaser {
  font-size: 0.9rem;
  color: #7a8490;
  font-weight: 300;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===========================
   Lesedauer
   =========================== */
.reading-time {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #4a5058;
  margin-top: 0.2rem;
}

/* ===========================
   Lesefortschritt
   =========================== */
#reading-progress-container {
  display: none;
  position: fixed;
  right: 1.2rem;
  top: 15vh;
  height: 70vh;
  width: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  z-index: 100;
}

#reading-progress-bar {
  width: 100%;
  height: 0%;
  background: #7a8490;
  border-radius: 2px;
  transition: height 0.15s ease;
}

#reading-progress-label {
  position: absolute;
  bottom: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: #7a8490;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* ===========================
   Logo – Elende Skribenten
   =========================== */
.logo-es {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  transform: rotate(-0.4deg);
}

.logo-es .logo-title {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #6e7f6a;
  display: block;
}

.logo-es .logo-subtitle {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #4f5d4c;
  display: block;
  padding-left: 3px;
  margin-top: 4px;
}

.logo-es .logo-broken {
  display: inline-block;
}

/* Footer-Logo (einzeilig) */
.logo-es-footer {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.logo-es-footer .logo-title {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #6e7f6a;
  display: inline;
}

.logo-es-footer .logo-sep {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 0.7rem;
  color: #4f5d4c;
  opacity: 0.4;
  margin: 0 0.4rem;
}

.logo-es-footer .logo-subtitle {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #4f5d4c;
  display: inline;
}

.logo-es-footer .logo-broken {
  display: inline-block;
}

/* ===========================
   Divider
   =========================== */
.divider {
  border: none;
  border-top: 1px solid #333a44;
  margin: 3rem 0;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    gap: 2.5rem;
  }

  #hero-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #363636;
    padding: 1.25rem 1.5rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .sidebar-brand {
    margin-bottom: 0;
  }

  .sidebar-footer {
    display: none;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  nav ul li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
  }

  nav ul li a::before {
    display: none;
  }

  body {
    flex-direction: column;
  }

  .content-wrapper {
    margin-left: 0;
    padding: 2.5rem 1.5rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1rem;
  }

  #bio-portrait,
  #projekte-portrait,
  #veroeffentlichungen-portrait,
  #kontakt-portrait {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .pdf-embed {
    height: 500px;
  }
}
