/* Dillenberg Theme — ergänzendes CSS */

.dillenberg-blink {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #0f0;
  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: #0f0; }

/* Selection */
::selection { background: #0f0; color: #000; }

/* Scrollbar */
::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: #000; }
::-webkit-scrollbar-thumb  { background: #0f0; }

/* Focus */
:focus-visible {
  outline: 2px solid #0f0;
  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(0, 40, 0, 0.5) 0%, rgba(0, 10, 0, 0.85) 60%, #000 100%),
    linear-gradient(180deg, #030603 0%, #000 100%);
  color: #0f0;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid #0a1f0a;
  box-shadow:
    inset 0 0 140px rgba(0, 0, 0, 0.9),
    inset 0 0 40px rgba(0, 255, 0, 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(0,255,0,0.10), transparent 55%),
              radial-gradient(ellipse at 80% 80%, rgba(0,255,0,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(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.35) 3px,
    rgba(0, 0, 0, 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(0, 0, 0, 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;
  color: #0f0;
  opacity: 0.75;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.crt-hero .crt-meta::before {
  content: "▸ SIGNAL";
  color: #0f0; opacity: 0.5;
  margin-right: 0.5rem;
}
.crt-hero .crt-meta a { color: #0f0; text-decoration: none; border-bottom: 1px dotted rgba(0,255,0,0.4); }
.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: #0f0 !important;
  margin: 0 !important;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.25),
    0 0 6px rgba(0, 255, 0, 0.28),
    0 0 18px rgba(0, 255, 0, 0.14);
  animation: none;
}
.crt-hero .crt-title::before {
  content: "> ";
  color: #0f0; 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,255,255,0.2), 0 0 6px rgba(0,255,0,0.25), 0 0 18px rgba(0,255,0,0.12); }
  50%      { text-shadow: 0 0 1px rgba(255,255,255,0.25), 0 0 8px rgba(0,255,0,0.35), 0 0 22px rgba(0,255,0,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(0, 255, 0, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 255, 0, 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(0, 255, 0, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 255, 0, 0.25),
    0 0 80px rgba(0, 255, 0, 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(0, 255, 0, 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 {
  text-align: center;
  color: #888;
  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(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 255, 0, 0.15),
    0 0 80px rgba(0, 255, 0, 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(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.35) 3px,
      rgba(0, 0, 0, 0) 4px
    ),
    /* Vignette */
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    /* Phosphor tint */
    linear-gradient(180deg, rgba(0, 255, 0, 0.05), rgba(0, 255, 0, 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(0, 255, 0, 0.08) 40%, rgba(0, 255, 0, 0.12) 50%, rgba(0, 255, 0, 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(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.35) 3px,
      rgba(0, 0, 0, 0) 4px
    ),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 255, 0, 0.05), rgba(0, 255, 0, 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(0, 255, 0, 0.10) 40%, rgba(0, 255, 0, 0.14) 50%, rgba(0, 255, 0, 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(0,0,0,0.7) 55%, #000 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(0,0,0,0.75) 55%, #000 100%);
  pointer-events: none; z-index: 4;
}
/* Reale Breite direkt am Block */
.crt-hero { box-shadow: inset 0 -80px 120px -40px #000, inset 0 0 140px rgba(0,0,0,0.9), inset 0 0 40px rgba(0,255,0,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(0, 255, 0, 0.12);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 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(0,255,0,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: #0f0 !important;
  text-shadow: 0 0 6px rgba(0,255,0,0.5), 0 0 18px rgba(0,255,0,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: #0f0; opacity: 0.85;
}
.wp-block-site-title a:hover {
  text-shadow: 0 0 10px rgba(0,255,0,0.9), 0 0 30px rgba(0,255,0,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: #888 !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: #0f0 !important;
  border-color: rgba(0,255,0,0.35) !important;
  background: rgba(0,255,0,0.05) !important;
}
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
  color: #0f0 !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(0, 255, 0, 0.12);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 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;
}
