/* Cooka V63 mobile layout: no sideways swiping, shorter sections on phones.
   Desktop is unchanged; everything except the [hidden] fix sits in the phone media query. */

/* Technical documents: rows hidden by the filter/“show more” script must stay hidden (all widths). */
html body.v13-site .resource-row[data-doc-row][hidden], [data-doc-row][hidden] { display: none !important; }

@media (max-width: 760px) {
  /* Home: featured products as a 2-column grid instead of a 13-card swipe row. */
  html body.v13-site #home-products.v13-home-featured {
    display: grid !important; grid-auto-flow: row !important; grid-template-columns: 1fr 1fr !important;
    grid-auto-columns: auto !important; overflow: visible !important; gap: 10px !important;
    scroll-snap-type: none !important; padding-bottom: 0 !important;
  }
  html body.v13-site #home-products.v13-home-featured > .v13-product-card { width: auto !important; min-width: 0 !important; transform: none !important; }
  html body.v13-site #home-products.v13-home-featured > .v13-product-card:nth-child(n+7) { display: none !important; }
  html body.v13-site #home-products.v13-home-featured .v13-card-facts, html body.v13-site #home-products.v13-home-featured .v15-model-cta { display: none !important; }
  html body.v13-site #home-products.v13-home-featured .v13-product-copy { padding: 10px 12px 12px !important; }
  html body.v13-site #home-products.v13-home-featured .v13-product-copy p { font-size: 13px !important; margin: 4px 0 0 !important; }
  html body.v13-site .v14-range-section .v45-fam-arrow, html body.v13-site .v14-range-section .v28-showcase-toggle, html body.v13-site .v14-range-section .v13-scroll-btn { display: none !important; }

  /* Home: industries as a 3 x 3 tile grid instead of a 9-tile swipe row. */
  html body.v13-site .v14-industries-section .v14-industry-grid.v17-home-industries {
    display: grid !important; grid-template-columns: repeat(3, 1fr) !important; overflow: visible !important; grid-auto-flow: row !important; grid-auto-columns: auto !important;
    gap: 8px !important; scroll-snap-type: none !important; padding-bottom: 0 !important;
  }
  html body.v13-site .v14-industries-section .v14-industry-grid.v17-home-industries > .v14-industry { flex: none !important; width: auto !important; min-width: 0 !important; aspect-ratio: 1 / 1; height: auto !important; position: relative; }
  html body.v13-site .v14-industries-section .v14-industry-grid.v17-home-industries .v14-industry-image, html body.v13-site .v14-industries-section .v14-industry-grid.v17-home-industries .v14-industry-image img { height: 100% !important; aspect-ratio: auto !important; }
  html body.v13-site .v14-industries-section .v14-industry-grid.v17-home-industries .v14-industry-body small, html body.v13-site .v14-industries-section .v14-industry-grid.v17-home-industries .v45-ind-models, html body.v13-site .v14-industries-section .v14-industry-grid.v17-home-industries .v14-industry-arrow { display: none !important; }
  html body.v13-site .v14-industries-section .v14-industry-grid.v17-home-industries .v14-industry-body { padding: 8px !important; }
  html body.v13-site .v14-industries-section .v14-industry-grid.v17-home-industries .v14-industry-body h3 { font-size: 12px !important; line-height: 1.25 !important; margin: 0 !important; }

  /* Cross-reference comparison cards: stacked; the home page shows the first three. */
  html body.v13-site .v45-cmp-grid { flex-direction: column !important; overflow: visible !important; gap: 12px !important; scroll-snap-type: none !important; padding-bottom: 0 !important; }
  html body.v13-site .v45-cmp-grid > .v45-cmp { flex: none !important; width: auto !important; }
  html body.v13-site .v45-cmp-grid .v45-cmp-viz { display: none !important; }
  html body.v13-site:has(#home-products) .v45-cmp-grid > .v45-cmp:nth-child(n+4) { display: none !important; }

  /* Wide tables become one card per row: “label  value” lines, no sideways scrolling. */
  html body.v13-site .m63-stack-wrap { overflow: visible !important; }
  html body.v13-site table.m63-stack { min-width: 0 !important; width: 100% !important; border-collapse: collapse; }
  html body.v13-site table.m63-stack thead { display: none; }
  html body.v13-site table.m63-stack tr { display: block; border: 1px solid #d9e2ea; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: #fff; }
  html body.v13-site table.m63-stack th, html body.v13-site table.m63-stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border: 0 !important; padding: 4px 0 !important; text-align: right; white-space: normal !important; min-width: 0 !important; width: auto !important; }
  html body.v13-site table.m63-stack tr > :first-child { display: block; text-align: left; font-weight: 700; padding-bottom: 6px !important; border-bottom: 1px solid #e6edf2 !important; margin-bottom: 4px; }
  html body.v13-site table.m63-stack td[data-label]::before { content: attr(data-label); text-align: left; color: #5b6b78; font-weight: 500; flex: 0 0 42%; }
  html body.v13-site table.m63-stack tr > :first-child[data-label]::before { content: none; }

  /* Photo card rows (About, Customization): compact “photo left, text right” cards stacked. */
  html body.v13-site .v23-material-process-grid, html body.v13-site .v17-testing-grid, html body.v13-site .v18-collaboration-grid, html body.v13-site .v21-capability-grid {
    display: grid !important; grid-template-columns: 1fr !important; grid-auto-flow: row !important;
    overflow: visible !important; gap: 10px !important; scroll-snap-type: none !important; padding-bottom: 0 !important;
  }
  html body.v13-site .v23-material-process-grid > *, html body.v13-site .v17-testing-grid > *, html body.v13-site .v18-collaboration-grid > *, html body.v13-site .v21-capability-grid > * {
    display: grid !important; grid-template-columns: 112px 1fr; column-gap: 12px; align-items: start;
    width: auto !important; min-width: 0 !important; flex: none !important;
  }
  html body.v13-site .v23-material-process-grid > * > figure, html body.v13-site .v17-testing-grid > * > figure, html body.v13-site .v18-collaboration-grid > * > figure, html body.v13-site .v21-capability-grid > * > figure {
    grid-row: 1 / span 3; margin: 0 !important; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px;
  }
  html body.v13-site .v23-material-process-grid > * > figure img, html body.v13-site .v17-testing-grid > * > figure img, html body.v13-site .v18-collaboration-grid > * > figure img, html body.v13-site .v21-capability-grid > * > figure img {
    width: 100% !important; height: 100% !important; object-fit: cover;
  }
  html body.v13-site .v23-material-process-grid h3, html body.v13-site .v17-testing-grid h3, html body.v13-site .v18-collaboration-grid h3, html body.v13-site .v21-capability-grid h3 { font-size: 16px !important; margin: 2px 0 4px !important; }
  html body.v13-site .v23-material-process-grid p, html body.v13-site .v17-testing-grid p, html body.v13-site .v18-collaboration-grid p, html body.v13-site .v21-capability-grid p { font-size: 13px !important; margin: 0 !important; }
  html body.v13-site .v21-capability-grid .v21-capability-copy { padding: 0 !important; }

  /* Family pages: “More models to compare” as compact cards; the rest behind a button. */
  html body.v13-site .expansion-series-section .v13-card-facts, html body.v13-site .expansion-series-section .v15-model-cta { display: none !important; }
  html body.v13-site .expansion-series-section .v13-product-copy { padding: 10px 12px 12px !important; }
  html body.v13-site .m63-collapsed > .m63-extra { display: none !important; }
  html body.v13-site .m63-more { display: block; width: 100%; margin: 14px 0 0; padding: 12px 16px; border: 1px solid #0b5aa6; border-radius: 8px; background: #fff; color: #0b5aa6; font: inherit; font-weight: 600; }
}
@media (min-width: 761px) { .m63-more { display: none !important; } }

/* V63 round 2: shorter phone versions of four home sections, same visual language. */
@media (max-width: 760px) {
  /* Company figures: one row of four instead of a 2 x 2 block. */
  html body.v13-site main .v15-stats { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; margin-top: 14px !important; padding-top: 12px !important; }
  html body.v13-site main .v15-stats > div { padding: 0 !important; min-width: 0 !important; border: 0 !important; }
  html body.v13-site main .v15-stats strong { display: block !important; font-size: 19px !important; line-height: 1.1 !important; white-space: nowrap; }
  html body.v13-site main .v15-stats strong small { display: block !important; font-size: 9px !important; margin: 2px 0 0 !important; letter-spacing: 0 !important; }
  html body.v13-site main .v15-stats p { font-size: 10px !important; line-height: 1.3 !important; margin: 4px 0 0 !important; }

  /* Material grades: one compact row per grade (badge + cycles, then temperature). */
  html body.v13-site main .v45-steps { gap: 6px !important; }
  html body.v13-site main .v45-steps > .v45-step { display: grid !important; grid-template-columns: auto 1fr !important; align-items: center !important; gap: 10px !important; padding: 6px 8px !important; min-height: 0 !important; }
  html body.v13-site main .v45-step-bar { margin: 0 !important; padding: 4px 8px !important; min-width: 0 !important; width: auto !important; height: auto !important; }
  html body.v13-site main .v45-step-info { padding: 0 !important; margin: 0 !important; text-align: right; }
  html body.v13-site main .v45-step-info .v45-step-specs, html body.v13-site main .v45-step-info .v45-step-key, html body.v13-site main .v45-step-info .v45-step-use, html body.v13-site main .v45-step-temp small { display: none !important; }
  html body.v13-site main .v45-step-temp { margin: 0 !important; font-size: 13px !important; }

  /* Cross-reference cards: tighter card, the whole card stays a link to the model. */
  html body.v13-site main .v45-cmp { padding: 12px !important; }
  html body.v13-site main .v45-cmp-top { margin-bottom: 8px !important; }
  html body.v13-site main .v45-cmp table th, html body.v13-site main .v45-cmp table td { padding-top: 5px !important; padding-bottom: 5px !important; }
  html body.v13-site main .v45-cmp thead th { padding-top: 7px !important; padding-bottom: 7px !important; }
  html body.v13-site main .v45-cmp-go { display: none !important; }
  html body.v13-site:has(#home-products) main .v45-cmp-grid > .v45-cmp:nth-child(n+3) { display: none !important; }

  /* Custom replacement: tighter badges; process steps as a compact numbered list. */
  html body.v13-site main .v45-cu-badges { gap: 8px !important; }
  html body.v13-site main .v45-cu-badges li { padding: 10px !important; }
  html body.v13-site main .v45-cu-badges li > span { width: 26px !important; height: 26px !important; margin-bottom: 6px !important; }
  html body.v13-site main .v45-cu-steps { gap: 6px !important; margin-top: 18px !important; }
  html body.v13-site main .v45-cu-steps > li { padding: 8px 10px !important; gap: 10px !important; align-items: center !important; min-height: 0 !important; }
  html body.v13-site main .v45-cu-steps > li p { display: none !important; }
  html body.v13-site main .v45-cu-steps > li h3 { font-size: 15px !important; margin: 0 !important; }
  html body.v13-site main .v45-cu-steps > li small { font-size: 10px !important; }
  html body.v13-site main .v45-cu-steps .v45-cu-ico { width: 30px !important; height: 30px !important; }
}
@media (max-width: 760px) {
  html body.v13-site main .v45-steps > .v45-step { grid-template-columns: minmax(0, 1fr) auto !important; }
  html body.v13-site main .v45-step-temp, html body.v13-site main .v45-step-temp span { font-size: 12px !important; white-space: nowrap !important; }
  html body.v13-site main .v45-r-head ul { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; margin: 10px 0 0 !important; }
  html body.v13-site main .v45-r-head ul li { font-size: 11.5px !important; padding: 4px 8px !important; margin: 0 !important; }
  html body.v13-site main .v45-r-head p { margin-bottom: 0 !important; }
  html body.v13-site main #replacement small, html body.v13-site main .v45-replace .v45-r-note, html body.v13-site main .v45-replace p.v45-r-fine { font-size: 10px !important; line-height: 1.4 !important; }
  html body.v13-site main .v45-cu-grid { gap: 14px !important; row-gap: 14px !important; }
  html body.v13-site main .v45-cu-steps { margin-top: 0 !important; padding-top: 0 !important; }
  html body.v13-site main .v45-cu-steps > li > div { padding: 8px 12px !important; min-height: 0 !important; }
  html body.v13-site main .v45-cu-steps > li h3 { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; }
  html body.v13-site main .v45-cu-steps .v45-cu-tag { margin: 0 !important; font-size: 9.5px !important; padding: 2px 6px !important; }
}
@media (max-width: 760px) {
  html body.v13-site main .v45-replace-note { font-size: 10px !important; line-height: 1.45 !important; margin-top: 12px !important; }
  html body.v13-site main .v45-v10-actions { margin-top: 12px !important; gap: 10px !important; }
  html body.v13-site main .v45-v10-also { font-size: 13px !important; }
}
@media (max-width: 760px) {
  html body.v13-site main .v45-steps .v45-step-bar { width: max-content !important; min-width: calc(52% + var(--h) * .48%) !important; max-width: 100% !important; box-sizing: border-box !important; flex-wrap: wrap !important; white-space: normal !important; row-gap: 3px !important; column-gap: 4px !important; padding: 5px 8px !important; }
  html body.v13-site main .v45-steps .v45-step-bar > * { white-space: nowrap !important; }
  html body.v13-site main .v45-steps .v45-step-bar h3 { font-size: 10px !important; padding: 3px 7px !important; margin: 0 4px 0 0 !important; letter-spacing: .04em !important; }
  html body.v13-site main .v45-steps .v45-step-bar strong { font-size: 17px !important; }
  html body.v13-site main .v45-steps .v45-step-bar span { font-size: 10px !important; margin: 0 !important; }
  html body.v13-site main .v45-step-temp, html body.v13-site main .v45-step-temp span { font-size: 11px !important; }
}
@media (max-width: 760px) {
  html body.v13-site main .v15-stats > * { min-width: 0 !important; }
  html body.v13-site main .v15-stats p, html body.v13-site main .v15-stats small { overflow-wrap: anywhere !important; hyphens: auto !important; }
  html body.v13-site main .v45-cu-badges { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body.v13-site main .v45-cu-badges li { min-width: 0 !important; hyphens: auto !important; overflow-wrap: anywhere; }
}
/* V64 product pages: secondary spec tables (durability tests, order code) fold away. */
html body.v13-site details.v64-more { margin-top: 14px; border: 1px solid rgba(16, 40, 58, .14); border-radius: 8px; background: #fff; }
html body.v13-site details.v64-more > summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 600; font-size: 16px; color: #10283a; position: relative; }
html body.v13-site details.v64-more > summary::-webkit-details-marker { display: none; }
html body.v13-site details.v64-more > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: #0a6cb8; }
html body.v13-site details.v64-more[open] > summary::after { content: "−"; }
html body.v13-site details.v64-more > .v15-spec-group { padding: 0 12px 12px; }
html body.v13-site details.v64-more table { width: 100%; table-layout: fixed; }
html body.v13-site details.v64-more td, html body.v13-site details.v64-more th { overflow-wrap: anywhere; }
html[lang^="de"] body.v13-site .framework-table th { -webkit-hyphens: auto; hyphens: auto; }
