/* V5.1: allow scrollable dialog content to keep its intrinsic height. */
#pm .v5-dialog-body > * { flex-shrink: 0; min-width: 0; }
#pm .v5-dialog-body > .v3-demo { border-radius: 14px; padding: 18px; border: 1px solid #e0e5ef; height: auto; }
#pm .v5-dialog-body .v3-demo-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { #pm .v5-dialog-body > .v3-demo { padding: 12px; } }
/* Shared navigation disclosure, for both header variants. */
header .svc-nav { position: relative; }
header .svc-nav > summary { display: flex; align-items: center; justify-content: space-between; gap: 5px; cursor: pointer; list-style: none; white-space: nowrap; }
header .svc-nav > summary::-webkit-details-marker { display: none; }
header .svc-nav > summary svg { flex: none; }
header .svc-nav[open] > summary svg { transform: rotate(180deg); }
header .svc-nav > summary:hover, header .svc-nav[open] > summary { color: #4050ff; }
header .svc-nav-desktop > summary { padding: 8px 0; }
header .svc-nav-desktop .svc-nav-panel { position: absolute; top: calc(100% + 10px); left: -12px; min-width: 265px; width: max-content; max-width: 320px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 7px; box-shadow: 0 12px 32px rgba(29,39,53,.13); z-index: 90; }
header .svc-nav-desktop .svc-nav-panel a { display: block; padding: 11px 13px; border-radius: 9px; font-size: 14px; line-height: 1.4; color: #1d2735; text-decoration: none; }
header .svc-nav-desktop .svc-nav-panel a:hover, header .svc-nav-desktop .svc-nav-panel a[aria-current=page] { background: #eef0ff; color: #4050ff; }
header .svc-nav-desktop .svc-nav-panel .svc-nav-all { border-top: 1px solid #e5e7eb; margin-top: 5px; color: #4050ff; font-weight: 600; }
header .svc-nav summary:focus-visible, header .svc-nav a:focus-visible { outline: 2px solid #4050ff; outline-offset: 3px; border-radius: 6px; }
@media (max-width: 767px) {
 header .svc-nav-mobile > summary { padding: 22px 0; border-bottom: 1px solid #e5e7eb; color: #1d2735; font-size: 22px; font-weight: 500; }
 header .svc-nav-mobile .svc-nav-panel { padding: 5px 0 9px 16px; border-bottom: 1px solid #e5e7eb; }
 header .svc-nav-mobile .svc-nav-panel a { display: block; padding: 13px 8px; border: 0; border-radius: 8px; background: none; font-size: 16px; font-weight: 500; line-height: 1.4; color: #1d2735; }
 header .svc-nav-mobile .svc-nav-panel a[aria-current=page], header .svc-nav-mobile .svc-nav-panel .svc-nav-all { color: #4050ff; }
}

/* Plain social links: no external embeds or scripts. */
.v51-linkedin { display: inline-flex !important; align-items: center; gap: 7px; white-space: nowrap; }
.v51-linkedin svg { flex: 0 0 17px; width: 17px; height: 17px; }
.v51-linkedin:focus-visible { outline: 2px solid #4050ff; outline-offset: 4px; }
.v51-profile-social { display: flex; justify-content: center; margin-top: 14px; }
.v51-profile-social .v51-linkedin { width: auto; font-size: 14px; }

/* FAQ shortcut to the existing finder. */
#leistungsfinder { scroll-margin-top: 100px; }
.v51-faq-finder { display: inline-flex; margin-top: 10px; font-size: 14px; }

/* Handy-Mockup (Fahrradservice): erkennbar hochkant wie ein Smartphone, nichts abgeschnitten */
.v5-device-pair { grid-template-columns: minmax(0, 1fr) 168px; align-items: end; }
.v5-device.mobile { position: relative; display: flex; flex-direction: column; width: 168px; aspect-ratio: 9 / 17; border-width: 4px; border-radius: 26px; justify-self: center; }
.v5-device.mobile::before { content: ""; position: absolute; top: 7px; left: 50%; width: 46px; height: 7px; margin-left: -23px; border-radius: 99px; background: #0b1220; z-index: 2; }
.v5-device.mobile .v5-devicebar { padding: 22px 10px 8px; }
.v5-device.mobile .v5-devicehero { display: block; margin: 6px; padding: 10px; font-size: 11px; line-height: 1.35; }
.v5-device.mobile .v5-devicehero strong { font-size: 13px; overflow-wrap: anywhere; }
.v5-device.mobile .v5-devicehero p { margin: 4px 0 0; overflow-wrap: anywhere; }
.v5-device.mobile .v5-devicehero .v3-mini-cta { display: block; max-width: 100%; white-space: normal; text-align: center; box-sizing: border-box; font-size: 11px; padding: 7px 10px; margin-top: 10px; }
.v5-device.mobile .v5-devicebottom { margin-top: auto; flex-wrap: wrap; justify-content: flex-start; padding: 6px 6px 12px; }
@media (max-width: 600px) {
  .v5-device-pair { grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start; gap: 14px; }
  .v5-device.desktop { width: 100%; }
}

/* FAQ der Leistungsseiten und Dialoge: aufgeklappt wie auf der Startseite (blaue Frage, blauer Rand) */
.v5-detail-faq[open] { border-color: #4050ff; box-shadow: 0 10px 30px rgba(64, 80, 255, .14); }
.v5-detail-faq[open] summary { color: #4050ff; }
