/* ==========================================================================
   Snaplove — marketing.css
   Supplemental styles for marketing pages (Ratgeber, Vergleich).
   Reuses design tokens from landing.css — no palette redefinitions here.
   ========================================================================== */

/* ---------- Body offset: clear the sticky nav (72px height) ---------- */
body.marketing main {
    padding-top: 72px;
}

/* ---------- Multi-column footer layout ---------- */
.foot-cols {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.foot-col-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.9rem;
}

.foot-col .foot-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* ---------- Prose container ---------- */
.prose-wrap {
    max-width: 54rem;
    margin-inline: auto;
    padding: clamp(2.5rem, 2rem + 3vw, 4rem) 1.5rem;
}

/* ---------- Article body typography ---------- */
.article-body {
    color: var(--ink);
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.12rem);
    line-height: 1.78;
}

/* ---------- Article images ---------- */
.article-hero {
    margin: 0 0 clamp(1.6rem, 1rem + 2vw, 2.6rem);
}
.article-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.article-body img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.article-body figure {
    margin: clamp(1.8rem, 1.2rem + 2vw, 2.8rem) 0;
}
.article-body figcaption {
    margin-top: 0.7rem;
    font-size: 0.86rem;
    color: var(--ink-2);
    text-align: center;
    font-style: italic;
}

.article-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-top: 2.8rem;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.article-body h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-top: 2rem;
    margin-bottom: 0.65rem;
}

.article-body p {
    margin-top: 1rem;
    color: var(--ink-2);
}

.article-body p:first-child {
    color: var(--ink);
}

.article-body ul,
.article-body ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.4rem;
    color: var(--ink-2);
}

.article-body li {
    margin-top: 0.4rem;
    line-height: 1.65;
}

.article-body ul li::marker {
    color: var(--gold);
}

.article-body a {
    color: var(--gold-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color var(--d-fast);
}

.article-body a:hover {
    color: var(--ink);
}

/* Table */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
}

.article-body th {
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 2px solid var(--line);
}

.article-body td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    vertical-align: top;
}

.article-body tr:last-child td {
    border-bottom: none;
}

.article-body td:first-child,
.article-body th:first-child {
    padding-left: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--ink-2);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--ink-2);
    transition: color var(--d-fast);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb-sep {
    color: var(--line-2);
    font-size: 0.7rem;
}

/* ---------- Article meta (author, date, reading time) ---------- */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.83rem;
    color: var(--ink-2);
    padding: 1.2rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.2rem;
}

.article-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-2);
    flex-shrink: 0;
}

/* ---------- Ratgeber overview page ---------- */
.ratgeber-head {
    text-align: center;
    padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}

.ratgeber-head .eyebrow {
    margin-bottom: 1.2rem;
}

.ratgeber-head h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.ratgeber-head h1 em {
    font-style: italic;
    color: var(--gold-deep);
}

.ratgeber-head p {
    max-width: 54ch;
    margin: 1.2rem auto 0;
    font-size: 1.08rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.ratgeber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.6rem;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
}

.ratgeber-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform var(--d-mid) var(--e-out), box-shadow var(--d-mid) var(--e-out), border-color var(--d-fast);
}

.ratgeber-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -16px rgba(26, 24, 20, 0.14);
    border-color: var(--line-2);
}

.ratgeber-card .eyebrow {
    font-size: 0.67rem;
}

.ratgeber-card h2,
.ratgeber-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--ink);
    text-wrap: balance;
}

.ratgeber-card p {
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1.6;
    flex: 1;
}

.ratgeber-card-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-deep);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    transition: gap var(--d-fast) var(--e-out), color var(--d-fast);
}

.ratgeber-card-link:hover {
    gap: 0.6rem;
    color: var(--ink);
}

/* ---------- FAQ accordion ---------- */
.faq-list {
    margin-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0;
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--ink);
    transition: color var(--d-fast);
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--gold);
    flex-shrink: 0;
    transition: transform var(--d-mid) var(--e-out), color var(--d-fast);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--ink-2);
}

.faq-item summary:hover {
    color: var(--gold-deep);
}

.faq-item .faq-body {
    padding: 0 0 1.2rem;
    color: var(--ink-2);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* ---------- Article CTA block ---------- */
.article-cta {
    background: var(--warm-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(1.8rem, 1.5rem + 1.5vw, 2.8rem);
    text-align: center;
    margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0;
}

.article-cta h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 0.7rem;
}

.article-cta h3 em {
    font-style: italic;
    color: var(--gold-deep);
}

.article-cta p {
    color: var(--ink-2);
    font-size: 0.97rem;
    max-width: 48ch;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* ---------- Related articles ---------- */
.related {
    border-top: 1px solid var(--line);
    padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.related-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 1.4rem;
}

.related-title::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
    vertical-align: middle;
    margin: 0 0.6rem 0.18em 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 1.2rem;
}

.related-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform var(--d-mid) var(--e-out), box-shadow var(--d-mid) var(--e-out);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -12px rgba(26, 24, 20, 0.12);
}

.related-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
}

.related-card p {
    font-size: 0.84rem;
    color: var(--ink-2);
    line-height: 1.55;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
    .foot-cols {
        gap: 2rem;
    }

    .ratgeber-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-body th,
    .article-body td {
        padding: 0.55rem 0.6rem;
    }
}

/* ---------- Vergleichsseiten ---------- */
.tldr {
    background: var(--warm-2);
    border-left: 3px solid var(--gold-deep);
    border-radius: 0 10px 10px 0;
    padding: 1.1rem 1.4rem;
    margin: 1.6rem 0 2rem;
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--ink-2);
}

.tldr strong {
    color: var(--ink);
    font-weight: 600;
}

.article-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.compare-table th {
    background: var(--warm-2);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.compare-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    vertical-align: middle;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table tr:nth-child(even) td {
    background: oklch(98.5% 0.003 60);
}

.cell-yes {
    color: #2e7d52;
    font-weight: 600;
}

.cell-no {
    color: #b84040;
    font-weight: 600;
}

.article-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 0.7rem;
}
