/* ── Manrope (self-hosted) ─────────────────────────────────────────── */
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(/assets/fonts/manrope/manrope-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(/assets/fonts/manrope/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(/assets/fonts/manrope/manrope-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(/assets/fonts/manrope/manrope-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(/assets/fonts/manrope/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(/assets/fonts/manrope/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Global container ───────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* ── Inner pages: narrower container ────────────────────────────────── */
.container-sm {
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .container-sm {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container-sm {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* ── Article TOC sidebar ─────────────────────────────────────────────── */
.article-toc-sidebar {
    display: none;
    width: 240px;
    flex-shrink: 0;
    align-self: stretch;
}

@media (min-width: 1024px) {
    .article-toc-sidebar {
        display: block;
    }
}

@media (min-width: 1280px) {
    .article-toc-sidebar {
        width: 260px;
    }
}

/* ── Article content main area ───────────────────────────────────────── */
.article-main {
    flex: 1 1 0%;
    min-width: 0;
}

/* ── Blog article: wider container ──────────────────────────────────── */
.container-wide {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .container-wide {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container-wide {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* ── Inner page article body ─────────────────────────────────────────── */
.article-body h2 { font-size: 1.4rem; font-weight: 700; color: #111827; margin: 2.5rem 0 0.75rem; }
.article-body h3 { font-size: 1.15rem; font-weight: 600; color: #1f2937; margin: 2rem 0 0.5rem; }
.article-body h4 { font-size: 1rem; font-weight: 600; color: #374151; margin: 1.5rem 0 0.5rem; }
.article-body h5 { font-size: 0.9375rem; font-weight: 600; color: #374151; margin: 1.25rem 0 0.4rem; }
.article-body p  { color: #374151; line-height: 1.85; margin-bottom: 1.1rem; }
.article-body ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1rem; }
.article-body ol { list-style: decimal; margin-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { color: #374151; line-height: 1.75; margin-bottom: 0.35rem; }
.article-body a  { color: #b6181a; text-decoration: underline; }
.article-body a:hover { color: #951416; }
.article-body strong, .article-body b { font-weight: 600; color: #111827; }
.article-body hr { border: none; border-top: 1px solid #e5e7eb; margin: 1rem 0; }

/* Legal pages — lead paragraph + info box + tables */
.article-body p.lead { font-size: 1.15rem; color: #4b5563; line-height: 1.7; margin-bottom: 1.5rem; }
.article-body .info-box { margin: 1.75rem 0; padding: 1.1rem 1.35rem; background: #fef9f3; border-left: 4px solid #f59e0b; border-radius: 0 0.5rem 0.5rem 0; }
.article-body .info-box p { margin-bottom: 0; color: #1f2937; line-height: 1.7; }
.article-body .info-box strong { color: #92400e; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: 0.9rem; }
.article-body thead { background: #f9fafb; }
.article-body th { text-align: left; padding: 0.75rem 1rem; font-weight: 600; color: #111827; border-bottom: 2px solid #e5e7eb; }
.article-body td { padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: top; line-height: 1.55; }
.article-body td code { display: inline-block; padding: 0.1rem 0.4rem; background: #f3f4f6; border-radius: 0.25rem; font-size: 0.85em; color: #b6181a; }
.article-body td em { color: #6b7280; font-style: normal; font-size: 0.85em; display: block; margin-top: 0.15rem; }
.article-body h2.\!mt-0 { margin-top: 0 !important; font-size: 2rem; }

/* ── FAQ accordion content – Tailwind preflight removes default p margins ── */
.faq-accordion p  { color: #374151; line-height: 1.8; margin-bottom: 0.85rem; }
.faq-accordion ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 0.75rem; }
.faq-accordion ol { list-style: decimal; margin-left: 1.5rem; margin-bottom: 0.75rem; }
.faq-accordion li { color: #374151; line-height: 1.7; margin-bottom: 0.25rem; }
.faq-accordion a  { color: #b6181a; text-decoration: underline; }
.faq-accordion p:last-child { margin-bottom: 0; }

/* ── Inner page shared content utilities ─────────────────────────────── */
/* p.content-lead specificity (0,1,1) beats .article-body p (0,1,1) via cascade order */
.content-lead, p.content-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* p.callout-box specificity (0,1,1) beats .article-body p (0,1,1) via cascade order */
.callout-box, p.callout-box {
    padding: 1.1rem 1.5rem;
    background: #f9fafb;
    border-left: 4px solid #b6181a;
    border-radius: 0 8px 8px 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #374151;
    margin: 1.5rem 0;
}

.text-accent {
    color: #b6181a;
    font-weight: inherit;
}

/* ── Download template cards ─────────────────────────────────────────── */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}
@media (max-width: 600px) {
    .dl-grid { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
    .dl-grid { grid-template-columns: repeat(2, 1fr); }
}
.dl-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.dl-card:hover {
    border-color: #b6181a;
    box-shadow: 0 8px 24px rgba(220,38,38,0.10);
    transform: translateY(-3px);
}
.dl-doc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    min-height: 150px;
    flex: 1;
}
.dl-word-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #2b579a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.5px;
}
.dl-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: #b6181a;
}
.dl-doc .dl-doc-name {
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}
.dl-doc .dl-doc-sub {
    color: #94a3b8 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
}
.dl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.125rem;
    border-top: 1.5px solid #e5e7eb;
    transition: border-color 0.2s ease;
}
.dl-card:hover .dl-card-footer { border-color: #ed8e8e; }
.dl-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.dl-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #b6181a;
    background: #fef2f2;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    letter-spacing: 0.02em;
    transition: background 0.15s ease;
}
.dl-card:hover .dl-btn { background: #fee2e2; }
.dl-btn svg { width: 0.75rem; height: 0.75rem; flex-shrink: 0; }

/* ── Article/content body images (global fallback) ───────────────────── */
.article-body img,
.faq-intro img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
    margin: 1rem 0;
}

/* ── Global / header utilities ───────────────────────────────────────── */
[x-cloak] { display: none !important; }
body { font-family: 'Manrope', system-ui, sans-serif; }
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; width: 0; height: 2px;
    background: #b6181a;
    transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.hero-bg {
    /* Asymmetric gradient: dark + brand-red on the LEFT for text readability,
       fading to nearly transparent on the RIGHT so the image dominates. */
    background-image:
        radial-gradient(ellipse at 18% 30%, rgba(182,24,26,0.35) 0%, rgba(182,24,26,0) 55%),
        linear-gradient(105deg,
            rgba(7,12,24,0.96) 0%,
            rgba(15,23,42,0.92) 22%,
            rgba(15,23,42,0.70) 42%,
            rgba(15,23,42,0.30) 62%,
            rgba(15,23,42,0.05) 85%,
            rgba(15,23,42,0) 100%),
        url('/images/mietkaution-schweiz.jpg');
    background-size: cover, cover, cover;
    background-position: top left, center, center right;
    background-repeat: no-repeat;
}
@media (max-width: 1023px) {
    /* On small screens (no side-by-side layout), keep image readable but
       slightly more uniform dark for legibility everywhere. */
    .hero-bg {
        background-image:
            linear-gradient(180deg,
                rgba(7,12,24,0.92) 0%,
                rgba(15,23,42,0.88) 60%,
                rgba(15,23,42,0.70) 100%),
            url('/images/mietkaution-schweiz.jpg');
        background-position: center, center right;
    }
}
.card-hover { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
html { scroll-padding-top: 92px; }

/* ── Blog index ──────────────────────────────────────────────────────── */
.tab-btn           { padding:.4rem 1rem; font-size:.8125rem; white-space:nowrap; color:#374151; border:1.5px solid #d1d5db; border-radius:9999px; background:#fff; transition:background .15s,color .15s,border-color .15s; }
.tab-btn:hover     { border-color:#9ca3af; color:#111827; }
.tab-btn.is-active { background:#111827; color:#fff; border-color:#111827; font-weight:600; }
.model-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
.model-tabs button { min-width:0; text-align:center; }
@media (min-width:640px) {
    .model-tabs { display:inline-flex; width:auto; flex-wrap:wrap; justify-content:center; }
}
.compare-controls { display:flex; }
@media (max-width:639px) {
    .compare-controls {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        align-items:center;
    }
    .compare-amount-field { order:1; min-width:0; }
    .compare-mode-toggle {
        order:2;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        width:100%;
        min-width:0;
    }
    .compare-mode-toggle button {
        min-width:0;
        padding-left:0.65rem;
        padding-right:0.65rem;
    }
    .compare-submit {
        order:3;
        grid-column:1 / -1;
        width:100%;
    }
}
.card-item         { transition:transform .2s,box-shadow .2s; }
.card-item:hover   { transform:translateY(-3px); box-shadow:0 8px 28px rgba(0,0,0,.09); }
.lc2 { display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.lc3 { display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }

/* ── Blog article layout ─────────────────────────────────────────────── */
.article-wrap { max-width: 100%; }
@media (min-width: 1024px) {
    .article-centered .article-main { max-width: 72%; margin: 0 auto; flex: none; }
}

/* ── Blog article body (scoped to avoid conflict with inner-page styles) */
.blog-article .article-body h2 {
    font-size: 1.35rem !important;
    font-weight: 800;
    color: #111827;
    margin: 1.75rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 2px solid #f3f4f6;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.blog-article .article-body h3 {
    font-size: 1.075rem !important;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 0.6rem;
    line-height: 1.4;
}
.blog-article .article-body p {
    color: #374151;
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.blog-article .article-body ul {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 1.5rem;
}
.blog-article .article-body ul li {
    padding-left: 1.6rem;
    position: relative;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 0.55rem;
    font-size: 1rem;
}
.blog-article .article-body ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #b6181a;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.55;
}
.blog-article .article-body ol {
    list-style: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.blog-article .article-body ol li {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 0.55rem;
    padding-left: 0.25rem;
    font-size: 1rem;
}
.blog-article .article-body a {
    color: #b6181a;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.blog-article .article-body a:hover { color: #951416; }
.blog-article .article-body strong,
.blog-article .article-body b { font-weight: 700; color: #111827; }
.blog-article .article-body img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    margin: 1.75rem 0;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.blog-article .article-body .blog-article-hero-figure {
    margin: 0 0 2rem;
}
.blog-article .article-body .blog-article-hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}
.blog-article .article-body hr {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 1rem 0;
}
.blog-article .article-body blockquote {
    border-left: 4px solid #b6181a;
    background: #fef2f2;
    padding: 1rem 1.25rem;
    border-radius: 0 10px 10px 0;
    margin: 1.75rem 0;
}
.blog-article .article-body blockquote p {
    margin: 0;
    color: #7f1d1d;
    font-size: 0.9375rem;
    line-height: 1.7;
}
.blog-article .article-body blockquote p:not(:last-child) { margin-bottom: 0.5rem; }
.blog-article .article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.blog-article .article-body thead th {
    background: #f3f4f6;
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.blog-article .article-body td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: top;
}
.blog-article .article-body tr:last-child td { border-bottom: none; }
.blog-article .article-body tbody tr:nth-child(even) td { background: #f9fafb; }
.blog-article .article-body tbody tr:hover td { background: #fef2f2; transition: background 0.15s; }
.blog-article .article-body .note,
.blog-article .article-body .highlight,
.blog-article .article-body .callout {
    border-left: 4px solid #b6181a;
    background: #fef2f2;
    padding: 1rem 1.25rem;
    border-radius: 0 10px 10px 0;
    margin: 1.75rem 0;
    font-size: 0.9375rem;
    color: #7f1d1d;
}

/* ── Accordion shortcode ─────────────────────────────────────────────── */
.sc-accordion       { margin: 2rem 0; }
.sc-panel           { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: .5rem; overflow: hidden; }
.sc-panel-btn       { width:100%; display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.9rem 1.25rem; background:#f9fafb; text-align:left; font-weight:600; font-size:.9375rem; color:#111827; cursor:pointer; transition:background .15s; }
.sc-panel-btn:hover { background:#f3f4f6; }
.sc-chevron         { width:1.1rem; height:1.1rem; flex-shrink:0; color:#6b7280; transition:transform .2s; }
.sc-panel-body      { padding:1rem 1.25rem 1.25rem; background:#fff; font-size:.9375rem; color:#374151; line-height:1.8; }

/* ── TOC sidebar links ───────────────────────────────────────────────── */
.toc-link {
    display: block;
    padding: 0.5rem 0.875rem;
    border-left: 2px solid transparent;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.toc-link:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #f9fafb;
    text-decoration: none;
}
.toc-link.active {
    border-color: #b6181a;
    color: #111827;
    font-weight: 600;
    background: #fef2f2;
}
.toc-num {
    color: #9ca3af;
    margin-right: 0.3rem;
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
}
.toc-link.active .toc-num { color: #b6181a; }

/* ── Ratgeber-Seiten: moderne Tabellen + Button-Reset im Article-Body ─── */
.ratgeber-article .article-body .table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    background: white;
    margin: 1.75rem 0;
}
.ratgeber-article .article-body .table-wrap.scroll-x { overflow-x: auto; }
.ratgeber-article .article-body .table-wrap table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 0.9rem;
}
.ratgeber-article .article-body .table-wrap thead th {
    background: #f9fafb;
    padding: 0.95rem 1.1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.72rem;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    vertical-align: middle;
}
.ratgeber-article .article-body .table-wrap thead th.is-highlight {
    background: linear-gradient(180deg, #b6181a, #951416);
    color: white;
    border-bottom-color: #951416;
}
.ratgeber-article .article-body .table-wrap td {
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    vertical-align: top;
    line-height: 1.55;
}
.ratgeber-article .article-body .table-wrap td.is-key {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}
.ratgeber-article .article-body .table-wrap td.is-highlight {
    background: #fef2f2;
    color: #374151;
    font-weight: 500;
}
.ratgeber-article .article-body .table-wrap td.is-muted { color: #9ca3af; }
.ratgeber-article .article-body .table-wrap tr:last-child td { border-bottom: none; }
.ratgeber-article .article-body .table-wrap tbody tr:hover td { background: #fafafa; transition: background 0.15s; }
.ratgeber-article .article-body .table-wrap tbody tr:hover td.is-highlight { background: #fde8e8; }
.ratgeber-article .article-body .table-wrap td a {
    color: #b6181a;
    font-weight: 600;
    text-decoration: none;
}
.ratgeber-article .article-body .table-wrap td a:hover { color: #951416; text-decoration: underline; }

/* CTA-Button im Article-Body — gilt für ratgeber- und blog-Articles
   (überschreibt jeweils das article-body a-Styling beider Scopes). */
.ratgeber-article .article-body a.cta-button,
.blog-article .article-body a.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #b6181a;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 0.15s, transform 0.05s;
    margin: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(182,24,26,0.18);
}
.ratgeber-article .article-body a.cta-button:hover,
.blog-article .article-body a.cta-button:hover {
    background: #951416;
    color: white;
    text-decoration: none;
}
.ratgeber-article .article-body a.cta-button:active,
.blog-article .article-body a.cta-button:active { transform: translateY(1px); }
.ratgeber-article .article-body a.cta-button svg,
.blog-article .article-body a.cta-button svg { color: white; flex-shrink: 0; }

/* Methodik-Callout (vor Anbieter-Tabelle) */
.ratgeber-article .article-body .callout-box {
    border-left: 4px solid #b6181a;
    background: #fef7f7;
    padding: 1rem 1.25rem;
    border-radius: 0 12px 12px 0;
    margin: 1.75rem 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #4b5563;
}

/* ── Calc widget ─────────────────────────────────────────────────────── */
.cw-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(220,38,38,0.18), 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #ed8e8e;
}
.cw-header {
    background: linear-gradient(135deg, #7a1112 0%, #b6181a 60%, #c83033 100%);
    padding: 1.5rem 1.75rem;
    position: relative;
    overflow: hidden;
}
.cw-deco-1 {
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.cw-deco-2 {
    position: absolute;
    bottom: -40px; right: 60px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}
.cw-header-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.cw-icon {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cw-eyebrow {
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.cw-wrap .cw-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.3rem;
}
.cw-wrap .cw-subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}
.cw-body {
    background: #fff;
    padding: 1.5rem 1.75rem;
}
.cw-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
}
@media (max-width: 480px) {
    .cw-form-grid { grid-template-columns: 1fr; }
}
.cw-field-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.cw-input-wrap { position: relative; }
.cw-chf {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #9ca3af;
    pointer-events: none;
}
.cw-input {
    width: 100%;
    padding: 0.7rem 0.75rem 0.7rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    background: #f9fafb;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}
.cw-input:focus { border-color: #b6181a; background: #fff; outline: none; }
.cw-select {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #111827;
    background: #f9fafb;
    cursor: pointer;
    box-sizing: border-box;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
}
.cw-select:focus { border-color: #b6181a; background: #fff; outline: none; }
.cw-btn {
    padding: 0.7rem 1.4rem;
    background: #b6181a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(220,38,38,0.35);
    transition: background 0.15s, transform 0.1s;
}
.cw-btn:hover { background: #951416; transform: translateY(-1px); }
.cw-providers {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.cw-providers-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}
.cw-pills {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.cw-pill {
    height: 26px;
    padding: 0 8px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.03em;
}
.cw-pill-blue   { background: #1d4ed8; }
.cw-pill-green  { background: #047857; }
.cw-pill-purple { background: #6d28d9; }
.cw-pill-orange { background: #c2410c; }
.cw-secure {
    margin-left: auto;
    font-size: 0.7rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Scroll reveal animations ────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.17s; }
.stagger-3 { transition-delay: 0.26s; }
.stagger-4 { transition-delay: 0.35s; }
.stagger-5 { transition-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Loader dots (3-dot bouncing pattern for price recalculation) */
@keyframes mksDotBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%           { transform: translateY(-4px); opacity: 1; }
}
.mks-dot { animation: mksDotBounce 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .mks-dot { animation: none; opacity: 0.7; }
}
