/* VGrader: shared responsive layer for DE, EN and FR.
   Loaded after page-specific styles; the desktop design remains in styles.css. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 100px; }
body { min-width: 0; }
section, main, article, form, .nav-inner, .nav-inner > *, .contact-main > *,
.pd-hero > *, .p-hero > *, .field-row > *, .pd-related-cols > *, .team-grid > * { min-width: 0; }
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: rgba(224, 114, 31, 0.18); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--orange-deep); outline-offset: 4px;
}
[hidden] { display: none !important; }
.nav-toggle, .mobile-nav-footer, .mobile-features { display: none; }
.nav-inner { gap: 18px; }
.nav-inner > a:first-child { flex-shrink: 0; }
nav.links { gap: clamp(14px, 1.6vw, 24px); }
nav.links a { line-height: 1.4; }
.nav-inner > .btn { flex-shrink: 0; white-space: nowrap; }
.nav-toggle { border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.nav-toggle-icon { width: 20px; height: 16px; position: relative; display: block; }
.nav-toggle-icon::before, .nav-toggle-icon::after, .nav-toggle-icon span {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: 7px; }
.nav-toggle-icon::after { top: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll-hint { display: none; }
.lightbox-close { min-width: 44px; min-height: 44px; }
.lightbox-img { object-fit: contain; }

/* Collapse before the translated navigation becomes too wide. */
@media (max-width: 1180px) {
  header.nav { z-index: 110; }
  .nav-inner { position: relative; padding: 12px 24px; gap: 12px; flex-wrap: wrap; }
  .nav-inner > a:first-child { margin-right: auto; }
  .nav-inner > .btn { order: 1; }
  .nav-toggle { order: 2; width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0; align-items: center; justify-content: center; }
  .nav-ready .nav-toggle { display: inline-flex; }
  /* Navigation stays usable even if JavaScript is disabled. */
  nav.links { order: 3; display: flex; flex-basis: 100%; width: 100%; flex-wrap: wrap; gap: 4px 16px; padding-top: 12px; }
  nav.links > a { display: block; padding: 12px; }
  .nav-ready nav.links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; width: 100%;
    padding: 12px 24px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--bg); box-shadow: 0 14px 24px rgba(27, 23, 18, .12);
    max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-ready.nav-open nav.links { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .nav-ready.nav-open { transform: none; }
  .nav-ready nav.links > a { flex-shrink: 0; min-height: 48px; padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-ready nav.links > a::after { display: none; }
  .nav-ready nav.links > a[aria-current="page"] { color: var(--orange-deep); font-weight: 600; }
  .mobile-nav-footer { display: block; flex-shrink: 0; padding-top: 16px; }
  .mobile-nav-footer .lang-switch { gap: 10px; }
  .mobile-nav-footer .lang-switch a, .mobile-nav-footer .lang-switch .active {
    min-width: 48px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 4px; font-size: 14px;
  }
  .mobile-nav-footer .lang-switch .active { border-color: var(--orange-deep); }
  .mobile-nav-footer .lang-switch .sep { display: none; }
}

@media (max-width: 860px) {
  :root { --mobile-gutter: clamp(16px, 4.8vw, 28px); }
  h1, h2, h3, h4, p, li, label, .role, .tag { overflow-wrap: anywhere; }
  h1, h2, h3 { hyphens: auto; }
  .btn, .btn-outline { min-height: 44px; max-width: 100%; white-space: normal; text-align: center; }
  .utility-bar { padding: 0 var(--mobile-gutter); gap: 8px; min-height: 44px; }
  .social-icons { gap: 0; }
  .social-icons a { width: 36px; height: 44px; }
  .lang-switch { gap: 2px; }
  .lang-switch a, .lang-switch .active { min-width: 34px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .lang-switch .sep { padding: 0; }
  .nav-inner { padding: 10px var(--mobile-gutter); gap: 10px; }
  .logo-img { height: auto; width: clamp(116px, 34vw, 165px); max-height: 38px; object-fit: contain; }
  .nav-inner > .btn { padding: 11px 14px; font-size: 14px; }
  .nav-ready nav.links { padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }
  .wrap, .pd-hero, .pd-features, .pd-related, .a-hero, .team-section, .story,
  .history-article, .highlights-timeline, .stats, .contact-hero, .contact-main,
  .fr-hero, .concern-article, .m-hero, .fair-list, .p-hero, .p-hero-img-wide,
  .feature-grid, .compare-section, .upgrade-block, .overview-box, .combo-section,
  .kombi-hero, .kombi-photo, .kombi-why, .kombi-products, .ph-hero, .ph-article,
  .ph-photo-break, .ph-stats, .ph-pullquote, .legal, .intro-wrap, .signup-only,
  .page-hero, .partner-info, .problem-section, .compare-vn, .products, .home-video,
  .section-kicker, .model-teaser, .demo-strip, .reviews-inner, .cta-inner {
    padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter);
  }
  .a-hero, .contact-hero, .fr-hero, .m-hero, .p-hero, .pd-hero, .kombi-hero, .ph-hero, .page-hero { padding-top: 36px; }
  .a-hero h1, .contact-hero h1, .fr-hero h1, .m-hero h1, .p-hero h1, .pd-hero h1,
  .kombi-hero h1, .ph-hero h1, .legal h1, .page-hero h1 {
    font-size: clamp(28px, 7.8vw, 42px); line-height: 1.12;
  }
  .pd-hero, .p-hero, .page-hero, .partner-info { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pd-hero p, .p-hero p { max-width: none; }
  .pd-hero-img img, .p-hero-img > img { height: auto !important; max-height: 460px; aspect-ratio: 4 / 3; }
  .pd-features, .pd-related-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .pd-related-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pd-related-video-inner { max-width: 100%; }
  .contact-main, .story, .team-section { margin-top: 32px; }
  .contact-main { margin-bottom: 64px; gap: 24px; }
  .contact-info-col { position: static; }
  .field input, .field textarea, .field select,
  .signup-only .field input, .signup-only .field textarea {
    min-width: 0; width: 100%; max-width: 100%; font-size: 16px; min-height: 48px;
  }
  .field textarea { resize: vertical; }
  .consent input { flex: 0 0 auto; width: 20px; height: 20px; }
  .consent label { min-width: 0; }
  .signup-only { margin-top: 36px; margin-bottom: 64px; }
  .signup-only .signup-form, .contact-form { padding: 24px; }
  .contact-form button, .signup-only button { min-height: 48px; max-width: 100%; white-space: normal; }
  .team-card { padding: 22px; }
  .team-card-photo { margin-bottom: 16px; }
  .team-card h3 { line-height: 1.3; }
  .hero-full-content { padding: 32px var(--mobile-gutter); }
  .hero-full-content h1 { margin: 14px 0 20px; font-size: clamp(30px, 9vw, 46px); line-height: 1.08; }
  .hero-full-content p { font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
  .hero-full-content > div { width: 100%; }
  .hero-full-content .btn, .hero-full-content .btn-outline { flex: 1 1 160px; }
  .hero-hotspot .hint { display: none; }
  .test-banner-wrap { padding: 0 var(--mobile-gutter); }
  .test-banner-box { padding: 24px; }
  .test-banner-box h2, .test-banner-box h3 { line-height: 1.15; }
  .test-banner-box p { overflow-wrap: anywhere; }
  .test-banner-img-group { min-width: 0; }
  .test-banner-img { min-width: 0; }
  .stat-bar { padding: 24px var(--mobile-gutter); gap: 20px; }
  .stat-item { min-width: 0; }
  .stat-item > div { min-width: 0; }
  .band { padding: 48px var(--mobile-gutter); }
  .band-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .model-teaser-img { max-width: 100%; }
  .mt-point { display: none; }
  .mobile-features { display: grid; gap: 12px; margin: 24px 0; text-align: left; }
  .tile-grid, .tile-grid-featured, .tile-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .tile { min-width: 0; }
  .tile h3 { line-height: 1.2; }
  .reviews { padding: 48px 0; }
  .reviews-head h2 { line-height: 1.2; }
  .reviews-viewport { height: 344px; mask-image: none; -webkit-mask-image: none; }
  .review-card { width: calc(100% - 4px); height: 320px; padding: 24px; }
  .review-card .quote { max-height: 190px; font-size: 14px; }
  .reviews-carousel { padding-bottom: 60px; }
  .reviews-arrow { top: auto; bottom: 0; transform: none; width: 48px; height: 48px; }
  .reviews-arrow-left { left: calc(50% - 58px); }
  .reviews-arrow-right { right: calc(50% - 58px); }
  .vn-slider { height: clamp(220px, 65vw, 400px); }
  .table-scroll { border: 1px solid var(--line); border-radius: 8px; margin-top: 24px; }
  .table-scroll .compare-table { display: table; min-width: 620px; width: 100%; margin: 0; border: 0; border-radius: 0; overflow: visible; white-space: normal; }
  .table-scroll-hint { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
  .overview-box-inner, .upgrade-card, .history-principle { padding: 24px; }
  .overview-sizes { padding: 24px 16px; }
  .overview-sizes .size-teaser-new { flex-wrap: wrap; justify-content: center; }
  .overview-head h2 { font-size: 28px; line-height: 1.12; }
  .combo-photo-caption { position: static; padding: 20px; background: var(--ink); }
  .combo-photo-caption h3 { line-height: 1.2; }
  .story-img-caption { max-width: calc(100% - 28px); border-radius: 8px; }
  .legal { padding-top: 36px; padding-bottom: 56px; overflow-wrap: anywhere; }
  .legal a { overflow-wrap: anywhere; }
  .legal h2 { line-height: 1.2; }
  .faq-item summary { min-height: 48px; }
  .cta { padding-top: 48px; padding-bottom: 48px; }
  .cta-block h3 { line-height: 1.15; }
  .cta-block .btn, .cta-block .btn-outline { width: 100%; }
  footer { padding: 28px var(--mobile-gutter); overflow-wrap: anywhere; }
  footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 5px; }
  .cookie-banner { padding: 14px var(--mobile-gutter) max(14px, env(safe-area-inset-bottom)); gap: 12px; max-height: 50vh; max-height: 50dvh; overflow-y: auto; }
  .cookie-banner p { font-size: 13px; line-height: 1.5; }
  .cookie-banner .cookie-accept { min-height: 44px; }
  .lightbox-overlay { padding: 64px 12px 90px; }
  .lightbox-img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 28px; transform: none; width: 48px; height: 48px; }
  .lightbox-prev { left: calc(50% - 100px); }
  .lightbox-next { right: calc(50% - 100px); }
  .lightbox-counter { bottom: 40px; }
  .lightbox-close { top: 12px; right: 12px; }
}

@media (max-width: 600px) {
  .pd-features, .pd-related-grid, .feature-grid, .tile-grid,
  .tile-grid-featured, .tile-grid-secondary, .team-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-related-card { min-width: 0; }
  .pd-feature-card, .feature-card, .info-block { padding: 22px; }
  .pd-hero, .p-hero { gap: 24px; }
  .highlights-timeline, .pd-features, .pd-related, .feature-grid, .compare-section,
  .upgrade-block, .overview-box, .stats, .history-article, .combo-section { margin-top: 56px; }
  .timeline-item { grid-template-columns: 24px minmax(0, 1fr); gap: 0; }
  .timeline-line { left: 12px; }
  .timeline-item .hl-body, .timeline-item.timeline-right .hl-body { grid-column: 2; grid-row: 1; padding-left: 14px; padding-right: 0; }
  .timeline-dot-wrap { grid-column: 1; grid-row: 1; }
  .timeline-item .hl-label { line-height: 1.25; }
  .highlights-head h2 { font-size: 28px; line-height: 1.15; }
  .compare-vn-head h2, .problem-head h2, .audiences-head h2, .section-kicker h2 { font-size: 28px; line-height: 1.15; }
  .test-banner-box h2, .test-banner-box h3 { font-size: 25px; }
  .pd-hero-dim-label { font-size: 11px; max-width: 100%; }
  .overview-sizes .size-teaser-row { gap: 14px; }
  .size-teaser-num-main { overflow-wrap: normal; }
  .ph-stats { gap: 24px; }
  .contact-form button, .signup-only button { width: 100%; }
}

@media (max-width: 360px) {
  .utility-bar { padding-left: 12px; padding-right: 12px; }
  .social-icons a { width: 32px; }
  .nav-inner { gap: 8px; }
  .nav-inner > .btn { padding-left: 10px; padding-right: 10px; font-size: 13px; }
  .signup-only .signup-form, .contact-form, .overview-box-inner, .upgrade-card { padding: 18px; }
}

/* A separate campaign landing page is included in the source project. */
@media (max-width: 700px) {
  .lp-hero, .lp-benefits, .lp-products, .lp-form-section { padding-left: 20px; padding-right: 20px; }
  .lp-hero h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.1; }
  .lp-form { padding: 22px; }
  .lp-form .field input, .lp-form .field textarea { min-width: 0; width: 100%; font-size: 16px; }
  .lp-product, .lp-product-reverse, .lp-photos, .lp-benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-form button { min-height: 48px; max-width: 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal h1 em, .reveal h2 em { opacity: 1 !important; transform: none !important; }
}
@media (min-width: 1181px) { nav.links > .mobile-nav-contact { display: none; } }

/* Flexible image pair in the ProfiTester banner, including 320px screens. */
.test-banner-box { min-width: 0; }
@media (max-width: 900px) {
  .test-banner-row { grid-template-columns: minmax(0, 1fr); }
  .test-banner-img-group { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; width: 100%; }
  .test-banner-img { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; justify-self: center; }
  .test-banner-logo-box img { max-width: 100%; max-height: 100%; }
}
/* The hover labels extend outside the stage on desktop. Keep them within
   the viewport; on tablets use the same tap-accessible details as phones. */
.mobile-feature-group { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.mobile-feature-group > summary { cursor: pointer; min-height: 52px; padding: 15px 18px; font-weight: 600; color: var(--orange-deep); }
.mobile-feature-list { display: grid; gap: 20px; padding: 4px 18px 20px; }
.mobile-feature-list article { border-top: 1px solid var(--line); padding-top: 16px; }
.mobile-feature-list h3 { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.4; text-transform: none; font-weight: 600; margin-bottom: 8px; }
.mobile-feature-list p { font-size: 14px; color: var(--ink-soft); }
.mobile-feature-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin: 12px 0; }
@media (max-width: 1180px) {
  .mt-point { display: none; }
  .mobile-features { display: grid; gap: 12px; margin: 24px 0; text-align: left; }
}
@media (min-width: 1181px) {
  .mt-stage {
    --mt-col-outer: max(-15%, calc((1116px - 100vw) / 2 + 32px));
    --mt-col-inner: max(-21%, calc((1116px - 100vw) / 2 + 32px));
    --mt-t-bottom-col: max(-4%, calc((1116px - 100vw) / 2 + 32px));
  }
}
@media (min-width: 601px) and (max-width: 700px) {
  .timeline-item .hl-body, .timeline-item.timeline-right .hl-body, .timeline-dot-wrap { grid-row: 1; }
}
