:root {
  color-scheme: dark;
  --background: #000;
  --text: #f5f5f5;
  --body-text: #e5e5e5;
  --muted: #999;
  --link: #d6b58a;
  --border: #303030;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #faf9f6;
  --text: #1c1b19;
  --body-text: #33302b;
  --muted: #69645d;
  --link: #806039;
  --border: #dedbd5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 24px;
  background: var(--background);
  color: var(--body-text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 5px;
}

.site {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: 40px 0 28px;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: 12px;
  padding: 8px 12px;
  background: var(--background);
  transform: translateY(-200%);
  z-index: 1;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  flex-wrap: wrap;
  margin-bottom: 56px;
  line-height: 24px;
}

.site-name {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 16px;
}

nav a {
  white-space: nowrap;
}

nav a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

main {
  flex: 1;
  min-width: 0;
}

h1 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

p + p {
  margin-top: 18px;
}

.tagline,
.muted {
  color: var(--muted);
}

.tagline {
  font-family: var(--font-mono);
  font-size: 13px;
}

.latest {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.latest > p {
  margin-top: 12px;
}

/* Ausschließlich die Kontaktseite; die gemeinsamen Seitenstile bleiben gleich. */
.contact-page {
  --contact-hover: #16130f;
  --contact-border-hover: #ebd1ae;
}

:root[data-theme="light"] .contact-page {
  --contact-hover: #f2ece3;
  --contact-border-hover: #5e4425;
}

.contact-page .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.contact-page .contact-grid > li {
  min-width: 0;
}

/* Vorbereitet für einen späteren Eintrag über die gesamte Grid-Breite. */
.contact-page .contact-item--wide {
  grid-column: 1 / -1;
}

.contact-page .contact-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--link);
  border-radius: 6px;
  background: var(--background);
  color: var(--body-text);
  text-decoration: none;
}

.contact-page .contact-card-icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--link);
}

.contact-page .contact-card-content {
  min-width: 0;
}

.contact-page .contact-card-title {
  display: block;
  color: var(--link);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.contact-page .contact-card-description {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.contact-page .contact-card:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-color: var(--contact-border-hover);
  background: var(--contact-hover);
}

@media (hover: hover) and (pointer: fine) {
  .contact-page .contact-card:hover {
    border-color: var(--contact-border-hover);
    background: var(--contact-hover);
  }

  .contact-page .contact-card:hover .contact-card-title {
    text-decoration-thickness: 2px;
  }
}

@media (max-width: 600px) {
  .contact-page .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-page .contact-card {
    padding: 20px;
  }
}

/* Textlisten, ohne Karten oder Vorschaubilder. */
.post-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.post-list li + li {
  margin-top: 28px;
}

.post-date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.post-title {
  margin-bottom: 0;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.post-description {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

/* Editorial Journal und kompaktes, nach Jahren gruppiertes Archiv. */
.archive-link {
  font-size: 14px;
}

.journal-list {
  margin-top: 40px;
}

.journal-list li + li {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.journal-list .post-title {
  margin-top: 8px;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.3;
}

.blog-archive {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 24px;
}

.archive-year {
  margin-top: 20px;
}

.archive-year summary,
.archive-kind {
  font-family: var(--font-mono);
  font-size: 13px;
}

.archive-year summary {
  width: fit-content;
  padding-block: 6px;
  color: var(--link);
  cursor: pointer;
}

.archive-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.archive-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
}

.archive-list li + li {
  margin-top: 12px;
}

.archive-kind {
  color: var(--muted);
}

/* Gemeinsame Artikelgestaltung nach dem Website-Design-Leitfaden. */
.article-page .site-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.article-page .site-name,
.article-meta {
  color: var(--link);
}

.article-page .site-header nav {
  font-size: 13px;
}

.article-page .site-header nav a {
  color: var(--muted);
}

.article-meta {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-header h1 {
  max-width: 20ch;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.18;
  text-wrap: balance;
}

.article-subtitle {
  color: var(--muted);
  font-size: 20px;
}

.article-rule {
  margin: 36px 0;
  height: 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.article-body {
  line-height: 1.8;
}

.article-body p + p {
  margin-top: 22px;
}

/* Eigene Kernaussagen bleiben Absätze und stehen einmal im Lesefluss. */
.article-body .article-key-statement {
  margin-block: 36px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--link);
  color: var(--text);
  font-size: clamp(19px, 2.6vw, 21px);
  line-height: 1.7;
}

.article-body h2 {
  margin: 42px 0 14px;
  font-size: clamp(21px, 3.5vw, 24px);
  line-height: 1.4;
}

.article-body blockquote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 2px solid var(--link);
  font-style: italic;
}

.article-sources {
  font-size: 15px;
  line-height: 1.7;
}

.article-sources h2 {
  color: var(--link);
  font-size: 16px;
}

.article-sources ol {
  margin: 18px 0 0;
  padding-left: 24px;
}

.article-sources li + li {
  margin-top: 14px;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 16px;
}

.article-nav > a {
  max-width: 100%;
}

.article-nav-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.article-nav-archive {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 600px) {
  .archive-list li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .archive-kind {
    grid-column: 2;
  }

  .article-subtitle {
    font-size: 18px;
  }

  .article-body .article-key-statement {
    margin-block: 32px;
    padding-left: 16px;
  }

  .article-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-nav-archive {
    margin-left: 0;
    text-align: left;
  }
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 192px;
  align-items: start;
  gap: 32px;
}

.about-copy {
  min-width: 0;
}

/* Die bisherige Avatarfläche bleibt auch vor dem Laden des SVG reserviert. */
.avatar {
  position: relative;
  display: block;
  width: 192px;
  max-width: 100%;
  aspect-ratio: 56 / 66;
  margin: 0;
  background: #000;
  image-rendering: pixelated;
}

.avatar-portrait {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-interests {
  margin-top: 32px;
}

.interests {
  margin: 14px 0 0;
  padding-left: 22px;
}

.interests li + li {
  margin-top: 6px;
}

.about-closing {
  margin-top: 28px;
}

.site-footer {
  padding-top: 56px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.theme-toggle {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

@media (max-width: 600px) {
  body {
    padding: 0 22px;
    font-size: 17px;
  }

  .site {
    padding-block: 28px 24px;
  }

  .site-header {
    gap: 16px 24px;
    margin-bottom: 44px;
  }

  nav {
    gap: 16px;
    font-size: 15px;
  }

  .latest {
    margin-top: 36px;
    padding-top: 24px;
  }

  .about-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .avatar {
    width: 160px;
  }

  .site-footer {
    padding-top: 44px;
  }
}
