/*
Theme Name: OSH Blog Child
Description: Schlankes Hello-Elementor-Child-Theme für Blog und Kategorien der Osteopathie-Schule Hamburg.
Author: OSH Website Team
Template: hello-elementor
Version: 0.7.0
Text Domain: osh-blog
*/
:root{--osh-navy:#122D64;--osh-accent:#BED18F;--osh-soft:#F2F6FF;--osh-ink:#253451;--osh-muted:#5A6781}
.osh-blog-shell{width:min(1200px,calc(100% - 40px));margin:0 auto;padding:clamp(42px,6vw,80px) 0 84px;color:var(--osh-ink)}
.osh-blog-shell a{color:var(--osh-navy)}
.osh-blog-heading{margin:0 0 26px;color:var(--osh-navy);font-size:clamp(30px,4vw,49px);line-height:1.12;font-weight:700}
.osh-blog-lead{max-width:800px;color:var(--osh-muted);line-height:1.75;margin:0 0 24px}
.osh-blog-cats{display:flex;gap:9px;flex-wrap:wrap;list-style:none;padding:0;margin:0 0 35px}
.osh-blog-cats a{display:block;text-decoration:none;border:1px solid #DAE2EF;border-radius:30px;padding:9px 15px;font-size:14px;transition:background .2s,color .2s}
.osh-blog-cats a:hover,.osh-blog-cats a:focus-visible,.osh-blog-cats a[aria-current="page"]{background:var(--osh-navy);color:#fff;border-color:var(--osh-navy)}
.osh-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.osh-post-card{border:1px solid #E6EAF1;background:#fff;border-radius:9px;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 5px 16px rgba(18,45,100,.045)}
.osh-post-card__image{display:block;aspect-ratio:16/10;background:var(--osh-soft);overflow:hidden}
.osh-post-card__image img{height:100%;width:100%;object-fit:cover;display:block;transition:transform .25s}
.osh-post-card__image:hover img{transform:scale(1.035)}
.osh-post-card__body{padding:25px;display:flex;flex-direction:column;flex:1}
.osh-post-card__date{color:var(--osh-muted);font-size:13px;margin-bottom:11px}
.osh-post-card h2{font-size:22px;line-height:1.28;margin:0 0 13px;color:var(--osh-navy)}
.osh-post-card h2 a{text-decoration:none;color:inherit}
.osh-post-card h2 a:hover{text-decoration:underline;text-decoration-color:var(--osh-accent);text-underline-offset:4px}
.osh-post-card__excerpt{line-height:1.65;color:var(--osh-muted);font-size:15px;flex:1}
.osh-post-card__more{margin-top:17px;display:inline-block;font-weight:600;text-decoration:none}
.osh-post-card__more:hover{text-decoration:underline}
.osh-blog-pages{margin-top:46px;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.osh-blog-pages .page-numbers{padding:9px 14px;border:1px solid #DDE4EF;border-radius:5px;text-decoration:none}
.osh-blog-pages .current,.osh-blog-pages a:hover{background:var(--osh-navy);color:#fff;border-color:var(--osh-navy)}
.osh-single-shell{width:min(1160px,calc(100% - 40px));margin:0 auto;padding:50px 0 90px;display:grid;grid-template-columns:minmax(0,760px) minmax(0,285px);gap:clamp(28px,5vw,75px)}
.osh-single-main,.osh-single-side{min-width:0}
.osh-single-main h1{color:var(--osh-navy);font-size:clamp(32px,3.6vw,48px);line-height:1.16;margin:6px 0 14px}
.osh-single-meta{color:var(--osh-muted);font-size:14px;margin-bottom:25px}
.osh-single-cover{width:100%;height:auto;display:block;border-radius:7px;margin:0 0 30px}
.osh-single-content{line-height:1.78;overflow-wrap:anywhere}
.osh-single-content p{margin:0 0 1.25em}
.osh-single-content h2,.osh-single-content h3,.osh-single-content h4{color:var(--osh-navy);line-height:1.3;margin-top:1.45em}
.osh-single-content img{max-width:100%;height:auto}
.osh-single-content figure{max-width:100%}
.osh-single-content table{display:block;max-width:100%;overflow-x:auto}
.osh-single-content a{text-decoration:underline;text-underline-offset:3px}
.osh-single-side{align-self:start;background:var(--osh-soft);padding:26px;border-radius:8px}
.osh-side-title{color:var(--osh-navy);font-size:20px;margin:0 0 15px}
.osh-single-side .search-form{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:30px}
.osh-single-side .search-field{width:100%;min-width:0;background:#fff;border:1px solid #D5DDEA;padding:12px;border-radius:4px}
.osh-single-side .search-submit{border:0;border-radius:4px;background:var(--osh-navy);color:#fff;padding:10px 18px;cursor:pointer}
.osh-side-list{list-style:none;margin:0 0 25px;padding:0}
.osh-side-list li{border-bottom:1px solid #D6E0EE;padding:10px 0;line-height:1.45}
.osh-side-list a{text-decoration:none}
.osh-side-list a:hover{text-decoration:underline}
.osh-post-tags{margin-top:30px;line-height:1.7}
.osh-post-nav{margin-top:44px;padding-top:24px;border-top:1px solid #DDE4EF;display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
.osh-post-nav a{font-weight:600}
.osh-blog-empty{background:var(--osh-soft);padding:25px;border-radius:6px}
@media(max-width:1000px){.osh-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.osh-single-shell{grid-template-columns:minmax(0,1fr) 245px;gap:25px}}
@media(max-width:750px){.osh-post-grid{grid-template-columns:minmax(0,1fr)}.osh-single-shell{display:block}.osh-single-side{margin-top:40px}.osh-blog-shell,.osh-single-shell{width:min(100% - 30px,740px)}.osh-blog-shell{padding-top:32px}.osh-single-shell{padding-top:30px}.osh-post-card__image{aspect-ratio:16/9}}

/* v0.2: Short category chips in one row on wide layouts. */
@media (min-width: 1180px) {
  .osh-blog-cats { flex-wrap: nowrap; gap: 7px; }
  .osh-blog-cats li { flex: 0 0 auto; }
  .osh-blog-cats a { white-space: nowrap; padding: 8px 11px; font-size: 13px; }
}
/* Category description is retained for readers and SEO, placed below the articles. */
.osh-blog-description { margin: 64px 0 0; padding: 32px 0 0; border-top: 1px solid #dae2ef; }
.osh-blog-description h2 { color: var(--osh-navy); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.25; margin: 0 0 16px; }
.osh-blog-description .osh-blog-lead { max-width: 850px; margin: 0; }
.osh-blog-description .osh-blog-lead p { margin: 0 0 1em; }
/* More recent posts with small thumbnails; no heading above the search box. */
.osh-single-side .osh-side-search .search-form { margin-bottom: 30px; }
.osh-single-side .osh-side-recent { margin-bottom: 0; }
.osh-single-side .osh-side-recent li { padding: 11px 0; }
.osh-single-side .osh-side-recent a.osh-recent-item { display: flex; align-items: flex-start; gap: 11px; text-decoration: none; }
.osh-single-side .osh-side-recent a.osh-recent-item:hover span { text-decoration: underline; }
.osh-recent-thumb { flex: 0 0 64px; width: 64px; height: 64px !important; max-width: 64px; object-fit: cover; border-radius: 4px; display: block; }
.osh-side-recent .osh-recent-item span { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; }

/* v0.3: Category pills centered around the page center, even if the row is wider
   than the article grid. At smaller widths it wraps in the normal container. */
.osh-blog-cats { justify-content: center; }
@media (min-width: 1180px) {
  .osh-blog-cats {
    width: max-content;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }
}
/* Keep the bottom description full-width within the article grid. */
.osh-blog-description .osh-blog-lead {
  width: 100%;
  max-width: none;
}

/* v0.4: Center category archive heading, independent of card grid. */
.osh-blog-heading { text-align:center; }
