/* redirect301.de - Styles basierend auf Claude-Design */

/* === Fonts (lokal) === */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/PlusJakartaSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/PlusJakartaSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/PlusJakartaSans-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2');
}

/* === Variables === */
:root {
  --bg: #fafafa;
  --bg-page: #f4f4f4;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --ink-4: #9a9a9a;
  --line: #e6e6e6;
  --line-2: #ededed;
  --accent: #c0392b;
  --accent-hover: #a93225;
  --accent-soft: #fdecea;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.04);
  --shadow-md: 0 2px 12px rgba(20, 20, 20, 0.06);
  --shadow-lg: 0 8px 32px rgba(20, 20, 20, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container: 1180px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* === Site Header === */
.site-header {
  position: relative;
  background: #0f1118;
  overflow: visible;
  padding: 44px 0 40px;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.header-left {
  display: flex;
  flex-direction: column;
}
.header-portrait {
  position: relative;
  z-index: 100;
  margin-bottom: -70px;
  animation: portrait-fade 1.5s ease-out 6s forwards;
}
.header-portrait img {
  display: block;
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}
@keyframes portrait-fade {
  to { opacity: 0; transform: translateX(60px); pointer-events: none; }
}
.header-logo {
  text-decoration: none;
  display: inline-block;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-sans);
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo-word {
  font-weight: 800;
  font-size: 42px;
  color: #e8eef5;
  letter-spacing: -0.025em;
}
.logo-num {
  font-weight: 900;
  font-size: 42px;
  color: var(--accent);
  letter-spacing: -0.04em;
  position: relative;
}
.logo-num::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-logo:hover .logo-num::after {
  transform: scaleX(1);
}
.logo-tld {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-left: 4px;
  align-self: flex-end;
  padding-bottom: 5px;
  letter-spacing: 0.02em;
}
.header-tagline {
  font-size: 11px;
  font-weight: 600;
  color: #636b7e;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  display: flex;
  justify-content: space-between;
}
.header-tagline::before {
  content: '//';
  color: #3a3f4e;
}
.header-tagline::after {
  content: '>';
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Animated glow behind header */
.header-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 600px 200px at 30% 80%, rgba(192, 57, 43, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 70% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid pattern */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(90deg, #fff 0px, #fff 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, #fff 0px, #fff 1px, transparent 1px, transparent 80px);
  pointer-events: none;
  z-index: 1;
}

/* Accent line removed */
.site-header::after {
  display: none;
}
@keyframes headerLine {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

/* === Nav (sticky) === */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}
.nav-list {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-link {
  position: relative;
  padding: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  transition: color 0.15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}
.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  width: 160px;
}
.nav-search input::placeholder { color: var(--ink-4); }
.nav-search button {
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  color: var(--ink-3);
  cursor: pointer;
}

/* === Sections === */
.section { padding: 56px 0 32px; }
.section + .section { padding-top: 24px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}

/* === Topic Cards === */
.topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.topic-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.topic-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.topic-card:hover {
  border-color: #d8d8d8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.topic-card:hover::before { transform: scaleX(1); }

.topic-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
}
.topic-card:hover .topic-icon { color: var(--accent); }
.topic-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}
.topic-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}

/* === Latest Grid === */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.posts-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.posts-area .featured { grid-column: 1 / -1; }

/* === Article Cards === */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ddd;
}
.featured .article-thumb { aspect-ratio: 16 / 9; }
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.article-card:hover .article-thumb img { transform: scale(1.04); }

/* Category color placeholders */
.thumb-cat {
  position: relative;
  overflow: hidden;
}
.thumb-cat::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(90deg, #fff 0px, #fff 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(0deg, #fff 0px, #fff 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}
.thumb-symbol {
  font-size: 64px;
  opacity: 0.12;
  position: absolute;
  right: 16px;
  bottom: -8px;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card:hover .thumb-symbol {
  opacity: 0.2;
  transform: scale(1.08);
}
.thumb-cat-sm {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.thumb-symbol-sm {
  font-size: 28px;
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

.article-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.article-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--ink-4);
  border-radius: 50%;
}
.article-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.featured .article-title {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.article-excerpt {
  font-size: 15px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.55;
}
.article-card:hover .article-title { color: var(--accent); }
.article-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* === Sidebar === */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: sticky;
  top: 80px;
}
.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.popular-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}
.popular-item:last-child { border-bottom: none; }
.popular-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
}
.popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
}
.popular-title a { color: var(--ink); transition: color 0.15s; }
.popular-title a:hover { color: var(--accent); }
.popular-date {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* === Tags === */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
}
.tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* === Secondary Posts === */
.posts-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}

/* === Über-Box (Startseite) === */
.about-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 820px;
  margin: 0 auto;
}
.about-box h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 16px;
}
.about-box .about-content {
  line-height: 1.7;
}
.about-box .about-content p {
  margin: 0 0 14px;
}
.about-box .about-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.about-box figure {
  margin: 20px 0;
}
.about-box figcaption {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 6px;
}
.about-box img {
  border-radius: 8px;
  border: 1px solid var(--line);
  width: 100%;
  height: auto;
}
.about-box a {
  color: var(--accent);
}

/* === Legal (Impressum/Datenschutz) === */
.legal-content h1, .legal-content h2, .legal-content h3 {
  margin-top: 28px;
}
.legal-content a {
  color: var(--accent);
}

/* === Footer === */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 32px 0 28px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-2); }

/* === Trust Bar === */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 0;
  margin: 32px 0;
}
.trust-stat {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.trust-stat:last-child { border-right: none; }
.trust-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.trust-num .accent { color: var(--accent); }
.trust-label {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}

/* === Projekte === */
.projekte-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.projekte-label {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
}
.projekt-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.projekt-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== ARTIKEL-SEITE ===== */

/* === Typo Hero === */
.typo-hero {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.typo-hero-inner {
  border-radius: var(--radius-md);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  color: #e2e8f0;
}

/* Hero mit Artikelbild (Bild oben, Text darunter) */
.article-hero-img {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 0 16px;
}
.article-hero-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}
.article-header-below {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}
.article-h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  color: var(--ink);
}
.article-byline {
  font-size: 14px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.byline-dot { color: var(--ink-4); }
.typo-hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(90deg, currentColor 0px, currentColor 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, currentColor 0px, currentColor 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}
.typo-hero-crumbs {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.typo-hero-crumbs a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.typo-hero-crumbs a:hover { color: rgba(255,255,255,0.85); }
.typo-hero-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.typo-hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}
.typo-hero-meta {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.typo-hero-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
}
.typo-hero-symbol {
  position: absolute;
  right: 40px;
  bottom: -15px;
  font-size: 160px;
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  font-weight: 800;
}

@media (max-width: 640px) {
  .typo-hero-inner { padding: 32px 24px; }
  .typo-hero--img .typo-hero-inner { padding: 100px 24px 32px; }
  .typo-hero-symbol { display: none; }
}

/* Breadcrumbs */
.crumbs {
  padding: 20px 0 8px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.crumbs a { color: var(--ink-3); transition: color 0.15s; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--ink-4); font-size: 11px; }
.crumbs .current { color: var(--ink-2); font-weight: 500; }

/* === TOC (Inhaltsverzeichnis) === */
.toc-box {
  max-width: 740px;
  margin: 24px auto;
  padding: 0 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 16px 20px;
}
.toc-toggle strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.toc-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-left: 8px;
}
.toc-toggle.open::after {
  transform: rotate(-135deg);
}
.toc-count {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 500;
}
.toc-list {
  list-style: none;
  padding: 0 20px 16px;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
  border-top: 1px solid var(--line);
}
.toc-list.open {
  display: flex;
}
.toc-item {
  counter-increment: toc;
}
.toc-item a {
  display: block;
  padding: 6px 0 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: color 0.15s, padding-left 0.2s;
}
.toc-item:last-child a { border-bottom: none; }
.toc-item a::before {
  content: counter(toc) ".";
  display: inline-block;
  width: 28px;
  color: var(--ink-4);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.toc-item a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.toc-sub a {
  padding-left: 28px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
}

/* Post Header */
.post-hero {
  padding: 24px 0 32px;
  max-width: 820px;
  margin: 0 auto;
}
.post-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.post-title {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}

/* Post Body */
.post-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
}
.post-body > p { margin: 0 0 24px; }
.post-body h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  color: var(--ink);
  scroll-margin-top: 80px;
}
.post-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--ink);
  scroll-margin-top: 80px;
}
.post-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.15s;
}
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 28px; padding-left: 0; list-style: none; }
.post-body li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}
.post-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  -webkit-mask: url('/assets/arrow-right.svg') no-repeat center;
  mask: url('/assets/arrow-right.svg') no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
/* Quellen-Listen: arrow-up-right Icon */
.post-body .sources-list li::before,
.post-body.has-sources > ul:last-of-type li::before {
  background: var(--ink-3);
  -webkit-mask: url('/assets/arrow-up-right.svg') no-repeat center;
  mask: url('/assets/arrow-up-right.svg') no-repeat center;
}

.post-body ol { counter-reset: ol-counter; }
.post-body ol li::before {
  content: counter(ol-counter);
  counter-increment: ol-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Tabellen */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0;
  min-width: 400px;
}
.post-body figure.wp-block-table {
  margin: 0 0 28px;
  overflow: visible;
}
.post-body figure.wp-block-table table {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
}
.post-body thead th {
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.post-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.post-body tr:last-child td { border-bottom: none; }
.post-body tr:hover td { background: rgba(0,0,0,0.015); }

/* Kopier-Button */
.copy-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 14px;
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  position: relative;
}
.copy-char:hover {
  background: #2a4f7a;
  transform: scale(1.05);
}
.copy-char:active { transform: scale(0.95); }
.copy-char.copied {
  background: #059669;
}
.copy-char.copied::after {
  content: 'Kopiert!';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  animation: fadeUp 0.3s ease;
}
/* Bulk-Copy Buttons (1000 Herzen etc.) */
.copy-bulk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  min-height: 44px;
}
.copy-bulk:hover {
  opacity: 0.88;
  transform: scale(1.03);
}
.copy-bulk:active { transform: scale(0.97); }
.copy-bulk.copied { background: #059669; }

/* Herz-Art Pattern */
.heart-art {
  text-align: center;
  margin: 32px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.heart-art pre {
  background: none !important;
  color: inherit !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
  font-size: 20px;
  line-height: 1.3;
  overflow-x: auto;
  font-family: inherit;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.post-body blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
.post-body pre {
  background: #1a1a1a;
  color: #e6e6e6;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  overflow-x: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.post-body code {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  color: var(--accent);
}
.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.post-body figure { margin: 36px 0; }
.post-body figure img { width: 100%; border-radius: var(--radius-md); }
.post-body figcaption {
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Kommentararchiv */
.comment-archive {
  max-width: 772px;
  margin: 0 auto 32px;
  padding: 32px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.comment-archive h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-count-badge {
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.comment-summary {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* Related */
.related-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 56px 0;
  margin-top: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}

/* === Kategorie-Seite === */
.cat-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cat-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.cat-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0 0 24px;
  max-width: 560px;
}
.cat-list { display: flex; flex-direction: column; }
.cat-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding 0.2s;
}
.cat-row:hover { padding-left: 8px; }
.cat-row a { text-decoration: none; color: inherit; }
.cat-row-thumb {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--line);
}
.cat-row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-row:hover .cat-row-thumb img { transform: scale(1.05); }
.cat-row-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.cat-row-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cat-row:hover .cat-row-title { color: var(--accent); }
.cat-row-excerpt {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Lightbox === */
.post-body img {
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border-radius: var(--radius-sm);
}
.post-body img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-overlay.active img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  max-width: 600px;
}

/* === Responsive === */
@media (max-width: 980px) {
  .topics { grid-template-columns: repeat(2, 1fr); }
  .latest-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .posts-area { grid-template-columns: 1fr; }
  .featured .article-title { font-size: 24px; }
  .nav-list { gap: 0; }
  .nav-link { padding: 18px 12px; font-size: 14px; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .trust-stat { border-bottom: 1px solid var(--line); padding: 20px; }
  .cat-row { grid-template-columns: 200px 1fr; gap: 20px; }
  .cat-title { font-size: 36px; }
}

@media (max-width: 640px) {
  .topics { grid-template-columns: 1fr; }
  .posts-secondary { grid-template-columns: 1fr; }
  .header-portrait img { width: 90px; height: 90px; }
  .header-portrait { margin-bottom: -30px; }
  .logo-word, .logo-num { font-size: 24px; }
  .header-tagline { display: none; }
  .site-header { padding: 20px 0 18px; }
  .nav-inner { height: auto; padding: 0; }
  .nav-list { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; padding: 0 16px; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-link { padding: 14px 10px; font-size: 13px; white-space: nowrap; }
  .post-title { font-size: 24px; }
  .article-h1 { font-size: 22px; }
  .toc-box { margin: 16px 16px; max-width: none; padding: 0; }
  .typo-hero { padding: 0 16px; }
  .typo-hero-inner { min-height: auto; }
  .comment-archive { margin: 0 16px 32px; max-width: none; padding: 24px 16px; }
  .post-body { font-size: 16px; padding: 24px 16px 32px; }
  .post-body h2 { font-size: 22px; }
  .post-body pre { font-size: 13px; overflow-x: auto; }
  .post-body table { font-size: 14px; }
  .post-body figure { margin-left: 0; margin-right: 0; }
  .post-body img { max-width: 100%; height: auto; }
  .related-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: 1fr; }
  .footer-links { gap: 16px; }
  .footer-bottom { font-size: 12px; }
}

/* === Info- und Hinweis-Boxen === */
.info-box, .warning-box, .history-box {
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
}
.info-box {
  background: #eef6ff;
  border-left: 4px solid #3b82f6;
}
.warning-box {
  background: #fef3e2;
  border-left: 4px solid #f59e0b;
}
.history-box {
  background: #f3f4f6;
  border-left: 4px solid #9ca3af;
}
.info-box strong, .warning-box strong, .history-box strong {
  display: block;
  margin-bottom: 4px;
}

/* === Screenshot-Galerie === */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.screenshot-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.15s;
}
.screenshot-gallery img:hover {
  transform: scale(1.03);
}
.screenshot-gallery figcaption {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  text-align: center;
}

/* === Produktbox === */
.produkt-liste {
  margin: 28px -50px;
}
.produkt-box {
  display: flex;
  gap: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.produkt-bild {
  flex-shrink: 0;
  width: 160px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.produkt-bild img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 6px;
  border: none;
  text-decoration: none;
}
.produkt-bild a {
  text-decoration: none;
  border: none;
}
.produkt-info {
  flex: 1;
  min-width: 0;
}
.produkt-titel {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
}
.produkt-titel a,
.post-body .produkt-titel a {
  color: #1a1a1a !important;
  text-decoration: none;
  border-bottom: none !important;
}
.produkt-titel a:hover,
.post-body .produkt-titel a:hover {
  color: #1a1a1a !important;
  text-decoration: underline;
  border-bottom: none !important;
}
.produkt-marke {
  font-size: 12px;
  color: #6b7280;
  display: block;
  margin-bottom: 8px;
}
.produkt-meta {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px;
}
.produkt-preis {
  font-size: 22px;
  font-weight: 800;
  color: #c0392b;
}
.produkt-rating {
  font-size: 14px;
  color: #d97706;
}
.produkt-beschreibung {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 12px;
}
.produkt-procontra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.produkt-procontra strong.pro { color: #059669; }
.produkt-procontra strong.contra { color: #b91c1c; }
.produkt-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.produkt-features li {
  padding: 2px 0 2px 16px;
  position: relative;
  line-height: 1.5;
}
.produkt-features li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}
.produkt-features.contra-list li::before {
  content: '-';
  color: #b91c1c;
}
.produkt-kaeufer {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
  background: #f9fafb;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 0 0 10px;
}
.produkt-fazit {
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
  background: #f5efe3;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 0 0 14px;
}
.produkt-btn,
.post-body .produkt-btn,
.post-body a.produkt-btn {
  display: inline-block;
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  color: #111 !important;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid #a88734;
  border-bottom: 1px solid #a88734;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}
.produkt-btn:hover,
.post-body .produkt-btn:hover,
.post-body a.produkt-btn:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeb933);
  text-decoration: none;
  color: #111 !important;
  border-bottom: 1px solid #a88734;
}
.produkt-stand {
  font-size: 11px;
  color: #9ca3af;
  margin: 8px 0 24px;
  text-align: center;
}
/* Werbung-Aufklappelement */
.produkt-werbung {
  margin-bottom: 8px;
}
.produkt-werbung summary {
  font-size: 11px;
  color: #9ca3af;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  list-style: none;
}
.produkt-werbung summary::-webkit-details-marker { display: none; }
.produkt-werbung summary::before { content: '▸ '; }
.produkt-werbung[open] summary::before { content: '▾ '; }
.produkt-werbung p {
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
  margin: 6px 0 0;
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}
/* Amazon-Logo inline */
.amazon-logo-inline {
  display: inline-block;
  vertical-align: -2px;
  opacity: 0.5;
  margin-left: 3px;
}
.amazon-logo-btn {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  opacity: 0.7;
}
/* KI-Badge */
.ki-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .produkt-liste { margin: 20px 0; }
  .produkt-box { flex-direction: column; padding: 16px; }
  .produkt-bild { width: 100%; justify-content: center; }
  .produkt-procontra { grid-template-columns: 1fr; }
  .produkt-btn { display: block; text-align: center; }
}
