/* ==========================================================================
   SafeGrow Ghost Theme – screen.css
   Design: Hell (cremeweiß) mit dunklem Header/Footer
   Direkt von safegrow.eu extrahierte CSS-Variablen
   Version: 2.0.0
   ========================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
    /* Helles Layout – direkt aus safegrow.eu */
    --sg-bg:            #f7f6f0;   /* oklch(98% .005 100) – cremeweiß */
    --sg-bg-card:       #ffffff;
    --sg-bg-muted:      #f2f4f0;   /* oklch(95% .01 120) */
    --sg-bg-secondary:  #eef2ec;   /* oklch(94% .02 140) */
    --sg-bg-section:    #f0f4ee;   /* oklch(97% .008 140) */
    --sg-border:        #d4ddd0;   /* oklch(88% .02 140) */

    /* Dunkler Header & Footer */
    --sg-header-bg:     #0d1a12;
    --sg-header-text:   #f0f7f2;
    --sg-header-muted:  #8aad96;
    --sg-header-border: rgba(255,255,255,0.08);

    /* Primärfarben */
    --sg-primary:       #2d6b3e;   /* oklch(38% .14 145) */
    --sg-primary-hover: #246132;
    --sg-accent:        #c9a84c;   /* oklch(68% .15 75) – Gold */
    --sg-green-bright:  #4ade80;
    --sg-green-mid:     #22c55e;

    /* Text */
    --sg-text:          #1a2e20;   /* oklch(18% .02 160) */
    --sg-text-muted:    #4a6b54;
    --sg-text-subtle:   #7a9a82;

    /* Typografie */
    --sg-font-heading:  'Syne', sans-serif;
    --sg-font-body:     'DM Sans', sans-serif;

    /* Shapes */
    --sg-radius:        0.875rem;
    --sg-radius-sm:     0.5rem;
    --sg-radius-lg:     1.5rem;
    --sg-shadow:        0 2px 16px rgba(0,0,0,0.08);
    --sg-shadow-md:     0 4px 24px rgba(0,0,0,0.12);
    --sg-transition:    all 0.2s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--sg-bg);
    color: var(--sg-text);
    font-family: var(--sg-font-body);
    line-height: 1.7;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--sg-primary);
    text-decoration: none;
    transition: var(--sg-transition);
}

a:hover {
    color: var(--sg-primary-hover);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sg-font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--sg-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

/* ===== LAYOUT ===== */
.sg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sg-container--narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== READING PROGRESS ===== */
.sg-reading-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    pointer-events: none;
}

.sg-reading-progress {
    height: 3px;
    background: var(--sg-primary);
    width: 0;
    transition: width 0.1s linear;
}

/* ===== HEADER – DUNKEL ===== */
.sg-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 26, 18, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 2rem;
}

.sg-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.sg-header__logo-text {
    font-family: var(--sg-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0f7f2;
    letter-spacing: -0.02em;
}

.sg-header__logo-text span {
    color: #4ade80;
}

.sg-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    flex: 1;
}

.sg-nav li {
    list-style: none;
}

.sg-nav a {
    color: #8aad96;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--sg-radius-sm);
    transition: var(--sg-transition);
    text-decoration: none;
    display: block;
}

.sg-nav a:hover,
.sg-nav a.active {
    color: #f0f7f2;
    background: rgba(255, 255, 255, 0.06);
}

.sg-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ===== MOBILE NAV ===== */
.sg-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.sg-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #8aad96;
    border-radius: 2px;
    transition: var(--sg-transition);
}

.sg-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 26, 18, 0.98);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

.sg-mobile-nav.is-open {
    display: flex;
}

.sg-mobile-nav a {
    color: #f0f7f2;
    font-family: var(--sg-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.sg-mobile-nav a:hover {
    color: #4ade80;
}

.sg-mobile-nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #8aad96;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.sg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--sg-radius-sm);
    font-family: var(--sg-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--sg-transition);
    border: 1.5px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.sg-btn--primary {
    background: var(--sg-primary);
    color: #fff;
    border-color: var(--sg-primary);
}

.sg-btn--primary:hover {
    background: var(--sg-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 107, 62, 0.25);
}

.sg-btn--outline {
    background: transparent;
    color: var(--sg-primary);
    border-color: var(--sg-primary);
}

.sg-btn--outline:hover {
    background: rgba(45, 107, 62, 0.06);
    color: var(--sg-primary);
}

.sg-btn--ghost {
    background: transparent;
    color: var(--sg-text-muted);
    border-color: var(--sg-border);
}

.sg-btn--ghost:hover {
    background: var(--sg-bg-secondary);
    color: var(--sg-text);
}

.sg-btn--ghost-dark {
    background: transparent;
    color: #8aad96;
    border-color: rgba(255, 255, 255, 0.15);
}

.sg-btn--ghost-dark:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f0f7f2;
}

/* ===== SECTION LABEL ===== */
.sg-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sg-primary);
    margin-bottom: 0.75rem;
    display: block;
}

/* ===== HERO ===== */
.sg-hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: var(--sg-bg);
}

.sg-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(45, 107, 62, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.sg-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(45, 107, 62, 0.08);
    border: 1px solid rgba(45, 107, 62, 0.2);
    color: var(--sg-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sg-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.sg-hero__title .highlight {
    color: var(--sg-primary);
}

.sg-hero__description {
    font-size: 1.1rem;
    color: var(--sg-text-muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.sg-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== DIVIDER ===== */
.sg-divider {
    border: none;
    border-top: 1px solid var(--sg-border);
    margin: 0;
}

/* ===== POST FEED ===== */
.sg-post-feed {
    padding: 3.5rem 0 5rem;
}

.sg-post-feed--alt {
    background: var(--sg-bg-section);
}

.sg-post-feed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.sg-post-feed__title {
    font-size: 1.35rem;
    font-weight: 700;
}

/* ===== POST GRID ===== */
.sg-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sg-post-grid--featured {
    grid-template-columns: 2fr 1fr;
}

/* ===== FEATURED SECTION ===== */
.sg-featured {
    padding: 2.5rem 0 0;
}

.sg-featured__label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sg-featured__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sg-border);
}

/* ===== CARDS ===== */
.sg-card {
    background: var(--sg-bg-card);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    overflow: hidden;
    transition: var(--sg-transition);
    display: flex;
    flex-direction: column;
}

.sg-card:hover {
    border-color: rgba(45, 107, 62, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--sg-shadow-md);
}

.sg-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sg-bg-secondary);
    position: relative;
}

.sg-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sg-card:hover .sg-card__image img {
    transform: scale(1.04);
}

.sg-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    aspect-ratio: 16 / 9;
    background: var(--sg-bg-secondary);
    color: var(--sg-text-subtle);
}

.sg-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sg-card__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.sg-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sg-primary);
    background: rgba(45, 107, 62, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    border: 1px solid rgba(45, 107, 62, 0.15);
    text-decoration: none;
}

.sg-tag:hover {
    background: rgba(45, 107, 62, 0.14);
    color: var(--sg-primary);
}

.sg-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--sg-text);
    line-height: 1.35;
}

.sg-card__title a {
    color: inherit;
    text-decoration: none;
}

.sg-card__title a:hover {
    color: var(--sg-primary);
}

.sg-card__excerpt {
    color: var(--sg-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sg-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--sg-text-subtle);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--sg-border);
}

.sg-card__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sg-card__author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--sg-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--sg-primary);
    border: 1.5px solid rgba(45, 107, 62, 0.2);
    font-weight: 700;
    flex-shrink: 0;
}

.sg-card__date {
    margin-left: auto;
}

/* ===== FEATURED CARD ===== */
.sg-card--featured .sg-card__image {
    aspect-ratio: 4 / 3;
}

.sg-card--featured .sg-card__title {
    font-size: 1.3rem;
}

/* ===== NEWSLETTER CTA ===== */
.sg-newsletter {
    background: linear-gradient(135deg, var(--sg-bg-secondary) 0%, rgba(45, 107, 62, 0.06) 100%);
    border: 1px solid rgba(45, 107, 62, 0.15);
    border-radius: var(--sg-radius-lg);
    padding: 3rem;
    text-align: center;
    margin: 2rem 0 4rem;
}

.sg-newsletter__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.sg-newsletter__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.sg-newsletter__description {
    color: var(--sg-text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.sg-newsletter__form {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto;
}

.sg-newsletter__input {
    flex: 1;
    background: var(--sg-bg-card);
    border: 1.5px solid var(--sg-border);
    border-radius: var(--sg-radius-sm);
    padding: 0.625rem 1rem;
    color: var(--sg-text);
    font-family: var(--sg-font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--sg-transition);
}

.sg-newsletter__input:focus {
    border-color: rgba(45, 107, 62, 0.4);
}

.sg-newsletter__input::placeholder {
    color: var(--sg-text-subtle);
}

/* ===== POST SINGLE ===== */
.sg-post {
    padding: 3rem 0 5rem;
}

.sg-post__header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--sg-border);
}

.sg-post__tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.sg-post__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.sg-post__excerpt {
    font-size: 1.15rem;
    color: var(--sg-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.sg-post__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sg-post__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sg-post__author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--sg-bg-secondary);
    border: 2px solid rgba(45, 107, 62, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sg-post__author-info {
    display: flex;
    flex-direction: column;
}

.sg-post__author-name {
    font-weight: 600;
    color: var(--sg-text);
    font-size: 0.95rem;
}

.sg-post__author-role {
    font-size: 0.8rem;
    color: var(--sg-text-subtle);
}

.sg-post__date-read {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--sg-text-subtle);
    font-size: 0.85rem;
}

.sg-post__feature-image {
    margin-bottom: 3rem;
    border-radius: var(--sg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--sg-border);
}

.sg-post__feature-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.sg-post__feature-image figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--sg-text-subtle);
    text-align: center;
    background: var(--sg-bg-secondary);
}

/* ===== POST CONTENT ===== */
.sg-post__content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--sg-text);
}

.sg-post__content h2 {
    font-size: 1.6rem;
    margin: 3rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sg-border);
}

.sg-post__content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
}

.sg-post__content h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
}

.sg-post__content p {
    margin-bottom: 1.5rem;
}

.sg-post__content ul,
.sg-post__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.sg-post__content li {
    margin-bottom: 0.5rem;
}

.sg-post__content a {
    color: var(--sg-primary);
    text-decoration: underline;
    text-decoration-color: rgba(45, 107, 62, 0.3);
    text-underline-offset: 3px;
}

.sg-post__content a:hover {
    text-decoration-color: var(--sg-primary);
}

.sg-post__content blockquote {
    border-left: 4px solid var(--sg-primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--sg-bg-secondary);
    border-radius: 0 var(--sg-radius) var(--sg-radius) 0;
    font-style: italic;
    color: var(--sg-text-muted);
}

.sg-post__content pre {
    background: var(--sg-header-bg);
    color: #f0f7f2;
    padding: 1.5rem;
    border-radius: var(--sg-radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    position: relative;
}

.sg-post__content code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
}

.sg-post__content p code,
.sg-post__content li code {
    background: var(--sg-bg-secondary);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.88em;
    color: var(--sg-primary);
    border: 1px solid var(--sg-border);
}

.sg-post__content img {
    border-radius: var(--sg-radius);
    border: 1px solid var(--sg-border);
    margin: 1.5rem 0;
}

.sg-post__content hr {
    border: none;
    border-top: 1px solid var(--sg-border);
    margin: 3rem 0;
}

.sg-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.sg-post__content th {
    background: var(--sg-bg-secondary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--sg-border);
}

.sg-post__content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sg-border);
}

.sg-post__content tr:hover td {
    background: var(--sg-bg-muted);
}

/* ===== CALLOUT (Ghost Card) ===== */
.kg-callout-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--sg-radius);
    background: rgba(45, 107, 62, 0.06);
    border: 1px solid rgba(45, 107, 62, 0.18);
    margin: 2rem 0;
}

.kg-callout-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ===== COPY CODE BUTTON ===== */
.sg-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #8aad96;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-family: var(--sg-font-body);
    transition: var(--sg-transition);
}

.sg-copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f0f7f2;
}

/* ===== POST FOOTER ===== */
.sg-post__footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sg-border);
}

.sg-post__share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.sg-post__share-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sg-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sg-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    border-radius: var(--sg-radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--sg-transition);
    border: 1px solid var(--sg-border);
    color: var(--sg-text-muted);
    background: var(--sg-bg-card);
    cursor: pointer;
    font-family: var(--sg-font-body);
}

.sg-share-btn:hover {
    border-color: rgba(45, 107, 62, 0.3);
    color: var(--sg-primary);
    background: rgba(45, 107, 62, 0.05);
}

.sg-share-btn--fediverse {
    border-color: rgba(45, 107, 62, 0.25);
    color: var(--sg-primary);
    background: rgba(45, 107, 62, 0.06);
}

/* ===== AUTHOR BOX ===== */
.sg-author-box {
    background: var(--sg-bg-secondary);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.sg-author-box__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid rgba(45, 107, 62, 0.2);
    background: var(--sg-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    object-fit: cover;
}

.sg-author-box__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sg-primary);
    margin-bottom: 0.25rem;
}

.sg-author-box__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sg-author-box__bio {
    color: var(--sg-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== RELATED POSTS ===== */
.sg-related {
    padding: 3rem 0;
    background: var(--sg-bg-section);
    margin-top: 2rem;
}

.sg-related__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.sg-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ===== TAG PAGE ===== */
.sg-tag-page {
    padding: 3rem 0 5rem;
}

.sg-tag-page__header {
    text-align: center;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--sg-border);
    margin-bottom: 3rem;
}

.sg-tag-page__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.sg-tag-page__description {
    color: var(--sg-text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== PAGINATION ===== */
.sg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 0 1rem;
}

.sg-pagination a,
.sg-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--sg-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--sg-transition);
    border: 1px solid var(--sg-border);
    color: var(--sg-text-muted);
    background: var(--sg-bg-card);
    text-decoration: none;
}

.sg-pagination a:hover {
    border-color: rgba(45, 107, 62, 0.3);
    color: var(--sg-primary);
}

.sg-pagination .active,
.sg-pagination span.active {
    background: var(--sg-primary);
    border-color: var(--sg-primary);
    color: #fff;
}

/* ===== FOOTER – DUNKEL ===== */
.sg-footer {
    background: var(--sg-header-bg);
    color: var(--sg-header-text);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.sg-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.sg-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.sg-footer__logo-text {
    font-family: var(--sg-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f7f2;
}

.sg-footer__claim {
    color: #8aad96;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.sg-footer__badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sg-footer__badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}

.sg-footer__nav-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5a7a66;
    margin-bottom: 1rem;
}

.sg-footer__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sg-footer__nav-list a {
    color: #8aad96;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--sg-transition);
}

.sg-footer__nav-list a:hover {
    color: #4ade80;
}

.sg-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #5a7a66;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sg-footer__bottom a {
    color: #8aad96;
    text-decoration: none;
}

.sg-footer__bottom a:hover {
    color: #4ade80;
}

.sg-footer__fediverse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sg-footer__fediverse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: sg-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes sg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== GHOST CARD WIDTH CLASSES (required) ===== */
.kg-width-wide {
    margin-left: calc(50% - 50vw + 1.5rem);
    margin-right: calc(50% - 50vw + 1.5rem);
    max-width: calc(100vw - 3rem);
    width: calc(100vw - 3rem);
}

.kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.kg-width-wide img,
.kg-width-full img {
    width: 100%;
    border-radius: 0;
}

@media (max-width: 1200px) {
    .kg-width-wide {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        max-width: calc(100% + 3rem);
        width: calc(100% + 3rem);
    }
}

/* ===== GHOST SPECIFIC =====  */
/* Ghost Membership Portal */
.gh-portal-triggerbtn {
    display: none !important;
}

/* Ghost Image Cards */
.kg-image-card img {
    border-radius: var(--sg-radius);
    border: 1px solid var(--sg-border);
}

.kg-image-card figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--sg-text-subtle);
    margin-top: 0.5rem;
}

/* Ghost Gallery */
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 2rem 0;
}

.kg-gallery-row {
    display: flex;
    gap: 0.5rem;
}

.kg-gallery-image img {
    border-radius: var(--sg-radius-sm);
    border: 1px solid var(--sg-border);
}

/* Ghost Video */
.kg-video-card {
    border-radius: var(--sg-radius);
    overflow: hidden;
    border: 1px solid var(--sg-border);
    margin: 2rem 0;
}

/* Ghost Bookmark */
.kg-bookmark-card {
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    overflow: hidden;
    margin: 2rem 0;
    background: var(--sg-bg-card);
    transition: var(--sg-transition);
}

.kg-bookmark-card:hover {
    border-color: rgba(45, 107, 62, 0.3);
    box-shadow: var(--sg-shadow);
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.kg-bookmark-content {
    padding: 1.25rem;
    flex: 1;
}

.kg-bookmark-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--sg-text);
}

.kg-bookmark-description {
    font-size: 0.85rem;
    color: var(--sg-text-muted);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--sg-text-subtle);
}

.kg-bookmark-thumbnail {
    width: 160px;
    flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sg-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sg-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sg-footer__top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sg-nav {
        display: none;
    }

    .sg-menu-toggle {
        display: flex;
    }

    .sg-header__actions .sg-btn--ghost-dark {
        display: none;
    }

    .sg-hero {
        padding: 3rem 0 2.5rem;
    }

    .sg-post-grid {
        grid-template-columns: 1fr;
    }

    .sg-post-grid--featured {
        grid-template-columns: 1fr;
    }

    .sg-related__grid {
        grid-template-columns: 1fr;
    }

    .sg-footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sg-newsletter {
        padding: 2rem 1.5rem;
    }

    .sg-newsletter__form {
        flex-direction: column;
    }

    .sg-author-box {
        flex-direction: column;
    }

    .sg-post__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .sg-kg-bookmark-thumbnail {
        display: none;
    }
}

@media (max-width: 480px) {
    .sg-container,
    .sg-container--narrow {
        padding: 0 1rem;
    }

    .sg-hero__title {
        font-size: 2rem;
    }

    .sg-post__title {
        font-size: 1.75rem;
    }

    .sg-pagination {
        gap: 0.25rem;
    }
}

/* SafeGrow.eu Back Link */
.sg-nav__back {
    opacity: 0.6;
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.sg-nav__back:hover {
    opacity: 1;
}

/* === Logo-Größe fixieren (globale img-Regel setzt sonst height:auto) === */
.sg-header__logo img { height: 36px !important; width: auto !important; max-height: 36px; }
.sg-footer__logo img { height: 32px !important; width: auto !important; max-height: 32px; }

/* === Landingpage (home.hbs + Page "start") === */
.sg-home{padding:0 0 2rem}
.sgh-section{padding:4rem 0;border-bottom:1px solid var(--sg-border)}
.sgh-hero{padding:5rem 0 4rem}
.sgh-kicker{display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--sg-primary);background:var(--sg-bg-secondary);border:1px solid var(--sg-border);padding:.35rem .8rem;border-radius:999px;margin-bottom:1.25rem}
.sgh-hero h1{font-family:var(--sg-font-heading);font-size:clamp(2.2rem,5vw,3.8rem);line-height:1.08;font-weight:800;color:var(--sg-text);margin:0 0 1.25rem}
.sgh-hero h1 span{color:var(--sg-primary)}
.sgh-lead{font-size:1.2rem;line-height:1.6;color:var(--sg-text-muted);max-width:680px;margin:0 0 2rem}
.sgh-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.sgh-h2{font-family:var(--sg-font-heading);font-size:clamp(1.6rem,3vw,2.3rem);font-weight:800;color:var(--sg-text);margin:0 0 .75rem}
.sgh-sub{color:var(--sg-text-muted);font-size:1.05rem;max-width:640px;margin:0 0 2rem}
.sgh-problem{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.sgh-problem div{background:var(--sg-header-bg);border-radius:var(--sg-radius);padding:1.5rem}
.sgh-problem strong{display:block;font-family:var(--sg-font-heading);font-size:1.25rem;margin-bottom:.35rem;color:#fff}
.sgh-problem span{color:var(--sg-header-muted);font-size:.95rem}
.sgh-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem}
.sgh-card{position:relative;background:var(--sg-bg-card);border:1px solid var(--sg-border);border-radius:var(--sg-radius);padding:1.6rem;box-shadow:var(--sg-shadow);display:flex;flex-direction:column}
.sgh-card h3{font-family:var(--sg-font-heading);font-size:1.15rem;margin:.5rem 0;color:var(--sg-text)}
.sgh-card p{color:var(--sg-text-muted);font-size:.97rem;line-height:1.55;margin:0 0 1rem;flex:1}
.sgh-icon{font-size:1.8rem;line-height:1}
.sgh-link{font-weight:700;color:var(--sg-primary);text-decoration:none}
.sgh-link:hover{text-decoration:underline}
.sgh-plan--featured{border:2px solid var(--sg-primary)}
.sgh-plan__badge{position:absolute;top:-.8rem;left:1.6rem;background:var(--sg-primary);color:#fff;font-size:.75rem;font-weight:700;padding:.2rem .65rem;border-radius:999px}
.sgh-price{font-family:var(--sg-font-heading);font-size:2.2rem;font-weight:800;color:var(--sg-text);margin:.25rem 0 1rem}
.sgh-price span{font-size:1rem;font-weight:500;color:var(--sg-text-muted)}
.sgh-card ul{list-style:none;padding:0;margin:0 0 1.5rem;flex:1}
.sgh-card li{padding-left:1.4rem;position:relative;margin-bottom:.5rem;color:var(--sg-text-muted)}
.sgh-card li::before{content:"✓";position:absolute;left:0;color:var(--sg-primary);font-weight:700}
.sgh-note{margin-top:1.5rem;color:var(--sg-text-muted);font-size:.92rem}
.sgh-note a{color:var(--sg-primary)}
#preise,#community{scroll-margin-top:80px}
@media(max-width:640px){.sgh-hero{padding:3rem 0 2.5rem}.sgh-section{padding:3rem 0}}

/* === GrowChat-Leiste === */
.sg-chatbar{background:#07110b;border-bottom:1px solid var(--sg-header-border);font-size:.85rem;color:var(--sg-header-muted)}
.sg-chatbar__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:40px;padding-top:.35rem;padding-bottom:.35rem}
.sg-chatbar__text strong{color:#f0f7f2}
.sg-chatbar__actions{display:flex;align-items:center;gap:.9rem;flex-shrink:0}
.sg-chatbar__btn{background:var(--sg-green-bright);color:#07110b !important;font-weight:700;padding:.3rem .8rem;border-radius:999px;text-decoration:none}
.sg-chatbar__btn:hover{background:var(--sg-green-mid)}
.sg-chatbar__link{color:#f0f7f2;text-decoration:underline}
@media(max-width:640px){.sg-chatbar__sub{display:none}}

/* === Hero mit GrowChat-Kasten === */
.sgh-hero--split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:2.5rem;align-items:center}
.sgh-chatbox{background:var(--sg-header-bg);color:var(--sg-header-muted);border-radius:var(--sg-radius-lg);padding:1.75rem;box-shadow:var(--sg-shadow-md);border:1px solid rgba(74,222,128,.25)}
.sgh-chatbox__head{display:flex;align-items:center;gap:.6rem;margin-bottom:.75rem}
.sgh-chatbox__icon{font-size:1.6rem;line-height:1}
.sgh-chatbox h2{font-family:var(--sg-font-heading);font-size:1.35rem;font-weight:800;color:#f0f7f2;margin:0}
.sgh-chatbox__status{display:inline-flex;align-items:center;gap:.4rem;font-size:.78rem;color:var(--sg-green-bright);margin-bottom:.9rem}
.sgh-chatbox__status::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--sg-green-bright)}
.sgh-chatbox p{font-size:.95rem;line-height:1.55;margin:0 0 1.25rem}
.sgh-chatbox__btn{display:block;text-align:center;background:var(--sg-green-bright);color:#07110b !important;font-weight:700;padding:.8rem 1rem;border-radius:var(--sg-radius-sm);text-decoration:none !important}
.sgh-chatbox__btn:hover{background:var(--sg-green-mid)}
.sgh-chatbox__reg{display:block;text-align:center;margin-top:.85rem;font-size:.88rem;color:#f0f7f2 !important}
.sgh-chatbox__note{margin-top:1rem;padding-top:.85rem;border-top:1px solid var(--sg-header-border);font-size:.78rem}
@media(max-width:900px){.sgh-hero--split{grid-template-columns:1fr;gap:2rem}}

/* === Mobile-Header-Optimierung === */
@media (max-width: 600px) {
    .sg-header__logo-text { display: none; }
    .sg-header__actions .sg-btn--primary { display: none; }
    .sg-header__inner { min-width: 0; }
    .sg-header__actions { flex-shrink: 0; }
    .sg-header { position: sticky; top: 0; z-index: 50; }
}

/* === Mobile-Politur Landingpage & Seite === */
@media (max-width: 640px) {
    .sgh-hero { padding: 3rem 0 2.5rem; }
    .sgh-kicker { font-size: .68rem; letter-spacing: .05em; padding: .3rem .6rem; text-align: center; }
    .sgh-hero h1 { font-size: clamp(2rem, 9.5vw, 2.6rem); }
    .sgh-hero--split { gap: 1.75rem; }
    .sgh-actions { flex-direction: column; align-items: stretch; gap: .7rem; margin-top: 1.5rem; }
    .sgh-actions .sg-btn { width: 100%; justify-content: center; text-align: center; }
    .sgh-chatbox { padding: 1.4rem; }
    .sgh-chatbox p { font-size: .92rem; }
    .sgh-section { padding: 2.75rem 0; }
    .sgh-grid { gap: 1rem; }
    .sgh-card { padding: 1.35rem; }
    .sgh-price { font-size: 1.9rem; }
    .sgh-h2 { font-size: 1.5rem; }
    .sgh-sub { font-size: 1rem; }
    .sg-header__logo img { height: 30px !important; max-height: 30px; }
}
@media (max-width: 480px) {
    .sgh-kicker { display: block; max-width: 100%; overflow-wrap: anywhere; }
}
