/* ══════════════════════════════════════════════════════════════
   Story Single · /story/<slug>/
   ══════════════════════════════════════════════════════════════ */

.ks-story-single {
    color: var(--wp--preset--color--contrast);
}

/* ─── HERO ──────────────────────────────────────────────── */
.ks-single-hero {
    margin: 0 auto var(--wp--preset--spacing--50);
}
.ks-single-hero .ks-breadcrumbs,
.ks-single-hero nav[aria-label="Breadcrumbs"] {
    margin-bottom: 1.2rem;
    color: var(--wp--custom--text-secondary);
    font-size: .85rem;
}
.ks-single-hero__grid {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 767.98px) {
    .ks-single-hero__grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .ks-single-hero__cover { max-width: 260px; margin: 0 auto; }
}
.ks-single-hero__cover {
    overflow: hidden;
    border-radius: var(--wp--custom--radius-large);
    box-shadow: var(--wp--custom--shadow-card-hover);
}
.ks-single-hero__cover .wp-block-post-featured-image {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 4/5;
    overflow: hidden;
    display: block;
    position: relative;
}
.ks-single-hero__cover .wp-block-post-featured-image picture {
    display: block;
    width: 100%;
    height: 100%;
}
.ks-single-hero__cover .wp-block-post-featured-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
    display: block;
}
.ks-single-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ks-single-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--wp--preset--color--contrast);
    margin: 0;
}
.ks-single-meta {
    gap: 8px;
}
.ks-single-meta .ks-story-card__chip {
    font-size: 12px;
    padding: 5px 12px;
    text-decoration: none;
}

/* CTA */
.ks-single-hero__cta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: .5rem;
    flex-wrap: wrap;
}
.ks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--wp--custom--radius-pill);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--wp--custom--motion-button), background var(--wp--custom--motion-button), border-color var(--wp--custom--motion-button);
}
.ks-btn:active { transform: translateY(1px); }
.ks-btn--primary {
    background: var(--wp--preset--color--accent-1);
    color: var(--wp--custom--text-on-primary);
}
.ks-btn--primary:hover {
    background: var(--wp--custom--primary-hover);
}
.ks-wish-inline {
    color: var(--wp--custom--text-secondary);
}

/* ─── CONTENT ───────────────────────────────────────────── */
.ks-single-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--wp--preset--color--contrast);
    margin-top: var(--wp--preset--spacing--40);
}
.ks-single-content p,
.ks-single-content ul,
.ks-single-content ol,
.ks-single-content blockquote {
    margin-bottom: 1.2em;
}
.ks-single-content h2,
.ks-single-content h3 {
    color: var(--wp--preset--color--contrast);
    letter-spacing: -0.01em;
    margin-top: 2em;
}
.ks-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.ks-single-tags a {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--wp--custom--radius-pill);
    background: var(--wp--preset--color--accent-3);
    color: var(--wp--custom--text-chip-default);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--wp--preset--color--accent-5);
    transition: background var(--wp--custom--motion-chip), color var(--wp--custom--motion-chip);
}
.ks-single-tags a:hover {
    background: var(--wp--preset--color--accent-1);
    color: var(--wp--custom--text-on-primary);
    border-color: var(--wp--preset--color--accent-1);
}

/* ─── AUTHOR BOX ────────────────────────────────────────── */
.ks-author-box {
    margin: var(--wp--preset--spacing--50) auto !important;
    padding: 0;
}
.ks-author-box__inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--wp--preset--color--accent-3);
    border: 1px solid var(--wp--preset--color--accent-5);
    border-radius: var(--wp--custom--radius-large);
}
.ks-author-box__avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.ks-author-box__text { gap: 2px; }
.ks-author-box__name {
    font-weight: 700;
    font-size: .95rem;
    margin: 0;
    color: var(--wp--preset--color--contrast);
}
.ks-author-box__name a {
    color: var(--wp--preset--color--accent-1);
    text-decoration: none;
}
.ks-author-box__bio {
    font-size: .85rem;
    line-height: 1.5;
    color: var(--wp--custom--text-secondary);
    margin: 0;
}

/* ─── POST NAVIGATION ───────────────────────────────────── */
.ks-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--wp--preset--color--accent-5);
    border-bottom: 1px solid var(--wp--preset--color--accent-5);
    margin: var(--wp--preset--spacing--50) auto;
}
.ks-post-nav .post-navigation-link-previous,
.ks-post-nav .post-navigation-link-next {
    flex: 1;
    max-width: 48%;
    color: var(--wp--custom--text-secondary);
    text-decoration: none;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--wp--custom--radius-card);
    transition: background var(--wp--custom--motion-card), color var(--wp--custom--motion-card);
}
.ks-post-nav .post-navigation-link-next { justify-content: flex-end; text-align: right; }
.ks-post-nav a:hover {
    background: var(--wp--preset--color--accent-3);
    color: var(--wp--preset--color--contrast);
}

/* ─── RELATED ───────────────────────────────────────────── */
.ks-single-related { margin-top: var(--wp--preset--spacing--60); }
.ks-related__heading {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    color: var(--wp--preset--color--contrast);
}
.ks-related__grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}
@media (max-width: 767.98px) {
    .ks-related__grid { grid-template-columns: 1fr !important; }
}
.ks-related__slot {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ks-related__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wp--preset--color--accent-1);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   VORLESE-MODUS (Reading Mode)
   ═══════════════════════════════════════════════════════════════ */

.ks-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--wp--preset--color--accent-1);
    z-index: 9999;
    transition: width 120ms linear;
    pointer-events: none;
}

.ks-reading-bar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9998;
    display: none;
    gap: 6px;
    padding: 10px 14px;
    background: var(--wp--custom--reading--bar-bg);
    border-bottom-left-radius: var(--wp--custom--radius-card);
    backdrop-filter: blur(6px);
}
.ks-reading-bar__btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--wp--custom--reading--bar-border);
    background: transparent;
    color: var(--wp--custom--reading--text);
    font-weight: 700;
    cursor: pointer;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ks-reading-bar__btn:hover { background: var(--wp--custom--reading--btn-hover); }

body.ks-reading-mode .ks-reading-bar { display: inline-flex; }
body.ks-reading-mode .ks-reading-progress { background: var(--wp--custom--reading--accent); }

body.ks-reading-mode {
    background: var(--wp--custom--reading--bg) !important;
    color: var(--wp--custom--reading--text);
}
body.ks-reading-mode .wp-site-blocks > header,
body.ks-reading-mode .wp-site-blocks > footer,
body.ks-reading-mode .ks-single-hero__meta > :not(.ks-single-title),
body.ks-reading-mode .ks-single-hero__cover,
body.ks-reading-mode .ks-single-hero .ks-breadcrumbs,
body.ks-reading-mode .ks-single-tags,
body.ks-reading-mode .ks-author-box,
body.ks-reading-mode .ks-post-nav,
body.ks-reading-mode .ks-single-related,
body.ks-reading-mode .gspb_id-gsbp-single-wish,
body.ks-reading-mode [data-reading-toggle] {
    display: none !important;
}
body.ks-reading-mode .ks-single-hero__grid {
    grid-template-columns: 1fr;
}
body.ks-reading-mode .ks-single-title {
    color: var(--wp--custom--reading--text);
    text-align: center;
    margin: 2rem auto 1.5rem;
}
body.ks-reading-mode .ks-single-content {
    font-size: var(--ks-reading-size, 1.5rem);
    line-height: 1.85;
    color: var(--wp--custom--reading--text);
    max-width: 640px !important;
    margin: 0 auto;
}
body.ks-reading-mode .ks-single-content a { color: var(--wp--custom--reading--link); }
