/*
Theme Name: Astrologie der Zeitenwende
Theme URI: https://example.invalid/
Author: OpenAI / ChatGPT
Description: Ruhiges, editoriales Block-Theme für astrologische Analysen, Untersuchungen, Grundlagen und Zeitgeschehen. Ohne Page Builder und ohne externe Schrift- oder Script-Abhängigkeiten.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: astrologie-der-zeitenwende
*/

:root {
  --az-navy: #10243d;
  --az-navy-2: #17334f;
  --az-gold: #b58a43;
  --az-gold-soft: #d7c39a;
  --az-cream: #f7f4ee;
  --az-paper: #fffdf8;
  --az-ink: #17263a;
  --az-muted: #66717f;
  --az-line: #ddd6c8;
}

html { scroll-behavior: smooth; }
body { background: var(--az-paper); color: var(--az-ink); }
a { text-underline-offset: .17em; text-decoration-thickness: .07em; }

/* Header */
.az-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--az-paper) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--az-navy) 11%, transparent);
}
.admin-bar .az-site-header { top: 32px; }
.az-site-title a { text-decoration: none; letter-spacing: .15em; text-transform: uppercase; }
.az-site-tagline { letter-spacing: .22em; text-transform: uppercase; }
.az-main-nav a { text-decoration: none; }
.az-main-nav a:hover { color: var(--az-gold); }

/* Hero */
.az-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 540px;
  background:
    radial-gradient(circle at 70% 28%, rgba(215,195,154,.23), transparent 25%),
    radial-gradient(circle at 12% 100%, rgba(87,119,147,.32), transparent 32%),
    linear-gradient(145deg, #0a1a2b 0%, #102b47 57%, #071522 100%);
  color: #fff;
}
.az-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image:
    radial-gradient(circle at 8% 23%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 22% 62%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 39% 17%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 56% 71%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 81% 37%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 92% 79%, #fff 0 1px, transparent 1.4px);
  background-size: 210px 180px, 260px 240px, 190px 230px, 240px 210px, 250px 190px, 180px 220px;
  z-index: -2;
}

.az-kicker { letter-spacing: .22em; text-transform: uppercase; }
.az-gold-rule { width: 54px; height: 3px; background: var(--az-gold); }
.az-hero .wp-block-button__link { border: 1px solid var(--az-gold); }

/* Editable media area in the hero. The old decorative radix has been removed. */
.az-hero-grid { position: relative; z-index: 1; }
.az-hero-copy { min-width: 0; }
.az-hero-media-column { min-width: 0; }
.az-hero-media-zone {
  width: 100%;
  color: #fff;
}
.az-planet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  align-items: center;
}
.az-planet-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 110px;
}
.az-planet-slot-featured {
  min-height: 150px;
}
.az-planet-slot .wp-block-image {
  margin: 0;
  width: 100%;
}
.az-planet-slot img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}
.editor-styles-wrapper .az-hero-media-zone {
  min-height: 360px;
  padding: 8px;
}
.editor-styles-wrapper .az-planet-slot {
  min-height: 110px;
  border: 1px dashed rgba(215,195,154,.55);
  background: rgba(7,21,34,.12);
}
.editor-styles-wrapper .az-planet-slot-featured {
  min-height: 150px;
  border-color: rgba(181,138,67,.8);
  background: rgba(181,138,67,.08);
}
.editor-styles-wrapper .az-planet-slot:empty::before {
  content: "+ Bild";
  color: rgba(215,195,154,.8);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Sections & cards */
.az-section { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.az-section-cream { background: var(--az-cream); }
.az-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--az-line);
  box-shadow: 0 10px 30px rgba(16,36,61,.05);
}
.az-card .wp-block-post-featured-image { margin: 0; }
.az-card .wp-block-post-featured-image img { transition: transform .45s ease; }
.az-card:hover .wp-block-post-featured-image img { transform: scale(1.025); }
.az-card-body { padding: 1.45rem 1.5rem 1.65rem; }
.az-meta, .az-meta a { color: var(--az-gold); text-decoration: none; text-transform: uppercase; letter-spacing: .11em; font-size: .78rem; }

.az-topic { border-top: 1px solid var(--az-line); padding-top: 1.5rem; }
.az-topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--az-gold);
  border-radius: 50%;
  color: var(--az-gold);
  font-family: Georgia, serif;
  font-size: 1.6rem;
}
.az-topic a { text-decoration: none; }

.az-quote-band {
  background: #f0ece5;
  border-top: 1px solid var(--az-line);
  border-bottom: 1px solid var(--az-line);
}

.az-split-dark {
  color: white;
  background:
    radial-gradient(circle at 60% 30%, rgba(181,138,67,.20), transparent 22%),
    linear-gradient(145deg, #0b1e32, #17324c);
}
.az-split-light { background: linear-gradient(145deg, #fbfaf7, #ece7dc); }

/* Article */
.az-article-shell { max-width: 820px; margin-inline: auto; }
.az-article-shell p { line-height: 1.85; }
.az-article-shell blockquote { border-left: 3px solid var(--az-gold); margin-left: 0; padding-left: 1.4rem; color: #425064; }
.az-article-shell h2 { margin-top: 2.2em; }
.az-article-shell h3 { margin-top: 1.8em; }

/* Footer */
.az-site-footer { background: var(--az-navy); color: rgba(255,255,255,.78); }
.az-site-footer a { color: #fff; }
.az-footer-rule { border-top: 1px solid rgba(255,255,255,.18); }
.az-footer-claim { letter-spacing: .25em; text-transform: uppercase; font-size: .72rem; }

/* Utility */
.az-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--az-gold); }
.az-soft-border { border: 1px solid var(--az-line); }

@media (min-width: 782px) and (max-width: 1050px) {
  .az-planet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 781px) {
  .az-hero { min-height: auto; }
  .az-site-title a { letter-spacing: .09em; }
  .az-hero-grid { gap: 2rem; }
  .az-hero-media-zone { margin-top: 1rem; }

  /* On phones and smaller tablets, keep the hero calm and text-focused.
     The editable media area stays available on desktop, but is hidden on smaller screens. */
  .az-hero-media-column {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .admin-bar .az-site-header { top: 0; }
}
