/* =========================================================
   Anonym im Netz — Blog
   Mobile-first, klassisches Design (Beige + Dunkelrot)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg-page: #ede2c5;          /* warm tan body */
  --bg-card: #fbf6e9;          /* cream content card */
  --bg-top:  #f4e9cb;          /* topbar top gradient */
  --bg-top-2:#e7d9b1;          /* topbar bottom gradient */
  --bg-dark: #2b2620;          /* footer / widget header */
  --bg-dark-2: #3b3127;        /* footer 2 / accents */

  --ink:        #2b2620;       /* body text */
  --ink-soft:   #3b3127;       /* secondary */
  --ink-mute:   #6e6457;       /* meta text */
  --ink-red:    #7a1d28;       /* dark red headlines/links */
  --ink-red-h:  #5a141d;       /* hover */
  --accent:     #e88a2c;       /* orange */

  --rule:        #d6c5a0;
  --rule-soft:   #e6dabb;
  --rule-dotted: #d6c5a0;

  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shell-w: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga";
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }
a { color: var(--ink-red); }
a:hover { color: var(--ink-red-h); }
:focus-visible {
  outline: 2px solid var(--ink-red);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-red); color: var(--bg-card);
  padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Topbar (mobile-first) ---------- */
.top {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-top-2) 100%);
  border-bottom: 1px solid #c9b88f;
  box-shadow: 0 1px 0 #faf3df inset;
}
.top-inner {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.sitename {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.tagline {
  font-size: 11px;
  color: var(--ink-mute);
  font-style: italic;
  margin-top: 2px;
}
.burger {
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid #c9b88f;
  border-radius: 2px;
  display: flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--ink-soft); }

/* Desktop nav (hidden on mobile) */
.nav { display: none; }

/* ---------- Mobile menu (collapsed by default) ---------- */
.mobile-menu {
  display: none;
  border-top: 1px solid #c9b88f;
  background: var(--bg-top);
}
.mobile-menu[open] { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 6px 0; }
.mobile-menu li { border-bottom: 1px dotted var(--rule-soft); }
.mobile-menu li:last-child { border-bottom: 0; }
.mobile-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.mobile-menu a:hover { background: #fbf6e9; color: var(--ink-red); }

/* ---------- Page shell ---------- */
.shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 16px 14px 40px;
}
.cols { display: grid; grid-template-columns: 1fr; gap: 28px; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.crumbs a { color: var(--ink-red); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Article card (shared by post + listing) ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 20px 18px 18px;
  box-shadow: 0 1px 0 #ffffff inset, 0 1px 2px rgba(0,0,0,0.04);
}
.card + .card { margin-top: 18px; }

.article-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.article-head h1,
.article-head h2.entry-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  flex: 1;
  text-wrap: balance;
}
.article-head h2.entry-title { font-size: 22px; }
.article-head h2.entry-title a { color: inherit; text-decoration: none; }
.article-head h2.entry-title a:hover { color: var(--ink-red); }

.bubble {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; flex-shrink: 0;
}
.bubble svg { width: 48px; height: 42px; }
.bubble-n {
  position: absolute; top: 5px; left: 0; right: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.meta {
  font-size: 13px;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 18px;
}
.meta-k { color: var(--ink); margin-right: 6px; font-weight: 500; }
.meta-v { margin-right: 14px; color: var(--ink); text-decoration: none; }
.meta-link { color: var(--ink-red); }
.meta-date { color: var(--ink-red); }
.meta-cat-k { color: var(--ink-red); font-weight: 600; }

/* ---------- Body type ---------- */
.body { color: var(--ink); }
.body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}
.body .lead {
  font-size: 15.5px;
  line-height: 1.7;
  background: #f4eccf;
  border-left: 3px solid var(--rule);
  padding: 14px 16px;
  margin: 0 0 22px;
}
.body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  margin: 22px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #efe4c4;
}

/* ---------- Excerpt (overview cards) ---------- */
.excerpt {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: var(--ink);
}
.read-more {
  display: inline-block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-red);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  letter-spacing: 0.3px;
}
.read-more:hover { border-bottom-color: var(--ink-red); color: var(--ink-red-h); }
.read-more::after { content: " →"; }

/* ---------- Tags ---------- */
.tags {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.tags-label {
  font-size: 12px;
  color: var(--ink-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.tags ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tags a {
  display: inline-block;
  font-size: 12px;
  padding: 3px 9px;
  background: #f1e6c5;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
}
.tags a:hover { background: var(--ink-red); color: var(--bg-card); border-color: var(--ink-red); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-block;
  min-width: 36px; height: 36px;
  line-height: 34px; text-align: center; padding: 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}
.pagination a:hover { background: #f4eccf; color: var(--ink-red); border-color: var(--ink-red); }
.pagination .current { background: var(--ink-red); color: var(--bg-card); border-color: var(--ink-red); font-weight: 600; }
.pagination .gap { background: transparent; border: 0; color: var(--ink-mute); }

/* ---------- Sidebar widgets ---------- */
.side {
  display: flex; flex-direction: column; gap: 18px;
}
.search-form {
  display: flex; gap: 0;
  border: 1px solid var(--rule);
  background: var(--bg-card);
}
.search-form input {
  flex: 1; border: 0; padding: 10px 12px; font-size: 14px;
  background: transparent; color: var(--ink); outline: none;
}
.search-form button {
  background: var(--accent); color: #fff; border: 0;
  padding: 0 16px; font-size: 13px; font-weight: 600;
}
.widget {
  background: var(--bg-card);
  border: 1px solid var(--rule);
}
.widget-h {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark) 100%);
  display: flex; align-items: center; gap: 10px;
}
.bullet {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.bullet::after {
  content: "›";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 700;
}
.widget ul { list-style: none; margin: 0; padding: 6px 0; }
.widget li { border-bottom: 1px dotted var(--rule-soft); }
.widget li:last-child { border-bottom: 0; }
.widget li a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}
.widget li a::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  flex-shrink: 0;
}
.widget li a:hover { color: var(--ink-red); background: #f4eccf; }
.widget.related li a { flex-direction: column; align-items: flex-start; padding: 10px 14px 12px; gap: 4px; }
.widget.related li a::before { display: none; }
.widget.related .meta-line { font-size: 11.5px; color: var(--ink-mute); }
.widget.lang li a[aria-current="page"] { font-weight: 700; color: var(--ink-red); }

/* ---------- Related row (under article) ---------- */
.related-row {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 18px 16px;
}
.section-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-red);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rule-soft);
}
.related-row ul {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.related-row li a { display: block; text-decoration: none; color: inherit; }
.related-thumb {
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(135deg, #ede2c5 0 8px, #e4d6b2 8px 16px);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.related-thumb span {
  font-family: var(--mono);
  font-size: 11px; color: var(--ink-mute);
}
.related-cat {
  font-size: 11px; color: var(--ink-red);
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700;
  margin-bottom: 4px;
}
.related-row h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--ink);
  line-height: 1.3;
}
.related-row li a:hover h3 { color: var(--ink-red); }
.related-meta { font-size: 11.5px; color: var(--ink-mute); }

/* ---------- Comments ---------- */
.comments {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 18px 16px;
}
.comments .count { color: var(--ink-mute); font-weight: 400; font-size: 15px; font-style: italic; }
.comment-list { list-style: none; margin: 0 0 22px; padding: 0; }
.comment-list li {
  padding: 14px 0;
  border-bottom: 1px dotted var(--rule);
}
.comment-list li:last-child { border-bottom: 0; }
.comment-head {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--ink-mute); margin-bottom: 4px;
}
.comment-head strong { color: var(--ink-red); font-weight: 700; }
.comment-list p { margin: 0; font-size: 14.5px; line-height: 1.6; }

.comment-form h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--ink);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.comment-form label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px; color: var(--ink-mute); margin-bottom: 12px;
}
.comment-form input,
.comment-form textarea {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  border-radius: 2px;
  font-family: inherit;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--ink-red);
  box-shadow: 0 0 0 3px rgba(122, 29, 40, 0.08);
}
.comment-form button {
  background: var(--ink-red); color: var(--bg-card);
  border: 0; padding: 10px 22px;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.3px;
}
.comment-form button:hover { background: var(--ink-red-h); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: var(--rule);
  padding: 28px 0;
  margin-top: 32px;
}
.footer-inner {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex; flex-direction: column; gap: 18px;
}
.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--bg-card);
  letter-spacing: 0.5px;
}
.footer-brand span { font-size: 12.5px; color: #a89578; }
.footer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 22px; flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--rule);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

/* =========================================================
   Tablet — 768px+: Hamburger raus, Nav unter Brand
   ========================================================= */
@media (min-width: 768px) {
  body { font-size: 16px; }

  .top-inner {
    padding: 18px 32px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .brand-logo { width: 60px; height: 60px; }
  .brand-logo img { width: 60px; height: 60px; }
  .sitename { font-size: 28px; }
  .tagline { font-size: 13px; }

  .burger { display: none; }
  .mobile-menu { display: none !important; }

  .nav {
    display: flex;
    width: 100%;
    border-top: 1px solid var(--rule);
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 18px;
    flex-wrap: wrap;
  }
  .nav a {
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
    display: inline-block;
    padding: 8px 0;
  }
  .nav a:hover { color: var(--ink-red); }

  .shell { padding: 28px 32px 60px; }
  .cols {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
  }

  .card { padding: 32px 36px 28px; }
  .card + .card { margin-top: 28px; }
  .article-head h1 { font-size: 32px; }
  .article-head h2.entry-title { font-size: 28px; }
  .bubble svg { width: 64px; height: 56px; }
  .bubble-n { font-size: 18px; top: 6px; }

  .body p { font-size: 15.5px; }
  .body .lead { font-size: 16.5px; }
  .body h2 { font-size: 22px; margin-top: 28px; }

  .related-row { padding: 24px 28px; }
  .related-row ul { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .section-h { font-size: 22px; }

  .comments { padding: 24px 28px; }
  .form-row { grid-template-columns: 1fr 1fr; }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    gap: 24px;
  }
}

/* Print: trim chrome */
@media print {
  .top, .nav, .burger, .mobile-menu, .side, .related-row, .comments, .footer { display: none; }
  body { background: #fff; color: #000; }
  .card { border: 0; box-shadow: none; padding: 0; }
}
