/* ============================================================
   Niklas Volland – Asset Pages
   Zentrales Stylesheet für alle Seiten unter assets.niklas.how
   Änderungen hier wirken auf ALLE veröffentlichten Asset-Seiten.
   ============================================================ */

:root {
  --background: #121212;
  --card: #1f1f1f;
  --surface-light: #292929;
  --foreground: #fafafa;
  --muted-foreground: #8c8c8c;
  --border: #333333;
  --primary: #e60000;
  --primary-dim: rgba(230, 0, 0, 0.08);
  --primary-glow: rgba(230, 0, 0, 0.15);
  --accent: #7d0707;
  --gold: #fdb602;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hintergrund-Texturen ---------- */

.brand-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

.brand-grid {
  position: absolute;
  inset: 0 0 auto 0;
  height: 480px;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.04;
  -webkit-mask-image: linear-gradient(to bottom, white 0%, transparent 75%);
  mask-image: linear-gradient(to bottom, white 0%, transparent 75%);
}

.page-glow {
  position: absolute;
  top: -120px;
  right: 0;
  width: 240px;
  height: 340px;
  background: var(--primary-glow);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Layout ---------- */

.wrap {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.nav img { height: 18px; display: block; }

.nav a.nav-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a.nav-link:hover { color: var(--foreground); }

/* ---------- Header ---------- */

.page-header { padding: 2.5rem 0 2rem; }

.asset-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  background: rgba(250, 250, 250, 0.05);
  border: 1px solid rgba(250, 250, 250, 0.1);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.5rem;
}

.asset-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.accent-bar {
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
  margin-bottom: 1.25rem;
}

h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.intro {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ---------- Typografie im Content ---------- */

h2 {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
  padding-top: 0.5rem;
}

h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  margin-bottom: 0.875rem;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.625rem;
}

p { margin-bottom: 1rem; }

a { color: var(--foreground); text-decoration-color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

strong { font-weight: 600; color: var(--foreground); }

ul, ol { margin: 0 0 1.25rem 1.25rem; }
li { margin-bottom: 0.5rem; }

blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 1.5rem 0;
  color: var(--muted-foreground);
  font-style: italic;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

main img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  display: block;
}

/* Werbe-Disclosure ganz oben auf gesponserten Seiten */
.disclosure {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.5rem 1.05rem;
  background: linear-gradient(120deg, rgba(230, 0, 0, 0.16), rgba(230, 0, 0, 0.04));
  border: 1px solid rgba(230, 0, 0, 0.45);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(230, 0, 0, 0.12);
  font-family: var(--font-sans, "DM Sans", system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #f2f3f5;
}

.disclosure::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary, #e60000);
  box-shadow: 0 0 10px rgba(230, 0, 0, 0.8);
}

/* Kennzeichnung unter KI-generierten Grafiken (EU AI Act) */
.img-note {
  margin: -1rem 0 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #8a8d94;
  opacity: 0.8;
}

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin: 1rem 0 1.5rem;
}

details summary {
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
}

details[open] summary { margin-bottom: 0.75rem; }

/* ---------- Prompt- / Copy-Block ---------- */

.copy-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0 2rem;
  overflow: hidden;
}

.copy-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 250, 0.02);
}

.copy-block-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.copy-btn {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  background: var(--primary);
  border: none;
  border-radius: 9px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.copy-btn:hover { background: #c50000; }
.copy-btn:active { transform: scale(0.97); }
.copy-btn.copied { background: #1d7a3a; }

.copy-btn svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
}

.copy-block pre {
  padding: 1.125rem 1rem;
  overflow-x: auto;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #d6d6d6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 26rem;
  overflow-y: auto;
}

/* ---------- Schritt-für-Schritt ---------- */

.steps {
  list-style: none;
  margin: 1.5rem 0 2rem;
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.125rem;
  height: 2.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
  background: var(--primary-dim);
  border: 1px solid rgba(230, 0, 0, 0.35);
  border-radius: 50%;
}

.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.0625rem - 0.5px);
  top: 2.375rem;
  bottom: 0.25rem;
  width: 1px;
  background: var(--border);
}

.steps .step-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  padding-top: 0.3rem;
}

.steps .step-text {
  font-size: 0.9875rem;
  color: var(--muted-foreground);
}

/* ---------- Link-Liste ---------- */

.link-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.625rem;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.link-list a:hover {
  border-color: rgba(230, 0, 0, 0.4);
  background: var(--surface-light);
  color: var(--foreground);
}

.link-list .link-name {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
}

.link-list .link-desc {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.link-list .link-arrow {
  flex-shrink: 0;
  color: var(--primary);
  font-family: var(--font-sans);
  font-weight: 700;
}

/* ---------- Callout ---------- */

.callout {
  background: var(--primary-dim);
  border: 1px solid rgba(230, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.9875rem;
}

.callout .callout-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.375rem;
}

.callout p:last-child { margin-bottom: 0; }

/* ---------- Werbe-Slots (werden per site.js aus promo-config.js gerendert) ---------- */

/* Kompakter Banner (variant: "banner"), z.B. oben unter dem Header */

.nv-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
  margin: 0.5rem 0 1rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.nv-banner:hover {
  background: var(--surface-light);
  border-color: rgba(230, 0, 0, 0.4);
  border-left-color: var(--primary);
  color: var(--foreground);
}

.nv-banner-body { min-width: 0; }

.nv-banner-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.nv-banner-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--foreground);
}

.nv-banner-text {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.nv-banner-cta {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 9px;
  padding: 0.5rem 0.875rem;
  white-space: nowrap;
}

/* Großer Block (variant: "card"), z.B. unten unter dem Asset */

.nv-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  margin: 3.5rem 0 1rem;
}

.nv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.nv-card-glow {
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: var(--primary-glow);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.nv-card-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.nv-card h2 {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 1.5rem;
}

.nv-card h2::before { display: none; }

.nv-card p {
  color: var(--muted-foreground);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.nv-card-facts {
  list-style: none;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.nv-card-facts li {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--foreground);
  margin: 0;
  padding-left: 1.125rem;
  position: relative;
}

.nv-card-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 0.875rem 1.75rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: #c50000; color: #fff; }
.btn-primary:active { transform: scale(0.98); }

/* ---------- Footer ---------- */

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer, .footer a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-decoration: none;
}

.footer a:hover { color: var(--foreground); }
.footer-links { display: flex; gap: 1.25rem; }

/* ---------- Popup / Overlay ---------- */

.promo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.promo-backdrop.visible { opacity: 1; }

.promo-modal {
  position: fixed;
  z-index: 51;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 2rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.promo-modal.visible { transform: translateY(0); }

.promo-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.promo-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 250, 250, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.promo-close:hover { color: var(--foreground); background: var(--surface-light); }

.promo-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.625rem;
}

.promo-title {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.625rem;
  padding-right: 2rem;
}

.promo-text {
  font-family: var(--font-serif);
  font-size: 0.9875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.promo-date {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(253, 182, 2, 0.08);
  border: 1px solid rgba(253, 182, 2, 0.25);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.25rem;
}

.promo-cta { width: 100%; text-align: center; display: block; }

@media (min-width: 640px) {
  .promo-modal {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(28rem, calc(100vw - 2.5rem));
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .promo-modal.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  .promo-cta { width: auto; display: inline-block; }
}

/* ---------- Fade-in ----------
   Bewusst deaktiviert: Inhalte sind sofort sichtbar, kein Scroll-Reveal.
   Die .fade-in-Klassen in den Seiten bleiben wirkungslos erhalten. */

.fade-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .promo-modal, .promo-backdrop { transition: none; }
}
