/**
 * PocketPosts – öffentliches Magazin-Layout
 */

body.pocketpost-public {
    margin: 0;
    background: #fafafa;
}

body.pocketpost-public .wp-site-blocks,
body.pocketpost-public #page,
body.pocketpost-public #content,
body.pocketpost-public .is-root-container {
    display: none;
}

.pocketpost-site {
    --pp-navy: #1a4a8a;
    --pp-text: #1d2327;
    --pp-muted: #666;
    --pp-max: 720px;
    min-height: 100vh;
    margin: 0;
    background: #fafafa;
    color: var(--pp-text);
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
    line-height: 1.65;
}

.pocketpost-site a {
    color: var(--pp-navy);
}

.pocketpost-topbar {
    background: var(--pp-navy);
    color: #fff;
    padding: 14px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pocketpost-topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.pocketpost-topbar a:hover {
    text-decoration: underline;
}

.pocketpost-hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 0;
}

.pocketpost-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
}

.pocketpost-article,
.pocketpost-archive {
    max-width: var(--pp-max);
    margin: 0 auto;
    padding: 32px 20px 72px;
}

.pocketpost-article h1,
.pocketpost-archive-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.25;
    margin: 0 0 10px;
    color: #23282d;
    font-weight: 700;
}

.pocketpost-meta {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
    color: var(--pp-muted);
    margin: 0 0 20px;
}

.pocketpost-teaser {
    font-size: 1.2rem;
    color: #444;
    margin: 0 0 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.pocketpost-section {
    margin: 2rem 0;
}

.pocketpost-section h2 {
    font-size: 1.35rem;
    color: var(--pp-navy);
    margin: 0 0 0.6rem;
}

.pocketpost-section p {
    margin: 0 0 1rem;
}

.pocketpost-pullquote {
    border-left: 4px solid var(--pp-navy);
    margin: 2.2rem 0;
    padding: 4px 0 4px 20px;
    font-size: 1.25rem;
    font-style: italic;
    color: #23282d;
}

.pocketpost-cta {
    display: inline-block;
    margin-top: 8px;
    background: var(--pp-navy);
    color: #fff !important;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
}

.pocketpost-cta:hover {
    background: #135e96;
}

.pocketpost-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    color: var(--pp-muted);
}

.pocketpost-archive-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 28px;
}

.pocketpost-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pocketpost-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 74, 138, 0.12);
}

.pocketpost-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.pocketpost-card-body {
    padding: 20px;
}

.pocketpost-card h2 {
    font-size: 1.35rem;
    margin: 0 0 8px;
    color: #23282d;
}

.pocketpost-card p {
    margin: 0;
    color: var(--pp-muted);
}

.pocketpost-empty-public {
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    color: var(--pp-muted);
}

.pocketpost-pagination {
    margin-top: 36px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pocketpost-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pocketpost-pagination a,
.pocketpost-pagination span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    text-decoration: none;
}

.pocketpost-pagination .current {
    background: var(--pp-navy);
    border-color: var(--pp-navy);
    color: #fff;
}

@media (max-width: 600px) {
    .pocketpost-hero img,
    .pocketpost-card img {
        max-height: 220px;
        height: 180px;
    }

    .pocketpost-teaser {
        font-size: 1.05rem;
    }
}

/* classic: stacked magazine column (default above) */

/* hero: title/teaser overlay on large image */
.pocketpost-layout-hero .pocketpost-hero {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 0;
}

.pocketpost-layout-hero .pocketpost-hero img {
    width: 100%;
    max-height: 68vh;
    min-height: 320px;
    height: 68vh;
    object-fit: cover;
    border-radius: 0;
}

.pocketpost-layout-hero .pocketpost-hero.is-empty {
    min-height: 280px;
    background: #1a4a8a;
}

.pocketpost-layout-hero .pocketpost-hero-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 48px 24px 36px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.08));
    color: #fff;
}

.pocketpost-layout-hero .pocketpost-hero-overlay h1 {
    color: #fff;
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.pocketpost-layout-hero .pocketpost-hero-overlay .pocketpost-meta,
.pocketpost-layout-hero .pocketpost-hero-overlay .pocketpost-teaser {
    color: rgba(255, 255, 255, 0.92);
    border: 0;
    padding: 0;
    margin: 0 0 10px;
    max-width: 720px;
}

.pocketpost-layout-hero .pocketpost-article {
    padding-top: 28px;
}

/* split: image left, title/teaser right */
.pocketpost-layout-split .pocketpost-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.pocketpost-layout-split .pocketpost-hero {
    max-width: none;
    margin: 0;
    padding: 0;
}

.pocketpost-layout-split .pocketpost-hero img {
    height: 100%;
    min-height: 360px;
    max-height: none;
    border-radius: 0;
    object-fit: cover;
}

.pocketpost-layout-split .pocketpost-split-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px;
    background: #fff;
}

.pocketpost-layout-split .pocketpost-split-copy h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0 0 12px;
}

.pocketpost-layout-split .pocketpost-split-copy .pocketpost-teaser {
    border: 0;
    padding: 0;
    margin: 0;
}

.pocketpost-layout-split .pocketpost-article {
    max-width: 1100px;
    padding-top: 20px;
}

/* editorial: narrow, drop cap, large quote, system fonts */
.pocketpost-layout-editorial {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0;
}

.pocketpost-layout-editorial .pocketpost-article {
    max-width: 620px;
    padding-top: 56px;
    padding-bottom: 96px;
}

.pocketpost-layout-editorial .pocketpost-hero {
    max-width: 620px;
    padding-top: 48px;
}

.pocketpost-layout-editorial .pocketpost-hero img {
    border-radius: 0;
    max-height: 360px;
}

.pocketpost-layout-editorial .pocketpost-article h1 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.pocketpost-layout-editorial .pocketpost-section p:first-of-type::first-letter {
    float: left;
    font-size: 4.2rem;
    line-height: 0.8;
    padding: 8px 10px 0 0;
    font-weight: 700;
    color: #1a4a8a;
}

.pocketpost-layout-editorial .pocketpost-section {
    margin: 2.8rem 0;
}

.pocketpost-layout-editorial .pocketpost-pullquote {
    border: 0;
    margin: 3.4rem 0;
    padding: 0;
    font-size: 1.8rem;
    line-height: 1.4;
    text-align: center;
    font-style: normal;
    font-weight: 500;
}

/* cards: wide rounded hero, section grid */
.pocketpost-layout-cards .pocketpost-hero {
    max-width: 1100px;
    padding-top: 28px;
}

.pocketpost-layout-cards .pocketpost-hero img {
    border-radius: 28px;
    max-height: 420px;
    height: 380px;
}

.pocketpost-layout-cards .pocketpost-article {
    max-width: 1100px;
}

.pocketpost-layout-cards .pocketpost-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 28px 0;
}

.pocketpost-layout-cards .pocketpost-section {
    margin: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(26, 74, 138, 0.06);
}

@media (min-width: 800px) {
    .pocketpost-layout-cards .pocketpost-sections {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .pocketpost-layout-hero .pocketpost-hero img {
        min-height: 240px;
        height: 52vh;
        max-height: 420px;
    }

    .pocketpost-layout-hero .pocketpost-hero-overlay {
        padding: 28px 16px 22px;
    }

    .pocketpost-layout-split .pocketpost-split {
        grid-template-columns: 1fr;
    }

    .pocketpost-layout-split .pocketpost-hero img {
        min-height: 220px;
        height: 240px;
    }

    .pocketpost-layout-split .pocketpost-split-copy {
        padding: 24px 20px;
    }

    .pocketpost-layout-editorial .pocketpost-article,
    .pocketpost-layout-editorial .pocketpost-hero {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .pocketpost-layout-cards .pocketpost-hero img {
        height: 220px;
        border-radius: 18px;
    }
}
