/*
Theme Name: Scireum
Theme URI: https://oneqrew.com
Description: OneQrew Child Theme
Author: Cyrus Regalado Jr.
Author URI: https://oneqrew.com
Template: oneqrew
Version: 1.0.19
*/

/* Blog single: remove inline padding wrapper from parent oneqrew/single.twig */
.detailed-blog > div:has(> .content){padding-top:0!important;padding-bottom:0!important}

/* Lists in blog/text content: kill any inherited/UA bullets on ALL lists (covers UI lists like glide/cards), then re-enable markers ONLY on prose (classless ul/ol). Menus already none. */
.detailed-blog .content ul, .detailed-blog .content ol, .wysywyg ul, .wysywyg ol { list-style: none; }
.wysywyg ul:not([class]), .detailed-blog .content ul:not([class]) { list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.wysywyg ol:not([class]), .detailed-blog .content ol:not([class]) { list-style: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.wysywyg li:not([class]), .detailed-blog .content li:not([class]) { margin-bottom: 0.25em; font-size: var(--font-size-p, 1.125rem); }

/* Homepage media-slider-simple (DESKTOP ONLY, >=lg): make the slide shorter than the
   original ~512px and show the whole 16:9 image without cropping. The image is sized to
   its own contain-dimensions (width:auto at a fixed height) and centered, so there are no
   white bars inside the image; the section area simply stays free at the sides. Mobile is
   intentionally left to the parent theme (do not touch). Scoped to .home so blog/single-post
   sliders keep their own sizing. */
@media (min-width:1024px){
  .home .media-slider-simple__item{padding:0!important;aspect-ratio:auto!important;}
  .home .media-slider-simple__thumbnail-container{position:relative!important;height:auto!important;text-align:center;}
  .home .media-slider-simple__thumbnail-container img{position:static!important;width:auto!important;max-width:100%!important;height:400px!important;margin:0 auto!important;object-fit:contain!important;}
}

/* ============================================================
   OXOMI Cases-Listing (/oxomi/cases/, page-id-1257) modernisiert
   an das OneQrew/scireum-Theme: responsive Kartenraster statt fixer
   189px-Spalten, echte Karten mit Radius/Shadow/Hover, Brand-Links,
   AcidGrotesk-Schrift. Nur OXOMI-Custom-Klassen (-cust) werden
   gestylt, JS/onclick bleibt unberuehrt. Scope auf die Cases-Seite.
   ============================================================ */
[id^="showcase_"]:has(.oxomi-document-card-cust){width:100%!important;max-width:1024px!important;margin-left:auto!important;margin-right:auto!important;display:block!important;}
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-contents,
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-contents-section-js{width:100%!important;max-width:none!important;display:block!important;margin-left:0!important;margin-right:0!important;}
@media(max-width:1064px){[id^="showcase_"]:has(.oxomi-document-card-cust){padding-left:20px!important;padding-right:20px!important;}}
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-contents-section{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;
  gap:28px!important;
  width:100%!important;
}
/* Zelle -> Karte */
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-document-preview-cell{
  background:#fff;
  border:1px solid var(--primary-color-200,#D7D7D7);
  border-radius:12px;
  overflow:hidden;
  padding:0!important;
  margin:0!important;
  align-items:stretch!important;
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-document-preview-cell:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 28px rgba(25,0,35,.12);
  border-color:var(--primary-color-500,#4B79A5);
}
/* Thumbnail-Flaeche */
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-documents-thumbnail-js{
  height:auto!important;
  width:100%;
  display:block;
}
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-document-card-cust{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:var(--primary-color-100,#F7F7F7)!important;
  height:250px!important;
  width:100%!important;
  padding:20px 20px 8px!important;
  justify-content:center!important;
}
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-content-preview-image{
  width:auto!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain;
  border-radius:4px;
  box-shadow:0 6px 16px rgba(25,0,35,.15);
}
/* Titel */
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-document-name-cust{
  height:auto!important;
  min-height:2.8em;
  font-family:var(--font-medium),sans-serif!important;
  font-size:16px!important;
  line-height:1.35!important;
  color:var(--text-dark,#190023)!important;
  padding:16px 18px 0!important;
  margin:0!important;
}
/* Aktions-Links Anschauen / Herunterladen */
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-documents-view-button-cust,
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-documents-download-button-cust{
  padding:0 18px!important;
  margin-top:10px!important;
  width:100%!important;
}
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-documents-download-button-cust{padding-bottom:20px!important;}
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-document-preview-cell .sci-muted-link{
  color:var(--primary-color-500,#4B79A5)!important;
  font-family:var(--font-medium),sans-serif!important;
  font-size:15px!important;
}
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-document-preview-cell .sci-muted-link:hover{text-decoration:underline!important;}
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-document-preview-cell .sci-icon-catalog-text-soft,
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-document-preview-cell .sci-icon-download-text-soft{filter:none;}
/* Kategorie-Ueberschrift (z.B. "scireum") */
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-contents-section-heading{
  border-bottom:1px solid var(--primary-color-200,#D7D7D7);
  margin-bottom:24px!important;
  padding-bottom:10px!important;
}
[id^="showcase_"]:has(.oxomi-document-card-cust) .oxomi-contents-section-heading .sci-text-larger{
  font-family:var(--font-medium),sans-serif!important;
  color:var(--text-dark,#190023)!important;
  font-size:22px!important;
}

/* Case-Study Mainmetall: Logo soll keinen border-radius haben — der generische
   Content-Bild-Radius (24px) rundet sonst auch das Logo. Attachment-Klasse ist
   siteweit eindeutig, daher gezielt. */
img.wp-image-91885{border-radius:0!important;}

/* Case-Study Borrmann (postid-37017): die zwei Bilder nebeneinander sassen full-bleed
   in .content (1265px) und wurden von is-cropped auf Gleichhoehe beschnitten (object-fit
   cover). Auf echte Groesse/Proportion reduzieren: Galerie auf Content-Breite (1024)
   zentrieren, Beschnitt aufheben (natuerliches Seitenverhaeltnis, kein Upscaling). */
.postid-37017 .wp-block-gallery.is-cropped{max-width:1024px!important;margin-left:auto!important;margin-right:auto!important;align-items:flex-start!important;}
.postid-37017 .wp-block-gallery.is-cropped figure.wp-block-image{align-self:flex-start!important;}
.postid-37017 .wp-block-gallery.is-cropped figure.wp-block-image img{height:auto!important;object-fit:contain!important;width:100%!important;max-width:100%!important;}

/* simple-stage: Fliesstext-Wrapper traegt kein .wysywyg, daher fehlten in
   Prosa-Aufzaehlungen die Punkte. Nur klassenlose Listen im Textbereich
   (nicht Breadcrumbs/UI); Schriftgroesse erbt vom Container (kein Override). */
.simple-stage .text-left ul:not([class]){ list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.simple-stage .text-left ol:not([class]){ list-style: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.simple-stage .text-left li:not([class]){ margin-bottom: 0.25em; }

/* fifty-fifty-stage: Content-Wrapper (.fifty-fifty-stage__content) traegt kein
   .wysywyg -> Prosa-Aufzaehlungen ohne Punkte. Wie simple-stage nachgezogen:
   nur klassenlose Listen, Groesse/Font erben (globale li-Regel matcht Absatz). */
.fifty-fifty-stage__content ul:not([class]){ list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.fifty-fifty-stage__content ol:not([class]){ list-style: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.fifty-fifty-stage__content li:not([class]){ margin-bottom: 0.25em; }
