/* =================================================================
   /jura-methodik: „Lexi erklärt: So arbeitest du juristisch“
   Eigenständige Stile der Seite; Farben und Schriften aus style.css.
   ================================================================= */
.met-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 120px 16px 80px;
    color: var(--slate-800, #1e293b);
}

.met-hero {
    text-align: center;
    margin-bottom: 36px;
}

.met-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-50, #eef2ff);
    color: var(--primary-600, #4f46e5);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.met-hero h1 {
    font-family: var(--font-display, inherit);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 14px 0 12px;
}

.met-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--slate-600, #475569);
    max-width: 640px;
    margin: 0 auto;
}

.met-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.met-toc a {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 999px;
    background: #fff;
    color: var(--slate-700, #334155);
    font-size: 14px;
    text-decoration: none;
}

.met-toc a:hover {
    border-color: var(--primary-400, #818cf8);
    color: var(--primary-600, #4f46e5);
}

.met-section {
    margin-top: 56px;
    scroll-margin-top: 100px;
}

.met-section h2 {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.45rem, 3.4vw, 1.9rem);
    letter-spacing: -0.015em;
    margin: 0 0 14px;
}

.met-section h3 {
    font-size: 1.1rem;
    margin: 22px 0 8px;
}

.met-section p,
.met-section li {
    font-size: 1.02rem;
    line-height: 1.7;
}

.met-section p {
    margin: 0 0 12px;
}

.met-section ul,
.met-section ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

/* Lexi-Sprechblase */
.met-lexi {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 18px;
}

.met-lexi img {
    width: 72px;
    height: auto;
    flex: 0 0 auto;
}

.met-lexi-bubble {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
    background: var(--primary-50, #eef2ff);
    border: 1px solid var(--primary-200, #c7d2fe);
    border-radius: 16px;
}

.met-lexi-bubble p:last-child {
    margin-bottom: 0;
}

/* Karten und Beispiele */
.met-card {
    padding: 16px 18px;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 14px;
    background: #fff;
    margin: 0 0 14px;
}

.met-card > :last-child {
    margin-bottom: 0;
}

.met-norm {
    padding: 14px 18px;
    border-left: 4px solid var(--primary-500, #6366f1);
    background: var(--slate-50, #f8fafc);
    border-radius: 0 12px 12px 0;
    margin: 0 0 14px;
}

.met-norm cite {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--slate-500, #64748b);
}

.met-if {
    background: rgba(245, 158, 11, 0.18);
    border-radius: 4px;
    padding: 0 3px;
}

.met-then {
    background: rgba(16, 185, 129, 0.18);
    border-radius: 4px;
    padding: 0 3px;
}

/* Gutachtenstil-Schritte (Farben wie im Fall-Modal der App) */
.met-steps {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.met-step {
    --step-color: #64748b;
    padding: 12px 14px;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-left: 4px solid var(--step-color);
    border-radius: 12px;
    background: #fff;
}

.met-step[data-kind="obersatz"] { --step-color: #6366f1; }
.met-step[data-kind="definition"] { --step-color: #0ea5e9; }
.met-step[data-kind="subsumtion"] { --step-color: #f59e0b; }
.met-step[data-kind="ergebnis"] { --step-color: #10b981; }

.met-step-label {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--step-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.met-step p {
    margin: 0 0 6px;
}

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

.met-step .met-note {
    font-size: 0.92rem;
    color: var(--slate-500, #64748b);
}

.met-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 14px;
}

.met-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 0 14px;
}

.met-grid .met-card {
    margin: 0;
}

.met-grid h3,
.met-compare h3,
.met-tile h3 {
    margin-top: 0;
}

/* Drei Einstiege */
.met-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.met-tile {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-top: 4px solid var(--tile-color, #6366f1);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.met-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.met-tile p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--slate-600, #475569);
    flex: 1 1 auto;
}

.met-tile span {
    font-weight: 700;
    color: var(--tile-color, #6366f1);
}

/* Glossar und FAQ */
.met-details details {
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    padding: 0 16px;
    margin-bottom: 8px;
}

.met-details summary {
    cursor: pointer;
    padding: 13px 0;
    font-weight: 600;
}

.met-details details p {
    padding-bottom: 14px;
    margin: 0;
}

.met-cta {
    margin-top: 56px;
    padding: 32px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    text-align: center;
}

.met-cta h2 {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.4rem, 3.4vw, 1.9rem);
    margin: 0 0 8px;
}

.met-cta p {
    margin: 0 0 18px;
    opacity: 0.92;
}

.met-cta a {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    background: #fff;
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}


/* Gratis-PDF-Guide (Dialog aus guide-funnel.js) */
.met-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding: 26px 28px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--slate-200, #e2e8f0);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.met-guide h2 {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.2rem, 2.6vw, 1.5rem);
    margin: 8px 0 6px;
}

.met-guide p {
    margin: 0;
    color: var(--slate-600, #475569);
    line-height: 1.55;
}

.met-guide__btn {
    flex: none;
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
}

@media (max-width: 700px) {
    .met-guide {
        flex-direction: column;
        align-items: flex-start;
    }

    .met-main {
        padding-top: 96px;
    }

    .met-compare,
    .met-grid,
    .met-tiles {
        grid-template-columns: 1fr;
    }

    .met-lexi img {
        width: 52px;
    }
}
