/* ======================================================
   METHODIO — COMPONENTS
====================================================== */

/* ---------- Standard Cards ---------- */

.card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
    height: 100%;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    border-color: #e3e3e3;
}

/* ---------- Feature Grid ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--primary);
    text-align: center;
}

.feature-grid .card h3,
.info-box h3,
.info-box h4,
.stat-card h3 {
    text-align: center;
}

/* ---------- Case Study Workflow Cards ---------- */

.workflow-grid {
    grid-template-rows: repeat(6, auto);
    align-items: start;
}

.workflow-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
    text-align: left;
    padding: 28px 22px 22px;
}

.workflow-card-inner {
    display: contents;
}

.workflow-card .workflow-icon {
    margin: 0 auto 3px;
    justify-content: center;
    text-align: center;
}

.workflow-step {
    margin: 0 0 2px 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    text-align: center;
}

.feature-grid .card h3.workflow-title {
    text-align: left;
}

.workflow-title {
    margin: 0 0 4px 0;
    line-height: 1.18;
}

.workflow-desc {
    margin: 0 0 2px 0;
    color: var(--text-body);
}

.workflow-assumption {
    margin: 0 0 2px 0;
    color: var(--text-body);
}

.workflow-benefit {
    margin-top: 0;
    padding: 12px 14px;
    background: #f3f5f7;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-body);
    text-align: left;
    box-sizing: border-box;
    height: 100%;
}

.workflow-benefit strong,
.workflow-assumption strong {
    color: var(--text-strong);
}

@media (max-width: 900px) {
    .workflow-grid {
        grid-template-rows: none;
    }

    .workflow-card {
        display: block;
        grid-row: auto;
    }

    .workflow-card-inner {
        display: block;
    }

    .workflow-benefit {
        height: auto;
    }
}

/* ---------- Article / Knowledge Cards ---------- */

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    border-color: #e3e3e3;
}

.article-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f3f3f3;
}

.article-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 20px 20px;
    text-align: center;
}

.article-card-body h3 {
    text-align: center;
    line-height: 1.25;
    margin-bottom: 12px;
}

.article-card-body p {
    margin-bottom: 0;
}

.article-card-meta {
    font-size: 0.85rem;
    color: var(--text-body);
    margin-bottom: 10px;
    text-align: center;
}

.article-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--primary);
    text-align: center;
}

.article-card-text {
    margin-bottom: 24px;
}

.article-card-actions {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    justify-content: center;
}

/* Trennlinie */
.section-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 48px 0;
    opacity: 0.6;
}

/* Die neue, breite Box */
.external-resource-card {
    text-align: left; /* Zwingt Inhalt nach links */
    padding: 32px !important;
    max-width: var(--container);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resource-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.resource-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-soft);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.resource-text h3 {
    margin: 0 0 8px 0;
}

.resource-text p {
    margin: 0;
    color: var(--text-body);
}

.resource-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.75rem;
    color: var(--text-soft);
}

.external-link {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 700;
    color: var(--primary);
}

/* Responsiv: Auf dem Handy untereinander stapeln */
@media (max-width: 768px) {
    .resource-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* ---------- Article Hero Placeholder ---------- */

.article-image-placeholder {
    background: linear-gradient(180deg, #f8f9fb 0%, #f1f3f7 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin: 32px 0 36px;
    box-shadow: var(--shadow-sm);
}

/* ---------- Info / Value Boxes ---------- */

.info-box {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    text-align: center;
}

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

/* ---------- Orange CTA Box ---------- */

.orange-box {
    background: var(--primary);
    color: #ffffff;
    padding: 32px 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(255, 87, 34, 0.18);
}

.orange-box h1,
.orange-box h2,
.orange-box h3,
.orange-box h4,
.orange-box h5,
.orange-box p {
    color: #ffffff;
    text-align: center;
}

.orange-box p:last-of-type {
    margin-bottom: 28px;
}

/* ---------- Badges ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

.badge-orange {
    background: rgba(255, 87, 34, 0.1);
    color: var(--primary);
}

.badge-grey {
    background: #f1f1f1;
    color: #555555;
}

/* ---------- CTA Box ---------- */

.cta-box {
    background: #fff7f4;
    border: 1px solid rgba(255, 87, 34, 0.2);
    border-radius: 12px;
    padding: 28px;
}

.cta-box h2,
.cta-box h3 {
    margin-bottom: 12px;
}

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

/* ---------- FAQ ---------- */

.faq-container {
    margin-top: 40px;
    display: grid;
    gap: 16px;
}

.faq-item {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.faq-item.active {
    border-color: rgba(255, 87, 34, 0.55);
}

.faq-question {
    width: 100%;
    background: #ffffff;
    border: none;
    text-align: left;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-strong);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.faq-question:hover {
    background: #fcfcfc;
}

.faq-answer {
    display: none;
    padding: 22px 24px 24px;
    color: var(--text-body);
    border-top: 1px solid #eeeeee;
    background: #ffffff;
}

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

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ---------- Stats ---------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* ---------- Comparison Table / Mobile Cards ---------- */

.comparison-block {
    margin: 28px 0 8px;
}

.comparison-desktop {
    display: block;
}

.comparison-mobile {
    display: none;
}

.comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.comparison-table thead tr {
    background: #f6f7f9;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-strong);
}

.comparison-table td {
    color: var(--text-body);
}

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

.comparison-result-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.comparison-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1px solid transparent;
}

.comparison-badge-green {
    background: #edf7ef;
    color: #1f6b37;
    border-color: #cfe7d5;
}

.comparison-badge-orange {
    background: #fff1e8;
    color: #c6511f;
    border-color: #ffd7c4;
}

.comparison-result-detail {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.45;
}

.comparison-mobile {
    display: none;
    gap: 16px;
}

.comparison-mobile-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.comparison-mobile-card h3 {
    margin: 0 0 14px 0;
    text-align: left;
    line-height: 1.25;
}

.comparison-mobile-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-mobile-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.comparison-mobile-label {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.comparison-mobile-value {
    color: var(--text-strong);
    font-weight: 600;
    text-align: right;
    max-width: 58%;
}

.comparison-mobile-result {
    margin-top: 14px;
    padding: 14px;
    background: #f3f5f7;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.comparison-mobile-result .comparison-result-detail {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .comparison-desktop {
        display: none;
    }

    .comparison-mobile {
        display: grid;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .feature-grid,
    .stats-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .card,
    .info-box,
    .cta-box,
    .stat-card {
        padding: 22px;
    }

    .faq-question {
        padding: 18px 18px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 18px 18px 20px;
    }

    .article-card-body {
        padding: 22px 18px 18px;
    }

    .article-card-actions {
        padding-top: 20px;
    }

    .article-card-icon,
    .feature-icon {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        margin-bottom: 14px;
    }

    .orange-box {
        padding: 24px 20px;
    }

    .article-image-placeholder {
        height: 220px;
        margin: 28px 0 32px;
    }
}

