/* Del Pepe — Handy-Optimierung (Paket A + B, Stand 18.10.2026)
   Wirkt nur unter 761 px Breite. Desktop bleibt unverändert. */

.dpm-bar, .dpm-menu, .dpm-cta, .dpm-top { display: none; }

@media (max-width: 760px) {
  html, body { overflow-x: clip; }
  body { padding-bottom: 76px; }
  body.dpm-no-cta { padding-bottom: 0; }

  /* ── A4: einheitliche, schlanke Kopfzeile ── */
  .hdr, body > header, body > nav.nav { display: none !important; }
  .dpm-bar {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 1000;
    height: 58px; padding: 0 12px 0 16px;
    background: #fff; border-bottom: 1px solid #e6e8ed;
  }
  .dpm-bar .dpm-logo { display: flex; align-items: center; margin-right: auto; }
  .dpm-bar .dpm-logo img { height: 30px; width: auto; display: block; }
  .dpm-bar .dpm-anfrage {
    background: #1A4FA0; color: #fff; font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 0 16px; height: 40px; display: inline-flex; align-items: center; border-radius: 8px; text-decoration: none;
  }
  .dpm-burger {
    width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  }
  .dpm-burger span { display: block; height: 2px; background: #1a1a1a; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .dpm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .dpm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .dpm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .dpm-menu[data-open="true"] {
    display: block; position: fixed; top: 58px; left: 0; right: 0; bottom: 0; z-index: 999;
    background: #fff; overflow-y: auto; padding: 8px 0 100px;
    font: 17px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  .dpm-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; color: #1a1a1a; text-decoration: none; border-bottom: 1px solid #f0f2f5; font-weight: 600; }
  .dpm-menu a::after { content: "›"; color: #9aa3b2; font-size: 22px; font-weight: 400; }
  .dpm-menu .dpm-sub { padding: 18px 20px 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; font-weight: 700; }
  .dpm-menu a.dpm-primary { margin: 18px 16px 0; border: 0; border-radius: 10px; background: #1A4FA0; color: #fff; justify-content: center; }
  .dpm-menu a.dpm-primary::after { content: ""; }
  body.dpm-menu-open { overflow: hidden; }

  /* ── A3 + B8: eine feste Leiste unten statt zwei schwebender Buttons ── */
  #dp-wa-widget, #dp-chat-btn { display: none !important; }
  #dp-chat-win { bottom: 84px !important; right: 12px !important; left: 12px !important; width: auto !important; max-width: none !important; }
  .dpm-cta {
    display: flex; gap: 8px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid #e6e8ed;
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
    transition: transform .25s ease;
  }
  .dpm-cta.dpm-hide { transform: translateY(110%); }
  .dpm-cta .dpm-main {
    flex: 1; height: 48px; display: flex; align-items: center; justify-content: center;
    background: #1A4FA0; color: #fff; border-radius: 10px; text-decoration: none;
    font: 700 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  .dpm-cta .dpm-icon {
    width: 48px; height: 48px; flex: 0 0 48px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #d6dbe4; border-radius: 10px; background: #fff; color: #1A4FA0; font-size: 22px; text-decoration: none; cursor: pointer; padding: 0;
  }
  .dpm-top {
    display: flex; position: fixed; right: 14px; bottom: 84px; z-index: 997;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d6dbe4; background: #fff; color: #1A4FA0;
    align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.1);
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .dpm-top.dpm-show { opacity: 1; pointer-events: auto; }

  /* ── A2: kompakter Cookie-Hinweis ── */
  .dp-cb-bar { left: 0 !important; right: 0 !important; bottom: 0 !important; transform: none !important; width: 100% !important; max-width: none !important;
    border-radius: 14px 14px 0 0 !important; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important; z-index: 100001 !important; }
  .dp-cb-bar h3 { display: none; }
  .dp-cb-bar p { font-size: 13px !important; line-height: 1.45 !important; margin-bottom: 10px !important; }
  .dp-cb-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .dp-cb-actions .dp-cb-btn { min-height: 44px; padding: 8px 6px !important; font-size: 14px !important; }
  .dp-cb-actions .dp-cb-btn[data-act="settings"] { grid-column: 1 / -1; order: 3; border: 0 !important; background: none !important; min-height: 32px; padding: 2px !important; color: #1A4FA0 !important; font-weight: 500 !important; text-decoration: underline; }

  /* ── A6: Tap-Ziele ── */
  .dp-footer a, footer a { min-height: 40px; display: flex !important; align-items: center; margin-bottom: 0 !important; }
  .faq summary, details > summary { min-height: 48px; padding-top: 12px; padding-bottom: 12px; }

  /* ── B: Footer-Spalten als Aufklapper ── */
  .dp-footer .row { display: block !important; }
  .dp-footer .row > div { border-bottom: 1px solid #e6e8ed; }
  .dp-footer .row > div:first-child { border-bottom: 0; padding-bottom: 8px; }
  .dp-footer .row > div.dpm-acc > h3 { display: flex; justify-content: space-between; align-items: center; min-height: 50px; margin: 0 !important; cursor: pointer; font-size: 15px !important; }
  .dp-footer .row > div.dpm-acc > h3::after { content: "+"; font-size: 22px; font-weight: 400; color: #6b7280; }
  .dp-footer .row > div.dpm-acc.dpm-open > h3::after { content: "–"; }
  .dp-footer .row > div.dpm-acc > a { display: none !important; }
  .dp-footer .row > div.dpm-acc.dpm-open > a { display: flex !important; padding-left: 4px; }
  .dp-footer .row > div.dpm-acc.dpm-open { padding-bottom: 8px; }

  /* ── B7: Modelle als wischbare Reihe (Startseite) ── */
  .prod-grid, #produkte .prod-grid { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important;
    margin: 0 -20px; padding: 4px 20px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .prod-grid::-webkit-scrollbar { display: none; }
  .prod-grid > .prod-card, #produkte .prod-grid > .prod-card { flex: 0 0 74% !important; max-width: none !important; width: auto !important; scroll-snap-align: start; }
  .prod-card .thumb { padding: 10px !important; }
  .prod-card .thumb img { max-height: 120px !important; }
  .prod-card .body { padding: 14px 16px 16px !important; }
  .prod-card .brand { margin-bottom: 4px !important; font-size: 12px !important; }
  .prod-card h3 { font-size: 19px !important; }
  .prod-card .desc { display: none; }
  .prod-card .price-line { margin: 6px 0 12px; }
  .prod-card .btn { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
  .dpm-swipe { display: flex; justify-content: space-between; align-items: center; font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #6b7280; margin: 0 0 10px; }
  .dpm-swipe a { color: #1A4FA0; text-decoration: none; }

  /* Ratgeber-Kacheln der Startseite ebenfalls wischbar */
  .dpm-hscroll { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important; margin: 0 -20px; padding: 4px 20px 14px; scrollbar-width: none; grid-template-columns: none !important; }
  .dpm-hscroll::-webkit-scrollbar { display: none; }
  .dpm-hscroll > * { flex: 0 0 78%; scroll-snap-align: start; }

  /* ── Kennzahlen-Leiste Startseite: 2 × 2 statt 4 nebeneinander ── */
  .dpm-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 20px 12px !important; }
  .dpm-stats > div > div:first-child { font-size: 32px !important; }

  /* ── B9: Inhaltsverzeichnis aufklappbar ── */
  details.dpm-toc { background: #f6f8fb; border: 1px solid #e6e8ed; border-radius: 12px; margin: 20px 0; }
  details.dpm-toc > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; font-weight: 700; cursor: pointer; }
  details.dpm-toc > summary::-webkit-details-marker { display: none; }
  details.dpm-toc > summary::after { content: "+"; font-size: 22px; font-weight: 400; color: #6b7280; }
  details.dpm-toc[open] > summary::after { content: "–"; }
  details.dpm-toc .toc { margin: 0 !important; border: 0 !important; background: none !important; padding-top: 0 !important; }
  details.dpm-toc .toc h3 { display: none; }
  details.dpm-toc .toc a { display: block; padding: 8px 0; }

  /* ── B9: Vergleichstabellen als Karten ── */
  table.dpm-cards, table.dpm-cards tbody, table.dpm-cards tr, table.dpm-cards td { display: block; width: 100%; }
  table.dpm-cards { box-shadow: none !important; background: none !important; border: 0 !important; overflow: visible !important; }
  table.dpm-cards thead { display: none; }
  table.dpm-cards tr { background: #fff; border: 1px solid #e6e8ed; border-radius: 12px; margin: 0 0 12px; padding: 6px 14px; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
  table.dpm-cards td { border: 0 !important; padding: 7px 0 !important; display: flex; gap: 12px; justify-content: space-between; text-align: right; font-size: 15px; }
  table.dpm-cards td::before { content: attr(data-label); font-weight: 600; color: #4a4a4a; text-align: left; flex: 0 0 42%; }
  table.dpm-cards td:first-child { font-weight: 700; font-size: 16px; color: #1a1a1a; text-align: left; border-bottom: 1px solid #f0f2f5 !important; padding-bottom: 9px !important; }
  table.dpm-cards td:first-child::before { display: none; }
  table.dpm-cards td[data-label=""]::before { display: none; }
}

/* Seiten mit alter fester Navigation (nav.nav): deren Ausgleichs-Abstand oben entfernen */
@media (max-width: 760px) {
  body > nav.nav + section { padding-top: 32px !important; }
}
