/*
Theme Name: Astra Child – saastest.de
Theme URI: https://saastest.de
Description: Child Theme für saastest.de
Author: Andreas von saastest.de
Template: astra
Version: 1.1.0
Text Domain: astra-child-saastest
*/

:root {
    --green-dark: #0F6E56;
    --green-mid: #1D9E75;
    --green-light: #9FE1CB;
    --green-pale: #E8F5F0;
    --text-dark: #1a1a1a;
    --text-muted: #6B7280;
    --text-subtle: #9CA3AF;
    --border: #E5E7EB;
    --bg-light: #F9FAFB;
}

/* ===== STARTSEITE LAYOUT FIX ===== */
body.home .entry-title,
body.home .entry-content { padding: 0 !important; margin: 0 !important; }
body.home .entry-title { display: none !important; }

/* Astra zwingt flex auf .ast-container – überschreiben */
body.home #content > .ast-container,
body.home .site-content > .ast-container { display: block !important; }
body.home #primary { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
body.home .site-main { width: 100% !important; display: block !important; }
body.home .ast-container { max-width: 100% !important; padding: 0 !important; }

/* Sektionen immer untereinander */
.st-hero,
.st-trust,
.st-cats,
.st-posts,
.st-about {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    float: none !important;
    clear: both !important;
}

/* ===== HERO ===== */
.st-hero { background: var(--green-dark); padding: 80px 24px; text-align: center; }
.st-hero__inner { max-width: 720px; margin: 0 auto; }
.st-hero__badge { display: block; color: var(--green-light); font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; }
.st-hero__title { color: #fff; font-size: 44px; font-weight: 700; line-height: 1.15; margin: 0 0 20px; }
.st-hero__subtitle { color: var(--green-light); font-size: 18px; line-height: 1.7; margin: 0 0 36px; }
.st-hero__btn { display: inline-block; background: #fff; color: var(--green-dark) !important; font-size: 16px; font-weight: 700; padding: 14px 36px; border-radius: 6px; text-decoration: none !important; }
.st-hero__btn:hover { opacity: .9; }

/* ===== TRUST BAR ===== */
.st-trust { background: var(--green-pale); padding: 28px 24px; }
.st-trust__inner { max-width: 700px; margin: 0 auto; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.st-trust__item { text-align: center; }
.st-trust__num { font-size: 26px; font-weight: 700; color: var(--green-dark); line-height: 1; }
.st-trust__label { font-size: 13px; color: #4B7A6A; margin-top: 4px; }

/* ===== KATEGORIEN ===== */
.st-cats { background: #fff; padding: 64px 24px; }
.st-cats__inner { max-width: 860px; margin: 0 auto; }
.st-section-title { text-align: center; font-size: 30px; font-weight: 700; color: var(--text-dark); margin: 0 0 8px; }
.st-section-sub { text-align: center; color: var(--text-muted); font-size: 16px; margin: 0 0 40px; }
.st-cats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-cat-card { display: flex; align-items: center; gap: 16px; background: var(--bg-light); border: 1.5px solid var(--border); border-radius: 12px; padding: 20px 22px; text-decoration: none !important; transition: border-color .15s, background .15s; }
.st-cat-card:hover { border-color: var(--green-mid); background: #F0FBF6; }
.st-cat-card__icon { width: 44px; height: 44px; min-width: 44px; background: var(--green-dark); border-radius: 10px; color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.st-cat-card__name { font-weight: 700; color: var(--text-dark); font-size: 15px; margin-bottom: 3px; }
.st-cat-card__tools { font-size: 12px; color: var(--text-subtle); }

/* ===== NEUESTE ARTIKEL ===== */
.st-posts { background: var(--bg-light); padding: 64px 24px; }
.st-posts__inner { max-width: 900px; margin: 0 auto; }
.st-posts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.st-post-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none !important; display: block; transition: box-shadow .15s; }
.st-post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.st-post-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.st-post-card__placeholder { width: 100%; aspect-ratio: 16/9; background: var(--green-pale); display: block; }
.st-post-card__body { padding: 16px 18px 20px; }
.st-post-card__cat { display: inline-block; font-size: 11px; font-weight: 600; color: var(--green-dark); background: var(--green-pale); padding: 2px 8px; border-radius: 10px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.st-post-card__title { font-size: 15px; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin-bottom: 8px; }
.st-post-card__excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.st-posts__empty { background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 48px 24px; text-align: center; color: var(--text-subtle); font-size: 15px; margin-top: 40px; }

/* ===== ÜBER MICH TEASER ===== */
.st-about { background: var(--green-dark); padding: 64px 24px; text-align: center; }
.st-about__inner { max-width: 600px; margin: 0 auto; }
.st-about__title { color: #fff; font-size: 28px; font-weight: 700; margin: 0 0 16px; }
.st-about__text { color: var(--green-light); font-size: 16px; line-height: 1.8; margin: 0 0 28px; }
.st-about__btn { display: inline-block; border: 2px solid #fff; color: #fff !important; font-size: 15px; font-weight: 600; padding: 12px 28px; border-radius: 6px; text-decoration: none !important; }
.st-about__btn:hover { background: rgba(255,255,255,.1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .st-hero__title { font-size: 30px; }
    .st-cats__grid { grid-template-columns: 1fr; }
    .st-trust__inner { gap: 24px; }
}
