/*
Theme Name: Schimpfblog Redesign
Author: Markus Ebert
Description: Redesign theme for the Schimpfblog staging site.
Version: 0.1.0
Text Domain: schimpfblog-redesign
*/

:root {
  --ink: #171717;
  --muted: #66615f;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #e7ded2;
  --accent: #c9252d;
  --accent-dark: #8f151d;
  --amber: #b85f00;
  --shadow: 0 18px 48px rgba(35, 25, 15, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 242, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 18px;
  font-weight: 900;
}
.main-nav { display: flex; align-items: center; gap: 14px; color: #3c3836; font-size: 14px; font-weight: 680; }
.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.button.secondary { background: #fff; color: var(--ink); }
.plain-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; }
h1 { max-width: 760px; font-size: clamp(48px, 7vw, 88px); line-height: .92; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.lead { max-width: 650px; margin: 24px 0 28px; color: #3b3734; font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-panel {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 28px;
}
.panel-title { margin: 0 0 18px; font-size: 18px; font-weight: 850; font-family: inherit; }
.rule-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.rule-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: #3b3734; }
.badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fbf3e6;
  font-weight: 900;
}
.site-main { padding: 48px 0 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-head p { max-width: 480px; margin: 0; color: var(--muted); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.posts { display: grid; gap: 16px; }
.post-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.date {
  min-height: 96px;
  display: grid;
  align-content: center;
  justify-items: center;
  background: #171717;
  color: #fff;
  text-align: center;
  font-weight: 850;
}
.date span { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 36px; line-height: 1; }
.post-card h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.18; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.pill {
  padding: 4px 8px;
  background: #f4eadc;
  color: #4f443d;
  border: 1px solid #e5d7c7;
  font-size: 13px;
  font-weight: 800;
}
.pill.open { background: #fff0df; color: var(--amber); }
.post-card p, .sidebox p, .submit-section p, .legal-block p, .cookie-banner p, .cookie-modal p, .legal-modal p { margin: 0; color: var(--muted); }
.sidebar { display: grid; gap: 18px; }
.sidebox { padding: 20px; background: #fff; border: 1px solid var(--line); }
.sidebox h3, .legal-block h3 { margin: 0 0 12px; font-size: 18px; }
.categories { display: flex; flex-wrap: wrap; gap: 8px; }
.category { padding: 8px 10px; border: 1px solid var(--line); background: #fffaf2; font-weight: 750; font-size: 14px; }
.submit-section {
  margin-top: 48px;
  padding: 28px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
.submit-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(320px, 1.14fr); gap: 28px; align-items: start; }
.submit-section p { margin-top: 14px; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: #3b3734; font-size: 14px; font-weight: 800; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cabcae;
  background: #fffaf2;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}
textarea { min-height: 132px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); }
.site-footer { padding: 32px 0; background: #171717; color: #fff; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #d8d1ca; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; }
.cookie-banner,
.cookie-modal,
.legal-modal {
  position: fixed;
  z-index: 60;
  padding: 22px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  display: none;
}
.cookie-banner { right: 18px; bottom: 18px; width: min(430px, calc(100% - 36px)); z-index: 50; }
.cookie-modal { inset: auto 18px 18px auto; width: min(520px, calc(100% - 36px)); }
.legal-modal { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(760px, calc(100% - 36px)); max-height: calc(100vh - 36px); z-index: 70; }
.cookie-banner.is-visible, .cookie-modal.is-visible, .legal-modal.is-visible, .modal-backdrop.is-visible { display: block; }
.cookie-banner h2, .cookie-modal h2, .legal-modal h2 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; line-height: 1.1; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cookie-row strong { display: block; margin-bottom: 4px; }
.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 30px;
  border: 1px solid var(--ink);
  background: #171717;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.toggle.off { background: #fff; color: #171717; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(23, 23, 23, .46);
  display: none;
}
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.legal-content { display: grid; gap: 18px; max-height: min(68vh, 680px); overflow: auto; padding-right: 6px; }
.legal-block { padding: 20px; background: #fff; border: 1px solid var(--line); }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero-grid, .content-grid, .submit-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .post-card { grid-template-columns: 1fr; }
  .date { min-height: auto; display: inline-flex; width: fit-content; padding: 10px 14px; gap: 8px; }
  .date span { font-size: 22px; }
  .section-head, .foot { align-items: start; flex-direction: column; }
  .cookie-banner, .cookie-modal { right: 12px; bottom: 12px; width: calc(100% - 24px); }
  .legal-modal { inset: 12px auto auto 12px; transform: none; width: calc(100% - 24px); max-height: calc(100vh - 24px); }
}
