/**
 * ============================================================================
 * 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: 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{
    width: 100%;
  }

  .site-header__navwrap[hidden]{
    display: none !important;
  }

  .site-nav{
    width: 100%;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    gap: 10px;
  }

  .site-nav a{
    display: block;
    width: fit-content;
  }

  .section-heading{
    flex-direction: column;
    align-items: flex-start;
  }

  .book-year-section{
    margin-top: 3rem;
  }

  .book-year-section > h2{
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    font-size: 1.35rem;
  }

  .pagination{
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-list div{
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@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;
  }
}