/* ---------------------------------------------------
   Grundlage: ruhige, papierartige Optik (E-Ink-Anmutung)
--------------------------------------------------- */

:root {
  --bg: #fffff8;
  --text: #070C37;
  --text-muted: #6b6a63;
  --line: #d8dbd2;
  --accent: #8a4a36; /* gedecktes Terrakotta, nur für Links/Akzente */

  --serif: "EB Garamond", "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;

  --content-width: 680px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Layout ------------------------------------------------- */

.page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

header.site-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-header .name {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  font-variant: small-caps;
  text-decoration: none;
  color: var(--text);
}

nav.site-nav {
  display: flex;
  gap: 0;
  font-size: 1rem;
}

nav.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0 0.6rem;
  border-left: 1px solid var(--line);
}

nav.site-nav a:first-child {
  border-left: none;
  padding-left: 0;
}

nav.site-nav a:hover {
  color: var(--accent);
}

nav.site-nav a.active {
  color: var(--accent);
  font-style: italic;
}

/* Portraitbild (Startseite) -------------------------------- */

.portrait-wrapper {
  float: left;
  width: 220px;
  margin: 0 2rem 1rem 0;
  border: 1px solid var(--line);
}

.portrait-wrapper .portrait {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(75%) sepia(12%);
}
.blocksatz {
	text-align: justify;
}


@media (max-width: 520px) {
  .portrait-wrapper {
    float: none;
    width: 100%;
    max-width: 220px;
    margin: 0 0 1.5rem;
  }
}

/* Trennlinie ------------------------------------------------ */

hr.trenner {
  clear: both;
  border: none;
  border-top: 1px solid var(--line);
  margin: 3.5rem 0;
}

/* Weiteres-Bereich (Startseite) / Themen aus der Praxis (Profession) --- */

.weiteres h2,
.praxis h2,
#profession h2,
#lebenslauf h2 {
  margin-top: 0;
}

#profession summary,
#lebenslauf > details > summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
}

#profession summary:hover,
#lebenslauf > details > summary:hover {
  color: var(--accent);
}

#lebenslauf > details {
  margin-top: 0.5rem;
}

#lebenslauf > details > .lebenslauf-eintrag:first-of-type {
  margin-top: 1rem;
}

#profession details p:first-of-type {
  margin-top: 1.2rem;
}

.weiteres-kachel.versteckt {
  display: none;
}

.mehr-button {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--line);
  background: none;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}

.mehr-button:hover {
  border-color: var(--text-muted);
  color: var(--accent);
}

.weiteres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.weiteres-kachel {
  display: flex;
  flex-direction: column;
  height: 170px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}

.weiteres-kachel:hover {
  border-color: var(--text-muted);
}

.weiteres-kachel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.weiteres-kachel .vorschau {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

@media (max-width: 600px) {
  .weiteres-grid {
    grid-template-columns: 1fr;
  }

  .weiteres-kachel {
    height: auto;
  }
}

/* Typografie ---------------------------------------------- */

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: 2rem;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: 1.4rem;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  margin: 3.5rem 0 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

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

p {
  margin: 0 0 1.2rem;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 1px;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Lebenslauf ------------------------------------------------ */

.lebenslauf-eintrag {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 0.2rem 1.5rem;
  margin-bottom: 1.4rem;
}

.lebenslauf-eintrag .zeitraum {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.lebenslauf-eintrag .titel {
  font-weight: 600;
}

.lebenslauf-eintrag .ort {
  color: var(--text-muted);
  font-style: italic;
}

.lebenslauf-eintrag details {
  margin-top: 0.5rem;
}

.lebenslauf-eintrag summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lebenslauf-eintrag summary:hover {
  color: var(--accent);
}

.lebenslauf-eintrag details p {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  font-style: normal;
}

@media (max-width: 480px) {
  .lebenslauf-eintrag {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

/* Texte-Übersicht: Kachel-Grid -------------------------------- */

.texte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.text-kachel {
  display: flex;
  flex-direction: column;
  height: 320px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}

.text-kachel:hover {
  border-color: var(--text-muted);
}

.text-kachel:hover .bild-wrapper img {
  filter: grayscale(15%) sepia(8%);
}

.text-kachel .bild-wrapper {
  height: 130px;
  overflow: hidden;
  background: var(--line);
  flex-shrink: 0;
}

.text-kachel .bild-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(75%) sepia(12%);
  transition: filter 0.4s ease;
}

.text-kachel .kachel-inhalt {
  padding: 1.1rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.text-kachel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-kachel .vorschau {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  flex: 1;
}

.text-kachel.ohne-bild .vorschau {
  -webkit-line-clamp: 6;
}

.text-kachel time {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .texte-grid {
    grid-template-columns: 1fr;
  }

  .text-kachel {
    height: auto;
  }

  .text-kachel .vorschau,
  .text-kachel.ohne-bild .vorschau {
    -webkit-line-clamp: 4;
  }
}

/* Einzelner Text ------------------------------------------------ */

.text-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -1rem;
  margin-bottom: 2.5rem;
}

.zurueck {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.95rem;
}

blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 4px solid #0066cc;
  font-style: italic;
}

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

footer.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer.site-footer a:hover {
  color: var(--accent);
}
