/*
Theme Name: Ozark Child – zwo:zwo
Template: ozark
Version: 1.0.0
Text Domain: ozark-child
*/

/* ============================================================
   Ozark Child – Style Alignment
   Prinzip: Ozark first
   - px-Raster: 10 / 15 / 20 / 30
   - Meta/Captions: 14px
   - keine “App-UI”, keine Pills, keine eigenen Designsysteme
   ============================================================ */

/* ==============================
   0) Baseline
   ============================== */

html { -webkit-text-size-adjust: 100%; }

body{
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6{
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Captions/Meta im Ozark-Ton */
.wp-caption p.wp-caption-text,
figcaption,
.wp-element-caption{
  padding: 0;
  font-size: 14px;
  margin-top: 0;
  line-height: 1.35;
  opacity: 0.85;
}

/* WordPress Core – kompatibel zu Ozark */
.wp-block-gallery { margin-bottom: 20px; }

.bypostauthor { background-color: #f3f1f1; }

.gallery-caption { opacity: 0.7; margin-top: 10px; }

.gallery-item{
  margin: 0 0 15px 0;
  padding-right: 10px;
  padding-left: 10px;
}

.gallery-item a { box-shadow: none; }

.gallery-item img { border: 0 !important; }

/* Links: minimaler Editorial-Touch, ohne Ozark zu brechen */
a{
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Text-Rhythmus in Ozark-Spacing */
.entry-content p,
.entry-content ul,
.entry-content ol{
  margin-bottom: 15px;
}

/* Blockquote: subtil */
blockquote{
  margin: 30px 0;
  padding: 0 0 0 15px;
  border-left: 3px solid currentColor;
  opacity: 0.95;
}

/* ==============================
   1) Header / Navigation
   ============================== */

.site-header,
header.site-header{
  margin-bottom: 20px;
}

.main-menu a,
.menu a{
  letter-spacing: 0.02em;
}

/* ==============================
   2) Blog / Journal
   ============================== */

.entry-title,
.post-title,
h1.entry-title{
  margin-bottom: 10px;
  line-height: 1.15;
}

.entry-meta,
.post-meta{
  opacity: 0.75;
  font-size: 14px;
}

/* ==============================
   3) WooCommerce – untergeordnet
   ============================== */

.ozwo-shop-context .site-header,
.ozwo-shop-context header.site-header{
  opacity: 0.98;
}

.woocommerce div.product .product_title{
  line-height: 1.15;
  margin-bottom: 15px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price{
  font-size: 16px;
  opacity: 0.9;
}

/* keine Pills -> neutral */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{
  border-radius: 0;
  padding: 0.7em 1.1em;
  text-transform: none;
  letter-spacing: 0.01em;
}

/* ==============================
   4) Fokus: kein grauer Rahmen bei Mausklick,
      aber sichtbar bei Tastatur (focus-visible)
   ============================== */

/* Standard-Focus entfernen (für Maus/Touch) */
:where(a, button, input, textarea, select, summary, [role="button"], [tabindex]):focus{
  outline: none;
  box-shadow: none;
}

/* Fokus nur bei Tastatur */
:where(a, button, input, textarea, select, summary, [role="button"], [tabindex]):focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* falls Theme active/visited shadows setzt */
:where(a, button, input, textarea, select, summary, [role="button"], [tabindex]):active{
  box-shadow: none !important;
}

/* ==============================
   5) zwo:zwo Erweiterungen – Ozark-aligned
   ============================== */

/* ---- Filterbar (Projekte Archiv) ---- */
.ozwo-filterbar{ margin: 20px 0 30px; }

.ozwo-filterbar__row{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 15px;
  align-items: end;
}

.ozwo-filter{
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ozwo-filter span{
  font-size: 14px;
  opacity: 0.75;
}

.ozwo-filter select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 0;
}

.ozwo-filterbar__actions{
  grid-column: span 3;
  display: flex;
  gap: 10px;
}

.ozwo-btn{
  padding: 10px 14px;
  border-radius: 0;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
  opacity: 0.9;
}

.ozwo-btn--ghost{ opacity: 0.7; }

@media (max-width: 1024px){
  .ozwo-filter{ grid-column: span 6; }
  .ozwo-filterbar__actions{ grid-column: span 12; }
}
@media (max-width: 640px){
  .ozwo-filter{ grid-column: span 12; }
}

/* ---- Projekte Grid ---- */
.ozwo-projects-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin: 20px 0 30px;
}

.ozwo-project-card{ grid-column: span 4; }

@media (max-width: 1024px){ .ozwo-project-card{ grid-column: span 6; } }
@media (max-width: 640px){  .ozwo-project-card{ grid-column: span 12; } }

.ozwo-project-card__link{
  display: block;
  text-decoration: none;
}

.ozwo-project-card__media img{
  width: 100%;
  height: auto;
  display: block;
}

.ozwo-project-card__placeholder{
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid currentColor;
  opacity: 0.12;
}

.ozwo-project-card__title{
  margin: 15px 0 5px;
  line-height: 1.15;
}

.ozwo-project-card__meta{
  font-size: 14px;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ozwo-project-card__excerpt{
  margin-top: 10px;
  opacity: 0.85;
}

/* ---- Single Projekt ---- */
.ozwo-project-header{ margin-bottom: 20px; }

.ozwo-project-meta{
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.75;
}

.ozwo-meta-row{ margin-bottom: 8px; }

.ozwo-project-hero{ margin: 20px 0 30px; }

/* ---- Artists Grid ---- */
.ozwo-artists-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin: 20px 0 30px;
}

.ozwo-artist-card{ grid-column: span 3; }

@media (max-width: 1024px){ .ozwo-artist-card{ grid-column: span 4; } }
@media (max-width: 640px){  .ozwo-artist-card{ grid-column: span 12; } }

.ozwo-artist-card__link{
  display: block;
  text-decoration: none;
}

.ozwo-artist-card__media img{
  width: 100%;
  height: auto;
  display: block;
}

.ozwo-artist-card__placeholder{
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid currentColor;
  opacity: 0.12;
}

.ozwo-artist-card__title{
  margin: 15px 0 5px;
  line-height: 1.15;
}

.ozwo-artist-card__excerpt{
  margin-top: 10px;
  opacity: 0.85;
}

/* ---- Artist <-> Projekte Listen ---- */
.project-artists ul,
.artist-projects ul{
  margin: 10px 0 0;
  padding-left: 18px;
}
.project-artists li,
.artist-projects li{
  margin-bottom: 6px;
}

/* ---- Projekt Links + Galerie (ACF) ---- */
.ozwo-project-links,
.ozwo-project-gallery{
  margin-top: 30px;
}

.ozwo-links-list{
  margin: 10px 0 0;
  padding-left: 18px;
}
.ozwo-links-list li{ margin-bottom: 6px; }

.ozwo-gallery-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.ozwo-gallery-item{ grid-column: span 4; }
@media (max-width: 1024px){ .ozwo-gallery-item{ grid-column: span 6; } }
@media (max-width: 640px){  .ozwo-gallery-item{ grid-column: span 12; } }

.ozwo-gallery-item img{
  width: 100%;
  height: auto;
  display: block;
}

.ozwo-gallery-item figcaption{
  margin-top: 10px;
  opacity: 0.7;
  font-size: 14px;
  line-height: 1.35;
}

/* ==============================
   6) Footer
   ============================== */

.site-footer,
footer.site-footer{
  margin-top: 30px;
  padding-top: 30px;
}

.site-footer a{ opacity: 0.9; }

/* ==============================
   7) Artist Einzelseite
   ============================== */

.ozwo-single-artist {
  padding: 40px 0 60px;
}

/* Portrait + Content nebeneinander */
.ozwo-artist-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .ozwo-artist-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.ozwo-artist-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.ozwo-artist-name {
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.1;
}

.ozwo-artist-bio {
  opacity: 0.9;
}

/* Abschnitts-Heading */
.ozwo-section-heading {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
}

.ozwo-artist-projects {
  margin-top: 50px;
}
