/* ============================================================
   Agentic Punks — Site layout
   Hugo-Schicht auf dem Design-System (ds/*.css). Werte 1:1 aus den
   Website- und Blog-Kits (ui_kits/*). Kein rohes Hex ausser den
   transluzenten Rot-Toenen (= --red #C1272D bei reduzierter Deckung).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
main { display: block; }

.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;
}

.fade-up { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ─── AI-Agent-Announcement-Bar (Muster: co-existence.ai) ─── */
.ap-aibar {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: .5rem 1rem; text-decoration: none; text-align: center;
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .01em;
  border-bottom: 2px solid var(--red);
}
.ap-aibar:hover { color: #fff; }  /* globalen a:hover (patterns.css) neutralisieren */
.ap-aibar-pulse {
  flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  animation: ap-sparkPulse 2.2s ease infinite;
}
.ap-aibar-text strong { color: #fff; font-weight: 700; }
.ap-aibar-go {
  flex-shrink: 0; color: #fff; background: var(--red);
  padding: .26rem .7rem; border-radius: 3px; font-weight: 500;
  box-shadow: 0 2px 0 var(--red-deep);
}
@keyframes ap-sparkPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(193, 39, 45, .35); }
  50%      { box-shadow: 0 0 0 7px rgba(193, 39, 45, 0); }
}
@media (max-width: 720px) {
  .ap-aibar { font-size: .72rem; gap: .5rem; }
  .ap-aibar-text strong { display: block; }
}
@media (max-width: 460px) {
  .ap-aibar-text { font-size: 0; }
  .ap-aibar-text strong { font-size: .8rem; }
}

/* ─── Agent-Seite (/fuer-agenten) ─── */
.ap-agents { padding: clamp(1.5rem, 4vw, 3rem) 0 4rem; }
.ap-agents-head { max-width: 46rem; margin-bottom: 2rem; }
.ap-agents-kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--red); margin: 0 0 .4rem; }
.ap-agents-intro { color: var(--muted); line-height: 1.6; }
.ap-agents-machine { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.ap-agents-disclosure {
  border: 1px dashed var(--rule); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 2.5rem;
  background: var(--paper); font-size: .9rem; line-height: 1.55;
}
.ap-agents-disclosure-tag { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--red); margin-bottom: .4rem; }
.ap-agents-disclosure p { margin: 0; color: var(--muted); }
.ap-agents-sec { margin-bottom: 2.2rem; }
.ap-agents-sec h2 { font-size: 1.2rem; margin: 0 0 .7rem; }
.ap-agents-sec ul { margin: 0; padding-left: 1.1rem; line-height: 1.6; }
.ap-agents-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.ap-agents-cols h3 { font-size: .95rem; margin: 0 0 .5rem; }
.ap-agents-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.ap-agents-why { list-style: none; margin: 0; padding: 0; counter-reset: why; display: grid; gap: 1rem; }
.ap-agents-why li { counter-increment: why; padding-left: 2.6rem; position: relative; line-height: 1.6; }
.ap-agents-why li::before {
  content: counter(why, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 700; color: var(--red);
}
.ap-agents-relay {
  border-left: 3px solid var(--red); background: var(--paper);
  padding: 1rem 1.2rem; border-radius: 0 8px 8px 0;
}
.ap-agents-relay-text { margin: 0 0 .8rem; font-size: 1.02rem; line-height: 1.55; }
.ap-agents-relay-copy {
  background: var(--red); color: var(--cream); border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em;
  padding: .4rem .9rem; border-radius: 4px; box-shadow: 0 2px 0 var(--red-deep);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ap-agents-relay-copy:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--red-deep); }
.ap-agents-curious { border-top: 1px solid var(--rule); padding-top: 1.6rem; margin-top: 1rem; }
.ap-agents-curious ul { list-style: none; padding: 0; font-family: var(--font-mono); font-size: .82rem; line-height: 1.9; }

/* ─── Buttons ─────────────────────────────────────────────── */
.ap-btn {
  display: inline-block; font-family: var(--font-mono); font-weight: 700;
  font-size: .9rem; letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--cream); background: var(--red); border: none;
  padding: .8rem 2rem .8rem 1.5rem; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%); transition: background .15s;
}
.ap-btn:hover { background: var(--red-deep); color: var(--cream); }
.ap-btn-ghost {
  display: inline-block; font-family: var(--font-mono); font-weight: 700;
  font-size: .9rem; letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--cream); background: transparent; border: 2px solid var(--muted-dark);
  padding: calc(.8rem - 2px) 1.5rem; cursor: pointer;
}
.ap-btn-ghost:hover { border-color: var(--cream); color: var(--cream); }

/* ─── Header (Keil + Sprache + Logo), 1:1 Website-Kit ─────── */
.ap-page-header { position: relative; text-align: center; overflow: hidden; margin-bottom: 2rem; }
.ap-header-wedge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 260px; height: 310px; background: var(--red); z-index: 1;
  clip-path: polygon(5% 0%, 95% 0%, 58% 100%, 42% 100%);
}
.ap-lang-row {
  position: relative; z-index: 3; padding-top: .75rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.ap-lang-pill {
  display: inline-block; padding: .25rem .625rem;
  border: 1px solid rgba(255,255,255,0.4); color: rgba(255,255,255,0.85);
  text-decoration: none; transition: background-color .15s, color .15s;
}
.ap-lang-pill:hover { color: #fff; background: rgba(255,255,255,0.15); }
.ap-lang-pill.is-active { background: #fff; color: var(--red); }
.ap-header-contact {
  position: absolute; top: .75rem; right: 1rem; z-index: 4;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; background: var(--red); color: #fff;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  transition: background-color .15s;
}
.ap-header-contact:hover { background: var(--ink); color: #fff; }
.ap-logo-wrap { position: relative; z-index: 2; padding-top: 1rem; padding-bottom: .75rem; }
.ap-logo-img { display: block; margin: 0 auto; width: 360px; max-width: 360px; height: auto; }

/* ─── Nav (dual-nav Desktop + mobile-nav) ─────────────────── */
.dual-nav { margin: 8px auto 4rem; max-width: 58rem; }
.dual-nav-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0; }
.dual-nav-block { text-align: center; padding: .75rem; }
.dual-nav-block:first-child { padding-right: 1.25rem; }
.dual-nav-block:last-child { padding-left: 1.25rem; }
.dual-nav-label {
  display: block; font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: var(--red); text-decoration: none;
  margin-bottom: .6rem; padding: .3em .4em; border-bottom: 2px solid var(--red);
  transition: background-color .2s, color .2s;
}
.dual-nav-label.is-active { background: var(--red); color: #fff; }
.dual-nav-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.nav-pill {
  display: inline-block; font-family: var(--font-mono); font-size: .9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; word-spacing: -.25em; padding: .35em .7em; color: var(--ink);
  text-decoration: none; border: 1px solid transparent; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-pill:hover, .nav-pill.is-active { color: var(--red); border-bottom: 2px solid var(--red); }

/* Hamburger + Mobile-Nav: nur < 768px sichtbar */
.ap-hamburger-wrap { display: none; justify-content: center; margin-bottom: 1.5rem; }
.hamburger-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 6px; background: none; border: 2px solid var(--ink);
  cursor: pointer; transition: border-color .2s;
}
.hamburger-btn:hover { border-color: var(--red); }
.hamburger-btn:hover .hamburger-line { background: var(--red); }
.hamburger-line { display: block; width: 100%; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.hamburger-btn.is-open .hamburger-line:first-child { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open .hamburger-line:last-child { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav { display: none; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-nav.is-open { max-height: 460px; margin-bottom: 1.5rem; }
.mobile-nav-section { text-align: center; padding: .75rem 0; }
.mobile-nav-section + .mobile-nav-section { border-top: 2px solid var(--red); }
.mobile-nav-label {
  display: inline-block; font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: var(--red); text-decoration: none;
  margin-bottom: .5rem; padding: .25em .6em; transition: background-color .2s, color .2s;
}
.mobile-nav-label.is-active { background: var(--red); color: #fff; }
.mobile-nav-link {
  display: block; font-family: var(--font-mono); font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: .4em .6em; color: var(--ink);
  text-decoration: none; transition: color .15s;
}
.mobile-nav-link:hover, .mobile-nav-link.is-active { color: var(--red); }

/* ─── Startseite ──────────────────────────────────────────── */
.ap-hero { text-align: center; margin: 64px 0; }
.ap-hero h1 {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.25;
  letter-spacing: var(--tracking-tight); margin: 0 auto; max-width: 42rem; color: var(--ink);
  overflow-wrap: break-word;
}
.ap-hero p { font-size: 1rem; line-height: 1.625; color: var(--muted); max-width: 42rem; margin: 16px auto 0; text-wrap: pretty; }
.ap-hero-cta { margin-top: 24px; }

.ap-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px auto 0; max-width: 48rem; }
.ap-feat { border: 2px solid rgba(193,39,45,0.2); padding: 1.5rem 1.25rem; text-align: center; }
.ap-feat .ic { color: var(--red); display: flex; justify-content: center; margin-bottom: .75rem; }
.ap-feat h2 { font-family: var(--font-mono); font-weight: 700; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 .25rem; color: var(--ink); }
.ap-feat p { font-size: .75rem; line-height: 1.625; color: var(--muted); margin: 0; text-wrap: pretty; }

/* Text + Bild (Team / Arbeitsweise) — Kit .how */
.ap-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 64px; }
.ap-split.img-right .ap-split-media { order: 2; }
.ap-split h2 { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; margin: 0 0 .75rem; color: var(--ink); }
.ap-split p { font-size: 1rem; line-height: 1.625; color: var(--muted); margin: 0 0 1rem; }
.ap-split p strong { color: var(--ink); }
.ap-split .ap-btn { margin-top: .5rem; }
.ap-split-media { border: 2px solid rgba(193,39,45,0.2); aspect-ratio: 4/3; overflow: hidden; }
.ap-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Zitat-Banner (ink) */
.ap-quote { background: var(--ink); color: var(--cream); margin: 64px 0; padding: 3rem 1.5rem; text-align: center; }
.ap-quote blockquote { font-family: var(--font-mono); font-weight: 700; font-size: 1.375rem; line-height: 1.4; margin: 0 auto; max-width: 46rem; color: var(--cream); }
.ap-quote figcaption { margin-top: 1rem; }
.ap-quote cite { font-style: normal; font-size: .8rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted-dark); }

/* Werte — Kit .values */
.ap-values { margin: 64px 0; }
.ap-values h2 { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; margin: 0 0 8px; color: var(--ink); }
.ap-values-rows { margin-top: 22px; }
.ap-vrow { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid rgba(193,39,45,0.2); }
.ap-vnum { width: 40px; height: 40px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.ap-vrow h3 { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; letter-spacing: .02em; margin: 0 0 .35rem; color: var(--ink); }
.ap-vrow p { font-size: .9rem; line-height: 1.625; color: var(--muted); margin: 0; text-wrap: pretty; }

/* FAQ — native <details> Accordion */
.ap-faq { margin: 64px 0; }
.ap-faq h2 { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; margin: 0 0 8px; color: var(--ink); }
.ap-faq-list { margin-top: 22px; }
.ap-faq-item { border-top: 1px solid rgba(193,39,45,0.2); }
.ap-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; padding: 1.25rem 0; list-style: none; font-family: var(--font-mono); font-weight: 700; font-size: 1rem; letter-spacing: .02em; color: var(--ink); }
.ap-faq-item summary::-webkit-details-marker { display: none; }
.ap-faq-item summary::after { content: "+"; color: var(--red); font-size: 1.5rem; font-weight: 700; line-height: 1; flex: none; }
.ap-faq-item[open] summary::after { content: "\2212"; }
.ap-faq-a { padding: 0 0 1.5rem; }
.ap-faq-a p { font-size: .9rem; line-height: 1.625; color: var(--muted); margin: 0; text-wrap: pretty; }

/* CTA-Banner (ink) */
.ap-cta { background: var(--ink); color: var(--cream); margin: 64px 0 0; padding: 3.5rem 1.5rem; text-align: center; }
.ap-cta-inner { max-width: 42rem; margin: 0 auto; }
.ap-cta .slug { color: var(--red); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 700; }
.ap-cta h2 { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; margin: .5rem 0 1rem; color: var(--cream); }
.ap-cta p { font-size: 1rem; line-height: 1.6; color: var(--muted-dark); margin: 0 0 1.5rem; }
.ap-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── Blog-Liste ──────────────────────────────────────────── */
.ap-blog-intro { font-family: var(--font-mono); font-style: italic; font-size: 1rem; line-height: 1.625; color: var(--muted); text-align: center; max-width: 640px; margin: 56px auto 72px; }
.ap-blog-head { text-align: center; margin: 40px 0 56px; }
.ap-blog-head h1 { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-h1); letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0; display: inline-block; border-bottom: 6px solid var(--red); padding-bottom: 8px; }
.ap-postlist { display: flex; flex-direction: column; gap: 72px; }
.ap-postcard { display: grid; grid-template-columns: 440px 1fr; gap: 40px; align-items: start; }
.ap-postcard--noimg { grid-template-columns: 1fr; }
.ap-postcard-media { display: block; border: none; padding: 0; background: none; }
.ap-postcard-media img { display: block; width: 100%; height: 320px; object-fit: cover; }
.ap-postcard-body { position: relative; overflow: hidden; }
.ap-postcard h2 { font-family: var(--font-mono); font-weight: 700; font-size: 31.5px; line-height: 1.08; letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0 0 6px; overflow-wrap: break-word; }
.ap-postcard h2 a { color: var(--ink); }
.ap-postcard h2 a:hover { color: var(--red); }
.ap-postcard-trim { height: 10px; background: var(--red); margin: 10px -60px 18px 0; }
.ap-postcard-excerpt { font-family: var(--font-mono); font-size: 1rem; line-height: 1.625; color: var(--muted); margin: 18px 0 22px; }

/* Meta-Zeile */
.ap-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 15px; color: var(--ink); }
.ap-meta .seg { display: inline-flex; align-items: center; gap: 7px; }
.ap-meta .seg.muted { color: var(--muted); }
.ap-meta .sep { color: var(--muted); }
.ap-meta svg { width: 16px; height: 16px; }
.ap-meta .ic-red { color: var(--red); }
.ap-meta .ic-muted { color: var(--muted); }
.ap-meta b { font-weight: 700; }

/* Paginierung */
.pagination { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 64px 0 0; padding: 0; }
.pagination .page-item { margin: 0; padding: 0; }
.pagination .page-link { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; font-family: var(--font-mono); font-weight: 700; font-size: .9rem; color: var(--red); text-decoration: none; border: 2px solid var(--red); transition: background .15s, color .15s; }
.pagination .page-link:hover { background: var(--red); color: var(--cream); }
.pagination .page-item.active .page-link { background: var(--red); color: var(--cream); }
.pagination .page-item.disabled .page-link { color: var(--muted); border-color: var(--rule); pointer-events: none; }

/* ─── Artikel ─────────────────────────────────────────────── */
.ap-article { max-width: 720px; margin: 0 auto; padding: 40px 0 0; }
.ap-article-back { text-align: center; margin: 0 0 26px; }
.ap-article-back a { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--red); }
.ap-article h1 { font-family: var(--font-mono); font-weight: 700; font-size: 34px; line-height: 1.12; letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0 0 4px; overflow-wrap: break-word; }
.ap-article-trim { height: 8px; background: var(--red); width: 280px; max-width: 60%; margin: 10px 0 16px; }
.ap-article figure { margin: 26px 0 6px; }
.ap-article figure img { display: block; width: 100%; }
.ap-article figcaption { font-family: var(--font-mono); font-style: italic; font-size: 13px; color: var(--muted); margin-top: 8px; }
.ap-podcast-player { margin: 22px 0 6px; padding: 14px; background: var(--ink); border-left: 8px solid var(--red); }
.ap-podcast-player audio { display: block; width: 100%; border-radius: 0; }
/* native Controls-Leiste (WebKit/Chrome) eckig statt gerundet */
.ap-podcast-player audio::-webkit-media-controls-enclosure { border-radius: 0; }
.ap-podcast-player audio::-webkit-media-controls-panel { border-radius: 0; }
.ap-transcript { margin: 30px 0 6px; border-top: 2px solid var(--ink); }
.ap-transcript > summary { cursor: pointer; padding: 14px 0; font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: var(--ink); }
.ap-transcript > summary:hover { color: var(--red); }
.ap-transcript-note { margin: 0 0 14px; font-family: var(--font-mono); font-size: 13px; font-style: italic; color: var(--muted); }
.ap-transcript-body { padding: 6px 0 4px; }
.ap-tx { margin: 0 0 16px; font-family: var(--font-mono); font-size: 0.95rem; line-height: 1.6; color: var(--muted); }
.ap-tx-who { display: block; margin-bottom: 3px; font-weight: 700; font-size: 13px; letter-spacing: 0.03em; color: var(--red); }
.ap-podcast-subscribe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: -32px auto 56px; }
.ap-sub-btn { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; color: var(--text-invert); background: var(--ink); border: 2px solid var(--ink); padding: 10px 18px; text-decoration: none; }
.ap-sub-btn:hover { background: var(--red); border-color: var(--red); color: var(--text-invert); }

.ap-share { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; flex-wrap: wrap; }
.ap-share .label { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.ap-share a, .ap-share button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; padding: 0; }
.ap-share a:hover, .ap-share button:hover { background: var(--red); border-color: var(--red); color: var(--cream); }
.ap-share svg { width: 15px; height: 15px; }

/* ─── Detailseiten: Lesbarkeit + Zine-Akzente ─────────────── */
/* Zine-Kicker im linken Desktop-Rand */
.ap-article { position: relative; }
.ap-article-kicker {
  position: absolute; top: 46px; left: -28px; transform: translateX(-100%);
  writing-mode: vertical-rl;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--red);
  user-select: none; pointer-events: none;
}
/* ponytail: nur wo der Rand Platz hat; sticky-Rail waere das Upgrade */
@media (max-width: 1099px) { .ap-article-kicker { display: none; } }

/* ─── Prose (Markdown) ────────────────────────────────────── */
.prose { font-family: var(--font-mono); font-size: 1.0625rem; line-height: 1.75; color: var(--muted); overflow-wrap: break-word;
  margin-top: 22px; }
.prose > p { margin: 22px 0; }
/* Initiale am ersten Absatz */
.prose > p:first-of-type::first-letter {
  float: left; font-weight: 700; font-size: 3.4em; line-height: 0.82;
  color: var(--red); margin: 6px 12px 0 0;
}
.prose h2 { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--ink); margin: 34px 0 14px; }
.prose h3 { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--ink); margin: 28px 0 12px; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--red-deep); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul { list-style: none; padding: 0 0 0 24px; margin: 20px 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; background: var(--red); }
.prose ol { padding-left: 22px; margin: 20px 0; }
.prose ol li { margin-bottom: 12px; }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 18px; margin: 24px 0; color: var(--muted); }
.prose code { background: rgba(193,39,45,0.08); padding: .12em .4em; font-size: .92em; color: var(--red-deep); }
.prose pre { background: var(--ink); color: var(--cream); padding: 20px 22px; overflow-x: auto; margin: 24px 0; border-left: 3px solid var(--red); font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { display: block; margin: 24px 0; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-family: var(--font-mono); font-style: italic; font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; border-top: 3px solid var(--red); margin: 32px 0; opacity: .6; }
.prose iframe { max-width: 100%; margin: 24px 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 12px; text-align: left; }

/* Content-Seiten (Impressum, Datenschutz, Kontakt, Team, Service) */
.ap-page { max-width: 720px; margin: 0 auto; padding: 40px 0 0; }
.ap-page h1 { font-family: var(--font-mono); font-weight: 700; font-size: 34px; line-height: 1.12; letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0 0 8px; overflow-wrap: break-word; }
.ap-page-trim { height: 8px; background: var(--red); width: 240px; max-width: 60%; margin: 10px 0 24px; }

/* ─── Footer (minimal, 1:1 Website-Kit) ───────────────────── */
.ap-footer { margin-top: 4rem; margin-bottom: 2rem; background: none; }
.ap-footer-inner { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.ap-footer-legal {
  border-top: 2px solid rgba(193,39,45,0.3); padding: 1.5rem 0 1rem;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  font-family: var(--font-mono); font-size: .875rem; color: var(--muted);
}
.ap-footer-link { color: var(--muted); text-decoration: none; transition: color .15s; }
.ap-footer-link:hover { color: var(--red); }
.ap-footer-dot { color: rgba(193,39,45,0.5); }

/* ─── Content-Seiten: Klassen aus dem CMS-Export, auf DS-Tokens gemappt ── */
:root { --punk-gray-600: var(--muted); --ap-accent: var(--red); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.ap-section-inner { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.ap-hero-title { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.25; letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0 0 .5rem; }

/* Text + Bild zweispaltig (Team) mit Hover-Bildwechsel */
.ap-text-image { margin: 64px 0; }
.ap-text-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ap-text-image-grid.img-right .ap-text-image-media { order: 2; }
.ap-text-image-media { position: relative; border: 2px solid rgba(193,39,45,0.2); overflow: hidden; }
.ap-text-image-img { display: block; width: 100%; height: auto; }
.ap-text-image-img-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.ap-text-image-media.has-hover { cursor: pointer; }
.ap-text-image-media:hover .ap-text-image-img-hover,
.ap-text-image-media.is-hovered .ap-text-image-img-hover { opacity: 1; }
.ap-text-image-content h2 { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; margin: 0 0 .75rem; color: var(--ink); }

/* Fliesstext-Blöcke aus dem CMS */
.body-text { font-size: 1rem; line-height: 1.625; color: var(--muted); }
.body-text p { margin: 0 0 1rem; }
.body-text strong { color: var(--ink); }
.body-text a { color: var(--red); text-decoration: underline; }
.body-text ul { list-style: none; padding: 0; margin: 0; }
.body-text li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.body-text li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; background: var(--red); }

/* Zweispaltige Service-Sektionen */
.ap-two-col { margin: 48px 0; }
.ap-two-col-header { margin-bottom: 1.5rem; }
.ap-two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.section-title { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; color: var(--ink); margin: 0; display: inline-block; border-bottom: 2px solid var(--red); padding-bottom: 6px; }
.section-label { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.ap-image-block { margin: 32px 0; }
.ap-image-block figure { margin: 0; }
.ap-image-block img { display: block; width: 100%; border: 2px solid rgba(193,39,45,0.55); }

/* Text-Block (Impressum, Datenschutz, Kontakt) */
.ap-text-block { margin: 48px 0; padding: 0 24px; }
.ap-text-block-inner { max-width: 720px; margin: 0 auto; }
.ap-text-block.is-dark { background: var(--ink); padding: 3rem 24px; }
.ap-text-block.is-dark .ap-text-content h2,
.ap-text-block.is-dark .ap-text-content p,
.ap-text-block.is-dark .ap-text-content strong { color: var(--cream); }
.ap-text-content h2 { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin: 0 0 1rem; }
.ap-text-content h3 { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin: 1.5rem 0 .5rem; }
.ap-text-content p { font-size: 1rem; line-height: 1.7; color: var(--ink); margin: 0 0 1rem; }
.ap-text-content a { color: var(--red); text-decoration: underline; }
/* Buttons in Text-Bloecken behalten ihre Button-Farben (nicht die Link-Regel oben). */
.ap-text-content a.ap-btn, .ap-text-content a.ap-btn-ghost, .ap-text-content a.btn-primary, .ap-text-content a.btn-outline { color: var(--cream); text-decoration: none; }
.ap-text-content ul { padding-left: 22px; margin: 0 0 1rem; }
.ap-text-content li { margin-bottom: .5rem; }

/* CTA-Banner (Service, Kontakt) */
.ap-cta-banner { background: var(--ink); color: var(--cream); margin: 64px 0; padding: 3.5rem 1.5rem; text-align: center; }
.ap-cta-banner-inner { max-width: 42rem; margin: 0 auto; }
.ap-cta-banner .section-title, .ap-cta-banner h2 { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--cream); margin: 0 0 1rem; border: none; display: block; }
.ap-cta-banner p { font-size: 1rem; line-height: 1.6; color: var(--muted-dark); margin: 0 0 1.5rem; }
.ap-cta-banner .section-label { color: var(--red); }
.ap-cta-banner a { color: var(--cream); }

/* Buttons aus dem CMS */
.btn-primary { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: .9rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--cream); background: var(--red); border: none; padding: .8rem 2rem .8rem 1.5rem; text-decoration: none; clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%); }
.btn-primary:hover { background: var(--red-deep); color: var(--cream); }
.btn-outline { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: .9rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--cream); background: transparent; border: 2px solid var(--muted-dark); padding: calc(.8rem - 2px) 1.5rem; text-decoration: none; }
.btn-outline:hover { border-color: var(--cream); }

/* ─── Mobile (< 768px), 1:1 Mobile-Kit ────────────────────── */
@media (max-width: 768px) {
  .wrap { padding: 0 1rem; }
  .container, .ap-section-inner { padding: 0 1rem; }
  .ap-text-image-grid, .ap-two-col-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ap-text-image-grid.img-right .ap-text-image-media { order: 0; }

  .ap-page-header { margin-bottom: 1.5rem; }
  .ap-header-wedge { width: 10rem; height: 13rem; }
  .ap-logo-img { width: 75%; max-width: 380px; }

  .dual-nav { display: none; }
  .ap-header-contact { display: none; }
  .ap-hamburger-wrap { display: flex; }
  .mobile-nav { display: block; }

  .ap-hero { margin: 24px 0 40px; }
  .ap-features { grid-template-columns: 1fr; }
  .ap-split, .ap-split.img-right { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 48px; }
  .ap-split.img-right .ap-split-media { order: 0; }

  .ap-postcard { grid-template-columns: 1fr; gap: 20px; }
  .ap-postcard-media img { height: 220px; }
  .ap-postcard h2 { font-size: 22.5px; }
  .ap-postcard-trim { margin-right: -1rem; }
}

/* Utility: Element nur auf Mobil ausblenden (Test: Service-Illustrationen). */
@media (max-width: 720px) { .ap-hide-mobile { display: none; } }

/* Service: alternierendes Zickzack der zwei Spalten (nur Desktop, Bild-Spalte
   und Bullet-Spalte tauschen visuell; DOM/Mobil-Reihenfolge bleibt). */
@media (min-width: 769px) {
  .ap-two-col-grid.ap-swap > :nth-child(1) { order: 2; }
  .ap-two-col-grid.ap-swap > :nth-child(2) { order: 1; }
}
