/*
Theme Name: Astra SG1920
Theme URI: https://sg1920-stammheim.de/
Description: Child theme for SG1920 Stammheim based on Astra.
Author: SG1920 / Codex
Template: astra
Version: 1.0.0
Text Domain: astra-sg1920
*/

:root {
    --ast-global-color-0: #1f3b6d;
    --ast-global-color-1: #15305a;
    --ast-global-color-2: #0f1f38;
    --ast-global-color-3: #24395f;
    --ast-global-color-4: #ffffff;
    --ast-global-color-5: #f4f7fb;
    --ast-global-color-6: #e8eef8;
    --ast-global-color-7: #d7e1f0;

    --sg-primary: #1f3b6d;
    --sg-secondary: #0f2549;
    --sg-light: #f2f5fa;
    --sg-border: #d9e1ef;
    --sg-text: #1d2d4b;
    --sg-muted: #5e6f90;
}

body,
button,
input,
select,
textarea {
    font-family: "Source Sans 3", sans-serif;
    color: var(--sg-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-content :where(h1, h2, h3, h4, h5, h6),
.site-title,
.site-title a,
.entry-title,
.entry-title a {
    font-family: "Montserrat", sans-serif;
    letter-spacing: -0.01em;
}

body {
    background: #edf2f8;
}

.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
    background: #ffffff !important;
}

.ast-primary-header-bar {
    border-bottom: 1px solid #e7edf7 !important;
}

.ast-site-identity .site-title a,
.ast-desktop .main-header-menu > .menu-item > .menu-link {
    color: var(--sg-text);
}

.ast-desktop .main-header-menu > .menu-item > .menu-link {
    font-weight: 600;
}

.ast-desktop .main-header-menu > .menu-item.current-menu-item > .menu-link,
.ast-desktop .main-header-menu > .menu-item.current-menu-ancestor > .menu-link,
.ast-desktop .main-header-menu > .menu-item > .menu-link:hover {
    color: var(--sg-primary);
}

.main-header-menu .sg-menu-cta > a,
.ast-builder-menu-mobile .sg-menu-cta > a {
    background: var(--sg-primary);
    color: #fff !important;
    border-radius: 999px;
    padding: 0.58rem 1.02rem !important;
    font-weight: 700;
}

.main-header-menu .sg-menu-cta > a:hover,
.ast-builder-menu-mobile .sg-menu-cta > a:hover {
    background: var(--sg-secondary);
}

.home .site-content article#post-92,
.home .site-content article#post-92 .entry-content {
    margin: 0;
    padding: 0;
    max-width: none;
}

.sg-home-hero {
    background: linear-gradient(135deg, var(--sg-primary) 0%, #0b1a39 100%);
    color: #fff;
}

.sg-home-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(2.4rem, 4.8vw, 4.4rem) 1.25rem;
}

.sg-home-hero .sg-eyebrow {
    font-size: 0.86rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.6rem;
}

.sg-home-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

.sg-home-hero .sg-hero-text {
    color: rgba(255, 255, 255, 0.92);
    max-width: 42rem;
    margin-bottom: 1.25rem;
}

.sg-home-hero .wp-block-button__link,
.sg-home-cta .wp-block-button__link {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.72rem 1.3rem;
}

.sg-home-section,
.sg-home-news {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(1.7rem, 3.8vw, 2.8rem) 1.25rem;
}

.sg-home-section h2,
.sg-home-news h2,
.sg-home-cta h2 {
    margin-bottom: 0.45rem;
}

.sg-home-card {
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    padding: 1.2rem;
    height: 100%;
    box-shadow: 0 10px 22px rgba(14, 35, 72, 0.06);
}

.sg-home-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.26rem;
    line-height: 1.28;
}

.sg-home-card p {
    margin-bottom: 0.62rem;
}

.sg-home-card__link {
    margin: 0;
    font-weight: 700;
}

.sg-home-card__link a {
    text-decoration: none;
}

.sg-home-card__link a:hover {
    text-decoration: underline;
}

.sg-home-news__head {
    margin-bottom: 0.65rem;
}

.sg-home-news-grid .o-posts-grid-post-blog {
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(14, 35, 72, 0.06);
}

.sg-home-news-grid .o-posts-grid-post-image {
    line-height: 0;
}

.sg-home-news-grid .o-posts-grid-post-image img {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}

.sg-home-news-grid .o-posts-grid-post-body {
    padding: 1rem;
    gap: 0.35rem;
}

.sg-home-news-grid .o-posts-grid-post-category,
.sg-home-news-grid .o-posts-grid-post-meta,
.sg-home-news-grid .o-posts-grid-post-description {
    display: none;
}

.sg-home-news-grid .o-posts-grid-post-title a {
    color: var(--sg-text);
    font-size: 1.12rem;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none;
}

.sg-home-news-grid .o-posts-grid-post-title a:hover {
    text-decoration: underline;
}

.sg-home-cta {
    background: var(--sg-light);
}

.sg-home-cta__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(1.7rem, 3.8vw, 2.8rem) 1.25rem;
}

body.blog #primary,
body.archive #primary {
    margin: 0;
}

body.blog .site-main,
body.archive .site-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

body.blog .site-main > .ast-row,
body.archive .site-main > .ast-row {
    grid-column: 1 / -1;
}

body.blog.ast-separate-container .ast-article-post,
body.archive.ast-separate-container .ast-article-post,
body.blog.ast-separate-container .ast-article-inner,
body.archive.ast-separate-container .ast-article-inner {
    padding: 0 !important;
}

body.blog article.post,
body.archive article.post {
    margin: 0 !important;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 22px rgba(14, 35, 72, 0.06);
    display: flex;
    flex-direction: column;
}

body.blog article.post .entry-header,
body.archive article.post .entry-header {
    order: 2;
    padding: 1rem 1rem 1.1rem;
    margin: 0;
}

body.blog article.post .entry-content,
body.archive article.post .entry-content,
body.blog article.post .entry-meta,
body.archive article.post .entry-meta,
body.blog article.post .cat-links,
body.archive article.post .cat-links,
body.blog article.post .posted-on,
body.archive article.post .posted-on,
body.blog article.post .byline,
body.archive article.post .byline {
    display: none !important;
}

body.blog article.post .entry-title,
body.archive article.post .entry-title {
    margin: 0;
}

body.blog article.post .entry-title a,
body.archive article.post .entry-title a {
    color: var(--sg-text);
    font-size: 1.18rem;
    line-height: 1.35;
    text-decoration: none;
}

body.blog article.post .entry-title a:hover,
body.archive article.post .entry-title a:hover {
    text-decoration: underline;
}

body.blog article.post .post-thumb,
body.archive article.post .post-thumb,
body.blog article.post .post-thumb-img-content,
body.archive article.post .post-thumb-img-content,
body.blog article.post .ast-blog-featured-section,
body.archive article.post .ast-blog-featured-section {
    order: 1;
    margin: 0 !important;
}

body.blog article.post .post-thumb img,
body.archive article.post .post-thumb img,
body.blog article.post .post-thumb-img-content img,
body.archive article.post .post-thumb-img-content img,
body.blog article.post .ast-blog-featured-section img,
body.archive article.post .ast-blog-featured-section img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

body.blog article.post .ast-blog-featured-section:empty,
body.archive article.post .ast-blog-featured-section:empty {
    display: block;
    order: 1;
    aspect-ratio: 4 / 3;
    background: #e9edf5;
}

body.blog .ast-pagination,
body.archive .ast-pagination {
    grid-column: 1 / -1;
}

.site-below-footer-wrap[data-section="section-below-footer-builder"] {
    background: var(--sg-secondary) !important;
    border-top: 0 !important;
}

.ast-footer-copyright,
.ast-footer-copyright a {
    color: #dbe5fb !important;
}

@media (max-width: 1024px) {
    body.blog .site-main,
    body.archive .site-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 921px) {
    .sg-home-hero__inner,
    .sg-home-section,
    .sg-home-news,
    .sg-home-cta__inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .main-header-menu .sg-menu-cta > a,
    .ast-builder-menu-mobile .sg-menu-cta > a {
        border-radius: 10px;
        padding: 0.45rem 0.78rem !important;
    }
}

@media (max-width: 640px) {
    body.blog .site-main,
    body.archive .site-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body.blog article.post .post-thumb img,
    body.archive article.post .post-thumb img,
    body.blog article.post .post-thumb-img-content img,
    body.archive article.post .post-thumb-img-content img,
    body.blog article.post .ast-blog-featured-section img,
    body.archive article.post .ast-blog-featured-section img,
    body.blog article.post .ast-blog-featured-section:empty,
    body.archive article.post .ast-blog-featured-section:empty {
        aspect-ratio: 16 / 10;
    }
}
