/* ============================================================
   Article styles – Einfach reisen mit Kind
   Prose content, article hero, meta wrap, author wrap, related posts,
   sammlung grid, unterkunft-specific blocks.
   ============================================================ */

/* ---- Breadcrumb wrap (article templates) ---- */
/* Mirrors cluster.css so the breadcrumb gets side padding and a centered inner
   instead of collapsing into the top-left corner. Inner width matches the widest
   content container (.sammlung-grid__inner / .related-posts__inner = 1100px) so the
   breadcrumb's left edge lines up with the page content. */
.breadcrumb-wrap {
    background-color: var(--color-paper);
    padding: var(--space-3) var(--space-6);
    border-bottom: 1px solid var(--color-ink-10);
}

.breadcrumb-wrap .breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
}


/* ---- Article Hero ---- */
.article-hero {
    position: relative;
    background: var(--color-paper);
    overflow: hidden;
}

.article-hero__figure {
    margin: 0;
    max-height: 480px;
    overflow: hidden;
}

.article-hero__img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.article-hero__content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6) var(--space-6);
}

.article-hero__cluster {
    display: inline-block;
    background: var(--color-sun-yellow);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-hand);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-ink);
    line-height: 1.2;
    margin: 0 0 var(--space-4);
}

.article-hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-ink-70);
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .article-hero__title {
        font-size: var(--text-4xl);
    }
    .article-hero__content {
        padding: var(--space-10) var(--space-8) var(--space-8);
    }
}

/* ---- Article Meta (byline directly under the title, inside the hero) ---- */
.article-hero__meta {
    margin: 0 0 var(--space-5);
}

/* ---- Article Body / Prose ---- */
.article-body {
    padding: var(--space-6) var(--space-6) var(--space-12);
}

.article-body__inner {
    max-width: 800px;
    margin: 0 auto;
}

.prose {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-ink);
    line-height: 1.75;
}

.prose p {
    margin: 0 0 var(--space-6);
}

.prose p:last-child {
    margin-bottom: 0;
}

/* Headings carry ids (Markdown toc extension) and are the jump targets of the
   :::toc box. The site header is position:sticky, so without this the sticky bar
   would cover the heading we just jumped to. Measured header height: 98px below
   the 768px breakpoint, 146px above it -- these values clear it with a little air. */
.prose h2,
.prose h3 {
    scroll-margin-top: 112px;
}

@media (min-width: 768px) {
    .prose h2,
    .prose h3 {
        scroll-margin-top: 162px;
    }
}

.prose h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-ink);
    margin: var(--space-10) 0 var(--space-4);
    line-height: 1.25;
}

.prose h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-ink);
    margin: var(--space-8) 0 var(--space-3);
}

.prose h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-ink);
    margin: var(--space-6) 0 var(--space-2);
}

.prose ul,
.prose ol {
    margin: 0 0 var(--space-6);
    padding-left: var(--space-6);
}

.prose li {
    margin-bottom: var(--space-2);
}

.prose li::marker {
    color: var(--color-otto-green);
}

.prose a {
    color: var(--color-otto-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.prose a:hover {
    color: var(--color-otto-green);
}

.prose strong {
    font-weight: 700;
    color: var(--color-ink);
}

.prose em {
    font-style: italic;
}

.prose hr {
    border: none;
    border-top: 2px dashed var(--color-otto-green-30);
    margin: var(--space-10) 0;
}

/* ---- Inline article figures ---- */
.article-figure {
    margin: var(--space-8) 0;
    text-align: center;
}

.article-figure img {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: var(--radius-hand);
    box-shadow: var(--shadow-watercolor);
    display: block;
    margin: 0 auto;
}

.article-figure figcaption {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-ink-60);
    margin-top: var(--space-2);
    font-style: italic;
}

/* ---- Scrapbook gallery in prose ---- */
.prose .scrapbook-gallery {
    margin: var(--space-10) calc(-1 * var(--space-6));
}

/* ---- Tags wrap ---- */
.article-tags-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-8);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* ---- Author wrap ---- */
.article-author-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-10);
}

/* ============================================================
   Article shell: main column + sidebar (T-089)
   ------------------------------------------------------------
   Below the breakpoint .article-shell is an ordinary block, so the main column
   and the sidebar simply stack and every block keeps the layout it had before.
   From --sidebar-from up it becomes a two-column grid.

   .sidebar-main is the class Mediavine's dashboard targets
   (sidebar_btf_selector: ".sidebar-main", position "beforeend", sticky until
   ".site-footer"). Renaming it silently turns the sidebar ad off.
   ============================================================ */
:root {
    /* 800px reading measure + the 2 × --space-6 padding of .article-body */
    --article-col: 848px;
    /* Mediavine's sidebar unit is 300px wide and only runs from 1200px viewport
       (dashboard: sidebar_minimum_width). The breakpoint sits above that so the
       column never has to squeeze. */
    --sidebar-col: 300px;
    --sidebar-gap: var(--space-8);
}

/* Below the breakpoint there is no second column, and stacking the sidebar
   underneath would put its section list directly above "Das könnte euch auch
   gefallen" — the same links twice in a row. So mobile and tablet keep exactly
   the page they had before. (Mediavine's sidebar unit does not run below
   1200px viewport either.) */
.sidebar-main {
    display: none;
}

.sidebar-card {
    background-color: var(--color-wash-green);
    border: 1px solid var(--color-ink-10);
    border-radius: var(--radius-hand);
    box-shadow: var(--shadow-paper-lift);
    padding: var(--space-6);
}

.sidebar-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-ink);
    margin: 0 0 var(--space-4);
}

.sidebar-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-card__item {
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.sidebar-card__item:last-child {
    margin-bottom: 0;
}

.sidebar-card__item a {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-ink);
    border-bottom: 1px solid var(--color-otto-green);
    transition: color var(--transition-base);
}

.sidebar-card__item a:hover {
    color: var(--color-otto-dark);
}

.sidebar-card__all {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-ink-10);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: var(--color-otto-dark);
    transition: color var(--transition-base);
}

.sidebar-card__all:hover {
    color: var(--color-ink);
}

.sidebar-card__all i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (min-width: 1240px) {
    .article-shell {
        display: grid;
        grid-template-columns: minmax(0, var(--article-col)) var(--sidebar-col);
        gap: var(--sidebar-gap);
        justify-content: center;
        /* stretch, not start: the sidebar column runs the full height of the
           article so Mediavine's sticky unit has the whole scroll to travel
           (its stop selector is .site-footer). The card itself stays at the
           top — the rest of the column is empty. */
        align-items: stretch;
    }

    .sidebar-main {
        display: block;
        padding: var(--space-6) 0 var(--space-10);
    }

    /* The hero stays outside the shell so its paper band keeps the full page
       width — which means its text block has to be shifted by hand to line up
       with the main column: same centred outer width as the shell, and the
       sidebar's footprint added to the right padding. */
    .article-hero__content {
        max-width: calc(var(--article-col) + var(--sidebar-gap) + var(--sidebar-col));
        padding-right: calc(var(--space-8) + var(--sidebar-gap) + var(--sidebar-col));
    }
}

/* ---- Related posts ---- */
.related-posts {
    background: var(--color-wash-green);
    padding: var(--space-10) var(--space-6);
}

.related-posts__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.related-posts__heading {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-ink);
    margin: 0 0 var(--space-8);
    text-align: center;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .related-posts__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Unterkunft: Auf einen Blick ---- */
.unterkunft-glance {
    background: var(--color-wash-yellow);
    border-left: 4px solid var(--color-sun-yellow);
    padding: var(--space-6);
    margin: 0 auto;
    max-width: 800px;
}

.unterkunft-glance__inner {
    max-width: 800px;
    margin: 0 auto;
}

.unterkunft-glance__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-ink);
    margin: 0 0 var(--space-4);
}

.unterkunft-glance__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
}

.unterkunft-glance__item {
    display: flex;
    gap: var(--space-3);
    align-items: baseline;
}

.unterkunft-glance__item dt {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-ink);
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
}

.unterkunft-glance__item dt svg {
    width: 16px;
    height: 16px;
    color: var(--color-otto-dark);
    flex-shrink: 0;
}

.unterkunft-glance__item dd {
    font-family: var(--font-body);
    color: var(--color-ink-70);
    font-size: var(--text-base);
    margin: 0;
}

.unterkunft-glance__item dd a {
    color: var(--color-otto-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Verdict/CTA wraps ---- */
.article-verdict-wrap,
.article-procontra-wrap,
.article-cta-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-8);
}

/* ---- Sammlung Hero ---- */
.sammlung-hero {
    background: linear-gradient(135deg, var(--color-wash-green), var(--color-wash-yellow));
    padding: var(--space-12) var(--space-6);
}

.sammlung-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.sammlung-hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-ink);
    margin: 0 0 var(--space-6);
    line-height: 1.2;
}

.sammlung-hero__intro {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-ink-70);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sammlung-hero__title {
        font-size: var(--text-4xl);
    }
}

/* ---- Sammlung Longform Intro (pillar body) ---- */
.sammlung-intro {
    padding: var(--space-10) var(--space-6) 0;
}

.sammlung-intro__inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Keep the longform reading measure (~800px) but flush-left, so the intro's
   left edge lines up with the breadcrumb and the card grid (all 1100px). */
.sammlung-intro__inner > * {
    max-width: 800px;
}

/* ---- Sammlung Grid ---- */
.sammlung-grid {
    padding: var(--space-10) var(--space-6);
}

.sammlung-grid__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.sammlung-grid__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
    .sammlung-grid__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sammlung-grid__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sammlung-grid__empty {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-ink-50);
    text-align: center;
    padding: var(--space-16) 0;
}
