/* ==========================================================================
   Blog Bertram Thiel
   Abgestimmt auf bertramthiel.com/Buecher/: gleiche Farben, Georgia + Arial.
   Beide Schriften sind auf den Geräten vorhanden – es wird nichts von
   fremden Servern geladen.
   ========================================================================== */

:root {
  --paper: #f6f3ed;
  --paper-deep: #ece8df;
  --white: #ffffff;
  --ink: #0b2d50;
  --muted: #5d6871;
  --green: #6e941a;
  --green-text: #557516;   /* etwas dunkler, damit kleine Schrift gut lesbar bleibt */
  --blue: #3978bf;
  --link: #2b5f9e;
  --line: rgba(11, 45, 80, 0.16);
  --frame: rgba(11, 45, 80, 0.28);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  /* Lesetext: 18 px auf dem Smartphone, bis 20 px auf großen Bildschirmen */
  --fs-text: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --measure: 34em;          /* ca. 65–75 Zeichen pro Zeile */
  --page: 1180px;
  --gutter: 24px;
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
}

/* ---------- Grundlagen ---------- */

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.container {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.text-col {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  font-size: var(--fs-text);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { left: 8px; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-text);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}
a.eyebrow:hover { color: var(--ink); }

.meta {
  margin: 0;
  color: var(--link);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 180ms ease;
}
.text-link:hover, .text-link:focus-visible { color: var(--green-text); }
.arrow { font-size: 18px; font-weight: 400; line-height: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--frame);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}
.pill:hover, .pill:focus-visible { border-color: var(--green); color: var(--green-text); }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  transition: color 180ms ease, border-color 180ms ease;
}
.chips a:hover, .chips a:focus-visible { border-color: var(--green); color: var(--green-text); }
.chips .count { color: var(--muted); font-size: 12px; }

/* ---------- Kopfbereich ---------- */

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 16px;
}
.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.wordmark span { color: var(--blue); }
.brand-label {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--green-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.8;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--frame);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }
.js .nav-toggle { display: inline-flex; }

.site-nav { flex-basis: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 12px; }
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-size: 16px;
  transition: color 180ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green-text); }
.site-nav a[aria-current] { color: var(--ink); font-weight: 700; }

@media (min-width: 1000px) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; flex-basis: auto; }
  .site-nav ul { display: flex; gap: 26px; padding: 0; }
  .site-nav li + li { border-top: 0; }
  .site-nav a { min-height: 40px; font-size: 14px; }
  .site-nav a[aria-current] { font-weight: 400; box-shadow: inset 0 -2px 0 var(--green); }
}

@media (max-width: 560px) {
  .header-inner { min-height: 72px; }
  .wordmark { font-size: 12px; }
  .brand { gap: 10px; }
  .brand-label { padding-left: 10px; font-size: 10px; }
}

/* ---------- Startseite: Einstieg ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.62fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
  padding: 80px 0 88px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  hyphens: manual;   /* kurze Wörter im Leitsatz nicht trennen */
  -webkit-hyphens: manual;
}
.hero h1 em { color: var(--blue); }
.intro {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.7;
}
.topics { margin-top: 34px; }
.topics-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.author-card .eyebrow { color: var(--link); margin-bottom: 10px; }
.portrait-wrap {
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin-bottom: 24px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--frame);
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84);
}
.author-name { margin: 0 0 6px; font-family: var(--serif); font-size: 27px; line-height: 1.2; }
.author-role { max-width: 290px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Abschnitte ---------- */

.section { padding: 96px 0; }
.section--white { background: var(--white); }

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.section-heading h2,
.page-title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-heading > p {
  justify-self: end;
  max-width: 430px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Karten: Grundlagentexte und verwandte Beiträge */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 48px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--green);
}
.card-num {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
}
.card .eyebrow { margin-bottom: 10px; }
.card h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  transition: color 180ms ease;
}
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 { color: var(--green-text); }
.card .excerpt {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.card .meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Beitragslisten */

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-item { padding: 30px 0; border-bottom: 1px solid var(--line); }
.post-item .eyebrow { display: inline-block; margin-bottom: 10px; }
.post-item h3 {
  margin: 0 0 10px;
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.post-item h3 a { transition: color 180ms ease; }
.post-item h3 a:hover, .post-item h3 a:focus-visible { color: var(--green-text); }
.post-item .excerpt {
  max-width: 640px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.list-footer { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }

/* Startseite: Beiträge + Seitenleiste */

.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.home-columns h2.column-title {
  margin: 0 0 28px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.sidebar { display: grid; gap: 0; }
.side-block { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.side-block:last-child { margin-bottom: 0; border-bottom: 0; }
.side-block h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.side-block p:not(.eyebrow) { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.62; }
.side-book .cover {
  width: 180px;
  margin-bottom: 24px;
  box-shadow: 0 24px 55px rgba(11, 45, 80, 0.14);
}
.side-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.side-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: color 180ms ease;
}
.side-list a:hover, .side-list a:focus-visible { color: var(--green-text); }

/* Themenliste (wie "Mehr von mir" auf der Bücherseite) */

.links-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(48px, 10vw, 150px);
}
.links-section .section-intro > p:last-child {
  max-width: 460px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
  transition: color 180ms ease, padding 180ms ease;
}
.link-list a:hover, .link-list a:focus-visible { padding: 14px 12px; color: var(--green-text); }
.link-list .count {
  flex: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------- Themen- und Archivseiten ---------- */

.page-head { padding: 72px 0 56px; }
.page-head .intro { margin-top: 22px; }
.page-figure {
  max-width: 760px;
  margin: 40px 0 0;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}
.page-body { max-width: 820px; padding-bottom: 96px; }
.year-title {
  margin: 56px 0 8px;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em;
}
.year-title:first-child { margin-top: 0; }

/* ---------- Beitragsseite ---------- */

.post-header { padding-top: 56px; }

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--green-text); }

.post-header h1 {
  margin: 0 0 28px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}
.post-meta img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; filter: saturate(0.84); }
.post-meta strong { display: block; color: var(--ink); font-size: 14px; }

.origin-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
}
.origin-note a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* Fließtext */

.prose {
  padding: 40px 0 16px;
  font-family: var(--serif);
  line-height: 1.7;
}
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose h2 { margin: 1.8em 0 0.6em; font-size: 1.5em; line-height: 1.2; letter-spacing: -0.015em; }
.prose h3 { margin: 1.6em 0 0.55em; font-size: 1.25em; line-height: 1.3; }
.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.prose a:hover { color: var(--green-text); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; padding-left: 0.2em; }
.prose li > p { margin: 0; }
.prose li::marker { color: var(--green); }
.prose hr { width: 56px; height: 2px; margin: 2.2em 0; border: 0; background: var(--green); }
.prose blockquote {
  margin: 1.8em 0;
  padding-left: 1.1em;
  border-left: 3px solid var(--green);
  font-size: 1.15em;
  font-style: italic;
}
.prose figure { margin: 2em 0; }
.prose figure img { padding: 8px; background: var(--white); border: 1px solid var(--line); }
.prose figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}

/* Ende des Beitrags */

.post-end {
  display: grid;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}
.inline-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 13px;
}
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.discuss {
  margin: 0;
  padding: 18px 22px;
  background: var(--paper-deep);
  font-size: 15px;
  line-height: 1.6;
}
.discuss .text-link { margin-top: 6px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Hinweis auf Seminar und Buch */

.offer { margin-top: 56px; }
.offer-inner {
  padding: clamp(24px, 4vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--sans);
}
.offer-inner > h2 { margin: 0 0 28px; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.offer-item h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.offer-item p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.62; }
.offer-item .eyebrow { margin-bottom: 8px; color: var(--link); }
.offer-book { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: start; }
.offer-book img { box-shadow: 0 14px 30px rgba(11, 45, 80, 0.16); }

/* Autorenbox */

.author-box { margin-top: 24px; }
.author-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
  padding: clamp(24px, 4vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--sans);
}
.author-inner .portrait { padding: 6px; background: var(--white); border: 1px solid var(--frame); }
.author-inner .portrait img { aspect-ratio: 1; object-fit: cover; filter: saturate(0.84); }
.author-inner .eyebrow { margin-bottom: 8px; color: var(--link); }
.author-inner h2 { margin: 0 0 4px; font-size: 27px; line-height: 1.2; }
.author-inner .author-role { margin-bottom: 14px; }
.author-inner .profile { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.author-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; }

.back-link { margin-top: 32px; margin-bottom: 0; font-family: var(--sans); }

.related { margin-top: 88px; }

/* ---------- Fußbereich ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}
.site-footer a { color: var(--white); transition: color 180ms ease; }
.site-footer a:hover, .site-footer a:focus-visible { color: #b9d47e; }
.site-footer :focus-visible { outline-color: #b9d47e; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0 40px;
}
.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 3px 0; }
.footer-brand .wordmark { color: var(--white); }
.footer-brand .wordmark span { color: #8fb6e3; }
.footer-brand p { max-width: 320px; margin: 14px 0 18px; }
.footer-legal p { margin: 0; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; }
.footer-legal a { font-weight: 700; }

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 960px) {
  .home-columns { grid-template-columns: 1fr; }
  .sidebar { max-width: 640px; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 64px; }
  .author-card { display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: center; }
  .portrait-wrap { width: 112px; margin: 0; padding: 5px; }
  .author-card .eyebrow { margin-bottom: 6px; }
  .section { padding: 64px 0; }
  .section-heading, .links-section { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p { justify-self: start; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .page-head { padding: 48px 0 40px; }
  .related { margin-top: 64px; }
}

@media (max-width: 640px) {
  .side-book { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; }
  .side-book .cover { width: 112px; margin: 0; }
  .offer-grid { grid-template-columns: 1fr; gap: 28px; }
  .offer-book { padding-top: 28px; border-top: 1px solid var(--line); }
  .author-inner { grid-template-columns: 1fr; gap: 18px; }
  .author-inner .portrait { width: 104px; }
  .post-header { padding-top: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: min(40px, 9.6vw); }  /* Leitsatz bleibt auch auf schmalen Smartphones zweizeilig */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
