/* CampMatic — Inhalte zu „CampMatic für Truma iNet X“ (seit 2026-11-16)
 *
 * Eigene Datei statt style.css, weil diese Bausteine nur auf den Inhaltsseiten stehen:
 *   .cmx-panels   Panel-Erkennung „Welches Truma-Bedienteil haben Sie?“ (help.php, faq.php)
 *   .cmx-inetx    Abschnitt #inetx auf /integrationen (Funktionen, App-Screenshots, Bestellen)
 * Eingebunden mit filemtime-Cache-Busting wie style.css. Farben/Abstände aus den Variablen
 * von style.css (--navy, --orange, --slate …), die Datei setzt style.css also voraus.
 */

/* ── Panel-Erkennung: zwei Bildkarten nebeneinander, am Handy untereinander ───────────── */
.cmx-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 820px;
    margin: 18px 0 8px;
}
.cmx-panel {
    display: flex;
    flex-direction: column;
    background: var(--white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.cmx-panel:hover,
a.cmx-panel:focus-visible {
    box-shadow: 0 0 0 2px rgba(232, 83, 14, 0.45), var(--shadow-md, 0 6px 18px rgba(0, 0, 0, 0.12));
    transform: translateY(-1px);
}
a.cmx-panel:focus-visible { outline: none; }
.cmx-panel__img {
    display: block;
    width: 100%;
    height: 190px;          /* Illustrationen sind 4:3 — eingepasst, nicht gestreckt */
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
    background: #f3f5f7;
}
.cmx-panel__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.cmx-panel__name {
    font-family: var(--font-heading, inherit);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--navy, #1a252f);
    line-height: 1.3;
}
.cmx-panel__desc { font-size: 0.9rem; color: var(--slate, #34495e); line-height: 1.5; }
.cmx-panel__req { font-size: 0.84rem; color: var(--slate-light, #5d6d7e); line-height: 1.5; }
.cmx-panel__go {
    margin-top: 6px;
    font-family: var(--font-heading, inherit);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--orange, #e8530e);
}
.cmx-panels__note { margin: 6px 0 0; font-size: 0.82rem; color: var(--slate-light, #5d6d7e); line-height: 1.5; }

/* Hilfe: die Erkennung steht als eigener Kasten zwischen Hero und Karten */
.help-panelpick {
    max-width: 860px;       /* so breit wie .help-grid darunter */
    margin: -24px auto 32px; /* .help-categories hat oben schon 64px Innenabstand */
    padding: 22px 22px 18px;
    background: var(--white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
    text-align: left;
}
.help-panelpick__title {
    margin: 0 0 4px;
    font-family: var(--font-heading, inherit);
    font-size: 1.15rem;
    color: var(--navy, #1a252f);
}
.help-panelpick__lead { margin: 0; font-size: 0.93rem; color: var(--slate, #34495e); line-height: 1.55; }

/* FAQ: Bilder innerhalb einer Antwort etwas kleiner */
.faq-q__body .cmx-panels { max-width: 640px; }

/* ── Integrationen: Abschnitt #inetx ─────────────────────────────────────────────────── */
.cmx-inetx { background: var(--white, #fff); padding: 80px 0; scroll-margin-top: 70px; }
.cmx-inetx .section__subtitle { margin-bottom: 32px; }
.cmx-inetx__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: start;
}
.cmx-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cmx-feats__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--slate, #34495e);
    line-height: 1.55;
}
.cmx-feats__item svg { flex-shrink: 0; margin-top: 4px; color: var(--green, #27ae60); }
.cmx-feats__item strong { color: var(--navy, #1a252f); font-family: var(--font-heading, inherit); }

/* Drei Handy-Screenshots nebeneinander, die Klima-Karte (Querformat) darunter über die volle Breite */
.cmx-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cmx-shots__item {
    border-radius: 14px;
    overflow: hidden;
    background: #1b2530;
    box-shadow: var(--shadow, 0 4px 14px rgba(0, 0, 0, 0.12));
    cursor: zoom-in;
}
.cmx-shots__item img { display: block; width: 100%; height: auto; }
.cmx-shots__item--wide { grid-column: 1 / -1; border-radius: var(--radius, 12px); }

.cmx-inetx__note { max-width: 820px; margin: 22px 0 0; font-size: 0.93rem; color: var(--slate, #34495e); line-height: 1.6; }
.cmx-inetx__note + .cmx-inetx__note { margin-top: 8px; }
.cmx-inetx__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cmx-btn-outline { color: var(--orange, #e8530e); border-color: var(--orange, #e8530e); }
.cmx-btn-outline:hover { background: var(--orange-light, #fdeee6); }
.cmx-inetx__links { margin-top: 10px; }

@media (max-width: 900px) {
    .cmx-inetx__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cmx-inetx { padding: 56px 0; }
    .cmx-panels { grid-template-columns: 1fr; }
    .cmx-panel__img { height: 150px; }
    .help-panelpick { padding: 18px 16px 14px; }
    .cmx-shots { gap: 8px; }
}
