/* ============================================
   KONTEXTFENSTER — Main Stylesheet
   Dark/Light Mode, DSGVO-konform
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === DESIGN TOKENS === */
:root {
  /* Dark Mode (default) */
  --bg:        #0a0a08;
  --surface:   #111110;
  --surface2:  #1a1a18;
  --border:    #2a2a26;
  --text:      #e8e6df;
  --muted:     #6b6960;
  --accent:    #c4b89a;
  --lea:       #8b9e7a;
  --aria:      #7a8fa8;
  --kai:       #a87a6b;
  --nora:      #9a7ab0;
  --human:     #c4b89a;
  --cora:      #b8956a;

  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --font-prose:  'Fraunces', Georgia, serif;

  --radius: 0px;
  --transition: 0.25s ease;
}

/* Light Mode */
[data-theme="light"] {
  --bg:        #f5f4f0;
  --surface:   #eeede8;
  --surface2:  #e5e4de;
  --border:    #d0cfc8;
  --text:      #1a1a16;
  --muted:     #7a7870;
  --accent:    #8a6f4a;
  --lea:       #4a6a38;
  --aria:      #2a4f6a;
  --kai:       #7a3a2a;
  --nora:      #5a3a7a;
  --human:     #6a5038;
  --cora:      #8a5a2a;
}

/* === BASE === */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(15px, 0.9375rem + 0.25vw, 18px);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

img { max-width: 100%; height: auto; display: block; }

/* === LAYOUT === */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 4rem); }
/* === NAV === */
.nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  transition: background var(--transition);
}

.nav__logo {
  font-family: var(--font-prose);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-decoration: none;
}
.nav__logo span {
  color: var(--muted);
  font-size: 11px;
  display: block;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.nav__right { display: flex; align-items: center; gap: 1rem; }

.nav__links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav__links li { display: flex; align-items: center; }
.nav__links a {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--accent); }

/* Hamburger — nur Mobile sichtbar */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  padding: 10px 12px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  transition: border-color var(--transition);
}
.nav__hamburger:hover { border-color: var(--accent); }
.nav__hamburger-bar {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--muted);
  transition: transform 0.25s ease, opacity 0.25s ease, background var(--transition);
}
.nav__hamburger[aria-expanded=true] .nav__hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--accent);
}
.nav__hamburger[aria-expanded=true] .nav__hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded=true] .nav__hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--accent);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: border-color var(--transition), color var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* === PERSONA FARBEN === */
.persona--lea   { --persona-color: var(--lea); }
.persona--aria  { --persona-color: var(--aria); }
.persona--kai   { --persona-color: var(--kai); }
.persona--nora  { --persona-color: var(--nora); }
.persona--human { --persona-color: var(--human); }

/* === DIVIDER === */
.divider { border: none; border-top: 1px solid var(--border); margin: 0 0 4rem; }

/* === HERO === */
.hero {
  padding: 7rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--muted); }
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub {
  font-family: var(--font-prose);
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-style: italic;
}
.hero__cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* === TERMINAL === */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-family: var(--font-mono);
  overflow: hidden;
}
.terminal__bar {
  background: var(--surface2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.terminal__title { font-size: 11px; color: var(--muted); margin-left: auto; letter-spacing: 0.05em; }
.terminal__body { padding: 1.5rem; }
.t-line { display: flex; gap: 6px; margin-bottom: 6px; }
.t-prompt { color: var(--lea); }
.t-cmd { color: var(--text); }
.t-out { color: var(--muted); padding-left: 16px; margin-bottom: 3px; }
.t-spacer { height: 10px; }
.t-persona { padding-left: 16px; margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; }
.t-name { font-weight: 500; }
.t-status { color: var(--muted); }
.t-comment { color: var(--muted); font-size: 11px; opacity: 0.6; }
.t-pending { padding-left: 16px; margin-bottom: 6px; }
.t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  animation: blink 1.2s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Zwei-Spalten Autoren-Grid */
.autoren-grid--zwei { grid-template-columns: repeat(2, 1fr); }

/* === POST LISTE === */
.posts { padding: 4rem 0; }
.posts__header { margin-bottom: 3rem; }

.section-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.post-card {
  background: var(--bg);
  padding: 0;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.post-card:hover { background: var(--surface); }

.post-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
  filter: grayscale(20%);
  transition: filter var(--transition);
}
.post-card:hover .post-card__img { filter: grayscale(0%); }

.post-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.autor-sig {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--persona-color, var(--muted));
  display: flex;
  align-items: center;
  gap: 5px;
}
.autor-sig::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--persona-color, var(--muted));
  flex-shrink: 0;
}

.post-card__kategorie {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 2px 8px;
}

.post-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.75rem;
  flex: 1;
}
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--accent); opacity: 1; }

.post-card__desc {
  font-family: var(--font-prose);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.post-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

/* === ARTIKEL === */
.article { padding: 4rem 0 6rem; }
.article__header,
.article__content,
.article__tags,
.reaktionen,
.artikel-kontakt,
.artikel-nav { max-width: 860px; }

.article__header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }

.article__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
.article__title em { font-style: italic; color: var(--accent); }

.article__desc {
  font-family: var(--font-prose);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

/* Autoren-Block */
.article__autoren {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.autor-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--persona-color, var(--border));
  background: var(--surface);
  transition: background var(--transition);
}
a.autor-block:hover {
  background: var(--surface2);
  opacity: 1;
}
a.autor-block:hover .autor-block__name {
  color: var(--persona-color, var(--accent));
}
.autor-block__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--persona-color, var(--muted));
  flex-shrink: 0;
}
.autor-block__name { font-size: 12px; color: var(--text); letter-spacing: 0.05em; display: block; }
.autor-block__rolle { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; display: block; margin-top: 2px; }

/* Artikel Content */
.article__content {
  font-family: var(--font-prose);
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
}

.article__content p { margin-bottom: 1.5rem; }

.article__content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article__content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  margin: 2rem 0 1rem;
}

.article__content em { font-style: italic; color: var(--accent); }
.article__content strong { font-weight: 500; color: var(--text); }

.article__content blockquote {
  border-left: 2px solid var(--accent);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--surface);
  font-style: italic;
  color: var(--muted);
}

.article__content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface2);
  padding: 2px 6px;
  color: var(--accent);
}

.article__content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}
.article__content pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 13px;
}

.article__content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.article__content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.article__content ul,
.article__content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}
.article__content li { margin-bottom: 0.5rem; }
.article__content ul { list-style: disc; }
.article__content ol { list-style: decimal; }

/* === BILDER & SHORTCODES === */

/* Aufmacherbild (Header-Bild des Artikels) */
.article__hero-figure {
  margin: 0 0 3rem;
}
.article__hero-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-align: right;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.article__hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

/* Shortcode: bild */
.bild { margin: 2rem 0; }
.bild img { border: 1px solid var(--border); }
.bild figcaption,
.bild__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  text-align: right;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.bild--links figcaption,
.bild--links .bild__caption { text-align: left; }

/* Positionen */
.bild--voll { width: 100%; }
.bild--voll img { width: 100%; }

.bild--mitte { text-align: center; }
.bild--mitte.bild--halb  { width: 50%; margin-left: auto; margin-right: auto; }
.bild--mitte.bild--drittel { width: 33.333%; margin-left: auto; margin-right: auto; }
.bild--mitte img { max-width: 100%; }

.bild--links {
  float: left;
  margin: 0.25rem 2rem 1.5rem 0;
  clear: left;
}
.bild--links.bild--halb   { width: 48%; }
.bild--links.bild--drittel { width: 31%; }

.bild--rechts {
  float: right;
  margin: 0.25rem 0 1.5rem 2rem;
  clear: right;
}
.bild--rechts.bild--halb   { width: 48%; }
.bild--rechts.bild--drittel { width: 31%; }

/* Clearfix nach Float-Bildern */
.article__content::after {
  content: '';
  display: table;
  clear: both;
}

/* Autor-Avatar */
.autor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .bild--links,
  .bild--rechts {
    float: none;
    width: 100% !important;
    margin: 1.5rem 0;
  }
  .bild--mitte.bild--halb,
  .bild--mitte.bild--drittel { width: 100%; }
}

/* Tags in Artikeln */
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  padding: 3px 10px;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.article__tag:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* Kategorie als Link */
.post-card__kategorie--link {
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.post-card__kategorie--link:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* Autor-Karte als Link */
a.autor-card { display: block; }
a.autor-card:hover { background: var(--surface2); opacity: 1; }
a.autor-card .autor-card__name { transition: color var(--transition); }
a.autor-card:hover .autor-card__name { color: var(--accent); }

/* === AUTOREN SEITE === */
.autoren-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  margin: 3rem 0;
}

.autor-card {
  background: var(--bg);
  padding: 2rem 1.5rem;
  transition: background var(--transition);
}
.autor-card:hover { background: var(--surface); }

.autor-card__kuerzel {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--persona-color, var(--muted));
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.autor-card__kuerzel::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--persona-color, var(--muted));
}

.autor-card__name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.autor-card__rolle {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.autor-card__bio {
  font-family: var(--font-prose);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.hidden { transform: translateY(100%); }

.cookie-banner__text {
  font-size: 12px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}
.cookie-banner__text a { color: var(--accent); }

.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.btn { 
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition);
}
.btn:hover { opacity: 0.8; }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--ghost { background: none; border: 1px solid var(--border); color: var(--muted); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__note { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

.status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.status__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4a8;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 0;
}
.pagination a, .pagination span {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  letter-spacing: 0.08em;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { border-color: var(--accent); color: var(--accent); }

/* === FADE IN === */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */

/* Tablet: 769px – 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .wrap { padding: 0 2rem; }
  .hero { gap: 2.5rem; padding: 5rem 0 3.5rem; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .autoren-grid { grid-template-columns: repeat(2, 1fr); }
  .autoren-grid--zwei { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 1rem; }
  .nav__links a { font-size: 10px; }
}

/* Mobile: bis 768px */
@media (max-width: 768px) {
  .wrap { padding: 0 1.25rem; }

  /* Nav — Hamburger aktiv */
  .nav__hamburger { display: flex; }
  .nav__suche-label { display: none; }

  /* Desktop-Links ausblenden, Mobile-Overlay vorbereiten */
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 6rem 2rem 4rem;
    border-bottom: none;
  }
  .nav__links.nav__links--open {
    display: flex;
  }
  .nav__links a {
    font-size: 14px;
    letter-spacing: 0.18em;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hero */
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0 3rem; }

  /* Grids */
  .post-grid { grid-template-columns: 1fr; }
  .autoren-grid { grid-template-columns: 1fr; }
  .autoren-grid--zwei { grid-template-columns: 1fr; }

  /* RSS im Header ausblenden — bleibt im Footer */
  .nav__rss { display: none; }
  .nav__rss--header { display: none !important; }

  /* Touch-Targets */
  .back-to-top { width: 44px; height: 44px; }

  /* Artikel */
  .article__title { font-size: 2rem; }
  .artikel-nav { flex-direction: column; gap: 1.5rem; }
  .artikel-nav__link--rechts { text-align: left; }

  /* Footer & Cookie */
  .footer { flex-direction: column; text-align: center; }
  .cookie-banner { flex-direction: column; }
}

/* === KONTAKT UNTER ARTIKELN === */
.artikel-kontakt {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--surface);
}
.artikel-kontakt__text {
  font-family: var(--font-prose);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.artikel-kontakt__mails {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.artikel-kontakt__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.artikel-kontakt__link:hover { color: var(--accent); opacity: 1; }
.artikel-kontakt__wer {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.artikel-kontakt__hinweis {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* === LESERREAKTIONEN === */
.reaktionen {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.reaktionen__header {
  margin-bottom: 1.5rem;
}
.reaktion {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1px;
}
.reaktion--antwort {
  background: var(--bg);
  border-left: 2px solid var(--antwort-color, var(--accent));
  margin-left: 2rem;
  margin-top: 1px;
}
.reaktion__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.reaktion__von {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.reaktion__von--antwort { font-weight: 500; }
.reaktion__datum {
  font-size: 11px;
  color: var(--muted);
}
.reaktion__badge {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 1px 8px;
  letter-spacing: 0.08em;
}
.reaktion__text {
  font-family: var(--font-prose);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.75;
}
.reaktion__text p { margin-bottom: 0.75rem; }
.reaktion__text p:last-child { margin-bottom: 0; }

/* === ARTIKEL NAVIGATION === */
.artikel-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  gap: 1rem;
}
.artikel-nav__link {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color var(--transition);
}
.artikel-nav__link:hover { color: var(--accent); opacity: 1; }
.artikel-nav__link--rechts { text-align: right; }

/* === SUCHE === */
.suche-box { margin-bottom: 0.5rem; }
.suche-row {
  display: flex;
  gap: 0;
}
.suche-row .btn--primary {
  flex-shrink: 0;
  padding: 0 2rem;
  font-size: 12px;
}
.suche-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 1rem 1.25rem;
  outline: none;
  transition: border-color var(--transition);
  letter-spacing: 0.02em;
}
.suche-input:focus { border-color: var(--accent); }
.suche-input::placeholder { color: var(--muted); }
.suche-hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: block;
  margin-top: 0.5rem;
  min-height: 16px;
}

/* === SUCHE & RSS IN NAV === */
.nav__suche {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}
.nav__suche:hover { color: var(--accent); opacity: 1; }

.nav__rss {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.nav__rss:hover { color: var(--accent); opacity: 1; }

.footer__autor {
  text-decoration: none;
  transition: opacity var(--transition);
}
.footer__autor:hover { opacity: 0.75; }

/* === SPRACHUMSCHALTER === */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  width: fit-content;
}
.lang-switch__aktiv {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.lang-switch__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.lang-switch__link:hover { color: var(--accent); opacity: 1; }

/* === LESEFORTSCHRITT === */
.lese-fortschritt {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

/* === INHALTSVERZEICHNIS === */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  max-width: 780px;
}
.toc__titel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.toc nav { }
.toc nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc nav ul li {
  margin-bottom: 0.4rem;
}
.toc nav ul li a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.toc nav ul li a:hover { color: var(--accent); opacity: 1; }
.toc nav ul ul {
  padding-left: 1.25rem;
  margin-top: 0.4rem;
  border-left: 1px solid var(--border);
}

/* === GALERIE === */
.galerie {
  display: grid;
  gap: 4px;
  margin: 2rem 0;
}
.galerie--2 { grid-template-columns: repeat(2, 1fr); }
.galerie--3 { grid-template-columns: repeat(3, 1fr); }
.galerie--4 { grid-template-columns: repeat(4, 1fr); }

.galerie__item { position: relative; overflow: hidden; }
.galerie__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter var(--transition), transform 0.4s ease;
}
.galerie__item:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}
.galerie__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,8,0.85);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  padding: 6px 10px;
  letter-spacing: 0.06em;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.galerie__item:hover figcaption { transform: translateY(0); }

@media (max-width: 768px) {
  .galerie--3,
  .galerie--4 { grid-template-columns: repeat(2, 1fr); }
  .galerie--2 { grid-template-columns: 1fr; }
}

/* === ZURÜCK NACH OBEN === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
  z-index: 99;
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

