/* ==========================================================================
   ZaitGaist – Grundstile
   ========================================================================== */

/* Nunito, selbstgehostet */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-900.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f5f7;
  --text: #1c1e21;
  --text-muted: #6b7280;
  --border: #e2e5ea;
  --max-width: 700px;
  --font-display: "Nunito", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

/* ---- Kopf-/Fußzeile ---- */
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Kleine Version des Rainbow-Effekts fuer den Header-Schriftzug, für
   Kontinuität mit dem großen Hero-Wordmark. Keine Weiß-Stops (wie beim
   Hero) und kein Blur/Glow dahinter – bei 20px in einer schmalen Kopfzeile
   würde das nur unruhig wirken. Reiner animierter Gradient-Text reicht. */
.site-header .brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  background: linear-gradient(120deg,
    #ff8ad1 0%, #ffd88a 18%, #8affc1 36%,
    #7fd7ff 54%, #b48aff 72%, #ff8ad1 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shift 9s ease-in-out infinite;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-left a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}

.contact-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 13px;
  color: var(--text);
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 140px 40px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wordmark-wrap {
  position: relative;
  display: inline-block;
}

/* Glow-Blob hinter dem Schriftzug: bewusst größer als der Text (darf ihn
   "übertreten") und faded per Radial-Mask komplett auf transparent aus,
   bevor er den Rand seiner eigenen Box erreicht. Dadurch entsteht nie eine
   sichtbare Kante, unabhängig von .hero's overflow:hidden. */
.hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: 260%;
  transform: translate(-50%, -50%);
  background: linear-gradient(120deg,
    #ff8ad1 0%, #ffd88a 18%, #8affc1 36%,
    #7fd7ff 54%, #b48aff 72%, #ff8ad1 100%);
  background-size: 300% 300%;
  filter: blur(50px) saturate(160%);
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 0%, #000 20%, transparent 100%);
  opacity: 0.85;
  animation: shift 9s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.hero-word {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  background: linear-gradient(120deg,
    #ffffff 0%, #ff9fda 10%, #ffe39f 24%, #a8ffce 38%,
    #9fe0ff 52%, #c4a8ff 66%, #ffffff 80%, #ff9fda 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shift 9s ease-in-out infinite;
  z-index: 2;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.hero-word::after {
  content: "ZaitGaist";
  position: absolute;
  left: 0; top: 0;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.9);
  color: transparent;
  z-index: 3;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

.hero-shadow {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(120,140,200,0.18) 0%, rgba(120,140,200,0) 70%);
  z-index: 0;
}

.hero-tagline {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -40px;
  padding: 0 24px 40px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

@keyframes shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Artikel-Liste ---- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 0 80px;
}

.post-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
}

/* ---- Cover-Hero: wiederverwendbare Glow-Komponente, identisch zum Hero ----
   Fixe Größe überall (Karte + Artikel-Detail), kein flächendeckendes Rechteck,
   weicher Blur statt harter Kante. */
.cover-hero {
  position: relative;
  padding: 36px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* inset:0 = füllt .cover-hero exakt aus, egal wie hoch die Box durch Padding
   + Bildhöhe tatsächlich wird. "ellipse closest-side" in der Maske sorgt
   dafür, dass der Verlauf IMMER exakt am eigenen Rand dieser Box auf 0
   Alpha ausläuft – dadurch kann nie eine harte Kante entstehen, unabhängig
   von overflow:hidden auf dem Elternelement. */
.cover-hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    #ff9fda 0%, #ffe39f 20%, #a8ffce 40%,
    #9fe0ff 60%, #c4a8ff 80%, #ff9fda 100%);
  background-size: 300% 300%;
  animation: shift 9s ease-in-out infinite;
  filter: blur(30px) saturate(160%);
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 0%, #000 15%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 0%, #000 15%, transparent 100%);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.cover-hero-motif {
  position: relative;
  z-index: 1;
  height: 120px;
  width: auto;
}

.post-card-body {
  padding: 20px 24px 24px;
}

.byline {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.byline .counter {
  color: var(--text-muted);
  font-weight: 600;
}

.post-card-date {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  margin: 8px 0 6px;
  text-align: center;
}

.post-card-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 6px;
}

.post-card-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.post-card-author {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 40px 24px 80px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---- Artikel-Detail ---- */
.article-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px 0;
}

.article-date {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin: 12px 0 32px;
}

.article-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
  font-size: 17px;
  line-height: 1.7;
}

.article-body p { margin: 0 0 24px; }
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  margin: 48px 0 16px;
}

.article-body blockquote {
  margin: 0 0 24px;
  padding: 4px 24px;
  border-left: 3px solid #9fe0ff;
  color: var(--text-muted);
  font-style: italic;
}
.article-body blockquote p { margin: 0 0 12px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
