/*
Theme Name: dataloft Werkstatt
Theme URI: https://dataloft.ch
Author: dataloft GmbH
Author URI: https://dataloft.ch
Description: Schlankes Custom-Theme für dataloft.ch — Werkstatt-Buch-Editorial. Schweizer Rechtschreibung, alles per Du. Ohne Page-Builder, ohne Block-Editor-Verstecke.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.1
License: GNU GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dataloft-werkstatt
Tags: custom-theme, werkstatt, editorial
*/

/* ==========================================================================
 * Tokens — Farben, Schriften, Masse
 * ========================================================================== */

:root {
  --paper:        #F7F4EE;
  --paper-soft:   #EFEAE0;
  --ink:          #1A1814;
  --ink-soft:     #2D2A24;
  --mute:         #5B564E;
  --line:         #D9D2C2;
  --line-soft:    #E8E1D0;
  --accent:       #377AEB;   /* Logo-Blau (dataloft Brand) */
  --accent-soft:  #C1E3FC;   /* Logo-Hellblau (für Highlight-Wash) */
  --accent-mid:   #769DF6;   /* Logo-Mittelblau (für Hover/Sekundär-Akzente) */
  --accent-wash:  rgba(55, 122, 235, 0.18);

  --serif:        "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:         "IBM Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:         "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container:    1200px;
  --gutter:       24px;
  --section-y:    96px;
  --section-y-sm: 64px;
}

/* ==========================================================================
 * Reset light
 * ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
 * Layout
 * ========================================================================== */

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

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }
.section-soft { background: var(--paper-soft); }

/* ==========================================================================
 * Typografie
 * ========================================================================== */

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
h1.display { font-size: clamp(56px, 9vw, 128px); }
h2.display { font-size: clamp(36px, 5vw, 64px); margin-bottom: 0.4em; }
h3.display { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 0.5em; }

.italic { font-style: italic; }

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  max-width: 32em;
  margin: 0 0 1em;
}

.body-large {
  font-size: 19px;
  line-height: 1.6;
  max-width: 36em;
}

.mute { color: var(--mute); }

.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
}

.section-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
  display: block;
}
.section-num strong {
  color: var(--ink);
  font-weight: 500;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

/* ==========================================================================
 * Header
 * ========================================================================== */

.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
}

.brand {
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand:hover { border: none; }
.brand:hover .brand-logo { opacity: 0.85; }

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  flex-shrink: 0;
  transition: opacity 120ms ease;
}

.brand-stamp {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .brand-stamp { font-size: 9px; padding-left: 10px; }
}

@media (max-width: 600px) {
  .brand-stamp { display: none; }
}

.nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { margin: 0; }
.nav a {
  border: none;
  color: var(--mute);
}
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--ink); }

/* ==========================================================================
 * Cover
 * ========================================================================== */

.cover { padding: 112px 0 96px; }

.cover-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.cover-meta span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.cover-meta span + span::before {
  content: "·";
  margin-right: 24px;
  color: var(--line);
}

.cover h1 {
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

.cover-text {
  max-width: 36em;
  margin-top: 48px;
}

/* ==========================================================================
 * Werkstatt-Liste (Archive)
 * ========================================================================== */

.werkstatt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.werkstatt-list li { border-bottom: 1px solid var(--line); }
.werkstatt-list a {
  display: grid;
  grid-template-columns: 110px minmax(140px, 220px) 1fr auto;
  gap: 32px;
  padding: 24px 0;
  align-items: baseline;
  border: none;
  color: var(--ink);
}
.werkstatt-list a:hover { color: var(--accent); }
.werkstatt-list a:hover .werkstatt-title { color: var(--accent); }

.werkstatt-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  text-align: center;
  width: fit-content;
}
.werkstatt-tag.tag-eigen {
  color: var(--ink);                       /* WCAG-Kontrast: --ink statt --accent */
  border-color: var(--accent);             /* blauer Border bleibt als Eigenprojekt-Marker */
  background: rgba(55, 122, 235, 0.08);    /* leichte Blau-Tönung als zusätzlicher Indikator */
  font-weight: 500;
}

.werkstatt-slug {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.werkstatt-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  transition: color 120ms ease;
}

.werkstatt-arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--mute);
}

/* ==========================================================================
 * Werkstatt-Eintrag (Single)
 * ========================================================================== */

.entry-header { padding: 96px 0 64px; }

.entry-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.entry-meta span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.entry-meta span + span::before {
  content: "·";
  margin-right: 24px;
  color: var(--line);
}

.entry-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}

.entry-lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 0;
}

.entry-body { padding: 64px 0 96px; }
.entry-body .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 960px) {
  .entry-body .container {
    grid-template-columns: 200px minmax(0, 720px);
    gap: 64px;
  }
}

.entry-toc {
  position: sticky;
  top: 32px;
  align-self: start;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.entry-toc ol { list-style: none; padding: 0; margin: 0; }
.entry-toc li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.entry-toc a {
  border: none;
  color: var(--mute);
  display: flex;
  gap: 12px;
}
.entry-toc a:hover { color: var(--accent); }
.entry-toc strong { color: var(--ink); font-weight: 500; }

.entry-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.entry-section:first-child { border-top: none; padding-top: 0; }

.entry-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.entry-section h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0;
  margin: 32px 0 12px;
}

.entry-section p {
  font-size: 18px;
  line-height: 1.65;
}

.entry-section ul {
  margin: 0 0 1.5em;
  padding-left: 1.2em;
}
.entry-section ul li {
  font-size: 18px;
  line-height: 1.6;
  padding-left: 4px;
  margin-bottom: 8px;
}
.entry-section ul li::marker {
  color: var(--accent);
  content: "—  ";
}

/* ==========================================================================
 * Spec-Tabelle
 * ========================================================================== */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  width: 200px;
}

/* ==========================================================================
 * Code / Mono Block
 * ========================================================================== */

.code-block {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 24px 0;
  overflow-x: auto;
  white-space: pre;
}

.highlight {
  background: linear-gradient(transparent 60%, var(--accent-wash) 60%);
  padding: 0 2px;
}

/* ==========================================================================
 * Team — Karten-Grid
 * ========================================================================== */

.team-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 32px 0 48px;
}
@media (min-width: 720px) {
  .team-lead { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.team-card-lead {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.team-card-lead .team-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
  filter: saturate(0.92);
}

.team-card-lead .team-body {
  padding: 24px 28px 28px;
}

.team-card-lead .team-name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 4px;
  color: var(--ink);
}

.team-card-lead .team-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 16px;
}

.team-card-lead .team-bio {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}
@media (min-width: 600px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .team-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; }
}

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.team-card .team-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
  filter: saturate(0.92);
}

.team-card .team-body {
  padding: 18px 20px 22px;
}

.team-card .team-name {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.1;
  margin: 0 0 4px;
  color: var(--ink);
}

.team-card .team-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 12px;
}

.team-card .team-bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Vierbeiner-Sub-Sektion */

.team-paws {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (min-width: 600px) {
  .team-paws { grid-template-columns: 1fr 1fr 1fr; }
}

.team-paw-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  background: var(--paper);
}

.team-paw-card .team-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
}

.team-paw-card .team-body {
  padding: 14px 18px 18px;
}

.team-paw-card .team-name {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 4px;
}

.team-paw-card .team-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 10px;
}

.team-paw-card .team-bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ==========================================================================
 * Kontakt-Block
 * ========================================================================== */

.contact-block {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}
.contact-block h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 18em;
}
.contact-data {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 720px) {
  .contact-data {
    grid-template-columns: auto 1fr;
    gap: 12px 32px;
    max-width: 600px;
  }
}
.contact-data dt {
  color: var(--mute);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.contact-data dd {
  margin: 0;
  color: var(--ink);
}
.contact-data dd a {
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  display: inline-block;          /* Touch-Target Min 48px (WCAG 2.5.5) */
  padding: 12px 0;
  min-height: 24px;
}

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

.site-footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
  font-size: 15px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .site-footer .container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-col h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col a {
  border: none;
  color: var(--ink-soft);
  display: inline-block;          /* Touch-Target Min 48px (WCAG 2.5.5) */
  padding: 10px 0;
  min-height: 28px;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
 * Responsive Layer — Mobile First-Korrekturen
 * ========================================================================== */

/* Header — Logo + Nav stacken auf <800px */
@media (max-width: 800px) {
  .site-header { padding: 20px 0; }
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 12px 18px;
    width: 100%;
  }
  .nav a { font-size: 11px; }
}

/* Cover — vertikales Padding kürzer auf mobil */
@media (max-width: 700px) {
  .cover { padding: 64px 0 48px; }
  .cover-meta { margin-bottom: 48px; gap: 12px; }
  .cover-meta span + span::before { margin-right: 12px; }
  .cover h1 { margin-bottom: 32px; }
  .cover-text { margin-top: 32px; }
  .section { padding: var(--section-y-sm) 0; }
}

/* Werkstatt-Liste — Stack auf mobil, Slug + Arrow ausblenden */
@media (max-width: 700px) {
  .werkstatt-list a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 18px 0;
  }
  .werkstatt-list .werkstatt-slug,
  .werkstatt-list .werkstatt-arrow {
    display: none;
  }
  .werkstatt-list .werkstatt-title {
    font-size: 19px;
    line-height: 1.35;
  }
}

/* Entry-TOC — auf mobil unsticky, 2-Spalten-Liste statt Sticky-Sidebar */
@media (max-width: 959px) {
  .entry-toc {
    position: static;
    margin-bottom: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .entry-toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
  }
  .entry-toc li {
    border-bottom: none;
    padding: 4px 0;
  }
}
@media (max-width: 480px) {
  .entry-toc ol {
    grid-template-columns: 1fr;
  }
}

/* Spec-Table — auf mobil als Block-Liste statt Tabelle */
@media (max-width: 600px) {
  .spec-table { display: block; }
  .spec-table tbody { display: block; }
  .spec-table tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .spec-table tr:last-child { border-bottom: none; }
  .spec-table th {
    display: block;
    width: 100%;
    padding: 0 0 6px;
    border: none;
  }
  .spec-table td {
    display: block;
    padding: 0;
    border: none;
  }
}

/* Code-Block — auf mobil kleiner, horizontal scroll */
@media (max-width: 600px) {
  .code-block {
    font-size: 11px;
    padding: 14px 16px;
    line-height: 1.5;
  }
}

/* Entry-Title — Headline-Skalierung auf mobil bändigen */
@media (max-width: 600px) {
  .entry-title { line-height: 1.1; }
  .entry-lede { font-size: 18px; line-height: 1.45; }
  .entry-section h2 { line-height: 1.2; }
}

/* Footer — Spaltenanzahl gestaffelt */
@media (min-width: 720px) and (max-width: 959px) {
  .site-footer .container {
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
  }
}

/* Footer-Bottom — auf sehr schmal stacken */
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* Contact-Block — auf mobil weniger Padding */
@media (max-width: 600px) {
  .contact-block { padding: 64px 0; }
}

/* Container — auf sehr schmal weniger Gutter */
@media (max-width: 400px) {
  :root { --gutter: 16px; }
}

/* Werkstatt-Eintrag-Liste auf der Cover-Page (front-page.php) — gleiche Mobile-Logik */
@media (max-width: 700px) {
  .cover h1 .italic + br + .italic {
    /* Falls Italic-Spans existieren, Linebreak-Gestaltung beibehalten */
  }
}

/* Touch-Targets — auf Touch-Geräten grösser */
@media (hover: none) and (pointer: coarse) {
  .nav a {
    padding: 6px 0;
    display: inline-block;
  }
  .werkstatt-list a {
    padding: 22px 0;
  }
  .footer-col a {
    padding: 4px 0;
    display: inline-block;
  }
}

/* ============================================================
   Blog-Index + Archive (post cards)
   ============================================================ */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--ink);
}
.post-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.post-card:hover .post-card-thumb img {
  transform: scale(1.03);
}
.post-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.post-card-meta .post-card-cat {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.4px;
  font-weight: 500;
}
.post-card-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 400;
  color: var(--ink);
}
.post-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
  margin: 0 0 18px;
  flex: 1;
}
.post-card-cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.post-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.post-nav .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.post-nav .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  background: #fff;
  border-radius: 3px;
  transition: border-color 0.15s ease;
}
.post-nav .page-numbers:hover {
  border-color: var(--ink);
}
.post-nav .page-numbers.current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.post-nav .page-numbers.dots {
  border: none;
  background: transparent;
}

@media (max-width: 600px) {
  .post-list { grid-template-columns: 1fr; gap: 18px; }
  .post-card-body { padding: 18px; }
  .post-card-title { font-size: 19px; }
}

/* ============================================================
   Scroll-to-Top Button
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--accent);
}
.scroll-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}
@media (hover: none) and (pointer: coarse) {
  .scroll-top { width: 48px; height: 48px; }
}

/* ============================================================
   /wir/ — Team-Sections + Cards
   ============================================================ */
.team-section {
  margin-bottom: 64px;
}
.team-section > h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  margin: 0 0 24px;
  line-height: 1.2;
}
.team-section > p {
  max-width: 36em;
  color: var(--mute);
  margin-bottom: 32px;
}
.team-row {
  display: grid;
  gap: 24px;
}
.team-row-1 { grid-template-columns: minmax(0, 360px); }
.team-row-2 { grid-template-columns: repeat(2, 1fr); }
.team-row-3 { grid-template-columns: repeat(3, 1fr); }
.team-row-4 { grid-template-columns: repeat(4, 1fr); }
.team-section .team-row + p {
  margin-top: 16px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
  background: var(--paper);
  display: block;
}
.team-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 4px;
  line-height: 1.2;
}
.team-role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.team-card p:last-child {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 900px) {
  .team-row-3, .team-row-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-row-2, .team-row-3, .team-row-4 { grid-template-columns: 1fr; }
  .team-card { padding: 18px; }
}

/* ============================================================
   Archive-Filter (Kategorie-Pillen oben auf Blog/Tag/Author)
   ============================================================ */
.archive-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.archive-filter-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--mute);
  margin: 0;
  padding: 6px 0;
  align-self: center;
  margin-right: 8px;
}
.archive-filter-pill {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.3px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.archive-filter-pill:hover {
  border-color: var(--ink);
}
.archive-filter-pill.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
@media (max-width: 600px) {
  .archive-filter-label { width: 100%; margin-bottom: 4px; padding: 0; }
}

/* ==========================================================================
 * Lesetext-Cap für Pages (page.php → .page-prose)
 * Container bleibt 1200px wie /werkstatt/ (Header-Stempel einheitlich),
 * Lesetext intern auf 36em (~75ch) für Lesbarkeit. Tabellen/Bilder voll.
 * ========================================================================== */

.page-prose > * { max-width: 36em; }
.page-prose > figure,
.page-prose > table,
.page-prose > .alignwide,
.page-prose > .alignfull,
.page-prose > .wp-block-table { max-width: none; }
