/* =====================================================
   informatio.ai — gemeinsame Styles
   ===================================================== */

:root {
  --bg: #f6f2ea;
  --paper: #fbf8f1;
  --fg: #1a1a1a;
  --muted: #6a655c;
  --line: #d9d2c2;
  --accent: #5a3a2a;
  --accent-soft: #b08560;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --paper: #1d1a17;
    --fg: #e9e5dc;
    --muted: #9a9389;
    --line: #2e2a25;
    --accent: #d4a373;
    --accent-soft: #b08560;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); color: #fff; }

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease, color .2s ease;
}
a:hover { border-color: var(--accent); color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* =====================================================
   Hamburger menu
   ===================================================== */

.menu-trigger {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 100;
  width: 46px;
  height: 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.menu-trigger:hover { background: var(--bg); transform: scale(1.05); }
.menu-trigger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transition: transform .3s ease, opacity .2s ease;
  border-radius: 1px;
}
.menu-trigger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-trigger.open span:nth-child(2) { opacity: 0; }
.menu-trigger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-overlay .menu-inner { width: 100%; text-align: center; }
.menu-overlay ul { list-style: none; padding: 0; margin: 0; }
.menu-overlay li {
  margin: 10px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}
.menu-overlay.open li { opacity: 1; transform: translateY(0); }
.menu-overlay.open li:nth-child(1) { transition-delay: 0.05s; }
.menu-overlay.open li:nth-child(2) { transition-delay: 0.10s; }
.menu-overlay.open li:nth-child(3) { transition-delay: 0.15s; }
.menu-overlay.open li:nth-child(4) { transition-delay: 0.20s; }
.menu-overlay.open li:nth-child(5) { transition-delay: 0.25s; }
.menu-overlay.open li:nth-child(6) { transition-delay: 0.30s; }
.menu-overlay a {
  font-family: 'EB Garamond', serif;
  font-size: clamp(34px, 5.5vw, 50px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  border: none;
  color: var(--fg);
  display: inline-block;
  padding: 4px 0;
}
.menu-overlay a:hover { color: var(--accent); }
.menu-overlay a.current { color: var(--accent); }
.menu-overlay a.current::before { content: "· "; color: var(--accent); }
.menu-overlay .menu-foot {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =====================================================
   Site header
   ===================================================== */

header.site {
  padding: 26px 0 18px;
  display: flex;
  align-items: center;
}
.logo {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  font-style: italic;
}
.logo .dot { color: var(--accent); font-style: normal; }

/* =====================================================
   Hero & page-header
   ===================================================== */

section.hero {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
section.hero .kicker,
.page-header .kicker {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
section.hero h1 {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
section.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
section.hero p.lede {
  color: var(--muted);
  font-size: 21px;
  max-width: 620px;
  margin: 0;
  line-height: 1.55;
}

.page-header { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 8px; }
.page-header h1 {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.page-header p { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0; }

/* =====================================================
   Section labels
   ===================================================== */

.section-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* =====================================================
   Posts list
   ===================================================== */

section.posts { padding: 56px 0 24px; }
ul.post-list { list-style: none; padding: 0; margin: 0; }
ul.post-list li { padding: 26px 0; border-bottom: 1px solid var(--line); }
ul.post-list li:last-child { border-bottom: none; }
.post-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.post-meta .dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }
.post-title {
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  border: none;
  display: inline-block;
  margin-bottom: 8px;
}
.post-title:hover { color: var(--accent); }
.post-excerpt { color: var(--muted); margin: 4px 0 0; font-size: 18px; }
.post-author {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* =====================================================
   Lexikon — Vorschau-Grid (auf Startseite)
   ===================================================== */

section.lexikon { padding: 48px 0 24px; }
section.lexikon .intro { color: var(--muted); max-width: 620px; margin: 0 0 30px; }

.lex-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.lex-entry {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .2s ease;
  display: block;
  text-decoration: none;
  color: var(--fg);
}
.lex-entry:hover { background: var(--bg); color: var(--fg); }
.lex-entry .lex-letter {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.lex-entry .lex-term {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.25;
}
.lex-entry .lex-desc { font-size: 15px; color: var(--muted); line-height: 1.5; }

.section-more {
  margin-top: 26px;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: none;
}
.section-more:hover { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* =====================================================
   Lexikon — alphabetischer Index (auf Lexikon-Seite)
   ===================================================== */

.lex-az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.lex-az-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  border-radius: 0;
  transition: all .15s ease;
}
.lex-az-nav a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.lex-az-nav a.disabled {
  color: var(--muted);
  opacity: 0.35;
  pointer-events: none;
}

.lex-letter-section { margin-bottom: 40px; scroll-margin-top: 80px; }
.lex-letter-section h2 {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 38px;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
ul.lex-list { list-style: none; padding: 0; margin: 0; }
ul.lex-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
ul.lex-list li:last-child { border-bottom: none; }
.lex-list-term {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  border: none;
  color: var(--fg);
  display: inline-block;
  margin-bottom: 4px;
}
.lex-list-term:hover { color: var(--accent); }
.lex-list-term.pending {
  color: var(--muted);
  pointer-events: none;
  cursor: default;
}
.lex-list-term.pending::after {
  content: " · in Arbeit";
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.lex-list-desc { color: var(--muted); font-size: 16px; margin: 2px 0 0; }

/* =====================================================
   Lexikon — Eintragsseite (Wiki-Artikel)
   ===================================================== */

.lex-breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 32px 0 24px;
}
.lex-breadcrumb a { color: var(--muted); border: none; }
.lex-breadcrumb a:hover { color: var(--accent); }

article.lex-article { padding-bottom: 48px; }
article.lex-article > header {
  padding: 24px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.lex-letter-large {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
article.lex-article h1 {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: clamp(38px, 5.5vw, 56px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 18px;
}
.lex-tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 21px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  max-width: 620px;
}

.lex-body {
  font-size: 19px;
  line-height: 1.75;
  color: var(--fg);
}
.lex-body p { margin: 0 0 22px; }
.lex-body p:first-child::first-letter {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  float: left;
  font-size: 64px;
  line-height: 0.95;
  padding: 8px 10px 0 0;
  color: var(--accent);
}
.lex-body h3 {
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  margin: 36px 0 14px;
  letter-spacing: -0.005em;
}
.lex-body em { color: var(--fg); }
.lex-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}
.lex-body a:hover { border-color: var(--accent); }

.lex-related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.lex-related h2 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 16px;
}
.lex-related ul { list-style: none; padding: 0; margin: 0; }
.lex-related li { margin-bottom: 6px; }
.lex-related a {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  color: var(--fg);
  border: none;
}
.lex-related a:hover { color: var(--accent); }
.lex-related a::before { content: "→ "; color: var(--accent); font-style: italic; }

.lex-foot {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =====================================================
   About / Authors
   ===================================================== */

section.about { padding: 48px 0; }
section.about > p.project { color: var(--muted); max-width: 620px; margin: 0 0 44px; font-size: 18px; }

/* ----- Hauptautor mit Portrait ----- */
.author-primary {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.portrait {
  width: 180px;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}
.portrait-initial {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 86px;
  font-weight: 500;
  line-height: 1;
}
.author-text h3 {
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.author-text .title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.author-text p { color: var(--fg); margin: 0 0 14px; font-size: 18px; line-height: 1.65; }
.author-text p:last-child { margin-bottom: 0; }

/* ----- Mitautorin ----- */
.author-secondary { max-width: 620px; }
.author-secondary h3 {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.author-secondary .title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.author-secondary p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
.author-secondary em { font-style: italic; color: var(--fg); }

.author-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: none;
  text-transform: uppercase;
}
.author-link:hover { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* =====================================================
   Publikationen
   ===================================================== */

section.publikationen { padding: 48px 0 24px; }
section.publikationen .intro {
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 36px;
  font-size: 18px;
}
.pub-author { margin-bottom: 48px; }
.pub-author h3 {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.005em;
}
ul.pub-list { list-style: none; padding: 0; margin: 0 0 16px; }
ul.pub-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
ul.pub-list li:last-child { border-bottom: none; }
.pub-title {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  border: none;
  color: var(--fg);
  display: inline-block;
  margin-bottom: 4px;
}
.pub-title:hover { color: var(--accent); }
.pub-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.pub-more { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.pub-more a { color: var(--accent); border-bottom: 1px solid var(--line); }
.pub-more a:hover { border-bottom-color: var(--accent); }
.pub-placeholder { font-style: italic; color: var(--muted); margin: 0; }

/* =====================================================
   Kontaktformular
   ===================================================== */

section.kontakt { padding: 32px 0 56px; }
.kontakt-intro { color: var(--muted); max-width: 540px; margin: 0 0 32px; font-size: 18px; }

.kontakt-form { max-width: 560px; }
.kontakt-form label { display: block; margin-bottom: 22px; }
.kontakt-form .label-text {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.kontakt-form input[type="text"],
.kontakt-form input[type="email"],
.kontakt-form textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  color: var(--fg);
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color .2s ease, background .2s ease;
}
.kontakt-form input[type="text"]:focus,
.kontakt-form input[type="email"]:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.kontakt-form textarea { resize: vertical; min-height: 160px; line-height: 1.55; }

.kontakt-form button {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 13px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  margin-top: 8px;
}
.kontakt-form button:hover { background: var(--fg); border-color: var(--fg); }

.kontakt-form .honeypot { display: none; }

/* =====================================================
   Footer
   ===================================================== */

footer.site {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 14px;
}
footer.site a { border: none; color: var(--muted); }
footer.site a:hover { color: var(--accent); }
footer.site .foot-links { display: flex; gap: 22px; }

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 620px) {
  body { font-size: 18px; }
  .post-title { font-size: 24px; }
  .lex-grid { grid-template-columns: 1fr; }
  .author-primary { grid-template-columns: 1fr; gap: 24px; }
  .portrait { width: 150px; }
  .portrait-initial { font-size: 72px; }
  footer.site { flex-direction: column; align-items: flex-start; }
  .menu-trigger { top: 16px; right: 16px; width: 42px; height: 42px; }
  article.lex-article h1 { font-size: 38px; }
  .lex-body { font-size: 18px; }
  .author-text h3 { font-size: 24px; }
}
