/* Dillenberg Theme — ergänzendes CSS */

.dillenberg-blink {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #f2a65a;
  border-radius: 50%;
  margin-left: 20px;
  vertical-align: middle;
  animation: dillenberg-blink 1s infinite;
}

@keyframes dillenberg-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Navigation simpel & monospace */
.wp-block-navigation a { text-decoration: none; }
.wp-block-navigation a:hover { color: #f2a65a; }

/* Selection */
::selection { background: #f2a65a; color: #1e1611; }

/* Scrollbar */
::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: #1e1611; }
::-webkit-scrollbar-thumb  { background: #f2a65a; }

/* Focus */
:focus-visible {
  outline: 2px solid #f2a65a;
  outline-offset: 2px;
}

/* ═══ CRT Hero for single posts ══════════════════════════════════════ */
.crt-hero {
  position: relative;
  width: 100%;
  min-height: 64vh;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  margin: 0 0 4rem;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(34, 20, 6, 0.5) 0%, rgba(0, 10, 0, 0.85) 60%, #1e1611 100%),
    linear-gradient(180deg, #030603 0%, #1e1611 100%);
  color: #f2a65a;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid #1d140c;
  box-shadow:
    inset 0 0 140px rgba(30, 22, 17, 0.9),
    inset 0 0 40px rgba(242, 166, 90, 0.08);
  animation: crt-flicker 4.5s infinite steps(1, end);
}
.crt-hero::before {
  /* phosphor haze */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(242,166,90,0.10), transparent 55%),
              radial-gradient(ellipse at 80% 80%, rgba(242,166,90,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.crt-scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(30, 22, 17, 0) 0px,
    rgba(30, 22, 17, 0) 2px,
    rgba(30, 22, 17, 0.35) 3px,
    rgba(30, 22, 17, 0) 4px
  );
  mix-blend-mode: multiply;
  animation: crt-scan 8s linear infinite;
}
.crt-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(30, 22, 17, 0.65) 100%);
}
.crt-inner {
  position: relative; z-index: 4;
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  min-height: inherit;
}
.crt-hero .crt-meta {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.crt-hero .crt-meta::before {
  content: "▸ SIGNAL";
  color: #f2a65a; opacity: 0.5;
  margin-right: 0.5rem;
}
.crt-hero .crt-meta a { color: #f2a65a; text-decoration: none; border-bottom: 1px dotted rgba(242,166,90,0.4); }
/* "translate this"-Bar in der Post-Meta (öffnet UFO-Babelfish) */
.dl-xlate{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:wrap;text-transform:none;letter-spacing:0}
.dl-xlate-btn{font-family:inherit;font-size:.7rem;letter-spacing:.04em;background:rgba(242,166,90,.08);color:#dbaf83;border:1px solid rgba(242,166,90,.3);border-radius:2px;padding:.25rem .55rem;cursor:pointer;transition:all .15s;line-height:1.2}
.dl-xlate-btn:hover{background:rgba(242,166,90,.16);border-color:#f2a65a;color:#fffaf2;box-shadow:0 0 8px rgba(242,166,90,.3)}
.dl-xlate-done{font-size:.62rem;color:#786a5c;letter-spacing:.06em;display:inline-flex;align-items:center;gap:.3rem;flex-wrap:wrap}
.dl-xlate-lang{font-family:inherit;font-size:.62rem;background:transparent;color:#dbaf83;border:1px solid rgba(242,166,90,.25);border-radius:2px;padding:.1rem .35rem;cursor:pointer;transition:all .15s}
.dl-xlate-lang:hover{border-color:#f2a65a;color:#fffaf2;background:rgba(242,166,90,.1)}
/* Teaser-Bild in Blog-/Archiv-Liste */
.dl-teaser-img{margin:0 0 1rem}
.dl-teaser-img img{width:100%;height:auto;display:block;border:1px solid rgba(242,166,90,.15);border-radius:2px;transition:border-color .2s,filter .2s;filter:saturate(.92)}
.dl-teaser-img a:hover img{border-color:rgba(242,166,90,.45);filter:saturate(1)}
.crt-hero .crt-title {
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
  font-weight: 700 !important;
  font-size: clamp(2rem, 6.5vw, 5.2rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em !important;
  color: #f2a65a !important;
  margin: 0 !important;
  text-shadow:
    0 0 1px rgba(255, 250, 242, 0.25),
    0 0 6px rgba(242, 166, 90, 0.28),
    0 0 18px rgba(242, 166, 90, 0.14);
  animation: none;
}
.crt-hero .crt-title::before {
  content: "> ";
  color: #f2a65a; opacity: 0.85;
}
.crt-hero .crt-title::after {
  content: "_";
  display: inline-block;
  margin-left: 0.08em;
  animation: crt-cursor 1s steps(1) infinite;
}

@keyframes crt-flicker {
  0%, 97%, 100% { opacity: 1; }
  97.5% { opacity: 0.86; }
  98% { opacity: 1; }
  98.5% { opacity: 0.92; }
  99% { opacity: 1; }
}
@keyframes crt-glow {
  0%, 100% { text-shadow: 0 0 1px rgba(255,250,242,0.2), 0 0 6px rgba(242,166,90,0.25), 0 0 18px rgba(242,166,90,0.12); }
  50%      { text-shadow: 0 0 1px rgba(255,250,242,0.25), 0 0 8px rgba(242,166,90,0.35), 0 0 22px rgba(242,166,90,0.18); }
}
@keyframes crt-scan {
  0%   { background-position-y: 0; }
  100% { background-position-y: 4px; }
}
@keyframes crt-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .crt-hero, .crt-hero .crt-title, .crt-scanlines, .crt-hero .crt-title::after { animation: none; }
}

/* ═══ Image kick — weg von der Schuhschachtel ══════════════════════════ */
.wp-block-post-content figure,
.wp-block-post-content .wp-block-image,
.wp-block-post-content video {
  position: relative;
}
.wp-block-post-content figure img,
.wp-block-post-content .wp-block-image img,
.wp-block-post-content video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(242, 166, 90, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 250, 242, 0.04) inset,
    0 10px 24px rgba(30, 22, 17, 0.55),
    0 0 0 1px rgba(30, 22, 17, 0.6),
    0 0 40px rgba(242, 166, 90, 0.05);
  filter: saturate(1.05) contrast(1.02);
  transition: transform .5s ease, box-shadow .5s ease, filter .5s ease, border-color .5s ease;
  will-change: transform;
}

/* Leichter Tilt für ungerade figures — wirkt wie hingelegt, nicht gerastert */
.wp-block-post-content figure:nth-of-type(odd) img,
.wp-block-post-content .wp-block-image:nth-of-type(odd) img {
  transform: rotate(-0.6deg);
}
.wp-block-post-content figure:nth-of-type(even) img,
.wp-block-post-content .wp-block-image:nth-of-type(even) img {
  transform: rotate(0.5deg);
}

/* Hover — aufrichten, leuchten */
.wp-block-post-content figure:hover img,
.wp-block-post-content .wp-block-image:hover img,
.wp-block-post-content video:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.015);
  border-color: rgba(242, 166, 90, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 250, 242, 0.06) inset,
    0 24px 60px rgba(30, 22, 17, 0.7),
    0 0 0 1px rgba(242, 166, 90, 0.25),
    0 0 80px rgba(242, 166, 90, 0.15);
  filter: saturate(1.1) contrast(1.04);
}

/* Grün-Glow-Hintergrund als Aura hinter Bildern */
.wp-block-post-content figure::before,
.wp-block-post-content .wp-block-image::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(242, 166, 90, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.wp-block-post-content figure:hover::before,
.wp-block-post-content .wp-block-image:hover::before {
  opacity: 1;
}

/* Captions ruhiger setzen */
.wp-block-post-content figcaption,
.wp-block-post-content .wp-block-image figcaption,
.wp-block-post-featured-image .dl-featured-caption {
  text-align: center;
  color: #a49586;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-top: 0.7rem;
  font-style: italic;
}

/* Featured Image auf Single — gleiche Sprache */
.wp-block-post-featured-image img {
  border-radius: 4px;
  box-shadow:
    0 24px 60px rgba(30, 22, 17, 0.7),
    0 0 0 1px rgba(242, 166, 90, 0.15),
    0 0 80px rgba(242, 166, 90, 0.08);
  filter: saturate(1.05) contrast(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-post-content figure img,
  .wp-block-post-content .wp-block-image img,
  .wp-block-post-content video { transform: none !important; transition: none !important; }
}

/* ═══ CRT scanlines over first article image ══════════════════════════ */
.wp-block-post-content figure.crt-fx,
.wp-block-post-content .wp-block-image.crt-fx {
  position: relative;
  isolation: isolate;
}
.wp-block-post-content figure.crt-fx img,
.wp-block-post-content .wp-block-image.crt-fx img {
  transform: rotate(0deg);
  filter: saturate(1.1) contrast(1.08) brightness(0.98);
}
.wp-block-post-content figure.crt-fx::after,
.wp-block-post-content .wp-block-image.crt-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 4px;
  background:
    /* Scanlines */
    repeating-linear-gradient(
      to bottom,
      rgba(30, 22, 17, 0) 0px,
      rgba(30, 22, 17, 0) 2px,
      rgba(30, 22, 17, 0.35) 3px,
      rgba(30, 22, 17, 0) 4px
    ),
    /* Vignette */
    radial-gradient(ellipse at center, transparent 55%, rgba(30, 22, 17, 0.55) 100%),
    /* Phosphor tint */
    linear-gradient(180deg, rgba(242, 166, 90, 0.05), rgba(242, 166, 90, 0.02));
  mix-blend-mode: multiply;
  z-index: 2;
  animation: crt-img-flicker 5s steps(1, end) infinite;
}
.wp-block-post-content figure.crt-fx::before,
.wp-block-post-content .wp-block-image.crt-fx::before {
  /* Rolling scanline — the moving bright bar */
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(242, 166, 90, 0.08) 40%, rgba(242, 166, 90, 0.12) 50%, rgba(242, 166, 90, 0.08) 60%, transparent);
  pointer-events: none;
  z-index: 3;
  animation: crt-img-roll 7s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.85;
  border-radius: 4px;
}

@keyframes crt-img-flicker {
  0%, 97%, 100% { opacity: 1; }
  97.5% { opacity: 0.85; }
  98%   { opacity: 1; }
  98.5% { opacity: 0.92; }
}
@keyframes crt-img-roll {
  0%   { top: -20%; }
  100% { top: 120%; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-post-content figure.crt-fx::before,
  .wp-block-post-content .wp-block-image.crt-fx::before { animation: none; display: none; }
  .wp-block-post-content figure.crt-fx::after,
  .wp-block-post-content .wp-block-image.crt-fx::after { animation: none; }
}

/* ═══ CRT auf Featured-Image (Vorschau oben) ═════════════════════════ */
.wp-block-post-featured-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 4px;
}
.wp-block-post-featured-image img {
  filter: saturate(1.1) contrast(1.08) brightness(0.98);
  border-radius: 4px;
}
.wp-block-post-featured-image::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(30, 22, 17, 0) 0px,
      rgba(30, 22, 17, 0) 2px,
      rgba(30, 22, 17, 0.35) 3px,
      rgba(30, 22, 17, 0) 4px
    ),
    radial-gradient(ellipse at center, transparent 55%, rgba(30, 22, 17, 0.55) 100%),
    linear-gradient(180deg, rgba(242, 166, 90, 0.05), rgba(242, 166, 90, 0.02));
  mix-blend-mode: multiply;
  animation: crt-img-flicker 5s steps(1, end) infinite;
  border-radius: 4px;
}
.wp-block-post-featured-image::before {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(242, 166, 90, 0.10) 40%, rgba(242, 166, 90, 0.14) 50%, rgba(242, 166, 90, 0.10) 60%, transparent);
  pointer-events: none; z-index: 3;
  mix-blend-mode: screen;
  animation: crt-img-roll 7s linear infinite;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .wp-block-post-featured-image::before { display: none; }
  .wp-block-post-featured-image::after { animation: none; }
}

/* weicher Übergang vom CRT-Hero in den Body */
.crt-hero { border-bottom: none !important; margin-bottom: 0 !important; }
.crt-hero::after {
  content: \"\";
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to bottom, transparent 0%, rgba(30,22,17,0.7) 55%, #1e1611 100%);
  pointer-events: none; z-index: 4;
}

/* Weicher Übergang vom CRT-Hero in den Body */
.crt-hero { border-bottom: none !important; margin-bottom: 0 !important; }
.crt-hero .crt-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to bottom, transparent 0%, rgba(30,22,17,0.75) 55%, #1e1611 100%);
  pointer-events: none; z-index: 4;
}
/* Reale Breite direkt am Block */
.crt-hero { box-shadow: inset 0 -80px 120px -40px #1e1611, inset 0 0 140px rgba(30,22,17,0.9), inset 0 0 40px rgba(242,166,90,0.08) !important; }

/* Titel volle Breite im Hero, links-bündig für Terminal-Look */
.crt-hero .crt-inner { max-width: 1400px; padding: 0 clamp(1rem, 4vw, 3rem); }
.crt-hero .crt-title {
  max-width: 100% !important;
  width: 100% !important;
  text-align: left !important;
  font-size: clamp(2rem, 8vw, 6.5rem) !important;
  line-height: 1 !important;
}
.crt-hero .crt-meta { justify-content: flex-start; }

/* ═══ Header — Site-Title + Nav schöner ══════════════════════════════ */
.wp-site-blocks > header.wp-block-group {
  position: relative;
  border-bottom: 1px solid rgba(242, 166, 90, 0.12);
  background: linear-gradient(180deg, rgba(30, 22, 17, 0.75), rgba(30, 22, 17, 0.35));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}
.wp-site-blocks > header.wp-block-group::before {
  content: \"\";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(242,166,90,0.5), transparent);
  pointer-events: none;
}

/* Site-Title als grüner Terminal-Prompt */
.wp-block-site-title,
.wp-block-site-title a {
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: lowercase !important;
  color: #f2a65a !important;
  text-shadow: 0 0 6px rgba(242,166,90,0.5), 0 0 18px rgba(242,166,90,0.25);
  text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 0.5em;
  transition: text-shadow .25s ease, opacity .25s;
}
.wp-block-site-title::before {
  content: \"▸\";
  color: #f2a65a; opacity: 0.85;
}
.wp-block-site-title a:hover {
  text-shadow: 0 0 10px rgba(242,166,90,0.9), 0 0 30px rgba(242,166,90,0.45);
  opacity: 1;
}

/* Navigation rechts */
.wp-block-navigation {
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
}
.wp-block-navigation .wp-block-navigation-item__content,
.wp-block-navigation a {
  color: #a49586 !important;
  text-decoration: none !important;
  padding: 6px 10px !important;
  border: 1px solid transparent !important;
  transition: color .25s, border-color .25s, background .25s !important;
}
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation a:hover {
  color: #f2a65a !important;
  border-color: rgba(242,166,90,0.35) !important;
  background: rgba(242,166,90,0.05) !important;
}
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
  color: #f2a65a !important;
}

/* Header: mehr Luft links/rechts */
.wp-site-blocks > header.wp-block-group {
  padding-left: clamp(1.25rem, 4vw, 3rem) !important;
  padding-right: clamp(1.25rem, 4vw, 3rem) !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* Header-Padding: echte Struktur ist header.wp-block-template-part > div.wp-block-group */
header.wp-block-template-part {
  border-bottom: 1px solid rgba(242, 166, 90, 0.12);
  background: linear-gradient(180deg, rgba(30, 22, 17, 0.75), rgba(30, 22, 17, 0.35));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative; z-index: 10;
}
header.wp-block-template-part > .wp-block-group {
  padding-left: clamp(1.25rem, 4vw, 3rem) !important;
  padding-right: clamp(1.25rem, 4vw, 3rem) !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  max-width: 100% !important;
}

/* ═══ Artikel-Teaser (Startseite) ════════════════════════════════════ */
.dillenberg-section-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
  margin-bottom: 1.5rem !important;
  opacity: 0.7;
}

/* Grid: 1 → 2 → 3 Spalten */
.wp-block-query .wp-block-post-template.is-layout-grid {
  grid-template-columns: 1fr;
  gap: 1px !important;
  background: #2f261e;
}
@media (min-width: 640px) {
  .wp-block-query .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .wp-block-query .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.wp-block-query .wp-block-post-template.is-layout-grid > li {
  background: #1e1611;
  list-style: none;
  transition: background 0.2s;
}
.wp-block-query .wp-block-post-template.is-layout-grid > li:hover {
  background: #1e1611;
}

/* Featured Image: Aspect-Ratio erzwingen & WebP lazy */
.wp-block-query .wp-block-post-featured-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1e1611;
  border-bottom: 1px solid #2f261e;
}
.wp-block-query .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s;
  filter: brightness(0.85) saturate(0.9);
}
.wp-block-query .wp-block-post-template.is-layout-grid > li:hover
  .wp-block-post-featured-image img {
  transform: scale(1.03);
  filter: brightness(1) saturate(1);
}

/* Kein Bild → Platzhalter */
.wp-block-query .wp-block-post-featured-image:empty::before,
.wp-block-query .wp-block-post-featured-image a:only-child:empty::before {
  content: "// no image";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #494037;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-family: 'JetBrains Mono', monospace;
}

/* Titel-Link */
.wp-block-query .wp-block-post-title a {
  color: #fffaf2 !important;
  text-decoration: none !important;
}
.wp-block-query .wp-block-post-title a:hover {
  color: #f2a65a !important;
}

/* Datum */
.wp-block-query .wp-block-post-date {
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
}

/* Excerpt */
.wp-block-query .wp-block-post-excerpt p {
  margin: 0 !important;
}

/* ═══ Blog Single Post — Container-Query-Driven Dynamic Typography ════════ */
/*
 * Schrift skaliert mit Container-Breite (nicht Viewport).
 * 1cqi = 1 % der Inline-Größe des Container.
 * Container = .wp-block-post-content. Sidebar/Padding-Änderungen führen
 * automatisch zu neuer Schriftgröße — ohne JS, ohne Resize-Listener.
 */
.wp-block-post-content {
  container-type: inline-size;
  container-name: post;
  --post-fs: clamp(1rem, 2.8cqi, 1.2rem);
  --post-lh: 1.72;
  --post-mw: 68ch;
  font-size: var(--post-fs);
  line-height: var(--post-lh);
  letter-spacing: 0.005em;
}
body .wp-block-post-content > p,
body .wp-block-post-content > ul,
body .wp-block-post-content > ol,
body .wp-block-post-content > ul li,
body .wp-block-post-content > ol li,
.wp-block-post-content p,
.wp-block-post-content li {
  font-size: var(--post-fs) !important;
  line-height: var(--post-lh) !important;
  margin-bottom: 1.3em;
  max-width: var(--post-mw);
}
body .wp-block-post-content > h2,
.wp-block-post-content h2 {
  font-size: clamp(1.5rem, 5.5cqi, 2.25rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.005em;
  margin-top: 2.4em;
  margin-bottom: 0.65em;
  margin-left: 0 !important;
  font-weight: 600;
  max-width: 28ch;
}
body .wp-block-post-content > h3,
.wp-block-post-content h3 {
  font-size: clamp(1.2rem, 4.2cqi, 1.75rem) !important;
  line-height: 1.28 !important;
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 600;
}
body .wp-block-post-content blockquote,
.wp-block-post-content blockquote {
  font-size: clamp(1.05rem, 3.8cqi, 1.6rem) !important;
  line-height: 1.55 !important;
  border-left: 2px solid #f2a65a;
  padding-left: 1.5rem;
  margin: 2em 0;
  font-style: normal;
  color: #c1b7ad;
  max-width: 60ch;
}
body .wp-block-post-content code,
body .wp-block-post-content pre,
.wp-block-post-content code,
.wp-block-post-content pre {
  font-size: clamp(0.875rem, 2.5cqi, 1.05rem) !important;
}
body .wp-block-post-content figcaption {
  font-size: clamp(0.75rem, 2cqi, 0.9rem) !important;
  color: #837363;
  letter-spacing: 0.1em;
  text-align: center;
}
/* Bilder skalieren mit Container-Höhe + Inline-Size */
body .wp-block-post-content figure img,
body .wp-block-post-content > img {
  width: 100%;
  height: auto;
  max-height: min(72cqh, 70vh);
  object-fit: cover;
  display: block;
}
/* Container-Query-Breakpoints: enge Sidebars → kompaktere Spacings */
@container post (max-width: 480px) {
  .wp-block-post-content { padding-inline: 1.25rem; --post-mw: 100%; }
}
@container post (min-width: 900px) {
  .wp-block-post-content { --post-lh: 1.78; }
}
/* Fallback für Browser ohne Container-Query-Support (sehr alt) */
@supports not (container-type: inline-size) {
  .wp-block-post-content { font-size: clamp(1.15rem, calc(.95rem + .8vw), 1.5rem) !important; }
}


/* Erlaube breiteren Lese-Bereich für die dynamische Skalierung */
body .wp-block-post-content {
  max-width: min(80ch, 1100px) !important;
  margin-inline: auto !important;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* ── Comments (registered users only) — CRT look ───────────────────────── */
.dl-comments-wrap{
  max-width:min(80ch,1100px);
  margin:3rem auto 1rem;
  padding:0 clamp(1rem,3vw,2rem);
  border-top:1px dashed rgba(242,166,90,.18);
  padding-top:2rem;
}
.dl-comments-heading{
  font-family:'JetBrains Mono','Cascadia Mono',monospace;
  font-size:.85rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#f2a65a;
  margin:0 0 1.4rem;
  opacity:.85;
}
.dl-comments-note{
  font-size:.82rem;
  line-height:1.55;
  color:#ac9e91;
  font-style:italic;
  border-left:2px solid rgba(242,166,90,.25);
  padding:.15rem 0 .15rem .9rem;
  margin:0 0 1.6rem;
  max-width:62ch;
}
/* Kommentar-CTA + Login/Register-Buttons */
.dl-cmt-cta{display:flex;flex-direction:column;gap:.5rem;margin:0 0 2rem;padding:1.1rem 1.3rem;border:1px solid rgba(242,166,90,.22);border-left:3px solid #f2a65a;background:rgba(242,166,90,.03);border-radius:2px;max-width:62ch}
.dl-cmt-cta .dl-cmt-k{font-family:'JetBrains Mono','Cascadia Mono',monospace;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:#f2a65a}
.dl-cmt-cta .dl-cmt-sub{font-size:.86rem;color:#beb4aa;line-height:1.5}
.dl-cmt-cta .dl-cmt-sub strong{color:#e6dcd1}
.dl-cmt-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.3rem}
.dl-cmt-btn{font-family:'JetBrains Mono','Cascadia Mono',monospace;font-size:.78rem;letter-spacing:.04em;padding:.55rem 1.1rem;border-radius:2px;text-decoration:none;transition:all .15s;border:1px solid;display:inline-block}
.dl-cmt-login{background:#f2a65a;color:#1e1611;border-color:#f2a65a;font-weight:600}
.dl-cmt-login:hover{background:#f2a65a;box-shadow:0 0 12px rgba(242,166,90,.4)}
.dl-cmt-reg{background:transparent;color:#dbaf83;border-color:rgba(242,166,90,.4)}
.dl-cmt-reg:hover{border-color:#f2a65a;color:#fffaf2;background:rgba(242,166,90,.08)}
.dl-cmt-cta.is-in{border-left-color:#786a5c;background:rgba(242,166,90,.02)}
.dl-cmt-cta.is-in .dl-cmt-k{color:#ac9e91}
.dl-comments,
.dl-comments *{color:#ebdac2;font-family:inherit}
.dl-comments .wp-block-comments-title{
  font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;
  color:#a49586;margin:0 0 1rem;
}
.dl-comment{
  border-left:2px solid rgba(242,166,90,.22);
  background:rgba(242,166,90,.025);
  padding:.8rem 1rem;
  margin:0 0 1rem;
  border-radius:2px;
}
.dl-comment-head{
  align-items:center;
  gap:.6rem;
  font-size:.7rem;
  color:#a49586;
  margin-bottom:.5rem;
}
.dl-comment-head .dl-author a,
.dl-comment-head .dl-author{
  color:#eab885;
  font-weight:600;
  font-size:.78rem;
  text-decoration:none;
}
.dl-comment-head .dl-date a,
.dl-comment-head .dl-date{
  color:#837363;font-size:.65rem;letter-spacing:.05em;
}
.dl-comment-head .dl-edit a{color:#a49586;font-size:.62rem;text-decoration:none}
.dl-comment-head .dl-edit a:hover{color:#f2a65a}
.dl-comment .dl-avatar img,
.dl-comment .wp-block-avatar img{
  border-radius:2px;
  border:1px solid rgba(242,166,90,.25);
}
.dl-comment .dl-body{
  font-size:.88rem;
  line-height:1.55;
  color:#f1e6d6;
}
.dl-comment .dl-body p{margin:.3rem 0}
.dl-comment .dl-reply a{
  font-size:.65rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#eab885;
  text-decoration:none;
  margin-top:.5rem;
  display:inline-block;
}
.dl-comment .dl-reply a:hover{color:#f2a65a}

.dl-comments-pagination{
  margin:1.2rem 0;
  font-size:.7rem;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.dl-comments-pagination a{color:#eab885;text-decoration:none}
.dl-comments-pagination a:hover{color:#f2a65a}

/* Comment form */
.dl-comments-form,
.dl-comments-form .comment-form{
  margin-top:1.5rem;
  background:rgba(242,166,90,.03);
  border:1px solid rgba(242,166,90,.18);
  padding:1.1rem 1.1rem .7rem;
  border-radius:3px;
}
.dl-comments-form label,
.dl-comments-form .comment-notes{
  display:block;
  font-size:.7rem;
  color:#a49586;
  letter-spacing:.08em;
  margin-bottom:.3rem;
}
.dl-comments-form textarea,
.dl-comments-form input[type=text],
.dl-comments-form input[type=email],
.dl-comments-form input[type=url]{
  width:100%;
  background:#1e1611;
  color:#f1e6d6;
  border:1px solid rgba(242,166,90,.3);
  padding:.55rem .7rem;
  font:inherit;
  font-size:.85rem;
  resize:vertical;
  border-radius:2px;
  box-sizing:border-box;
}
.dl-comments-form textarea:focus,
.dl-comments-form input:focus{
  outline:none;
  border-color:#f2a65a;
  box-shadow:0 0 0 1px rgba(242,166,90,.4);
}
.dl-comments-form .submit,
.dl-comments-form input[type=submit]{
  background:#f2a65a;
  color:#1e1611;
  border:0;
  padding:.55rem 1.2rem;
  font:inherit;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  cursor:pointer;
  border-radius:2px;
  margin-top:.8rem;
}
.dl-comments-form .submit:hover,
.dl-comments-form input[type=submit]:hover{opacity:.85}
.dl-comments-form .must-log-in,
.dl-comments-form .logged-in-as{
  font-size:.75rem;color:#a49586;
}
.dl-comments-form .must-log-in a,
.dl-comments-form .logged-in-as a{color:#eab885;text-decoration:none}
.dl-comments-form .must-log-in a:hover,
.dl-comments-form .logged-in-as a:hover{color:#f2a65a}

/* ── Matrix Rain Canvas (mounted by matrix-rain.js) ─────────────────────── */
#dl-matrix{
  position:fixed;
  inset:0;
  z-index:-1;
  opacity:.12;
  pointer-events:none;
  transform:translateZ(0);      /* eigene GPU-Ebene → kein Scroll-Jitter */
  will-change:transform;
  backface-visibility:hidden;
}
/* Scanline-Noise overlay — subtle green line texture */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background-image:repeating-linear-gradient(0deg, rgba(242,166,90,.015) 0 1px, transparent 1px 3px);
  pointer-events:none;
  z-index:0;
  transform:translateZ(0);      /* eigene Ebene → fixed-Gradient ruckelt nicht beim Scroll */
  will-change:transform;
  backface-visibility:hidden;
}
/* Body needs a black/very-dark background so the matrix shows through */
body.wp-singular,
body.blog,
body.archive,
body.search,
body.error404,
body.page{
  background:#1e1611 !important;
}
/* Make content layer sit above matrix */
.wp-site-blocks,
main,
header,
footer{
  position:relative;
  z-index:1;
}
@media (max-width:767px){
  #dl-matrix{display:none}
  body::before{opacity:.6}
}
@media (prefers-reduced-motion: reduce){
  #dl-matrix{display:none}
}

/* ── Post title — CRT hero glow (matching "I live with it." style) ──────── */
.wp-block-post-title,
.crt-title,
.editorial-title,
.longform-title,
.terminal-title{
  text-shadow:0 0 16px rgba(255,250,242,.18), 0 0 48px rgba(242,166,90,.18);
}

/* ═══════════════════════════════════════════════════════════════════════
   TABLET & MOBILE — Responsive Fix
   Hintergrund: die Container-Query-Formeln (max(1.3rem,…,2rem) etc.) oben
   garantieren Desktop-Minima die auf schmalen Viewports IMMER gewinnen.
   Diese Overrides kappen die !important-Werte mobil-first.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tablet (768 – 1024 px) ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .wp-block-post-content {
    --post-fs: clamp(1rem, 1.4vw + .35rem, 1.2rem);
  }
  body .wp-block-post-content > p,
  body .wp-block-post-content > ul,
  body .wp-block-post-content > ol,
  body .wp-block-post-content > ul li,
  body .wp-block-post-content > ol li,
  .wp-block-post-content p,
  .wp-block-post-content li {
    font-size: clamp(1rem, 1.4vw + .35rem, 1.2rem) !important;
  }
  body .wp-block-post-content > h2,
  .wp-block-post-content h2 {
    font-size: clamp(1.4rem, 3vw + .4rem, 2rem) !important;
    max-width: 100%;
  }
  body .wp-block-post-content > h3,
  .wp-block-post-content h3 {
    font-size: clamp(1.15rem, 2.2vw + .3rem, 1.55rem) !important;
  }
  body .wp-block-post-content blockquote,
  .wp-block-post-content blockquote {
    font-size: clamp(1rem, 1.5vw + .35rem, 1.25rem) !important;
  }
  .crt-hero .crt-title {
    font-size: clamp(1.8rem, 4.5vw, 4rem) !important;
  }
}

/* ── Mobile (max 767 px) ────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Post-Text: feste 1 rem — kein container-query-Minimum mehr */
  .wp-block-post-content {
    --post-fs: 1rem;
    font-size: 1rem !important;
    padding-inline: 1.1rem !important;
  }
  body .wp-block-post-content > p,
  body .wp-block-post-content > ul,
  body .wp-block-post-content > ol,
  body .wp-block-post-content > ul li,
  body .wp-block-post-content > ol li,
  .wp-block-post-content p,
  .wp-block-post-content li {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }
  body .wp-block-post-content > h2,
  .wp-block-post-content h2 {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
    max-width: 100%;
    margin-top: 1.8em;
  }
  body .wp-block-post-content > h3,
  .wp-block-post-content h3 {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    margin-top: 1.5em;
  }
  body .wp-block-post-content blockquote,
  .wp-block-post-content blockquote {
    font-size: 1rem !important;
    padding-left: 1rem;
    margin: 1.5em 0;
  }
  body .wp-block-post-content code,
  body .wp-block-post-content pre,
  .wp-block-post-content code,
  .wp-block-post-content pre {
    font-size: 0.82rem !important;
  }

  /* CRT-Hero: kompakter + kleinere Titelschrift */
  .crt-hero {
    min-height: 38vh !important;
    padding: 2rem 1.1rem 1.75rem !important;
  }
  .crt-hero .crt-title {
    font-size: clamp(1.45rem, 5.5vw, 2.2rem) !important;
    line-height: 1.08 !important;
  }
  .crt-hero .crt-meta {
    font-size: 0.67rem !important;
    letter-spacing: .15em !important;
    gap: .75rem !important;
    margin-bottom: 1rem !important;
  }
  .crt-hero .crt-inner {
    padding: 0 !important;
  }

  /* Bilder: Tilt-Animation deaktivieren — verhindert horizontales Overflow */
  .wp-block-post-content figure:nth-of-type(odd) img,
  .wp-block-post-content .wp-block-image:nth-of-type(odd) img,
  .wp-block-post-content figure:nth-of-type(even) img,
  .wp-block-post-content .wp-block-image:nth-of-type(even) img {
    transform: none !important;
  }

  /* Nav-Tap-Targets: min 44px Höhe per WCAG */
  .wp-block-navigation .wp-block-navigation-item__content,
  .wp-block-navigation a {
    padding: 10px 10px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Featured Image auf Mobile: weniger hoch */
  body.single-post .wp-block-post-featured-image img,
  body.page .wp-block-post-featured-image img {
    max-height: 42vh !important;
  }

  /* Header: etwas kompakter */
  header.wp-block-template-part > .wp-block-group {
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
  }
}

/* ── Kleine Phones (max 479 px) ─────────────────────────────────────── */
@media (max-width: 479px) {
  .wp-block-post-content {
    padding-inline: .9rem !important;
  }
  body .wp-block-post-content > p,
  .wp-block-post-content p,
  .wp-block-post-content li {
    font-size: .97rem !important;
  }
  body .wp-block-post-content > h2,
  .wp-block-post-content h2 {
    font-size: 1.28rem !important;
  }
  body .wp-block-post-content > h3,
  .wp-block-post-content h3 {
    font-size: 1.08rem !important;
  }
  .crt-hero {
    min-height: 32vh !important;
    padding: 1.5rem .9rem 1.4rem !important;
  }
  .crt-hero .crt-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
  }
  .crt-hero .crt-meta {
    font-size: 0.6rem !important;
    gap: .5rem !important;
  }
  /* iOS: input-Zoom verhindert font-size < 16px */
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   LIGHT MODE — Standard (default)
   Dark via [data-theme="dark"]. Light ist CSS-Basis ohne Selektor.
   ═══════════════════════════════════════════════════════════════════════ */

/* Light-Mode Token-Overrides (aktiv wenn KEIN data-theme="dark") */
html[data-theme="light"] {
  --d-bg:       #f9f3ec;
  --d-fg:       #2f261e;
  --d-fg-2:     #5c5145;
  --d-muted:    #a49586;
  --d-line:     #f3eadc;
  --d-acc:      #693d11;
  --d-acc-soft: rgba(105,61,17,.5);
  --d-acc-bg:   rgba(105,61,17,.06);
}

html[data-theme="light"] body,
html[data-theme="light"] body.single-post,
html[data-theme="light"] body.page,
html[data-theme="light"] body.archive,
html[data-theme="light"] body.blog {
  background: #f9f3ec !important;
  color: #2f261e;
}
html[data-theme="light"] body::before {
  background-image: repeating-linear-gradient(0deg,rgba(30,22,17,.018) 0 1px,transparent 1px 3px);
}
html[data-theme="light"] #dl-matrix { display: none !important; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #f9f3ec; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #693d11; }
html[data-theme="light"] ::selection { background:#693d11;color:#fffaf2;text-shadow:none; }
html[data-theme="light"] header.wp-block-template-part {
  background:linear-gradient(180deg,rgba(249,243,236,.95),rgba(249,243,236,.98)) !important;
  border-bottom-color:rgba(105,61,17,.2) !important;
}
html[data-theme="light"] .wp-block-site-title,
html[data-theme="light"] .wp-block-site-title a { color:#693d11 !important; text-shadow:0 0 6px rgba(105,61,17,.25) !important; }
html[data-theme="light"] .wp-block-navigation a { color:#5c5145 !important; }
html[data-theme="light"] .wp-block-navigation a:hover { color:#693d11 !important; border-color:rgba(105,61,17,.35) !important; background:rgba(105,61,17,.05) !important; }
html[data-theme="light"] .crt-hero {
  background: radial-gradient(ellipse at 50% 40%,rgba(105,61,17,.05) 0%,rgba(247,244,241,.9) 60%,#f9f3ec 100%),linear-gradient(180deg,#f5f2f0 0%,#f9f3ec 100%) !important;
  color:#693d11 !important; border-bottom:1px solid rgba(105,61,17,.15) !important;
  box-shadow:inset 0 0 60px rgba(30,22,17,.03) !important;
}
html[data-theme="light"] .crt-hero .crt-title { color:#693d11 !important; text-shadow:0 0 1px rgba(30,22,17,.08),0 0 10px rgba(105,61,17,.12) !important; }
html[data-theme="light"] .crt-hero .crt-meta { color:rgba(30,22,17,.45) !important; }
html[data-theme="light"] .wp-block-post-content { color:#2f261e !important; }
html[data-theme="light"] .wp-block-post-content h2 { color:#2f261e !important; border-top-color:#f3eadc !important; }
html[data-theme="light"] .wp-block-post-content h3 { color:#693d11 !important; }
html[data-theme="light"] .wp-block-post-content p,
html[data-theme="light"] .wp-block-post-content li { color:#2f261e !important; }
html[data-theme="light"] .wp-block-post-content a { color:#693d11 !important; border-bottom-color:rgba(105,61,17,.4) !important; }
html[data-theme="light"] .wp-block-post-content blockquote { border-left-color:#693d11 !important; background:rgba(105,61,17,.04) !important; color:#5c5145 !important; }
html[data-theme="light"] .wp-block-post-content code { background:#f9f3ec !important; border-color:#f3eadc !important; color:#644220 !important; }
html[data-theme="light"] .wp-block-post-content pre { background:#f9f3ec !important; border-color:#f3eadc !important; color:#2f261e !important; }
html[data-theme="light"] .wp-block-query .wp-block-post-template.is-layout-grid { background:#efe2d0 !important; }
html[data-theme="light"] .wp-block-query .wp-block-post-template.is-layout-grid > li { background:#f9f3ec !important; }
html[data-theme="light"] .wp-block-query .wp-block-post-title a { color:#2f261e !important; }
html[data-theme="light"] .wp-block-query .wp-block-post-title a:hover { color:#693d11 !important; }
html[data-theme="light"] .dl-stats { background:#f9f3ec !important; border-color:#f3eadc !important; border-left-color:rgba(105,61,17,.4) !important; color:#837363 !important; }
html[data-theme="light"] .dl-like-btn { border-color:#ebdbc4 !important; color:#837363 !important; }
html[data-theme="light"] .dl-like-btn.liked { border-color:rgba(105,61,17,.6) !important; color:#693d11 !important; background:rgba(105,61,17,.06) !important; }
html[data-theme="light"] .dl-dislike-btn { border-color:rgba(180,40,40,.3) !important; color:rgba(160,40,40,.6) !important; }
html[data-theme="light"] .dl-dislike-btn:hover { border-color:#c00 !important; color:#c00 !important; }
html[data-theme="light"] .dl-dislike-panel { background:#f9f3ec !important; border-color:rgba(180,40,40,.2) !important; }
html[data-theme="light"] .dl-dislike-panel textarea { background:#fffaf2 !important; border-color:rgba(180,40,40,.2) !important; color:#494037 !important; }
html[data-theme="light"] .dl-shop-strip { background:linear-gradient(90deg,rgba(105,61,17,.03) 0%,rgba(105,61,17,.06) 50%,rgba(105,61,17,.03) 100%) !important; border-color:rgba(105,61,17,.15) !important; color:rgba(86,50,14,.7) !important; }
html[data-theme="light"] .dl-shop-strip .dl-s-kicker { color:#693d11 !important; }
html[data-theme="light"] .dl-shop-strip .dl-s-tag { border-color:rgba(105,61,17,.4) !important; color:#693d11 !important; }
html[data-theme="light"] footer { color:#a49586 !important; }
html[data-theme="light"] footer a { color:#693d11 !important; }
html[data-theme="light"] #dl-fb-panel { background:#f9f3ec !important; border-color:rgba(105,61,17,.3) !important; }
html[data-theme="light"] #dl-fb-btn { background:#f9f3ec !important; border-color:rgba(105,61,17,.35) !important; color:#693d11 !important; }
html[data-theme="light"] .dl-fb-field { background:#fffaf2 !important; border-color:#ebdbc4 !important; color:#2f261e !important; }
html[data-theme="light"] .dl-fb-prompt { color:#2f261e !important; }
html[data-theme="light"] body.has-selection::after { display:none !important; }

/* ── Lights Toggle Button: entfernt 2026-07-04 ───────────────────── */

/* ── Tagebuch-Einträge: Eyebrow + Schluss-Coda ─────────────────────────── */
.dl-diary-eyebrow{
  font-family:'JetBrains Mono','Courier New',monospace;
  font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;
  color:#f2a65a;opacity:.85;margin-bottom:1.6rem;
  border-left:2px solid rgba(242,166,90,.5);padding-left:.7rem;
}
.dl-diary-coda{
  font-style:italic;color:#eaded1;opacity:.92;
  border-top:1px solid #382a1c;margin-top:2rem;padding-top:1.2rem;
}
