@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Farben aus bevaro.css (Hauptseite) übernommen */
  --zg-desk: #113c9d;        /* Seitenhintergrund, entspricht --secondary */
  --zg-paper: #0f2965;       /* "Papier"-Fläche = dunkles Menü-Blau, entspricht --primary */
  --zg-paper-deep: #0a1c47;  /* etwas dunklerer Ton fuer sanften Verlauf */
  --zg-ink: #ffffff;         /* Schlagzeilen, entspricht --text-light */
  --zg-text: #eef1f8;        /* Fließtext, helles Off-White fuer dunklen Hintergrund */
  --zg-muted: #a1bfc8;       /* Byline/Quelle, entspricht --accent */
  --zg-accent: #a1bfc8;      /* entspricht --accent */
  --zg-link: #b0d4f1;        /* Links, entspricht --link (wie im Sidebar-Menue) */
  --zg-rule: #a1bfc8;
  --zg-glow: rgba(176, 212, 241, 0.35);
  --zg-shadow: rgba(5, 12, 35, 0.55);
  --zg-radius: 10px;
  --zg-max-width: 960px;
}

* { box-sizing: border-box; }

body.zg-body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(176, 212, 241, 0.12), transparent 55%),
    var(--zg-desk);
  color: var(--zg-text);
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.6;
  padding: 1.5rem 1rem 3rem;
}

.zg-page {
  max-width: var(--zg-max-width);
  margin: 0 auto;
  background: linear-gradient(180deg, var(--zg-paper) 0%, var(--zg-paper-deep) 100%);
  border: 1px solid rgba(161, 191, 200, 0.4);
  border-radius: var(--zg-radius);
  box-shadow: 0 12px 40px var(--zg-shadow), 0 0 0 1px rgba(176, 212, 241, 0.06) inset;
  overflow: hidden;
  position: relative;
}

.zg-page::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.zg-masthead {
  padding: 2.25rem 1.5rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--zg-rule);
  position: relative;
}

.zg-masthead h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.03em;
  margin: 0;
  text-transform: uppercase;
  color: var(--zg-ink);
  text-shadow: 0 0 22px var(--zg-glow);
}

.zg-masthead::after {
  content: "❖";
  display: block;
  color: var(--zg-accent);
  font-size: 0.85rem;
  margin: 0.6rem 0;
  opacity: 0.8;
}

.zg-masthead .zg-date {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  color: var(--zg-muted);
  margin: 0.25rem 0 1.1rem;
}

.zg-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(5, 12, 35, 0.35);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.zg-nav a { color: #ffffff; text-decoration: none; transition: color 0.2s ease; }
.zg-nav a:hover { color: var(--zg-link); text-decoration: underline; }

.zg-content {
  padding: 1.5rem 1.75rem;
  color: var(--zg-text);
}

.zg-content p { color: var(--zg-text); }

.zg-headline-top {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--zg-ink);
}

.zg-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: var(--zg-ink);
}

.zg-article {
  border-top: 1px solid rgba(161, 191, 200, 0.3);
  padding: 1.4rem 0;
  column-width: 320px;
  column-gap: 2rem;
  column-rule: 1px solid rgba(161, 191, 200, 0.25);
}

.zg-article > * { break-inside: avoid; }

.zg-article a { color: var(--zg-link); transition: color 0.2s ease; }
.zg-article a:hover { color: #ffffff; }

/* Leitartikel (Top-Meldung): einspaltig, groesser, mit Initial */
.zg-article:has(.zg-headline-top) {
  column-width: auto;
  column-count: 1;
}

.zg-article:has(.zg-headline-top) > p:not(.zg-source):first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 3.4em;
  float: left;
  line-height: 0.8;
  margin: 0.05em 0.08em 0 0;
  color: var(--zg-link);
}

/* Bild zu einer Meldung */
.zg-figure {
  margin: 0.6rem 0 0.9rem;
  break-inside: avoid;
}

.zg-figure img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(161, 191, 200, 0.35);
  display: block;
}

.zg-figure figcaption {
  font-size: 0.75rem;
  color: var(--zg-muted);
  font-style: italic;
  margin-top: 0.3rem;
}

/* Platzhalter, wenn keine Bildquelle verfuegbar ist */
.zg-figure.zg-figure-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border-radius: 6px;
  border: 1px solid rgba(161, 191, 200, 0.35);
  background: linear-gradient(135deg, rgba(176, 212, 241, 0.18), rgba(176, 212, 241, 0.04));
}

.zg-figure.zg-figure-placeholder .zg-figure-mono {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--zg-link);
  opacity: 0.55;
}

.zg-source {
  font-size: 0.85rem;
  color: var(--zg-muted);
  font-style: italic;
  margin: 0.3rem 0 0.6rem;
}

.zg-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zg-ink);
  border-bottom: 2px solid var(--zg-rule);
  padding-bottom: 0.3rem;
  margin: 2.25rem 0 1rem;
  position: relative;
  padding-left: 0.9rem;
}

.zg-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.4em;
  width: 4px;
  background: var(--zg-link);
  border-radius: 2px;
}

.zg-archive-list {
  list-style: none;
  padding: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--zg-text);
}

.zg-archive-list a { color: var(--zg-link); transition: color 0.2s ease; }
.zg-archive-list a:hover { color: #ffffff; }

.zg-archive-list li { padding: 0.35rem 0; border-bottom: 1px dotted rgba(161, 191, 200, 0.35); }

.zg-footer {
  padding: 1.1rem 1.75rem 2rem;
  border-top: 1px solid var(--zg-rule);
  background: rgba(5, 12, 35, 0.35);
  color: #ffffff;
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 600px) {
  .zg-article { column-width: 100%; }
}
