/**
 * ============================================================================
 * DATEI-DOKU / ARBEITSBEREICH
 * ============================================================================
 *
 * Datei:
 *   /assets/css/torstennicodemus.css
 *
 * Aufgabe aktuell:
 *   - globales Styling der Autorenseite bereitstellen
 *   - Header, Navigation, Listen, Buchkarten, Was-bleibt, Werkdetailseiten,
 *     Footer und responsive Bereiche gestalten
 *
 * Was die Datei aktuell können soll:
 *   - Grundfarben, Typografie und Layout definieren
 *   - Desktop- und Mobilnavigation stylen
 *   - Startseite, Bücherseite, Werkdetailseite, Was bleibt, Was-bleibt-Detail,
 *     Entstehung, Vita und Kontakt gestalten
 *   - Buchcover farbig und ohne Graustufen-Zwang anzeigen
 *   - Überschriften auf der Startseite ruhiger und einheitlicher darstellen
 *   - Pagination für Was bleibt ausgeben
 *   - verwandte Gedanken anzeigen, unveröffentlichte Relateds ausgegraut
 *   - mobile Anpassungen für Karten, Grids, Header und Formular ausgeben
 *
 * Wichtige Hinweise / Fachlogik:
 *   - mobile Navigation nutzt .site-nav-toggle + .site-header__navwrap
 *   - ab 701px ist Navigation immer sichtbar
 *   - unter 700px wird die Navigation per Button ein- und ausgeblendet
 *   - Gestaltung bleibt bewusst schlicht schwarz/weiß
 *
 * Letzte Aktualisierung:
 *   2026-06-01
 * ============================================================================
 */

:root{
  --bg: #f8f8f6;
  --text: #1f1f1f;
  --muted: #6f6f6f;
  --line: #e6e6e6;
  --max: 920px;
}

*{
  box-sizing: border-box;
}

html,
body{
  height: 100%;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.65;
}

a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover{
  text-decoration-thickness: 2px;
}

img{
  max-width: 100%;
  height: auto;
}

.site-header{
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-brand{
  text-decoration: none;
  font-weight: 700;
}

.site-nav-toggle{
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
  display: none;
}

.site-nav-toggle:hover{
  border-color: var(--text);
}

.site-header__navwrap{
  display: block;
}

.site-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a{
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"]{
  border-bottom-color: var(--text);
}

.site-main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 48px;
}

.page{
  margin-top: 2.8rem;
}

.page:first-child{
  margin-top: 0;
}

.page h1{
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page h2{
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.page h3{
  margin: 0;
}

.lead{
  color: var(--muted);
  margin: 0 0 18px;
}

.meta,
.eyebrow{
  color: var(--muted);
  margin: 0 0 10px;
}

.eyebrow{
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.small{
  color: var(--muted);
  font-size: 0.95em;
}

.section-heading{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin: 0 0 18px;
}

.section-heading h2{
  margin: 0;
}

.section-heading a{
  white-space: nowrap;
}

/* Breadcrumb */
.breadcrumb{
  margin: 16px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb__item::after{
  content: "/";
  margin-left: 6px;
  color: var(--text);
}

.breadcrumb__item:last-child::after{
  content: "";
}

.breadcrumb__item a{
  text-decoration: none;
  color: var(--muted);
}

.breadcrumb__item a:hover{
  color: var(--text);
  text-decoration: underline;
}

.breadcrumb__item--current{
  color: var(--text);
}

/* Startseite */
.home-link-list{
  margin: 10px 0 0;
  padding-left: 18px;
}

.home-link-list__item + .home-link-list__item{
  margin-top: 6px;
}

/* Was bleibt */
.wb-list{
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.wb-item{
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.wb-item:last-child{
  border-bottom: 0;
}

.wb-title{
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  border: 0;
  margin-bottom: 0.35rem;
}

.wb-title:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.wb-bookline{
  margin: 8px 0 0;
  color: var(--muted);
}

.wb-short{
  margin: 30px 0 14px 0;
}

/* Was bleibt Detail */
.article-body{
  margin-top: 20px;
}

.article-body p{
  margin: 0 0 18px;
}

.article-body h2{
  margin-top: 36px;
}

.article-body h3{
  margin-top: 28px;
}

.article-body ul,
.article-body ol{
  margin: 18px 0 18px 24px;
  padding: 0;
}

.article-body li{
  margin-bottom: 8px;
}

.article-body hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

/* Verwandte Gedanken */
.wb-related{
  max-width: var(--max);
  margin: 44px auto 0;
  padding: 24px 18px 0;
  border-top: 1px solid var(--line);
}

.wb-related h2{
  margin: 0 0 14px;
  font-size: 18px;
}

.wb-related ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.wb-related li{
  margin: 0 0 10px;
}

.wb-related a{
  text-decoration: none;
  border-bottom: 1px solid var(--text);
}

.wb-related a:hover{
  border-bottom-width: 2px;
}

.wb-related__soon{
  cursor: default;
}

.wb-related__soon span{
  opacity: .5;
}

/* Pagination */
.pagination{
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.pagination a{
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.pagination a:hover{
  border-bottom-color: var(--text);
}

.pagination span{
  color: var(--muted);
}

/* Backlink */
.backlink{
  display: inline-block;
  margin: 0 0 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.backlink:hover{
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Books */
.book-grid{
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.book-card{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.book-card:last-child{
  border-bottom: 0;
}

.book-card--detail{
  margin-top: 20px;
  grid-template-columns: 220px 1fr;
}

.book-cover{
  display: block;
  text-decoration: none;
}

.book-cover img{
  display: block;
  width: 100%;
  height: auto;
}

.book-cover--static{
  cursor: default;
}

.book-body{
  min-width: 0;
}

.book-title{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.book-title a{
  text-decoration: none;
  border-bottom: 1px solid var(--text);
}

.book-title a:hover{
  border-bottom-width: 2px;
}

.book-title__text{
  display: inline-block;
}

.book-subtitle{
  margin: 10px 0 0;
  color: var(--muted);
}

.book-meta{
  margin: 8px 0 0;
  color: var(--muted);
}

.book-text{
  margin: 12px 0 0;
}

.book-links{
  margin: 12px 0 0;
  color: var(--muted);
}

.book-link{
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.book-link:hover{
  border-bottom-color: var(--text);
  color: var(--text);
}

.book-links .sep{
  margin: 0 8px;
}

/* Bücherseite – Jahresblöcke */
.book-year-section{
  margin-top: 4rem;
}

.book-year-section:first-of-type{
  margin-top: 2rem;
}

.book-year-section > h2{
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

.book-year-section + .book-year-section{
  padding-top: 1rem;
}

.book-year-section .book-grid{
  margin-top: 0;
}

/* Werkdetail-Daten */
.detail-list{
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.detail-list div{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt{
  color: var(--muted);
}

.detail-list dd{
  margin: 0;
}

/* Status */
.status-published{
  color: var(--text);
}

.status-progress,
.status-planned{
  color: var(--muted);
}

/* About */
.about-layout{
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-image img{
  max-width: 300px;
  height: auto;
  border-radius: 4px;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.about-image img:hover{
  filter: grayscale(0%);
}

.about-text{
  flex: 1;
  min-width: 280px;
}

.about-text p{
  margin-bottom: 1.2rem;
}

/* Contact */
.contact-form{
  margin-top: 18px;
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.contact-form__row{
  display: grid;
  gap: 8px;
}

.contact-form__label{
  font-weight: 700;
}

.contact-form__input,
.contact-form__textarea{
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.contact-form__input:focus,
.contact-form__textarea:focus{
  outline: none;
  border-color: var(--text);
}

.contact-form__textarea{
  resize: vertical;
  min-height: 200px;
}

.contact-form__row--pin{
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
}

.contact-form__pin-text{
  margin: 0 0 10px;
}

.contact-form__input--pin{
  max-width: 120px;
}

.contact-form__honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions{
  margin-top: 4px;
}

.contact-form__submit{
  appearance: none;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 12px 16px;
  cursor: pointer;
}

.contact-form__submit:hover{
  background: var(--text);
  color: var(--bg);
}

.form-notice{
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
}

.form-notice--success{
  border-color: var(--text);
}

.form-notice--error{
  border-color: #b9b9b9;
}

.form-error-list{
  margin: 10px 0 0 18px;
  padding: 0;
}

/* Footer */
.site-footer{
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  color: var(--muted);
}

.footer-nav{
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.footer-nav a{
  color: inherit;
  text-decoration: none;
}

.footer-nav a:hover{
  text-decoration: underline;
}

.footer-copy{
  color: #666;
}

/* Responsive */

@media (max-width: 820px){
  .section-heading{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-heading a{
    white-space: normal;
  }
}

@media (max-width: 840px){
  .home-hub__grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px){
  .site-header__inner{
    align-items: flex-start;
  }

  .site-nav-toggle{
    display: inline-block;
    margin-left: auto;
  }

  .site-header__navwrap{
    display: none !important;
    width: 100%;
  }

  .site-nav-toggle[aria-expanded="true"] + .site-header__navwrap,
  .site-header__navwrap.is-open{
    display: block !important;
  }

  .site-nav{
    width: 100%;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    gap: 10px;
  }
}

@media (min-width: 701px){
  .site-header__navwrap{
    display: block !important;
  }
}

@media (max-width: 640px){
  .book-card,
  .book-card--detail{
    grid-template-columns: 1fr;
  }

  .book-cover{
    width: 180px;
  }

  .about-image img{
    max-width: 240px;
  }

  .footer-nav{
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
  }

  .contact-form__row--pin{
    padding: 12px;
  }
}
/* Shared-runtime additions retain the original 920px/Courier layout above. */
.skip-link{position:absolute;left:18px;top:-100px;background:var(--bg);padding:8px;z-index:100}.skip-link:focus{top:8px}
a:focus-visible,button:focus-visible{outline:2px solid var(--text);outline-offset:4px}
h1,h2,h3{overflow-wrap:anywhere}.preserve-lines{white-space:pre-line}.book-cover img{transition:filter .2s ease}.satellite--grayscale .book-cover img{filter:grayscale(1)}.satellite--grayscale .book-cover:hover img,.satellite--grayscale .book-cover:focus-visible img{filter:none}
.older-books{margin-top:28px}.older-books ul{list-style:none;padding:0}.older-books li{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--line)}.older-books span{white-space:nowrap;color:var(--muted);font-size:.85em}
.site-nav[hidden]{display:none}.site-nav-toggle{min-height:44px}.site-footer nav{display:flex;flex-wrap:wrap;gap:16px}.article-body{overflow-wrap:anywhere}.article-body img{max-width:100%;height:auto}
@media(prefers-reduced-motion:reduce){.book-cover img{transition:none}}

/* Compact original article recommendations; inherited monochrome typography. */
.wb-related{margin-top:2.5rem;padding-top:1.25rem;border-top:1px solid currentColor}.wb-related h2{font-size:1.15rem;margin:0 0 .75rem}.wb-related ul{margin:0;padding-left:1.25rem}.wb-related li{margin:.45rem 0;overflow-wrap:anywhere}.wb-related small{font-size:.8em;color:inherit;opacity:.7}

/* Central legal contents retain this satellite typography and measure. */
.satellite-legal-page .publisher-logo{display:block;width:200px;max-width:100%;height:auto;object-fit:contain;margin:16px 0 24px}.satellite-legal-page__content{overflow-wrap:anywhere}.satellite-legal-page__content .information-section{margin-block:24px}.satellite-legal-page__content a{overflow-wrap:anywhere}@media(max-width:650px){.satellite-legal-page .publisher-logo{width:160px}}


.satellite-module__item{padding:20px 0;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.satellite-module__item:last-child{border-bottom:0}.satellite-module__images{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:20px}.satellite-module__images img{display:block;max-width:100%;height:auto;max-height:420px;object-fit:contain}.satellite-module__spoiler{margin:16px 0}.satellite-module__spoiler>summary{cursor:pointer;text-decoration:underline;padding:12px 0}.satellite-module p{overflow-wrap:anywhere}

/* Shared book module; typography, colours and page frame remain domain-owned. */
.satellite-book-detail{margin:2.5rem auto 4rem;max-width:1100px;min-width:0}.satellite-book-detail__intro{display:grid;grid-template-columns:minmax(150px,270px) minmax(0,1fr);gap:clamp(1.5rem,4vw,3rem);align-items:start}.satellite-book-detail__cover{margin:0}.satellite-book-detail__cover img{width:100%;height:auto;object-fit:contain}.satellite-book-detail__copy{min-width:0}.satellite-book-detail h1{overflow-wrap:anywhere;font-size:clamp(2rem,3.7vw,3.6rem);line-height:1.12;margin:0 0 1rem}.satellite-book-detail__subtitle{font-size:1.15em}.satellite-book-detail__series{margin:1rem 0}.satellite-book-detail__tags,.satellite-book-detail__actions{display:flex;flex-wrap:wrap;gap:.6rem 1rem;margin:1.25rem 0}.satellite-book-detail__tags a{font-size:.9em}.satellite-book-detail__genre,.satellite-book-detail__main-tag{font-weight:bold}.satellite-book-detail__description{line-height:1.7;overflow-wrap:anywhere}.satellite-book-detail__purchase{font-weight:bold}.satellite-book-detail__recommendations{margin-top:3rem;padding-top:1.5rem;border-top:1px solid currentColor}.satellite-book-detail__recommendations h2{font-size:clamp(1.4rem,2.3vw,2rem)}.satellite-book-detail__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}.satellite-book-detail__recommendation{min-width:0}.satellite-book-detail__recommendation img{width:auto;max-width:100%;height:210px;object-fit:contain;object-position:left bottom}.satellite-book-detail__recommendation h3{font-size:1.15em;line-height:1.35;overflow-wrap:anywhere;margin:.8rem 0}.satellite-book-detail__recommendation>a:last-child{font-size:.9em}
@media(max-width:760px){.satellite-book-detail__intro{grid-template-columns:minmax(120px,180px) minmax(0,1fr);gap:1.5rem}.satellite-book-detail__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.satellite-book-detail__recommendation img{height:180px}}
@media(max-width:520px){.satellite-book-detail__intro{grid-template-columns:1fr}.satellite-book-detail__cover{max-width:210px;margin:0 auto}.satellite-book-detail__grid{gap:1rem}.satellite-book-detail__recommendation img{height:160px}.satellite-book-detail{margin-top:1.5rem}}

.satellite-book-detail .satellite-book-detail__intro--no-cover{grid-template-columns:minmax(0,1fr)}.satellite-book-detail__purchase{display:inline-flex;align-items:center;min-height:44px;padding:.6rem 1rem;border:1px solid currentColor;text-decoration:none;max-width:100%}

.satellite-book-detail a{overflow-wrap:anywhere}.satellite-book-detail__tags a{max-width:100%}
