/* =================================================================
   SIGNALWELT // Dark/Hacker Redesign (konsolidiert)
   - Ein einziger Container-Style fuer alle Bloecke
   - Kein kaskadierendes !important
   ================================================================= */

:root {
  --ink: #0b0e13;
  --steel: #151a24;
  --wire: #1d2330;
  --wire-2: #272e3d;
  --signal: #ffb300;
  --signal-dim: rgba(255, 179, 0, 0.15);
  --neon: #00ff9d;
  --text: #e8eaed;
  --muted: #7a8290;
  --font-mono: 'Courier New', ui-monospace, 'Cascadia Code', monospace;
  --container-max: 1500px;
  --container-gutter: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); }
body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,179,0,0.06), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0,255,157,0.04), transparent 50%),
    var(--ink);
  color: var(--text);
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.7;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--signal); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.75; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; color: var(--neon); }

/* =================================================================
   CONTAINER – EINE Regel fuer alle horizontalen Wrapper
   ================================================================= */
/* EIN einheitliches Padding: nur direkte main-Kinder + Footer-Inner.
   Alles andere innerhalb bekommt KEIN padding (sonst doppelt). */
.swl,
body main > *,
body .sw-footer-inner,
body .sw-footer-bottom {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
/* Innere Content-Container: kein zusaetzliches padding (Parent liefert es) */
body main > * .sw-hero,
body main > * .sw-spec-hero,
body main > * .page-title-hero,
body main > * .sw-black-cards,
body main > * .sw-section,
body main > * .sw-fullwidth,
body main > * .sw-video-section,
body main > * .sw-more,
body main > * .sw-manifest,
body main > * .sw-steps,
body main > * .sw-featured,
body main > * .sw-process,
body main > * .sw-cta-box,
body main > * .sw-gallery,
body main > * .sw-yt-wrap,
body main > * .cols {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* Auch direkt: Einzel-Bilder in main-divs voll bis zum Container-Max */
body main > div:has(> img),
body main > div > img {
  max-width: var(--container-max);
}
body main > div:has(> img) {
  margin-left: auto;
  margin-right: auto;
}

/* CMF-Wrapper sollen 100% bis Container-Max reichen */
body > header, body > nav, body > footer {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}
body > footer > section { max-width: 100%; margin: 0; padding: 0; }

/* Nav laengenunabh. zentrieren */
body > nav, header + nav, .site-header + nav, nav.main-nav {
  background: var(--ink);
  min-height: 56px;
  padding: 0 var(--container-gutter);
  display: flex; align-items: center; justify-content: center;
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--wire);
  backdrop-filter: blur(8px);
}
body > nav ul, nav.main-nav ul {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
  align-items: center; flex-wrap: wrap;
}
body > nav li { counter-increment: navitem; }
body > nav a {
  font-family: var(--font-mono);
  color: var(--text); font-size: 14px;
  letter-spacing: 0.04em; padding: 10px 18px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 2px;
  transition: all 0.2s ease; text-transform: lowercase;
}
body > nav a::before {
  content: counters(navitem, "", decimal-leading-zero) " ";
  color: var(--muted); font-size: 11px;
}
body > nav a:hover {
  color: var(--signal); border-color: var(--wire-2);
  background: rgba(255,179,0,0.04); opacity: 1;
}
body > nav a[aria-current="page"] {
  color: var(--signal); border-color: var(--signal);
  background: var(--signal-dim);
}
body > nav input, body > nav input[type="search"] {
  background: var(--steel); border: 1px solid var(--wire);
  color: var(--text); border-radius: 2px;
  padding: 6px 12px; font-family: var(--font-mono);
  font-size: 13px; height: 32px; margin-left: 8px;
}
body > nav input:focus { outline: 1px solid var(--signal); }
body > nav form { margin: 0; }

/* =================================================================
   HEADER
   ================================================================= */
body > header { background: var(--ink); border-bottom: 1px solid var(--wire); z-index: 10; }
.site-header.sw-header {
  background: transparent; padding: 32px var(--container-gutter) 24px;
  text-align: center; position: relative;
}
.sw-header::before, .sw-header::after {
  content: ""; position: absolute; top: 50%;
  width: clamp(80px, 22%, 380px); height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--signal) 40%, var(--signal) 60%, transparent);
  opacity: 0.35;
}
.sw-header::before { left: 0; --dir: left; }
.sw-header::after  { right: 0; --dir: right; }
.sw-header .sw-logo {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0 28px; position: relative;
}
.sw-header .sw-logo::before {
  content: "// "; font-family: var(--font-mono); color: var(--neon);
  font-size: 14px; font-weight: 700; letter-spacing: 0.05em;
}
.sw-header .sw-logo::after {
  content: "_"; font-family: var(--font-mono); color: var(--signal);
  font-size: 20px; font-weight: 700;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.sw-header .sw-logo img {
  max-width: 180px; height: auto;
  filter: drop-shadow(0 0 16px rgba(255,179,0,0.35));
}

/* =================================================================
   HERO (Home)
   ================================================================= */
.sw-hero {
  position: relative;
  padding-top: 120px; padding-bottom: 100px;
  min-height: 620px; overflow: hidden;
  background: var(--ink);
}
.sw-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 20% 30%, rgba(255,179,0,0.10), transparent 60%),
    radial-gradient(500px circle at 80% 70%, rgba(0,255,157,0.06), transparent 60%);
  pointer-events: none;
}
.sw-hero-inner { position: relative; z-index: 2; padding:0px 20px;}
.sw-hero-tag {
  font-family: var(--font-mono); color: var(--neon);
  font-size: 13px; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.sw-hero-tag::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  background: var(--neon); border-radius: 50%;
  box-shadow: 0 0 12px var(--neon);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
.sw-hero h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900; color: var(--text);
  font-size: clamp(3rem, 10vw, 9rem); line-height: 0.95;
  letter-spacing: -0.03em; margin: 0 0 32px; max-width: 14ch;
}
.sw-hero h1 .acc { color: var(--signal); }
.sw-hero h1 .cursor {
  display: inline-block; width: 0.12em; height: 0.85em;
  background: var(--signal); margin-left: 0.08em;
  animation: blink 1.1s steps(2) infinite; vertical-align: -0.05em;
}
.sw-hero-body {
  max-width: 640px; color: var(--muted);
  font-size: 16px; line-height: 1.75;
}
.sw-hero-body p { margin-bottom: 1.2em; color: var(--muted); }
.sw-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.sw-hero-meta {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 24px; max-width: 600px;
  padding-top: 24px; border-top: 1px solid var(--wire);
}
.sw-hero-meta .n {
  font-family: var(--font-mono); font-size: 2rem;
  color: var(--signal); font-weight: 700; display: block;
}
.sw-hero-meta .l {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
}

/* =================================================================
   PAGE-TITLE-HERO (Unterseiten)
   ================================================================= */
.page-title-hero {
  position: relative;
  padding: 80px 20px 64px 20px !important;
  background: var(--ink); overflow: hidden;
}
.page-title-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 50% 0%, rgba(255,179,0,0.10), transparent 60%);
}
.page-title-hero .inner { position: relative; z-index: 2; }
.page-title-hero .tag {
  font-family: var(--font-mono); color: var(--neon);
  font-size: 13px; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 12px;
}
.page-title-hero .tag::before { content: "> "; color: var(--signal); }
.page-title-hero h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900; color: var(--text);
  font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 20px; max-width: 22ch;
}
.page-title-hero p {
  color: var(--muted); font-size: 16px; line-height: 1.75;
  max-width: 720px; margin: 0 0 24px;
}

/* =================================================================
   SPEZIAL-HERO (make.custom)
   ================================================================= */
.sw-spec-hero {
  padding-top: 100px; padding-bottom: 80px;
  background: var(--ink); position: relative; overflow: hidden;
}
.sw-spec-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px circle at 30% 30%, rgba(255,179,0,0.10), transparent 60%);
}
.sw-spec-hero .inner { position: relative; z-index: 2; }
.sw-spec-hero h1 {
  font-family: 'Courier New', monospace;
  font-size: clamp(3rem, 10vw, 8rem); font-weight: 700;
  line-height: 1; color: var(--text);
  margin: 12px 0 32px; letter-spacing: -0.03em;
  text-decoration: none;
}
.sw-spec-hero h1 .acc { color: var(--signal); }
.sw-spec-hero h1 .punct { color: var(--muted); }
.sw-spec-hero p.lead {
  color: var(--text); font-size: 17px; line-height: 1.65;
  max-width: 720px; margin: 0 0 12px;
}
.sw-spec-hero p.sub { margin-bottom: 28px; }
.sw-spec-hero p.sub .mono {
  font-family: var(--font-mono); color: var(--neon);
  font-size: 14px; letter-spacing: 0.03em;
}
.sw-spec-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.sw-spec-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 820px; }
.sw-spec-chips span {
  font-family: var(--font-mono); font-size: 12px;
  padding: 6px 12px; background: var(--steel);
  border: 1px solid var(--wire); border-radius: 2px;
  color: var(--muted); letter-spacing: 0.05em;
  text-transform: lowercase; transition: all 0.15s ease;
}
.sw-spec-chips span:hover { color: var(--signal); border-color: var(--signal); }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn, a.btn, .sw-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--signal); color: var(--ink);
  padding: 14px 28px; border-radius: 2px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  text-decoration: none; letter-spacing: 0.04em;
  border: 1px solid var(--signal); transition: all 0.15s ease;
  text-transform: lowercase;
}
.btn::after, .sw-btn::after { content: "→"; font-weight: 400; }
.btn:hover, .sw-btn:hover {
  background: transparent; color: var(--signal); opacity: 1;
  box-shadow: 0 0 24px rgba(255,179,0,0.35);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--wire-2);
}
.btn-ghost:hover {
  color: var(--signal); border-color: var(--signal);
  background: transparent;
}
.wp-block-button a, main a[class*="button"] {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--signal); color: var(--ink);
  padding: 14px 28px; border-radius: 2px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; border: 1px solid var(--signal);
  text-decoration: none; text-transform: lowercase;
  transition: all 0.15s ease;
}
.wp-block-button a::after { content: "→"; }
.wp-block-button a:hover {
  background: transparent; color: var(--signal); opacity: 1;
  box-shadow: 0 0 24px rgba(255,179,0,0.35);
}

/* =================================================================
   MAIN & TYPOGRAFIE
   ================================================================= */
main { position: relative; z-index: 1; background: transparent; padding: 0 0 120px; }

/* Vertikaler Rhythmus – alle Top-Level-Blocks haben grosszuegigen Abstand */
body main > div,
body main > section,
body main > figure,
body main > article {
  margin-bottom: 72px;
}
body main > div:last-child,
body main > section:last-child,
body main > figure:last-child,
body main > article:last-child { margin-bottom: 0; }

/* Hero-Section: noch grosserer Abstand danach */
body main > div:first-of-type:has(> .cols.cols-2),
body main > div:first-of-type:has(> .wp-block-columns) { margin-bottom: 96px; }

/* Section (H2) mit normalem Abstand – kein negativer margin mehr */
body main > section { margin-bottom: 24px; }
body main > section + div { margin-top: 0; }

/* Cols (Galerien und Spalten) mit mehr row-gap fuer mehrzeilige Grids */
body main .cols,
body main .wp-block-columns,
body main .wp-block-gallery {
  row-gap: 48px;
  margin-bottom: 72px;
}

/* Innerhalb einer Galerie-Spalte: gestapelte Bilder bekommen vertikalen Abstand */
body main .cols > div > *,
body main .cols > div img + img,
body main .cols > div figure + figure {
  margin-bottom: 32px;
}
body main .cols > div > *:last-child { margin-bottom: 0; }
body main .cols > div > img { display: block; margin-bottom: 32px; }
body main .cols > div > img:last-child { margin-bottom: 0; }

/* Fallback auch fuer WP-Block-Klassen */
body main > div:has(> .wp-block-gallery),
body main > .wp-block-gallery { margin-bottom: 72px; }

/* H2-H4 im Content (article und section) einheitlich stylen */
article h1, article h2, article h3, article h4,
body main > section > h2, body main > section > h3, body main > section > h4,
body main .sw-legal h2, body main .sw-legal h3 {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  color: var(--text); letter-spacing: -0.015em; line-height: 1.2;
}
article h2,
body main > section > h2 {
  font-size: 2.2rem; margin: 1.8em 0 0.6em;
  padding-left: 18px; border-left: 3px solid var(--signal);
  color: var(--text);
}
article h3,
body main > section > h3 {
  font-size: 1.4rem; margin: 1.6em 0 0.5em;
  color: var(--signal); font-family: var(--font-mono);
  font-weight: 700; text-transform: lowercase; letter-spacing: 0.02em;
  padding-left: 0; border-left: 0;
}
article h3::before,
body main > section > h3::before { content: "# "; color: var(--muted); }
article h4,
body main > section > h4 {
  font-size: 1.1rem; color: var(--neon);
  font-family: var(--font-mono); font-weight: 700;
}
article p { font-size: 15px; line-height: 1.75; color: #c2c7d0; margin: 0 0 1.2em; }
article ul { padding-left: 18px; list-style: none; }
article ul li {
  line-height: 1.75; margin-bottom: 8px; position: relative;
  padding-left: 22px; color: #c2c7d0;
}
article ul li::before {
  content: ">"; position: absolute; left: 0;
  color: var(--signal); font-family: var(--font-mono); font-weight: 700;
}
article a {
  color: var(--signal);
  border-bottom: 1px dashed rgba(255,179,0,0.4);
}
article a:hover { border-bottom-color: var(--signal); opacity: 1; }
article img { border-radius: 4px; border: 1px solid var(--wire); background: var(--steel); }
article figure { margin: 20px 0; }

/* Blog-Post H1 (Raleway, nicht neon-mono) */
body main h1 {
  font-family: 'Raleway', sans-serif; color: var(--text);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.1;
  word-break: normal; overflow-wrap: anywhere;
}
body main h1::before { content: none; }
body main > div > h1, body main > section > h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0 0 0.5em;
}

/* =================================================================
   BLOG-UEBERSICHT
   ================================================================= */
.blog-grid, .sw-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding-top: 48px; padding-bottom: 80px;
}
.blog-card, .sw-card {
  background: var(--steel); border: 1px solid var(--wire);
  border-radius: 4px; padding: 0;
  position: relative; transition: all 0.25s ease;
  overflow: hidden; display: flex; flex-direction: column;
}
.blog-card::before, .sw-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.blog-card:hover, .sw-card:hover {
  border-color: var(--wire-2); transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--signal);
}
.blog-card:hover::before, .sw-card:hover::before { transform: scaleX(1); }

.blog-card .blog-card-image {
  aspect-ratio: 4 / 3; width: 100%; overflow: hidden;
  line-height: 0; border-bottom: 1px solid var(--wire);
}
.blog-card .blog-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  margin: 0; display: block; border: 0;
}
.blog-card .blog-card-body { padding: 18px 24px 22px; margin: 0; }
.blog-card .blog-card-title {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 1.25rem; margin: 0 0 8px; color: var(--text);
  line-height: 1.25; letter-spacing: -0.01em;
}
.blog-card .blog-card-desc {
  font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0;
}

/* =================================================================
   CONTENT-BILDER (nicht Cards)
   ================================================================= */
/* Einzelbilder direkt in main-div: volle Breite */
body main > div > img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  margin: 0;
  display: block;
  border-radius: 4px;
}

/* Extrem hohe Bilder begrenzen (wie turturRNS 7687px) */
body main > div > img[src*="turturRNS"] {
  max-height: 700px;
  object-fit: cover;
  object-position: top;
}

/* Section- und figure-Bilder mit Cap */
body main > section img,
body main > figure img {
  width: auto; height: auto; max-width: 100%; max-height: 640px;
  object-fit: contain; margin: 0 auto; display: block;
}

/* Cols-Content (2/3-spaltig): alle Bilder voll in ihrer Spalte, Originalproportion */
body main .cols img,
body main .cols.cols-2 img,
body main .cols.cols-3 img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  margin: 0;
  display: block;
  border-radius: 4px;
}

/* Galerien (4/5-spaltig) = 4:3 cover */
body main .cols.cols-4 img,
body main .cols.cols-5 img,
body main .sw-gallery img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  margin: 0; max-height: none; border-radius: 4px;
}

/* Hero 2-Col in Blog-Post: Bild oben auf Originalproportion */
body main .cols.cols-2:first-of-type > div > img {
  aspect-ratio: auto; object-fit: cover;
  width: 100%; max-height: 520px;
}

/* Abstand unter Blog-Post-Hero */
body main .cols.cols-2:first-of-type,
body main > div:has(> .cols.cols-2):first-of-type {
  margin-bottom: 56px;
}

/* =================================================================
   SCHWARZKARTEN (Spezial)
   ================================================================= */
.sw-black-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px; margin-bottom: 48px;
}
@media (max-width: 900px) { .sw-black-cards { grid-template-columns: 1fr; } }
.sw-black-card {
  background: #212121; color: #fff;
  padding: 24px; border-radius: 4px; position: relative;
}
.sw-black-card::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px;
  height: 1px; background: var(--signal);
}
.sw-black-card h4 {
  color: var(--signal); margin: 0 0 16px;
  font-family: 'Raleway', sans-serif; font-size: 1.3rem;
  font-weight: 800; letter-spacing: -0.01em;
}
.sw-black-card h4::before {
  content: attr(data-n); font-family: var(--font-mono);
  color: var(--muted); font-size: 11px;
  display: block; margin-bottom: 4px; letter-spacing: 0.1em;
}
.sw-black-card ul { padding-left: 0; margin: 0; list-style: none; }
.sw-black-card li {
  position: relative; padding-left: 20px;
  font-size: 14px; line-height: 1.7; color: #c2c7d0;
  margin: 8px 0;
}
.sw-black-card li::before {
  content: "//"; position: absolute; left: 0;
  color: var(--neon); font-family: var(--font-mono);
  font-size: 11px; top: 5px;
}

/* =================================================================
   SECTION (z.B. Gehaeuse nach Mass, Kooperationen)
   ================================================================= */
.sw-section { padding-top: 64px; padding-bottom: 64px; }
.sw-section-head { margin-bottom: 40px; max-width: 820px; }
.sw-section-head .tag {
  font-family: var(--font-mono); color: var(--neon);
  font-size: 13px; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 12px;
}
.sw-section-head .tag::before { content: "> "; color: var(--signal); }
.sw-section-head h2 {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--text);
  margin: 0 0 20px; letter-spacing: -0.02em; line-height: 1.1;
  padding-left: 0; border-left: 0;
}
.sw-section-head p {
  color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0;
}

/* Galerie in Section (4er-raster, 4:3) */
.sw-gallery { display: grid; gap: 16px; }
.sw-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.sw-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.sw-gallery-4 { grid-template-columns: repeat(4, 1fr); }
.sw-gallery-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .sw-gallery-3, .sw-gallery-4, .sw-gallery-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .sw-gallery-2, .sw-gallery-3, .sw-gallery-4, .sw-gallery-5 { grid-template-columns: 1fr; }
}
.sw-gallery figure {
  margin: 0; background: var(--steel); border: 1px solid var(--wire);
  border-radius: 4px; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sw-gallery figure:hover { border-color: var(--signal); transform: translateY(-3px); }

/* Partnerkarte */
.sw-partner-card {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 24px;
  padding: 48px 32px; background: #fff;
  border: 1px solid var(--wire); border-radius: 4px;
  max-width: 420px; margin: 0;
}
.sw-partner-card img {
  max-width: 240px; width: auto; height: auto;
  max-height: 180px; object-fit: contain;
  margin: 0 auto; aspect-ratio: auto; display: block;
  border: 0; background: transparent; border-radius: 0;
}

/* =================================================================
   FULL-WIDTH BILD (innerhalb Container-Breite)
   ================================================================= */
.sw-fullwidth {
  margin-top: 64px; margin-bottom: 64px;
  position: relative;
}
.sw-fullwidth img {
  width: 100%; max-width: 100%; height: auto;
  max-height: none; aspect-ratio: auto;
  object-fit: cover; display: block; margin: 0;
  border-radius: 4px; border: 0; background: transparent;
}
.sw-fullwidth figcaption {
  position: absolute; bottom: 20px; left: calc(var(--container-gutter) + 20px);
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.55);
  padding: 6px 12px; border-radius: 2px;
  backdrop-filter: blur(6px); letter-spacing: 0.03em;
}

/* =================================================================
   VIDEO-SECTION
   ================================================================= */
.sw-video-section { padding-top: 56px; padding-bottom: 32px; }
.sw-video-section h2 {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  color: var(--text); font-size: 2rem;
  margin: 0 0 24px; padding-left: 18px;
  border-left: 3px solid var(--signal);
  letter-spacing: -0.015em;
}
.sw-video-grid { display: grid; gap: 20px; }
.sw-video-grid-1 { grid-template-columns: 1fr; }
.sw-video-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sw-video-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .sw-video-grid-2, .sw-video-grid-3 { grid-template-columns: 1fr; }
}
.sw-video {
  margin: 0; background: transparent;
  border: 1px solid var(--wire); border-radius: 4px;
  overflow: hidden; position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sw-video:hover {
  border-color: var(--signal);
  box-shadow: 0 0 24px rgba(255,179,0,0.18);
}
.sw-video video {
  width: 100%; height: auto; aspect-ratio: auto;
  object-fit: contain; display: block; background: #000;
}
.sw-video figcaption {
  padding: 12px 16px; font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--wire); letter-spacing: 0.03em;
}
.sw-video figcaption::before { content: "// "; color: var(--signal); }

.sw-video-youtube {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--wire); border-radius: 4px;
  overflow: hidden; background: #000;
}
.sw-video-youtube iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* YouTube-Consent-Placeholder */
.sw-yt-wrap {
  width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--wire); border-radius: 4px;
  background: var(--steel);
  position: relative; overflow: hidden;
}
.sw-yt-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 32px;
  gap: 16px;
}
.sw-yt-icon svg { opacity: 0.6; transition: opacity 0.2s ease; }
.sw-yt-wrap:hover .sw-yt-icon svg { opacity: 0.9; }
.sw-yt-text {
  color: var(--muted); font-size: 14px; line-height: 1.6;
  max-width: 480px; margin: 0;
}
.sw-yt-text a { color: var(--signal); border-bottom: 1px dashed rgba(255,179,0,0.4); }
.sw-yt-text a:hover { border-bottom-color: var(--signal); }
.sw-yt-hint {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); opacity: 0.7; margin: 0;
  letter-spacing: 0.03em;
}
.sw-yt-accept {
  margin: 0;
}

/* =================================================================
   LIVETICKER (Kontakt)
   ================================================================= */
.sw-liveticker { font-family: var(--font-mono); }
.sw-liveticker .entry {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed var(--wire);
}
.sw-liveticker .date {
  display: block; font-size: 12px; color: var(--muted);
  letter-spacing: 0.05em;
}
.sw-liveticker .text {
  display: block; font-weight: 700; font-size: 14px;
  color: var(--text); line-height: 1.5;
}

/* =================================================================
   FOOTER
   ================================================================= */
.sw-footer.site-footer {
  background: var(--steel); color: var(--text);
  padding-top: 80px; padding-bottom: 32px;
  position: relative; margin-top: 80px;
  border-top: 1px solid var(--wire);
  line-height: 1.7; overflow: hidden;
}
.sw-footer.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal) 30%, var(--signal) 70%, transparent);
  opacity: 0.35;
}
.sw-footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 64px; align-items: start;
  padding-bottom: 48px; border-bottom: 1px solid var(--wire);
}
@media (max-width: 900px) {
  .sw-footer-inner { grid-template-columns: 1fr; gap: 40px; text-align: left; }
}
.sw-footer h5 {
  font-family: var(--font-mono); color: var(--signal);
  font-size: 12px; font-weight: 700;
  margin: 0 0 16px; letter-spacing: 0.15em;
  text-transform: uppercase;
}
.sw-footer h5::before { content: "// "; color: var(--muted); }
.sw-footer input,
.sw-footer #question {
  width: 100%; padding: 10px 12px;
  background: var(--ink); border: 1px solid var(--wire);
  color: var(--text); border-radius: 2px;
  font-family: var(--font-mono); font-size: 13px;
  box-sizing: border-box; margin: 0 0 10px;
  display: block;
}
.sw-footer input:focus,
.sw-footer #question:focus { outline: 1px solid var(--signal); border-color: var(--signal); }
.sw-footer .sw-faq-btn,
.sw-footer #frage_button {
  background: var(--signal); color: var(--ink);
  padding: 10px 22px; border: 0; border-radius: 2px;
  cursor: pointer; font-family: var(--font-mono);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  display: block; margin: 0 0 12px;
  width: auto;
  text-align: left;
}
.sw-footer .sw-faq-btn:hover,
.sw-footer #frage_button:hover {
  background: transparent; color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}
.sw-footer .sw-faq-hint {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); margin-top: 10px; display: block;
}
/* FAQ-Antwort-Felder */
.sw-footer #antwortfeld,
.sw-footer .sw-faq-answer {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text); line-height: 1.6;
  background: var(--ink); border: 1px solid var(--wire);
  padding: 12px 14px; border-radius: 2px;
  margin: 12px 0 8px; text-align: left;
}
.sw-footer #antwortfeld:empty,
.sw-footer .sw-faq-answer:empty { display: none; }
.sw-footer #alternative,
.sw-footer .sw-faq-alt {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); padding: 0; text-align: left;
  margin: 0 0 8px;
}
.sw-footer #alternative:empty,
.sw-footer .sw-faq-alt:empty { display: none; }

/* Buttons INNERHALB der FAQ-Antwort (z.B. "Öffnen") */
.sw-footer #alternative button,
.sw-footer #alternative a,
.sw-footer #antwortfeld button,
.sw-footer #antwortfeld a,
.sw-footer .sw-faq-alt button,
.sw-footer .sw-faq-alt a,
.sw-footer #ja, .sw-footer #nein {
  background: transparent !important;
  color: var(--signal) !important;
  border: 1px solid var(--signal) !important;
  padding: 4px 10px !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: lowercase;
  cursor: pointer;
  border-radius: 2px !important;
  margin-left: 6px !important;
  text-decoration: none !important;
  display: inline-block;
}
.sw-footer #alternative button:hover,
.sw-footer #alternative a:hover,
.sw-footer #ja:hover, .sw-footer #nein:hover {
  background: var(--signal) !important;
  color: var(--ink) !important;
}

/* Override alte faq-style Regeln aus dem Original */
.sw-footer .faq {
  width: 100%; margin: 0; padding: 0;
  text-align: left;
}
.sw-footer .faq h5 { display: none; } /* Eigene h5 oben drueber */
.sw-footer .sw-contact-logo img {
  max-width: 120px; margin: 0 0 18px;
  filter: drop-shadow(0 0 10px rgba(255,179,0,0.25));
  border: 0; background: transparent;
}
.sw-footer .sw-contact-card p {
  color: var(--text); font-size: 14px; line-height: 1.75; margin: 0 0 14px;
}
.sw-footer .sw-contact-card p strong { color: var(--signal); }
.sw-footer .sw-contact-btns {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.sw-footer .sw-contact-btns a {
  background: transparent; color: var(--text);
  padding: 8px 14px; border: 1px solid var(--wire-2);
  border-radius: 2px; font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: lowercase; transition: all 0.15s ease;
}
.sw-footer .sw-contact-btns a:hover {
  color: var(--signal); border-color: var(--signal);
  box-shadow: 0 0 12px rgba(255,179,0,0.2);
}
.sw-footer .sw-links {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono); font-size: 13px;
}
.sw-footer .sw-links a {
  color: var(--text); text-decoration: none;
  border: 0; padding: 4px 0; transition: all 0.15s ease;
}
.sw-footer .sw-links a::before {
  content: ">"; color: var(--muted); margin-right: 8px;
  transition: color 0.15s ease;
}
.sw-footer .sw-links a:hover { color: var(--signal); }
.sw-footer .sw-links a:hover::before { color: var(--signal); }

.sw-footer-bottom {
  padding-top: 24px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.08em;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

/* =================================================================
   LEGAL (Impressum + Datenschutz)
   ================================================================= */
.sw-legal {
  max-width: 820px; margin: 24px 0 40px;
  font-size: 15px; line-height: 1.85;
  color: #c2c7d0;
}
.sw-legal h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text);
  margin: 2.2em 0 0.6em;
  padding-left: 14px;
  border-left: 3px solid var(--signal);
  letter-spacing: -0.01em;
}
.sw-legal h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--signal);
  margin: 1.8em 0 0.4em;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.sw-legal h3::before { content: "# "; color: var(--muted); }
.sw-legal p { margin: 0 0 1.2em; color: #c2c7d0; }
.sw-legal a {
  color: var(--signal);
  border-bottom: 1px dashed rgba(255,179,0,0.4);
  transition: border-color 0.15s ease;
}
.sw-legal a:hover { border-bottom-color: var(--signal); }
.sw-legal strong { color: var(--text); font-weight: 700; }
.sw-legal p + h2 { margin-top: 2.6em; }

.sw-legal.sw-datenschutz br + br { display: none; }

/* =================================================================
   MOBILE
   ================================================================= */
@media (max-width: 700px) {
  body::before { background-size: 24px 24px; }
  .sw-hero { padding-top: 72px; padding-bottom: 56px; min-height: 480px; }
  .sw-hero h1 { font-size: clamp(2.5rem, 12vw, 5rem); }
  .sw-hero-meta { grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: none; }
  .sw-hero-meta .n { font-size: 1.4rem; }
  .page-title-hero { padding-top: 48px; padding-bottom: 40px; }
  .page-title-hero h1 { font-size: clamp(2rem, 9vw, 3.5rem); }
  .sw-header .sw-logo img { max-width: 140px; }
  article h2 { font-size: 1.6rem; }
}

/* =================================================================
   LIGHTBOX – Klickbare Galerie-Bilder
   ================================================================= */
.sw-gallery img,
body main .cols.cols-4 img,
body main .cols.cols-5 img,
body main .sw-gallery figure img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.sw-gallery figure:hover img { transform: scale(1.015); }

#sw-lightbox {
  position: fixed; inset: 0;
  background: rgba(11, 14, 19, 0.94);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  animation: lb-fade-in 0.2s ease;
}
#sw-lightbox.open { display: flex; }
#sw-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,179,0,0.4), 0 20px 80px rgba(0,0,0,0.8);
  animation: lb-zoom-in 0.25s ease;
}
#sw-lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  min-width: 56px; height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--wire-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#sw-lightbox-close:hover {
  color: var(--signal);
  border-color: var(--signal);
}
#sw-lightbox-caption {
  position: absolute;
  bottom: 24px; left: 32px; right: 32px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.05em;
}
@keyframes lb-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-zoom-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--wire); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--signal); }
::selection { background: var(--signal); color: var(--ink); }

/* =================================================================
   NEUE CONTENT-SECTIONS (Phase 1)
   ================================================================= */

/* Section-Label: "> manifest", "> so/läuft/es/ab" ... */
.sw-section-label {
  font-family: var(--font-mono);
  color: var(--neon);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}
.sw-section-label::before { content: ""; }

/* Standard-Container fuer neue Sections */
.sw-manifest, .sw-steps, .sw-featured, .sw-process, .sw-cta-box {
  max-width: var(--container-max);
  margin: 0 auto 72px;
  padding: 0 var(--container-gutter);
  box-sizing: border-box;
}
.sw-manifest .inner, .sw-steps .inner, .sw-featured .inner, .sw-process .inner, .sw-cta-box .inner {
  max-width: 1300px;
}
.sw-manifest h2, .sw-steps h2, .sw-featured h2, .sw-process h2, .sw-cta-box h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 28px;
}

/* Manifest */
.sw-manifest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.sw-manifest-grid p {
  color: #c2c7d0; font-size: 15px; line-height: 1.75;
  margin: 0; padding-left: 18px;
  border-left: 2px solid var(--wire);
}
.sw-neon { color: var(--neon); font-style: normal; font-weight: 700; }

/* So laeuft es ab */
.sw-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .sw-steps-grid { grid-template-columns: 1fr; } }
.sw-step {
  background: var(--steel);
  border: 1px solid var(--wire);
  border-radius: 4px;
  padding: 24px 22px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sw-step:hover { border-color: var(--signal); transform: translateY(-3px); }
.sw-step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.sw-step h3 {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  font-weight: 900;
  font-size: 1.3rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.sw-step h3::before { content: none; }
.sw-step p {
  color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0;
}
.sw-steps-cta { text-align: left; }

/* Featured */
.sw-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  background: var(--steel);
  border: 1px solid var(--wire);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 900px) { .sw-featured-card { grid-template-columns: 1fr; } }
.sw-featured-img { display: block; overflow: hidden; }
.sw-featured-img img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.sw-featured-img:hover img { transform: scale(1.03); }
.sw-featured-body {
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  justify-content: center;
}
.sw-featured-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sw-featured-body h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}
.sw-featured-body h3::before { content: none; }
.sw-featured-body p {
  color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0;
}
.sw-featured-body .btn { align-self: flex-start; margin-top: 8px; }

/* Process (Spezial) */
.sw-process-intro {
  color: var(--muted); font-size: 15px; line-height: 1.7;
  max-width: 720px; margin: 0 0 28px;
}
.sw-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 24px;
}
@media (max-width: 900px) { .sw-process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .sw-process-grid { grid-template-columns: 1fr; } }
.sw-process-step {
  background: var(--ink);
  border: 1px solid var(--wire);
  border-radius: 4px;
  padding: 22px 18px;
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s ease;
}
.sw-process-step:hover { border-color: var(--signal); }
.sw-process-id {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--signal);
  letter-spacing: 0.1em;
}
.sw-process-step h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  color: var(--text);
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.sw-process-step h3::before { content: none; }
.sw-process-step p {
  color: #c2c7d0; font-size: 13px; line-height: 1.55; margin: 0;
  flex: 1;
}
.sw-process-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  padding-top: 8px;
  border-top: 1px dashed var(--wire);
}
.sw-process-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin: 0;
}

/* CTA-Box (auf Philosophie) */
.sw-cta-box {
  background: var(--steel);
  border: 1px solid var(--wire);
  border-radius: 4px;
  padding: 40px 32px;
  margin: 32px auto 72px;
}
.sw-cta-box .inner { max-width: 720px; }
.sw-cta-box h2 { margin-bottom: 12px; }
.sw-cta-box p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.sw-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =================================================================
   "Noch mehr Geräte" – kompaktes Related-Grid am Post-Ende
   ================================================================= */
.sw-more {
  max-width: var(--container-max);
  margin: 80px auto 40px;
  padding: 0 var(--container-gutter);
  box-sizing: border-box;
}
.sw-more h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.sw-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.sw-more-card {
  background: var(--steel);
  border: 1px solid var(--wire);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.sw-more-card:hover {
  border-color: var(--signal);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 1px var(--signal);
  opacity: 1;
}
.sw-more-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  line-height: 0;
  border-bottom: 1px solid var(--wire);
}
.sw-more-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.sw-more-card:hover .sw-more-card-img img {
  transform: scale(1.04);
}
.sw-more-card-title {
  padding: 10px 14px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* =================================================================
   NERD-CORE (Phase 2)
   ================================================================= */

/* B.1 Typed-Cursor auf Content-H2s (article + section) */
article h2::after,
body main > section > h2::after,
.sw-section-head h2::after,
.sw-manifest h2::after, .sw-steps h2::after, .sw-featured h2::after,
.sw-process h2::after, .sw-cta-box h2::after {
  content: "_";
  display: inline-block;
  margin-left: 0.15em;
  color: var(--signal);
  animation: blink 1.1s steps(2) infinite;
  font-weight: 400;
}

/* B.2 Hex-Koordinaten Labels auf blog-cards */
.blog-card::after {
  content: attr(data-hex);
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
  background: rgba(11, 14, 19, 0.8);
  padding: 3px 7px;
  border-radius: 2px;
  border: 1px solid var(--wire);
  z-index: 2;
  opacity: 0.75;
  pointer-events: none;
}
/* Fallback-Hex via CSS-Counter wenn kein data-hex */
.blog-grid { counter-reset: card; }
.blog-card:not([data-hex])::after {
  counter-increment: card;
  content: "[0x" counter(card, upper-hexadecimal) ":A" counter(card) "]";
}

/* B.3 Uptime-Counter im Footer */
.sw-uptime {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.sw-uptime-label { color: var(--neon); }

/* B.4 ASCII-Divider */
.sw-ascii-divider {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  opacity: 0.5;
  letter-spacing: 0.1em;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* =================================================================
   NERD-ADVANCED (Phase 3)
   ================================================================= */

/* B.5 Boot-Sequence Overlay */
#sw-boot {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 99999;
  display: none;
  align-items: center; justify-content: flex-start;
  padding: clamp(24px, 6vw, 80px);
  transition: opacity 0.4s ease;
}
#sw-boot.on { display: flex; }
#sw-boot.fading { opacity: 0; }
.sw-boot-inner {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.6vw, 16px);
  color: var(--neon);
  letter-spacing: 0.04em;
}
.sw-boot-line {
  opacity: 0;
  animation: bootFadeIn 0.3s forwards;
  margin-bottom: 6px;
}
.sw-boot-line-2 { animation-delay: 0.3s; }
.sw-boot-line-3 { animation-delay: 0.7s; color: var(--text); }
.sw-boot-ok { color: var(--signal); }
@keyframes bootFadeIn { to { opacity: 1; } }

/* B.6 Glitch-Hover auf Karten-Titel */
.blog-card .blog-card-title,
.sw-card h4 {
  position: relative;
}
.blog-card:hover .blog-card-title,
.sw-card:hover h4 {
  animation: glitch 0.25s steps(2) 1;
}
@keyframes glitch {
  0% { text-shadow: 0 0 transparent; transform: translate(0); }
  25% { text-shadow: 1.5px 0 var(--signal), -1.5px 0 var(--neon); transform: translate(1px, 0); }
  50% { text-shadow: -1.5px 0 var(--signal), 1.5px 0 var(--neon); transform: translate(-1px, 0); }
  75% { text-shadow: 1px 0 var(--signal), -1px 0 var(--neon); transform: translate(0, 1px); }
  100% { text-shadow: 0 0 transparent; transform: translate(0); }
}

/* B.8 CRT-Scanlines als dezentes Overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    transparent,
    transparent 2px,
    rgba(255,255,255,0.018) 2px,
    rgba(255,255,255,0.018) 3px
  );
  mix-blend-mode: overlay;
}

/* B.9 Data-Cmd-Tooltip (fuer Elemente mit data-cmd) */
[data-cmd] {
  position: relative;
}
[data-cmd]:hover::before {
  content: "> " attr(data-cmd);
  position: absolute;
  bottom: calc(100% + 8px); left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  background: var(--steel);
  border: 1px solid var(--wire-2);
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* B.10 Noise-Texture auf Signal-Buttons */
.btn:not(.btn-ghost):not(.btn-white),
.wp-block-button a {
  background: transparent; color: var(--signal); opacity: 1;
  box-shadow: 0 0 24px rgba(255,179,0,0.35);
}

/* =================================================================
   BARRIEREFREIHEIT – prefers-reduced-motion + focus-visible
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sw-header .sw-logo::after,
  .sw-hero h1 .cursor,
  .sw-hero-tag::before { animation: none; }
}

/* Focus-Indikator fuer Tastatur-Navigation */
body > nav a:focus-visible,
a:focus-visible, button:focus-visible,
.btn:focus-visible, .sw-btn:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}
body > nav a:focus-visible { background: rgba(255,179,0,0.08); }

/* =================================================================
   IMPRESSUM + DATENSCHUTZ – Hero-Style fuer Legal-Seiten
   ================================================================= */
body.page-impressum main > div:first-child,
body.page-datenschutz main > div:first-child,
main > div > h1:first-child,
main > .legal-hero {
  /* Hero-Optik ohne explizite Wrapper-Klasse */
}

/* Generisch: H1 direkt in main/div bekommt Hero-Tag + Styling */
body main > div:has(> h1):first-of-type h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 40px 0 20px;
  position: relative;
}
body main > div:has(> h1):first-of-type h1::before {
  content: "> legal";
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 400;
}

/* Legal-Content max 820px lesbar */
body.page-impressum main,
body.page-datenschutz main { padding-bottom: 120px; }
body.page-impressum main > div,
body.page-datenschutz main > div {
  max-width: 820px;
}
